@lowdefy/blocks-antd 5.6.0 → 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 (283) 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/gallery.yaml +781 -0
  36. package/dist/blocks/CheckboxSelector/tests/CheckboxSelector.e2e.yaml +272 -0
  37. package/dist/blocks/CheckboxSelector/tests.yaml +325 -0
  38. package/dist/blocks/CheckboxSwitch/gallery.yaml +457 -0
  39. package/dist/blocks/CheckboxSwitch/tests/CheckboxSwitch.e2e.yaml +126 -0
  40. package/dist/blocks/CheckboxSwitch/tests.yaml +96 -0
  41. package/dist/blocks/Collapse/gallery.yaml +1079 -0
  42. package/dist/blocks/Collapse/tests/Collapse.e2e.yaml +206 -0
  43. package/dist/blocks/Collapse/tests.yaml +265 -0
  44. package/dist/blocks/ColorSelector/gallery.yaml +807 -0
  45. package/dist/blocks/ColorSelector/tests/ColorSelector.e2e.yaml +77 -0
  46. package/dist/blocks/ColorSelector/tests.yaml +84 -0
  47. package/dist/blocks/ConfigProvider/gallery.yaml +1003 -0
  48. package/dist/blocks/ConfigProvider/tests.yaml +62 -0
  49. package/dist/blocks/ConfirmModal/gallery.yaml +1043 -0
  50. package/dist/blocks/ConfirmModal/tests/ConfirmModal.e2e.yaml +410 -0
  51. package/dist/blocks/ConfirmModal/tests.yaml +95 -0
  52. package/dist/blocks/Content/gallery.yaml +528 -0
  53. package/dist/blocks/Content/tests/Content.e2e.yaml +71 -0
  54. package/dist/blocks/Content/tests.yaml +42 -0
  55. package/dist/blocks/ControlledList/ControlledList.js +1 -1
  56. package/dist/blocks/ControlledList/gallery.yaml +481 -0
  57. package/dist/blocks/ControlledList/{style.module.css → style.css} +3 -3
  58. package/dist/blocks/ControlledList/tests/ControlledList.e2e.yaml +161 -0
  59. package/dist/blocks/ControlledList/tests.yaml +57 -0
  60. package/dist/blocks/DateRangeSelector/DateRangeSelector.js +7 -0
  61. package/dist/blocks/DateRangeSelector/e2e.js +28 -2
  62. package/dist/blocks/DateRangeSelector/gallery.yaml +858 -0
  63. package/dist/blocks/DateRangeSelector/meta.js +2 -0
  64. package/dist/blocks/DateRangeSelector/tests/DateRangeSelector.e2e.yaml +204 -0
  65. package/dist/blocks/DateRangeSelector/tests.yaml +129 -0
  66. package/dist/blocks/DateSelector/DateSelector.js +6 -0
  67. package/dist/blocks/DateSelector/e2e.js +28 -2
  68. package/dist/blocks/DateSelector/gallery.yaml +691 -0
  69. package/dist/blocks/DateSelector/meta.js +6 -0
  70. package/dist/blocks/DateSelector/tests/DateSelector.e2e.yaml +229 -0
  71. package/dist/blocks/DateSelector/tests.yaml +117 -0
  72. package/dist/blocks/DateTimeSelector/DateTimeSelector.js +7 -0
  73. package/dist/blocks/DateTimeSelector/e2e.js +26 -2
  74. package/dist/blocks/DateTimeSelector/gallery.yaml +770 -0
  75. package/dist/blocks/DateTimeSelector/meta.js +2 -0
  76. package/dist/blocks/DateTimeSelector/tests/DateTimeSelector.e2e.yaml +163 -0
  77. package/dist/blocks/DateTimeSelector/tests.yaml +140 -0
  78. package/dist/blocks/Descriptions/gallery.yaml +839 -0
  79. package/dist/blocks/Descriptions/tests/Descriptions.e2e.yaml +143 -0
  80. package/dist/blocks/Descriptions/tests.yaml +256 -0
  81. package/dist/blocks/Divider/gallery.yaml +375 -0
  82. package/dist/blocks/Divider/tests/Divider.e2e.yaml +107 -0
  83. package/dist/blocks/Divider/tests.yaml +58 -0
  84. package/dist/blocks/Drawer/gallery.yaml +1257 -0
  85. package/dist/blocks/Drawer/tests/Drawer.e2e.yaml +562 -0
  86. package/dist/blocks/Drawer/tests.yaml +80 -0
  87. package/dist/blocks/DropdownButton/gallery.yaml +606 -0
  88. package/dist/blocks/DropdownButton/tests/DropdownButton.e2e.yaml +243 -0
  89. package/dist/blocks/DropdownMenu/gallery.yaml +578 -0
  90. package/dist/blocks/DropdownMenu/tests/DropdownMenu.e2e.yaml +267 -0
  91. package/dist/blocks/Flex/gallery.yaml +1416 -0
  92. package/dist/blocks/Flex/tests/Flex.e2e.yaml +95 -0
  93. package/dist/blocks/Flex/tests.yaml +92 -0
  94. package/dist/blocks/FloatButton/gallery.yaml +518 -0
  95. package/dist/blocks/FloatButton/tests/FloatButton.e2e.yaml +73 -0
  96. package/dist/blocks/FloatButton/tests.yaml +59 -0
  97. package/dist/blocks/Footer/gallery.yaml +355 -0
  98. package/dist/blocks/Footer/tests/Footer.e2e.yaml +70 -0
  99. package/dist/blocks/Footer/tests.yaml +28 -0
  100. package/dist/blocks/Header/gallery.yaml +249 -0
  101. package/dist/blocks/Header/tests/Header.e2e.yaml +77 -0
  102. package/dist/blocks/Header/tests.yaml +36 -0
  103. package/dist/blocks/Label/Label.js +1 -1
  104. package/dist/blocks/Label/gallery.yaml +762 -0
  105. package/dist/blocks/Label/{style.module.css → style.css} +28 -28
  106. package/dist/blocks/Label/tests/Label.e2e.yaml +247 -0
  107. package/dist/blocks/Label/tests.yaml +212 -0
  108. package/dist/blocks/Layout/gallery.yaml +548 -0
  109. package/dist/blocks/Layout/tests/Layout.e2e.yaml +86 -0
  110. package/dist/blocks/Layout/tests.yaml +28 -0
  111. package/dist/blocks/ListSelector/gallery.yaml +223 -0
  112. package/dist/blocks/Masonry/gallery.yaml +989 -0
  113. package/dist/blocks/Masonry/tests/Masonry.e2e.yaml +128 -0
  114. package/dist/blocks/Masonry/tests.yaml +42 -0
  115. package/dist/blocks/MasonryList/gallery.yaml +224 -0
  116. package/dist/blocks/MasonryList/tests/MasonryList.e2e.yaml +55 -0
  117. package/dist/blocks/MasonryList/tests.yaml +42 -0
  118. package/dist/blocks/Menu/gallery.yaml +974 -0
  119. package/dist/blocks/Menu/tests/Menu.e2e.yaml +484 -0
  120. package/dist/blocks/Menu/tests.yaml +1053 -0
  121. package/dist/blocks/Message/gallery.yaml +860 -0
  122. package/dist/blocks/Message/tests/Message.e2e.yaml +246 -0
  123. package/dist/blocks/Message/tests.yaml +54 -0
  124. package/dist/blocks/MobileMenu/gallery.yaml +1172 -0
  125. package/dist/blocks/MobileMenu/tests/MobileMenu.e2e.yaml +314 -0
  126. package/dist/blocks/MobileMenu/tests.yaml +359 -0
  127. package/dist/blocks/Modal/gallery.yaml +1039 -0
  128. package/dist/blocks/Modal/tests/Modal.e2e.yaml +493 -0
  129. package/dist/blocks/Modal/tests.yaml +75 -0
  130. package/dist/blocks/MonthSelector/MonthSelector.js +6 -0
  131. package/dist/blocks/MonthSelector/e2e.js +26 -2
  132. package/dist/blocks/MonthSelector/gallery.yaml +687 -0
  133. package/dist/blocks/MonthSelector/meta.js +6 -0
  134. package/dist/blocks/MonthSelector/tests/MonthSelector.e2e.yaml +167 -0
  135. package/dist/blocks/MonthSelector/tests.yaml +124 -0
  136. package/dist/blocks/MultipleSelector/gallery.yaml +1245 -0
  137. package/dist/blocks/MultipleSelector/tests/MultipleSelector.e2e.yaml +445 -0
  138. package/dist/blocks/MultipleSelector/tests.yaml +201 -0
  139. package/dist/blocks/Notification/gallery.yaml +1376 -0
  140. package/dist/blocks/Notification/tests/Notification.e2e.yaml +362 -0
  141. package/dist/blocks/Notification/tests.yaml +97 -0
  142. package/dist/blocks/NumberInput/gallery.yaml +753 -0
  143. package/dist/blocks/NumberInput/tests/NumberInput.e2e.yaml +228 -0
  144. package/dist/blocks/NumberInput/tests.yaml +116 -0
  145. package/dist/blocks/PageHeaderMenu/PageHeaderMenu.js +1 -1
  146. package/dist/blocks/PageHeaderMenu/gallery.yaml +480 -0
  147. package/dist/blocks/PageHeaderMenu/tests/PageHeaderMenu.e2e.yaml +110 -0
  148. package/dist/blocks/PageHeaderMenu/tests.yaml +173 -0
  149. package/dist/blocks/PageSidebarLayout/PageSidebarLayout.js +10 -1
  150. package/dist/blocks/PageSidebarLayout/gallery.yaml +302 -0
  151. package/dist/blocks/PageSidebarLayout/meta.js +1 -0
  152. package/dist/blocks/PageSidebarLayout/tests/PageSidebarLayout.e2e.yaml +216 -0
  153. package/dist/blocks/PageSidebarLayout/tests.yaml +174 -0
  154. package/dist/blocks/PageSiderMenu/PageSiderMenu.js +1 -1
  155. package/dist/blocks/PageSiderMenu/gallery.yaml +516 -0
  156. package/dist/blocks/PageSiderMenu/tests/PageSiderMenu.e2e.yaml +175 -0
  157. package/dist/blocks/PageSiderMenu/tests.yaml +211 -0
  158. package/dist/blocks/Pagination/gallery.yaml +503 -0
  159. package/dist/blocks/Pagination/tests/Pagination.e2e.yaml +159 -0
  160. package/dist/blocks/Pagination/tests.yaml +80 -0
  161. package/dist/blocks/Paragraph/gallery.yaml +458 -0
  162. package/dist/blocks/Paragraph/tests/Paragraph.e2e.yaml +153 -0
  163. package/dist/blocks/Paragraph/tests.yaml +176 -0
  164. package/dist/blocks/ParagraphInput/gallery.yaml +1483 -0
  165. package/dist/blocks/ParagraphInput/tests/ParagraphInput.e2e.yaml +189 -0
  166. package/dist/blocks/ParagraphInput/tests.yaml +163 -0
  167. package/dist/blocks/PasswordInput/gallery.yaml +420 -0
  168. package/dist/blocks/PasswordInput/tests/PasswordInput.e2e.yaml +188 -0
  169. package/dist/blocks/PasswordInput/tests.yaml +78 -0
  170. package/dist/blocks/PhoneNumberInput/gallery.yaml +677 -0
  171. package/dist/blocks/PhoneNumberInput/tests/PhoneNumberInput.e2e.yaml +279 -0
  172. package/dist/blocks/PhoneNumberInput/tests.yaml +25 -0
  173. package/dist/blocks/Popover/gallery.yaml +1301 -0
  174. package/dist/blocks/Popover/tests/Popover.e2e.yaml +249 -0
  175. package/dist/blocks/Popover/tests.yaml +105 -0
  176. package/dist/blocks/Progress/gallery.yaml +772 -0
  177. package/dist/blocks/Progress/tests/Progress.e2e.yaml +167 -0
  178. package/dist/blocks/Progress/tests.yaml +114 -0
  179. package/dist/blocks/QRCode/gallery.yaml +492 -0
  180. package/dist/blocks/QRCode/tests/QRCode.e2e.yaml +66 -0
  181. package/dist/blocks/QRCode/tests.yaml +113 -0
  182. package/dist/blocks/RadioSelector/gallery.yaml +816 -0
  183. package/dist/blocks/RadioSelector/tests/RadioSelector.e2e.yaml +269 -0
  184. package/dist/blocks/RadioSelector/tests.yaml +339 -0
  185. package/dist/blocks/RatingSlider/gallery.yaml +627 -0
  186. package/dist/blocks/RatingSlider/tests/RatingSlider.e2e.yaml +188 -0
  187. package/dist/blocks/RatingSlider/tests.yaml +116 -0
  188. package/dist/blocks/Result/gallery.yaml +925 -0
  189. package/dist/blocks/Result/tests/Result.e2e.yaml +126 -0
  190. package/dist/blocks/Result/tests.yaml +75 -0
  191. package/dist/blocks/Search/Search.js +1 -1
  192. package/dist/blocks/Search/SearchModal.js +18 -9
  193. package/dist/blocks/Search/gallery.yaml +170 -0
  194. package/dist/blocks/Search/meta.js +2 -1
  195. package/dist/blocks/Search/{style.module.css → style.css} +19 -12
  196. package/dist/blocks/Search/tests/Search.e2e.yaml +125 -0
  197. package/dist/blocks/Search/useSearchIndex.js +24 -2
  198. package/dist/blocks/SegmentedSelector/gallery.yaml +725 -0
  199. package/dist/blocks/SegmentedSelector/tests/SegmentedSelector.e2e.yaml +115 -0
  200. package/dist/blocks/SegmentedSelector/tests.yaml +141 -0
  201. package/dist/blocks/Selector/gallery.yaml +1055 -0
  202. package/dist/blocks/Selector/tests/Selector.e2e.yaml +427 -0
  203. package/dist/blocks/Selector/tests.yaml +196 -0
  204. package/dist/blocks/Sider/gallery.yaml +994 -0
  205. package/dist/blocks/Sider/tests/Sider.e2e.yaml +162 -0
  206. package/dist/blocks/Sider/tests.yaml +20 -0
  207. package/dist/blocks/Slider/gallery.yaml +600 -0
  208. package/dist/blocks/Slider/tests/Slider.e2e.yaml +190 -0
  209. package/dist/blocks/Slider/tests.yaml +68 -0
  210. package/dist/blocks/Splitter/gallery.yaml +1511 -0
  211. package/dist/blocks/Splitter/tests/Splitter.e2e.yaml +114 -0
  212. package/dist/blocks/Splitter/tests.yaml +79 -0
  213. package/dist/blocks/Statistic/gallery.yaml +460 -0
  214. package/dist/blocks/Statistic/tests/Statistic.e2e.yaml +137 -0
  215. package/dist/blocks/Statistic/tests.yaml +77 -0
  216. package/dist/blocks/Steps/gallery.yaml +550 -0
  217. package/dist/blocks/Switch/gallery.yaml +502 -0
  218. package/dist/blocks/Switch/tests/Switch.e2e.yaml +132 -0
  219. package/dist/blocks/Switch/tests.yaml +87 -0
  220. package/dist/blocks/Tabs/gallery.yaml +1353 -0
  221. package/dist/blocks/Tabs/tests/Tabs.e2e.yaml +370 -0
  222. package/dist/blocks/Tabs/tests.yaml +349 -0
  223. package/dist/blocks/Tag/gallery.yaml +598 -0
  224. package/dist/blocks/Tag/tests/Tag.e2e.yaml +173 -0
  225. package/dist/blocks/Tag/tests.yaml +51 -0
  226. package/dist/blocks/TagMultipleSelector/TagMultipleSelector.js +53 -0
  227. package/dist/blocks/TagMultipleSelector/e2e.js +36 -0
  228. package/dist/blocks/TagMultipleSelector/gallery.yaml +70 -0
  229. package/dist/blocks/TagMultipleSelector/meta.js +91 -0
  230. package/dist/blocks/TagMultipleSelector/tests/TagMultipleSelector.e2e.yaml +93 -0
  231. package/dist/blocks/TagSelector/TagSelector.js +49 -0
  232. package/dist/blocks/TagSelector/e2e.js +36 -0
  233. package/dist/blocks/TagSelector/gallery.yaml +70 -0
  234. package/dist/blocks/TagSelector/meta.js +91 -0
  235. package/dist/blocks/TagSelector/tests/TagSelector.e2e.yaml +93 -0
  236. package/dist/blocks/TextArea/gallery.yaml +618 -0
  237. package/dist/blocks/TextArea/tests/TextArea.e2e.yaml +218 -0
  238. package/dist/blocks/TextArea/tests.yaml +100 -0
  239. package/dist/blocks/TextInput/gallery.yaml +560 -0
  240. package/dist/blocks/TextInput/tests/TextInput.e2e.yaml +287 -0
  241. package/dist/blocks/TextInput/tests.yaml +114 -0
  242. package/dist/blocks/TimelineList/gallery.yaml +431 -0
  243. package/dist/blocks/TimelineList/tests/TimelineList.e2e.yaml +244 -0
  244. package/dist/blocks/TimelineList/tests.yaml +251 -0
  245. package/dist/blocks/Title/gallery.yaml +483 -0
  246. package/dist/blocks/Title/tests/Title.e2e.yaml +180 -0
  247. package/dist/blocks/Title/tests.yaml +175 -0
  248. package/dist/blocks/TitleInput/gallery.yaml +1006 -0
  249. package/dist/blocks/TitleInput/tests/TitleInput.e2e.yaml +195 -0
  250. package/dist/blocks/TitleInput/tests.yaml +181 -0
  251. package/dist/blocks/Tooltip/gallery.yaml +1214 -0
  252. package/dist/blocks/Tooltip/tests/Tooltip.e2e.yaml +195 -0
  253. package/dist/blocks/Tooltip/tests.yaml +92 -0
  254. package/dist/blocks/Tour/gallery.yaml +2305 -0
  255. package/dist/blocks/Tour/tests/Tour.e2e.yaml +90 -0
  256. package/dist/blocks/Tour/tests.yaml +151 -0
  257. package/dist/blocks/TreeInput/gallery.yaml +78 -0
  258. package/dist/blocks/TreeInput/tests/TreeInput.e2e.yaml +139 -0
  259. package/dist/blocks/TreeInput/tests.yaml +140 -0
  260. package/dist/blocks/TreeMultipleSelector/gallery.yaml +67 -0
  261. package/dist/blocks/TreeSelector/gallery.yaml +81 -0
  262. package/dist/blocks/Watermark/gallery.yaml +479 -0
  263. package/dist/blocks/Watermark/tests/Watermark.e2e.yaml +62 -0
  264. package/dist/blocks/Watermark/tests.yaml +86 -0
  265. package/dist/blocks/WeekSelector/WeekSelector.js +6 -0
  266. package/dist/blocks/WeekSelector/e2e.js +26 -2
  267. package/dist/blocks/WeekSelector/gallery.yaml +589 -0
  268. package/dist/blocks/WeekSelector/meta.js +6 -0
  269. package/dist/blocks/WeekSelector/tests/WeekSelector.e2e.yaml +154 -0
  270. package/dist/blocks/WeekSelector/tests.yaml +122 -0
  271. package/dist/blocks.js +2 -0
  272. package/dist/disabledDate.js +91 -19
  273. package/dist/e2e.js +2 -0
  274. package/dist/getPresets.js +151 -0
  275. package/dist/getTagColor.js +44 -0
  276. package/dist/getTagSelectorOptions.js +30 -0
  277. package/dist/metas.js +2 -0
  278. package/dist/pickerPresetsStyle.css +26 -0
  279. package/dist/schemas/disabledDates.js +6 -2
  280. package/dist/schemas/index.js +1 -0
  281. package/dist/schemas/presets.js +111 -0
  282. package/dist/tagSelectorStyle.css +68 -0
  283. package/package.json +13 -13
