@lowdefy/blocks-loaders 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.
@@ -59,9 +59,10 @@ const IconSpinner = ({ properties , methods })=>{
59
59
  IconSpinner.defaultProps = blockDefaultProps;
60
60
  IconSpinner.meta = {
61
61
  category: 'display',
62
- loading: false
62
+ loading: false,
63
+ icons: [],
64
+ styles: [
65
+ 'blocks/IconSpinner/style.less'
66
+ ]
63
67
  };
64
- IconSpinner.styles = [
65
- 'blocks/IconSpinner/style.less'
66
- ];
67
68
  export default IconSpinner;
@@ -52,6 +52,7 @@ const LogoSpinner = ({ color , barColor })=>/*#__PURE__*/ _jsx("svg", {
52
52
  })
53
53
  ;
54
54
  LogoSpinner.meta = {
55
+ icons: [],
56
+ styles: []
55
57
  };
56
- LogoSpinner.styles = [];
57
58
  export default LogoSpinner;
@@ -27,9 +27,10 @@ const Skeleton = ({ properties , methods })=>{
27
27
  Skeleton.defaultProps = blockDefaultProps;
28
28
  Skeleton.meta = {
29
29
  category: 'display',
30
- loading: false
30
+ loading: false,
31
+ icons: [],
32
+ styles: [
33
+ 'blocks/Skeleton/style.less'
34
+ ]
31
35
  };
32
- Skeleton.styles = [
33
- 'blocks/Skeleton/style.less'
34
- ];
35
36
  export default Skeleton;
@@ -38,8 +38,7 @@ const SkeletonAvatar = ({ properties , methods })=>{
38
38
  ...{
39
39
  borderRadius: properties.shape === 'square' ? '0' : size / 2
40
40
  },
41
- ...properties.style || {
42
- }
41
+ ...properties.style || {}
43
42
  },
44
43
  width: size,
45
44
  height: size
@@ -49,9 +48,10 @@ const SkeletonAvatar = ({ properties , methods })=>{
49
48
  SkeletonAvatar.defaultProps = blockDefaultProps;
50
49
  SkeletonAvatar.meta = {
51
50
  category: 'display',
52
- loading: false
51
+ loading: false,
52
+ icons: [],
53
+ styles: [
54
+ 'blocks/SkeletonAvatar/style.less'
55
+ ]
53
56
  };
54
- SkeletonAvatar.styles = [
55
- 'blocks/SkeletonAvatar/style.less'
56
- ];
57
57
  export default SkeletonAvatar;
@@ -35,8 +35,7 @@ const SkeletonButton = ({ properties , methods })=>{
35
35
  ...{
36
36
  borderRadius: properties.shape === 'round' && height / 2
37
37
  },
38
- ...properties.style || {
39
- }
38
+ ...properties.style || {}
40
39
  },
41
40
  width: properties.width || '100%',
42
41
  height: height
@@ -46,9 +45,10 @@ const SkeletonButton = ({ properties , methods })=>{
46
45
  SkeletonButton.defaultProps = blockDefaultProps;
47
46
  SkeletonButton.meta = {
48
47
  category: 'display',
49
- loading: false
48
+ loading: false,
49
+ icons: [],
50
+ styles: [
51
+ 'blocks/SkeletonButton/style.less'
52
+ ]
50
53
  };
51
- SkeletonButton.styles = [
52
- 'blocks/SkeletonButton/style.less'
53
- ];
54
54
  export default SkeletonButton;
@@ -39,8 +39,7 @@ const SkeletonInput = ({ properties , methods })=>{
39
39
  ...{
40
40
  marginBottom: 10
41
41
  },
42
- ...properties.labelStyle || {
43
- }
42
+ ...properties.labelStyle || {}
44
43
  }
45
44
  }
46
45
  }),
@@ -49,8 +48,7 @@ const SkeletonInput = ({ properties , methods })=>{
49
48
  properties: {
50
49
  width: properties.width || '100%',
51
50
  height: properties.inputHeight || inputHeight,
52
- style: properties.inputStyle || {
53
- }
51
+ style: properties.inputStyle || {}
54
52
  }
55
53
  })
56
54
  ]
