@lowdefy/blocks-antd 5.6.0 → 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 (283) 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/gallery.yaml +781 -0
  36. package/dist/blocks/CheckboxSelector/tests/CheckboxSelector.e2e.yaml +272 -0
  37. package/dist/blocks/CheckboxSelector/tests.yaml +325 -0
  38. package/dist/blocks/CheckboxSwitch/gallery.yaml +457 -0
  39. package/dist/blocks/CheckboxSwitch/tests/CheckboxSwitch.e2e.yaml +126 -0
  40. package/dist/blocks/CheckboxSwitch/tests.yaml +96 -0
  41. package/dist/blocks/Collapse/gallery.yaml +1079 -0
  42. package/dist/blocks/Collapse/tests/Collapse.e2e.yaml +206 -0
  43. package/dist/blocks/Collapse/tests.yaml +265 -0
  44. package/dist/blocks/ColorSelector/gallery.yaml +807 -0
  45. package/dist/blocks/ColorSelector/tests/ColorSelector.e2e.yaml +77 -0
  46. package/dist/blocks/ColorSelector/tests.yaml +84 -0
  47. package/dist/blocks/ConfigProvider/gallery.yaml +1003 -0
  48. package/dist/blocks/ConfigProvider/tests.yaml +62 -0
  49. package/dist/blocks/ConfirmModal/gallery.yaml +1043 -0
  50. package/dist/blocks/ConfirmModal/tests/ConfirmModal.e2e.yaml +410 -0
  51. package/dist/blocks/ConfirmModal/tests.yaml +95 -0
  52. package/dist/blocks/Content/gallery.yaml +528 -0
  53. package/dist/blocks/Content/tests/Content.e2e.yaml +71 -0
  54. package/dist/blocks/Content/tests.yaml +42 -0
  55. package/dist/blocks/ControlledList/ControlledList.js +1 -1
  56. package/dist/blocks/ControlledList/gallery.yaml +481 -0
  57. package/dist/blocks/ControlledList/{style.module.css → style.css} +3 -3
  58. package/dist/blocks/ControlledList/tests/ControlledList.e2e.yaml +161 -0
  59. package/dist/blocks/ControlledList/tests.yaml +57 -0
  60. package/dist/blocks/DateRangeSelector/DateRangeSelector.js +7 -0
  61. package/dist/blocks/DateRangeSelector/e2e.js +28 -2
  62. package/dist/blocks/DateRangeSelector/gallery.yaml +858 -0
  63. package/dist/blocks/DateRangeSelector/meta.js +2 -0
  64. package/dist/blocks/DateRangeSelector/tests/DateRangeSelector.e2e.yaml +204 -0
  65. package/dist/blocks/DateRangeSelector/tests.yaml +129 -0
  66. package/dist/blocks/DateSelector/DateSelector.js +6 -0
  67. package/dist/blocks/DateSelector/e2e.js +28 -2
  68. package/dist/blocks/DateSelector/gallery.yaml +691 -0
  69. package/dist/blocks/DateSelector/meta.js +6 -0
  70. package/dist/blocks/DateSelector/tests/DateSelector.e2e.yaml +229 -0
  71. package/dist/blocks/DateSelector/tests.yaml +117 -0
  72. package/dist/blocks/DateTimeSelector/DateTimeSelector.js +7 -0
  73. package/dist/blocks/DateTimeSelector/e2e.js +26 -2
  74. package/dist/blocks/DateTimeSelector/gallery.yaml +770 -0
  75. package/dist/blocks/DateTimeSelector/meta.js +2 -0
  76. package/dist/blocks/DateTimeSelector/tests/DateTimeSelector.e2e.yaml +163 -0
  77. package/dist/blocks/DateTimeSelector/tests.yaml +140 -0
  78. package/dist/blocks/Descriptions/gallery.yaml +839 -0
  79. package/dist/blocks/Descriptions/tests/Descriptions.e2e.yaml +143 -0
  80. package/dist/blocks/Descriptions/tests.yaml +256 -0
  81. package/dist/blocks/Divider/gallery.yaml +375 -0
  82. package/dist/blocks/Divider/tests/Divider.e2e.yaml +107 -0
  83. package/dist/blocks/Divider/tests.yaml +58 -0
  84. package/dist/blocks/Drawer/gallery.yaml +1257 -0
  85. package/dist/blocks/Drawer/tests/Drawer.e2e.yaml +562 -0
  86. package/dist/blocks/Drawer/tests.yaml +80 -0
  87. package/dist/blocks/DropdownButton/gallery.yaml +606 -0
  88. package/dist/blocks/DropdownButton/tests/DropdownButton.e2e.yaml +243 -0
  89. package/dist/blocks/DropdownMenu/gallery.yaml +578 -0
  90. package/dist/blocks/DropdownMenu/tests/DropdownMenu.e2e.yaml +267 -0
  91. package/dist/blocks/Flex/gallery.yaml +1416 -0
  92. package/dist/blocks/Flex/tests/Flex.e2e.yaml +95 -0
  93. package/dist/blocks/Flex/tests.yaml +92 -0
  94. package/dist/blocks/FloatButton/gallery.yaml +518 -0
  95. package/dist/blocks/FloatButton/tests/FloatButton.e2e.yaml +73 -0
  96. package/dist/blocks/FloatButton/tests.yaml +59 -0
  97. package/dist/blocks/Footer/gallery.yaml +355 -0
  98. package/dist/blocks/Footer/tests/Footer.e2e.yaml +70 -0
  99. package/dist/blocks/Footer/tests.yaml +28 -0
  100. package/dist/blocks/Header/gallery.yaml +249 -0
  101. package/dist/blocks/Header/tests/Header.e2e.yaml +77 -0
  102. package/dist/blocks/Header/tests.yaml +36 -0
  103. package/dist/blocks/Label/Label.js +1 -1
  104. package/dist/blocks/Label/gallery.yaml +762 -0
  105. package/dist/blocks/Label/{style.module.css → style.css} +28 -28
  106. package/dist/blocks/Label/tests/Label.e2e.yaml +247 -0
  107. package/dist/blocks/Label/tests.yaml +212 -0
  108. package/dist/blocks/Layout/gallery.yaml +548 -0
  109. package/dist/blocks/Layout/tests/Layout.e2e.yaml +86 -0
  110. package/dist/blocks/Layout/tests.yaml +28 -0
  111. package/dist/blocks/ListSelector/gallery.yaml +223 -0
  112. package/dist/blocks/Masonry/gallery.yaml +989 -0
  113. package/dist/blocks/Masonry/tests/Masonry.e2e.yaml +128 -0
  114. package/dist/blocks/Masonry/tests.yaml +42 -0
  115. package/dist/blocks/MasonryList/gallery.yaml +224 -0
  116. package/dist/blocks/MasonryList/tests/MasonryList.e2e.yaml +55 -0
  117. package/dist/blocks/MasonryList/tests.yaml +42 -0
  118. package/dist/blocks/Menu/gallery.yaml +974 -0
  119. package/dist/blocks/Menu/tests/Menu.e2e.yaml +484 -0
  120. package/dist/blocks/Menu/tests.yaml +1053 -0
  121. package/dist/blocks/Message/gallery.yaml +860 -0
  122. package/dist/blocks/Message/tests/Message.e2e.yaml +246 -0
  123. package/dist/blocks/Message/tests.yaml +54 -0
  124. package/dist/blocks/MobileMenu/gallery.yaml +1172 -0
  125. package/dist/blocks/MobileMenu/tests/MobileMenu.e2e.yaml +314 -0
  126. package/dist/blocks/MobileMenu/tests.yaml +359 -0
  127. package/dist/blocks/Modal/gallery.yaml +1039 -0
  128. package/dist/blocks/Modal/tests/Modal.e2e.yaml +493 -0
  129. package/dist/blocks/Modal/tests.yaml +75 -0
  130. package/dist/blocks/MonthSelector/MonthSelector.js +6 -0
  131. package/dist/blocks/MonthSelector/e2e.js +26 -2
  132. package/dist/blocks/MonthSelector/gallery.yaml +687 -0
  133. package/dist/blocks/MonthSelector/meta.js +6 -0
  134. package/dist/blocks/MonthSelector/tests/MonthSelector.e2e.yaml +167 -0
  135. package/dist/blocks/MonthSelector/tests.yaml +124 -0
  136. package/dist/blocks/MultipleSelector/gallery.yaml +1245 -0
  137. package/dist/blocks/MultipleSelector/tests/MultipleSelector.e2e.yaml +445 -0
  138. package/dist/blocks/MultipleSelector/tests.yaml +201 -0
  139. package/dist/blocks/Notification/gallery.yaml +1376 -0
  140. package/dist/blocks/Notification/tests/Notification.e2e.yaml +362 -0
  141. package/dist/blocks/Notification/tests.yaml +97 -0
  142. package/dist/blocks/NumberInput/gallery.yaml +753 -0
  143. package/dist/blocks/NumberInput/tests/NumberInput.e2e.yaml +228 -0
  144. package/dist/blocks/NumberInput/tests.yaml +116 -0
  145. package/dist/blocks/PageHeaderMenu/PageHeaderMenu.js +1 -1
  146. package/dist/blocks/PageHeaderMenu/gallery.yaml +480 -0
  147. package/dist/blocks/PageHeaderMenu/tests/PageHeaderMenu.e2e.yaml +110 -0
  148. package/dist/blocks/PageHeaderMenu/tests.yaml +173 -0
  149. package/dist/blocks/PageSidebarLayout/PageSidebarLayout.js +10 -1
  150. package/dist/blocks/PageSidebarLayout/gallery.yaml +302 -0
  151. package/dist/blocks/PageSidebarLayout/meta.js +1 -0
  152. package/dist/blocks/PageSidebarLayout/tests/PageSidebarLayout.e2e.yaml +216 -0
  153. package/dist/blocks/PageSidebarLayout/tests.yaml +174 -0
  154. package/dist/blocks/PageSiderMenu/PageSiderMenu.js +1 -1
  155. package/dist/blocks/PageSiderMenu/gallery.yaml +516 -0
  156. package/dist/blocks/PageSiderMenu/tests/PageSiderMenu.e2e.yaml +175 -0
  157. package/dist/blocks/PageSiderMenu/tests.yaml +211 -0
  158. package/dist/blocks/Pagination/gallery.yaml +503 -0
  159. package/dist/blocks/Pagination/tests/Pagination.e2e.yaml +159 -0
  160. package/dist/blocks/Pagination/tests.yaml +80 -0
  161. package/dist/blocks/Paragraph/gallery.yaml +458 -0
  162. package/dist/blocks/Paragraph/tests/Paragraph.e2e.yaml +153 -0
  163. package/dist/blocks/Paragraph/tests.yaml +176 -0
  164. package/dist/blocks/ParagraphInput/gallery.yaml +1483 -0
  165. package/dist/blocks/ParagraphInput/tests/ParagraphInput.e2e.yaml +189 -0
  166. package/dist/blocks/ParagraphInput/tests.yaml +163 -0
  167. package/dist/blocks/PasswordInput/gallery.yaml +420 -0
  168. package/dist/blocks/PasswordInput/tests/PasswordInput.e2e.yaml +188 -0
  169. package/dist/blocks/PasswordInput/tests.yaml +78 -0
  170. package/dist/blocks/PhoneNumberInput/gallery.yaml +677 -0
  171. package/dist/blocks/PhoneNumberInput/tests/PhoneNumberInput.e2e.yaml +279 -0
  172. package/dist/blocks/PhoneNumberInput/tests.yaml +25 -0
  173. package/dist/blocks/Popover/gallery.yaml +1301 -0
  174. package/dist/blocks/Popover/tests/Popover.e2e.yaml +249 -0
  175. package/dist/blocks/Popover/tests.yaml +105 -0
  176. package/dist/blocks/Progress/gallery.yaml +772 -0
  177. package/dist/blocks/Progress/tests/Progress.e2e.yaml +167 -0
  178. package/dist/blocks/Progress/tests.yaml +114 -0
  179. package/dist/blocks/QRCode/gallery.yaml +492 -0
  180. package/dist/blocks/QRCode/tests/QRCode.e2e.yaml +66 -0
  181. package/dist/blocks/QRCode/tests.yaml +113 -0
  182. package/dist/blocks/RadioSelector/gallery.yaml +816 -0
  183. package/dist/blocks/RadioSelector/tests/RadioSelector.e2e.yaml +269 -0
  184. package/dist/blocks/RadioSelector/tests.yaml +339 -0
  185. package/dist/blocks/RatingSlider/gallery.yaml +627 -0
  186. package/dist/blocks/RatingSlider/tests/RatingSlider.e2e.yaml +188 -0
  187. package/dist/blocks/RatingSlider/tests.yaml +116 -0
  188. package/dist/blocks/Result/gallery.yaml +925 -0
  189. package/dist/blocks/Result/tests/Result.e2e.yaml +126 -0
  190. package/dist/blocks/Result/tests.yaml +75 -0
  191. package/dist/blocks/Search/Search.js +1 -1
  192. package/dist/blocks/Search/SearchModal.js +18 -9
  193. package/dist/blocks/Search/gallery.yaml +170 -0
  194. package/dist/blocks/Search/meta.js +2 -1
  195. package/dist/blocks/Search/{style.module.css → style.css} +19 -12
  196. package/dist/blocks/Search/tests/Search.e2e.yaml +125 -0
  197. package/dist/blocks/Search/useSearchIndex.js +24 -2
  198. package/dist/blocks/SegmentedSelector/gallery.yaml +725 -0
  199. package/dist/blocks/SegmentedSelector/tests/SegmentedSelector.e2e.yaml +115 -0
  200. package/dist/blocks/SegmentedSelector/tests.yaml +141 -0
  201. package/dist/blocks/Selector/gallery.yaml +1055 -0
  202. package/dist/blocks/Selector/tests/Selector.e2e.yaml +427 -0
  203. package/dist/blocks/Selector/tests.yaml +196 -0
  204. package/dist/blocks/Sider/gallery.yaml +994 -0
  205. package/dist/blocks/Sider/tests/Sider.e2e.yaml +162 -0
  206. package/dist/blocks/Sider/tests.yaml +20 -0
  207. package/dist/blocks/Slider/gallery.yaml +600 -0
  208. package/dist/blocks/Slider/tests/Slider.e2e.yaml +190 -0
  209. package/dist/blocks/Slider/tests.yaml +68 -0
  210. package/dist/blocks/Splitter/gallery.yaml +1511 -0
  211. package/dist/blocks/Splitter/tests/Splitter.e2e.yaml +114 -0
  212. package/dist/blocks/Splitter/tests.yaml +79 -0
  213. package/dist/blocks/Statistic/gallery.yaml +460 -0
  214. package/dist/blocks/Statistic/tests/Statistic.e2e.yaml +137 -0
  215. package/dist/blocks/Statistic/tests.yaml +77 -0
  216. package/dist/blocks/Steps/gallery.yaml +550 -0
  217. package/dist/blocks/Switch/gallery.yaml +502 -0
  218. package/dist/blocks/Switch/tests/Switch.e2e.yaml +132 -0
  219. package/dist/blocks/Switch/tests.yaml +87 -0
  220. package/dist/blocks/Tabs/gallery.yaml +1353 -0
  221. package/dist/blocks/Tabs/tests/Tabs.e2e.yaml +370 -0
  222. package/dist/blocks/Tabs/tests.yaml +349 -0
  223. package/dist/blocks/Tag/gallery.yaml +598 -0
  224. package/dist/blocks/Tag/tests/Tag.e2e.yaml +173 -0
  225. package/dist/blocks/Tag/tests.yaml +51 -0
  226. package/dist/blocks/TagMultipleSelector/TagMultipleSelector.js +53 -0
  227. package/dist/blocks/TagMultipleSelector/e2e.js +36 -0
  228. package/dist/blocks/TagMultipleSelector/gallery.yaml +70 -0
  229. package/dist/blocks/TagMultipleSelector/meta.js +91 -0
  230. package/dist/blocks/TagMultipleSelector/tests/TagMultipleSelector.e2e.yaml +93 -0
  231. package/dist/blocks/TagSelector/TagSelector.js +49 -0
  232. package/dist/blocks/TagSelector/e2e.js +36 -0
  233. package/dist/blocks/TagSelector/gallery.yaml +70 -0
  234. package/dist/blocks/TagSelector/meta.js +91 -0
  235. package/dist/blocks/TagSelector/tests/TagSelector.e2e.yaml +93 -0
  236. package/dist/blocks/TextArea/gallery.yaml +618 -0
  237. package/dist/blocks/TextArea/tests/TextArea.e2e.yaml +218 -0
  238. package/dist/blocks/TextArea/tests.yaml +100 -0
  239. package/dist/blocks/TextInput/gallery.yaml +560 -0
  240. package/dist/blocks/TextInput/tests/TextInput.e2e.yaml +287 -0
  241. package/dist/blocks/TextInput/tests.yaml +114 -0
  242. package/dist/blocks/TimelineList/gallery.yaml +431 -0
  243. package/dist/blocks/TimelineList/tests/TimelineList.e2e.yaml +244 -0
  244. package/dist/blocks/TimelineList/tests.yaml +251 -0
  245. package/dist/blocks/Title/gallery.yaml +483 -0
  246. package/dist/blocks/Title/tests/Title.e2e.yaml +180 -0
  247. package/dist/blocks/Title/tests.yaml +175 -0
  248. package/dist/blocks/TitleInput/gallery.yaml +1006 -0
  249. package/dist/blocks/TitleInput/tests/TitleInput.e2e.yaml +195 -0
  250. package/dist/blocks/TitleInput/tests.yaml +181 -0
  251. package/dist/blocks/Tooltip/gallery.yaml +1214 -0
  252. package/dist/blocks/Tooltip/tests/Tooltip.e2e.yaml +195 -0
  253. package/dist/blocks/Tooltip/tests.yaml +92 -0
  254. package/dist/blocks/Tour/gallery.yaml +2305 -0
  255. package/dist/blocks/Tour/tests/Tour.e2e.yaml +90 -0
  256. package/dist/blocks/Tour/tests.yaml +151 -0
  257. package/dist/blocks/TreeInput/gallery.yaml +78 -0
  258. package/dist/blocks/TreeInput/tests/TreeInput.e2e.yaml +139 -0
  259. package/dist/blocks/TreeInput/tests.yaml +140 -0
  260. package/dist/blocks/TreeMultipleSelector/gallery.yaml +67 -0
  261. package/dist/blocks/TreeSelector/gallery.yaml +81 -0
  262. package/dist/blocks/Watermark/gallery.yaml +479 -0
  263. package/dist/blocks/Watermark/tests/Watermark.e2e.yaml +62 -0
  264. package/dist/blocks/Watermark/tests.yaml +86 -0
  265. package/dist/blocks/WeekSelector/WeekSelector.js +6 -0
  266. package/dist/blocks/WeekSelector/e2e.js +26 -2
  267. package/dist/blocks/WeekSelector/gallery.yaml +589 -0
  268. package/dist/blocks/WeekSelector/meta.js +6 -0
  269. package/dist/blocks/WeekSelector/tests/WeekSelector.e2e.yaml +154 -0
  270. package/dist/blocks/WeekSelector/tests.yaml +122 -0
  271. package/dist/blocks.js +2 -0
  272. package/dist/disabledDate.js +91 -19
  273. package/dist/e2e.js +2 -0
  274. package/dist/getPresets.js +151 -0
  275. package/dist/getTagColor.js +44 -0
  276. package/dist/getTagSelectorOptions.js +30 -0
  277. package/dist/metas.js +2 -0
  278. package/dist/pickerPresetsStyle.css +26 -0
  279. package/dist/schemas/disabledDates.js +6 -2
  280. package/dist/schemas/index.js +1 -0
  281. package/dist/schemas/presets.js +111 -0
  282. package/dist/tagSelectorStyle.css +68 -0
  283. package/package.json +13 -13
