@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,816 @@
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_label_value
18
+ type: RadioSelector
19
+ properties:
20
+ title: Favorite Color
21
+ options:
22
+ - label: Red
23
+ value: red
24
+ - label: Green
25
+ value: green
26
+ - label: Blue
27
+ value: blue
28
+ - label: Yellow
29
+ value: yellow
30
+ - id: basic_string_options
31
+ type: RadioSelector
32
+ properties:
33
+ title: Shirt Size
34
+ options:
35
+ - XS
36
+ - S
37
+ - M
38
+ - L
39
+ - XL
40
+ - id: basic_number_options
41
+ type: RadioSelector
42
+ properties:
43
+ title: Quantity
44
+ options:
45
+ - 1
46
+ - 2
47
+ - 5
48
+ - 10
49
+ - 25
50
+ - id: basic_boolean_options
51
+ type: RadioSelector
52
+ properties:
53
+ title: Agreement
54
+ options:
55
+ - label: 'Yes'
56
+ value: true
57
+ - label: 'No'
58
+ value: false
59
+
60
+ - title: Direction - Horizontal
61
+ blocks:
62
+ - id: horizontal_default
63
+ type: RadioSelector
64
+ properties:
65
+ title: Horizontal (Default)
66
+ direction: horizontal
67
+ options:
68
+ - label: Option A
69
+ value: a
70
+ - label: Option B
71
+ value: b
72
+ - label: Option C
73
+ value: c
74
+ - label: Option D
75
+ value: d
76
+ - id: horizontal_many
77
+ type: RadioSelector
78
+ properties:
79
+ title: Many Horizontal Options (Wrapping)
80
+ direction: horizontal
81
+ wrap: true
82
+ options:
83
+ - Monday
84
+ - Tuesday
85
+ - Wednesday
86
+ - Thursday
87
+ - Friday
88
+ - Saturday
89
+ - Sunday
90
+
91
+ - title: Direction - Vertical
92
+ blocks:
93
+ - id: vertical_radio
94
+ type: RadioSelector
95
+ properties:
96
+ title: Vertical Layout
97
+ direction: vertical
98
+ options:
99
+ - label: Express Shipping (1-2 days)
100
+ value: express
101
+ - label: Standard Shipping (5-7 days)
102
+ value: standard
103
+ - label: Economy Shipping (10-14 days)
104
+ value: economy
105
+ - id: vertical_with_disabled
106
+ type: RadioSelector
107
+ properties:
108
+ title: Subscription Plan
109
+ direction: vertical
110
+ options:
111
+ - label: Free Tier
112
+ value: free
113
+ - label: Pro ($9/mo)
114
+ value: pro
115
+ - label: Enterprise (Contact Sales)
116
+ value: enterprise
117
+ disabled: true
118
+
119
+ - title: Wrap
120
+ blocks:
121
+ - id: wrap_enabled
122
+ type: RadioSelector
123
+ properties:
124
+ title: Wrap Enabled (Default)
125
+ direction: horizontal
126
+ wrap: true
127
+ options:
128
+ - January
129
+ - February
130
+ - March
131
+ - April
132
+ - May
133
+ - June
134
+ - July
135
+ - August
136
+ - September
137
+ - October
138
+ - November
139
+ - December
140
+ - id: wrap_disabled
141
+ type: RadioSelector
142
+ properties:
143
+ title: Wrap Disabled
144
+ direction: horizontal
145
+ wrap: false
146
+ options:
147
+ - January
148
+ - February
149
+ - March
150
+ - April
151
+ - May
152
+ - June
153
+ - July
154
+ - August
155
+ - September
156
+ - October
157
+ - November
158
+ - December
159
+
160
+ - title: Alignment
161
+ blocks:
162
+ - id: align_start
163
+ type: RadioSelector
164
+ properties:
165
+ title: Start Alignment (Default)
166
+ align: start
167
+ direction: vertical
168
+ options:
169
+ - Apple
170
+ - Banana
171
+ - Cherry
172
+ - id: align_center
173
+ type: RadioSelector
174
+ properties:
175
+ title: Center Alignment
176
+ align: center
177
+ direction: vertical
178
+ options:
179
+ - Apple
180
+ - Banana
181
+ - Cherry
182
+ - id: align_end
183
+ type: RadioSelector
184
+ properties:
185
+ title: End Alignment
186
+ align: end
187
+ direction: vertical
188
+ options:
189
+ - Apple
190
+ - Banana
191
+ - Cherry
192
+ - id: align_baseline
193
+ type: RadioSelector
194
+ properties:
195
+ title: Baseline Alignment
196
+ align: baseline
197
+ direction: horizontal
198
+ options:
199
+ - Apple
200
+ - Banana
201
+ - Cherry
202
+
203
+ - title: Color Override
204
+ blocks:
205
+ - id: color_green
206
+ type: RadioSelector
207
+ properties:
208
+ title: Green
209
+ color: '#52c41a'
210
+ options:
211
+ - label: Approved
212
+ value: approved
213
+ - label: Pending
214
+ value: pending
215
+ - label: Rejected
216
+ value: rejected
217
+ - id: color_orange
218
+ type: RadioSelector
219
+ properties:
220
+ title: Orange
221
+ color: '#fa8c16'
222
+ options:
223
+ - label: Low
224
+ value: low
225
+ - label: Medium
226
+ value: medium
227
+ - label: High
228
+ value: high
229
+ - id: color_purple
230
+ type: RadioSelector
231
+ properties:
232
+ title: Purple
233
+ color: '#722ed1'
234
+ options:
235
+ - label: Bronze
236
+ value: bronze
237
+ - label: Silver
238
+ value: silver
239
+ - label: Gold
240
+ value: gold
241
+ - id: color_red
242
+ type: RadioSelector
243
+ properties:
244
+ title: Red
245
+ color: '#f5222d'
246
+ options:
247
+ - label: Critical
248
+ value: critical
249
+ - label: Warning
250
+ value: warning
251
+ - label: Info
252
+ value: info
253
+ - id: color_hex_custom
254
+ type: RadioSelector
255
+ properties:
256
+ title: Custom Hex (#e64980)
257
+ color: '#e64980'
258
+ options:
259
+ - label: Option 1
260
+ value: opt1
261
+ - label: Option 2
262
+ value: opt2
263
+ - label: Option 3
264
+ value: opt3
265
+
266
+ - title: Disabled - Entire Block
267
+ blocks:
268
+ - id: disabled_all
269
+ type: RadioSelector
270
+ properties:
271
+ title: All Options Disabled
272
+ disabled: true
273
+ options:
274
+ - label: Option A
275
+ value: a
276
+ - label: Option B
277
+ value: b
278
+ - label: Option C
279
+ value: c
280
+ - id: disabled_vertical
281
+ type: RadioSelector
282
+ properties:
283
+ title: Disabled Vertical
284
+ disabled: true
285
+ direction: vertical
286
+ options:
287
+ - label: Small
288
+ value: small
289
+ - label: Medium
290
+ value: medium
291
+ - label: Large
292
+ value: large
293
+
294
+ - title: Disabled - Individual Options
295
+ blocks:
296
+ - id: disabled_single_option
297
+ type: RadioSelector
298
+ properties:
299
+ title: One Disabled Option
300
+ options:
301
+ - label: Available
302
+ value: available
303
+ - label: Out of Stock
304
+ value: out_of_stock
305
+ disabled: true
306
+ - label: In Stock
307
+ value: in_stock
308
+ - id: disabled_multiple_options
309
+ type: RadioSelector
310
+ properties:
311
+ title: Multiple Disabled Options
312
+ options:
313
+ - label: Standard
314
+ value: standard
315
+ - label: Premium (Sold Out)
316
+ value: premium
317
+ disabled: true
318
+ - label: Enterprise (Coming Soon)
319
+ value: enterprise
320
+ disabled: true
321
+ - label: Basic
322
+ value: basic
323
+
324
+ - title: Option Styles
325
+ blocks:
326
+ - id: styled_options
327
+ type: RadioSelector
328
+ properties:
329
+ title: Custom Option Styles
330
+ options:
331
+ - label: '<b>Bold Label</b>'
332
+ value: bold
333
+ style:
334
+ fontWeight: bold
335
+ - label: Highlighted
336
+ value: highlighted
337
+ style:
338
+ padding: '2px 8px'
339
+ borderRadius: 4
340
+ - label: Italic
341
+ value: italic
342
+ style:
343
+ fontStyle: italic
344
+ - id: styled_colored_labels
345
+ type: RadioSelector
346
+ properties:
347
+ title: Colored Labels
348
+ options:
349
+ - label: '<span style="color: #52c41a;">Success</span>'
350
+ value: success
351
+ - label: '<span style="color: #faad14;">Warning</span>'
352
+ value: warning
353
+ - label: '<span style="color: #ff4d4f;">Error</span>'
354
+ value: error
355
+ - label: '<span style="color: #1677ff;">Info</span>'
356
+ value: info
357
+ - id: styled_vertical_cards
358
+ type: RadioSelector
359
+ properties:
360
+ title: Styled Vertical Options
361
+ direction: vertical
362
+ options:
363
+ - label: Free Plan
364
+ value: free
365
+ style:
366
+ padding: '4px 12px'
367
+ borderRadius: 6
368
+ marginBottom: 4
369
+ - label: Pro Plan
370
+ value: pro
371
+ style:
372
+ padding: '4px 12px'
373
+ borderRadius: 6
374
+ marginBottom: 4
375
+ - label: Enterprise Plan
376
+ value: enterprise
377
+ style:
378
+ padding: '4px 12px'
379
+ borderRadius: 6
380
+
381
+ - title: HTML Labels
382
+ blocks:
383
+ - id: html_bold_labels
384
+ type: RadioSelector
385
+ properties:
386
+ title: HTML in Labels
387
+ options:
388
+ - label: '<b>Important</b> option'
389
+ value: important
390
+ - label: 'Normal option'
391
+ value: normal
392
+ - label: '<i>Italic</i> option'
393
+ value: italic
394
+ - id: html_rich_labels
395
+ type: RadioSelector
396
+ properties:
397
+ title: Rich HTML Labels
398
+ direction: vertical
399
+ options:
400
+ - label: '<b>Starter</b> &mdash; Basic features for individuals'
401
+ value: starter
402
+ - label: '<b>Professional</b> &mdash; Advanced features for teams'
403
+ value: professional
404
+ - label: '<b>Enterprise</b> &mdash; Custom solutions for organizations'
405
+ value: enterprise
406
+
407
+ - title: Label Options
408
+ blocks:
409
+ - id: label_default
410
+ type: RadioSelector
411
+ properties:
412
+ title: Default Label
413
+ options:
414
+ - Yes
415
+ - No
416
+ - Maybe
417
+ - id: label_with_extra
418
+ type: RadioSelector
419
+ properties:
420
+ title: Label with Extra
421
+ label:
422
+ extra: Select the option that best describes your preference.
423
+ options:
424
+ - label: Strongly Agree
425
+ value: strongly_agree
426
+ - label: Agree
427
+ value: agree
428
+ - label: Neutral
429
+ value: neutral
430
+ - label: Disagree
431
+ value: disagree
432
+ - id: label_colon_false
433
+ type: RadioSelector
434
+ properties:
435
+ title: Label Without Colon
436
+ label:
437
+ colon: false
438
+ options:
439
+ - Option A
440
+ - Option B
441
+ - Option C
442
+ - id: label_inline
443
+ type: RadioSelector
444
+ properties:
445
+ title: Inline Label
446
+ label:
447
+ inline: true
448
+ span: 8
449
+ options:
450
+ - label: Left
451
+ value: left
452
+ - label: Center
453
+ value: center
454
+ - label: Right
455
+ value: right
456
+ - id: label_right_align
457
+ type: RadioSelector
458
+ properties:
459
+ title: Right Aligned Label
460
+ label:
461
+ inline: true
462
+ span: 8
463
+ align: right
464
+ options:
465
+ - label: Small
466
+ value: sm
467
+ - label: Medium
468
+ value: md
469
+ - label: Large
470
+ value: lg
471
+
472
+ - title: No Label
473
+ blocks:
474
+ - id: no_label_radio
475
+ type: RadioSelector
476
+ properties:
477
+ label:
478
+ disabled: true
479
+ options:
480
+ - label: Yes
481
+ value: true
482
+ - label: No
483
+ value: false
484
+ - label: Maybe
485
+ value: maybe
486
+ - id: no_label_vertical
487
+ type: RadioSelector
488
+ properties:
489
+ label:
490
+ disabled: true
491
+ direction: vertical
492
+ options:
493
+ - label: Daily digest
494
+ value: daily
495
+ - label: Weekly summary
496
+ value: weekly
497
+ - label: No emails
498
+ value: none
499
+
500
+ - title: Style and Class Overrides
501
+ blocks:
502
+ - id: style_border
503
+ type: RadioSelector
504
+ style:
505
+ .element:
506
+ border: 1px solid #d9d9d9
507
+ borderRadius: 8
508
+ padding: 16
509
+ properties:
510
+ title: Bordered Container
511
+ label:
512
+ disabled: true
513
+ options:
514
+ - label: Option A
515
+ value: a
516
+ - label: Option B
517
+ value: b
518
+ - label: Option C
519
+ value: c
520
+ - id: style_background
521
+ type: RadioSelector
522
+ style:
523
+ .element:
524
+ padding: 12
525
+ borderRadius: 6
526
+ properties:
527
+ title: Custom Background
528
+ label:
529
+ disabled: true
530
+ options:
531
+ - label: React
532
+ value: react
533
+ - label: Vue
534
+ value: vue
535
+ - label: Angular
536
+ value: angular
537
+ - id: class_override
538
+ type: RadioSelector
539
+ class: p-4 rounded-lg shadow-sm border
540
+ properties:
541
+ title: With Tailwind Class
542
+ label:
543
+ disabled: true
544
+ options:
545
+ - label: Light Mode
546
+ value: light
547
+ - label: Dark Mode
548
+ value: dark
549
+ - label: System
550
+ value: system
551
+
552
+ - title: Theme Token Overrides
553
+ blocks:
554
+ - id: theme_large_radio
555
+ type: RadioSelector
556
+ properties:
557
+ title: Large Radio Buttons
558
+ theme:
559
+ radioSize: 20
560
+ dotSize: 10
561
+ options:
562
+ - label: Option A
563
+ value: a
564
+ - label: Option B
565
+ value: b
566
+ - label: Option C
567
+ value: c
568
+ - id: theme_custom_colors
569
+ type: RadioSelector
570
+ properties:
571
+ title: Custom Theme Colors
572
+ theme:
573
+ colorPrimary: '#722ed1'
574
+ colorBorder: '#d3adf7'
575
+ options:
576
+ - label: Purple A
577
+ value: a
578
+ - label: Purple B
579
+ value: b
580
+ - label: Purple C
581
+ value: c
582
+ - id: theme_spacing
583
+ type: RadioSelector
584
+ properties:
585
+ title: Wide Spacing
586
+ theme:
587
+ wrapperMarginInlineEnd: 24
588
+ options:
589
+ - label: Spaced A
590
+ value: a
591
+ - label: Spaced B
592
+ value: b
593
+ - label: Spaced C
594
+ value: c
595
+ - id: theme_combined
596
+ type: RadioSelector
597
+ properties:
598
+ title: Combined Token Overrides
599
+ theme:
600
+ radioSize: 22
601
+ dotSize: 12
602
+ colorPrimary: '#eb2f96'
603
+ wrapperMarginInlineEnd: 20
604
+ options:
605
+ - label: Pink A
606
+ value: a
607
+ - label: Pink B
608
+ value: b
609
+ - label: Pink C
610
+ value: c
611
+ - id: theme_green
612
+ type: RadioSelector
613
+ properties:
614
+ title: Green Theme
615
+ direction: vertical
616
+ theme:
617
+ colorPrimary: '#52c41a'
618
+ radioSize: 18
619
+ dotSize: 8
620
+ options:
621
+ - label: Approved
622
+ value: approved
623
+ - label: Pending Review
624
+ value: pending
625
+ - label: Rejected
626
+ value: rejected
627
+
628
+ - title: Complex Options
629
+ blocks:
630
+ - id: object_values
631
+ type: RadioSelector
632
+ properties:
633
+ title: Object Values
634
+ direction: vertical
635
+ options:
636
+ - label: Admin (Full Access)
637
+ value:
638
+ role: admin
639
+ level: 3
640
+ - label: Editor (Read/Write)
641
+ value:
642
+ role: editor
643
+ level: 2
644
+ - label: Viewer (Read Only)
645
+ value:
646
+ role: viewer
647
+ level: 1
648
+ - id: mixed_disabled_styled
649
+ type: RadioSelector
650
+ properties:
651
+ title: Mixed Disabled and Styled
652
+ direction: vertical
653
+ options:
654
+ - label: '<b>Recommended:</b> Standard Plan'
655
+ value: standard
656
+ style:
657
+ padding: '4px 12px'
658
+ borderRadius: 4
659
+ - label: Basic Plan
660
+ value: basic
661
+ - label: Legacy Plan (Discontinued)
662
+ value: legacy
663
+ disabled: true
664
+ style:
665
+ textDecoration: line-through
666
+
667
+ - title: Real-World Examples
668
+ blocks:
669
+ - id: example_payment
670
+ type: RadioSelector
671
+ properties:
672
+ title: Payment Method
673
+ direction: vertical
674
+ options:
675
+ - label: '<b>Credit Card</b> &mdash; Visa, Mastercard, Amex'
676
+ value: credit_card
677
+ - label: '<b>PayPal</b> &mdash; Pay with your PayPal account'
678
+ value: paypal
679
+ - label: '<b>Bank Transfer</b> &mdash; Direct bank payment'
680
+ value: bank_transfer
681
+ - label: '<b>Crypto</b> &mdash; Bitcoin, Ethereum'
682
+ value: crypto
683
+ disabled: true
684
+ - id: example_frequency
685
+ type: RadioSelector
686
+ properties:
687
+ title: Notification Frequency
688
+ color: '#1677ff'
689
+ options:
690
+ - label: Instant
691
+ value: instant
692
+ - label: Hourly
693
+ value: hourly
694
+ - label: Daily
695
+ value: daily
696
+ - label: Weekly
697
+ value: weekly
698
+ - label: Never
699
+ value: never
700
+ - id: example_rating
701
+ type: RadioSelector
702
+ properties:
703
+ title: Satisfaction Rating
704
+ direction: horizontal
705
+ color: '#faad14'
706
+ options:
707
+ - label: '&#x2B50; 1'
708
+ value: 1
709
+ - label: '&#x2B50; 2'
710
+ value: 2
711
+ - label: '&#x2B50; 3'
712
+ value: 3
713
+ - label: '&#x2B50; 4'
714
+ value: 4
715
+ - label: '&#x2B50; 5'
716
+ value: 5
717
+ - id: example_priority
718
+ type: RadioSelector
719
+ properties:
720
+ title: Task Priority
721
+ direction: vertical
722
+ options:
723
+ - label: '<span style="color: #ff4d4f;">&#x1F534; Critical</span>'
724
+ value: critical
725
+ - label: '<span style="color: #fa8c16;">&#x1F7E0; High</span>'
726
+ value: high
727
+ - label: '<span style="color: #faad14;">&#x1F7E1; Medium</span>'
728
+ value: medium
729
+ - label: '<span style="color: #52c41a;">&#x1F7E2; Low</span>'
730
+ value: low
731
+
732
+ - title: Per-option Color
733
+ blocks:
734
+ - id: radio_per_option_color
735
+ type: RadioSelector
736
+ properties:
737
+ title: 'Selected dot + label in its option color'
738
+ options:
739
+ - label: Low
740
+ value: low
741
+ color: '#16a34a'
742
+ - label: Medium
743
+ value: medium
744
+ color: '#d97706'
745
+ - label: High
746
+ value: high
747
+ color: '#dc2626'
748
+ - title: Data driven (valueKey)
749
+ blocks:
750
+ - id: data_radio_selector
751
+ type: RadioSelector
752
+ properties:
753
+ title: Notify by
754
+ data:
755
+ - { id: 1, name: Email }
756
+ - { id: 2, name: SMS }
757
+ - { id: 3, name: Push }
758
+ html: '{{ item.name }}'
759
+ valueKey: id
760
+ - title: Columns
761
+ blocks:
762
+ - id: radio_columns_two
763
+ type: RadioSelector
764
+ properties:
765
+ title: Two columns
766
+ columns: 2
767
+ options:
768
+ - Weekday mornings
769
+ - Weekday afternoons
770
+ - Weekday evenings
771
+ - Weekend mornings
772
+ - Weekend afternoons
773
+ - Weekend evenings
774
+ - id: radio_columns_responsive
775
+ type: RadioSelector
776
+ properties:
777
+ title: One column below md, three from md up
778
+ columns:
779
+ xs: 1
780
+ md: 3
781
+ options:
782
+ - Email
783
+ - SMS
784
+ - Push notification
785
+ - Webhook
786
+ - In-app message
787
+ - Weekly digest
788
+ - id: radio_columns_gutter
789
+ type: RadioSelector
790
+ properties:
791
+ title: Wider gutter
792
+ columns: 2
793
+ gutter: [24, 12]
794
+ options:
795
+ - Read only
796
+ - Read and write
797
+ - Administer
798
+ - No access
799
+ - id: radio_columns_per_option_color
800
+ type: RadioSelector
801
+ properties:
802
+ title: Coloured options in a grid
803
+ columns: 2
804
+ options:
805
+ - label: Low
806
+ value: low
807
+ color: '#16a34a'
808
+ - label: Medium
809
+ value: medium
810
+ color: '#d97706'
811
+ - label: High
812
+ value: high
813
+ color: '#dc2626'
814
+ - label: Critical
815
+ value: critical
816
+ color: '#7e22ce'