@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,420 @@
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: PasswordInput
19
+ properties:
20
+ title: Small
21
+ size: small
22
+ placeholder: Enter password
23
+ - id: size_default
24
+ type: PasswordInput
25
+ properties:
26
+ title: Default
27
+ placeholder: Enter password
28
+ - id: size_large
29
+ type: PasswordInput
30
+ properties:
31
+ title: Large
32
+ size: large
33
+ placeholder: Enter password
34
+
35
+ - title: Visibility Toggle
36
+ blocks:
37
+ - id: toggle_on
38
+ type: PasswordInput
39
+ properties:
40
+ title: With Visibility Toggle (default)
41
+ visibilityToggle: true
42
+ placeholder: Click the eye icon to reveal
43
+ - id: toggle_off
44
+ type: PasswordInput
45
+ properties:
46
+ title: Without Visibility Toggle
47
+ visibilityToggle: false
48
+ placeholder: Password cannot be revealed
49
+ - id: toggle_disabled
50
+ type: PasswordInput
51
+ properties:
52
+ title: Disabled With Toggle
53
+ disabled: true
54
+ visibilityToggle: true
55
+ placeholder: Toggle also disabled
56
+
57
+ - title: Placeholder Variations
58
+ blocks:
59
+ - id: placeholder_default
60
+ type: PasswordInput
61
+ properties:
62
+ title: Default Placeholder
63
+ placeholder: Enter your password
64
+ - id: placeholder_hint
65
+ type: PasswordInput
66
+ properties:
67
+ title: Descriptive Placeholder
68
+ placeholder: Must be at least 8 characters
69
+ - id: placeholder_none
70
+ type: PasswordInput
71
+ properties:
72
+ title: No Placeholder
73
+
74
+ - title: Disabled State
75
+ blocks:
76
+ - id: disabled_empty
77
+ type: PasswordInput
78
+ properties:
79
+ title: Disabled (empty)
80
+ disabled: true
81
+ placeholder: Cannot edit
82
+ - id: disabled_no_toggle
83
+ type: PasswordInput
84
+ properties:
85
+ title: Disabled Without Toggle
86
+ disabled: true
87
+ visibilityToggle: false
88
+ placeholder: No toggle, no edit
89
+
90
+ - title: Borderless Variant
91
+ blocks:
92
+ - id: borderless_default
93
+ type: PasswordInput
94
+ properties:
95
+ title: Borderless
96
+ bordered: false
97
+ placeholder: No border style
98
+ - id: borderless_disabled
99
+ type: PasswordInput
100
+ properties:
101
+ title: Disabled + Borderless
102
+ disabled: true
103
+ bordered: false
104
+ placeholder: Disabled and borderless
105
+
106
+ - title: AutoFocus
107
+ blocks:
108
+ - id: autofocus_on
109
+ type: PasswordInput
110
+ properties:
111
+ title: AutoFocus Enabled
112
+ autoFocus: true
113
+ placeholder: This input is focused on load
114
+ - id: autofocus_off
115
+ type: PasswordInput
116
+ properties:
117
+ title: AutoFocus Disabled (default)
118
+ autoFocus: false
119
+ placeholder: Normal focus behavior
120
+
121
+ - title: Label Options
122
+ blocks:
123
+ - id: label_default
124
+ type: PasswordInput
125
+ properties:
126
+ title: Default Label
127
+ placeholder: Default label above
128
+ - id: label_custom_title
129
+ type: PasswordInput
130
+ properties:
131
+ title: '<b>Bold</b> Label Title'
132
+ placeholder: Label supports html
133
+ - id: label_no_colon
134
+ type: PasswordInput
135
+ properties:
136
+ title: No Colon
137
+ label:
138
+ colon: false
139
+ placeholder: Label without colon
140
+ - id: label_right_align
141
+ type: PasswordInput
142
+ properties:
143
+ title: Right Aligned
144
+ label:
145
+ align: right
146
+ inline: true
147
+ span: 8
148
+ placeholder: Label aligned right
149
+ - id: label_disabled
150
+ type: PasswordInput
151
+ properties:
152
+ title: Hidden Label
153
+ label:
154
+ disabled: true
155
+ placeholder: Label is hidden
156
+
157
+ - title: Label Inline
158
+ blocks:
159
+ - id: inline_default
160
+ type: PasswordInput
161
+ properties:
162
+ title: Inline Label
163
+ label:
164
+ inline: true
165
+ span: 6
166
+ placeholder: Inline layout
167
+ - id: inline_right
168
+ type: PasswordInput
169
+ properties:
170
+ title: Inline Right
171
+ label:
172
+ inline: true
173
+ span: 6
174
+ align: right
175
+ placeholder: Label aligned right
176
+ - id: inline_wide
177
+ type: PasswordInput
178
+ properties:
179
+ title: Wide Label Span
180
+ label:
181
+ inline: true
182
+ span: 10
183
+ placeholder: Wider label column
184
+
185
+ - title: Label Extra & Feedback
186
+ blocks:
187
+ - id: label_extra
188
+ type: PasswordInput
189
+ properties:
190
+ title: With Extra Text
191
+ label:
192
+ extra: Use at least 8 characters with a mix of letters, numbers & symbols.
193
+ placeholder: Enter a strong password
194
+ - id: label_extra_html
195
+ type: PasswordInput
196
+ properties:
197
+ title: Extra With HTML
198
+ label:
199
+ extra: '<span style="color: #888;">Tip: avoid using personal information.</span>'
200
+ placeholder: Choose wisely
201
+ - id: label_no_feedback
202
+ type: PasswordInput
203
+ properties:
204
+ title: No Validation Feedback
205
+ label:
206
+ hasFeedback: false
207
+ placeholder: Feedback text hidden
208
+
209
+ - title: CSS Styles & Class Names
210
+ blocks:
211
+ - id: style_element
212
+ type: PasswordInput
213
+ properties:
214
+ title: Custom Element Style
215
+ placeholder: Custom border and background
216
+ style:
217
+ .element:
218
+ borderColor: '#722ed1'
219
+ - id: style_label
220
+ type: PasswordInput
221
+ properties:
222
+ title: Custom Label Style
223
+ placeholder: Styled label above
224
+ style:
225
+ .label:
226
+ color: '#1677ff'
227
+ fontWeight: bold
228
+ fontSize: 16
229
+ - id: style_extra
230
+ type: PasswordInput
231
+ properties:
232
+ title: Styled Extra
233
+ label:
234
+ extra: This extra text is styled.
235
+ placeholder: Enter password
236
+ style:
237
+ .extra:
238
+ color: '#fa8c16'
239
+ fontStyle: italic
240
+ - id: style_feedback
241
+ type: PasswordInput
242
+ properties:
243
+ title: Styled Feedback
244
+ label:
245
+ hasFeedback: true
246
+ placeholder: Enter password
247
+ style:
248
+ .feedback:
249
+ color: '#52c41a'
250
+ fontWeight: bold
251
+ - id: class_element
252
+ type: PasswordInput
253
+ class: rounded-lg shadow-md
254
+ properties:
255
+ title: With Tailwind Classes
256
+ placeholder: Rounded shadow input
257
+ - id: class_custom
258
+ type: PasswordInput
259
+ class: border-2 border-blue-400
260
+ properties:
261
+ title: Custom Border Class
262
+ placeholder: Blue border class
263
+
264
+ - title: Combined State Examples
265
+ blocks:
266
+ - id: combo_large_no_toggle
267
+ type: PasswordInput
268
+ properties:
269
+ title: Large + No Toggle + Borderless
270
+ size: large
271
+ visibilityToggle: false
272
+ bordered: false
273
+ placeholder: Large borderless no toggle
274
+ - id: combo_small_disabled_toggle
275
+ type: PasswordInput
276
+ properties:
277
+ title: Small + Disabled + Toggle
278
+ size: small
279
+ disabled: true
280
+ visibilityToggle: true
281
+ placeholder: Small disabled with toggle
282
+
283
+ - title: Theme Token Overrides
284
+ blocks:
285
+ - id: theme_large_radius
286
+ type: PasswordInput
287
+ properties:
288
+ title: Large Border Radius
289
+ placeholder: Rounded corners
290
+ theme:
291
+ borderRadius: 16
292
+ - id: theme_purple
293
+ type: PasswordInput
294
+ properties:
295
+ title: Purple Theme
296
+ placeholder: Purple accented input
297
+ theme:
298
+ activeBorderColor: '#722ed1'
299
+ hoverBorderColor: '#9254de'
300
+ activeShadow: '0 0 0 2px rgba(114, 46, 209, 0.2)'
301
+ - id: theme_large_pill
302
+ type: PasswordInput
303
+ properties:
304
+ title: Pill Input
305
+ size: large
306
+ placeholder: Pill shaped password input
307
+ theme:
308
+ borderRadius: 32
309
+ borderRadiusLG: 32
310
+ paddingInlineLG: 20
311
+ - id: theme_font_padding
312
+ type: PasswordInput
313
+ properties:
314
+ title: Large Font & Extra Padding
315
+ placeholder: More spacious input
316
+ theme:
317
+ fontSize: 18
318
+ paddingBlock: 8
319
+ paddingInline: 16
320
+ - id: theme_inline_pink
321
+ type: PasswordInput
322
+ properties:
323
+ title: Themed Inline
324
+ label:
325
+ inline: true
326
+ span: 6
327
+ placeholder: Themed inline input
328
+ theme:
329
+ activeBorderColor: '#eb2f96'
330
+ activeShadow: '0 0 0 2px rgba(235, 47, 150, 0.2)'
331
+ borderRadius: 12
332
+
333
+ - title: PasswordInput in Login Form
334
+ blocks:
335
+ - id: login_card
336
+ type: Card
337
+ properties:
338
+ title: Login
339
+ blocks:
340
+ - id: login_username
341
+ type: TextInput
342
+ required: true
343
+ properties:
344
+ title: Username
345
+ placeholder: Enter your username
346
+ prefixIcon: AiOutlineUser
347
+ - id: login_password
348
+ type: PasswordInput
349
+ required: true
350
+ properties:
351
+ title: Password
352
+ placeholder: Enter your password
353
+ visibilityToggle: true
354
+ label:
355
+ extra: Must be at least 8 characters.
356
+ - id: login_submit_btn
357
+ type: Button
358
+ properties:
359
+ title: Sign In
360
+ icon: AiOutlineLogin
361
+ type: primary
362
+ size: large
363
+ block: true
364
+ events:
365
+ onClick:
366
+ - id: login_validate
367
+ type: Validate
368
+ params:
369
+ - login_username
370
+ - login_password
371
+ - id: login_success_message
372
+ type: DisplayMessage
373
+ params:
374
+ content: Login successful!
375
+ duration: 3
376
+
377
+ - title: PasswordInput in Account Security
378
+ blocks:
379
+ - id: applied2_security_card
380
+ type: Card
381
+ properties:
382
+ title: Change Password
383
+ blocks:
384
+ - id: applied2_current_password
385
+ type: PasswordInput
386
+ properties:
387
+ title: Current Password
388
+ placeholder: Enter your current password
389
+ visibilityToggle: true
390
+ - id: applied2_new_password
391
+ type: PasswordInput
392
+ properties:
393
+ title: New Password
394
+ placeholder: Enter a new password
395
+ visibilityToggle: true
396
+ label:
397
+ extra: Use at least 8 characters with a mix of letters, numbers, and symbols.
398
+ - id: applied2_confirm_password
399
+ type: PasswordInput
400
+ properties:
401
+ title: Confirm New Password
402
+ placeholder: Re-enter your new password
403
+ visibilityToggle: true
404
+ label:
405
+ extra: Must match the new password above.
406
+ - id: applied2_save_password_btn
407
+ type: Button
408
+ properties:
409
+ title: Update Password
410
+ icon: AiOutlineLock
411
+ type: primary
412
+ size: large
413
+ block: true
414
+ events:
415
+ onClick:
416
+ - id: save_password_action
417
+ type: DisplayMessage
418
+ params:
419
+ content: Your password has been updated successfully.
420
+ duration: 3
@@ -0,0 +1,188 @@
1
+ # Copyright 2020-2026 Lowdefy, Inc
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ id: passwordinput
16
+ type: Box
17
+
18
+ events:
19
+ onInit:
20
+ - id: set_defaults
21
+ type: SetState
22
+ params:
23
+ passwordinput_with_value: secret123
24
+
25
+ blocks:
26
+ # ============================================
27
+ # BASIC RENDERING
28
+ # ============================================
29
+
30
+ - id: passwordinput_basic
31
+ type: PasswordInput
32
+ properties:
33
+ title: Basic Password
34
+
35
+ - id: passwordinput_with_value
36
+ type: PasswordInput
37
+ properties:
38
+ title: With Value
39
+
40
+ # ============================================
41
+ # PROPERTY TESTS
42
+ # ============================================
43
+
44
+ - id: passwordinput_placeholder
45
+ type: PasswordInput
46
+ properties:
47
+ title: Placeholder Test
48
+ placeholder: Enter password
49
+
50
+ - id: passwordinput_disabled
51
+ type: PasswordInput
52
+ properties:
53
+ title: Disabled Input
54
+ disabled: true
55
+
56
+ - id: passwordinput_small
57
+ type: PasswordInput
58
+ properties:
59
+ title: Small Input
60
+ size: small
61
+
62
+ - id: passwordinput_large
63
+ type: PasswordInput
64
+ properties:
65
+ title: Large Input
66
+ size: large
67
+
68
+ - id: passwordinput_borderless
69
+ type: PasswordInput
70
+ properties:
71
+ title: Borderless Input
72
+ bordered: false
73
+
74
+ - id: passwordinput_no_toggle
75
+ type: PasswordInput
76
+ properties:
77
+ title: No Visibility Toggle
78
+ visibilityToggle: false
79
+
80
+ # ============================================
81
+ # EVENT TESTS
82
+ # ============================================
83
+
84
+ - id: passwordinput_onchange
85
+ type: PasswordInput
86
+ properties:
87
+ title: OnChange Test
88
+ events:
89
+ onChange:
90
+ - id: set_onchange
91
+ type: SetState
92
+ params:
93
+ passwordinput_onchange_value:
94
+ _event: value
95
+
96
+ - id: onchange_display
97
+ type: Span
98
+ properties:
99
+ content:
100
+ _if:
101
+ test:
102
+ _ne:
103
+ - _state: passwordinput_onchange_value
104
+ - null
105
+ then:
106
+ _string.concat:
107
+ - 'Value: '
108
+ - _state: passwordinput_onchange_value
109
+ else: ''
110
+
111
+ - id: passwordinput_onblur
112
+ type: PasswordInput
113
+ properties:
114
+ title: OnBlur Test
115
+ events:
116
+ onBlur:
117
+ - id: set_onblur
118
+ type: SetState
119
+ params:
120
+ passwordinput_onblur_fired: true
121
+
122
+ - id: onblur_display
123
+ type: Span
124
+ properties:
125
+ content:
126
+ _if:
127
+ test:
128
+ _eq:
129
+ - _state: passwordinput_onblur_fired
130
+ - true
131
+ then: Blur fired
132
+ else: ''
133
+
134
+ - id: passwordinput_onfocus
135
+ type: PasswordInput
136
+ properties:
137
+ title: OnFocus Test
138
+ events:
139
+ onFocus:
140
+ - id: set_onfocus
141
+ type: SetState
142
+ params:
143
+ passwordinput_onfocus_fired: true
144
+
145
+ - id: onfocus_display
146
+ type: Span
147
+ properties:
148
+ content:
149
+ _if:
150
+ test:
151
+ _eq:
152
+ - _state: passwordinput_onfocus_fired
153
+ - true
154
+ then: Focus fired
155
+ else: ''
156
+
157
+ - id: passwordinput_onpressenter
158
+ type: PasswordInput
159
+ properties:
160
+ title: OnPressEnter Test
161
+ events:
162
+ onPressEnter:
163
+ - id: set_onpressenter
164
+ type: SetState
165
+ params:
166
+ passwordinput_onpressenter_fired: true
167
+
168
+ - id: onpressenter_display
169
+ type: Span
170
+ properties:
171
+ content:
172
+ _if:
173
+ test:
174
+ _eq:
175
+ - _state: passwordinput_onpressenter_fired
176
+ - true
177
+ then: Enter pressed
178
+ else: ''
179
+
180
+ # ============================================
181
+ # INTERACTION TESTS
182
+ # ============================================
183
+
184
+ - id: passwordinput_visibility
185
+ type: PasswordInput
186
+ properties:
187
+ title: Visibility Toggle Test
188
+ visibilityToggle: true
@@ -0,0 +1,78 @@
1
+ # Copyright 2020-2026 Lowdefy, Inc
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ - id: default
16
+ type: PasswordInput
17
+ - id: 'properties.title: My PasswordInput Title'
18
+ type: PasswordInput
19
+ properties:
20
+ title: My PasswordInput Title
21
+ - id: 'properties.autoFocus: true'
22
+ type: PasswordInput
23
+ properties:
24
+ autoFocus: true
25
+ - id: 'properties.disabled: true'
26
+ type: PasswordInput
27
+ properties:
28
+ disabled: true
29
+ - id: 'properties.placeholder: Type your text here'
30
+ type: PasswordInput
31
+ properties:
32
+ placeholder: Type your text here
33
+ - id: 'properties.size: large'
34
+ type: PasswordInput
35
+ properties:
36
+ size: large
37
+ - id: 'properties.size: small'
38
+ type: PasswordInput
39
+ properties:
40
+ size: small
41
+ - id: 'properties.visibilityToggle: false'
42
+ type: PasswordInput
43
+ properties:
44
+ visibilityToggle: false
45
+ - id: 'properties.bordered: false'
46
+ type: PasswordInput
47
+ properties:
48
+ bordered: false
49
+ - id: 'properties.label span: 12'
50
+ type: PasswordInput
51
+ properties:
52
+ label:
53
+ span: 12
54
+ - id: 'properties.label align: right'
55
+ type: PasswordInput
56
+ properties:
57
+ label:
58
+ align: right
59
+ - id: 'properties.label inline: true'
60
+ type: PasswordInput
61
+ properties:
62
+ label:
63
+ inline: true
64
+ - id: 'properties.label disabled: true'
65
+ type: PasswordInput
66
+ properties:
67
+ label:
68
+ disabled: true
69
+ - id: 'properties.label colon: false'
70
+ type: PasswordInput
71
+ properties:
72
+ label:
73
+ colon: false
74
+ - id: 'properties.label extra: showing extra'
75
+ type: PasswordInput
76
+ properties:
77
+ label:
78
+ extra: showing extra