@lowdefy/docs 4.0.0-alpha.7 → 4.0.0-alpha.8

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.
Files changed (275) hide show
  1. package/dist/operators/client/filter_default_value.js +55 -0
  2. package/{public/modules/connectDocsearch.js → dist/operatorsClient.js} +1 -19
  3. package/{templates/blocks/schemaTransformer.js → dist/types.js} +5 -10
  4. package/package.json +19 -3
  5. package/404.yaml +0 -26
  6. package/CHANGELOG.md +0 -697
  7. package/actions/CallMethod.yaml +0 -57
  8. package/actions/JsAction.yaml +0 -281
  9. package/actions/Link.yaml +0 -120
  10. package/actions/Login.yaml +0 -123
  11. package/actions/Logout.yaml +0 -44
  12. package/actions/Message.yaml +0 -68
  13. package/actions/Notification.yaml +0 -84
  14. package/actions/Request.yaml +0 -70
  15. package/actions/Reset.yaml +0 -42
  16. package/actions/ResetValidation.yaml +0 -102
  17. package/actions/ScrollTo.yaml +0 -100
  18. package/actions/SetGlobal.yaml +0 -78
  19. package/actions/SetState.yaml +0 -85
  20. package/actions/Throw.yaml +0 -89
  21. package/actions/Validate.yaml +0 -104
  22. package/actions/Wait.yaml +0 -40
  23. package/blocks/all_icons.yaml +0 -803
  24. package/blocks/container/Affix.yaml +0 -26
  25. package/blocks/container/Alert.yaml +0 -27
  26. package/blocks/container/Badge.yaml +0 -27
  27. package/blocks/container/Box.yaml +0 -27
  28. package/blocks/container/Card.yaml +0 -29
  29. package/blocks/container/Collapse.yaml +0 -38
  30. package/blocks/container/Comment.yaml +0 -43
  31. package/blocks/container/ConfirmModal.yaml +0 -36
  32. package/blocks/container/Descriptions.yaml +0 -51
  33. package/blocks/container/Drawer.yaml +0 -46
  34. package/blocks/container/Label.yaml +0 -28
  35. package/blocks/container/Modal.yaml +0 -46
  36. package/blocks/container/PageHCF.yaml +0 -28
  37. package/blocks/container/PageHCSF.yaml +0 -29
  38. package/blocks/container/PageHSCF.yaml +0 -29
  39. package/blocks/container/PageHeaderMenu.yaml +0 -52
  40. package/blocks/container/PageSHCF.yaml +0 -29
  41. package/blocks/container/PageSiderMenu.yaml +0 -53
  42. package/blocks/container/Result.yaml +0 -34
  43. package/blocks/container/Span.yaml +0 -27
  44. package/blocks/container/Spin.yaml +0 -27
  45. package/blocks/container/Tabs.yaml +0 -41
  46. package/blocks/container/Tooltip.yaml +0 -38
  47. package/blocks/display/Anchor.yaml +0 -25
  48. package/blocks/display/Avatar.yaml +0 -23
  49. package/blocks/display/Breadcrumb.yaml +0 -28
  50. package/blocks/display/Button.yaml +0 -43
  51. package/blocks/display/DangerousHtml.yaml +0 -62
  52. package/blocks/display/DangerousMarkdown.yaml +0 -46
  53. package/blocks/display/Divider.yaml +0 -23
  54. package/blocks/display/EChart.yaml +0 -53
  55. package/blocks/display/Html.yaml +0 -50
  56. package/blocks/display/Icon.yaml +0 -23
  57. package/blocks/display/Img.yaml +0 -40
  58. package/blocks/display/Markdown.yaml +0 -31
  59. package/blocks/display/MarkdownWithCode.yaml +0 -46
  60. package/blocks/display/Menu.yaml +0 -48
  61. package/blocks/display/Message.yaml +0 -34
  62. package/blocks/display/MobileMenu.yaml +0 -47
  63. package/blocks/display/Notification.yaml +0 -34
  64. package/blocks/display/Paragraph.yaml +0 -30
  65. package/blocks/display/Progress.yaml +0 -52
  66. package/blocks/display/Skeleton.yaml +0 -27
  67. package/blocks/display/Statistic.yaml +0 -35
  68. package/blocks/display/Title.yaml +0 -32
  69. package/blocks/input/AutoComplete.yaml +0 -30
  70. package/blocks/input/ButtonSelector.yaml +0 -36
  71. package/blocks/input/CheckboxSelector.yaml +0 -36
  72. package/blocks/input/CheckboxSwitch.yaml +0 -56
  73. package/blocks/input/ChromeColorSelector.yaml +0 -24
  74. package/blocks/input/CircleColorSelector.yaml +0 -24
  75. package/blocks/input/ColorSelector.yaml +0 -24
  76. package/blocks/input/CompactColorSelector.yaml +0 -24
  77. package/blocks/input/DateRangeSelector.yaml +0 -26
  78. package/blocks/input/DateSelector.yaml +0 -26
  79. package/blocks/input/DateTimeSelector.yaml +0 -28
  80. package/blocks/input/GithubColorSelector.yaml +0 -24
  81. package/blocks/input/MonthSelector.yaml +0 -26
  82. package/blocks/input/MultipleSelector.yaml +0 -117
  83. package/blocks/input/NumberInput.yaml +0 -24
  84. package/blocks/input/Pagination.yaml +0 -33
  85. package/blocks/input/ParagraphInput.yaml +0 -32
  86. package/blocks/input/PasswordInput.yaml +0 -48
  87. package/blocks/input/RadioSelector.yaml +0 -36
  88. package/blocks/input/RatingSlider.yaml +0 -24
  89. package/blocks/input/S3UploadButton.yaml +0 -28
  90. package/blocks/input/Selector.yaml +0 -98
  91. package/blocks/input/SliderColorSelector.yaml +0 -24
  92. package/blocks/input/SwatchesColorSelector.yaml +0 -24
  93. package/blocks/input/Switch.yaml +0 -24
  94. package/blocks/input/TextArea.yaml +0 -27
  95. package/blocks/input/TextInput.yaml +0 -59
  96. package/blocks/input/TitleInput.yaml +0 -32
  97. package/blocks/input/TwitterColorSelector.yaml +0 -24
  98. package/blocks/input/WeekSelector.yaml +0 -26
  99. package/blocks/list/ControlledList.yaml +0 -191
  100. package/blocks/list/List.yaml +0 -157
  101. package/blocks/list/TimelineList.yaml +0 -136
  102. package/body.html +0 -1
  103. package/concepts/blocks.yaml +0 -249
  104. package/concepts/cli.yaml +0 -173
  105. package/concepts/connections-and-requests.yaml +0 -114
  106. package/concepts/context-and-state.yaml +0 -82
  107. package/concepts/custom-blocks.yaml +0 -190
  108. package/concepts/custom-code.yaml +0 -197
  109. package/concepts/events-and-actions.yaml +0 -224
  110. package/concepts/hosting-files.yaml +0 -50
  111. package/concepts/layout.yaml +0 -1464
  112. package/concepts/lists.yaml +0 -162
  113. package/concepts/lowdefy-schema.yaml +0 -245
  114. package/concepts/operators.yaml +0 -66
  115. package/concepts/overview.yaml +0 -48
  116. package/concepts/secrets.yaml +0 -56
  117. package/connections/AWSS3.yaml +0 -228
  118. package/connections/AmazonRedshift.yaml +0 -75
  119. package/connections/AxiosHttp.yaml +0 -194
  120. package/connections/Elasticsearch.yaml +0 -378
  121. package/connections/GoogleSheet.yaml +0 -332
  122. package/connections/Knex.yaml +0 -181
  123. package/connections/KnexRequests.md +0 -121
  124. package/connections/MSSQL.yaml +0 -90
  125. package/connections/MariaDB.yaml +0 -77
  126. package/connections/MongoDB.yaml +0 -581
  127. package/connections/MySQL.yaml +0 -92
  128. package/connections/OracleDB.yaml +0 -73
  129. package/connections/PostgreSQL.yaml +0 -99
  130. package/connections/Redis.yaml +0 -147
  131. package/connections/SQLite.yaml +0 -94
  132. package/connections/SendGridMail.yaml +0 -113
  133. package/connections/Stripe.yaml +0 -139
  134. package/deployment/aws-lambda.yaml +0 -128
  135. package/deployment/docker.yaml +0 -118
  136. package/deployment/netlify.yaml +0 -69
  137. package/deployment/node-server.yaml +0 -111
  138. package/head.html +0 -7
  139. package/howto/generate-csv.yaml.njk +0 -252
  140. package/howto/generate-pdf.yaml.njk +0 -651
  141. package/howto/generateCsv/lowdefy.yaml +0 -64
  142. package/howto/generateCsv/public/csvMake.js +0 -27
  143. package/howto/generatePdf/inv_template.yaml +0 -200
  144. package/howto/generatePdf/lowdefy.yaml +0 -117
  145. package/howto/generatePdf/my_header.html +0 -1
  146. package/howto/generatePdf/public/logo_example.png +0 -0
  147. package/howto/generatePdf/public/modules/importUmd.js +0 -7
  148. package/howto/generatePdf/public/modules/pdfMake.js +0 -7
  149. package/howto/generatePdf/public/modules/vfs_fonts.js +0 -12
  150. package/howto/use-refrences.md +0 -5
  151. package/introduction.yaml +0 -100
  152. package/lowdefy.yaml +0 -66
  153. package/menus.yaml +0 -832
  154. package/operators/_actions.yaml +0 -123
  155. package/operators/_and.yaml +0 -90
  156. package/operators/_args.yaml +0 -79
  157. package/operators/_array.yaml +0 -326
  158. package/operators/_base64.yaml +0 -56
  159. package/operators/_change_case.yaml +0 -347
  160. package/operators/_date.yaml +0 -71
  161. package/operators/_diff.yaml +0 -75
  162. package/operators/_divide.yaml +0 -46
  163. package/operators/_eq.yaml +0 -67
  164. package/operators/_event.yaml +0 -103
  165. package/operators/_format.yaml +0 -209
  166. package/operators/_function.yaml +0 -66
  167. package/operators/_get.yaml +0 -108
  168. package/operators/_global.yaml +0 -107
  169. package/operators/_gt.yaml +0 -65
  170. package/operators/_gte.yaml +0 -65
  171. package/operators/_hash.yaml +0 -109
  172. package/operators/_if.yaml +0 -44
  173. package/operators/_if_none.yaml +0 -61
  174. package/operators/_index.yaml +0 -65
  175. package/operators/_input.yaml +0 -114
  176. package/operators/_js.yaml +0 -189
  177. package/operators/_json.yaml +0 -128
  178. package/operators/_list_contexts.yaml +0 -37
  179. package/operators/_location.yaml +0 -59
  180. package/operators/_log.yaml +0 -36
  181. package/operators/_lt.yaml +0 -65
  182. package/operators/_lte.yaml +0 -65
  183. package/operators/_math.yaml +0 -374
  184. package/operators/_media.yaml +0 -86
  185. package/operators/_menu.yaml +0 -81
  186. package/operators/_mql.yaml +0 -101
  187. package/operators/_ne.yaml +0 -77
  188. package/operators/_not.yaml +0 -47
  189. package/operators/_number.yaml +0 -157
  190. package/operators/_nunjucks.yaml +0 -73
  191. package/operators/_object.yaml +0 -193
  192. package/operators/_operator.yaml +0 -47
  193. package/operators/_or.yaml +0 -81
  194. package/operators/_product.yaml +0 -59
  195. package/operators/_random.yaml +0 -104
  196. package/operators/_ref.yaml +0 -266
  197. package/operators/_regex.yaml +0 -83
  198. package/operators/_request.yaml +0 -50
  199. package/operators/_secret.yaml +0 -74
  200. package/operators/_state.yaml +0 -114
  201. package/operators/_string.yaml +0 -283
  202. package/operators/_subtract.yaml +0 -38
  203. package/operators/_sum.yaml +0 -59
  204. package/operators/_switch.yaml +0 -51
  205. package/operators/_type.yaml +0 -92
  206. package/operators/_uri.yaml +0 -56
  207. package/operators/_url_query.yaml +0 -120
  208. package/operators/_user.yaml +0 -107
  209. package/operators/_uuid.yaml +0 -114
  210. package/operators/_var.yaml +0 -105
  211. package/operators/_yaml.yaml +0 -107
  212. package/pages.yaml +0 -227
  213. package/public/images/authors/gervwyk.jpeg +0 -0
  214. package/public/images/authors/sandile.jpeg +0 -0
  215. package/public/images/howto/header_generate_csv.jpg +0 -0
  216. package/public/images/howto/header_generate_pdf.jpg +0 -0
  217. package/public/logo_example.png +0 -0
  218. package/public/lowdefy_app_schema.png +0 -0
  219. package/public/modules/csvMake.js +0 -27
  220. package/public/modules/filterDefaultValue.js +0 -48
  221. package/public/modules/importUmd.js +0 -7
  222. package/public/modules/index.js +0 -5
  223. package/public/modules/pdfMake.js +0 -7
  224. package/public/modules/test/filterDefaultValue.test.js +0 -91
  225. package/public/modules/vfs_fonts.js +0 -12
  226. package/public/sitemap.xml +0 -1024
  227. package/templates/actions.yaml.njk +0 -68
  228. package/templates/blocks/defaultValueTransformer.js +0 -53
  229. package/templates/blocks/exampleTransformer.js +0 -81
  230. package/templates/blocks/layout.yaml +0 -114
  231. package/templates/blocks/propertiesFormTransformer.js +0 -419
  232. package/templates/blocks/propertiesGetterTransformer.js +0 -132
  233. package/templates/blocks/schema.yaml.njk +0 -42
  234. package/templates/blocks/style.yaml +0 -26
  235. package/templates/blocks/template.yaml.njk +0 -495
  236. package/templates/blog.yaml.njk +0 -221
  237. package/templates/cli_command.yaml.njk +0 -37
  238. package/templates/footer.yaml.njk +0 -604
  239. package/templates/general.yaml.njk +0 -124
  240. package/templates/generateSitemap.js +0 -41
  241. package/templates/header.yaml +0 -138
  242. package/templates/navigation_buttons.yaml +0 -68
  243. package/templates/operators.yaml.njk +0 -82
  244. package/templates/operatorsMethodTransformer.js +0 -119
  245. package/templates/test/array.test.js +0 -1335
  246. package/templates/test/boolean.test.js +0 -98
  247. package/templates/test/button.test.js +0 -166
  248. package/templates/test/color.test.js +0 -126
  249. package/templates/test/enum.test.js +0 -105
  250. package/templates/test/icon.test.js +0 -109
  251. package/templates/test/integer.test.js +0 -99
  252. package/templates/test/manual.test.js +0 -238
  253. package/templates/test/number.test.js +0 -99
  254. package/templates/test/object.test.js +0 -434
  255. package/templates/test/oneOf.test.js +0 -794
  256. package/templates/test/string.test.js +0 -98
  257. package/templates/test/yaml.test.js +0 -605
  258. package/tutorial/next-steps.yaml +0 -83
  259. package/tutorial/tutorial-actions-operators-config.yaml +0 -142
  260. package/tutorial/tutorial-actions-operators.yaml +0 -436
  261. package/tutorial/tutorial-add-blocks-config.yaml +0 -109
  262. package/tutorial/tutorial-add-blocks.yaml +0 -195
  263. package/tutorial/tutorial-create-page-config.yaml +0 -77
  264. package/tutorial/tutorial-create-page.yaml +0 -196
  265. package/tutorial/tutorial-deploy.yaml +0 -146
  266. package/tutorial/tutorial-requests-config.yaml +0 -186
  267. package/tutorial/tutorial-requests.yaml +0 -338
  268. package/tutorial/tutorial-start.yaml +0 -282
  269. package/users/login-and-logout.yaml +0 -164
  270. package/users/openid-connect.yaml +0 -84
  271. package/users/protected-pages.yaml +0 -67
  272. package/users/roles.yaml +0 -70
  273. package/users/user-object.yaml +0 -73
  274. package/users/users-introduction.yaml +0 -80
  275. package/version.yaml +0 -1