@@ -0,0 +1,173 @@
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: PageHeaderMenu
17
+ - id: 'properties.menu'
18
+ type: PageHeaderMenu
19
+ properties:
20
+ menu:
21
+ links:
22
+ - id: Introduction
23
+ type: MenuLink
24
+ pageId: introduction
25
+ properties:
26
+ icon: AiOutlineRocket
27
+ title: Introduction
28
+ - id: alert
29
+ type: MenuLink
30
+ pageId: Alert
31
+ properties:
32
+ icon: AiOutlineExclamationCircle
33
+ title: Alert
34
+ - id: 'properties.logo.src'
35
+ type: PageHeaderMenu
36
+ properties:
37
+ logo:
38
+ src: 'https://lowdefy.com/logos/name_250.png'
39
+ menu:
40
+ links:
41
+ - id: Introduction
42
+ type: MenuLink
43
+ pageId: introduction
44
+ properties:
45
+ icon: AiOutlineRocket
46
+ title: Introduction
47
+ - id: alert
48
+ type: MenuLink
49
+ pageId: Alert
50
+ properties:
51
+ icon: AiOutlineExclamationCircle
52
+ title: Alert
53
+ - id: 'properties.logo.alt'
54
+ type: PageHeaderMenu
55
+ properties:
56
+ logo:
57
+ alt: 'Header logo alt text'
58
+ menu:
59
+ links:
60
+ - id: Introduction
61
+ type: MenuLink
62
+ pageId: introduction
63
+ properties:
64
+ icon: AiOutlineRocket
65
+ title: Introduction
66
+ - id: alert
67
+ type: MenuLink
68
+ pageId: Alert
69
+ properties:
70
+ icon: AiOutlineExclamationCircle
71
+ title: Alert
72
+ - id: 'properties.logo.style'
73
+ type: PageHeaderMenu
74
+ properties:
75
+ logo:
76
+ style:
77
+ border: 5px solid blue
78
+ - id: 'properties.logo.srcSet'
79
+ type: PageHeaderMenu
80
+ properties:
81
+ logo:
82
+ srcSet: 'https://lowdefy.com/logos/name_250.png 250w, https://lowdefy.com/logos/name_450.png 450w'
83
+ menu:
84
+ links:
85
+ - id: Introduction
86
+ type: MenuLink
87
+ pageId: introduction
88
+ properties:
89
+ icon: AiOutlineRocket
90
+ title: Introduction
91
+ - id: alert
92
+ type: MenuLink
93
+ pageId: Alert
94
+ properties:
95
+ icon: AiOutlineExclamationCircle
96
+ title: Alert
97
+ - id: 'properties.logo.size'
98
+ type: PageHeaderMenu
99
+ properties:
100
+ logo:
101
+ srcSet: '(max-width: 767px) 40px, 768px'
102
+ menu:
103
+ links:
104
+ - id: Introduction
105
+ type: MenuLink
106
+ pageId: introduction
107
+ properties:
108
+ icon: AiOutlineRocket
109
+ title: Introduction
110
+ - id: alert
111
+ type: MenuLink
112
+ pageId: Alert
113
+ properties:
114
+ icon: AiOutlineExclamationCircle
115
+ title: Alert
116
+ - id: 'properties.header.theme: light'
117
+ type: PageHeaderMenu
118
+ properties:
119
+ header:
120
+ theme: light
121
+ menu:
122
+ links:
123
+ - id: Introduction
124
+ type: MenuLink
125
+ pageId: introduction
126
+ properties:
127
+ icon: AiOutlineRocket
128
+ title: Introduction
129
+ - id: alert
130
+ type: MenuLink
131
+ pageId: Alert
132
+ properties:
133
+ icon: AiOutlineExclamationCircle
134
+ title: Alert
135
+ - id: 'properties.breadcrumb.list'
136
+ type: PageHeaderMenu
137
+ properties:
138
+ breadcrumb:
139
+ list:
140
+ - Link one
141
+ - Link two
142
+ - id: 'properties.footer.style'
143
+ type: PageHeaderMenu
144
+ properties:
145
+ footer:
146
+ style:
147
+ border: 5px solid blue
148
+ areas:
149
+ footer:
150
+ blocks: []
151
+ - id: 'properties.content.style'
152
+ type: PageHeaderMenu
153
+ properties:
154
+ content:
155
+ style:
156
+ border: 5px solid blue
157
+ areas:
158
+ content:
159
+ blocks: []
160
+ - id: 'properties.header.style'
161
+ type: PageHeaderMenu
162
+ properties:
163
+ header:
164
+ style:
165
+ border: 5px solid blue
166
+ areas:
167
+ header:
168
+ blocks: []
169
+ - id: 'properties.style'
170
+ type: PageHeaderMenu
171
+ properties:
172
+ style:
173
+ border: 5px solid blue
@@ -419,7 +419,16 @@ const PageSidebarLayout = ({ basePath, blockId, classNames = {}, components: { I
419
419
  },
420
420
  properties.header?.contentStyle
421
421
  ])
