@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,503 @@
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: Sizes
16
+ blocks:
17
+ - id: size_default_label
18
+ type: Markdown
19
+ properties:
20
+ content: '**Default size:**'
21
+ - id: size_default
22
+ type: Pagination
23
+ properties:
24
+ total: 100
25
+ - id: size_small_label
26
+ type: Markdown
27
+ properties:
28
+ content: '**Small size:**'
29
+ - id: size_small
30
+ type: Pagination
31
+ properties:
32
+ total: 100
33
+ size: small
34
+
35
+ - title: Simple Mode
36
+ blocks:
37
+ - id: simple_default_label
38
+ type: Markdown
39
+ properties:
40
+ content: '**Simple (default size):**'
41
+ - id: simple_default
42
+ type: Pagination
43
+ properties:
44
+ total: 100
45
+ simple: true
46
+ - id: simple_small_label
47
+ type: Markdown
48
+ properties:
49
+ content: '**Simple (small size):**'
50
+ - id: simple_small
51
+ type: Pagination
52
+ properties:
53
+ total: 100
54
+ simple: true
55
+ size: small
56
+
57
+ - title: Show Total
58
+ blocks:
59
+ - id: show_total_bool_label
60
+ type: Markdown
61
+ properties:
62
+ content: '**Boolean (default format):**'
63
+ - id: show_total_bool
64
+ type: Pagination
65
+ properties:
66
+ total: 85
67
+ showTotal: true
68
+ - id: show_total_string_label
69
+ type: Markdown
70
+ properties:
71
+ content: '**Custom string:**'
72
+ - id: show_total_string
73
+ type: Pagination
74
+ properties:
75
+ total: 85
76
+ showTotal: '85 results found'
77
+ - id: show_total_small_label
78
+ type: Markdown
79
+ properties:
80
+ content: '**Show total (small):**'
81
+ - id: show_total_small
82
+ type: Pagination
83
+ properties:
84
+ total: 200
85
+ showTotal: true
86
+ size: small
87
+
88
+ - title: Size Changer
89
+ blocks:
90
+ - id: size_changer_label
91
+ type: Markdown
92
+ properties:
93
+ content: '**Default page size options:**'
94
+ - id: size_changer_default
95
+ type: Pagination
96
+ properties:
97
+ total: 200
98
+ showSizeChanger: true
99
+ - id: size_changer_custom_label
100
+ type: Markdown
101
+ properties:
102
+ content: '**Custom page size options:**'
103
+ - id: size_changer_custom
104
+ type: Pagination
105
+ properties:
106
+ total: 500
107
+ showSizeChanger: true
108
+ pageSizeOptions:
109
+ - 5
110
+ - 15
111
+ - 25
112
+ - 50
113
+ - 100
114
+ - id: size_changer_small_label
115
+ type: Markdown
116
+ properties:
117
+ content: '**Size changer (small):**'
118
+ - id: size_changer_small
119
+ type: Pagination
120
+ properties:
121
+ total: 200
122
+ showSizeChanger: true
123
+ size: small
124
+
125
+ - title: Quick Jumper
126
+ blocks:
127
+ - id: quick_jumper_label
128
+ type: Markdown
129
+ properties:
130
+ content: '**Quick jumper enabled:**'
131
+ - id: quick_jumper
132
+ type: Pagination
133
+ properties:
134
+ total: 500
135
+ showQuickJumper: true
136
+ - id: quick_jumper_small_label
137
+ type: Markdown
138
+ properties:
139
+ content: '**Quick jumper (small):**'
140
+ - id: quick_jumper_small
141
+ type: Pagination
142
+ properties:
143
+ total: 500
144
+ showQuickJumper: true
145
+ size: small
146
+
147
+ - title: Page Size Options
148
+ blocks:
149
+ - id: page_size_default_label
150
+ type: Markdown
151
+ properties:
152
+ content: '**Default options [10, 20, 30, 40]:**'
153
+ - id: page_size_default
154
+ type: Pagination
155
+ properties:
156
+ total: 300
157
+ showSizeChanger: true
158
+ - id: page_size_custom_label
159
+ type: Markdown
160
+ properties:
161
+ content: '**Custom options [5, 10, 50, 100]:**'
162
+ - id: page_size_custom
163
+ type: Pagination
164
+ properties:
165
+ total: 300
166
+ showSizeChanger: true
167
+ pageSizeOptions:
168
+ - 5
169
+ - 10
170
+ - 50
171
+ - 100
172
+ - id: page_size_large_label
173
+ type: Markdown
174
+ properties:
175
+ content: '**Large page sizes [25, 50, 100, 200]:**'
176
+ - id: page_size_large
177
+ type: Pagination
178
+ properties:
179
+ total: 1000
180
+ showSizeChanger: true
181
+ pageSizeOptions:
182
+ - 25
183
+ - 50
184
+ - 100
185
+ - 200
186
+
187
+ - title: Hide On Single Page
188
+ blocks:
189
+ - id: hide_single_visible_label
190
+ type: Markdown
191
+ properties:
192
+ content: '**Multiple pages (visible):**'
193
+ - id: hide_single_visible
194
+ type: Pagination
195
+ properties:
196
+ total: 50
197
+ hideOnSinglePage: true
198
+ - id: hide_single_hidden_label
199
+ type: Markdown
200
+ properties:
201
+ content: '**Single page (hidden - nothing renders below):**'
202
+ - id: hide_single_hidden
203
+ type: Pagination
204
+ properties:
205
+ total: 5
206
+ hideOnSinglePage: true
207
+ - id: hide_single_no_hide_label
208
+ type: Markdown
209
+ properties:
210
+ content: '**Single page (hideOnSinglePage false):**'
211
+ - id: hide_single_no_hide
212
+ type: Pagination
213
+ properties:
214
+ total: 5
215
+ hideOnSinglePage: false
216
+
217
+ - title: Total Variations
218
+ blocks:
219
+ - id: total_small_label
220
+ type: Markdown
221
+ properties:
222
+ content: '**Small total (30):**'
223
+ - id: total_small
224
+ type: Pagination
225
+ properties:
226
+ total: 30
227
+ - id: total_medium_label
228
+ type: Markdown
229
+ properties:
230
+ content: '**Medium total (100):**'
231
+ - id: total_medium
232
+ type: Pagination
233
+ properties:
234
+ total: 100
235
+ - id: total_large_label
236
+ type: Markdown
237
+ properties:
238
+ content: '**Large total (500):**'
239
+ - id: total_large
240
+ type: Pagination
241
+ properties:
242
+ total: 500
243
+ - id: total_very_large_label
244
+ type: Markdown
245
+ properties:
246
+ content: '**Very large total (10000):**'
247
+ - id: total_very_large
248
+ type: Pagination
249
+ properties:
250
+ total: 10000
251
+
252
+ - title: Disabled
253
+ blocks:
254
+ - id: disabled_basic_label
255
+ type: Markdown
256
+ properties:
257
+ content: '**Basic disabled:**'
258
+ - id: disabled_basic
259
+ type: Pagination
260
+ properties:
261
+ total: 100
262
+ disabled: true
263
+ - id: disabled_small_label
264
+ type: Markdown
265
+ properties:
266
+ content: '**Disabled (small):**'
267
+ - id: disabled_small
268
+ type: Pagination
269
+ properties:
270
+ total: 100
271
+ disabled: true
272
+ size: small
273
+ - id: disabled_features_label
274
+ type: Markdown
275
+ properties:
276
+ content: '**Disabled with all features:**'
277
+ - id: disabled_features
278
+ type: Pagination
279
+ properties:
280
+ total: 200
281
+ disabled: true
282
+ showSizeChanger: true
283
+ showQuickJumper: true
284
+ showTotal: true
285
+ - id: disabled_simple_label
286
+ type: Markdown
287
+ properties:
288
+ content: '**Disabled simple mode:**'
289
+ - id: disabled_simple
290
+ type: Pagination
291
+ properties:
292
+ total: 100
293
+ disabled: true
294
+ simple: true
295
+
296
+ - title: Combined Features
297
+ blocks:
298
+ - id: combined_all_label
299
+ type: Markdown
300
+ properties:
301
+ content: '**All features enabled:**'
302
+ - id: combined_all
303
+ type: Pagination
304
+ properties:
305
+ total: 500
306
+ showSizeChanger: true
307
+ showQuickJumper: true
308
+ showTotal: true
309
+ - id: combined_all_small_label
310
+ type: Markdown
311
+ properties:
312
+ content: '**All features (small):**'
313
+ - id: combined_all_small
314
+ type: Pagination
315
+ properties:
316
+ total: 500
317
+ showSizeChanger: true
318
+ showQuickJumper: true
319
+ showTotal: true
320
+ size: small
321
+ - id: combined_total_changer_label
322
+ type: Markdown
323
+ properties:
324
+ content: '**Total + size changer:**'
325
+ - id: combined_total_changer
326
+ type: Pagination
327
+ properties:
328
+ total: 300
329
+ showTotal: true
330
+ showSizeChanger: true
331
+ - id: combined_total_jumper_label
332
+ type: Markdown
333
+ properties:
334
+ content: '**Total + quick jumper:**'
335
+ - id: combined_total_jumper
336
+ type: Pagination
337
+ properties:
338
+ total: 300
339
+ showTotal: true
340
+ showQuickJumper: true
341
+ - id: combined_changer_jumper_label
342
+ type: Markdown
343
+ properties:
344
+ content: '**Size changer + quick jumper:**'
345
+ - id: combined_changer_jumper
346
+ type: Pagination
347
+ properties:
348
+ total: 300
349
+ showSizeChanger: true
350
+ showQuickJumper: true
351
+
352
+ - title: With Label
353
+ blocks:
354
+ - id: with_label_default
355
+ type: Pagination
356
+ properties:
357
+ title: Page Navigation
358
+ total: 100
359
+ - id: with_label_inline
360
+ type: Pagination
361
+ properties:
362
+ title: Results
363
+ total: 200
364
+ showTotal: true
365
+ label:
366
+ inline: true
367
+ span: 6
368
+
369
+ - title: With Style
370
+ blocks:
371
+ - id: style_background_label
372
+ type: Markdown
373
+ properties:
374
+ content: '**Custom background and padding:**'
375
+ - id: style_background
376
+ type: Pagination
377
+ style:
378
+ .element:
379
+ background: var(--ant-color-bg-layout)
380
+ padding: 12
381
+ borderRadius: 8
382
+ properties:
383
+ total: 100
384
+ - id: style_centered_label
385
+ type: Markdown
386
+ properties:
387
+ content: '**Centered with border:**'
388
+ - id: style_centered
389
+ type: Pagination
390
+ style:
391
+ .element:
392
+ border: 1px solid #d9d9d9
393
+ borderRadius: 8
394
+ padding: 12
395
+ display: flex
396
+ justifyContent: center
397
+ properties:
398
+ total: 100
399
+ - id: style_right_label
400
+ type: Markdown
401
+ properties:
402
+ content: '**Right aligned:**'
403
+ - id: style_right
404
+ type: Pagination
405
+ style:
406
+ .element:
407
+ display: flex
408
+ justifyContent: flex-end
409
+ properties:
410
+ total: 100
411
+
412
+ - title: With Class
413
+ blocks:
414
+ - id: class_bg_label
415
+ type: Markdown
416
+ properties:
417
+ content: '**Tailwind background and padding:**'
418
+ - id: class_bg
419
+ type: Pagination
420
+ class: bg-bg-layout p-3 rounded-lg
421
+ properties:
422
+ total: 100
423
+ - id: class_border_label
424
+ type: Markdown
425
+ properties:
426
+ content: '**Tailwind border and centered:**'
427
+ - id: class_border
428
+ type: Pagination
429
+ class: border border-border rounded-lg p-3 flex justify-center
430
+ properties:
431
+ total: 100
432
+ - id: class_shadow_label
433
+ type: Markdown
434
+ properties:
435
+ content: '**Tailwind shadow:**'
436
+ - id: class_shadow
437
+ type: Pagination
438
+ class: shadow-md rounded-lg p-3 bg-bg-container
439
+ properties:
440
+ total: 100
441
+
442
+ - title: Theme Token Overrides
443
+ blocks:
444
+ - id: theme_primary_label
445
+ type: Markdown
446
+ properties:
447
+ content: '**Custom primary color:**'
448
+ - id: theme_primary
449
+ type: Pagination
450
+ properties:
451
+ total: 100
452
+ theme:
453
+ colorPrimary: '#722ed1'
454
+ - id: theme_large_items_label
455
+ type: Markdown
456
+ properties:
457
+ content: '**Large pagination items:**'
458
+ - id: theme_large_items
459
+ type: Pagination
460
+ properties:
461
+ total: 100
462
+ theme:
463
+ itemSize: 40
464
+ fontSize: 16
465
+ borderRadius: 20
466
+ - id: theme_small_items_label
467
+ type: Markdown
468
+ properties:
469
+ content: '**Small rounded items:**'
470
+ - id: theme_small_items
471
+ type: Pagination
472
+ properties:
473
+ total: 100
474
+ theme:
475
+ itemSize: 24
476
+ borderRadius: 12
477
+ fontSize: 12
478
+ - id: theme_active_color_label
479
+ type: Markdown
480
+ properties:
481
+ content: '**Custom active colors:**'
482
+ - id: theme_active_color
483
+ type: Pagination
484
+ properties:
485
+ total: 100
486
+ theme:
487
+ colorPrimary: '#0958d9'
488
+ - id: theme_combined_label
489
+ type: Markdown
490
+ properties:
491
+ content: '**Combined token overrides:**'
492
+ - id: theme_combined
493
+ type: Pagination
494
+ properties:
495
+ total: 200
496
+ showSizeChanger: true
497
+ showQuickJumper: true
498
+ showTotal: true
499
+ theme:
500
+ colorPrimary: '#52c41a'
501
+ itemSize: 36
502
+ borderRadius: 8
503
+ fontSize: 14
@@ -0,0 +1,159 @@
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: pagination
16
+ type: Box
17
+
18
+ events:
19
+ onInit:
20
+ - id: set_defaults
21
+ type: SetState
22
+ params:
23
+ pagination_with_value:
24
+ current: 3
25
+ pageSize: 20
26
+
27
+ blocks:
28
+ # ============================================
29
+ # BASIC RENDERING
30
+ # ============================================
31
+
32
+ - id: pagination_basic
33
+ type: Pagination
34
+ properties:
35
+ total: 100
36
+
37
+ - id: pagination_with_value
38
+ type: Pagination
39
+ properties:
40
+ total: 200
41
+
42
+ # ============================================
43
+ # SIZE TESTS
44
+ # ============================================
45
+
46
+ - id: pagination_small
47
+ type: Pagination
48
+ properties:
49
+ total: 50
50
+ size: small
51
+
52
+ # ============================================
53
+ # STYLE TESTS
54
+ # ============================================
55
+
56
+ - id: pagination_simple
57
+ type: Pagination
58
+ properties:
59
+ total: 100
60
+ simple: true
61
+
62
+ - id: pagination_show_total
63
+ type: Pagination
64
+ properties:
65
+ total: 85
66
+ showTotal: true
67
+
68
+ # ============================================
69
+ # CONTROLS
70
+ # ============================================
71
+
72
+ - id: pagination_size_changer
73
+ type: Pagination
74
+ properties:
75
+ total: 100
76
+ showSizeChanger: true
77
+ pageSizeOptions:
78
+ - 10
79
+ - 25
80
+ - 50
81
+
82
+ - id: pagination_quick_jumper
83
+ type: Pagination
84
+ properties:
85
+ total: 200
86
+ showQuickJumper: true
87
+
88
+ # ============================================
89
+ # DISABLED
90
+ # ============================================
91
+
92
+ - id: pagination_disabled
93
+ type: Pagination
94
+ properties:
95
+ total: 100
96
+ disabled: true
97
+
98
+ # ============================================
99
+ # EVENT TESTS
100
+ # ============================================
101
+
102
+ - id: pagination_onchange
103
+ type: Pagination
104
+ properties:
105
+ total: 100
106
+ events:
107
+ onChange:
108
+ - id: set_onchange
109
+ type: SetState
110
+ params:
111
+ pagination_page:
112
+ _event: current
113
+ pagination_size:
114
+ _event: pageSize
115
+
116
+ - id: onchange_display
117
+ type: Span
118
+ properties:
119
+ content:
120
+ _if:
121
+ test:
122
+ _ne:
123
+ - _state: pagination_page
124
+ - null
125
+ then:
126
+ _string.concat:
127
+ - 'Page: '
128
+ - _state: pagination_page
129
+ - ', Size: '
130
+ - _state: pagination_size
131
+ else: ''
132
+
133
+ - id: pagination_onsizechange
134
+ type: Pagination
135
+ properties:
136
+ total: 100
137
+ showSizeChanger: true
138
+ events:
139
+ onSizeChange:
140
+ - id: set_onsizechange
141
+ type: SetState
142
+ params:
143
+ pagination_new_size:
144
+ _event: pageSize
145
+
146
+ - id: onsizechange_display
147
+ type: Span
148
+ properties:
149
+ content:
150
+ _if:
151
+ test:
152
+ _ne:
153
+ - _state: pagination_new_size
154
+ - null
155
+ then:
156
+ _string.concat:
157
+ - 'New Size: '
158
+ - _state: pagination_new_size
159
+ else: ''