@lowdefy/blocks-antd 4.0.0-rc.5 → 4.0.0-rc.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.
@@ -1,148 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "type": "object",
5
- "additionalProperties": false,
6
- "properties": {
7
- "header": {
8
- "type": "object",
9
- "description": "Header properties.",
10
- "additionalProperties": false,
11
- "properties": {
12
- "theme": {
13
- "type": "string",
14
- "enum": ["light", "dark"],
15
- "default": "dark",
16
- "description": "Header theme color."
17
- },
18
- "style": {
19
- "type": "object",
20
- "description": "Header css style object.",
21
- "docs": {
22
- "displayType": "yaml"
23
- }
24
- }
25
- }
26
- },
27
- "main": {
28
- "type": "object",
29
- "description": "Main layout properties.",
30
- "additionalProperties": false,
31
- "properties": {
32
- "style": {
33
- "type": "object",
34
- "description": "Main css style object.",
35
- "docs": {
36
- "displayType": "yaml"
37
- }
38
- }
39
- }
40
- },
41
- "content": {
42
- "type": "object",
43
- "description": "Content properties.",
44
- "additionalProperties": false,
45
- "properties": {
46
- "style": {
47
- "type": "object",
48
- "description": "Content css style object.",
49
- "docs": {
50
- "displayType": "yaml"
51
- }
52
- }
53
- }
54
- },
55
- "sider": {
56
- "type": "object",
57
- "description": "Sider properties.",
58
- "additionalProperties": false,
59
- "properties": {
60
- "breakpoint": {
61
- "type": "string",
62
- "enum": ["xs", "sm", "md", "lg", "xl"],
63
- "default": "sm",
64
- "description": "Breakpoint of the responsive layout."
65
- },
66
- "collapsedWidth": {
67
- "type": "integer",
68
- "description": "Width of the collapsed sidebar, by setting to 0 a special trigger will appear."
69
- },
70
- "collapsible": {
71
- "type": "boolean",
72
- "default": true,
73
- "description": "Whether can be collapsed."
74
- },
75
- "initialCollapsed": {
76
- "type": "boolean",
77
- "default": true,
78
- "description": "Set the initial collapsed state."
79
- },
80
- "reverseArrow": {
81
- "type": "boolean",
82
- "default": false,
83
- "description": "Direction of arrow, for a sider that expands from the right."
84
- },
85
- "theme": {
86
- "type": "string",
87
- "enum": ["light", "dark"],
88
- "default": "light",
89
- "description": "Color theme of the sidebar."
90
- },
91
- "style": {
92
- "type": "object",
93
- "description": "Css style object to apply to sider.",
94
- "docs": {
95
- "displayType": "yaml"
96
- }
97
- },
98
- "width": {
99
- "type": ["string", "number"],
100
- "description": "width of the sidebar",
101
- "docs": {
102
- "displayType": "string"
103
- }
104
- }
105
- }
106
- },
107
- "footer": {
108
- "type": "object",
109
- "description": "Footer properties.",
110
- "additionalProperties": false,
111
- "properties": {
112
- "style": {
113
- "type": "object",
114
- "description": "Footer css style object.",
115
- "docs": {
116
- "displayType": "yaml"
117
- }
118
- }
119
- }
120
- },
121
- "style": {
122
- "type": "object",
123
- "description": "Css style object to apply to layout.",
124
- "docs": {
125
- "displayType": "yaml"
126
- }
127
- }
128
- }
129
- },
130
- "events": {
131
- "type": "object",
132
- "additionalProperties": false,
133
- "properties": {
134
- "onBreakpoint": {
135
- "type": "array",
136
- "description": "Trigger actions when sider breakpoint id crossed."
137
- },
138
- "onSiderClose": {
139
- "type": "array",
140
- "description": "Trigger actions when sider is closed."
141
- },
142
- "onSiderOpen": {
143
- "type": "array",
144
- "description": "Trigger actions when sider is opened."
145
- }
146
- }
147
- }
148
- }
@@ -1,98 +0,0 @@
1
- /*
2
- Copyright 2020-2023 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
- */ import React from 'react';
16
- import { blockDefaultProps } from '@lowdefy/block-utils';
17
- import { mergeObjects } from '@lowdefy/helpers';
18
- import Content from '../Content/Content.js';
19
- import Footer from '../Footer/Footer.js';
20
- import Header from '../Header/Header.js';
21
- import Layout from '../Layout/Layout.js';
22
- import Sider from '../Sider/Sider.js';
23
- const PageHSCF = ({ blockId , components , content , events , methods , properties })=>/*#__PURE__*/ React.createElement(Layout, {
24
- blockId: blockId,
25
- components: components,
26
- events: events,
27
- properties: {
28
- style: mergeObjects([
29
- {
30
- minHeight: '100vh'
31
- },
32
- properties.style
33
- ])
34
- },
35
- content: {
36
- content: ()=>/*#__PURE__*/ React.createElement(React.Fragment, null, content.header && /*#__PURE__*/ React.createElement(Header, {
37
- blockId: `${blockId}_header`,
38
- components: components,
39
- events: events,
40
- properties: properties.header,
41
- content: {
42
- content: ()=>content.header()
43
- }
44
- }), /*#__PURE__*/ React.createElement(Layout, {
45
- blockId: `${blockId}_layout`,
46
- components: components,
47
- events: events,
48
- properties: properties.main,
49
- content: {
50
- content: ()=>/*#__PURE__*/ React.createElement(React.Fragment, null, content.sider && /*#__PURE__*/ React.createElement(Sider, {
51
- blockId: `${blockId}_sider`,
52
- components: components,
53
- events: events,
54
- properties: properties.sider,
55
- methods: methods,
56
- content: {
57
- content: ()=>content.sider()
58
- },
59
- rename: {
60
- events: {
61
- onClose: 'onSiderClose',
62
- onOpen: 'onSiderOpen'
63
- },
64
- methods: {
65
- toggleOpen: 'toggleSiderOpen',
66
- setOpen: 'setSiderOpen'
67
- }
68
- }
69
- }), content.content && /*#__PURE__*/ React.createElement(Content, {
70
- blockId: `${blockId}_content`,
71
- components: components,
72
- events: events,
73
- properties: properties.content,
74
- content: {
75
- content: ()=>content.content()
76
- }
77
- }))
78
- }
79
- }), content.footer && /*#__PURE__*/ React.createElement(Footer, {
80
- blockId: `${blockId}_footer`,
81
- components: components,
82
- events: events,
83
- properties: properties.footer,
84
- content: {
85
- content: ()=>content.footer()
86
- }
87
- }))
88
- }
89
- });
90
- PageHSCF.defaultProps = blockDefaultProps;
91
- PageHSCF.meta = {
92
- category: 'container',
93
- icons: [],
94
- styles: [
95
- 'blocks/PageHSCF/style.less'
96
- ]
97
- };
98
- export default PageHSCF;
@@ -1,147 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "type": "object",
5
- "additionalProperties": false,
6
- "properties": {
7
- "header": {
8
- "type": "object",
9
- "description": "Header properties.",
10
- "additionalProperties": false,
11
- "properties": {
12
- "theme": {
13
- "type": "string",
14
- "enum": ["light", "dark"],
15
- "default": "dark",
16
- "description": "Header theme color."
17
- },
18
- "style": {
19
- "type": "object",
20
- "description": "Header css style object.",
21
- "docs": {
22
- "displayType": "yaml"
23
- }
24
- }
25
- }
26
- },
27
- "main": {
28
- "type": "object",
29
- "description": "Main layout properties.",
30
- "additionalProperties": false,
31
- "properties": {
32
- "style": {
33
- "type": "object",
34
- "description": "Main css style object.",
35
- "docs": {
36
- "displayType": "yaml"
37
- }
38
- }
39
- }
40
- },
41
- "content": {
42
- "type": "object",
43
- "description": "Content properties.",
44
- "additionalProperties": false,
45
- "properties": {
46
- "style": {
47
- "type": "object",
48
- "description": "Content css style object.",
49
- "docs": {
50
- "displayType": "yaml"
51
- }
52
- }
53
- }
54
- },
55
- "sider": {
56
- "type": "object",
57
- "description": "Sider properties.",
58
- "additionalProperties": false,
59
- "properties": {
60
- "breakpoint": {
61
- "type": "string",
62
- "enum": ["xs", "sm", "md", "lg", "xl", "xxl"],
63
- "default": "sm",
64
- "description": "Breakpoint of the responsive layout."
65
- },
66
- "collapsedWidth": {
67
- "type": "integer",
68
- "description": "Width of the collapsed sidebar, by setting to 0 a special trigger will appear."
69
- },
70
- "collapsible": {
71
- "type": "boolean",
72
- "default": true,
73
- "description": "Whether can be collapsed."
74
- },
75
- "initialCollapsed": {
76
- "type": "boolean",
77
- "default": true,
78
- "description": "Set the initial collapsed state."
79
- },
80
- "reverseArrow": {
81
- "type": "boolean",
82
- "default": false,
83
- "description": "Direction of arrow, for a sider that expands from the right."
84
- },
85
- "theme": {
86
- "type": "string",
87
- "enum": ["light", "dark"],
88
- "default": "light",
89
- "description": "Color theme of the sidebar"
90
- },
91
- "style": {
92
- "type": "object",
93
- "description": "Css style object to apply to sider.",
94
- "docs": {
95
- "displayType": "yaml"
96
- }
97
- },
98
- "width": {
99
- "type": ["string", "number"],
100
- "description": "Width of the sidebar.",
101
- "docs": {
102
- "displayType": "string"
103
- }
104
- }
105
- }
106
- },
107
- "footer": {
108
- "type": "object",
109
- "description": "Footer properties.",
110
- "additionalProperties": false,
111
- "properties": {
112
- "style": {
113
- "type": "object",
114
- "description": "Footer css style object.",
115
- "docs": {
116
- "displayType": "yaml"
117
- }
118
- }
119
- }
120
- },
121
- "style": {
122
- "type": "object",
123
- "description": "Css style object to apply to layout.",
124
- "docs": {
125
- "displayType": "yaml"
126
- }
127
- }
128
- }
129
- },
130
- "events": {
131
- "type": "object",
132
- "additionalProperties": false,
133
- "properties": {
134
- "onBreakpoint": {
135
- "type": "array"
136
- },
137
- "onSiderClose": {
138
- "type": "array",
139
- "description": "Trigger actions when sider is closed."
140
- },
141
- "onSiderOpen": {
142
- "type": "array",
143
- "description": "Trigger actions when sider is opened."
144
- }
145
- }
146
- }
147
- }
@@ -1,21 +0,0 @@
1
- /*
2
- Copyright 2020-2023 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 '../Header/style.less';
18
- @import '../Footer/style.less';
19
- @import '../Content/style.less';
20
- @import '../Layout/style.less';
21
- @import '../Sider/style.less';
@@ -1,98 +0,0 @@
1
- /*
2
- Copyright 2020-2023 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
- */ import React from 'react';
16
- import { blockDefaultProps } from '@lowdefy/block-utils';
17
- import { mergeObjects } from '@lowdefy/helpers';
18
- import Content from '../Content/Content.js';
19
- import Footer from '../Footer/Footer.js';
20
- import Header from '../Header/Header.js';
21
- import Layout from '../Layout/Layout.js';
22
- import Sider from '../Sider/Sider.js';
23
- const PageSHCF = ({ blockId , components , events , content , properties , methods })=>/*#__PURE__*/ React.createElement(Layout, {
24
- blockId: blockId,
25
- components: components,
26
- events: events,
27
- properties: {
28
- style: mergeObjects([
29
- {
30
- minHeight: '100vh'
31
- },
32
- properties.style
33
- ])
34
- },
35
- content: {
36
- content: ()=>/*#__PURE__*/ React.createElement(React.Fragment, null, content.sider && /*#__PURE__*/ React.createElement(Sider, {
37
- blockId: `${blockId}_sider`,
38
- components: components,
39
- events: events,
40
- properties: properties.sider,
41
- methods: methods,
42
- content: {
43
- content: ()=>content.sider()
44
- },
45
- rename: {
46
- events: {
47
- onClose: 'onSiderClose',
48
- onOpen: 'onSiderOpen'
49
- },
50
- methods: {
51
- toggleOpen: 'toggleSiderOpen',
52
- setOpen: 'setSiderOpen'
53
- }
54
- }
55
- }), /*#__PURE__*/ React.createElement(Layout, {
56
- blockId: `${blockId}_layout`,
57
- components: components,
58
- events: events,
59
- properties: properties.main,
60
- content: {
61
- content: ()=>/*#__PURE__*/ React.createElement(React.Fragment, null, content.header && /*#__PURE__*/ React.createElement(Header, {
62
- blockId: `${blockId}_header`,
63
- components: components,
64
- events: events,
65
- properties: properties.header,
66
- content: {
67
- content: ()=>content.header()
68
- }
69
- }), content.content && /*#__PURE__*/ React.createElement(Content, {
70
- blockId: `${blockId}_content`,
71
- components: components,
72
- events: events,
73
- properties: properties.content,
74
- content: {
75
- content: ()=>content.content()
76
- }
77
- }), content.footer && /*#__PURE__*/ React.createElement(Footer, {
78
- blockId: `${blockId}_footer`,
79
- components: components,
80
- events: events,
81
- properties: properties.footer,
82
- content: {
83
- content: ()=>content.footer()
84
- }
85
- }))
86
- }
87
- }))
88
- }
89
- });
90
- PageSHCF.defaultProps = blockDefaultProps;
91
- PageSHCF.meta = {
92
- category: 'container',
93
- icons: [],
94
- styles: [
95
- 'blocks/PageSHCF/style.less'
96
- ]
97
- };
98
- export default PageSHCF;
@@ -1,148 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "type": "object",
5
- "additionalProperties": false,
6
- "properties": {
7
- "header": {
8
- "type": "object",
9
- "description": "Header properties.",
10
- "additionalProperties": false,
11
- "properties": {
12
- "theme": {
13
- "type": "string",
14
- "enum": ["light", "dark"],
15
- "default": "dark",
16
- "description": "Header theme color."
17
- },
18
- "style": {
19
- "type": "object",
20
- "description": "Header css style object.",
21
- "docs": {
22
- "displayType": "yaml"
23
- }
24
- }
25
- }
26
- },
27
- "main": {
28
- "type": "object",
29
- "description": "Main layout properties.",
30
- "additionalProperties": false,
31
- "properties": {
32
- "style": {
33
- "type": "object",
34
- "description": "Main css style object.",
35
- "docs": {
36
- "displayType": "yaml"
37
- }
38
- }
39
- }
40
- },
41
- "content": {
42
- "type": "object",
43
- "description": "Content properties.",
44
- "additionalProperties": false,
45
- "properties": {
46
- "style": {
47
- "type": "object",
48
- "description": "Content css style object.",
49
- "docs": {
50
- "displayType": "yaml"
51
- }
52
- }
53
- }
54
- },
55
- "sider": {
56
- "type": "object",
57
- "description": "Sider properties.",
58
- "additionalProperties": false,
59
- "properties": {
60
- "breakpoint": {
61
- "type": "string",
62
- "enum": ["xs", "sm", "md", "lg", "xl", "xxl"],
63
- "default": "sm",
64
- "description": "Breakpoint of the responsive layout"
65
- },
66
- "collapsedWidth": {
67
- "type": "integer",
68
- "description": "Width of the collapsed sidebar, by setting to 0 a special trigger will appear"
69
- },
70
- "collapsible": {
71
- "type": "boolean",
72
- "default": true,
73
- "description": "Whether can be collapsed"
74
- },
75
- "initialCollapsed": {
76
- "type": "boolean",
77
- "default": true,
78
- "description": "Set the initial collapsed state"
79
- },
80
- "reverseArrow": {
81
- "type": "boolean",
82
- "default": false,
83
- "description": "Direction of arrow, for a sider that expands from the right"
84
- },
85
- "theme": {
86
- "type": "string",
87
- "enum": ["light", "dark"],
88
- "default": "light",
89
- "description": "Color theme of the sidebar"
90
- },
91
- "style": {
92
- "type": "object",
93
- "description": "Css style object to apply to sider.",
94
- "docs": {
95
- "displayType": "yaml"
96
- }
97
- },
98
- "width": {
99
- "type": ["string", "number"],
100
- "description": "width of the sidebar",
101
- "docs": {
102
- "displayType": "string"
103
- }
104
- }
105
- }
106
- },
107
- "footer": {
108
- "type": "object",
109
- "description": "Footer properties.",
110
- "additionalProperties": false,
111
- "properties": {
112
- "style": {
113
- "type": "object",
114
- "description": "Footer css style object.",
115
- "docs": {
116
- "displayType": "yaml"
117
- }
118
- }
119
- }
120
- },
121
- "style": {
122
- "type": "object",
123
- "description": "Css style object to apply to layout.",
124
- "docs": {
125
- "displayType": "yaml"
126
- }
127
- }
128
- }
129
- },
130
- "events": {
131
- "type": "object",
132
- "additionalProperties": false,
133
- "properties": {
134
- "onBreakpoint": {
135
- "type": "array",
136
- "description": "Trigger actions when sider breakpoint id crossed."
137
- },
138
- "onSiderClose": {
139
- "type": "array",
140
- "description": "Trigger actions when sider is closed."
141
- },
142
- "onSiderOpen": {
143
- "type": "array",
144
- "description": "Trigger actions when sider is opened."
145
- }
146
- }
147
- }
148
- }
@@ -1,21 +0,0 @@
1
- /*
2
- Copyright 2020-2023 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 '../Header/style.less';
18
- @import '../Footer/style.less';
19
- @import '../Content/style.less';
20
- @import '../Layout/style.less';
21
- @import '../Sider/style.less';