@lowdefy/blocks-loaders 4.0.0-alpha.12 → 4.0.0-alpha.13

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.
@@ -29,7 +29,7 @@ const IconSpinner = ({ properties , methods })=>{
29
29
  size = 24;
30
30
  }
31
31
  }
32
- return(/*#__PURE__*/ React.createElement("span", {
32
+ return /*#__PURE__*/ React.createElement("span", {
33
33
  className: methods.makeCssClass([
34
34
  {
35
35
  height: size,
@@ -51,7 +51,7 @@ const IconSpinner = ({ properties , methods })=>{
51
51
  }, /*#__PURE__*/ React.createElement("path", {
52
52
  fill: "#bfbfbf",
53
53
  d: "M512 1024c-69.1 0-136.2-13.5-199.3-40.2C251.7 958 197 921 150 874c-47-47-84-101.7-109.8-162.7C13.5 648.2 0 581.1 0 512c0-19.9 16.1-36 36-36s36 16.1 36 36c0 59.4 11.6 117 34.6 171.3 22.2 52.4 53.9 99.5 94.3 139.9 40.4 40.4 87.5 72.2 139.9 94.3C395 940.4 452.6 952 512 952c59.4 0 117-11.6 171.3-34.6 52.4-22.2 99.5-53.9 139.9-94.3 40.4-40.4 72.2-87.5 94.3-139.9C940.4 629 952 571.4 952 512c0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.2C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3s-13.5 136.2-40.2 199.3C958 772.3 921 827 874 874c-47 47-101.8 83.9-162.7 109.7-63.1 26.8-130.2 40.3-199.3 40.3z"
54
- }))));
54
+ })));
55
55
  };
56
56
  IconSpinner.defaultProps = blockDefaultProps;
57
57
  IconSpinner.meta = {
@@ -18,7 +18,7 @@ const ProgressBar = ({ blockId , methods , style , properties })=>{
18
18
  const { progress =30 , height =4 , transitionTime =1000 , // loaderSpeed = 500,
19
19
  // waitingTime = 1000,
20
20
  shadow =true , } = properties;
21
- return(/*#__PURE__*/ React.createElement("div", {
21
+ return /*#__PURE__*/ React.createElement("div", {
22
22
  id: blockId,
23
23
  className: methods.makeCssClass(style),
24
24
  style: {
@@ -33,7 +33,7 @@ const ProgressBar = ({ blockId , methods , style , properties })=>{
33
33
  className: "progress-bar-loader"
34
34
  }, shadow ? /*#__PURE__*/ React.createElement("div", {
35
35
  className: "progress-bar-shadow"
36
- }) : null))));
36
+ }) : null)));
37
37
  };
38
38
  ProgressBar.defaultProps = blockDefaultProps;
