@lowdefy/layout 4.0.0-alpha.1 → 4.0.0-alpha.12

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/Area.js CHANGED
@@ -1,6 +1,5 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
1
  /*
3
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
4
3
 
5
4
  Licensed under the Apache License, Version 2.0 (the "License");
6
5
  you may not use this file except in compliance with the License.
@@ -17,7 +16,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
17
16
  import { Row } from 'antd';
18
17
  import { blockDefaultProps } from '@lowdefy/block-utils';
19
18
  import gutterSetup from './gutterSetup.js';
20
- const Area = ({ area , areaStyle , children , highlightBorders , id , makeCssClass })=>/*#__PURE__*/ _jsx(Row, {
19
+ const Area = ({ area , areaStyle , children , highlightBorders , id , makeCssClass })=>/*#__PURE__*/ React.createElement(Row, {
21
20
  id: id,
22
21
  align: area.align,
23
22
  className: makeCssClass(areaStyle),
@@ -29,9 +28,8 @@ const Area = ({ area , areaStyle , children , highlightBorders , id , makeCssCla
29
28
  flexWrap: area.wrap,
30
29
  overflow: area.overflow,
31
30
  border: highlightBorders && '1px dashed red'
32
- },
33
- children: children
34
- })
31
+ }
32
+ }, children)
35
33
  ;
36
34
  Area.defaultProps = blockDefaultProps;
37
35
  export default Area;
@@ -1,6 +1,5 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
1
  /*
3
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
4
3
 
5
4
  Licensed under the Apache License, Version 2.0 (the "License");
6
5
  you may not use this file except in compliance with the License.
@@ -17,6 +16,20 @@ import { jsx as _jsx } from "react/jsx-runtime";
17
16
  import { Col } from 'antd';
18
17
  import deriveLayout from './deriveLayout.js';
19
18
  import { blockDefaultProps } from '@lowdefy/block-utils';
19
+ function _extends() {
20
+ _extends = Object.assign || function(target) {
21
+ for(var i = 1; i < arguments.length; i++){
22
+ var source = arguments[i];
23
+ for(var key in source){
24
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
25
+ target[key] = source[key];
26
+ }
27
+ }
28
+ }
29
+ return target;
30
+ };
31
+ return _extends.apply(this, arguments);
32
+ }
20
33
  const alignSelf = (align)=>{
21
34
  if (align === 'bottom') {
22
35
  return 'flex-end';
@@ -31,22 +44,19 @@ const alignSelf = (align)=>{
31
44
  };
32
45
  const BlockLayout = ({ id , blockStyle , children , highlightBorders , layout , makeCssClass })=>{
33
46
  if (layout && layout.disabled) {
34
- return(/*#__PURE__*/ _jsx("div", {
47
+ return(/*#__PURE__*/ React.createElement("div", {
35
48
  id: id,
36
- className: makeCssClass(blockStyle),
37
- children: children
38
- }));
49
+ className: makeCssClass(blockStyle)
50
+ }, children));
39
51
  }
40
- return(/*#__PURE__*/ _jsx(Col, {
41
- ...deriveLayout(layout),
52
+ return(/*#__PURE__*/ React.createElement(Col, _extends({}, deriveLayout(layout), {
42
53
  style: {
43
54
  alignSelf: alignSelf(layout.align),
44
55
  border: highlightBorders && '1px dashed #8eccf5'
45
56
  },
46
57
  id: id,
47
- className: makeCssClass(blockStyle),
48
- children: children
49
- }));
58
+ className: makeCssClass(blockStyle)
59
+ }), children));
50
60
  };
51
61
  BlockLayout.defaultProps = blockDefaultProps;
52
62
  export default BlockLayout;
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
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.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
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.
@@ -0,0 +1,17 @@
1
+ /*
2
+ Copyright 2020-2022 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
17
+ @import 'antd/lib/grid/style/index.less';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/layout",
3
- "version": "4.0.0-alpha.1",
3
+ "version": "4.0.0-alpha.12",
4
4
  "licence": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -27,7 +27,8 @@
27
27
  },
28
28
  "type": "module",
29
29
  "exports": {
30
- ".": "./dist/index.js"
30
+ ".": "./dist/index.js",
31
+ "./*": "./dist/*"
31
32
  },
32
33
  "files": [
33
34
  "dist/*"
@@ -41,29 +42,28 @@
41
42
  "test": "jest --coverage"
42
43
  },
43
44
  "dependencies": {
44
- "@lowdefy/block-utils": "4.0.0-alpha.1",
45
- "@lowdefy/helpers": "4.0.0-alpha.1",
46
- "antd": "4.17.0-alpha.7",
47
- "react": "18.0.0-alpha-327d5c484-20211106",
48
- "react-dom": "18.0.0-alpha-327d5c484-20211106"
45
+ "@lowdefy/block-utils": "4.0.0-alpha.12",
46
+ "@lowdefy/helpers": "4.0.0-alpha.12",
47
+ "antd": "4.18.2",
48
+ "react": "17.0.2",
49
+ "react-dom": "17.0.2"
49
50
  },
50
51
  "devDependencies": {
51
- "@babel/preset-react": "7.16.0",
52
- "@emotion/jest": "11.5.0",
53
- "@lowdefy/block-dev": "4.0.0-alpha.1",
54
- "@swc/cli": "0.1.52",
55
- "@swc/core": "1.2.112",
56
- "@swc/jest": "0.2.9",
57
- "@testing-library/dom": "8.10.1",
52
+ "@emotion/jest": "11.7.1",
53
+ "@lowdefy/block-dev": "4.0.0-alpha.12",
54
+ "@swc/cli": "0.1.55",
55
+ "@swc/core": "1.2.135",
56
+ "@swc/jest": "0.2.17",
57
+ "@testing-library/dom": "8.11.3",
58
58
  "@testing-library/react": "13.0.0-alpha.4",
59
59
  "@testing-library/user-event": "14.0.0-alpha.14",
60
60
  "copyfiles": "2.4.1",
61
- "jest": "27.3.1",
61
+ "jest": "27.5.1",
62
62
  "jest-serializer-html": "7.1.0",
63
- "jest-transform-yaml": "0.1.2"
63
+ "jest-transform-yaml": "1.0.0"
64
64
  },
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "c97a8fa6b5a641e7d50df09f5601a9c586eeb65a"
68
+ "gitHead": "41b6138a81bee7da362dad06345bc9f87b2c2133"
69
69
  }