@@ -0,0 +1,627 @@
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: Default
16
+ blocks:
17
+ - id: default_rating
18
+ type: RatingSlider
19
+ properties:
20
+ title: Satisfaction Rating
21
+
22
+ - title: Custom Ranges
23
+ blocks:
24
+ - id: range_0_5
25
+ type: RatingSlider
26
+ properties:
27
+ title: Rating (0-5)
28
+ min: 0
29
+ max: 5
30
+ - id: range_1_10
31
+ type: RatingSlider
32
+ properties:
33
+ title: Rating (1-10)
34
+ min: 1
35
+ max: 10
36
+ - id: range_0_100_step10
37
+ type: RatingSlider
38
+ properties:
39
+ title: Percentage (0-100, step 10)
40
+ min: 0
41
+ max: 100
42
+ step: 10
43
+ showDots: false
44
+ - id: range_negative
45
+ type: RatingSlider
46
+ properties:
47
+ title: Temperature (-5 to 5)
48
+ min: -5
49
+ max: 5
50
+
51
+ - title: Step Values
52
+ blocks:
53
+ - id: step_1
54
+ type: RatingSlider
55
+ properties:
56
+ title: Step 1 (default)
57
+ min: 0
58
+ max: 10
59
+ step: 1
60
+ - id: step_2
61
+ type: RatingSlider
62
+ properties:
63
+ title: Step 2
64
+ min: 0
65
+ max: 10
66
+ step: 2
67
+ - id: step_5
68
+ type: RatingSlider
69
+ properties:
70
+ title: Step 5
71
+ min: 0
72
+ max: 50
73
+ step: 5
74
+ - id: step_half
75
+ type: RatingSlider
76
+ properties:
77
+ title: Step 0.5
78
+ min: 0
79
+ max: 5
80
+ step: 0.5
81
+
82
+ - title: Marks and Dots
83
+ blocks:
84
+ - id: marks_and_dots
85
+ type: RatingSlider
86
+ properties:
87
+ title: Marks and Dots (defaults)
88
+ showMarks: true
89
+ showDots: true
90
+ - id: marks_only
91
+ type: RatingSlider
92
+ properties:
93
+ title: Marks Only (no dots)
94
+ showMarks: true
95
+ showDots: false
96
+ - id: dots_only
97
+ type: RatingSlider
98
+ properties:
99
+ title: Dots Only (no marks)
100
+ showMarks: false
101
+ showDots: true
102
+ - id: no_marks_no_dots
103
+ type: RatingSlider
104
+ properties:
105
+ title: No Marks, No Dots
106
+ showMarks: false
107
+ showDots: false
108
+ - id: marks_step_2
109
+ type: RatingSlider
110
+ properties:
111
+ title: Marks with Step 2
112
+ min: 0
113
+ max: 10
114
+ step: 2
115
+ showMarks: true
116
+ showDots: true
117
+
118
+ - title: Tooltip Modes
119
+ blocks:
120
+ - id: tooltip_onclick
121
+ type: RatingSlider
122
+ properties:
123
+ title: Tooltip on Click (default)
124
+ tooltipVisible: onClick
125
+ - id: tooltip_always
126
+ type: RatingSlider
127
+ properties:
128
+ title: Tooltip Always Visible
129
+ tooltipVisible: always
130
+ - id: tooltip_never
131
+ type: RatingSlider
132
+ properties:
133
+ title: Tooltip Never Visible
134
+ tooltipVisible: never
135
+
136
+ - title: N/A Option
137
+ blocks:
138
+ - id: na_default
139
+ type: RatingSlider
140
+ properties:
141
+ title: With N/A Option (default)
142
+ min: 0
143
+ max: 10
144
+ - id: na_disabled
145
+ type: RatingSlider
146
+ properties:
147
+ title: N/A Disabled
148
+ disableNotApplicable: true
149
+ min: 0
150
+ max: 10
151
+ - id: na_custom_label
152
+ type: RatingSlider
153
+ properties:
154
+ title: Custom N/A Label
155
+ notApplicableLabel: None
156
+ min: 0
157
+ max: 10
158
+ - id: na_skip_label
159
+ type: RatingSlider
160
+ properties:
161
+ title: N/A as "Skip"
162
+ notApplicableLabel: Skip
163
+ min: 1
164
+ max: 5
165
+
166
+ - title: Icons
167
+ blocks:
168
+ - id: icons_default
169
+ type: RatingSlider
170
+ properties:
171
+ title: Default Icons (Frown / Smile)
172
+ min: 0
173
+ max: 10
174
+ - id: icons_custom
175
+ type: RatingSlider
176
+ properties:
177
+ title: Custom Icons (Dislike / Like)
178
+ minIcon: AiOutlineDislike
179
+ maxIcon: AiOutlineLike
180
+ min: 0
181
+ max: 10
182
+ - id: icons_star
183
+ type: RatingSlider
184
+ properties:
185
+ title: Star Icons
186
+ minIcon: AiOutlineStar
187
+ maxIcon: AiFillStar
188
+ min: 1
189
+ max: 5
190
+ - id: icons_heart
191
+ type: RatingSlider
192
+ properties:
193
+ title: Heart Icons
194
+ minIcon: AiOutlineHeart
195
+ maxIcon: AiFillHeart
196
+ min: 0
197
+ max: 10
198
+ - id: icons_object_config
199
+ type: RatingSlider
200
+ properties:
201
+ title: Icon Object Config (colored)
202
+ minIcon:
203
+ name: AiOutlineArrowDown
204
+ color: '#ff4d4f'
205
+ maxIcon:
206
+ name: AiOutlineArrowUp
207
+ color: '#52c41a'
208
+ min: 0
209
+ max: 10
210
+
211
+ - title: Color
212
+ blocks:
213
+ - id: color_blue
214
+ type: RatingSlider
215
+ properties:
216
+ title: Blue (default primary)
217
+ color: '#1677ff'
218
+ min: 0
219
+ max: 10
220
+ - id: color_green
221
+ type: RatingSlider
222
+ properties:
223
+ title: Green
224
+ color: '#52c41a'
225
+ min: 0
226
+ max: 10
227
+ - id: color_orange
228
+ type: RatingSlider
229
+ properties:
230
+ title: Orange
231
+ color: '#fa8c16'
232
+ min: 0
233
+ max: 10
234
+ - id: color_red
235
+ type: RatingSlider
236
+ properties:
237
+ title: Red
238
+ color: '#ff4d4f'
239
+ min: 0
240
+ max: 10
241
+ - id: color_purple
242
+ type: RatingSlider
243
+ properties:
244
+ title: Purple
245
+ color: '#722ed1'
246
+ min: 0
247
+ max: 10
248
+
249
+ - title: Disabled State
250
+ blocks:
251
+ - id: disabled_default
252
+ type: RatingSlider
253
+ properties:
254
+ title: Disabled
255
+ disabled: true
256
+ - id: disabled_no_icons
257
+ type: RatingSlider
258
+ properties:
259
+ title: Disabled Without Icons
260
+ disabled: true
261
+ disableIcons: true
262
+ - id: disabled_no_na
263
+ type: RatingSlider
264
+ properties:
265
+ title: Disabled, No N/A
266
+ disabled: true
267
+ disableNotApplicable: true
268
+ - id: disabled_colored
269
+ type: RatingSlider
270
+ properties:
271
+ title: Disabled with Color
272
+ disabled: true
273
+ color: '#722ed1'
274
+
275
+ - title: AutoFocus
276
+ blocks:
277
+ - id: autofocus_enabled
278
+ type: RatingSlider
279
+ properties:
280
+ title: AutoFocus Enabled
281
+ autoFocus: true
282
+ min: 0
283
+ max: 5
284
+ - id: autofocus_disabled
285
+ type: RatingSlider
286
+ properties:
287
+ title: AutoFocus Disabled (default)
288
+ autoFocus: false
289
+ min: 0
290
+ max: 5
291
+
292
+ - title: Label Configurations
293
+ blocks:
294
+ - id: label_default
295
+ type: RatingSlider
296
+ properties:
297
+ title: Default Label
298
+ - id: label_with_extra
299
+ type: RatingSlider
300
+ properties:
301
+ title: Rating with Extra
302
+ label:
303
+ extra: Please rate your experience from 0 to 10.
304
+ - id: label_inline
305
+ type: RatingSlider
306
+ properties:
307
+ title: Inline Label
308
+ label:
309
+ inline: true
310
+ span: 6
311
+ - id: label_inline_right
312
+ type: RatingSlider
313
+ properties:
314
+ title: Inline Right-Aligned
315
+ label:
316
+ inline: true
317
+ span: 6
318
+ align: right
319
+ - id: label_no_colon
320
+ type: RatingSlider
321
+ properties:
322
+ title: No Colon
323
+ label:
324
+ colon: false
325
+
326
+ - title: No Icons, No N/A (Minimal)
327
+ blocks:
328
+ - id: minimal_slider
329
+ type: RatingSlider
330
+ properties:
331
+ title: Minimal Slider
332
+ disableIcons: true
333
+ disableNotApplicable: true
334
+ min: 0
335
+ max: 10
336
+ - id: minimal_no_marks
337
+ type: RatingSlider
338
+ properties:
339
+ title: Minimal No Marks
340
+ disableIcons: true
341
+ disableNotApplicable: true
342
+ showMarks: false
343
+ showDots: false
344
+ min: 0
345
+ max: 10
346
+ - id: minimal_no_label
347
+ type: RatingSlider
348
+ properties:
349
+ label:
350
+ disabled: true
351
+ disableIcons: true
352
+ disableNotApplicable: true
353
+ min: 0
354
+ max: 5
355
+
356
+ - title: Combined Features
357
+ blocks:
358
+ - id: combo_survey_satisfaction
359
+ type: RatingSlider
360
+ properties:
361
+ title: Customer Satisfaction
362
+ min: 1
363
+ max: 5
364
+ step: 1
365
+ color: '#52c41a'
366
+ minIcon: AiOutlineFrown
367
+ maxIcon: AiOutlineSmile
368
+ tooltipVisible: always
369
+ showMarks: true
370
+ showDots: true
371
+ label:
372
+ extra: Rate your overall satisfaction
373
+ - id: combo_nps
374
+ type: RatingSlider
375
+ properties:
376
+ title: Net Promoter Score
377
+ min: 0
378
+ max: 10
379
+ step: 1
380
+ color: '#1677ff'
381
+ minIcon: AiOutlineDislike
382
+ maxIcon: AiOutlineLike
383
+ tooltipVisible: onClick
384
+ showMarks: true
385
+ showDots: true
386
+ notApplicableLabel: Prefer not to say
387
+ label:
388
+ extra: How likely are you to recommend us?
389
+ - id: combo_temperature
390
+ type: RatingSlider
391
+ properties:
392
+ title: Temperature Preference
393
+ min: 0
394
+ max: 100
395
+ step: 5
396
+ color: '#fa8c16'
397
+ disableIcons: true
398
+ disableNotApplicable: true
399
+ tooltipVisible: always
400
+ showMarks: true
401
+ showDots: false
402
+ label:
403
+ extra: Set your preferred temperature (0-100)
404
+ - id: combo_difficulty
405
+ type: RatingSlider
406
+ properties:
407
+ title: Difficulty Level
408
+ min: 1
409
+ max: 5
410
+ step: 1
411
+ color: '#ff4d4f'
412
+ minIcon:
413
+ name: AiOutlineSmile
414
+ color: '#52c41a'
415
+ maxIcon:
416
+ name: AiOutlineWarning
417
+ color: '#ff4d4f'
418
+ disableNotApplicable: true
419
+ showMarks: true
420
+ showDots: true
421
+ tooltipVisible: onClick
422
+
423
+ - title: Style Overrides
424
+ blocks:
425
+ - id: style_background
426
+ type: RatingSlider
427
+ properties:
428
+ title: Custom Background
429
+ min: 0
430
+ max: 10
431
+ style:
432
+ .element:
433
+ padding: 8
434
+ borderRadius: 8
435
+ - id: style_wide
436
+ type: RatingSlider
437
+ properties:
438
+ title: Full Width with Padding
439
+ min: 0
440
+ max: 10
441
+ disableNotApplicable: true
442
+ style:
443
+ .element:
444
+ paddingLeft: 16
445
+ paddingRight: 16
446
+
447
+ - title: Class Overrides
448
+ blocks:
449
+ - id: class_rounded
450
+ type: RatingSlider
451
+ class: rounded-lg shadow-sm p-2 border border-border
452
+ properties:
453
+ title: Rounded Card Style
454
+ min: 0
455
+ max: 10
456
+ - id: class_gradient_bg
457
+ type: RatingSlider
458
+ class: bg-gradient-to-r from-primary/10 to-primary/5 p-3 rounded-md
459
+ properties:
460
+ title: Gradient Background
461
+ min: 0
462
+ max: 10
463
+ color: '#722ed1'
464
+
465
+ - title: Theme Token Overrides
466
+ blocks:
467
+ - id: theme_large_handle
468
+ type: RatingSlider
469
+ properties:
470
+ title: Large Handle
471
+ min: 0
472
+ max: 10
473
+ theme:
474
+ handleSize: 14
475
+ handleSizeHover: 16
476
+ - id: theme_thick_rail
477
+ type: RatingSlider
478
+ properties:
479
+ title: Thick Rail
480
+ min: 0
481
+ max: 10
482
+ theme:
483
+ railSize: 8
484
+ - id: theme_custom_colors
485
+ type: RatingSlider
486
+ properties:
487
+ title: Custom Track and Rail Colors
488
+ min: 0
489
+ max: 10
490
+ theme:
491
+ trackBg: '#b7eb8f'
492
+ trackHoverBg: '#73d13d'
493
+ handleColor: '#52c41a'
494
+ handleActiveColor: '#389e0d'
495
+ - id: theme_large_dots
496
+ type: RatingSlider
497
+ properties:
498
+ title: Large Dots
499
+ min: 0
500
+ max: 10
501
+ showDots: true
502
+ theme:
503
+ dotSize: 12
504
+ - id: theme_purple_slider
505
+ type: RatingSlider
506
+ properties:
507
+ title: Purple Theme
508
+ min: 0
509
+ max: 10
510
+ color: '#722ed1'
511
+ theme:
512
+ trackHoverBg: '#b37feb'
513
+ handleColor: '#722ed1'
514
+ handleActiveColor: '#531dab'
515
+ dotBorderColor: '#d3adf7'
516
+ dotActiveBorderColor: '#722ed1'
517
+
518
+ - title: RatingSlider in Product Review
519
+ blocks:
520
+ - id: applied_product_review_card
521
+ type: Card
522
+ properties:
523
+ title: Write a Product Review
524
+ blocks:
525
+ - id: applied_product_review_rating
526
+ type: RatingSlider
527
+ required: true
528
+ properties:
529
+ title: Product Rating
530
+ min: 1
531
+ max: 5
532
+ step: 1
533
+ color: '#fa8c16'
534
+ minIcon: AiOutlineStar
535
+ maxIcon: AiFillStar
536
+ showMarks: true
537
+ showDots: true
538
+ disableNotApplicable: true
539
+ label:
540
+ extra: How would you rate this product?
541
+ events:
542
+ onChange:
543
+ - id: applied_product_review_set_rating
544
+ type: SetState
545
+ params:
546
+ productRating:
547
+ _event: value
548
+ - id: applied_product_review_text
549
+ type: TextArea
550
+ properties:
551
+ title: Your Review
552
+ label:
553
+ extra: Tell us more about your experience.
554
+ rows: 4
555
+ - id: applied_product_review_submit
556
+ type: Button
557
+ properties:
558
+ title: Submit Review
559
+ icon: AiOutlineSend
560
+ type: primary
561
+ block: true
562
+ events:
563
+ onClick:
564
+ - id: applied_product_review_validate
565
+ type: Validate
566
+ params: applied_product_review_rating
567
+ - id: applied_product_review_message
568
+ type: DisplayMessage
569
+ params:
570
+ content: Thank you for your review!
571
+ status: success
572
+
573
+ - title: RatingSlider in Survey Form
574
+ blocks:
575
+ - id: applied_survey_card
576
+ type: Card
577
+ properties:
578
+ title: Customer Feedback Survey
579
+ blocks:
580
+ - id: applied_survey_service_rating
581
+ type: RatingSlider
582
+ properties:
583
+ title: Service Quality
584
+ min: 1
585
+ max: 10
586
+ color: '#1677ff'
587
+ minIcon: AiOutlineFrown
588
+ maxIcon: AiOutlineSmile
589
+ showMarks: true
590
+ label:
591
+ extra: How would you rate the service you received?
592
+ - id: applied_survey_quality_rating
593
+ type: RatingSlider
594
+ properties:
595
+ title: Product Quality
596
+ min: 1
597
+ max: 10
598
+ color: '#52c41a'
599
+ minIcon: AiOutlineDislike
600
+ maxIcon: AiOutlineLike
601
+ showMarks: true
602
+ label:
603
+ extra: How would you rate the quality of our products?
604
+ - id: applied_survey_value_rating
605
+ type: RatingSlider
606
+ properties:
607
+ title: Value for Money
608
+ min: 1
609
+ max: 10
610
+ color: '#fa8c16'
611
+ showMarks: true
612
+ label:
613
+ extra: How would you rate the value for money?
614
+ - id: applied_survey_submit
615
+ type: Button
616
+ properties:
617
+ title: Submit Survey
618
+ icon: AiOutlineCheck
619
+ type: primary
620
+ block: true
621
+ events:
622
+ onClick:
623
+ - id: applied_survey_message
624
+ type: DisplayMessage
625
+ params:
626
+ content: Survey submitted successfully. Thank you for your feedback!
627
+ status: success