@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,677 @@
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
+ # ──────────────────────────────────────────────
16
+ # Basic
17
+ # ──────────────────────────────────────────────
18
+
19
+ - title: Basic
20
+ blocks:
21
+ - id: basic_default
22
+ type: PhoneNumberInput
23
+ properties:
24
+ title: Default PhoneNumberInput
25
+ - id: basic_with_placeholder
26
+ type: PhoneNumberInput
27
+ properties:
28
+ title: With Placeholder
29
+ placeholder: Enter phone number
30
+ - id: basic_with_title
31
+ type: PhoneNumberInput
32
+ properties:
33
+ title: Contact Number
34
+ placeholder: Enter your contact number
35
+
36
+ # ──────────────────────────────────────────────
37
+ # Default Region
38
+ # ──────────────────────────────────────────────
39
+
40
+ - title: Default Region
41
+ blocks:
42
+ - id: region_us
43
+ type: PhoneNumberInput
44
+ properties:
45
+ title: United States
46
+ defaultRegion: US
47
+ placeholder: (555) 123-4567
48
+ - id: region_gb
49
+ type: PhoneNumberInput
50
+ properties:
51
+ title: United Kingdom
52
+ defaultRegion: GB
53
+ placeholder: 20 7946 0958
54
+ - id: region_za
55
+ type: PhoneNumberInput
56
+ properties:
57
+ title: South Africa
58
+ defaultRegion: ZA
59
+ placeholder: 21 123 4567
60
+ - id: region_jp
61
+ type: PhoneNumberInput
62
+ properties:
63
+ title: Japan
64
+ defaultRegion: JP
65
+ placeholder: 3-1234-5678
66
+
67
+ # ──────────────────────────────────────────────
68
+ # Allowed Regions
69
+ # ──────────────────────────────────────────────
70
+
71
+ - title: Allowed Regions
72
+ blocks:
73
+ - id: regions_north_america
74
+ type: PhoneNumberInput
75
+ properties:
76
+ title: North America Only
77
+ allowedRegions:
78
+ - US
79
+ - CA
80
+ - MX
81
+ defaultRegion: US
82
+ placeholder: Enter number
83
+ - id: regions_europe
84
+ type: PhoneNumberInput
85
+ properties:
86
+ title: European Countries
87
+ allowedRegions:
88
+ - GB
89
+ - DE
90
+ - FR
91
+ - ES
92
+ - IT
93
+ - NL
94
+ defaultRegion: GB
95
+ placeholder: Enter number
96
+ - id: regions_asia_pacific
97
+ type: PhoneNumberInput
98
+ properties:
99
+ title: Asia Pacific
100
+ allowedRegions:
101
+ - JP
102
+ - CN
103
+ - KR
104
+ - AU
105
+ - IN
106
+ defaultRegion: JP
107
+ placeholder: Enter number
108
+ - id: regions_single
109
+ type: PhoneNumberInput
110
+ properties:
111
+ title: Single Country (ZA)
112
+ allowedRegions:
113
+ - ZA
114
+ defaultRegion: ZA
115
+ placeholder: Enter South African number
116
+
117
+ # ──────────────────────────────────────────────
118
+ # Sizes
119
+ # ──────────────────────────────────────────────
120
+
121
+ - title: Sizes
122
+ blocks:
123
+ - id: size_small
124
+ type: PhoneNumberInput
125
+ properties:
126
+ title: Small
127
+ size: small
128
+ placeholder: Small input
129
+ - id: size_middle
130
+ type: PhoneNumberInput
131
+ properties:
132
+ title: Middle (Default)
133
+ size: middle
134
+ placeholder: Middle input
135
+ - id: size_large
136
+ type: PhoneNumberInput
137
+ properties:
138
+ title: Large
139
+ size: large
140
+ placeholder: Large input
141
+
142
+ # ──────────────────────────────────────────────
143
+ # Toggle Properties
144
+ # ──────────────────────────────────────────────
145
+
146
+ - title: Toggle Properties
147
+ blocks:
148
+ - id: toggle_disabled
149
+ type: PhoneNumberInput
150
+ properties:
151
+ title: Disabled
152
+ disabled: true
153
+ defaultRegion: US
154
+ placeholder: Cannot edit
155
+ - id: toggle_borderless
156
+ type: PhoneNumberInput
157
+ properties:
158
+ title: Borderless
159
+ bordered: false
160
+ defaultRegion: GB
161
+ placeholder: No border style
162
+ - id: toggle_allow_clear
163
+ type: PhoneNumberInput
164
+ properties:
165
+ title: Allow Clear
166
+ allowClear: true
167
+ placeholder: Type then clear
168
+ - id: toggle_arrow_hidden
169
+ type: PhoneNumberInput
170
+ properties:
171
+ title: Arrow Hidden
172
+ showArrow: false
173
+ placeholder: Selector without arrow
174
+
175
+ # ──────────────────────────────────────────────
176
+ # Max Length
177
+ # ──────────────────────────────────────────────
178
+
179
+ - title: Max Length
180
+ blocks:
181
+ - id: maxlength_10
182
+ type: PhoneNumberInput
183
+ properties:
184
+ title: Max 10 Characters
185
+ maxLength: 10
186
+ placeholder: Up to 10 digits
187
+ - id: maxlength_15
188
+ type: PhoneNumberInput
189
+ properties:
190
+ title: Max 15 Characters
191
+ maxLength: 15
192
+ placeholder: Up to 15 characters
193
+ - id: maxlength_7
194
+ type: PhoneNumberInput
195
+ properties:
196
+ title: Max 7 Characters
197
+ maxLength: 7
198
+ placeholder: Short number
199
+
200
+ # ──────────────────────────────────────────────
201
+ # Icons
202
+ # ──────────────────────────────────────────────
203
+
204
+ - title: Icons
205
+ blocks:
206
+ - id: icon_prefix_phone
207
+ type: PhoneNumberInput
208
+ properties:
209
+ title: Prefix Phone Icon
210
+ prefixIcon: AiOutlinePhone
211
+ placeholder: Enter phone number
212
+ - id: icon_suffix_check
213
+ type: PhoneNumberInput
214
+ properties:
215
+ title: Suffix Check Icon
216
+ suffixIcon: AiOutlineCheckCircle
217
+ placeholder: Verified number
218
+ - id: icon_both
219
+ type: PhoneNumberInput
220
+ properties:
221
+ title: Both Icons
222
+ prefixIcon: AiOutlinePhone
223
+ suffixIcon: AiOutlineInfoCircle
224
+ placeholder: Enter number
225
+ - id: icon_custom_color
226
+ type: PhoneNumberInput
227
+ properties:
228
+ title: Custom Icon Color
229
+ prefixIcon:
230
+ name: AiOutlinePhone
231
+ color: '#1677ff'
232
+ placeholder: Blue phone icon
233
+
234
+ # ──────────────────────────────────────────────
235
+ # Label Options
236
+ # ──────────────────────────────────────────────
237
+
238
+ - title: Label Options
239
+ blocks:
240
+ - id: label_colon_false
241
+ type: PhoneNumberInput
242
+ properties:
243
+ title: Without Colon
244
+ placeholder: No colon
245
+ label:
246
+ colon: false
247
+ - id: label_align_right
248
+ type: PhoneNumberInput
249
+ properties:
250
+ title: Right Aligned
251
+ placeholder: Label aligned right
252
+ label:
253
+ inline: true
254
+ align: right
255
+ span: 8
256
+ - id: label_extra
257
+ type: PhoneNumberInput
258
+ properties:
259
+ title: With Extra Text
260
+ placeholder: Enter phone number
261
+ label:
262
+ extra: Include area code. We will not share your number.
263
+ - id: label_disabled
264
+ type: PhoneNumberInput
265
+ properties:
266
+ title: Label Hidden
267
+ placeholder: Label is hidden
268
+ label:
269
+ disabled: true
270
+ - id: label_feedback_off
271
+ type: PhoneNumberInput
272
+ properties:
273
+ title: No Feedback
274
+ placeholder: Feedback hidden
275
+ label:
276
+ hasFeedback: false
277
+
278
+ # ──────────────────────────────────────────────
279
+ # Label Inline
280
+ # ──────────────────────────────────────────────
281
+
282
+ - title: Label Inline
283
+ blocks:
284
+ - id: inline_span_4
285
+ type: PhoneNumberInput
286
+ properties:
287
+ title: Span 4
288
+ placeholder: Narrow label
289
+ label:
290
+ inline: true
291
+ span: 4
292
+ - id: inline_span_8
293
+ type: PhoneNumberInput
294
+ properties:
295
+ title: Span 8
296
+ placeholder: Medium label
297
+ label:
298
+ inline: true
299
+ span: 8
300
+ - id: inline_span_12
301
+ type: PhoneNumberInput
302
+ properties:
303
+ title: Span 12
304
+ placeholder: Wide label
305
+ label:
306
+ inline: true
307
+ span: 12
308
+
309
+ # ──────────────────────────────────────────────
310
+ # Replace Input
311
+ # ──────────────────────────────────────────────
312
+
313
+ - title: Replace Input
314
+ blocks:
315
+ - id: replace_digits_only
316
+ type: PhoneNumberInput
317
+ properties:
318
+ title: Digits Only
319
+ placeholder: Only digits allowed
320
+ replaceInput:
321
+ pattern: '[^0-9]'
322
+ flags: g
323
+ replacement: ''
324
+ - id: replace_digits_spaces_dashes
325
+ type: PhoneNumberInput
326
+ properties:
327
+ title: Digits, Spaces & Dashes
328
+ placeholder: Digits, spaces and dashes
329
+ replaceInput:
330
+ pattern: '[^0-9\s\-]'
331
+ flags: g
332
+ replacement: ''
333
+ - id: replace_digits_parens
334
+ type: PhoneNumberInput
335
+ properties:
336
+ title: US Format Characters
337
+ placeholder: '(555) 123-4567'
338
+ replaceInput:
339
+ pattern: '[^0-9()\-\s]'
340
+ flags: g
341
+ replacement: ''
342
+
343
+ # ──────────────────────────────────────────────
344
+ # Style and Class Overrides
345
+ # ──────────────────────────────────────────────
346
+
347
+ - title: Style and Class Overrides
348
+ blocks:
349
+ - id: css_shadow
350
+ type: PhoneNumberInput
351
+ class: shadow-md
352
+ properties:
353
+ title: Shadow
354
+ placeholder: Using Tailwind shadow class
355
+ - id: css_rounded
356
+ type: PhoneNumberInput
357
+ class: rounded-lg
358
+ properties:
359
+ title: Rounded
360
+ placeholder: Using Tailwind rounded class
361
+ - id: css_custom_bg
362
+ type: PhoneNumberInput
363
+ style:
364
+ .element:
365
+ borderColor: '#adc6ff'
366
+ properties:
367
+ title: Custom Background
368
+ placeholder: Light blue background via inline style
369
+
370
+ # ──────────────────────────────────────────────
371
+ # Theme Token Overrides
372
+ # ──────────────────────────────────────────────
373
+
374
+ - title: Theme Token Overrides
375
+ blocks:
376
+ - id: theme_active_border
377
+ type: PhoneNumberInput
378
+ properties:
379
+ title: Custom Active Border
380
+ placeholder: Focus to see green border
381
+ theme:
382
+ activeBorderColor: '#52c41a'
383
+ hoverBorderColor: '#73d13d'
384
+ label:
385
+ disabled: true
386
+ - id: theme_addon_bg
387
+ type: PhoneNumberInput
388
+ properties:
389
+ title: Custom Addon Background
390
+ placeholder: Blue-tinted selector area
391
+ label:
392
+ disabled: true
393
+ - id: theme_combined_green
394
+ type: PhoneNumberInput
395
+ properties:
396
+ title: Green Theme
397
+ placeholder: Fully themed green
398
+ defaultRegion: US
399
+ theme:
400
+ colorPrimary: '#52c41a'
401
+ colorBorder: '#b7eb8f'
402
+ hoverBorderColor: '#73d13d'
403
+ activeBorderColor: '#389e0d'
404
+ activeShadow: 0 0 0 2px rgba(82, 196, 26, 0.15)
405
+ label:
406
+ disabled: true
407
+ - id: theme_combined_purple
408
+ type: PhoneNumberInput
409
+ properties:
410
+ title: Purple Theme
411
+ placeholder: Fully themed purple
412
+ defaultRegion: GB
413
+ theme:
414
+ colorPrimary: '#722ed1'
415
+ colorBorder: '#d3adf7'
416
+ hoverBorderColor: '#b37feb'
417
+ activeBorderColor: '#531dab'
418
+ activeShadow: 0 0 0 2px rgba(114, 46, 209, 0.15)
419
+ label:
420
+ disabled: true
421
+ - id: theme_combined_dark
422
+ type: PhoneNumberInput
423
+ properties:
424
+ title: Dark Theme
425
+ defaultRegion: JP
426
+ theme:
427
+ colorBgContainer: '#1f1f1f'
428
+ colorBorder: '#434343'
429
+ colorText: '#ffffff'
430
+ hoverBorderColor: '#595959'
431
+ activeBorderColor: '#177ddc'
432
+ activeShadow: 0 0 0 2px rgba(23, 125, 220, 0.2)
433
+ label:
434
+ disabled: true
435
+
436
+ # ──────────────────────────────────────────────
437
+ # Combined Features
438
+ # ──────────────────────────────────────────────
439
+
440
+ - title: Combined Features
441
+ blocks:
442
+ - id: combined_full_us
443
+ type: PhoneNumberInput
444
+ properties:
445
+ title: US Phone Number
446
+ defaultRegion: US
447
+ allowedRegions:
448
+ - US
449
+ - CA
450
+ placeholder: (555) 123-4567
451
+ allowClear: true
452
+ size: large
453
+ prefixIcon: AiOutlinePhone
454
+ replaceInput:
455
+ pattern: '[^0-9()\-\s]'
456
+ flags: g
457
+ replacement: ''
458
+ label:
459
+ extra: Enter a US or Canadian phone number.
460
+ colon: false
461
+ - id: combined_international
462
+ type: PhoneNumberInput
463
+ properties:
464
+ title: International Number
465
+ defaultRegion: GB
466
+ placeholder: Enter international number
467
+ allowClear: true
468
+ maxLength: 15
469
+ suffixIcon: AiOutlineGlobal
470
+ label:
471
+ inline: true
472
+ span: 8
473
+ align: right
474
+ colon: true
475
+ - id: combined_compact
476
+ type: PhoneNumberInput
477
+ properties:
478
+ title: Compact Phone Input
479
+ defaultRegion: ZA
480
+ size: small
481
+ showArrow: false
482
+ placeholder: Number
483
+ label:
484
+ disabled: true
485
+ - id: combined_form_field
486
+ type: PhoneNumberInput
487
+ properties:
488
+ title: Mobile Number
489
+ defaultRegion: US
490
+ allowClear: true
491
+ maxLength: 10
492
+ placeholder: Enter mobile number
493
+ prefixIcon: AiOutlineMobile
494
+ replaceInput:
495
+ pattern: '[^0-9]'
496
+ flags: g
497
+ replacement: ''
498
+ label:
499
+ extra: 'Digits only. Maximum 10 characters.'
500
+ hasFeedback: true
501
+ - id: combined_themed_form
502
+ type: PhoneNumberInput
503
+ properties:
504
+ title: Themed Phone Field
505
+ defaultRegion: GB
506
+ allowedRegions:
507
+ - GB
508
+ - IE
509
+ - FR
510
+ - DE
511
+ placeholder: Enter number
512
+ allowClear: true
513
+ size: large
514
+ prefixIcon:
515
+ name: AiOutlinePhone
516
+ color: '#52c41a'
517
+ theme:
518
+ colorPrimary: '#52c41a'
519
+ colorBorder: '#b7eb8f'
520
+ hoverBorderColor: '#73d13d'
521
+ activeBorderColor: '#389e0d'
522
+ label:
523
+ extra: Select your country and enter your phone number.
524
+ colon: false
525
+
526
+ # ──────────────────────────────────────────────
527
+ # PhoneNumberInput in Contact Form
528
+ # ──────────────────────────────────────────────
529
+
530
+ - title: PhoneNumberInput in Contact Form
531
+ blocks:
532
+ - id: contact_card
533
+ type: Card
534
+ properties:
535
+ title: Contact Us
536
+ blocks:
537
+ - id: contact_name
538
+ type: TextInput
539
+ required: true
540
+ properties:
541
+ title: Full Name
542
+ prefixIcon: AiOutlineUser
543
+ placeholder: John Doe
544
+ label:
545
+ colon: false
546
+ - id: contact_email
547
+ type: TextInput
548
+ required: true
549
+ properties:
550
+ title: Email Address
551
+ type: email
552
+ prefixIcon: AiOutlineMail
553
+ placeholder: john@example.com
554
+ label:
555
+ colon: false
556
+ - id: contact_phone
557
+ type: PhoneNumberInput
558
+ required: true
559
+ properties:
560
+ title: Phone Number
561
+ defaultRegion: US
562
+ allowClear: true
563
+ prefixIcon: AiOutlinePhone
564
+ placeholder: (555) 123-4567
565
+ label:
566
+ colon: false
567
+ extra: Include your area code.
568
+ events:
569
+ onChange:
570
+ - id: contact_phone_set
571
+ type: SetState
572
+ params:
573
+ contact_phone:
574
+ _event: value
575
+ - id: contact_actions
576
+ type: Box
577
+ layout:
578
+ gap: 8
579
+ justify: flex-end
580
+ blocks:
581
+ - id: contact_submit
582
+ type: Button
583
+ layout:
584
+ flex: 0 0 auto
585
+ properties:
586
+ title: Send Message
587
+ color: primary
588
+ variant: solid
589
+ icon: AiOutlineSend
590
+ events:
591
+ onClick:
592
+ - id: contact_validate
593
+ type: Validate
594
+ params:
595
+ - contact_name
596
+ - contact_email
597
+ - contact_phone
598
+ - id: contact_success
599
+ type: DisplayMessage
600
+ params:
601
+ content: Message sent successfully!
602
+ status: success
603
+
604
+ # ──────────────────────────────────────────────
605
+ # PhoneNumberInput in Registration Page
606
+ # ──────────────────────────────────────────────
607
+
608
+ - title: PhoneNumberInput in Registration Page
609
+ blocks:
610
+ - id: register_card
611
+ type: Card
612
+ properties:
613
+ title: Create Account
614
+ blocks:
615
+ - id: register_phone
616
+ type: PhoneNumberInput
617
+ required: true
618
+ properties:
619
+ title: Mobile Number
620
+ defaultRegion: US
621
+ allowClear: true
622
+ prefixIcon: AiOutlineMobile
623
+ placeholder: Enter mobile number
624
+ label:
625
+ colon: false
626
+ extra: We will send a verification code to this number.
627
+ events:
628
+ onChange:
629
+ - id: register_phone_set
630
+ type: SetState
631
+ params:
632
+ register_phone:
633
+ _event: value
634
+ - id: register_password
635
+ type: PasswordInput
636
+ required: true
637
+ properties:
638
+ title: Password
639
+ prefixIcon: AiOutlineLock
640
+ placeholder: At least 8 characters
641
+ label:
642
+ colon: false
643
+ - id: register_terms
644
+ type: CheckboxSwitch
645
+ required: true
646
+ properties:
647
+ title: I agree to the Terms and Conditions
648
+ label:
649
+ disabled: true
650
+ - id: register_actions
651
+ type: Box
652
+ layout:
653
+ gap: 8
654
+ justify: flex-end
655
+ blocks:
656
+ - id: register_submit
657
+ type: Button
658
+ layout:
659
+ flex: 0 0 auto
660
+ properties:
661
+ title: Create Account
662
+ color: primary
663
+ variant: solid
664
+ icon: AiOutlineArrowRight
665
+ events:
666
+ onClick:
667
+ - id: register_validate
668
+ type: Validate
669
+ params:
670
+ - register_phone
671
+ - register_password
672
+ - register_terms
673
+ - id: register_success
674
+ type: DisplayMessage
675
+ params:
676
+ content: Account created successfully!
677
+ status: success