@lowdefy/blocks-antd 5.6.0 → 6.1.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 (285) 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/Button.js +11 -2
  21. package/dist/blocks/Button/gallery.yaml +718 -0
  22. package/dist/blocks/Button/meta.js +4 -0
  23. package/dist/blocks/Button/tests/Button.e2e.yaml +246 -0
  24. package/dist/blocks/Button/tests.yaml +109 -0
  25. package/dist/blocks/ButtonSelector/gallery.yaml +891 -0
  26. package/dist/blocks/ButtonSelector/tests/ButtonSelector.e2e.yaml +188 -0
  27. package/dist/blocks/ButtonSelector/tests.yaml +167 -0
  28. package/dist/blocks/Calendar/gallery.yaml +128 -0
  29. package/dist/blocks/Calendar/tests/Calendar.e2e.yaml +136 -0
  30. package/dist/blocks/Calendar/tests.yaml +50 -0
  31. package/dist/blocks/Card/gallery.yaml +1035 -0
  32. package/dist/blocks/Card/tests/Card.e2e.yaml +209 -0
  33. package/dist/blocks/Card/tests.yaml +75 -0
  34. package/dist/blocks/Carousel/gallery.yaml +1971 -0
  35. package/dist/blocks/Carousel/tests/Carousel.e2e.yaml +211 -0
  36. package/dist/blocks/Carousel/tests.yaml +117 -0
  37. package/dist/blocks/CheckboxSelector/gallery.yaml +781 -0
  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 +1 -1
  106. package/dist/blocks/Label/gallery.yaml +762 -0
  107. package/dist/blocks/Label/{style.module.css → style.css} +28 -28
  108. package/dist/blocks/Label/tests/Label.e2e.yaml +247 -0
  109. package/dist/blocks/Label/tests.yaml +212 -0
  110. package/dist/blocks/Layout/gallery.yaml +548 -0
  111. package/dist/blocks/Layout/tests/Layout.e2e.yaml +86 -0
  112. package/dist/blocks/Layout/tests.yaml +28 -0
  113. package/dist/blocks/ListSelector/gallery.yaml +223 -0
  114. package/dist/blocks/Masonry/gallery.yaml +989 -0
  115. package/dist/blocks/Masonry/tests/Masonry.e2e.yaml +128 -0
  116. package/dist/blocks/Masonry/tests.yaml +42 -0
  117. package/dist/blocks/MasonryList/gallery.yaml +224 -0
  118. package/dist/blocks/MasonryList/tests/MasonryList.e2e.yaml +55 -0
  119. package/dist/blocks/MasonryList/tests.yaml +42 -0
  120. package/dist/blocks/Menu/gallery.yaml +974 -0
  121. package/dist/blocks/Menu/tests/Menu.e2e.yaml +484 -0
  122. package/dist/blocks/Menu/tests.yaml +1053 -0
  123. package/dist/blocks/Message/gallery.yaml +860 -0
  124. package/dist/blocks/Message/tests/Message.e2e.yaml +246 -0
  125. package/dist/blocks/Message/tests.yaml +54 -0
  126. package/dist/blocks/MobileMenu/gallery.yaml +1172 -0
  127. package/dist/blocks/MobileMenu/tests/MobileMenu.e2e.yaml +314 -0
  128. package/dist/blocks/MobileMenu/tests.yaml +359 -0
  129. package/dist/blocks/Modal/gallery.yaml +1039 -0
  130. package/dist/blocks/Modal/tests/Modal.e2e.yaml +493 -0
  131. package/dist/blocks/Modal/tests.yaml +75 -0
  132. package/dist/blocks/MonthSelector/MonthSelector.js +6 -0
  133. package/dist/blocks/MonthSelector/e2e.js +26 -2
  134. package/dist/blocks/MonthSelector/gallery.yaml +687 -0
  135. package/dist/blocks/MonthSelector/meta.js +6 -0
  136. package/dist/blocks/MonthSelector/tests/MonthSelector.e2e.yaml +167 -0
  137. package/dist/blocks/MonthSelector/tests.yaml +124 -0
  138. package/dist/blocks/MultipleSelector/gallery.yaml +1245 -0
  139. package/dist/blocks/MultipleSelector/tests/MultipleSelector.e2e.yaml +445 -0
  140. package/dist/blocks/MultipleSelector/tests.yaml +201 -0
  141. package/dist/blocks/Notification/gallery.yaml +1376 -0
  142. package/dist/blocks/Notification/tests/Notification.e2e.yaml +362 -0
  143. package/dist/blocks/Notification/tests.yaml +97 -0
  144. package/dist/blocks/NumberInput/gallery.yaml +753 -0
  145. package/dist/blocks/NumberInput/tests/NumberInput.e2e.yaml +228 -0
  146. package/dist/blocks/NumberInput/tests.yaml +116 -0
  147. package/dist/blocks/PageHeaderMenu/PageHeaderMenu.js +1 -1
  148. package/dist/blocks/PageHeaderMenu/gallery.yaml +480 -0
  149. package/dist/blocks/PageHeaderMenu/tests/PageHeaderMenu.e2e.yaml +110 -0
  150. package/dist/blocks/PageHeaderMenu/tests.yaml +173 -0
  151. package/dist/blocks/PageSidebarLayout/PageSidebarLayout.js +10 -1
  152. package/dist/blocks/PageSidebarLayout/gallery.yaml +302 -0
  153. package/dist/blocks/PageSidebarLayout/meta.js +1 -0
  154. package/dist/blocks/PageSidebarLayout/tests/PageSidebarLayout.e2e.yaml +216 -0
  155. package/dist/blocks/PageSidebarLayout/tests.yaml +174 -0
  156. package/dist/blocks/PageSiderMenu/PageSiderMenu.js +1 -1
  157. package/dist/blocks/PageSiderMenu/gallery.yaml +516 -0
  158. package/dist/blocks/PageSiderMenu/tests/PageSiderMenu.e2e.yaml +175 -0
  159. package/dist/blocks/PageSiderMenu/tests.yaml +211 -0
  160. package/dist/blocks/Pagination/gallery.yaml +503 -0
  161. package/dist/blocks/Pagination/tests/Pagination.e2e.yaml +159 -0
  162. package/dist/blocks/Pagination/tests.yaml +80 -0
  163. package/dist/blocks/Paragraph/gallery.yaml +458 -0
  164. package/dist/blocks/Paragraph/tests/Paragraph.e2e.yaml +153 -0
  165. package/dist/blocks/Paragraph/tests.yaml +176 -0
  166. package/dist/blocks/ParagraphInput/gallery.yaml +1483 -0
  167. package/dist/blocks/ParagraphInput/tests/ParagraphInput.e2e.yaml +189 -0
  168. package/dist/blocks/ParagraphInput/tests.yaml +163 -0
  169. package/dist/blocks/PasswordInput/gallery.yaml +420 -0
  170. package/dist/blocks/PasswordInput/tests/PasswordInput.e2e.yaml +188 -0
  171. package/dist/blocks/PasswordInput/tests.yaml +78 -0
  172. package/dist/blocks/PhoneNumberInput/gallery.yaml +677 -0
  173. package/dist/blocks/PhoneNumberInput/tests/PhoneNumberInput.e2e.yaml +279 -0
  174. package/dist/blocks/PhoneNumberInput/tests.yaml +25 -0
  175. package/dist/blocks/Popover/gallery.yaml +1301 -0
  176. package/dist/blocks/Popover/tests/Popover.e2e.yaml +249 -0
  177. package/dist/blocks/Popover/tests.yaml +105 -0
  178. package/dist/blocks/Progress/gallery.yaml +772 -0
  179. package/dist/blocks/Progress/tests/Progress.e2e.yaml +167 -0
  180. package/dist/blocks/Progress/tests.yaml +114 -0
  181. package/dist/blocks/QRCode/gallery.yaml +492 -0
  182. package/dist/blocks/QRCode/tests/QRCode.e2e.yaml +66 -0
  183. package/dist/blocks/QRCode/tests.yaml +113 -0
  184. package/dist/blocks/RadioSelector/gallery.yaml +816 -0
  185. package/dist/blocks/RadioSelector/tests/RadioSelector.e2e.yaml +269 -0
  186. package/dist/blocks/RadioSelector/tests.yaml +339 -0
  187. package/dist/blocks/RatingSlider/gallery.yaml +627 -0
  188. package/dist/blocks/RatingSlider/tests/RatingSlider.e2e.yaml +188 -0
  189. package/dist/blocks/RatingSlider/tests.yaml +116 -0
  190. package/dist/blocks/Result/gallery.yaml +925 -0
  191. package/dist/blocks/Result/tests/Result.e2e.yaml +126 -0
  192. package/dist/blocks/Result/tests.yaml +75 -0
  193. package/dist/blocks/Search/Search.js +1 -1
  194. package/dist/blocks/Search/SearchModal.js +18 -9
  195. package/dist/blocks/Search/gallery.yaml +170 -0
  196. package/dist/blocks/Search/meta.js +2 -1
  197. package/dist/blocks/Search/{style.module.css → style.css} +19 -12
  198. package/dist/blocks/Search/tests/Search.e2e.yaml +125 -0
  199. package/dist/blocks/Search/useSearchIndex.js +24 -2
  200. package/dist/blocks/SegmentedSelector/gallery.yaml +725 -0
  201. package/dist/blocks/SegmentedSelector/tests/SegmentedSelector.e2e.yaml +115 -0
  202. package/dist/blocks/SegmentedSelector/tests.yaml +141 -0
  203. package/dist/blocks/Selector/gallery.yaml +1055 -0
  204. package/dist/blocks/Selector/tests/Selector.e2e.yaml +427 -0
  205. package/dist/blocks/Selector/tests.yaml +196 -0
  206. package/dist/blocks/Sider/gallery.yaml +994 -0
  207. package/dist/blocks/Sider/tests/Sider.e2e.yaml +162 -0
  208. package/dist/blocks/Sider/tests.yaml +20 -0
  209. package/dist/blocks/Slider/gallery.yaml +600 -0
  210. package/dist/blocks/Slider/tests/Slider.e2e.yaml +190 -0
  211. package/dist/blocks/Slider/tests.yaml +68 -0
  212. package/dist/blocks/Splitter/gallery.yaml +1511 -0
  213. package/dist/blocks/Splitter/tests/Splitter.e2e.yaml +114 -0
  214. package/dist/blocks/Splitter/tests.yaml +79 -0
  215. package/dist/blocks/Statistic/gallery.yaml +460 -0
  216. package/dist/blocks/Statistic/tests/Statistic.e2e.yaml +137 -0
  217. package/dist/blocks/Statistic/tests.yaml +77 -0
  218. package/dist/blocks/Steps/gallery.yaml +550 -0
  219. package/dist/blocks/Switch/gallery.yaml +502 -0
  220. package/dist/blocks/Switch/tests/Switch.e2e.yaml +132 -0
  221. package/dist/blocks/Switch/tests.yaml +87 -0
  222. package/dist/blocks/Tabs/gallery.yaml +1353 -0
  223. package/dist/blocks/Tabs/tests/Tabs.e2e.yaml +370 -0
  224. package/dist/blocks/Tabs/tests.yaml +349 -0
  225. package/dist/blocks/Tag/gallery.yaml +598 -0
  226. package/dist/blocks/Tag/tests/Tag.e2e.yaml +173 -0
  227. package/dist/blocks/Tag/tests.yaml +51 -0
  228. package/dist/blocks/TagMultipleSelector/TagMultipleSelector.js +53 -0
  229. package/dist/blocks/TagMultipleSelector/e2e.js +36 -0
  230. package/dist/blocks/TagMultipleSelector/gallery.yaml +70 -0
  231. package/dist/blocks/TagMultipleSelector/meta.js +91 -0
  232. package/dist/blocks/TagMultipleSelector/tests/TagMultipleSelector.e2e.yaml +93 -0
  233. package/dist/blocks/TagSelector/TagSelector.js +49 -0
  234. package/dist/blocks/TagSelector/e2e.js +36 -0
  235. package/dist/blocks/TagSelector/gallery.yaml +70 -0
  236. package/dist/blocks/TagSelector/meta.js +91 -0
  237. package/dist/blocks/TagSelector/tests/TagSelector.e2e.yaml +93 -0
  238. package/dist/blocks/TextArea/gallery.yaml +618 -0
  239. package/dist/blocks/TextArea/tests/TextArea.e2e.yaml +218 -0
  240. package/dist/blocks/TextArea/tests.yaml +100 -0
  241. package/dist/blocks/TextInput/gallery.yaml +560 -0
  242. package/dist/blocks/TextInput/tests/TextInput.e2e.yaml +287 -0
  243. package/dist/blocks/TextInput/tests.yaml +114 -0
  244. package/dist/blocks/TimelineList/gallery.yaml +431 -0
  245. package/dist/blocks/TimelineList/tests/TimelineList.e2e.yaml +244 -0
  246. package/dist/blocks/TimelineList/tests.yaml +251 -0
  247. package/dist/blocks/Title/gallery.yaml +483 -0
  248. package/dist/blocks/Title/tests/Title.e2e.yaml +180 -0
  249. package/dist/blocks/Title/tests.yaml +175 -0
  250. package/dist/blocks/TitleInput/gallery.yaml +1006 -0
  251. package/dist/blocks/TitleInput/tests/TitleInput.e2e.yaml +195 -0
  252. package/dist/blocks/TitleInput/tests.yaml +181 -0
  253. package/dist/blocks/Tooltip/gallery.yaml +1214 -0
  254. package/dist/blocks/Tooltip/tests/Tooltip.e2e.yaml +195 -0
  255. package/dist/blocks/Tooltip/tests.yaml +92 -0
  256. package/dist/blocks/Tour/gallery.yaml +2305 -0
  257. package/dist/blocks/Tour/tests/Tour.e2e.yaml +90 -0
  258. package/dist/blocks/Tour/tests.yaml +151 -0
  259. package/dist/blocks/TreeInput/gallery.yaml +78 -0
  260. package/dist/blocks/TreeInput/tests/TreeInput.e2e.yaml +139 -0
  261. package/dist/blocks/TreeInput/tests.yaml +140 -0
  262. package/dist/blocks/TreeMultipleSelector/gallery.yaml +67 -0
  263. package/dist/blocks/TreeSelector/gallery.yaml +81 -0
  264. package/dist/blocks/Watermark/gallery.yaml +479 -0
  265. package/dist/blocks/Watermark/tests/Watermark.e2e.yaml +62 -0
  266. package/dist/blocks/Watermark/tests.yaml +86 -0
  267. package/dist/blocks/WeekSelector/WeekSelector.js +6 -0
  268. package/dist/blocks/WeekSelector/e2e.js +26 -2
  269. package/dist/blocks/WeekSelector/gallery.yaml +589 -0
  270. package/dist/blocks/WeekSelector/meta.js +6 -0
  271. package/dist/blocks/WeekSelector/tests/WeekSelector.e2e.yaml +154 -0
  272. package/dist/blocks/WeekSelector/tests.yaml +122 -0
  273. package/dist/blocks.js +2 -0
  274. package/dist/disabledDate.js +91 -19
  275. package/dist/e2e.js +2 -0
  276. package/dist/getPresets.js +151 -0
  277. package/dist/getTagColor.js +44 -0
  278. package/dist/getTagSelectorOptions.js +30 -0
  279. package/dist/metas.js +2 -0
  280. package/dist/pickerPresetsStyle.css +26 -0
  281. package/dist/schemas/disabledDates.js +6 -2
  282. package/dist/schemas/index.js +1 -0
  283. package/dist/schemas/presets.js +111 -0
  284. package/dist/tagSelectorStyle.css +68 -0
  285. package/package.json +13 -13