@@ -1,1464 +0,0 @@
1
- # Copyright 2020-2021 Lowdefy, Inc
2
-
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
-
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- _ref:
16
- path: templates/general.yaml.njk
17
- vars:
18
- pageId: layout
19
- pageTitle: Layout
20
- section: Concepts
21
- filePath: concepts/layout.yaml
22
- content:
23
- - id: markdown_intro
24
- type: Markdown
25
- properties:
26
- content: |
27
- Containers blocks are used to arrange blocks on a page. Blocks of category `container`, `context` and `list` all function as container blocks. Container blocks have content areas into which a list of blocks are rendered. `List` category blocks can render container areas for each element in the data array.
28
-
29
- Blocks on a page can be arranged using a __span__ or __flex__ layout. Blocks in __span__ layout are placed in a 24 column grid system, whereas __flex__ blocks dynamically grows or shrink to fit content into a row depending on content size and screen size.
30
-
31
- Under the hood, Lowdefy layouts are based on the [Ant Design Grid System](https://ant.design/components/grid/). The content areas are implemented as a row, and blocks are implemented as a column.
32
-
33
- # Content areas
34
-
35
- Each container has content areas - these are areas where nested blocks can be placed. All container blocks have a primary content area. This area is called `content`. Container blocks might have other content areas, like `header`, `footer`, or `title`. These content areas are implemented specifically by the block.
36
-
37
- To place blocks in the primary content area of a container, the block definitions for those blocks can be placed inside the `blocks` array of the container block.
38
-
39
- > In the following examples, blocks of type `Container` will represent a generic container block, and blocks of type `Block` will represent a generic block. The `Container` block might be a [`Box`](/Box), a [`Card`](/Card), a [`PageHeaderMenu`](/PageHeaderMenu) or any other container or context block. The `Block` blocks could be any type of block, including other container blocks.
40
-
41
-
42
- ###### Two blocks in the primary content area (`content`) of a container:
43
- ```yaml
44
- - id: container
45
- type: Container
46
- blocks:
47
- - id: block1
48
- type: Block
49
- - id: block2
50
- type: Block
51
-
52
- - id: ex_content_c1
53
- type: Box
54
- style:
55
- background: '#d9d9d9'
56
- padding: 16px
57
- marginTop: 16px
58
- areas:
59
- content:
60
- style:
61
- border: '1px dashed #eb2f96'
62
- blocks:
63
- - id: ex_content_b1
64
- type: Html
65
- style:
66
- textAlign: center
67
- properties:
68
- html: |
69
- <div style="background: #1890ff; font-size: 16px; font-weight: 500;">Block 1</div>
70
- - id: ex_content_b2
71
- type: Html
72
- style:
73
- textAlign: center
74
- properties:
75
- html: |
76
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500;">Block 2</div>
77
-
78
- - id: markdown_areas
79
- type: Markdown
80
- style:
81
- marginTop: 16px
82
- properties:
83
- content: |
84
- To place blocks in other content areas, the block definitions can be placed in the `blocks` array of the specific area in the `areas` object:
85
-
86
- > Note the blocks are placed under `areas.[areaName].blocks`
87
-
88
-
89
- ###### Blocks in the `header`, `content` and `footer` areas:
90
- ```yaml
91
- - id: container
92
- type: Container
93
- areas:
94
- header:
95
- blocks:
96
- - id: block1
97
- type: Block
98
- content:
99
- blocks:
100
- - id: block2
101
- type: Block
102
- footer:
103
- blocks:
104
- - id: block3
105
- type: Block
106
- - id: ex_areas_c1
107
- type: Box
108
- style:
109
- background: '#d9d9d9'
110
- padding: 16px
111
- marginTop: 16px
112
- layout:
113
- contentGutter: 16
114
- blocks:
115
- - id: ex_areas_area1
116
- type: Box
117
- areas:
118
- content:
119
- style:
120
- border: '1px dashed #eb2f96'
121
- blocks:
122
- - id: ex_areas_b1
123
- type: Html
124
- style:
125
- textAlign: center
126
- properties:
127
- html: |
128
- <div style="background: #1890ff; font-size: 16px; font-weight: 500;">Block 1</div>
129
- - id: ex_areas_area2
130
- type: Box
131
- areas:
132
- content:
133
- style:
134
- border: '1px dashed #eb2f96'
135
- height: 250
136
- blocks:
137
- - id: ex_areas_b2
138
- type: Html
139
- style:
140
- textAlign: center
141
- properties:
142
- html: |
143
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500;">Block 2</div>
144
- - id: ex_areas_area3
145
- type: Box
146
- areas:
147
- content:
148
- style:
149
- border: '1px dashed #eb2f96'
150
- blocks:
151
- - id: ex_areas_b3
152
- type: Html
153
- style:
154
- textAlign: center
155
- properties:
156
- html: |
157
- <div style="background: #69c0ff; font-size: 16px; font-weight: 500;">Block 3</div>
158
-
159
- - id: markdown_overwrite
160
- type: Markdown
161
- style:
162
- marginTop: 16px
163
- properties:
164
- content: |
165
- Placing blocks both in the `blocks` array, as well as under the `areas.content.blocks` array is an anti-pattern, and in this case the blocks under `blocks` will overwrite those under `areas.content.blocks`.
166
-
167
- ###### Anti-pattern: Blocks in the `blocks` and `areas.content.blocks`:
168
- ```yaml
169
- - id: container
170
- type: Container
171
- blocks:
172
- - id: block1
173
- type: Block
174
- areas:
175
- content:
176
- blocks:
177
- - id: block2
178
- type: Block
179
-
180
- - id: ex_overwrite_c1
181
- type: Box
182
- style:
183
- background: '#d9d9d9'
184
- padding: 16px
185
- marginTop: 16px
186
- areas:
187
- content:
188
- style:
189
- border: '1px dashed #eb2f96'
190
- blocks:
191
- - id: ex_areas_b1
192
- type: Html
193
- style:
194
- textAlign: center
195
- properties:
196
- html: |
197
- <div style="background: #1890ff; font-size: 16px; font-weight: 500;">Block 1</div>
198
-
199
- - id: markdown_grid_layout
200
- type: Markdown
201
- style:
202
- marginTop: 16px
203
- properties:
204
- content: |
205
- # Layouts using span
206
-
207
- Each content area has 24 columns. Blocks have a `span` property, which determines how many columns the block occupies. Blocks are laid out horizontally, until the sum of the spans is more than 24, then the last block block is wrapped to the next row.
208
-
209
- By default a block is given a span of 24. This is what makes blocks lay out vertically below each other.
210
-
211
- > Blocks are also given a default span of 24 for mobile layouts, even if another span is given, to provide a good default mobile experience. Read more about responsive layouts below.
212
-
213
- ###### Block spans example:
214
- ```
215
- - id: container
216
- type: Container
217
- blocks:
218
- - id: block1
219
- type: Block # Default span of 24
220
- - id: block2
221
- type: Block
222
- layout:
223
- span: 16 # Two thirds of the area
224
- - id: block3
225
- type: Block
226
- layout:
227
- span: 8 # Remaining one third of the area
228
- - id: block4
229
- type: Block
230
- layout:
231
- span: 12
232
- - id: block5
233
- type: Block
234
- layout:
235
- span: 18 # Sum would be over 24, so wraps to the next row
236
- ```
237
- - id: ex_grid_layout_c1
238
- type: Box
239
- style:
240
- background: '#d9d9d9'
241
- padding: 16px
242
- marginTop: 16px
243
- areas:
244
- content:
245
- style:
246
- border: '1px dashed #eb2f96'
247
- blocks:
248
- - id: ex_grid_layout_b1
249
- type: Html
250
- style:
251
- textAlign: center
252
- properties:
253
- html: |
254
- <div style="background: #1890ff; font-size: 16px; font-weight: 500;">Block 1</div>
255
- - id: ex_grid_layout_b2
256
- type: Html
257
- style:
258
- textAlign: center
259
- layout:
260
- span: 16
261
- properties:
262
- html: |
263
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500;">Block 2</div>
264
- - id: ex_grid_layout_b3
265
- type: Html
266
- style:
267
- textAlign: center
268
- layout:
269
- span: 8
270
- properties:
271
- html: |
272
- <div style="background: #69c0ff; font-size: 16px; font-weight: 500;">Block 3</div>
273
- - id: ex_grid_layout_b4
274
- type: Html
275
- style:
276
- textAlign: center
277
- layout:
278
- span: 12
279
- properties:
280
- html: |
281
- <div style="background: #91d5ff; font-size: 16px; font-weight: 500;">Block 4</div>
282
- - id: ex_grid_layout_b5
283
- type: Html
284
- style:
285
- textAlign: center
286
- layout:
287
- span: 18
288
- properties:
289
- html: |
290
- <div style="background: #bae7ff; font-size: 16px; font-weight: 500;">Block 5</div>
291
-
292
- - id: markdown_flex_layout
293
- type: Markdown
294
- style:
295
- marginTop: 16px
296
- properties:
297
- content: |
298
- # Layouts using flex
299
-
300
- Blocks can also be laid out using [CSS flexbox](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox) properties. These properties are `grow` (`flex-grow`), `shrink` (`flex-shrink`), `size` (`flex-basis`) and `flex` (`flex`). If any of these properties are set, the default span of 24 or any span set in the configuration is not applied. If one of `grow`, `shrink`, or `size` are set, the other properties take their default values. The `flex` property overwrites the `grow`, `shrink`, and `size` properties.
301
-
302
- - id: markdown_block_properties
303
- type: Markdown
304
- style:
305
- marginTop: 16px
306
- properties:
307
- content: |
308
- # Block layout properties
309
-
310
- The `layout` object on blocks can be used to control how a block is placed in the layout. The `layout` properties that can be defined are:
311
-
312
- - `align`: _Enum_ - Align block vertically in the area. Options are `top`, `middle`, and `bottom`. Default `top.`
313
- - `flex`: _String_ - Set the [`flex`](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) CSS property. This overwrites the `grow`, `shrink`, and `size` properties.
314
- - `grow`: _Number_ - Set the [`flex-grow`](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow) CSS property. Default 0.
315
- - `order`: _Number_ - Change the order blocks are rendered in. By default blocks are rendered in the order they appear in the blocks array.
316
- - `offset`: _Number_ - Number of grid cells to shift the block to the right.
317
- - `pull`: _Number_ - Shift the block this number of cells to the left. This will make it overlap above with previous blocks.
318
- - `push`: _Number_ - Shift the block this number of cells to the right. This will make it overlap under with the following blocks.
319
- - `shrink`: _Number_ - Set the [`flex-shrink`](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink) CSS property. Default 1.
320
- - `size`: _String_ | _Number_ - Set the [`flex-basis`](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis) CSS property. Default `auto`.
321
- - `span`: _Number_ - Number of grid cells the block should occupy.
322
-
323
- ### Responsive layouts
324
- - id: video_responsive
325
- type: DangerousHtml
326
- style:
327
- marginTop: 16px
328
- properties:
329
- DOMPurifyOptions:
330
- ADD_TAGS:
331
- - iframe
332
- html: |
333
- <div style="position: relative; padding-bottom: 62.5%; height: 0;"><iframe src="https://www.loom.com/embed/3912ece430ee48dbbc87a9f87dba027e" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div>
334
- - id: markdown_block_properties_responsive
335
- type: Markdown
336
- style:
337
- marginTop: 16px
338
- properties:
339
- content: |
340
- All the settings defined in the Block `layout` and `style` properties can be defined for the various responsive breakpoints. Breakpoints apply to all window width sizes smaller than the breakpoint width, where the smallest breakpoint setting takes precedence.
341
-
342
- The responsive breakpoints are:
343
-
344
- - `xs`: window width less than 576px
345
- - `sm`: window width greater than 576px
346
- - `md`: window width greater than 768px
347
- - `lg`: window width greater than 992px
348
- - `xl`: window width greater than 1200px
349
- - `xxl`: window width greater than 1600px
350
-
351
- The responsive layout settings are applied to the `layout` object. For example making a block half container width and full container width for devices like tablets or smaller:
352
- ```yaml
353
- id: responsive_block
354
- type: Box
355
- layout:
356
- span: 12
357
- md:
358
- span: 24
359
- ```
360
-
361
- The same can be done for the `style` object, for example, making reducing padding on xs and sm devices:
362
- ```yaml
363
- id: responsive_block
364
- type: Box
365
- style:
366
- padding: 64
367
- sm:
368
- padding: 32
369
- ```
370
-
371
- The responsive breakpoint settings applies to all properties in `layout` and `style` objects on blocks.
372
-
373
- ### Block layout properties usage examples:
374
- - id: usage_examples_collapse
375
- type: Collapse
376
- properties:
377
- panels:
378
- - title: Align example
379
- key: align
380
- - title: Order example
381
- key: order
382
- - title: Offset example
383
- key: offset
384
- - title: Pull example
385
- key: pull
386
- - title: Push example
387
- key: push
388
- areas:
389
- align:
390
- blocks:
391
- - id: markdown_align_examples
392
- type: Markdown
393
- style:
394
- marginTop: 16px
395
- properties:
396
- content: |
397
- ```
398
- - id: container
399
- type: Container
400
- blocks:
401
- - id: block1
402
- type: Block
403
- layout:
404
- span: 6
405
- - id: block2
406
- type: Block
407
- layout:
408
- align: top
409
- span: 6
410
- - id: block3
411
- type: Block
412
- layout:
413
- align: middle
414
- span: 6
415
- - id: block4
416
- type: Block
417
- layout:
418
- align: bottom
419
- span: 6
420
- ```
421
-
422
- - id: ex_align_c1
423
- type: Box
424
- style:
425
- background: '#d9d9d9'
426
- padding: 16px
427
- marginTop: 16px
428
- areas:
429
- content:
430
- style:
431
- border: '1px dashed #eb2f96'
432
- height: 100
433
- blocks:
434
- - id: ex_align_b1
435
- type: Html
436
- style:
437
- textAlign: center
438
- layout: # Default align value is `top`.
439
- span: 6
440
- properties:
441
- html: |
442
- <div style="background: #1890ff; font-size: 16px; font-weight: 500;">Block 1</div>
443
- - id: ex_align_b2
444
- type: Html
445
- style:
446
- textAlign: center
447
- layout:
448
- align: top
449
- span: 6
450
- properties:
451
- html: |
452
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500;">Block 2</div>
453
- - id: ex_align_b3
454
- type: Html
455
- style:
456
- textAlign: center
457
- layout:
458
- align: middle
459
- span: 6
460
- properties:
461
- html: |
462
- <div style="background: #69c0ff; font-size: 16px; font-weight: 500;">Block 3</div>
463
- - id: ex_align_b4
464
- type: Html
465
- style:
466
- textAlign: center
467
- layout:
468
- align: bottom
469
- span: 6
470
- properties:
471
- html: |
472
- <div style="background: #91d5ff; font-size: 16px; font-weight: 500;">Block 4</div>
473
- order:
474
- blocks:
475
- - id: markdown_order_example
476
- type: Markdown
477
- style:
478
- marginTop: 16px
479
- properties:
480
- content: |
481
- ```
482
- - id: container
483
- type: Container
484
- blocks:
485
- - id: block1
486
- type: Block
487
- layout:
488
- order: 1
489
- - id: block2
490
- type: Block
491
- ```
492
- - id: ex_order_c1
493
- type: Box
494
- style:
495
- background: '#d9d9d9'
496
- padding: 16px
497
- marginTop: 16px
498
- areas:
499
- content:
500
- style:
501
- border: '1px dashed #eb2f96'
502
- blocks:
503
- - id: ex_order_b1
504
- type: Html
505
- style:
506
- textAlign: center
507
- layout:
508
- order: 1
509
- properties:
510
- html: |
511
- <div style="background: #1890ff; font-size: 16px; font-weight: 500;">Block 1</div>
512
- - id: ex_order_b2
513
- type: Html
514
- style:
515
- textAlign: center
516
- properties:
517
- html: |
518
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500;">Block 2</div>
519
- offset:
520
- blocks:
521
- - id: markdown_offset_example
522
- type: Markdown
523
- style:
524
- marginTop: 16px
525
- properties:
526
- content: |
527
- ```
528
- - id: container
529
- type: Container
530
- blocks:
531
- - id: block1
532
- type: Block
533
- layout:
534
- offset: 4
535
- - id: block2
536
- type: Block
537
- layout:
538
- offset: 4
539
- span: 10
540
- ```
541
- - id: ex_offset_c1
542
- type: Box
543
- style:
544
- background: '#d9d9d9'
545
- padding: 16px
546
- marginTop: 16px
547
- areas:
548
- content:
549
- style:
550
- border: '1px dashed #eb2f96'
551
- blocks:
552
- - id: ex_offset_b1
553
- type: Html
554
- style:
555
- textAlign: center
556
- layout:
557
- offset: 4
558
- properties:
559
- html: |
560
- <div style="background: #1890ff; font-size: 16px; font-weight: 500;">Block 1</div>
561
- - id: ex_offset_b2
562
- type: Html
563
- style:
564
- textAlign: center
565
- layout:
566
- offset: 4
567
- span: 16
568
- properties:
569
- html: |
570
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500;">Block 2</div>
571
- pull:
572
- blocks:
573
- - id: markdown_pull_example
574
- type: Markdown
575
- style:
576
- marginTop: 16px
577
- properties:
578
- content: |
579
- ```
580
- - id: container
581
- type: Container
582
- blocks:
583
- - id: block1
584
- type: Block
585
- layout:
586
- span: 12
587
- - id: block2
588
- type: Block
589
- style:
590
- opacity: 0.5
591
- layout:
592
- pull: 3
593
- span: 12
594
- ```
595
- - id: ex_pull_c1
596
- type: Box
597
- style:
598
- background: '#d9d9d9'
599
- padding: 16px
600
- marginTop: 16px
601
- areas:
602
- content:
603
- style:
604
- border: '1px dashed #eb2f96'
605
- blocks:
606
- - id: ex_pull_b1
607
- type: Html
608
- style:
609
- textAlign: center
610
- layout:
611
- span: 12
612
- properties:
613
- html: |
614
- <div style="background: #1890ff; font-size: 16px; font-weight: 500;">Block 1</div>
615
- - id: ex_pull_b2
616
- type: Html
617
- style:
618
- textAlign: center
619
- opacity: 0.5
620
- layout:
621
- pull: 3
622
- span: 12
623
- properties:
624
- html: |
625
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500;">Block 2</div>
626
- push:
627
- blocks:
628
- - id: markdown_push_example
629
- type: Markdown
630
- style:
631
- marginTop: 16px
632
- properties:
633
- content: |
634
- ```
635
- - id: container
636
- type: Container
637
- blocks:
638
- - id: block1
639
- type: Block
640
- layout:
641
- push: 3
642
- span: 12
643
- - id: block2
644
- type: Block
645
- style:
646
- opacity: 0.5
647
- layout:
648
- span: 12
649
- ```
650
- - id: ex_push_c1
651
- type: Box
652
- style:
653
- background: '#d9d9d9'
654
- padding: 16px
655
- marginTop: 16px
656
- areas:
657
- content:
658
- style:
659
- border: '1px dashed #eb2f96'
660
- blocks:
661
- - id: ex_push_b1
662
- type: Html
663
- style:
664
- textAlign: center
665
- layout:
666
- push: 3
667
- span: 12
668
- properties:
669
- html: |
670
- <div style="background: #1890ff; font-size: 16px; font-weight: 500;">Block 1</div>
671
- - id: ex_push_b2
672
- type: Html
673
- style:
674
- textAlign: center
675
- opacity: 0.5
676
- layout:
677
- span: 12
678
- properties:
679
- html: |
680
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500;">Block 2</div>
681
- - id: markdown_area_properties
682
- type: Markdown
683
- style:
684
- marginTop: 16px
685
- properties:
686
- content: |
687
- # Area layout properties
688
-
689
- Properties can be set on each area to control how blocks are layed out inside that area. These properties are set under the `areaName` key:
690
-
691
- The properties that can be set are:
692
- - `align`: _Enum_ - Align blocks vertically in the area. Options are `top`, `middle`, and `bottom`. Default `top.`
693
- - `direction`: _Enum_ - Set the [`flex-direction`](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction) CSS property for the area. Options are `row`, `row-reverse`, `column`, and and `column-reverse`. Default `row`.
694
- - `gutter`: _Number_ | _Array_ - Create gutter (space) between blocks placed in the area. If an array, the first element is the horizontal gutter, and the second is the vertical gutter.
695
- - `justify`: _Enum_ - Justify blocks horizontally inside the area. Options are `start`, `end`, `center`, `space-around`, and `space-between`. Default `start`.
696
- - `overflow`: _Enum_ - Set the [`overflow`](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow) CSS property for the area. Options are `visible`, `hidden`, `scroll`, and `space-between`. Default `visible`.
697
- - `wrap`: _Enum_ - Set the [`flex-wrap`](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap) CSS property for the area. Options are `wrap`, `nowrap`, and `wrap-reverse`. Default `wrap`.
698
-
699
- ### Area layout properties examples:
700
-
701
- - id: area_layout_usage_examples_collapse
702
- type: Collapse
703
- properties:
704
- panels:
705
- - title: Align example
706
- key: align
707
- - title: Direction example
708
- key: direction
709
- - title: Gutter example
710
- key: gutter
711
- - title: Justify example
712
- key: justify
713
- areas:
714
- align:
715
- blocks:
716
- - id: markdown_align_layout_example
717
- type: Markdown
718
- style:
719
- marginTop: 16px
720
- properties:
721
- content: |
722
- ```yaml
723
- - id: container
724
- type: Container
725
- areas:
726
- area1:
727
- align: top
728
- blocks:
729
- - id: block1
730
- type: Block
731
- layout:
732
- span: 12
733
- - id: block2
734
- type: Block
735
- layout:
736
- span: 12
737
- area2:
738
- align: middle
739
- blocks:
740
- - id: block3
741
- type: Block
742
- layout:
743
- span: 12
744
- - id: block4
745
- type: Block
746
- layout:
747
- span: 12
748
- area3:
749
- align: bottom
750
- blocks:
751
- - id: block5
752
- type: Block
753
- layout:
754
- span: 12
755
- - id: block6
756
- type: Block
757
- layout:
758
- span: 12
759
- - id: ex_area_align_c1
760
- type: Box
761
- style:
762
- background: '#d9d9d9'
763
- padding: 16px
764
- marginTop: 16px
765
- layout:
766
- contentGutter: 16
767
- blocks:
768
- - id: ex_area_align_area1_title
769
- type: Markdown
770
- properties:
771
- content: '##### Area 1 - `align: top`'
772
- - id: ex_area_align_area1
773
- type: Box
774
- areas:
775
- content:
776
- align: top
777
- style:
778
- border: '1px dashed #eb2f96'
779
- blocks:
780
- - id: ex_area_align_b1
781
- type: Html
782
- style:
783
- textAlign: center
784
- layout:
785
- span: 12
786
- properties:
787
- html: |
788
- <div style="background: #1890ff; font-size: 16px; font-weight: 500; height: 70px;">Block 1</div>
789
- - id: ex_area_align_b2
790
- type: Html
791
- style:
792
- textAlign: center
793
- layout:
794
- span: 12
795
- properties:
796
- html: |
797
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500;">Block 2</div>
798
- - id: ex_area_align_area2_title
799
- type: Markdown
800
- properties:
801
- content: '##### Area 2 - `align: middle`'
802
- - id: ex_area_align_area2
803
- type: Box
804
- areas:
805
- content:
806
- align: middle
807
- style:
808
- border: '1px dashed #eb2f96'
809
- blocks:
810
- - id: ex_area_align_b3
811
- type: Html
812
- style:
813
- textAlign: center
814
- layout:
815
- span: 12
816
- properties:
817
- html: |
818
- <div style="background: #1890ff; font-size: 16px; font-weight: 500; height: 70px;">Block 3</div>
819
- - id: ex_area_align_b4
820
- type: Html
821
- style:
822
- textAlign: center
823
- layout:
824
- span: 12
825
- properties:
826
- html: |
827
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500;">Block 4</div>
828
- - id: ex_area_align_area3_title
829
- type: Markdown
830
- properties:
831
- content: '##### Area 3 - `align: bottom`'
832
- - id: ex_area_align_area3
833
- type: Box
834
- areas:
835
- content:
836
- align: bottom
837
- style:
838
- border: '1px dashed #eb2f96'
839
- blocks:
840
- - id: ex_area_align_b5
841
- type: Html
842
- style:
843
- textAlign: center
844
- layout:
845
- span: 12
846
- properties:
847
- html: |
848
- <div style="background: #1890ff; font-size: 16px; font-weight: 500; height: 70px;">Block 5</div>
849
- - id: ex_area_align_b6
850
- type: Html
851
- style:
852
- textAlign: center
853
- layout:
854
- span: 12
855
- properties:
856
- html: |
857
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500;">Block 6</div>
858
- direction:
859
- blocks:
860
- - id: markdown_direction_example
861
- type: Markdown
862
- style:
863
- marginTop: 16px
864
- properties:
865
- content: |
866
- ```yaml
867
- - id: container
868
- type: Container
869
- areas:
870
- area1:
871
- direction: row
872
- blocks:
873
- - id: block1
874
- type: Block
875
- layout:
876
- size: auto
877
- - id: block2
878
- type: Block
879
- layout:
880
- size: auto
881
- area2:
882
- direction: row-reverse
883
- blocks:
884
- - id: block3
885
- type: Block
886
- layout:
887
- size: auto
888
- - id: block4
889
- type: Block
890
- layout:
891
- size: auto
892
- area3:
893
- direction: column
894
- blocks:
895
- - id: block5
896
- type: Block
897
- layout:
898
- size: auto
899
- - id: block6
900
- type: Block
901
- layout:
902
- size: auto
903
- area4:
904
- direction: column-reverse
905
- blocks:
906
- - id: block7
907
- type: Block
908
- layout:
909
- size: auto
910
- - id: block8
911
- type: Block
912
- layout:
913
- size: auto
914
- - id: ex_area_direction_c1
915
- type: Box
916
- style:
917
- background: '#d9d9d9'
918
- padding: 16px
919
- marginTop: 16px
920
- layout:
921
- contentGutter: 16
922
- blocks:
923
- - id: ex_area_direction_area1_title
924
- type: Markdown
925
- properties:
926
- content: '##### Area 1 - `direction: row`'
927
- - id: ex_area_direction_area1
928
- type: Box
929
- areas:
930
- content:
931
- direction: row
932
- style:
933
- border: '1px dashed #eb2f96'
934
- blocks:
935
- - id: ex_area_direction_b1
936
- type: Html
937
- style:
938
- textAlign: center
939
- layout:
940
- size: auto
941
- properties:
942
- html: |
943
- <div style="background: #1890ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 1</div>
944
- - id: ex_area_direction_b2
945
- type: Html
946
- style:
947
- textAlign: center
948
- layout:
949
- size: auto
950
- properties:
951
- html: |
952
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 2</div>
953
- - id: ex_area_direction_area2_title
954
- type: Markdown
955
- properties:
956
- content: '##### Area 2 - `direction: row-reverse`'
957
- - id: ex_area_direction_area2
958
- type: Box
959
- areas:
960
- content:
961
- direction: row-reverse
962
- style:
963
- border: '1px dashed #eb2f96'
964
- blocks:
965
- - id: ex_area_direction_b3
966
- type: Html
967
- style:
968
- textAlign: center
969
- layout:
970
- size: auto
971
- properties:
972
- html: |
973
- <div style="background: #1890ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 3</div>
974
- - id: ex_area_direction_b4
975
- type: Html
976
- style:
977
- textAlign: center
978
- layout:
979
- size: auto
980
- properties:
981
- html: |
982
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 4</div>
983
- - id: ex_area_direction_area3_title
984
- type: Markdown
985
- properties:
986
- content: '##### Area 3 - `direction: column`'
987
- - id: ex_area_direction_area3
988
- type: Box
989
- areas:
990
- content:
991
- direction: column
992
- style:
993
- border: '1px dashed #eb2f96'
994
- blocks:
995
- - id: ex_area_direction_b5
996
- type: Html
997
- style:
998
- textAlign: center
999
- layout:
1000
- size: auto
1001
- properties:
1002
- html: |
1003
- <div style="background: #1890ff; font-size: 16px; font-weight: 500;">Block 5</div>
1004
- - id: ex_area_direction_b6
1005
- type: Html
1006
- style:
1007
- textAlign: center
1008
- layout:
1009
- size: auto
1010
- properties:
1011
- html: |
1012
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500;">Block 6</div>
1013
- - id: ex_area_direction_area4_title
1014
- type: Markdown
1015
- properties:
1016
- content: '##### Area 4 - `direction: column-reverse`'
1017
- - id: ex_area_direction_area4
1018
- type: Box
1019
- areas:
1020
- content:
1021
- direction: column-reverse
1022
- style:
1023
- border: '1px dashed #eb2f96'
1024
- blocks:
1025
- - id: ex_area_direction_b7
1026
- type: Html
1027
- style:
1028
- textAlign: center
1029
- layout:
1030
- size: auto
1031
- properties:
1032
- html: |
1033
- <div style="background: #1890ff; font-size: 16px; font-weight: 500;">Block 7</div>
1034
- - id: ex_area_direction_b8
1035
- type: Html
1036
- style:
1037
- textAlign: center
1038
- layout:
1039
- size: auto
1040
- properties:
1041
- html: |
1042
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500;">Block 8</div>
1043
- gutter:
1044
- blocks:
1045
- - id: markdown_gutter_example
1046
- type: Markdown
1047
- style:
1048
- marginTop: 16px
1049
- properties:
1050
- content: |
1051
- ```yaml
1052
- - id: container
1053
- type: Container
1054
- areas:
1055
- area1:
1056
- gutter: 16
1057
- blocks:
1058
- - id: block1
1059
- type: Block
1060
- layout:
1061
- span: 12
1062
- - id: block2
1063
- type: Block
1064
- layout:
1065
- span: 12
1066
- - id: block3
1067
- type: Block
1068
-
1069
- area2:
1070
- gutter: [8, 32]
1071
- blocks:
1072
- - id: block4
1073
- type: Block
1074
- layout:
1075
- span: 12
1076
- - id: block5
1077
- type: Block
1078
- layout:
1079
- span: 12
1080
- - id: block6
1081
- type: Block
1082
-
1083
- - id: ex_area_gutter_c1
1084
- type: Box
1085
- style:
1086
- background: '#d9d9d9'
1087
- padding: 16px
1088
- marginTop: 16px
1089
- layout:
1090
- contentGutter: 16
1091
- blocks:
1092
- - id: ex_area_gutter_area1_title
1093
- type: Markdown
1094
- properties:
1095
- content: '##### Area 1 - `gutter: 16`'
1096
- - id: ex_area_gutter_area1
1097
- type: Box
1098
- areas:
1099
- content:
1100
- gutter: 16
1101
- style:
1102
- border: '1px dashed #eb2f96'
1103
- blocks:
1104
- - id: ex_area_gutter_b1
1105
- type: Html
1106
- style:
1107
- textAlign: center
1108
- layout:
1109
- span: 12
1110
- properties:
1111
- html: |
1112
- <div style="background: #1890ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 1</div>
1113
- - id: ex_area_gutter_b2
1114
- type: Html
1115
- style:
1116
- textAlign: center
1117
- layout:
1118
- span: 12
1119
- properties:
1120
- html: |
1121
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 2</div>
1122
- - id: ex_area_gutter_b3
1123
- type: Html
1124
- style:
1125
- textAlign: center
1126
- properties:
1127
- html: |
1128
- <div style="background: #69c0ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 3</div>
1129
- - id: ex_area_gutter_area2_title
1130
- type: Markdown
1131
- properties:
1132
- content: '##### Area 2 - `gutter: [8, 32]`'
1133
- - id: ex_area_gutter_area2
1134
- type: Box
1135
- areas:
1136
- content:
1137
- gutter: [8, 32]
1138
- style:
1139
- border: '1px dashed #eb2f96'
1140
- blocks:
1141
- - id: ex_area_gutter_b4
1142
- type: Html
1143
- style:
1144
- textAlign: center
1145
- layout:
1146
- span: 12
1147
- properties:
1148
- html: |
1149
- <div style="background: #1890ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 4</div>
1150
- - id: ex_area_gutter_b5
1151
- type: Html
1152
- style:
1153
- textAlign: center
1154
- layout:
1155
- span: 12
1156
- properties:
1157
- html: |
1158
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 5</div>
1159
- - id: ex_area_gutter_b6
1160
- type: Html
1161
- style:
1162
- textAlign: center
1163
- properties:
1164
- html: |
1165
- <div style="background: #69c0ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 6</div>
1166
- justify:
1167
- blocks:
1168
- - id: markdown_justify_example
1169
- type: Markdown
1170
- style:
1171
- marginTop: 16px
1172
- properties:
1173
- content: |
1174
- ```yaml
1175
- - id: container
1176
- type: Container
1177
- areas:
1178
- area1:
1179
- justify: start
1180
- blocks:
1181
- - id: block1
1182
- type: Block
1183
- layout:
1184
- size: auto
1185
- - id: block2
1186
- type: Block
1187
- layout:
1188
- size: auto
1189
- - id: block3
1190
- type: Block
1191
- layout:
1192
- size: auto
1193
- area2:
1194
- justify: end
1195
- blocks:
1196
- - id: block4
1197
- type: Block
1198
- layout:
1199
- size: auto
1200
- - id: block5
1201
- type: Block
1202
- layout:
1203
- size: auto
1204
- - id: block6
1205
- type: Block
1206
- layout:
1207
- size: auto
1208
- area3:
1209
- justify: center
1210
- blocks:
1211
- - id: block7
1212
- type: Block
1213
- layout:
1214
- size: auto
1215
- - id: block8
1216
- type: Block
1217
- layout:
1218
- size: auto
1219
- - id: block9
1220
- type: Block
1221
- layout:
1222
- size: auto
1223
- area4:
1224
- justify: space-around
1225
- blocks:
1226
- - id: block10
1227
- type: Block
1228
- layout:
1229
- size: auto
1230
- - id: block11
1231
- type: Block
1232
- layout:
1233
- size: auto
1234
- - id: block12
1235
- type: Block
1236
- layout:
1237
- size: auto
1238
- area5:
1239
- justify: space-between
1240
- blocks:
1241
- - id: block13
1242
- type: Block
1243
- layout:
1244
- size: auto
1245
- - id: block14
1246
- type: Block
1247
- layout:
1248
- size: auto
1249
- - id: block15
1250
- type: Block
1251
- layout:
1252
- size: auto
1253
- - id: ex_area_justify_c1
1254
- type: Box
1255
- style:
1256
- background: '#d9d9d9'
1257
- padding: 16px
1258
- marginTop: 16px
1259
- layout:
1260
- contentGutter: 16
1261
- blocks:
1262
- - id: ex_area_justify_area1_title
1263
- type: Markdown
1264
- properties:
1265
- content: '##### Area 1 - `justify: start`'
1266
- - id: ex_area_justify_area1
1267
- type: Box
1268
- areas:
1269
- content:
1270
- justify: start
1271
- style:
1272
- border: '1px dashed #eb2f96'
1273
- blocks:
1274
- - id: ex_area_justify_b1
1275
- type: Html
1276
- style:
1277
- textAlign: center
1278
- layout:
1279
- size: auto
1280
- properties:
1281
- html: |
1282
- <div style="background: #1890ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 1</div>
1283
- - id: ex_area_justify_b2
1284
- type: Html
1285
- style:
1286
- textAlign: center
1287
- layout:
1288
- size: auto
1289
- properties:
1290
- html: |
1291
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 2</div>
1292
- - id: ex_area_justify_b3
1293
- type: Html
1294
- style:
1295
- textAlign: center
1296
- layout:
1297
- size: auto
1298
- properties:
1299
- html: |
1300
- <div style="background: #69c0ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 3</div>
1301
- - id: ex_area_justify_area2_title
1302
- type: Markdown
1303
- properties:
1304
- content: '##### Area 2 - `justify: end`'
1305
- - id: ex_area_justify_area2
1306
- type: Box
1307
- areas:
1308
- content:
1309
- justify: end
1310
- style:
1311
- border: '1px dashed #eb2f96'
1312
- blocks:
1313
- - id: ex_area_justify_b4
1314
- type: Html
1315
- style:
1316
- textAlign: center
1317
- layout:
1318
- size: auto
1319
- properties:
1320
- html: |
1321
- <div style="background: #1890ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 4</div>
1322
- - id: ex_area_justify_b5
1323
- type: Html
1324
- style:
1325
- textAlign: center
1326
- layout:
1327
- size: auto
1328
- properties:
1329
- html: |
1330
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 5</div>
1331
- - id: ex_area_justify_b6
1332
- type: Html
1333
- style:
1334
- textAlign: center
1335
- layout:
1336
- size: auto
1337
- properties:
1338
- html: |
1339
- <div style="background: #69c0ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 6</div>
1340
- - id: ex_area_justify_area3_title
1341
- type: Markdown
1342
- properties:
1343
- content: '##### Area 3 - `justify: center`'
1344
- - id: ex_area_justify_area3
1345
- type: Box
1346
- areas:
1347
- content:
1348
- justify: center
1349
- style:
1350
- border: '1px dashed #eb2f96'
1351
- blocks:
1352
- - id: ex_area_justify_b7
1353
- type: Html
1354
- style:
1355
- textAlign: center
1356
- layout:
1357
- size: auto
1358
- properties:
1359
- html: |
1360
- <div style="background: #1890ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 7</div>
1361
- - id: ex_area_justify_b8
1362
- type: Html
1363
- style:
1364
- textAlign: center
1365
- layout:
1366
- size: auto
1367
- properties:
1368
- html: |
1369
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 8</div>
1370
- - id: ex_area_justify_b9
1371
- type: Html
1372
- style:
1373
- textAlign: center
1374
- layout:
1375
- size: auto
1376
- properties:
1377
- html: |
1378
- <div style="background: #69c0ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 9</div>
1379
- - id: ex_area_justify_area4_title
1380
- type: Markdown
1381
- properties:
1382
- content: '##### Area 4 - `justify: space-around`'
1383
- - id: ex_area_justify_area4
1384
- type: Box
1385
- areas:
1386
- content:
1387
- justify: space-around
1388
- style:
1389
- border: '1px dashed #eb2f96'
1390
- blocks:
1391
- - id: ex_area_justify_b10
1392
- type: Html
1393
- style:
1394
- textAlign: center
1395
- layout:
1396
- size: auto
1397
- properties:
1398
- html: |
1399
- <div style="background: #1890ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 10</div>
1400
- - id: ex_area_justify_b11
1401
- type: Html
1402
- style:
1403
- textAlign: center
1404
- layout:
1405
- size: auto
1406
- properties:
1407
- html: |
1408
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 11</div>
1409
- - id: ex_area_justify_b12
1410
- type: Html
1411
- style:
1412
- textAlign: center
1413
- layout:
1414
- size: auto
1415
- properties:
1416
- html: |
1417
- <div style="background: #69c0ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 12</div>
1418
- - id: ex_area_justify_area5_title
1419
- type: Markdown
1420
- properties:
1421
- content: '##### Area 5 - `justify: space-between`'
1422
- - id: ex_area_justify_area5
1423
- type: Box
1424
- areas:
1425
- content:
1426
- justify: space-between
1427
- style:
1428
- border: '1px dashed #eb2f96'
1429
- blocks:
1430
- - id: ex_area_justify_b13
1431
- type: Html
1432
- style:
1433
- textAlign: center
1434
- layout:
1435
- size: auto
1436
- properties:
1437
- html: |
1438
- <div style="background: #1890ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 13</div>
1439
- - id: ex_area_justify_b14
1440
- type: Html
1441
- style:
1442
- textAlign: center
1443
- layout:
1444
- size: auto
1445
- properties:
1446
- html: |
1447
- <div style="background: #40a9ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 14</div>
1448
- - id: ex_area_justify_b15
1449
- type: Html
1450
- style:
1451
- textAlign: center
1452
- layout:
1453
- size: auto
1454
- properties:
1455
- html: |
1456
- <div style="background: #69c0ff; font-size: 16px; font-weight: 500; padding-left: 8px; padding-right: 8px">Block 15</div>
1457
-
1458
- - _ref:
1459
- path: templates/navigation_buttons.yaml
1460
- vars:
1461
- previous_page_title: Blocks
1462
- previous_page_id: blocks
1463
- next_page_title: Connection and Requests
1464
- next_page_id: connections-and-requests