@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,753 @@
1
+ # Copyright 2020-2026 Lowdefy, Inc
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ - title: Basic
16
+ blocks:
17
+ - id: basic_default
18
+ type: NumberInput
19
+ properties:
20
+ title: Enter a Number
21
+ placeholder: Type a number
22
+ - id: basic_with_value
23
+ type: NumberInput
24
+ properties:
25
+ title: With Default Value
26
+ placeholder: Has initial value
27
+ events:
28
+ onMount:
29
+ - id: set_default
30
+ type: SetState
31
+ params:
32
+ basic_with_value: 42
33
+ - id: basic_no_label
34
+ type: NumberInput
35
+ properties:
36
+ label:
37
+ disabled: true
38
+ placeholder: No label shown
39
+ - title: Sizes
40
+ blocks:
41
+ - id: size_small
42
+ type: NumberInput
43
+ properties:
44
+ title: Small
45
+ size: small
46
+ placeholder: Small
47
+ - id: size_default
48
+ type: NumberInput
49
+ properties:
50
+ title: Default
51
+ placeholder: Default
52
+ - id: size_large
53
+ type: NumberInput
54
+ properties:
55
+ title: Large
56
+ size: large
57
+ placeholder: Large
58
+ - title: Min, Max & Step
59
+ blocks:
60
+ - id: min_max
61
+ type: NumberInput
62
+ properties:
63
+ title: Range 1-100
64
+ min: 1
65
+ max: 100
66
+ placeholder: 1 to 100
67
+ - id: min_only
68
+ type: NumberInput
69
+ properties:
70
+ title: Min 0 (No Negatives)
71
+ min: 0
72
+ placeholder: Zero or above
73
+ - id: step_5
74
+ type: NumberInput
75
+ properties:
76
+ title: Step 5
77
+ min: 0
78
+ max: 100
79
+ step: 5
80
+ placeholder: Increments of 5
81
+ - id: step_decimal
82
+ type: NumberInput
83
+ properties:
84
+ title: Decimal Step 0.1
85
+ min: 0
86
+ max: 10
87
+ step: 0.1
88
+ precision: 1
89
+ placeholder: Step 0.1
90
+ - id: step_negative
91
+ type: NumberInput
92
+ properties:
93
+ title: Negative Range
94
+ min: -100
95
+ max: 100
96
+ step: 5
97
+ placeholder: '-100 to 100'
98
+ - title: Precision
99
+ blocks:
100
+ - id: precision_0
101
+ type: NumberInput
102
+ properties:
103
+ title: Integer Only (precision 0)
104
+ precision: 0
105
+ placeholder: No decimals
106
+ - id: precision_1
107
+ type: NumberInput
108
+ properties:
109
+ title: 1 Decimal Place
110
+ precision: 1
111
+ placeholder: e.g. 3.1
112
+ - id: precision_2
113
+ type: NumberInput
114
+ properties:
115
+ title: 2 Decimal Places
116
+ precision: 2
117
+ placeholder: e.g. 3.14
118
+ - id: precision_4
119
+ type: NumberInput
120
+ properties:
121
+ title: 4 Decimal Places
122
+ precision: 4
123
+ placeholder: e.g. 1.2345
124
+ - title: Decimal Separator
125
+ blocks:
126
+ - id: separator_default
127
+ type: NumberInput
128
+ properties:
129
+ title: Default Separator (.)
130
+ precision: 2
131
+ placeholder: Uses period
132
+ - id: separator_comma
133
+ type: NumberInput
134
+ properties:
135
+ title: Comma Separator
136
+ decimalSeparator: ','
137
+ precision: 2
138
+ placeholder: Uses comma
139
+ - title: Controls
140
+ blocks:
141
+ - id: controls_default
142
+ type: NumberInput
143
+ properties:
144
+ title: With Controls (Default)
145
+ controls: true
146
+ placeholder: Has +/- buttons
147
+ - id: controls_off
148
+ type: NumberInput
149
+ properties:
150
+ title: No Controls
151
+ controls: false
152
+ placeholder: No +/- buttons
153
+ - id: controls_with_step
154
+ type: NumberInput
155
+ properties:
156
+ title: Controls with Step 5
157
+ controls: true
158
+ step: 5
159
+ min: 0
160
+ max: 100
161
+ placeholder: Click +/- by 5
162
+ - title: Keyboard Navigation
163
+ blocks:
164
+ - id: keyboard_enabled
165
+ type: NumberInput
166
+ properties:
167
+ title: Keyboard Enabled (Default)
168
+ keyboard: true
169
+ placeholder: Use arrow keys
170
+ - id: keyboard_disabled
171
+ type: NumberInput
172
+ properties:
173
+ title: Keyboard Disabled
174
+ keyboard: false
175
+ placeholder: Arrow keys do nothing
176
+ - title: Disabled State
177
+ blocks:
178
+ - id: disabled_empty
179
+ type: NumberInput
180
+ properties:
181
+ title: Disabled (Empty)
182
+ disabled: true
183
+ placeholder: Cannot edit
184
+ - id: disabled_with_value
185
+ type: NumberInput
186
+ properties:
187
+ title: Disabled (With Value)
188
+ disabled: true
189
+ events:
190
+ onMount:
191
+ - id: set_default
192
+ type: SetState
193
+ params:
194
+ disabled_with_value: 50
195
+ - id: disabled_controls
196
+ type: NumberInput
197
+ properties:
198
+ title: Disabled With Controls
199
+ disabled: true
200
+ controls: true
201
+ events:
202
+ onMount:
203
+ - id: set_default
204
+ type: SetState
205
+ params:
206
+ disabled_controls: 25
207
+ - title: Borderless
208
+ blocks:
209
+ - id: borderless_empty
210
+ type: NumberInput
211
+ properties:
212
+ title: Borderless
213
+ bordered: false
214
+ placeholder: No border style
215
+ - id: borderless_with_value
216
+ type: NumberInput
217
+ properties:
218
+ title: Borderless With Value
219
+ bordered: false
220
+ events:
221
+ onMount:
222
+ - id: set_default
223
+ type: SetState
224
+ params:
225
+ borderless_with_value: 99
226
+ - title: Placeholder Variations
227
+ blocks:
228
+ - id: placeholder_default
229
+ type: NumberInput
230
+ properties:
231
+ title: Default Placeholder
232
+ placeholder: Enter a number...
233
+ - id: placeholder_quantity
234
+ type: NumberInput
235
+ properties:
236
+ title: Quantity
237
+ placeholder: How many?
238
+ min: 0
239
+ - id: placeholder_price
240
+ type: NumberInput
241
+ properties:
242
+ title: Price
243
+ placeholder: 0
244
+ precision: 2
245
+ min: 0
246
+ - id: placeholder_percentage
247
+ type: NumberInput
248
+ properties:
249
+ title: Percentage
250
+ placeholder: 0-100
251
+ min: 0
252
+ max: 100
253
+ - title: Formatter & Parser
254
+ blocks:
255
+ - id: formatter_currency
256
+ type: NumberInput
257
+ properties:
258
+ title: Currency Formatter
259
+ placeholder: Enter amount
260
+ min: 0
261
+ precision: 2
262
+ formatter:
263
+ _function:
264
+ __intl.numberFormat:
265
+ 'on':
266
+ __args: 0.value
267
+ params:
268
+ locale: en-US
269
+ options:
270
+ style: currency
271
+ currency: USD
272
+ - id: formatter_percent
273
+ type: NumberInput
274
+ properties:
275
+ title: Percentage Formatter
276
+ placeholder: Enter percentage
277
+ min: 0
278
+ max: 100
279
+ formatter:
280
+ _function:
281
+ __if:
282
+ test:
283
+ __ne:
284
+ - __args: 0.value
285
+ - null
286
+ then:
287
+ __string.concat:
288
+ - __args: 0.value
289
+ - '%'
290
+ else: ''
291
+ - title: AutoFocus
292
+ blocks:
293
+ - id: autofocus_off
294
+ type: NumberInput
295
+ properties:
296
+ title: Normal (No AutoFocus)
297
+ autoFocus: false
298
+ placeholder: Click to focus
299
+ - id: autofocus_note
300
+ type: Markdown
301
+ properties:
302
+ content: '*Note: autoFocus is best demonstrated on page load. Set `autoFocus: true` to focus the input when the page renders.*'
303
+ - title: Label Options
304
+ blocks:
305
+ - id: label_default
306
+ type: NumberInput
307
+ properties:
308
+ title: Default Label
309
+ placeholder: Standard label
310
+ - id: label_no_colon
311
+ type: NumberInput
312
+ properties:
313
+ title: No Colon
314
+ placeholder: Label without colon
315
+ label:
316
+ colon: false
317
+ - id: label_right_align
318
+ type: NumberInput
319
+ properties:
320
+ title: Right Aligned Label
321
+ placeholder: Inline right label
322
+ label:
323
+ inline: true
324
+ align: right
325
+ span: 8
326
+ - id: label_extra
327
+ type: NumberInput
328
+ properties:
329
+ title: With Extra Text
330
+ placeholder: Has helper text below
331
+ label:
332
+ extra: Enter a value between 1 and 100.
333
+ - id: label_disabled
334
+ type: NumberInput
335
+ properties:
336
+ placeholder: Label hidden entirely
337
+ label:
338
+ disabled: true
339
+ - title: Label Inline Spans
340
+ blocks:
341
+ - id: label_span_4
342
+ type: NumberInput
343
+ properties:
344
+ title: Span 4
345
+ placeholder: Narrow label
346
+ label:
347
+ inline: true
348
+ span: 4
349
+ - id: label_span_8
350
+ type: NumberInput
351
+ properties:
352
+ title: Span 8
353
+ placeholder: Medium label
354
+ label:
355
+ inline: true
356
+ span: 8
357
+ - id: label_span_12
358
+ type: NumberInput
359
+ properties:
360
+ title: Span 12
361
+ placeholder: Wide label
362
+ label:
363
+ inline: true
364
+ span: 12
365
+ - title: HTML in Title
366
+ blocks:
367
+ - id: title_bold
368
+ type: NumberInput
369
+ properties:
370
+ title: <b>Bold</b> Title
371
+ placeholder: HTML bold label
372
+ - id: title_colored
373
+ type: NumberInput
374
+ properties:
375
+ title: '<span style="color: #1677ff;">Blue</span> Title'
376
+ placeholder: HTML colored label
377
+ - id: title_icon_html
378
+ type: NumberInput
379
+ properties:
380
+ title: Quantity &#x1F4E6;
381
+ placeholder: HTML entity in label
382
+ - title: Combined Features
383
+ blocks:
384
+ - id: combined_price
385
+ type: NumberInput
386
+ properties:
387
+ title: Product Price
388
+ min: 0
389
+ max: 99999
390
+ step: 0.01
391
+ precision: 2
392
+ placeholder: 0
393
+ label:
394
+ extra: Enter the product price in USD.
395
+ - id: combined_quantity
396
+ type: NumberInput
397
+ properties:
398
+ title: Quantity
399
+ min: 1
400
+ max: 999
401
+ step: 1
402
+ precision: 0
403
+ placeholder: Enter quantity
404
+ size: large
405
+ - id: combined_percentage
406
+ type: NumberInput
407
+ properties:
408
+ title: Discount (%)
409
+ min: 0
410
+ max: 100
411
+ step: 0.5
412
+ precision: 1
413
+ placeholder: 0
414
+ size: small
415
+ label:
416
+ extra: Percentage discount to apply.
417
+ - id: combined_temperature
418
+ type: NumberInput
419
+ properties:
420
+ title: Temperature
421
+ min: -50
422
+ max: 50
423
+ step: 0.1
424
+ precision: 1
425
+ decimalSeparator: .
426
+ placeholder: Celsius
427
+ - id: combined_borderless_disabled
428
+ type: NumberInput
429
+ properties:
430
+ title: Read-Only Value
431
+ disabled: true
432
+ bordered: false
433
+ precision: 5
434
+ controls: false
435
+ events:
436
+ onMount:
437
+ - id: set_default
438
+ type: SetState
439
+ params:
440
+ combined_borderless_disabled: 3.14159
441
+ - title: Step Variations
442
+ blocks:
443
+ - id: step_1
444
+ type: NumberInput
445
+ properties:
446
+ title: Step 1 (Default)
447
+ step: 1
448
+ placeholder: Whole numbers
449
+ - id: step_0_5
450
+ type: NumberInput
451
+ properties:
452
+ title: Step 0.5
453
+ step: 0.5
454
+ precision: 1
455
+ placeholder: Half increments
456
+ - id: step_0_25
457
+ type: NumberInput
458
+ properties:
459
+ title: Step 0.25
460
+ step: 0.25
461
+ precision: 2
462
+ placeholder: Quarter increments
463
+ - id: step_100
464
+ type: NumberInput
465
+ properties:
466
+ title: Step 100
467
+ step: 100
468
+ min: 0
469
+ max: 10000
470
+ placeholder: Hundreds
471
+ - id: step_0_001
472
+ type: NumberInput
473
+ properties:
474
+ title: Step 0.001
475
+ step: 0.001
476
+ precision: 3
477
+ placeholder: Thousandths
478
+ - title: CSS Style Overrides
479
+ blocks:
480
+ - id: style_width
481
+ type: NumberInput
482
+ style:
483
+ .element:
484
+ width: 200px
485
+ properties:
486
+ title: Fixed Width (200px)
487
+ placeholder: 200px wide
488
+ - id: style_background
489
+ type: NumberInput
490
+ style:
491
+ .element:
492
+ properties:
493
+ title: Custom Background
494
+ placeholder: Light blue background
495
+ - id: style_border
496
+ type: NumberInput
497
+ style:
498
+ .element:
499
+ borderColor: '#52c41a'
500
+ borderWidth: 2px
501
+ properties:
502
+ title: Custom Border
503
+ placeholder: Green border
504
+ - id: style_font
505
+ type: NumberInput
506
+ style:
507
+ .element:
508
+ fontSize: 18px
509
+ fontWeight: bold
510
+ properties:
511
+ title: Custom Font
512
+ placeholder: Large bold text
513
+ - id: style_label
514
+ type: NumberInput
515
+ style:
516
+ .label:
517
+ color: '#722ed1'
518
+ fontWeight: bold
519
+ properties:
520
+ title: Styled Label
521
+ placeholder: Purple bold label
522
+ - title: CSS Class Overrides
523
+ blocks:
524
+ - id: class_element
525
+ type: NumberInput
526
+ class:
527
+ element: rounded-lg shadow-md
528
+ properties:
529
+ title: Rounded with Shadow
530
+ placeholder: Tailwind classes
531
+ - id: class_label
532
+ type: NumberInput
533
+ class:
534
+ label: text-blue-600 font-semibold
535
+ properties:
536
+ title: Blue Bold Label
537
+ placeholder: Label class override
538
+ - title: Theme Token Overrides
539
+ blocks:
540
+ - id: theme_colors
541
+ type: NumberInput
542
+ properties:
543
+ title: Custom Colors
544
+ placeholder: Blue focus, green hover
545
+ theme:
546
+ activeBorderColor: '#1677ff'
547
+ hoverBorderColor: '#52c41a'
548
+ - id: theme_large_handles
549
+ type: NumberInput
550
+ properties:
551
+ title: Large Handles
552
+ placeholder: Wider +/- area
553
+ theme:
554
+ handleWidth: 30
555
+ handleFontSize: 10
556
+ - id: theme_shadows
557
+ type: NumberInput
558
+ properties:
559
+ title: Custom Active Shadow
560
+ placeholder: Focus to see shadow
561
+ theme:
562
+ activeShadow: 0 0 0 3px rgba(22, 119, 255, 0.2)
563
+ - id: theme_handle_colors
564
+ type: NumberInput
565
+ properties:
566
+ title: Colored Handles
567
+ placeholder: Hover +/- to see color
568
+ theme:
569
+ handleHoverColor: '#eb2f96'
570
+ handleBorderColor: '#d9d9d9'
571
+ - id: theme_small_pill
572
+ type: NumberInput
573
+ properties:
574
+ title: Small Rounded
575
+ size: small
576
+ placeholder: Pill style
577
+ theme:
578
+ borderRadius: 16
579
+ - title: Real-World Use Cases
580
+ blocks:
581
+ - id: use_age
582
+ type: NumberInput
583
+ properties:
584
+ title: Age
585
+ min: 0
586
+ max: 150
587
+ precision: 0
588
+ step: 1
589
+ placeholder: Enter age
590
+ label:
591
+ extra: Must be between 0 and 150.
592
+ - id: use_weight
593
+ type: NumberInput
594
+ properties:
595
+ title: Weight (kg)
596
+ min: 0
597
+ max: 500
598
+ precision: 1
599
+ step: 0.1
600
+ placeholder: e.g. 72.5
601
+ - id: use_rating
602
+ type: NumberInput
603
+ properties:
604
+ title: Rating
605
+ min: 1
606
+ max: 5
607
+ precision: 1
608
+ step: 0.5
609
+ placeholder: 1.0 - 5.0
610
+ label:
611
+ extra: Rate from 1 to 5 in half-star increments.
612
+ - id: use_latitude
613
+ type: NumberInput
614
+ properties:
615
+ title: Latitude
616
+ min: -90
617
+ max: 90
618
+ precision: 6
619
+ step: 0.000001
620
+ placeholder: e.g. 40.712776
621
+ controls: false
622
+ - id: use_order_quantity
623
+ type: NumberInput
624
+ properties:
625
+ title: Order Quantity
626
+ min: 1
627
+ max: 999
628
+ precision: 0
629
+ step: 1
630
+ size: large
631
+ placeholder: Qty
632
+ label:
633
+ inline: true
634
+ span: 8
635
+ align: right
636
+ - title: Form Layout Patterns
637
+ blocks:
638
+ - id: form_row_label
639
+ type: Markdown
640
+ properties:
641
+ content: '**Inline Labels:**'
642
+ - id: form_inline_row
643
+ type: Box
644
+ layout:
645
+ gap: 16
646
+ blocks:
647
+ - id: form_width
648
+ type: NumberInput
649
+ layout:
650
+ flex: 1 1 0
651
+ properties:
652
+ title: Width
653
+ min: 0
654
+ precision: 0
655
+ placeholder: px
656
+ label:
657
+ inline: true
658
+ span: 10
659
+ - id: form_height
660
+ type: NumberInput
661
+ layout:
662
+ flex: 1 1 0
663
+ properties:
664
+ title: Height
665
+ min: 0
666
+ precision: 0
667
+ placeholder: px
668
+ label:
669
+ inline: true
670
+ span: 10
671
+ - id: form_stacked_label
672
+ type: Markdown
673
+ properties:
674
+ content: '**Stacked Labels:**'
675
+ - id: form_stacked_row
676
+ type: Box
677
+ layout:
678
+ gap: 16
679
+ blocks:
680
+ - id: form_min_price
681
+ type: NumberInput
682
+ layout:
683
+ flex: 1 1 0
684
+ properties:
685
+ title: Min Price
686
+ min: 0
687
+ precision: 2
688
+ placeholder: 0
689
+ - id: form_max_price
690
+ type: NumberInput
691
+ layout:
692
+ flex: 1 1 0
693
+ properties:
694
+ title: Max Price
695
+ min: 0
696
+ precision: 2
697
+ placeholder: 0
698
+ - id: form_no_label_label
699
+ type: Markdown
700
+ properties:
701
+ content: '**No Labels (Compact):**'
702
+ - id: form_no_label_row
703
+ type: Box
704
+ layout:
705
+ gap: 8
706
+ blocks:
707
+ - id: form_x
708
+ type: NumberInput
709
+ layout:
710
+ flex: 1 1 0
711
+ properties:
712
+ placeholder: X
713
+ precision: 0
714
+ label:
715
+ disabled: true
716
+ - id: form_y
717
+ type: NumberInput
718
+ layout:
719
+ flex: 1 1 0
720
+ properties:
721
+ placeholder: 'Y'
722
+ precision: 0
723
+ label:
724
+ disabled: true
725
+ - id: form_z
726
+ type: NumberInput
727
+ layout:
728
+ flex: 1 1 0
729
+ properties:
730
+ placeholder: Z
731
+ precision: 0
732
+ label:
733
+ disabled: true
734
+ - title: Warning & Error States
735
+ blocks:
736
+ - id: warning_note
737
+ type: Markdown
738
+ properties:
739
+ content: '*Validation status is controlled by the Lowdefy validation system. These examples show the visual appearance using theme tokens.*'
740
+ - id: theme_error_colors
741
+ type: NumberInput
742
+ properties:
743
+ title: Error Shadow Theme
744
+ placeholder: Custom error shadow
745
+ theme:
746
+ errorActiveShadow: 0 0 0 3px rgba(255, 77, 79, 0.3)
747
+ - id: theme_warning_colors
748
+ type: NumberInput
749
+ properties:
750
+ title: Warning Shadow Theme
751
+ placeholder: Custom warning shadow
752
+ theme:
753
+ warningActiveShadow: 0 0 0 3px rgba(250, 173, 20, 0.3)