@lowdefy/blocks-antd 5.5.1 → 6.0.0

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 (288) hide show
  1. package/dist/TagPillRow.js +88 -0
  2. package/dist/blocks/Affix/gallery.yaml +399 -0
  3. package/dist/blocks/Affix/tests/Affix.e2e.yaml +72 -0
  4. package/dist/blocks/Affix/tests.yaml +29 -0
  5. package/dist/blocks/Alert/gallery.yaml +701 -0
  6. package/dist/blocks/Alert/tests/Alert.e2e.yaml +161 -0
  7. package/dist/blocks/Alert/tests.yaml +261 -0
  8. package/dist/blocks/AutoComplete/gallery.yaml +713 -0
  9. package/dist/blocks/AutoComplete/tests/AutoComplete.e2e.yaml +330 -0
  10. package/dist/blocks/AutoComplete/tests.yaml +178 -0
  11. package/dist/blocks/Avatar/gallery.yaml +1037 -0
  12. package/dist/blocks/Avatar/tests/Avatar.e2e.yaml +125 -0
  13. package/dist/blocks/Avatar/tests.yaml +76 -0
  14. package/dist/blocks/Badge/gallery.yaml +1090 -0
  15. package/dist/blocks/Badge/tests/Badge.e2e.yaml +195 -0
  16. package/dist/blocks/Badge/tests.yaml +91 -0
  17. package/dist/blocks/Breadcrumb/gallery.yaml +484 -0
  18. package/dist/blocks/Breadcrumb/tests/Breadcrumb.e2e.yaml +165 -0
  19. package/dist/blocks/Breadcrumb/tests.yaml +106 -0
  20. package/dist/blocks/Button/gallery.yaml +718 -0
  21. package/dist/blocks/Button/tests/Button.e2e.yaml +246 -0
  22. package/dist/blocks/Button/tests.yaml +104 -0
  23. package/dist/blocks/ButtonSelector/gallery.yaml +891 -0
  24. package/dist/blocks/ButtonSelector/tests/ButtonSelector.e2e.yaml +188 -0
  25. package/dist/blocks/ButtonSelector/tests.yaml +167 -0
  26. package/dist/blocks/Calendar/gallery.yaml +128 -0
  27. package/dist/blocks/Calendar/tests/Calendar.e2e.yaml +136 -0
  28. package/dist/blocks/Calendar/tests.yaml +50 -0
  29. package/dist/blocks/Card/gallery.yaml +1035 -0
  30. package/dist/blocks/Card/tests/Card.e2e.yaml +209 -0
  31. package/dist/blocks/Card/tests.yaml +75 -0
  32. package/dist/blocks/Carousel/gallery.yaml +1971 -0
  33. package/dist/blocks/Carousel/tests/Carousel.e2e.yaml +211 -0
  34. package/dist/blocks/Carousel/tests.yaml +117 -0
  35. package/dist/blocks/CheckboxSelector/CheckboxSelector.js +54 -29
  36. package/dist/blocks/CheckboxSelector/gallery.yaml +781 -0
  37. package/dist/blocks/CheckboxSelector/meta.js +24 -4
  38. package/dist/blocks/CheckboxSelector/tests/CheckboxSelector.e2e.yaml +272 -0
  39. package/dist/blocks/CheckboxSelector/tests.yaml +325 -0
  40. package/dist/blocks/CheckboxSwitch/gallery.yaml +457 -0
  41. package/dist/blocks/CheckboxSwitch/tests/CheckboxSwitch.e2e.yaml +126 -0
  42. package/dist/blocks/CheckboxSwitch/tests.yaml +96 -0
  43. package/dist/blocks/Collapse/gallery.yaml +1079 -0
  44. package/dist/blocks/Collapse/tests/Collapse.e2e.yaml +206 -0
  45. package/dist/blocks/Collapse/tests.yaml +265 -0
  46. package/dist/blocks/ColorSelector/gallery.yaml +807 -0
  47. package/dist/blocks/ColorSelector/tests/ColorSelector.e2e.yaml +77 -0
  48. package/dist/blocks/ColorSelector/tests.yaml +84 -0
  49. package/dist/blocks/ConfigProvider/gallery.yaml +1003 -0
  50. package/dist/blocks/ConfigProvider/tests.yaml +62 -0
  51. package/dist/blocks/ConfirmModal/gallery.yaml +1043 -0
  52. package/dist/blocks/ConfirmModal/tests/ConfirmModal.e2e.yaml +410 -0
  53. package/dist/blocks/ConfirmModal/tests.yaml +95 -0
  54. package/dist/blocks/Content/gallery.yaml +528 -0
  55. package/dist/blocks/Content/tests/Content.e2e.yaml +71 -0
  56. package/dist/blocks/Content/tests.yaml +42 -0
  57. package/dist/blocks/ControlledList/ControlledList.js +1 -1
  58. package/dist/blocks/ControlledList/gallery.yaml +481 -0
  59. package/dist/blocks/ControlledList/{style.module.css → style.css} +3 -3
  60. package/dist/blocks/ControlledList/tests/ControlledList.e2e.yaml +161 -0
  61. package/dist/blocks/ControlledList/tests.yaml +57 -0
  62. package/dist/blocks/DateRangeSelector/DateRangeSelector.js +7 -0
  63. package/dist/blocks/DateRangeSelector/e2e.js +28 -2
  64. package/dist/blocks/DateRangeSelector/gallery.yaml +858 -0
  65. package/dist/blocks/DateRangeSelector/meta.js +2 -0
  66. package/dist/blocks/DateRangeSelector/tests/DateRangeSelector.e2e.yaml +204 -0
  67. package/dist/blocks/DateRangeSelector/tests.yaml +129 -0
  68. package/dist/blocks/DateSelector/DateSelector.js +6 -0
  69. package/dist/blocks/DateSelector/e2e.js +28 -2
  70. package/dist/blocks/DateSelector/gallery.yaml +691 -0
  71. package/dist/blocks/DateSelector/meta.js +6 -0
  72. package/dist/blocks/DateSelector/tests/DateSelector.e2e.yaml +229 -0
  73. package/dist/blocks/DateSelector/tests.yaml +117 -0
  74. package/dist/blocks/DateTimeSelector/DateTimeSelector.js +7 -0
  75. package/dist/blocks/DateTimeSelector/e2e.js +26 -2
  76. package/dist/blocks/DateTimeSelector/gallery.yaml +770 -0
  77. package/dist/blocks/DateTimeSelector/meta.js +2 -0
  78. package/dist/blocks/DateTimeSelector/tests/DateTimeSelector.e2e.yaml +163 -0
  79. package/dist/blocks/DateTimeSelector/tests.yaml +140 -0
  80. package/dist/blocks/Descriptions/gallery.yaml +839 -0
  81. package/dist/blocks/Descriptions/tests/Descriptions.e2e.yaml +143 -0
  82. package/dist/blocks/Descriptions/tests.yaml +256 -0
  83. package/dist/blocks/Divider/gallery.yaml +375 -0
  84. package/dist/blocks/Divider/tests/Divider.e2e.yaml +107 -0
  85. package/dist/blocks/Divider/tests.yaml +58 -0
  86. package/dist/blocks/Drawer/gallery.yaml +1257 -0
  87. package/dist/blocks/Drawer/tests/Drawer.e2e.yaml +562 -0
  88. package/dist/blocks/Drawer/tests.yaml +80 -0
  89. package/dist/blocks/DropdownButton/gallery.yaml +606 -0
  90. package/dist/blocks/DropdownButton/tests/DropdownButton.e2e.yaml +243 -0
  91. package/dist/blocks/DropdownMenu/gallery.yaml +578 -0
  92. package/dist/blocks/DropdownMenu/tests/DropdownMenu.e2e.yaml +267 -0
  93. package/dist/blocks/Flex/gallery.yaml +1416 -0
  94. package/dist/blocks/Flex/tests/Flex.e2e.yaml +95 -0
  95. package/dist/blocks/Flex/tests.yaml +92 -0
  96. package/dist/blocks/FloatButton/gallery.yaml +518 -0
  97. package/dist/blocks/FloatButton/tests/FloatButton.e2e.yaml +73 -0
  98. package/dist/blocks/FloatButton/tests.yaml +59 -0
  99. package/dist/blocks/Footer/gallery.yaml +355 -0
  100. package/dist/blocks/Footer/tests/Footer.e2e.yaml +70 -0
  101. package/dist/blocks/Footer/tests.yaml +28 -0
  102. package/dist/blocks/Header/gallery.yaml +249 -0
  103. package/dist/blocks/Header/tests/Header.e2e.yaml +77 -0
  104. package/dist/blocks/Header/tests.yaml +36 -0
  105. package/dist/blocks/Label/Label.js +4 -4
  106. package/dist/blocks/Label/gallery.yaml +762 -0
  107. package/dist/blocks/Label/labelLogic.js +4 -1
  108. package/dist/blocks/Label/{style.module.css → style.css} +28 -28
  109. package/dist/blocks/Label/tests/Label.e2e.yaml +247 -0
  110. package/dist/blocks/Label/tests.yaml +212 -0
  111. package/dist/blocks/Layout/gallery.yaml +548 -0
  112. package/dist/blocks/Layout/tests/Layout.e2e.yaml +86 -0
  113. package/dist/blocks/Layout/tests.yaml +28 -0
  114. package/dist/blocks/ListSelector/gallery.yaml +223 -0
  115. package/dist/blocks/Masonry/gallery.yaml +989 -0
  116. package/dist/blocks/Masonry/tests/Masonry.e2e.yaml +128 -0
  117. package/dist/blocks/Masonry/tests.yaml +42 -0
  118. package/dist/blocks/MasonryList/gallery.yaml +224 -0
  119. package/dist/blocks/MasonryList/tests/MasonryList.e2e.yaml +55 -0
  120. package/dist/blocks/MasonryList/tests.yaml +42 -0
  121. package/dist/blocks/Menu/gallery.yaml +974 -0
  122. package/dist/blocks/Menu/tests/Menu.e2e.yaml +484 -0
  123. package/dist/blocks/Menu/tests.yaml +1053 -0
  124. package/dist/blocks/Message/gallery.yaml +860 -0
  125. package/dist/blocks/Message/tests/Message.e2e.yaml +246 -0
  126. package/dist/blocks/Message/tests.yaml +54 -0
  127. package/dist/blocks/MobileMenu/gallery.yaml +1172 -0
  128. package/dist/blocks/MobileMenu/tests/MobileMenu.e2e.yaml +314 -0
  129. package/dist/blocks/MobileMenu/tests.yaml +359 -0
  130. package/dist/blocks/Modal/gallery.yaml +1039 -0
  131. package/dist/blocks/Modal/tests/Modal.e2e.yaml +493 -0
  132. package/dist/blocks/Modal/tests.yaml +75 -0
  133. package/dist/blocks/MonthSelector/MonthSelector.js +6 -0
  134. package/dist/blocks/MonthSelector/e2e.js +26 -2
  135. package/dist/blocks/MonthSelector/gallery.yaml +687 -0
  136. package/dist/blocks/MonthSelector/meta.js +6 -0
  137. package/dist/blocks/MonthSelector/tests/MonthSelector.e2e.yaml +167 -0
  138. package/dist/blocks/MonthSelector/tests.yaml +124 -0
  139. package/dist/blocks/MultipleSelector/gallery.yaml +1245 -0
  140. package/dist/blocks/MultipleSelector/tests/MultipleSelector.e2e.yaml +445 -0
  141. package/dist/blocks/MultipleSelector/tests.yaml +201 -0
  142. package/dist/blocks/Notification/gallery.yaml +1376 -0
  143. package/dist/blocks/Notification/tests/Notification.e2e.yaml +362 -0
  144. package/dist/blocks/Notification/tests.yaml +97 -0
  145. package/dist/blocks/NumberInput/gallery.yaml +753 -0
  146. package/dist/blocks/NumberInput/tests/NumberInput.e2e.yaml +228 -0
  147. package/dist/blocks/NumberInput/tests.yaml +116 -0
  148. package/dist/blocks/PageHeaderMenu/PageHeaderMenu.js +1 -1
  149. package/dist/blocks/PageHeaderMenu/gallery.yaml +480 -0
  150. package/dist/blocks/PageHeaderMenu/tests/PageHeaderMenu.e2e.yaml +110 -0
  151. package/dist/blocks/PageHeaderMenu/tests.yaml +173 -0
  152. package/dist/blocks/PageSidebarLayout/PageSidebarLayout.js +10 -1
  153. package/dist/blocks/PageSidebarLayout/gallery.yaml +302 -0
  154. package/dist/blocks/PageSidebarLayout/meta.js +1 -0
  155. package/dist/blocks/PageSidebarLayout/tests/PageSidebarLayout.e2e.yaml +216 -0
  156. package/dist/blocks/PageSidebarLayout/tests.yaml +174 -0
  157. package/dist/blocks/PageSiderMenu/PageSiderMenu.js +1 -1
  158. package/dist/blocks/PageSiderMenu/gallery.yaml +516 -0
  159. package/dist/blocks/PageSiderMenu/tests/PageSiderMenu.e2e.yaml +175 -0
  160. package/dist/blocks/PageSiderMenu/tests.yaml +211 -0
  161. package/dist/blocks/Pagination/gallery.yaml +503 -0
  162. package/dist/blocks/Pagination/tests/Pagination.e2e.yaml +159 -0
  163. package/dist/blocks/Pagination/tests.yaml +80 -0
  164. package/dist/blocks/Paragraph/gallery.yaml +458 -0
  165. package/dist/blocks/Paragraph/tests/Paragraph.e2e.yaml +153 -0
  166. package/dist/blocks/Paragraph/tests.yaml +176 -0
  167. package/dist/blocks/ParagraphInput/gallery.yaml +1483 -0
  168. package/dist/blocks/ParagraphInput/tests/ParagraphInput.e2e.yaml +189 -0
  169. package/dist/blocks/ParagraphInput/tests.yaml +163 -0
  170. package/dist/blocks/PasswordInput/gallery.yaml +420 -0
  171. package/dist/blocks/PasswordInput/tests/PasswordInput.e2e.yaml +188 -0
  172. package/dist/blocks/PasswordInput/tests.yaml +78 -0
  173. package/dist/blocks/PhoneNumberInput/gallery.yaml +677 -0
  174. package/dist/blocks/PhoneNumberInput/tests/PhoneNumberInput.e2e.yaml +279 -0
  175. package/dist/blocks/PhoneNumberInput/tests.yaml +25 -0
  176. package/dist/blocks/Popover/gallery.yaml +1301 -0
  177. package/dist/blocks/Popover/tests/Popover.e2e.yaml +249 -0
  178. package/dist/blocks/Popover/tests.yaml +105 -0
  179. package/dist/blocks/Progress/gallery.yaml +772 -0
  180. package/dist/blocks/Progress/tests/Progress.e2e.yaml +167 -0
  181. package/dist/blocks/Progress/tests.yaml +114 -0
  182. package/dist/blocks/QRCode/gallery.yaml +492 -0
  183. package/dist/blocks/QRCode/tests/QRCode.e2e.yaml +66 -0
  184. package/dist/blocks/QRCode/tests.yaml +113 -0
  185. package/dist/blocks/RadioSelector/RadioSelector.js +50 -25
  186. package/dist/blocks/RadioSelector/gallery.yaml +816 -0
  187. package/dist/blocks/RadioSelector/meta.js +23 -3
  188. package/dist/blocks/RadioSelector/tests/RadioSelector.e2e.yaml +269 -0
  189. package/dist/blocks/RadioSelector/tests.yaml +339 -0
  190. package/dist/blocks/RatingSlider/gallery.yaml +627 -0
  191. package/dist/blocks/RatingSlider/tests/RatingSlider.e2e.yaml +188 -0
  192. package/dist/blocks/RatingSlider/tests.yaml +116 -0
  193. package/dist/blocks/Result/gallery.yaml +925 -0
  194. package/dist/blocks/Result/tests/Result.e2e.yaml +126 -0
  195. package/dist/blocks/Result/tests.yaml +75 -0
  196. package/dist/blocks/Search/Search.js +1 -1
  197. package/dist/blocks/Search/SearchModal.js +18 -9
  198. package/dist/blocks/Search/gallery.yaml +170 -0
  199. package/dist/blocks/Search/meta.js +2 -1
  200. package/dist/blocks/Search/{style.module.css → style.css} +19 -12
  201. package/dist/blocks/Search/tests/Search.e2e.yaml +125 -0
  202. package/dist/blocks/Search/useSearchIndex.js +24 -2
  203. package/dist/blocks/SegmentedSelector/gallery.yaml +725 -0
  204. package/dist/blocks/SegmentedSelector/tests/SegmentedSelector.e2e.yaml +115 -0
  205. package/dist/blocks/SegmentedSelector/tests.yaml +141 -0
  206. package/dist/blocks/Selector/gallery.yaml +1055 -0
  207. package/dist/blocks/Selector/tests/Selector.e2e.yaml +427 -0
  208. package/dist/blocks/Selector/tests.yaml +196 -0
  209. package/dist/blocks/Sider/gallery.yaml +994 -0
  210. package/dist/blocks/Sider/tests/Sider.e2e.yaml +162 -0
  211. package/dist/blocks/Sider/tests.yaml +20 -0
  212. package/dist/blocks/Slider/gallery.yaml +600 -0
  213. package/dist/blocks/Slider/tests/Slider.e2e.yaml +190 -0
  214. package/dist/blocks/Slider/tests.yaml +68 -0
  215. package/dist/blocks/Splitter/gallery.yaml +1511 -0
  216. package/dist/blocks/Splitter/tests/Splitter.e2e.yaml +114 -0
  217. package/dist/blocks/Splitter/tests.yaml +79 -0
  218. package/dist/blocks/Statistic/gallery.yaml +460 -0
  219. package/dist/blocks/Statistic/tests/Statistic.e2e.yaml +137 -0
  220. package/dist/blocks/Statistic/tests.yaml +77 -0
  221. package/dist/blocks/Steps/gallery.yaml +550 -0
  222. package/dist/blocks/Switch/gallery.yaml +502 -0
  223. package/dist/blocks/Switch/tests/Switch.e2e.yaml +132 -0
  224. package/dist/blocks/Switch/tests.yaml +87 -0
  225. package/dist/blocks/Tabs/gallery.yaml +1353 -0
  226. package/dist/blocks/Tabs/tests/Tabs.e2e.yaml +370 -0
  227. package/dist/blocks/Tabs/tests.yaml +349 -0
  228. package/dist/blocks/Tag/gallery.yaml +598 -0
  229. package/dist/blocks/Tag/tests/Tag.e2e.yaml +173 -0
  230. package/dist/blocks/Tag/tests.yaml +51 -0
  231. package/dist/blocks/TagMultipleSelector/TagMultipleSelector.js +53 -0
  232. package/dist/blocks/TagMultipleSelector/e2e.js +36 -0
  233. package/dist/blocks/TagMultipleSelector/gallery.yaml +70 -0
  234. package/dist/blocks/TagMultipleSelector/meta.js +91 -0
  235. package/dist/blocks/TagMultipleSelector/tests/TagMultipleSelector.e2e.yaml +93 -0
  236. package/dist/blocks/TagSelector/TagSelector.js +49 -0
  237. package/dist/blocks/TagSelector/e2e.js +36 -0
  238. package/dist/blocks/TagSelector/gallery.yaml +70 -0
  239. package/dist/blocks/TagSelector/meta.js +91 -0
  240. package/dist/blocks/TagSelector/tests/TagSelector.e2e.yaml +93 -0
  241. package/dist/blocks/TextArea/gallery.yaml +618 -0
  242. package/dist/blocks/TextArea/tests/TextArea.e2e.yaml +218 -0
  243. package/dist/blocks/TextArea/tests.yaml +100 -0
  244. package/dist/blocks/TextInput/gallery.yaml +560 -0
  245. package/dist/blocks/TextInput/tests/TextInput.e2e.yaml +287 -0
  246. package/dist/blocks/TextInput/tests.yaml +114 -0
  247. package/dist/blocks/TimelineList/gallery.yaml +431 -0
  248. package/dist/blocks/TimelineList/tests/TimelineList.e2e.yaml +244 -0
  249. package/dist/blocks/TimelineList/tests.yaml +251 -0
  250. package/dist/blocks/Title/gallery.yaml +483 -0
  251. package/dist/blocks/Title/tests/Title.e2e.yaml +180 -0
  252. package/dist/blocks/Title/tests.yaml +175 -0
  253. package/dist/blocks/TitleInput/gallery.yaml +1006 -0
  254. package/dist/blocks/TitleInput/tests/TitleInput.e2e.yaml +195 -0
  255. package/dist/blocks/TitleInput/tests.yaml +181 -0
  256. package/dist/blocks/Tooltip/gallery.yaml +1214 -0
  257. package/dist/blocks/Tooltip/tests/Tooltip.e2e.yaml +195 -0
  258. package/dist/blocks/Tooltip/tests.yaml +92 -0
  259. package/dist/blocks/Tour/gallery.yaml +2305 -0
  260. package/dist/blocks/Tour/tests/Tour.e2e.yaml +90 -0
  261. package/dist/blocks/Tour/tests.yaml +151 -0
  262. package/dist/blocks/TreeInput/gallery.yaml +78 -0
  263. package/dist/blocks/TreeInput/tests/TreeInput.e2e.yaml +139 -0
  264. package/dist/blocks/TreeInput/tests.yaml +140 -0
  265. package/dist/blocks/TreeMultipleSelector/gallery.yaml +67 -0
  266. package/dist/blocks/TreeSelector/gallery.yaml +81 -0
  267. package/dist/blocks/Watermark/gallery.yaml +479 -0
  268. package/dist/blocks/Watermark/tests/Watermark.e2e.yaml +62 -0
  269. package/dist/blocks/Watermark/tests.yaml +86 -0
  270. package/dist/blocks/WeekSelector/WeekSelector.js +6 -0
  271. package/dist/blocks/WeekSelector/e2e.js +26 -2
  272. package/dist/blocks/WeekSelector/gallery.yaml +589 -0
  273. package/dist/blocks/WeekSelector/meta.js +6 -0
  274. package/dist/blocks/WeekSelector/tests/WeekSelector.e2e.yaml +154 -0
  275. package/dist/blocks/WeekSelector/tests.yaml +122 -0
  276. package/dist/blocks.js +2 -0
  277. package/dist/disabledDate.js +91 -19
  278. package/dist/e2e.js +2 -0
  279. package/dist/getPresets.js +151 -0
  280. package/dist/getTagColor.js +44 -0
  281. package/dist/getTagSelectorOptions.js +30 -0
  282. package/dist/metas.js +2 -0
  283. package/dist/pickerPresetsStyle.css +26 -0
  284. package/dist/schemas/disabledDates.js +6 -2
  285. package/dist/schemas/index.js +1 -0
  286. package/dist/schemas/presets.js +111 -0
  287. package/dist/tagSelectorStyle.css +68 -0
  288. package/package.json +13 -13
