@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,691 @@
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_small
18
+ type: DateSelector
19
+ properties:
20
+ title: Small
21
+ size: small
22
+ - id: size_default
23
+ type: DateSelector
24
+ properties:
25
+ title: Default
26
+ - id: size_large
27
+ type: DateSelector
28
+ properties:
29
+ title: Large
30
+ size: large
31
+
32
+ - title: Variants
33
+ blocks:
34
+ - id: variant_outlined
35
+ type: DateSelector
36
+ properties:
37
+ title: Outlined (default)
38
+ variant: outlined
39
+ label:
40
+ disabled: true
41
+ - id: variant_filled
42
+ type: DateSelector
43
+ properties:
44
+ title: Filled
45
+ variant: filled
46
+ label:
47
+ disabled: true
48
+ - id: variant_borderless
49
+ type: DateSelector
50
+ properties:
51
+ title: Borderless
52
+ variant: borderless
53
+ label:
54
+ disabled: true
55
+
56
+ - title: Format Variations
57
+ blocks:
58
+ - id: format_iso
59
+ type: DateSelector
60
+ properties:
61
+ title: YYYY-MM-DD (ISO)
62
+ format: YYYY-MM-DD
63
+ label:
64
+ disabled: true
65
+ - id: format_slash
66
+ type: DateSelector
67
+ properties:
68
+ title: DD/MM/YYYY
69
+ format: DD/MM/YYYY
70
+ label:
71
+ disabled: true
72
+ - id: format_us
73
+ type: DateSelector
74
+ properties:
75
+ title: MM/DD/YYYY (US)
76
+ format: MM/DD/YYYY
77
+ label:
78
+ disabled: true
79
+ - id: format_long
80
+ type: DateSelector
81
+ properties:
82
+ title: DD MMMM YYYY
83
+ format: DD MMMM YYYY
84
+ label:
85
+ disabled: true
86
+ - id: format_dot
87
+ type: DateSelector
88
+ properties:
89
+ title: DD.MM.YYYY
90
+ format: DD.MM.YYYY
91
+ label:
92
+ disabled: true
93
+
94
+ - title: Placeholder
95
+ blocks:
96
+ - id: placeholder_default
97
+ type: DateSelector
98
+ properties:
99
+ title: Default Placeholder
100
+ label:
101
+ disabled: true
102
+ - id: placeholder_custom
103
+ type: DateSelector
104
+ properties:
105
+ title: Custom Placeholder
106
+ placeholder: Pick a date...
107
+ label:
108
+ disabled: true
109
+ - id: placeholder_descriptive
110
+ type: DateSelector
111
+ properties:
112
+ title: Descriptive Placeholder
113
+ placeholder: When did this happen?
114
+ label:
115
+ disabled: true
116
+
117
+ - title: Allow Clear
118
+ blocks:
119
+ - id: clear_enabled
120
+ type: DateSelector
121
+ properties:
122
+ title: Allow Clear (default)
123
+ allowClear: true
124
+ label:
125
+ disabled: true
126
+ - id: clear_disabled
127
+ type: DateSelector
128
+ properties:
129
+ title: No Clear Button
130
+ allowClear: false
131
+ label:
132
+ disabled: true
133
+
134
+ - title: Show Today Button
135
+ blocks:
136
+ - id: today_enabled
137
+ type: DateSelector
138
+ properties:
139
+ title: Show Today (default)
140
+ showToday: true
141
+ label:
142
+ disabled: true
143
+ - id: today_disabled
144
+ type: DateSelector
145
+ properties:
146
+ title: No Today Button
147
+ showToday: false
148
+ label:
149
+ disabled: true
150
+
151
+ - title: Suffix Icon
152
+ blocks:
153
+ - id: icon_default
154
+ type: DateSelector
155
+ properties:
156
+ title: Default Calendar Icon
157
+ label:
158
+ disabled: true
159
+ - id: icon_clock
160
+ type: DateSelector
161
+ properties:
162
+ title: Clock Icon
163
+ suffixIcon: AiOutlineClockCircle
164
+ label:
165
+ disabled: true
166
+ - id: icon_schedule
167
+ type: DateSelector
168
+ properties:
169
+ title: Schedule Icon
170
+ suffixIcon: AiOutlineSchedule
171
+ label:
172
+ disabled: true
173
+ - id: icon_custom_color
174
+ type: DateSelector
175
+ properties:
176
+ title: Custom Color Icon
177
+ suffixIcon:
178
+ name: AiOutlineCalendar
179
+ color: '#1677ff'
180
+ label:
181
+ disabled: true
182
+ - id: icon_heart
183
+ type: DateSelector
184
+ properties:
185
+ title: Heart Icon
186
+ suffixIcon:
187
+ name: AiOutlineHeart
188
+ color: '#ff4d4f'
189
+ label:
190
+ disabled: true
191
+
192
+ - title: Disabled State
193
+ blocks:
194
+ - id: disabled_default
195
+ type: DateSelector
196
+ properties:
197
+ title: Disabled
198
+ disabled: true
199
+ label:
200
+ disabled: true
201
+ - id: disabled_outlined
202
+ type: DateSelector
203
+ properties:
204
+ title: Disabled Outlined
205
+ disabled: true
206
+ variant: outlined
207
+ label:
208
+ disabled: true
209
+ - id: disabled_filled
210
+ type: DateSelector
211
+ properties:
212
+ title: Disabled Filled
213
+ disabled: true
214
+ variant: filled
215
+ label:
216
+ disabled: true
217
+ - id: disabled_borderless
218
+ type: DateSelector
219
+ properties:
220
+ title: Disabled Borderless
221
+ disabled: true
222
+ variant: borderless
223
+ label:
224
+ disabled: true
225
+
226
+ - title: Auto Focus
227
+ blocks:
228
+ - id: autofocus_off
229
+ type: DateSelector
230
+ properties:
231
+ title: No Auto Focus (default)
232
+ autoFocus: false
233
+ label:
234
+ disabled: true
235
+ - id: autofocus_on
236
+ type: DateSelector
237
+ properties:
238
+ title: Auto Focus Enabled
239
+ autoFocus: true
240
+ label:
241
+ disabled: true
242
+
243
+ - title: Disabled Dates
244
+ blocks:
245
+ - id: disabled_dates_min
246
+ type: DateSelector
247
+ properties:
248
+ title: Min Date (2024-01-01)
249
+ disabledDates:
250
+ min: '2024-01-01'
251
+ label:
252
+ disabled: true
253
+ - id: disabled_dates_max
254
+ type: DateSelector
255
+ properties:
256
+ title: Max Date (2025-12-31)
257
+ disabledDates:
258
+ max: '2025-12-31'
259
+ label:
260
+ disabled: true
261
+ - id: disabled_dates_range
262
+ type: DateSelector
263
+ properties:
264
+ title: Min & Max (2024 only)
265
+ disabledDates:
266
+ min: '2024-01-01'
267
+ max: '2024-12-31'
268
+ label:
269
+ disabled: true
270
+ - id: disabled_specific
271
+ type: DateSelector
272
+ properties:
273
+ title: Specific Dates Disabled
274
+ disabledDates:
275
+ dates:
276
+ - '2026-03-15'
277
+ - '2026-03-20'
278
+ - '2026-03-25'
279
+ label:
280
+ disabled: true
281
+ - id: disabled_date_ranges
282
+ type: DateSelector
283
+ properties:
284
+ title: Date Ranges Disabled
285
+ disabledDates:
286
+ ranges:
287
+ - ['2026-03-10', '2026-03-14']
288
+ - ['2026-03-20', '2026-03-24']
289
+ label:
290
+ disabled: true
291
+
292
+ - title: Presets
293
+ blocks:
294
+ - id: ds_presets_relative
295
+ type: DateSelector
296
+ properties:
297
+ title: Relative Presets
298
+ label:
299
+ extra: Shortcuts are listed to the left of the calendar.
300
+ presets:
301
+ - label: Today
302
+ value:
303
+ _dayjs:
304
+ - now
305
+ - format: YYYY-MM-DD
306
+ - label: Yesterday
307
+ value:
308
+ _dayjs:
309
+ - now
310
+ - subtract: [1, day]
311
+ - format: YYYY-MM-DD
312
+ - label: A week ago
313
+ value:
314
+ _dayjs:
315
+ - now
316
+ - subtract: [1, week]
317
+ - format: YYYY-MM-DD
318
+ - label: A month ago
319
+ value:
320
+ _dayjs:
321
+ - now
322
+ - subtract: [1, month]
323
+ - format: YYYY-MM-DD
324
+ - id: ds_presets_boundaries
325
+ type: DateSelector
326
+ properties:
327
+ title: Period Boundaries
328
+ label:
329
+ disabled: true
330
+ presets:
331
+ - label: Start of month
332
+ value:
333
+ _dayjs:
334
+ - now
335
+ - startOf: month
336
+ - format: YYYY-MM-DD
337
+ - label: End of month
338
+ value:
339
+ _dayjs:
340
+ - now
341
+ - endOf: month
342
+ - format: YYYY-MM-DD
343
+ - label: Start of year
344
+ value:
345
+ _dayjs:
346
+ - now
347
+ - startOf: year
348
+ - format: YYYY-MM-DD
349
+ - id: ds_presets_fixed
350
+ type: DateSelector
351
+ properties:
352
+ title: Fixed Presets
353
+ label:
354
+ disabled: true
355
+ presets:
356
+ - label: New Year's Day
357
+ value: '2026-01-01'
358
+ - label: Midsummer
359
+ value: '2026-06-21'
360
+ - label: Christmas
361
+ value: '2026-12-25'
362
+
363
+ - title: Label Options
364
+ blocks:
365
+ - id: label_default
366
+ type: DateSelector
367
+ properties:
368
+ title: Default Label
369
+ - id: label_colon_off
370
+ type: DateSelector
371
+ properties:
372
+ title: No Colon
373
+ label:
374
+ colon: false
375
+ - id: label_right
376
+ type: DateSelector
377
+ properties:
378
+ title: Align Right
379
+ label:
380
+ align: right
381
+ - id: label_inline
382
+ type: DateSelector
383
+ properties:
384
+ title: Inline Label
385
+ label:
386
+ inline: true
387
+ span: 8
388
+ - id: label_extra
389
+ type: DateSelector
390
+ properties:
391
+ title: Date of Birth
392
+ label:
393
+ extra: Enter your date of birth in the format YYYY-MM-DD.
394
+ placeholder: Select your date of birth
395
+ - id: label_hidden
396
+ type: DateSelector
397
+ properties:
398
+ title: Hidden Label
399
+ label:
400
+ disabled: true
401
+ placeholder: No label shown
402
+
403
+ - title: Label Inline with Span
404
+ blocks:
405
+ - id: label_inline_4
406
+ type: DateSelector
407
+ properties:
408
+ title: Span 4
409
+ label:
410
+ inline: true
411
+ span: 4
412
+ - id: label_inline_8
413
+ type: DateSelector
414
+ properties:
415
+ title: Span 8
416
+ label:
417
+ inline: true
418
+ span: 8
419
+ - id: label_inline_12
420
+ type: DateSelector
421
+ properties:
422
+ title: Span 12
423
+ label:
424
+ inline: true
425
+ span: 12
426
+
427
+ - title: HTML Title
428
+ blocks:
429
+ - id: html_title_bold
430
+ type: DateSelector
431
+ properties:
432
+ title: '<b>Bold</b> date selector'
433
+ label:
434
+ disabled: true
435
+ - id: html_title_color
436
+ type: DateSelector
437
+ properties:
438
+ title: '<span style="color: #1677ff">Blue</span> date selector'
439
+ label:
440
+ disabled: true
441
+
442
+ - title: Custom Style
443
+ blocks:
444
+ - id: style_width
445
+ type: DateSelector
446
+ style:
447
+ width: 300
448
+ properties:
449
+ title: Fixed Width (300px)
450
+ label:
451
+ disabled: true
452
+ - id: style_element
453
+ type: DateSelector
454
+ style:
455
+ .element:
456
+ properties:
457
+ title: Custom Background
458
+ label:
459
+ disabled: true
460
+ - id: style_label
461
+ type: DateSelector
462
+ style:
463
+ .label:
464
+ color: '#531dab'
465
+ fontWeight: bold
466
+ properties:
467
+ title: Styled Label
468
+
469
+ - title: Custom CSS Class
470
+ blocks:
471
+ - id: class_rounded
472
+ type: DateSelector
473
+ class: rounded-lg shadow-sm
474
+ properties:
475
+ title: Rounded with Shadow
476
+ label:
477
+ disabled: true
478
+ - id: class_border
479
+ type: DateSelector
480
+ class: border-2 border-border
481
+ properties:
482
+ title: Blue Border
483
+ label:
484
+ disabled: true
485
+
486
+ - title: Theme Token Overrides
487
+ blocks:
488
+ - id: theme_primary_color
489
+ type: DateSelector
490
+ properties:
491
+ title: Custom Primary Color
492
+ label:
493
+ disabled: true
494
+ theme:
495
+ colorPrimary: '#722ed1'
496
+ - id: theme_large_radius
497
+ type: DateSelector
498
+ properties:
499
+ title: Large Border Radius
500
+ label:
501
+ disabled: true
502
+ theme:
503
+ borderRadius: 16
504
+ - id: theme_custom_bg
505
+ type: DateSelector
506
+ properties:
507
+ title: Custom Background
508
+ variant: filled
509
+ label:
510
+ disabled: true
511
+ - id: theme_tall
512
+ type: DateSelector
513
+ properties:
514
+ title: Tall Input
515
+ label:
516
+ disabled: true
517
+ theme:
518
+ controlHeight: 48
519
+ fontSize: 18
520
+ borderRadius: 12
521
+ - id: theme_brand_color
522
+ type: DateSelector
523
+ properties:
524
+ title: Brand Purple
525
+ label:
526
+ disabled: true
527
+ theme:
528
+ colorPrimary: '#722ed1'
529
+ colorBorder: '#d3adf7'
530
+
531
+ - title: Combined Features
532
+ blocks:
533
+ - id: combined_full
534
+ type: DateSelector
535
+ properties:
536
+ title: Appointment Date
537
+ placeholder: Select appointment date
538
+ format: DD MMMM YYYY
539
+ size: large
540
+ suffixIcon: AiOutlineSchedule
541
+ showToday: true
542
+ allowClear: true
543
+ label:
544
+ extra: Choose your preferred appointment date.
545
+ colon: false
546
+ - id: combined_minimal
547
+ type: DateSelector
548
+ properties:
549
+ title: Date
550
+ variant: borderless
551
+ size: small
552
+ allowClear: false
553
+ showToday: false
554
+ format: DD/MM/YYYY
555
+ placeholder: dd/mm/yyyy
556
+ label:
557
+ disabled: true
558
+ - id: combined_restricted
559
+ type: DateSelector
560
+ properties:
561
+ title: Event Registration
562
+ placeholder: Select event date
563
+ format: DD MMM YYYY
564
+ suffixIcon:
565
+ name: AiOutlineCalendar
566
+ color: '#1677ff'
567
+ disabledDates:
568
+ min: '2026-01-01'
569
+ max: '2026-12-31'
570
+ label:
571
+ extra: Only dates in 2026 are available.
572
+ - id: combined_themed
573
+ type: DateSelector
574
+ properties:
575
+ title: Themed Picker
576
+ variant: filled
577
+ size: large
578
+ format: DD MMMM YYYY
579
+ placeholder: Choose a special date...
580
+ suffixIcon:
581
+ name: AiOutlineHeart
582
+ color: '#eb2f96'
583
+ label:
584
+ disabled: true
585
+ theme:
586
+ colorPrimary: '#eb2f96'
587
+ borderRadius: 20
588
+ controlHeightLG: 48
589
+ fontSize: 16
590
+
591
+ - title: DateSelector in Event Registration
592
+ blocks:
593
+ - id: applied2_event_reg_card
594
+ type: Card
595
+ properties:
596
+ title: Event Registration
597
+ blocks:
598
+ - id: applied2_event_date
599
+ type: DateSelector
600
+ properties:
601
+ title: Event Date
602
+ placeholder: Select event date
603
+ format: DD MMMM YYYY
604
+ size: large
605
+ suffixIcon: AiOutlineCalendar
606
+ label:
607
+ extra: Choose the date you would like to attend.
608
+ disabledDates:
609
+ min: '2026-04-01'
610
+ max: '2026-12-31'
611
+ - id: applied2_event_name
612
+ type: TextInput
613
+ properties:
614
+ title: Full Name
615
+ placeholder: Enter your full name
616
+ prefixIcon: AiOutlineUser
617
+ - id: applied2_event_email
618
+ type: TextInput
619
+ properties:
620
+ title: Email Address
621
+ placeholder: you@example.com
622
+ prefixIcon: AiOutlineMail
623
+ label:
624
+ extra: We will send your confirmation to this address.
625
+ - id: applied2_event_register_btn
626
+ type: Button
627
+ properties:
628
+ title: Register
629
+ icon: AiOutlineCheck
630
+ type: primary
631
+ size: large
632
+ block: true
633
+ events:
634
+ onClick:
635
+ - id: register_action
636
+ type: DisplayMessage
637
+ params:
638
+ content: Registration submitted successfully!
639
+ duration: 3
640
+
641
+ - title: DateSelector in Profile Settings
642
+ blocks:
643
+ - id: applied3_profile_card
644
+ type: Card
645
+ properties:
646
+ title: Profile Settings
647
+ blocks:
648
+ - id: applied3_display_name
649
+ type: TextInput
650
+ properties:
651
+ title: Display Name
652
+ placeholder: Enter your display name
653
+ prefixIcon: AiOutlineUser
654
+ - id: applied3_date_of_birth
655
+ type: DateSelector
656
+ properties:
657
+ title: Date of Birth
658
+ placeholder: Select your date of birth
659
+ format: DD MMMM YYYY
660
+ suffixIcon: AiOutlineCalendar
661
+ label:
662
+ extra: Used to verify your age.
663
+ disabledDates:
664
+ max: '2008-12-31'
665
+ events:
666
+ onChange:
667
+ - id: dob_changed_action
668
+ type: SetState
669
+ params:
670
+ dob_updated: true
671
+ - id: applied3_email
672
+ type: TextInput
673
+ properties:
674
+ title: Email Address
675
+ placeholder: you@example.com
676
+ prefixIcon: AiOutlineMail
677
+ - id: applied3_save_btn
678
+ type: Button
679
+ properties:
680
+ title: Save Profile
681
+ icon: AiOutlineSave
682
+ type: primary
683
+ size: large
684
+ block: true
685
+ events:
686
+ onClick:
687
+ - id: save_profile_action
688
+ type: DisplayMessage
689
+ params:
690
+ content: Profile saved successfully!
691
+ 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, inputTitle, autoFocus, allowClear, sizeSmallDefaultLarge } from '../../schemas/inputProperties.js';
20
21
  export default {
21
22
  category: 'input',
@@ -75,6 +76,11 @@ export default {
75
76
  placeholder: {
76
77
  ...placeholder
77
78
  },
79
+ presets: datePresets({
80
+ example: '_dayjs: [now, {format: YYYY-MM-DD}]',
81
+ selects: 'a date',
82
+ unit: 'day'
83
+ }),
78
84
  showToday: {
79
85
  type: 'boolean',
80
86
  default: true,