422
- }, content.header())
422
+ }, content.header(mergeObjects([
423
+ {
424
+ display: 'flex',
425
+ flex: '1 1 auto',
426
+ width: '100%',
427
+ minWidth: 0,
428
+ alignItems: 'center'
429
+ },
430
+ styles.headerContent
431
+ ])))
423
432
  }
424
433
  }), /*#__PURE__*/ React.createElement(Content, {
425
434
  blockId: `${blockId}_content`,
@@ -0,0 +1,302 @@
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 PageSidebarLayout
16
+ fullWidth: true
17
+ blocks:
18
+ - id: psl_basic
19
+ type: PageSidebarLayout
20
+ properties:
21
+ siderStorageKey: psl_basic
22
+ sider:
23
+ initialCollapsed: false
24
+ width: 220
25
+ menu:
26
+ links:
27
+ - id: psl_basic_dash
28
+ type: MenuLink
29
+ properties:
30
+ title: Dashboard
31
+ icon: AiOutlineDashboard
32
+ - id: psl_basic_users
33
+ type: MenuLink
34
+ properties:
35
+ title: Users
36
+ icon: AiOutlineUser
37
+ - id: psl_basic_settings
38
+ type: MenuLink
39
+ properties:
40
+ title: Settings
41
+ icon: AiOutlineSetting
42
+ blocks:
43
+ - id: psl_basic_content
44
+ type: Paragraph
45
+ properties:
46
+ content: PageSidebarLayout provides a full-page layout with a full-height sidebar. The sider spans the entire viewport height with the logo at the bottom. On mobile screens, a hamburger menu with a full-width drawer replaces the sider.
47
+
48
+ - title: Initially Collapsed
49
+ fullWidth: true
50
+ blocks:
51
+ - id: psl_collapsed
52
+ type: PageSidebarLayout
53
+ properties:
54
+ siderStorageKey: psl_collapsed
55
+ sider:
56
+ initialCollapsed: true
57
+ menu:
58
+ links:
59
+ - id: psl_collapsed_dash
60
+ type: MenuLink
61
+ properties:
62
+ title: Dashboard
63
+ icon: AiOutlineDashboard
64
+ - id: psl_collapsed_users
65
+ type: MenuLink
66
+ properties:
67
+ title: Users
68
+ icon: AiOutlineUser
69
+ blocks:
70
+ - id: psl_collapsed_content
71
+ type: Paragraph
72
+ properties:
73
+ content: Sider starts collapsed. Click the toggle button to expand. The collapsed state is persisted in localStorage.
74
+
75
+ - title: With Desktop Header
76
+ fullWidth: true
77
+ blocks:
78
+ - id: psl_header
79
+ type: PageSidebarLayout
80
+ properties:
81
+ siderStorageKey: psl_header
82
+ sider:
83
+ width: 220
84
+ header:
85
+ contentStyle:
86
+ justifyContent: flex-end
87
+ menu:
88
+ links:
89
+ - id: psl_header_dash
90
+ type: MenuLink
91
+ properties:
92
+ title: Dashboard
93
+ icon: AiOutlineDashboard
94
+ - id: psl_header_settings
95
+ type: MenuLink
96
+ properties:
97
+ title: Settings
98
+ icon: AiOutlineSetting
99
+ slots:
100
+ header:
101
+ blocks:
102
+ - id: psl_header_search_btn
103
+ type: Button
104
+ layout:
105
+ flex: 0 0 auto
106
+ properties:
107
+ title: Search
108
+ icon: AiOutlineSearch
109
+ color: default
110
+ variant: outlined
111
+ size: small
112
+ blocks:
113
+ - id: psl_header_content
114
+ type: Paragraph
115
+ properties:
116
+ content: Optional desktop header with custom content. The header sits inside the content area, not above the sider.
117
+
118
+ - title: Logo Configuration
119
+ fullWidth: true
120
+ blocks:
121
+ - id: psl_logo
122
+ type: PageSidebarLayout
123
+ properties:
124
+ siderStorageKey: psl_logo
125
+ logo:
126
+ src: /logo_example.png
127
+ srcMobile: /logo_example.png
128
+ alt: Custom Logo
129
+ style:
130
+ width: 80
131
+ menu:
132
+ links:
133
+ - id: psl_logo_dash
134
+ type: MenuLink
135
+ properties:
136
+ title: Dashboard
137
+ icon: AiOutlineDashboard
138
+ blocks:
139
+ - id: psl_logo_content
140
+ type: Paragraph
141
+ properties:
142
+ content: Custom logo with style overrides. The full logo (src) shows when the sider is expanded, and the square logo (srcMobile) shows when collapsed.
143
+
144
+ - title: Admin Dashboard
145
+ fullWidth: true
146
+ blocks:
147
+ - id: psl_admin
148
+ type: PageSidebarLayout
149
+ properties:
150
+ siderStorageKey: psl_admin
151
+ darkModeToggle: true
152
+ notifications:
153
+ count: 3
154
+ profile:
155
+ avatar:
156
+ content: AU
157
+ color: '#1677ff'
158
+ links:
159
+ - id: psl_admin_prof_profile
160
+ type: MenuLink
161
+ properties:
162
+ title: My Profile
163
+ icon: AiOutlineUser
164
+ - id: psl_admin_prof_settings
165
+ type: MenuLink
166
+ properties:
167
+ title: Settings
168
+ icon: AiOutlineSetting
169
+ - id: psl_admin_prof_divider
170
+ type: MenuDivider
171
+ - id: psl_admin_prof_logout
172
+ type: MenuLink
173
+ properties:
174
+ title: Sign Out
175
+ icon: AiOutlineLogout
176
+ danger: true
177
+ sider:
178
+ width: 240
179
+ breadcrumb:
180
+ list:
181
+ - Admin
182
+ - Dashboard
183
+ menu:
184
+ defaultOpenKeys:
185
+ - psl_admin_users_group
186
+ links:
187
+ - id: psl_admin_dash
188
+ type: MenuLink
189
+ properties:
190
+ title: Dashboard
191
+ icon: AiOutlineDashboard
192
+ - id: psl_admin_users_group
193
+ type: MenuGroup
194
+ properties:
195
+ title: User Management
196
+ icon: AiOutlineTeam
197
+ links:
198
+ - id: psl_admin_all_users
199
+ type: MenuLink
200
+ properties:
201
+ title: All Users
202
+ - id: psl_admin_user_roles
203
+ type: MenuLink
204
+ properties:
205
+ title: Roles & Permissions
206
+ - id: psl_admin_analytics
207
+ type: MenuLink
208
+ properties:
209
+ title: Analytics
210
+ icon: AiOutlineBarChart
211
+ - id: psl_admin_settings
212
+ type: MenuLink
213
+ properties:
214
+ title: Settings
215
+ icon: AiOutlineSetting
216
+ slots:
217
+ siderOpen:
218
+ blocks:
219
+ - id: psl_admin_sider_open
220
+ type: Box
221
+ style:
222
+ padding: 8px 12px
223
+ blocks:
224
+ - id: psl_admin_env_tag
225
+ type: Tag
226
+ properties:
227
+ title: Production
228
+ color: green
229
+ icon: AiOutlineCloudServer
230
+ siderClosed:
231
+ blocks:
232
+ - id: psl_admin_sider_closed
233
+ type: Box
234
+ style:
235
+ padding: 8px
236
+ textAlign: center
237
+ blocks:
238
+ - id: psl_admin_env_tag_sm
239
+ type: Tag
240
+ properties:
241
+ title: Prod
242
+ color: green
243
+ footer:
244
+ blocks:
245
+ - id: psl_admin_footer_text
246
+ type: Paragraph
247
+ properties:
248
+ content: Admin Panel v2.4.1
249
+ style:
250
+ textAlign: center
251
+ margin: 0
252
+ color: '#999'
253
+ fontSize: 12
254
+ blocks:
255
+ - id: psl_admin_title
256
+ type: Title
257
+ properties:
258
+ content: Dashboard Overview
259
+ level: 3
260
+ - id: psl_admin_stats_row
261
+ type: Box
262
+ layout:
263
+ gap: 16
264
+ blocks:
265
+ - id: psl_admin_stat_users
266
+ type: Card
267
+ layout:
268
+ flex: 1 1 0
269
+ properties:
270
+ size: small
271
+ blocks:
272
+ - id: psl_admin_stat_users_val
273
+ type: Statistic
274
+ properties:
275
+ title: Total Users
276
+ value: 2847
277
+ prefixIcon: AiOutlineUser
278
+ - id: psl_admin_stat_revenue
279
+ type: Card
280
+ layout:
281
+ flex: 1 1 0
282
+ properties:
283
+ size: small
284
+ blocks:
285
+ - id: psl_admin_stat_revenue_val
286
+ type: Statistic
287
+ properties:
288
+ title: Revenue
289
+ value: 58420
290
+ prefix: $
291
+ - id: psl_admin_stat_orders
292
+ type: Card
293
+ layout:
294
+ flex: 1 1 0
295
+ properties:
296
+ size: small
297
+ blocks:
298
+ - id: psl_admin_stat_orders_val
299
+ type: Statistic
300
+ properties:
301
+ title: Orders
302
+ value: 384
@@ -47,6 +47,7 @@ export default {
47
47
  mobileMenu: 'The PageSidebarLayout mobile menu.',
48
48
  header: 'The PageSidebarLayout header.',
49
49
  headerActions: 'The header actions container (notifications, profile, dark mode toggle).',
50
+ headerContent: 'The PageSidebarLayout header content area (the header slot row).',
50
51
  logo: 'The PageSidebarLayout logo.',
51
52
  notifications: 'The notification bell button.',
52
53
  notificationsBadge: 'The notification badge wrapper.',
@@ -0,0 +1,216 @@
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: pagesidebarlayout
16
+ type: PageSidebarLayout
17
+ properties:
18
+ siderStorageKey: psl_e2e
19
+ sider:
20
+ initialCollapsed: false
21
+ collapsible: true
22
+ logo:
23
+ src: logo-light-theme.png
24
+ srcMobile: logo-square-light-theme.png
25
+ alt: Test Logo
26
+ menu:
27
+ links:
28
+ - id: psl_link1
29
+ type: MenuLink
30
+ properties:
31
+ title: Dashboard
32
+ icon: AiOutlineDashboard
33
+ - id: psl_link2
34
+ type: MenuLink
35
+ properties:
36
+ title: Users
37
+ icon: AiOutlineUser
38
+ - id: psl_group
39
+ type: MenuGroup
40
+ properties:
41
+ title: Settings
42
+ icon: AiOutlineSetting
43
+ links:
44
+ - id: psl_sub1
45
+ type: MenuLink
46
+ properties:
47
+ title: General
48
+ - id: psl_sub2
49
+ type: MenuLink
50
+ properties:
51
+ title: Security
52
+ breadcrumb:
53
+ list:
54
+ - Home
55
+ - Dashboard
56
+
57
+ slots:
58
+ header:
59
+ blocks:
60
+ - id: header_content
61
+ type: Span
62
+ properties:
63
+ content: Header Content Area
64
+ siderOpen:
65
+ blocks:
66
+ - id: sider_open_content
67
+ type: Span
68
+ properties:
69
+ content: Sider Open Content
70
+ siderClosed:
71
+ blocks:
72
+ - id: sider_closed_content
73
+ type: Span
74
+ properties:
75
+ content: Sider Closed Content
76
+ mobileExtra:
77
+ blocks:
78
+ - id: mobile_extra_content
79
+ type: Span
80
+ properties:
81
+ content: Mobile Extra
82
+ mobileDrawerContent:
83
+ blocks:
84
+ - id: mobile_drawer_content
85
+ type: Span
86
+ properties:
87
+ content: Mobile Drawer Content
88
+ mobileDrawerFooter:
89
+ blocks:
90
+ - id: mobile_drawer_footer
91
+ type: Span
92
+ properties:
93
+ content: Mobile Drawer Footer
94
+ content:
95
+ blocks:
96
+ - id: main_content
97
+ type: Title
98
+ properties:
99
+ content: Main Content Area
100
+ level: 3
101
+
102
+ # ============================================
103
+ # METHOD TESTS
104
+ # ============================================
105
+
106
+ - id: toggle_sider_btn
107
+ type: Button
108
+ properties:
109
+ title: Toggle Sider
110
+ events:
111
+ onClick:
112
+ - id: toggle_sider
113
+ type: CallMethod
114
+ params:
115
+ blockId: pagesidebarlayout
116
+ method: toggleSiderOpen
117
+
118
+ - id: open_sider_btn
119
+ type: Button
120
+ properties:
121
+ title: Open Sider
122
+ events:
123
+ onClick:
124
+ - id: open_sider
125
+ type: CallMethod
126
+ params:
127
+ blockId: pagesidebarlayout
128
+ method: setSiderOpen
129
+ args:
130
+ - open: true
131
+
132
+ - id: close_sider_btn
133
+ type: Button
134
+ properties:
135
+ title: Close Sider
136
+ events:
137
+ onClick:
138
+ - id: close_sider
139
+ type: CallMethod
140
+ params:
141
+ blockId: pagesidebarlayout
142
+ method: setSiderOpen
143
+ args:
144
+ - open: false
145
+
146
+ # ============================================
147
+ # EVENT DISPLAYS
148
+ # ============================================
149
+
150
+ - id: breadcrumb_display
151
+ type: Span
152
+ properties:
153
+ content:
154
+ _if:
155
+ test:
156
+ _ne:
157
+ - _state: psl_breadcrumb_clicked
158
+ - null
159
+ then:
160
+ _string.concat:
161
+ - 'Breadcrumb: '
162
+ - _state: psl_breadcrumb_clicked
163
+ else: ''
164
+
165
+ - id: menuitem_display
166
+ type: Span
167
+ properties:
168
+ content:
169
+ _if:
170
+ test:
171
+ _ne:
172
+ - _state: psl_menuitem_clicked
173
+ - null
174
+ then:
175
+ _string.concat:
176
+ - 'Menu clicked: '
177
+ - _state: psl_menuitem_clicked
178
+ else: ''
179
+
180
+ - id: toggle_sider_display
181
+ type: Span
182
+ properties:
183
+ content:
184
+ _if:
185
+ test:
186
+ _eq:
187
+ - _state: psl_toggle_sider_fired
188
+ - true
189
+ then: Toggle sider fired
190
+ else: ''
191
+
192
+ footer:
193
+ blocks:
194
+ - id: footer_content
195
+ type: Span
196
+ properties:
197
+ content: Footer Content Area
198
+
199
+ events:
200
+ onBreadcrumbClick:
201
+ - id: set_breadcrumb_clicked
202
+ type: SetState
203
+ params:
204
+ psl_breadcrumb_clicked:
205
+ _event: link
206
+ onMenuItemClick:
207
+ - id: set_menu_clicked
208
+ type: SetState
209
+ params:
210
+ psl_menuitem_clicked:
211
+ _event: key
212
+ onToggleSider:
213
+ - id: set_toggle_sider_fired
214
+ type: SetState
215
+ params:
216
+ psl_toggle_sider_fired: true