@@ -59,9 +57,10 @@ const SkeletonInput = ({ properties , methods })=>{
59
57
  SkeletonInput.defaultProps = blockDefaultProps;
60
58
  SkeletonInput.meta = {
61
59
  category: 'display',
62
- loading: false
60
+ loading: false,
61
+ icons: [],
62
+ styles: [
63
+ 'blocks/SkeletonInput/style.less'
64
+ ]
63
65
  };
64
- SkeletonInput.styles = [
65
- 'blocks/SkeletonInput/style.less'
66
- ];
67
66
  export default SkeletonInput;
@@ -34,8 +34,7 @@ const SkeletonParagraph = ({ properties , methods })=>{
34
34
  marginBottom: '1rem'
35
35
  }
36
36
  },
37
- ...properties.style || {
38
- }
37
+ ...properties.style || {}
39
38
  }
40
39
  }, key)
41
40
  )
@@ -44,9 +43,10 @@ const SkeletonParagraph = ({ properties , methods })=>{
44
43
  SkeletonParagraph.defaultProps = blockDefaultProps;
45
44
  SkeletonParagraph.meta = {
46
45
  category: 'display',
47
- loading: false
46
+ loading: false,
47
+ icons: [],
48
+ styles: [
49
+ 'blocks/SkeletonParagraph/style.less'
50
+ ]
48
51
  };
49
- SkeletonParagraph.styles = [
50
- 'blocks/SkeletonParagraph/style.less'
51
- ];
52
52
  export default SkeletonParagraph;
@@ -53,9 +53,10 @@ const Spinner = ({ properties , methods })=>{
53
53
  Spinner.defaultProps = blockDefaultProps;
54
54
  Spinner.meta = {
55
55
  category: 'display',
56
- loading: false
56
+ loading: false,
57
+ icons: [],
58
+ styles: [
59
+ 'blocks/Spinner/style.less'
60
+ ]
57
61
  };
58
- Spinner.styles = [
59
- 'blocks/Spinner/style.less'
60
- ];
61
62
  export default Spinner;
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-loaders",
3
- "version": "4.0.0-alpha.5",
3
+ "version": "4.0.0-alpha.6",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Lowdefy loader blocks.",
6
6
  "homepage": "https://lowdefy.com",
@@ -19,6 +19,10 @@
19
19
  {
20
20
  "name": "Gerrie van Wyk",
21
21
  "url": "https://github.com/Gervwyk"
22
+ },
23
+ {
24
+ "name": "Sandile Memela",
25
+ "url": "https://github.com/sah-memela"
22
26
  }
23
27
  ],
24
28
  "repository": {
@@ -44,18 +48,18 @@
44
48
  "test": "jest --coverage"
45
49
  },
46
50
  "dependencies": {
47
- "@lowdefy/block-utils": "4.0.0-alpha.5",
48
- "@lowdefy/helpers": "4.0.0-alpha.5",
51
+ "@lowdefy/block-utils": "4.0.0-alpha.6",
52
+ "@lowdefy/helpers": "4.0.0-alpha.6",
49
53
  "react": "18.0.0-alpha-327d5c484-20211106",
50
54
  "react-dom": "18.0.0-alpha-327d5c484-20211106"
51
55
  },
52
56
  "devDependencies": {
53
57
  "@babel/preset-react": "7.16.0",
54
58
  "@emotion/jest": "11.5.0",
55
- "@lowdefy/block-dev": "4.0.0-alpha.5",
56
- "@swc/cli": "0.1.52",
57
- "@swc/core": "1.2.112",
58
- "@swc/jest": "0.2.9",
59
+ "@lowdefy/block-dev": "4.0.0-alpha.6",
60
+ "@swc/cli": "0.1.55",
61
+ "@swc/core": "1.2.130",
62
+ "@swc/jest": "0.2.17",
59
63
  "@testing-library/dom": "8.10.1",
60
64
  "@testing-library/react": "13.0.0-alpha.4",
61
65
  "@testing-library/user-event": "14.0.0-alpha.14",
@@ -67,5 +71,5 @@
67
71
  "publishConfig": {
68
72
  "access": "public"
69
73
  },
70
- "gitHead": "995fcdb020927f3cdc626fc99c15a2e4137bd962"
74
+ "gitHead": "2530e31af795b6a3c75ac8f72c8dbe0ab5d1251b"
71
75
  }