@lowdefy/blocks-color-selectors 4.0.0-alpha.5 → 4.0.0-alpha.6

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.
@@ -64,9 +64,12 @@ Selector.meta = {
64
64
  width: 225,
65
65
  height: 240
66
66
  }
67
- }
67
+ },
68
+ icons: [
69
+ ...Label.meta.icons
70
+ ],
71
+ styles: [
72
+ 'blocks/ChromeColorSelector/style.less'
73
+ ]
68
74
  };
69
- Selector.styles = [
70
- 'blocks/ChromeColorSelector/style.less'
71
- ];
72
75
  export default Selector;
@@ -82,9 +82,12 @@ Selector.meta = {
82
82
  properties: {
83
83
  height: 42
84
84
  }
85
- }
85
+ },
86
+ icons: [
87
+ ...Label.meta.icons
88
+ ],
89
+ styles: [
90
+ 'blocks/CircleColorSelector/style.less'
91
+ ]
86
92
  };
87
- Selector.styles = [
88
- 'blocks/CircleColorSelector/style.less'
89
- ];
90
93
  export default Selector;
@@ -61,9 +61,12 @@ Selector.meta = {
61
61
  properties: {
62
62
  height: 216
63
63
  }
64
- }
64
+ },
65
+ icons: [
66
+ ...Label.meta.icons
67
+ ],
68
+ styles: [
69
+ 'blocks/ColorSelector/style.less'
70
+ ]
65
71
  };
66
- Selector.styles = [
67
- 'blocks/ColorSelector/style.less'
68
- ];
69
72
  export default Selector;
@@ -60,9 +60,12 @@ Selector.meta = {
60
60
  width: 245,
61
61
  height: 90
62
62
  }
63
- }
63
+ },
64
+ icons: [
65
+ ...Label.meta.icons
66
+ ],
67
+ styles: [
68
+ 'blocks/CompactColorSelector/style.less'
69
+ ]
64
70
  };
65
- Selector.styles = [
66
- 'blocks/CompactColorSelector/style.less'
67
- ];
68
71
  export default Selector;
@@ -62,9 +62,12 @@ Selector.meta = {
62
62
  width: 216,
63
63
  height: 62
64
64
  }
65
- }
65
+ },
66
+ icons: [
67
+ ...Label.meta.icons
68
+ ],
69
+ styles: [
70
+ 'blocks/GithubColorSelector/style.less'
71
+ ]
66
72
  };
67
- Selector.styles = [
68
- 'blocks/GithubColorSelector/style.less'
69
- ];
70
73
  export default Selector;
@@ -58,9 +58,12 @@ Selector.meta = {
58
58
  properties: {
59
59
  height: 44
60
60
  }
61
- }
61
+ },
62
+ icons: [
63
+ ...Label.meta.icons
64
+ ],
65
+ styles: [
66
+ 'blocks/SliderColorSelector/style.less'
67
+ ]
62
68
  };
63
- Selector.styles = [
64
- 'blocks/SliderColorSelector/style.less'
65
- ];
66
69
  export default Selector;
@@ -61,9 +61,12 @@ Selector.meta = {
61
61
  properties: {
62
62
  height: 175
63
63
  }
64
- }
64
+ },
65
+ icons: [
66
+ ...Label.meta.icons
67
+ ],
68
+ styles: [
69
+ 'blocks/SwatchesColorSelector/style.less'
70
+ ]
65
71
  };
66
- Selector.styles = [
67
- 'blocks/SwatchesColorSelector/style.less'
68
- ];
69
72
  export default Selector;
@@ -55,9 +55,12 @@ Selector.meta = {
55
55
  properties: {
56
56
  height: 96
57
57
  }
58
- }
58
+ },
59
+ icons: [
60
+ ...Label.meta.icons
61
+ ],
62
+ styles: [
63
+ 'blocks/TwitterColorSelector/style.less'
64
+ ]
59
65
  };
60
- Selector.styles = [
61
- 'blocks/TwitterColorSelector/style.less'
62
- ];
63
66
  export default Selector;
package/dist/types.js CHANGED
@@ -13,13 +13,15 @@
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
15
  */ import * as blocks from './blocks.js';
16
- const styles = {
17
- };
16
+ const icons = {};
17
+ const styles = {};
18
18
  Object.keys(blocks).forEach((block)=>{
19
- styles[block] = blocks[block].styles || [];
19
+ icons[block] = blocks[block].meta.icons || [];
20
+ styles[block] = blocks[block].meta.styles || [];
20
21
  });
21
22
  export default {
22
23
  blocks: Object.keys(blocks),
24
+ icons,
23
25
  styles: {
24
26
  default: [],
25
27
  ...styles
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/blocks-color-selectors",
3
- "version": "4.0.0-alpha.5",
3
+ "version": "4.0.0-alpha.6",
4
4
  "license": "Apache-2.0",
5
5
  "description": "A Lowdefy color selector blocks based on react-color.",
6
6
  "homepage": "https://lowdefy.com",
@@ -21,6 +21,10 @@
21
21
  {
22
22
  "name": "Gerrie van Wyk",
23
23
  "url": "https://github.com/Gervwyk"
24
+ },
25
+ {
26
+ "name": "Sandile Memela",
27
+ "url": "https://github.com/sah-memela"
24
28
  }
25
29
  ],
26
30
  "repository": {
@@ -46,8 +50,8 @@
46
50
  "test": "jest --coverage"
47
51
  },
48
52
  "dependencies": {
49
- "@lowdefy/block-utils": "4.0.0-alpha.5",
50
- "@lowdefy/blocks-antd": "4.0.0-alpha.5",
53
+ "@lowdefy/block-utils": "4.0.0-alpha.6",
54
+ "@lowdefy/blocks-antd": "4.0.0-alpha.6",
51
55
  "react": "18.0.0-alpha-327d5c484-20211106",
52
56
  "react-color": "2.19.3",
53
57
  "react-dom": "18.0.0-alpha-327d5c484-20211106"
@@ -55,10 +59,10 @@
55
59
  "devDependencies": {
56
60
  "@babel/preset-react": "7.16.0",
57
61
  "@emotion/jest": "11.5.0",
58
- "@lowdefy/block-dev": "4.0.0-alpha.5",
59
- "@swc/cli": "0.1.52",
60
- "@swc/core": "1.2.112",
61
- "@swc/jest": "0.2.9",
62
+ "@lowdefy/block-dev": "4.0.0-alpha.6",
63
+ "@swc/cli": "0.1.55",
64
+ "@swc/core": "1.2.130",
65
+ "@swc/jest": "0.2.17",
62
66
  "@testing-library/dom": "8.10.1",
63
67
  "@testing-library/react": "13.0.0-alpha.4",
64
68
  "@testing-library/user-event": "14.0.0-alpha.14",
@@ -71,5 +75,5 @@
71
75
  "publishConfig": {
72
76
  "access": "public"
73
77
  },
74
- "gitHead": "995fcdb020927f3cdc626fc99c15a2e4137bd962"
78
+ "gitHead": "2530e31af795b6a3c75ac8f72c8dbe0ab5d1251b"
75
79
  }