39
39
  ProgressBar.meta = {
@@ -15,13 +15,13 @@
15
15
  */ import React from 'react';
16
16
  import { blockDefaultProps } from '@lowdefy/block-utils';
17
17
  const Skeleton = ({ properties , methods })=>{
18
- return(/*#__PURE__*/ React.createElement("div", {
18
+ return /*#__PURE__*/ React.createElement("div", {
19
19
  className: 'skeleton ' + methods.makeCssClass(properties.style),
20
20
  style: {
21
21
  width: properties.width || '100%',
22
22
  height: properties.height || '100%'
23
23
  }
24
- }));
24
+ });
25
25
  };
26
26
  Skeleton.defaultProps = blockDefaultProps;
27
27
  Skeleton.meta = {
@@ -30,7 +30,7 @@ const SkeletonAvatar = ({ properties , methods })=>{
30
30
  size = 32;
31
31
  }
32
32
  }
33
- return(/*#__PURE__*/ React.createElement(Skeleton, {
33
+ return /*#__PURE__*/ React.createElement(Skeleton, {
34
34
  methods: methods,
35
35
  properties: {
36
36
  style: {
@@ -42,7 +42,7 @@ const SkeletonAvatar = ({ properties , methods })=>{
42
42
  width: size,
43
43
  height: size
44
44
  }
45
- }));
45
+ });
46
46
  };
47
47
  SkeletonAvatar.defaultProps = blockDefaultProps;
48
48
  SkeletonAvatar.meta = {
@@ -27,7 +27,7 @@ const SkeletonButton = ({ properties , methods })=>{
27
27
  default:
28
28
  height = 32;
29
29
  }
30
- return(/*#__PURE__*/ React.createElement(Skeleton, {
30
+ return /*#__PURE__*/ React.createElement(Skeleton, {
31
31
  methods: methods,
32
32
  properties: {
33
33
  style: {
@@ -39,7 +39,7 @@ const SkeletonButton = ({ properties , methods })=>{
39
39
  width: properties.width || '100%',
40
40
  height: height
41
41
  }
42
- }));
42
+ });
43
43
  };
44
44
  SkeletonButton.defaultProps = blockDefaultProps;
45
45
  SkeletonButton.meta = {
@@ -27,7 +27,7 @@ const SkeletonInput = ({ properties , methods })=>{
27
27
  default:
28
28
  inputHeight = 32;
29
29
  }
30
- return(/*#__PURE__*/ React.createElement("div", null, properties.label !== false && /*#__PURE__*/ React.createElement(Skeleton, {
30
+ return /*#__PURE__*/ React.createElement("div", null, properties.label !== false && /*#__PURE__*/ React.createElement(Skeleton, {
31
31
  methods: methods,
32
32
  properties: {
33
33
  width: properties.labelWidth || properties.width || '30%',
@@ -46,7 +46,7 @@ const SkeletonInput = ({ properties , methods })=>{
46
46
  height: properties.inputHeight || inputHeight,
47
47
  style: properties.inputStyle || {}
48
48
  }
49
- })));
49
+ }));
50
50
  };
51
51
  SkeletonInput.defaultProps = blockDefaultProps;
52
52
  SkeletonInput.meta = {
@@ -19,7 +19,7 @@ const SkeletonParagraph = ({ properties , methods })=>{
19
19
  const lines = [
20
20
  ...Array(properties.lines || 4).keys()
21
21
  ];
22
- return(/*#__PURE__*/ React.createElement("div", {
22
+ return /*#__PURE__*/ React.createElement("div", {
23
23
  style: {
24
24
  width: properties.width || '100%'
25
25
  }
@@ -36,8 +36,7 @@ const SkeletonParagraph = ({ properties , methods })=>{
36
36
  },
37
37
  ...properties.style || {}
38
38
  }
39
- })
40
- )));
39
+ })));
41
40
  };
42
41
  SkeletonParagraph.defaultProps = blockDefaultProps;
43
42
  SkeletonParagraph.meta = {
@@ -15,7 +15,7 @@
15
15
  */ import React from 'react';
16
16
  import { blockDefaultProps } from '@lowdefy/block-utils';
17
17
  const Spinner = ({ properties , methods })=>{
18
- return(/*#__PURE__*/ React.createElement("div", {
18
+ return /*#__PURE__*/ React.createElement("div", {
19
19
  className: methods.makeCssClass({
20
20
  height: properties.height || '100%',
21
21
  display: 'flex',
@@ -37,7 +37,7 @@ const Spinner = ({ properties , methods })=>{
37
37
  paddingTop: 2,
38
38
  fontFamily: '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'
39
39
  })
40
- }, "Lowdefy"))));
40
+ }, "Lowdefy")));
41
41
  };
42
42
  Spinner.defaultProps = blockDefaultProps;
43
43
  Spinner.meta = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/blocks-loaders",
3
- "version": "4.0.0-alpha.12",
3
+ "version": "4.0.0-alpha.13",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Lowdefy loader blocks.",
6
6
  "homepage": "https://lowdefy.com",
@@ -49,27 +49,28 @@
49
49
  "test": "jest --coverage"
50
50
  },
51
51
  "dependencies": {
52
- "@lowdefy/block-utils": "4.0.0-alpha.12",
53
- "@lowdefy/helpers": "4.0.0-alpha.12",
54
- "react": "17.0.2",
55
- "react-dom": "17.0.2"
52
+ "@lowdefy/block-utils": "4.0.0-alpha.13",
53
+ "@lowdefy/helpers": "4.0.0-alpha.13",
54
+ "react": "18.1.0",
55
+ "react-dom": "18.1.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@emotion/jest": "11.7.1",
59
- "@lowdefy/block-dev": "4.0.0-alpha.12",
60
- "@swc/cli": "0.1.55",
61
- "@swc/core": "1.2.135",
62
- "@swc/jest": "0.2.17",
63
- "@testing-library/dom": "8.11.3",
64
- "@testing-library/react": "13.0.0-alpha.4",
65
- "@testing-library/user-event": "14.0.0-alpha.14",
58
+ "@emotion/jest": "11.9.1",
59
+ "@lowdefy/block-dev": "4.0.0-alpha.13",
60
+ "@lowdefy/jest-yaml-transform": "4.0.0-alpha.13",
61
+ "@swc/cli": "0.1.57",
62
+ "@swc/core": "1.2.194",
63
+ "@swc/jest": "0.2.21",
64
+ "@testing-library/dom": "8.13.0",
65
+ "@testing-library/react": "13.3.0",
66
+ "@testing-library/user-event": "14.2.0",
66
67
  "copyfiles": "2.4.1",
67
- "jest": "27.5.1",
68
- "jest-serializer-html": "7.1.0",
69
- "jest-transform-yaml": "1.0.0"
68
+ "jest": "28.1.0",
69
+ "jest-environment-jsdom": "28.1.0",
70
+ "jest-serializer-html": "7.1.0"
70
71
  },
71
72
  "publishConfig": {
72
73
  "access": "public"
73
74
  },
74
- "gitHead": "41b6138a81bee7da362dad06345bc9f87b2c2133"
75
+ "gitHead": "e99b4b6c1f59804982fc148c0fe39dcf13b35d77"
75
76
  }