@@ -0,0 +1,687 @@
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: month_size_small
18
+ type: MonthSelector
19
+ properties:
20
+ title: Small
21
+ size: small
22
+ - id: month_size_default
23
+ type: MonthSelector
24
+ properties:
25
+ title: Default
26
+ - id: month_size_large
27
+ type: MonthSelector
28
+ properties:
29
+ title: Large
30
+ size: large
31
+
32
+ - title: Variants
33
+ blocks:
34
+ - id: month_variant_outlined
35
+ type: MonthSelector
36
+ properties:
37
+ title: Outlined (default)
38
+ variant: outlined
39
+ label:
40
+ disabled: true
41
+ - id: month_variant_filled
42
+ type: MonthSelector
43
+ properties:
44
+ title: Filled
45
+ variant: filled
46
+ label:
47
+ disabled: true
48
+ - id: month_variant_borderless
49
+ type: MonthSelector
50
+ properties:
51
+ title: Borderless
52
+ variant: borderless
53
+ label:
54
+ disabled: true
55
+
56
+ - title: Format Variations
57
+ blocks:
58
+ - id: month_format_default
59
+ type: MonthSelector
60
+ properties:
61
+ title: YYYY-MM (default)
62
+ format: YYYY-MM
63
+ label:
64
+ disabled: true
65
+ - id: month_format_long
66
+ type: MonthSelector
67
+ properties:
68
+ title: MMMM YYYY
69
+ format: MMMM YYYY
70
+ label:
71
+ disabled: true
72
+ - id: month_format_short
73
+ type: MonthSelector
74
+ properties:
75
+ title: MMM YYYY
76
+ format: MMM YYYY
77
+ label:
78
+ disabled: true
79
+ - id: month_format_numeric
80
+ type: MonthSelector
81
+ properties:
82
+ title: MM/YYYY
83
+ format: MM/YYYY
84
+ label:
85
+ disabled: true
86
+ - id: month_format_month_only
87
+ type: MonthSelector
88
+ properties:
89
+ title: MMMM (Month Name Only)
90
+ format: MMMM
91
+ label:
92
+ disabled: true
93
+
94
+ - title: Placeholder
95
+ blocks:
96
+ - id: month_placeholder_default
97
+ type: MonthSelector
98
+ properties:
99
+ title: Default Placeholder
100
+ label:
101
+ disabled: true
102
+ - id: month_placeholder_custom
103
+ type: MonthSelector
104
+ properties:
105
+ title: Custom Placeholder
106
+ placeholder: Pick a month...
107
+ label:
108
+ disabled: true
109
+ - id: month_placeholder_descriptive
110
+ type: MonthSelector
111
+ properties:
112
+ title: Descriptive Placeholder
113
+ placeholder: When did this start?
114
+ label:
115
+ disabled: true
116
+ - id: month_placeholder_format_hint
117
+ type: MonthSelector
118
+ properties:
119
+ title: Format Hint Placeholder
120
+ placeholder: e.g. January 2026
121
+ format: MMMM YYYY
122
+ label:
123
+ disabled: true
124
+
125
+ - title: Allow Clear
126
+ blocks:
127
+ - id: month_clear_enabled
128
+ type: MonthSelector
129
+ properties:
130
+ title: Allow Clear (default)
131
+ allowClear: true
132
+ label:
133
+ disabled: true
134
+ - id: month_clear_disabled
135
+ type: MonthSelector
136
+ properties:
137
+ title: No Clear Button
138
+ allowClear: false
139
+ label:
140
+ disabled: true
141
+
142
+ - title: Show Today Button
143
+ blocks:
144
+ - id: month_today_enabled
145
+ type: MonthSelector
146
+ properties:
147
+ title: Show Today (default)
148
+ showToday: true
149
+ label:
150
+ disabled: true
151
+ - id: month_today_disabled
152
+ type: MonthSelector
153
+ properties:
154
+ title: No Today Button
155
+ showToday: false
156
+ label:
157
+ disabled: true
158
+
159
+ - title: Suffix Icon
160
+ blocks:
161
+ - id: month_icon_default
162
+ type: MonthSelector
163
+ properties:
164
+ title: Default Calendar Icon
165
+ label:
166
+ disabled: true
167
+ - id: month_icon_clock
168
+ type: MonthSelector
169
+ properties:
170
+ title: Clock Icon
171
+ suffixIcon: AiOutlineClockCircle
172
+ label:
173
+ disabled: true
174
+ - id: month_icon_schedule
175
+ type: MonthSelector
176
+ properties:
177
+ title: Schedule Icon
178
+ suffixIcon: AiOutlineSchedule
179
+ label:
180
+ disabled: true
181
+ - id: month_icon_custom_color
182
+ type: MonthSelector
183
+ properties:
184
+ title: Custom Color Icon
185
+ suffixIcon:
186
+ name: AiOutlineCalendar
187
+ color: '#1677ff'
188
+ label:
189
+ disabled: true
190
+ - id: month_icon_heart
191
+ type: MonthSelector
192
+ properties:
193
+ title: Heart Icon
194
+ suffixIcon:
195
+ name: AiOutlineHeart
196
+ color: '#ff4d4f'
197
+ label:
198
+ disabled: true
199
+
200
+ - title: Disabled State
201
+ blocks:
202
+ - id: month_disabled_default
203
+ type: MonthSelector
204
+ properties:
205
+ title: Disabled
206
+ disabled: true
207
+ label:
208
+ disabled: true
209
+ - id: month_disabled_outlined
210
+ type: MonthSelector
211
+ properties:
212
+ title: Disabled Outlined
213
+ disabled: true
214
+ variant: outlined
215
+ label:
216
+ disabled: true
217
+ - id: month_disabled_filled
218
+ type: MonthSelector
219
+ properties:
220
+ title: Disabled Filled
221
+ disabled: true
222
+ variant: filled
223
+ label:
224
+ disabled: true
225
+ - id: month_disabled_borderless
226
+ type: MonthSelector
227
+ properties:
228
+ title: Disabled Borderless
229
+ disabled: true
230
+ variant: borderless
231
+ label:
232
+ disabled: true
233
+
234
+ - title: Auto Focus
235
+ blocks:
236
+ - id: month_autofocus_off
237
+ type: MonthSelector
238
+ properties:
239
+ title: No Auto Focus (default)
240
+ autoFocus: false
241
+ label:
242
+ disabled: true
243
+ - id: month_autofocus_on
244
+ type: MonthSelector
245
+ properties:
246
+ title: Auto Focus Enabled
247
+ autoFocus: true
248
+ label:
249
+ disabled: true
250
+
251
+ - title: Disabled Dates
252
+ blocks:
253
+ - id: month_disabled_dates_min
254
+ type: MonthSelector
255
+ properties:
256
+ title: Min Date (2024-01-01)
257
+ disabledDates:
258
+ min: '2024-01-01'
259
+ label:
260
+ disabled: true
261
+ - id: month_disabled_dates_max
262
+ type: MonthSelector
263
+ properties:
264
+ title: Max Date (2025-12-31)
265
+ disabledDates:
266
+ max: '2025-12-31'
267
+ label:
268
+ disabled: true
269
+ - id: month_disabled_dates_range
270
+ type: MonthSelector
271
+ properties:
272
+ title: Min & Max (2025 only)
273
+ disabledDates:
274
+ min: '2025-01-01'
275
+ max: '2025-12-31'
276
+ label:
277
+ disabled: true
278
+ - id: month_disabled_specific
279
+ type: MonthSelector
280
+ properties:
281
+ title: Specific Months Disabled
282
+ disabledDates:
283
+ dates:
284
+ - '2026-03-01'
285
+ - '2026-06-01'
286
+ - '2026-12-01'
287
+ label:
288
+ disabled: true
289
+ - id: month_disabled_date_ranges
290
+ type: MonthSelector
291
+ properties:
292
+ title: Date Ranges Disabled
293
+ disabledDates:
294
+ ranges:
295
+ - ['2026-04-01', '2026-06-30']
296
+ - ['2026-10-01', '2026-12-31']
297
+ label:
298
+ disabled: true
299
+
300
+ - title: Presets
301
+ blocks:
302
+ - id: ms_presets_relative
303
+ type: MonthSelector
304
+ properties:
305
+ title: Relative Presets
306
+ label:
307
+ extra: Shortcuts are listed to the left of the calendar.
308
+ presets:
309
+ - label: This month
310
+ value:
311
+ _dayjs:
312
+ - now
313
+ - startOf: month
314
+ - format: YYYY-MM-DD
315
+ - label: Last month
316
+ value:
317
+ _dayjs:
318
+ - now
319
+ - subtract: [1, month]
320
+ - format: YYYY-MM-DD
321
+ - label: 3 months ago
322
+ value:
323
+ _dayjs:
324
+ - now
325
+ - subtract: [3, months]
326
+ - format: YYYY-MM-DD
327
+ - label: A year ago
328
+ value:
329
+ _dayjs:
330
+ - now
331
+ - subtract: [1, year]
332
+ - format: YYYY-MM-DD
333
+ - id: ms_presets_fixed
334
+ type: MonthSelector
335
+ properties:
336
+ title: Fixed Presets
337
+ label:
338
+ disabled: true
339
+ presets:
340
+ - label: Start of 2026
341
+ value: '2026-01-01'
342
+ - label: Mid 2026
343
+ value: '2026-07-01'
344
+ - label: End of 2026
345
+ value: '2026-12-01'
346
+
347
+ - title: Label Options
348
+ blocks:
349
+ - id: month_label_default
350
+ type: MonthSelector
351
+ properties:
352
+ title: Default Label
353
+ - id: month_label_extra
354
+ type: MonthSelector
355
+ properties:
356
+ title: Billing Month
357
+ label:
358
+ extra: Select the billing month for this invoice.
359
+ placeholder: Select billing month
360
+ - id: month_label_inline_right
361
+ type: MonthSelector
362
+ properties:
363
+ title: Inline Right-Aligned
364
+ label:
365
+ inline: true
366
+ span: 8
367
+ align: right
368
+ - id: month_label_hidden
369
+ type: MonthSelector
370
+ properties:
371
+ title: Hidden Label
372
+ label:
373
+ disabled: true
374
+ placeholder: No label shown
375
+ - id: month_label_feedback_on
376
+ type: MonthSelector
377
+ properties:
378
+ title: With Feedback
379
+ label:
380
+ hasFeedback: true
381
+ required: true
382
+
383
+ - title: Label Inline with Span
384
+ blocks:
385
+ - id: month_label_inline_4
386
+ type: MonthSelector
387
+ properties:
388
+ title: Span 4
389
+ label:
390
+ inline: true
391
+ span: 4
392
+ - id: month_label_inline_8
393
+ type: MonthSelector
394
+ properties:
395
+ title: Span 8
396
+ label:
397
+ inline: true
398
+ span: 8
399
+ - id: month_label_inline_12
400
+ type: MonthSelector
401
+ properties:
402
+ title: Span 12
403
+ label:
404
+ inline: true
405
+ span: 12
406
+
407
+ - title: HTML Title
408
+ blocks:
409
+ - id: month_html_title_bold
410
+ type: MonthSelector
411
+ properties:
412
+ title: '<b>Bold</b> month selector'
413
+ label:
414
+ disabled: true
415
+ - id: month_html_title_color
416
+ type: MonthSelector
417
+ properties:
418
+ title: '<span style="color: #1677ff">Blue</span> month selector'
419
+ label:
420
+ disabled: true
421
+ - id: month_html_title_italic
422
+ type: MonthSelector
423
+ properties:
424
+ title: '<i>Italic</i> month selector'
425
+ label:
426
+ disabled: true
427
+
428
+ - title: Custom Style
429
+ blocks:
430
+ - id: month_style_width
431
+ type: MonthSelector
432
+ style:
433
+ width: 300
434
+ properties:
435
+ title: Fixed Width (300px)
436
+ label:
437
+ disabled: true
438
+ - id: month_style_element
439
+ type: MonthSelector
440
+ style:
441
+ .element:
442
+ properties:
443
+ title: Custom Background
444
+ label:
445
+ disabled: true
446
+ - id: month_style_label
447
+ type: MonthSelector
448
+ style:
449
+ .label:
450
+ color: '#531dab'
451
+ fontWeight: bold
452
+ properties:
453
+ title: Styled Label
454
+
455
+ - title: Custom CSS Class
456
+ blocks:
457
+ - id: month_class_rounded
458
+ type: MonthSelector
459
+ class: rounded-lg shadow-sm
460
+ properties:
461
+ title: Rounded with Shadow
462
+ label:
463
+ disabled: true
464
+ - id: month_class_border
465
+ type: MonthSelector
466
+ class: border-2 border-border
467
+ properties:
468
+ title: Blue Border
469
+ label:
470
+ disabled: true
471
+
472
+ - title: Theme Token Overrides
473
+ blocks:
474
+ - id: month_theme_primary_color
475
+ type: MonthSelector
476
+ properties:
477
+ title: Custom Primary Color
478
+ label:
479
+ disabled: true
480
+ theme:
481
+ colorPrimary: '#722ed1'
482
+ - id: month_theme_large_radius
483
+ type: MonthSelector
484
+ properties:
485
+ title: Large Border Radius
486
+ label:
487
+ disabled: true
488
+ theme:
489
+ borderRadius: 16
490
+ - id: month_theme_custom_bg
491
+ type: MonthSelector
492
+ properties:
493
+ title: Custom Background
494
+ variant: filled
495
+ label:
496
+ disabled: true
497
+ - id: month_theme_brand_color
498
+ type: MonthSelector
499
+ properties:
500
+ title: Brand Purple
501
+ label:
502
+ disabled: true
503
+ theme:
504
+ colorPrimary: '#722ed1'
505
+ colorBorder: '#d3adf7'
506
+ - id: month_theme_tall
507
+ type: MonthSelector
508
+ properties:
509
+ title: Tall Input
510
+ label:
511
+ disabled: true
512
+ theme:
513
+ controlHeight: 48
514
+ fontSize: 18
515
+ borderRadius: 12
516
+
517
+ - title: Combined Features
518
+ blocks:
519
+ - id: month_combined_full
520
+ type: MonthSelector
521
+ properties:
522
+ title: Billing Period
523
+ placeholder: Select billing month
524
+ format: MMMM YYYY
525
+ size: large
526
+ suffixIcon: AiOutlineSchedule
527
+ showToday: true
528
+ allowClear: true
529
+ label:
530
+ extra: Choose the month for your billing cycle.
531
+ colon: false
532
+ - id: month_combined_minimal
533
+ type: MonthSelector
534
+ properties:
535
+ title: Month
536
+ variant: borderless
537
+ size: small
538
+ allowClear: false
539
+ showToday: false
540
+ format: MM/YYYY
541
+ placeholder: mm/yyyy
542
+ label:
543
+ disabled: true
544
+ - id: month_combined_restricted
545
+ type: MonthSelector
546
+ properties:
547
+ title: Fiscal Year Month
548
+ placeholder: Select fiscal month
549
+ format: MMM YYYY
550
+ suffixIcon:
551
+ name: AiOutlineCalendar
552
+ color: '#1677ff'
553
+ disabledDates:
554
+ min: '2026-01-01'
555
+ max: '2026-12-31'
556
+ label:
557
+ extra: Only months in 2026 are available.
558
+ - id: month_combined_themed
559
+ type: MonthSelector
560
+ properties:
561
+ title: Themed Picker
562
+ variant: filled
563
+ size: large
564
+ format: MMMM YYYY
565
+ placeholder: Choose a special month...
566
+ suffixIcon:
567
+ name: AiOutlineHeart
568
+ color: '#eb2f96'
569
+ label:
570
+ disabled: true
571
+ theme:
572
+ colorPrimary: '#eb2f96'
573
+ borderRadius: 20
574
+ controlHeightLG: 48
575
+ fontSize: 16
576
+
577
+ - title: MonthSelector in Budget Tracker
578
+ blocks:
579
+ - id: applied2_budget_card
580
+ type: Card
581
+ properties:
582
+ title: Monthly Budget Entry
583
+ blocks:
584
+ - id: applied2_budget_month
585
+ type: MonthSelector
586
+ properties:
587
+ title: Budget Month
588
+ placeholder: Select month
589
+ format: MMMM YYYY
590
+ size: large
591
+ suffixIcon: AiOutlineCalendar
592
+ label:
593
+ extra: Choose the month for this budget entry.
594
+ - id: applied2_budget_category
595
+ type: Selector
596
+ properties:
597
+ title: Category
598
+ placeholder: Select budget category...
599
+ options:
600
+ - label: Rent & Utilities
601
+ value: rent
602
+ - label: Groceries
603
+ value: groceries
604
+ - label: Transportation
605
+ value: transport
606
+ - label: Entertainment
607
+ value: entertainment
608
+ - label: Savings
609
+ value: savings
610
+ - label: Healthcare
611
+ value: healthcare
612
+ - id: applied2_budget_amount
613
+ type: NumberInput
614
+ properties:
615
+ title: Amount
616
+ placeholder: Enter amount
617
+ prefixIcon: AiOutlineDollar
618
+ label:
619
+ extra: Enter the budgeted amount for this category.
620
+ - id: applied2_budget_save_btn
621
+ type: Button
622
+ properties:
623
+ title: Save Budget Entry
624
+ icon: AiOutlineSave
625
+ type: primary
626
+ size: large
627
+ block: true
628
+ events:
629
+ onClick:
630
+ - id: save_budget_action
631
+ type: DisplayMessage
632
+ params:
633
+ content: Budget entry saved successfully.
634
+ duration: 3
635
+
636
+ - title: MonthSelector in Subscription Billing
637
+ blocks:
638
+ - id: applied3_billing_card
639
+ type: Card
640
+ properties:
641
+ title: Subscription Billing Setup
642
+ blocks:
643
+ - id: applied3_billing_month
644
+ type: MonthSelector
645
+ properties:
646
+ title: Billing Start Month
647
+ placeholder: Select start month
648
+ format: MMMM YYYY
649
+ size: large
650
+ suffixIcon: AiOutlineCalendar
651
+ label:
652
+ extra: Choose when the subscription billing begins.
653
+ disabledDates:
654
+ min: '2026-03-01'
655
+ events:
656
+ onChange:
657
+ - id: billing_month_change
658
+ type: SetState
659
+ params:
660
+ billingMonthSelected: true
661
+ - id: applied3_billing_plan
662
+ type: Selector
663
+ properties:
664
+ title: Plan Type
665
+ placeholder: Select a plan...
666
+ options:
667
+ - label: Basic - $9/mo
668
+ value: basic
669
+ - label: Professional - $29/mo
670
+ value: professional
671
+ - label: Enterprise - $99/mo
672
+ value: enterprise
673
+ - id: applied3_billing_confirm_btn
674
+ type: Button
675
+ properties:
676
+ title: Confirm Subscription
677
+ icon: AiOutlineCreditCard
678
+ type: primary
679
+ size: large
680
+ block: true
681
+ events:
682
+ onClick:
683
+ - id: confirm_billing_action
684
+ type: DisplayMessage
685
+ params:
686
+ content: Subscription billing confirmed.
687
+ duration: 3
@@ -16,6 +16,7 @@
16
16
  import label from '../../schemas/label.js';
17
17
  import icon from '../../schemas/icon.js';
18
18
  import disabledDates from '../../schemas/disabledDates.js';
19
+ import { datePresets } from '../../schemas/presets.js';
19
20
  import { disabled, placeholder, autoFocus, allowClear, sizeSmallDefaultLarge } from '../../schemas/inputProperties.js';
20
21
  export default {
21
22
  category: 'input',
@@ -74,6 +75,11 @@ export default {
74
75
  placeholder: {
75
76
  ...placeholder
76
77
  },
78
+ presets: datePresets({
79
+ example: '_dayjs: [now, {startOf: month}, {format: YYYY-MM-DD}]',
80
+ selects: 'a month',
81
+ unit: 'month'
82
+ }),
77
83
  showToday: {
78
84
  type: 'boolean',
79
85
  default: true,