@@ -0,0 +1,528 @@
1
+ # Copyright 2020-2026 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
+ - title: Basic Content
16
+ fullWidth: true
17
+ blocks:
18
+ - id: content_basic_layout
19
+ type: Layout
20
+ blocks:
21
+ - id: content_basic
22
+ type: Content
23
+ style:
24
+ padding: 24px
25
+ background: var(--ant-color-bg-container)
26
+ minHeight: 200px
27
+ blocks:
28
+ - id: content_basic_text
29
+ type: Paragraph
30
+ properties:
31
+ content: |
32
+ The Content block is the main content area within a Layout. It maps to Ant Design's Layout.Content component and holds the primary page content.
33
+
34
+ - id: content_empty_layout
35
+ type: Layout
36
+ blocks:
37
+ - id: content_empty
38
+ type: Content
39
+ style:
40
+ padding: 24px
41
+ background: var(--ant-color-bg-layout)
42
+ minHeight: 120px
43
+ display: flex
44
+ alignItems: center
45
+ justifyContent: center
46
+ blocks:
47
+ - id: content_empty_text
48
+ type: Paragraph
49
+ properties:
50
+ content: |
51
+ Content without any special configuration. It fills the available space within its parent Layout.
52
+
53
+ - title: Content in Full Page Layout
54
+ fullWidth: true
55
+ blocks:
56
+ - id: content_full_page_layout
57
+ type: Layout
58
+ style:
59
+ minHeight: 350px
60
+ blocks:
61
+ - id: content_full_page_header
62
+ type: Header
63
+ style:
64
+ paddingInline: 24px
65
+ borderBottom: 1px solid var(--ant-color-border)
66
+ blocks:
67
+ - id: content_full_page_header_title
68
+ type: Title
69
+ properties:
70
+ content: My Application
71
+ level: 4
72
+ style:
73
+ margin: 0
74
+ - id: content_full_page_main
75
+ type: Content
76
+ style:
77
+ padding: 24px 48px
78
+ background: var(--ant-color-bg-container)
79
+ blocks:
80
+ - id: content_full_page_title
81
+ type: Title
82
+ properties:
83
+ content: Welcome Back
84
+ level: 3
85
+ - id: content_full_page_desc
86
+ type: Paragraph
87
+ properties:
88
+ content: |
89
+ Content works within a Layout alongside Header and Footer blocks to form a complete page structure. It automatically fills the available vertical space between other layout sections.
90
+ - id: content_full_page_footer
91
+ type: Footer
92
+ style:
93
+ textAlign: center
94
+ blocks:
95
+ - id: content_full_page_footer_text
96
+ type: Paragraph
97
+ properties:
98
+ content: '© 2026 My Application'
99
+
100
+ - title: Content with Sider Layout
101
+ fullWidth: true
102
+ blocks:
103
+ - id: content_sider_outer
104
+ type: Layout
105
+ style:
106
+ minHeight: 350px
107
+ blocks:
108
+ - id: content_sider_header
109
+ type: Header
110
+ style:
111
+ paddingInline: 24px
112
+ borderBottom: 1px solid var(--ant-color-border)
113
+ blocks:
114
+ - id: content_sider_header_title
115
+ type: Title
116
+ properties:
117
+ content: App with Sidebar
118
+ level: 4
119
+ style:
120
+ margin: 0
121
+ - id: content_sider_inner
122
+ type: Layout
123
+ properties:
124
+ hasSider: true
125
+ blocks:
126
+ - id: content_sider_nav
127
+ type: Sider
128
+ layout:
129
+ flex: 0 0 auto
130
+ properties:
131
+ width: 200
132
+ style:
133
+ background: var(--ant-color-bg-container)
134
+ paddingTop: 16px
135
+ blocks:
136
+ - id: content_sider_menu
137
+ type: Menu
138
+ properties:
139
+ mode: inline
140
+ options:
141
+ - id: dashboard
142
+ title: Dashboard
143
+ icon: AiOutlineDashboard
144
+ - id: users
145
+ title: Users
146
+ icon: AiOutlineUser
147
+ - id: settings
148
+ title: Settings
149
+ icon: AiOutlineSetting
150
+ - id: content_sider_main
151
+ type: Content
152
+ layout:
153
+ flex: 1 1 auto
154
+ style:
155
+ padding: 24px
156
+ background: var(--ant-color-bg-container)
157
+ margin: 0 16px
158
+ blocks:
159
+ - id: content_sider_main_title
160
+ type: Title
161
+ properties:
162
+ content: Dashboard
163
+ level: 3
164
+ - id: content_sider_main_text
165
+ type: Paragraph
166
+ properties:
167
+ content: |
168
+ When used alongside a Sider block, Content fills the remaining horizontal space. This is the standard layout pattern for admin dashboards and applications with navigation sidebars.
169
+
170
+ - title: Theme Token Overrides
171
+ fullWidth: true
172
+ blocks:
173
+ - id: content_theme_layout
174
+ type: Layout
175
+ blocks:
176
+ - id: content_theme_custom
177
+ type: Content
178
+ style:
179
+ padding: 24px
180
+ minHeight: 150px
181
+ properties:
182
+ theme:
183
+ colorText: '#003a8c'
184
+ blocks:
185
+ - id: content_theme_title
186
+ type: Title
187
+ properties:
188
+ content: Themed Content Area
189
+ level: 4
190
+ - id: content_theme_text
191
+ type: Paragraph
192
+ properties:
193
+ content: |
194
+ Use the theme property to override antd design tokens. The colorBgLayout token changes the background of the Content block, and colorText adjusts the default text color within it.
195
+
196
+ - id: content_theme_warm_layout
197
+ type: Layout
198
+ blocks:
199
+ - id: content_theme_warm
200
+ type: Content
201
+ style:
202
+ padding: 24px
203
+ minHeight: 150px
204
+ properties:
205
+ theme:
206
+ colorText: '#874d00'
207
+ blocks:
208
+ - id: content_theme_warm_title
209
+ type: Title
210
+ properties:
211
+ content: Warm Color Scheme
212
+ level: 4
213
+ - id: content_theme_warm_text
214
+ type: Paragraph
215
+ properties:
216
+ content: |
217
+ A warm-toned content area using orange theme tokens. Theme tokens cascade through the antd design system and affect all child blocks within this Content.
218
+
219
+ - id: content_theme_dark_layout
220
+ type: Layout
221
+ blocks:
222
+ - id: content_theme_dark
223
+ type: Content
224
+ style:
225
+ padding: 24px
226
+ minHeight: 150px
227
+ properties:
228
+ theme:
229
+ colorBgLayout: '#1f1f1f'
230
+ colorText: '#e0e0e0'
231
+ blocks:
232
+ - id: content_theme_dark_title
233
+ type: Title
234
+ class: text-text-secondary
235
+ properties:
236
+ content: Dark Content Area
237
+ level: 4
238
+ - id: content_theme_dark_text
239
+ type: Paragraph
240
+ class: text-text-secondary
241
+ properties:
242
+ content: |
243
+ Dark-themed content using colorBgLayout and colorText tokens. For app-wide dark themes, prefer using a global ConfigProvider rather than per-block overrides.
244
+
245
+ - title: Style and CSS Classes
246
+ fullWidth: true
247
+ blocks:
248
+ - id: content_css_rounded_layout
249
+ type: Layout
250
+ blocks:
251
+ - id: content_css_rounded
252
+ type: Content
253
+ class:
254
+ element: bg-bg-layout rounded-xl p-6 m-4
255
+ style:
256
+ minHeight: 150px
257
+ blocks:
258
+ - id: content_css_rounded_title
259
+ type: Title
260
+ properties:
261
+ content: Rounded Content with Tailwind
262
+ level: 4
263
+ - id: content_css_rounded_text
264
+ type: Paragraph
265
+ properties:
266
+ content: 'Use the element CSS key to apply Tailwind classes directly to the Content element. Content has one CSS key: element, which targets the Layout.Content wrapper.'
267
+
268
+ - id: content_css_gradient_layout
269
+ type: Layout
270
+ blocks:
271
+ - id: content_css_gradient
272
+ type: Content
273
+ class:
274
+ element: bg-gradient-to-br from-primary/10 to-primary/5 p-8 m-4 rounded-lg shadow-inner
275
+ style:
276
+ minHeight: 150px
277
+ blocks:
278
+ - id: content_css_gradient_title
279
+ type: Title
280
+ properties:
281
+ content: Gradient Background
282
+ level: 4
283
+ - id: content_css_gradient_text
284
+ type: Paragraph
285
+ properties:
286
+ content: |
287
+ Tailwind gradient and shadow utilities applied via the element CSS key create a visually distinct content area without needing custom CSS.
288
+
289
+ - id: content_css_border_layout
290
+ type: Layout
291
+ blocks:
292
+ - id: content_css_border
293
+ type: Content
294
+ class:
295
+ element: border-l-4 border-l-green-500 bg-bg-layout p-6 m-4
296
+ style:
297
+ minHeight: 150px
298
+ blocks:
299
+ - id: content_css_border_title
300
+ type: Title
301
+ properties:
302
+ content: Accent Border Content
303
+ level: 4
304
+ - id: content_css_border_text
305
+ type: Paragraph
306
+ properties:
307
+ content: |
308
+ A left accent border highlights the content area. Combine Tailwind border utilities with background colors for status-aware content regions.
309
+
310
+ - title: Content in Dashboard Layout
311
+ fullWidth: true
312
+ blocks:
313
+ - id: content_dashboard_outer
314
+ type: Layout
315
+ style:
316
+ minHeight: 450px
317
+ blocks:
318
+ - id: content_dashboard_header
319
+ type: Header
320
+ style:
321
+ justifyContent: space-between
322
+ borderBottom: 1px solid var(--ant-color-border)
323
+ paddingInline: 24px
324
+ blocks:
325
+ - id: content_dashboard_header_title
326
+ type: Title
327
+ layout:
328
+ flex: 0 0 auto
329
+ properties:
330
+ content: Analytics Dashboard
331
+ level: 4
332
+ style:
333
+ margin: 0
334
+ - id: content_dashboard_header_btn
335
+ type: Button
336
+ layout:
337
+ flex: 0 0 auto
338
+ properties:
339
+ title: Export Report
340
+ icon: AiOutlineDownload
341
+ color: default
342
+ variant: outlined
343
+ size: small
344
+ - id: content_dashboard_inner
345
+ type: Layout
346
+ properties:
347
+ hasSider: true
348
+ blocks:
349
+ - id: content_dashboard_sider
350
+ type: Sider
351
+ layout:
352
+ flex: 0 0 auto
353
+ properties:
354
+ width: 200
355
+ style:
356
+ background: var(--ant-color-bg-container)
357
+ paddingTop: 16px
358
+ blocks:
359
+ - id: content_dashboard_menu
360
+ type: Menu
361
+ properties:
362
+ mode: inline
363
+ options:
364
+ - id: overview
365
+ title: Overview
366
+ icon: AiOutlineHome
367
+ - id: analytics
368
+ title: Analytics
369
+ icon: AiOutlineBarChart
370
+ - id: reports
371
+ title: Reports
372
+ icon: AiOutlineFileText
373
+ - id: team
374
+ title: Team
375
+ icon: AiOutlineTeam
376
+ - id: content_dashboard_main
377
+ type: Content
378
+ layout:
379
+ flex: 1 1 auto
380
+ style:
381
+ padding: 24px
382
+ background: var(--ant-color-bg-layout)
383
+ blocks:
384
+ - id: content_dashboard_stats_row
385
+ type: Box
386
+ layout:
387
+ gap: 16
388
+ blocks:
389
+ - id: content_dashboard_stat1
390
+ type: Card
391
+ layout:
392
+ flex: 1 1 0
393
+ properties:
394
+ size: small
395
+ blocks:
396
+ - id: content_dashboard_stat1_val
397
+ type: Statistic
398
+ properties:
399
+ title: Total Users
400
+ value: 12480
401
+ - id: content_dashboard_stat2
402
+ type: Card
403
+ layout:
404
+ flex: 1 1 0
405
+ properties:
406
+ size: small
407
+ blocks:
408
+ - id: content_dashboard_stat2_val
409
+ type: Statistic
410
+ properties:
411
+ title: Revenue
412
+ value: 48650
413
+ prefix: $
414
+ - id: content_dashboard_stat3
415
+ type: Card
416
+ layout:
417
+ flex: 1 1 0
418
+ properties:
419
+ size: small
420
+ blocks:
421
+ - id: content_dashboard_stat3_val
422
+ type: Statistic
423
+ properties:
424
+ title: Conversion
425
+ value: 3.2
426
+ suffix: '%'
427
+ - id: content_dashboard_main_card
428
+ type: Card
429
+ properties:
430
+ title: Recent Activity
431
+ blocks:
432
+ - id: content_dashboard_activity_1
433
+ type: Paragraph
434
+ properties:
435
+ content: 'User John updated the project settings — 2 minutes ago'
436
+ - id: content_dashboard_activity_2
437
+ type: Paragraph
438
+ properties:
439
+ content: 'Deployment to production completed — 15 minutes ago'
440
+ - id: content_dashboard_activity_3
441
+ type: Paragraph
442
+ properties:
443
+ content: 'New team member Sarah joined — 1 hour ago'
444
+
445
+ - title: Content in Settings Page
446
+ fullWidth: true
447
+ blocks:
448
+ - id: content_settings_outer
449
+ type: Layout
450
+ style:
451
+ minHeight: 400px
452
+ blocks:
453
+ - id: content_settings_header
454
+ type: Header
455
+ style:
456
+ paddingInline: 24px
457
+ borderBottom: 1px solid var(--ant-color-border)
458
+ blocks:
459
+ - id: content_settings_header_title
460
+ type: Title
461
+ properties:
462
+ content: Account Settings
463
+ level: 4
464
+ style:
465
+ margin: 0
466
+ - id: content_settings_main
467
+ type: Content
468
+ style:
469
+ padding: 32px 48px
470
+ background: var(--ant-color-bg-container)
471
+ blocks:
472
+ - id: content_settings_title
473
+ type: Title
474
+ properties:
475
+ content: Profile Information
476
+ level: 3
477
+ - id: content_settings_desc
478
+ type: Paragraph
479
+ properties:
480
+ content: Update your personal details and preferences below.
481
+ - id: content_settings_form_name
482
+ type: TextInput
483
+ properties:
484
+ title: Display Name
485
+ placeholder: Enter your display name
486
+ - id: content_settings_form_email
487
+ type: TextInput
488
+ properties:
489
+ title: Email Address
490
+ placeholder: you@example.com
491
+ - id: content_settings_form_bio
492
+ type: TextArea
493
+ properties:
494
+ title: Bio
495
+ placeholder: Tell us about yourself
496
+ rows: 3
497
+ - id: content_settings_divider
498
+ type: Divider
499
+ - id: content_settings_actions
500
+ type: Box
501
+ layout:
502
+ gap: 12
503
+ justify: end
504
+ blocks:
505
+ - id: content_settings_cancel_btn
506
+ type: Button
507
+ layout:
508
+ flex: 0 0 auto
509
+ properties:
510
+ title: Cancel
511
+ color: default
512
+ variant: outlined
513
+ - id: content_settings_save_btn
514
+ type: Button
515
+ layout:
516
+ flex: 0 0 auto
517
+ properties:
518
+ title: Save Changes
519
+ color: primary
520
+ variant: solid
521
+ icon: AiOutlineSave
522
+ events:
523
+ onClick:
524
+ - id: content_settings_save_msg
525
+ type: DisplayMessage
526
+ params:
527
+ content: Settings saved successfully!
528
+ status: success
@@ -0,0 +1,71 @@
1
+ # Copyright 2020-2026 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
+ id: content
16
+ type: Box
17
+
18
+ blocks:
19
+ # ============================================
20
+ # BASIC RENDERING
21
+ # ============================================
22
+
23
+ - id: content_basic
24
+ type: Content
25
+ slots:
26
+ content:
27
+ blocks:
28
+ - id: content_basic_text
29
+ type: Span
30
+ properties:
31
+ content: Main content area
32
+
33
+ # ============================================
34
+ # STYLE TESTS
35
+ # ============================================
36
+
37
+ - id: content_with_style
38
+ type: Content
39
+ properties:
40
+ style:
41
+ backgroundColor: '#fff'
42
+ padding: 24px
43
+ minHeight: 280px
44
+ slots:
45
+ content:
46
+ blocks:
47
+ - id: content_with_style_text
48
+ type: Span
49
+ properties:
50
+ content: Styled content
51
+
52
+ # ============================================
53
+ # NESTED CONTENT
54
+ # ============================================
55
+
56
+ - id: content_nested
57
+ type: Content
58
+ slots:
59
+ content:
60
+ blocks:
61
+ - id: content_nested_card
62
+ type: Card
63
+ properties:
64
+ title: Nested Card
65
+ slots:
66
+ content:
67
+ blocks:
68
+ - id: content_nested_card_text
69
+ type: Span
70
+ properties:
71
+ content: Card inside content
@@ -0,0 +1,42 @@
1
+ # Copyright 2020-2026 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
+ - id: default
16
+ type: Content
17
+ - id: properties.style
18
+ type: Content
19
+ properties:
20
+ style:
21
+ border: '1px solid blue'
22
+ - id: areas.content
23
+ type: Content
24
+ areas:
25
+ content:
26
+ blocks:
27
+ - id: testArea
28
+ type: Test
29
+ - id: areas.footer
30
+ type: Content
31
+ areas:
32
+ footer:
33
+ blocks:
34
+ - id: testArea
35
+ type: Test
36
+ - id: areas.header
37
+ type: Content
38
+ areas:
39
+ header:
40
+ blocks:
41
+ - id: testArea
42
+ type: Test
@@ -18,7 +18,7 @@ import { List, Typography } from 'antd';
18
18
  import { cn, withBlockDefaults } from '@lowdefy/block-utils';
19
19
  import Button from '../Button/Button.js';
20
20
  import withTheme from '../withTheme.js';
21
- import './style.module.css';
21
+ import './style.css';
22
22
  const ControlledListBlock = ({ blockId, classNames = {}, components: { Icon, Link, ShortcutBadge }, events, list, methods, properties, styles = {}, value = [] })=>{
23
23
  useEffect(()=>{
24
24
  methods.registerMethod('moveItemDown', methods.moveItemDown);