@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,725 @@
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 String Options
16
+ blocks:
17
+ - id: basic_strings
18
+ type: SegmentedSelector
19
+ properties:
20
+ title: View
21
+ options:
22
+ - Daily
23
+ - Weekly
24
+ - Monthly
25
+ - id: basic_numbers
26
+ type: SegmentedSelector
27
+ properties:
28
+ title: Rating
29
+ options:
30
+ - '1'
31
+ - '2'
32
+ - '3'
33
+ - '4'
34
+ - '5'
35
+ - id: basic_two
36
+ type: SegmentedSelector
37
+ properties:
38
+ title: Toggle
39
+ options:
40
+ - 'Yes'
41
+ - 'No'
42
+
43
+ - title: Label-Value Options
44
+ blocks:
45
+ - id: label_value_basic
46
+ type: SegmentedSelector
47
+ properties:
48
+ title: Status Filter
49
+ options:
50
+ - label: All
51
+ value: all
52
+ - label: Active
53
+ value: active
54
+ - label: Inactive
55
+ value: inactive
56
+ - label: Archived
57
+ value: archived
58
+ - id: label_value_roles
59
+ type: SegmentedSelector
60
+ properties:
61
+ title: User Role
62
+ options:
63
+ - label: Admin
64
+ value: admin
65
+ - label: Editor
66
+ value: editor
67
+ - label: Viewer
68
+ value: viewer
69
+ - id: label_value_many
70
+ type: SegmentedSelector
71
+ properties:
72
+ title: Time Range
73
+ options:
74
+ - label: 1H
75
+ value: 1h
76
+ - label: 6H
77
+ value: 6h
78
+ - label: 1D
79
+ value: 1d
80
+ - label: 1W
81
+ value: 1w
82
+ - label: 1M
83
+ value: 1m
84
+ - label: 1Y
85
+ value: 1y
86
+
87
+ - title: Sizes
88
+ blocks:
89
+ - id: size_small
90
+ type: SegmentedSelector
91
+ properties:
92
+ title: Small
93
+ size: small
94
+ options:
95
+ - S
96
+ - M
97
+ - L
98
+ - XL
99
+ - id: size_default
100
+ type: SegmentedSelector
101
+ properties:
102
+ title: Default
103
+ options:
104
+ - S
105
+ - M
106
+ - L
107
+ - XL
108
+ - id: size_large
109
+ type: SegmentedSelector
110
+ properties:
111
+ title: Large
112
+ size: large
113
+ options:
114
+ - S
115
+ - M
116
+ - L
117
+ - XL
118
+
119
+ - title: Size Comparison with Label-Value
120
+ blocks:
121
+ - id: size_small_lv
122
+ type: SegmentedSelector
123
+ properties:
124
+ title: Small Priority
125
+ size: small
126
+ options:
127
+ - label: Low
128
+ value: low
129
+ - label: Medium
130
+ value: medium
131
+ - label: High
132
+ value: high
133
+ - label: Critical
134
+ value: critical
135
+ - id: size_default_lv
136
+ type: SegmentedSelector
137
+ properties:
138
+ title: Default Priority
139
+ options:
140
+ - label: Low
141
+ value: low
142
+ - label: Medium
143
+ value: medium
144
+ - label: High
145
+ value: high
146
+ - label: Critical
147
+ value: critical
148
+ - id: size_large_lv
149
+ type: SegmentedSelector
150
+ properties:
151
+ title: Large Priority
152
+ size: large
153
+ options:
154
+ - label: Low
155
+ value: low
156
+ - label: Medium
157
+ value: medium
158
+ - label: High
159
+ value: high
160
+ - label: Critical
161
+ value: critical
162
+
163
+ - title: Shape and Block Mode
164
+ blocks:
165
+ - id: shape_default
166
+ type: SegmentedSelector
167
+ properties:
168
+ title: Default Shape
169
+ shape: default
170
+ options:
171
+ - label: List
172
+ value: list
173
+ - label: Grid
174
+ value: grid
175
+ - label: Board
176
+ value: board
177
+ - id: shape_round
178
+ type: SegmentedSelector
179
+ properties:
180
+ title: Round Shape
181
+ shape: round
182
+ options:
183
+ - label: List
184
+ value: list
185
+ - label: Grid
186
+ value: grid
187
+ - label: Board
188
+ value: board
189
+ - id: block_segmented
190
+ type: SegmentedSelector
191
+ properties:
192
+ title: Full Width
193
+ block: true
194
+ options:
195
+ - label: List
196
+ value: list
197
+ - label: Grid
198
+ value: grid
199
+ - label: Board
200
+ value: board
201
+ - id: block_round
202
+ type: SegmentedSelector
203
+ properties:
204
+ title: Full Width Round
205
+ block: true
206
+ shape: round
207
+ options:
208
+ - label: Newest
209
+ value: newest
210
+ - label: Popular
211
+ value: popular
212
+ - label: Trending
213
+ value: trending
214
+ - id: block_round_large
215
+ type: SegmentedSelector
216
+ properties:
217
+ title: Full Width Round Large
218
+ block: true
219
+ shape: round
220
+ size: large
221
+ options:
222
+ - label: All
223
+ value: all
224
+ - label: Images
225
+ value: images
226
+ - label: Videos
227
+ value: videos
228
+ - label: Documents
229
+ value: documents
230
+
231
+ - title: With Icons
232
+ blocks:
233
+ - id: icon_view_mode
234
+ type: SegmentedSelector
235
+ properties:
236
+ title: View Mode
237
+ options:
238
+ - label: List
239
+ value: list
240
+ icon: AiOutlineUnorderedList
241
+ - label: Grid
242
+ value: grid
243
+ icon: AiOutlineAppstore
244
+ - label: Calendar
245
+ value: calendar
246
+ icon: AiOutlineCalendar
247
+ - id: icon_small
248
+ type: SegmentedSelector
249
+ properties:
250
+ title: Small Icons
251
+ size: small
252
+ options:
253
+ - label: Map
254
+ value: map
255
+ icon: AiOutlineEnvironment
256
+ - label: Satellite
257
+ value: satellite
258
+ icon: AiOutlineGlobal
259
+ - label: Terrain
260
+ value: terrain
261
+ icon: AiOutlineBlock
262
+ - id: icon_block
263
+ type: SegmentedSelector
264
+ properties:
265
+ title: Full Width with Icons
266
+ block: true
267
+ options:
268
+ - label: Home
269
+ value: home
270
+ icon: AiOutlineHome
271
+ - label: Search
272
+ value: search
273
+ icon: AiOutlineSearch
274
+ - label: Favorites
275
+ value: favorites
276
+ icon: AiOutlineHeart
277
+ - label: Profile
278
+ value: profile
279
+ icon: AiOutlineUser
280
+ - id: icon_round
281
+ type: SegmentedSelector
282
+ properties:
283
+ title: Round with Icons
284
+ shape: round
285
+ options:
286
+ - label: Code
287
+ value: code
288
+ icon: AiOutlineCode
289
+ - label: Preview
290
+ value: preview
291
+ icon: AiOutlineEye
292
+ - label: Split
293
+ value: split
294
+ icon: AiOutlineColumnWidth
295
+
296
+ - title: Vertical Layout
297
+ blocks:
298
+ - id: vertical_basic
299
+ type: SegmentedSelector
300
+ properties:
301
+ title: Vertical
302
+ vertical: true
303
+ options:
304
+ - label: Overview
305
+ value: overview
306
+ - label: Details
307
+ value: details
308
+ - label: History
309
+ value: history
310
+ - id: vertical_icons
311
+ type: SegmentedSelector
312
+ properties:
313
+ title: Vertical with Icons
314
+ vertical: true
315
+ options:
316
+ - label: Dashboard
317
+ value: dashboard
318
+ icon: AiOutlineDashboard
319
+ - label: Analytics
320
+ value: analytics
321
+ icon: AiOutlineBarChart
322
+ - label: Reports
323
+ value: reports
324
+ icon: AiOutlineFileText
325
+ - label: Settings
326
+ value: settings
327
+ icon: AiOutlineSetting
328
+ - id: vertical_large
329
+ type: SegmentedSelector
330
+ properties:
331
+ title: Large Vertical
332
+ vertical: true
333
+ size: large
334
+ options:
335
+ - Tab 1
336
+ - Tab 2
337
+ - Tab 3
338
+
339
+ - title: Disabled
340
+ blocks:
341
+ - id: disabled_all
342
+ type: SegmentedSelector
343
+ properties:
344
+ title: Fully Disabled
345
+ disabled: true
346
+ options:
347
+ - Option A
348
+ - Option B
349
+ - Option C
350
+ - id: disabled_multiple
351
+ type: SegmentedSelector
352
+ properties:
353
+ title: Multiple Disabled Options
354
+ options:
355
+ - label: Free
356
+ value: free
357
+ - label: Basic
358
+ value: basic
359
+ - label: Pro (Coming Soon)
360
+ value: pro
361
+ disabled: true
362
+ - label: Enterprise (Coming Soon)
363
+ value: enterprise
364
+ disabled: true
365
+ - id: disabled_icons
366
+ type: SegmentedSelector
367
+ properties:
368
+ title: Disabled with Icons
369
+ disabled: true
370
+ options:
371
+ - label: Edit
372
+ value: edit
373
+ icon: AiOutlineEdit
374
+ - label: View
375
+ value: view
376
+ icon: AiOutlineEye
377
+ - label: Delete
378
+ value: delete
379
+ icon: AiOutlineDelete
380
+
381
+ - title: Label Options
382
+ blocks:
383
+ - id: label_default
384
+ type: SegmentedSelector
385
+ properties:
386
+ title: Default Label
387
+ options:
388
+ - Alpha
389
+ - Beta
390
+ - Gamma
391
+ - id: label_extra
392
+ type: SegmentedSelector
393
+ properties:
394
+ title: With Extra Text
395
+ label:
396
+ extra: Select the deployment environment
397
+ options:
398
+ - label: Dev
399
+ value: dev
400
+ - label: Staging
401
+ value: staging
402
+ - label: Prod
403
+ value: prod
404
+ - id: label_inline
405
+ type: SegmentedSelector
406
+ properties:
407
+ title: Inline Label
408
+ label:
409
+ inline: true
410
+ span: 6
411
+ options:
412
+ - label: Light
413
+ value: light
414
+ - label: Dark
415
+ value: dark
416
+ - label: Auto
417
+ value: auto
418
+ - id: label_inline_right
419
+ type: SegmentedSelector
420
+ properties:
421
+ title: Inline Right
422
+ label:
423
+ inline: true
424
+ span: 6
425
+ align: right
426
+ options:
427
+ - label: Light
428
+ value: light
429
+ - label: Dark
430
+ value: dark
431
+ - label: Auto
432
+ value: auto
433
+ - id: no_label_segmented
434
+ type: SegmentedSelector
435
+ properties:
436
+ label:
437
+ disabled: true
438
+ options:
439
+ - label: Day
440
+ value: day
441
+ - label: Week
442
+ value: week
443
+ - label: Month
444
+ value: month
445
+ - label: Year
446
+ value: year
447
+
448
+ - title: Style and Class Overrides
449
+ blocks:
450
+ - id: style_background
451
+ type: SegmentedSelector
452
+ properties:
453
+ title: Custom Background
454
+ options:
455
+ - label: Tab A
456
+ value: a
457
+ - label: Tab B
458
+ value: b
459
+ - label: Tab C
460
+ value: c
461
+ style:
462
+ .element:
463
+ borderRadius: 12
464
+ - id: style_border
465
+ type: SegmentedSelector
466
+ properties:
467
+ title: Custom Border
468
+ options:
469
+ - label: Left
470
+ value: left
471
+ - label: Center
472
+ value: center
473
+ - label: Right
474
+ value: right
475
+ style:
476
+ .element:
477
+ border: '2px solid #91caff'
478
+ borderRadius: 8
479
+ - id: class_shadow
480
+ type: SegmentedSelector
481
+ class: shadow-md
482
+ properties:
483
+ title: With Shadow
484
+ options:
485
+ - label: Recent
486
+ value: recent
487
+ - label: Popular
488
+ value: popular
489
+ - label: Featured
490
+ value: featured
491
+
492
+ - title: Theme Token Overrides
493
+ blocks:
494
+ - id: theme_dark_track
495
+ type: SegmentedSelector
496
+ properties:
497
+ title: Dark Track
498
+ options:
499
+ - label: Overview
500
+ value: overview
501
+ - label: Details
502
+ value: details
503
+ - label: Logs
504
+ value: logs
505
+ theme:
506
+ trackBg: '#1f1f1f'
507
+ itemColor: '#ffffffa6'
508
+ itemSelectedBg: '#177ddc'
509
+ itemSelectedColor: '#ffffff'
510
+ itemHoverColor: '#ffffffd9'
511
+ - id: theme_green
512
+ type: SegmentedSelector
513
+ properties:
514
+ title: Green Theme
515
+ options:
516
+ - label: Approved
517
+ value: approved
518
+ - label: Pending
519
+ value: pending
520
+ - label: Rejected
521
+ value: rejected
522
+ theme:
523
+ itemSelectedBg: '#52c41a'
524
+ itemSelectedColor: '#ffffff'
525
+ itemHoverBg: '#b7eb8f80'
526
+ - id: theme_purple
527
+ type: SegmentedSelector
528
+ properties:
529
+ title: Purple Theme
530
+ options:
531
+ - label: Basic
532
+ value: basic
533
+ - label: Premium
534
+ value: premium
535
+ - label: Enterprise
536
+ value: enterprise
537
+ theme:
538
+ itemSelectedBg: '#722ed1'
539
+ itemSelectedColor: '#ffffff'
540
+ - id: theme_round_dark
541
+ type: SegmentedSelector
542
+ properties:
543
+ title: Round Dark Pill
544
+ shape: round
545
+ size: large
546
+ options:
547
+ - label: Light
548
+ value: light
549
+ - label: Dark
550
+ value: dark
551
+ - label: System
552
+ value: system
553
+ theme:
554
+ trackBg: '#262626'
555
+ itemColor: '#ffffffa6'
556
+ itemSelectedBg: '#434343'
557
+ itemSelectedColor: '#ffffff'
558
+ itemHoverColor: '#ffffffd9'
559
+ borderRadius: 40
560
+ borderRadiusLG: 40
561
+ - id: theme_block_gradient
562
+ type: SegmentedSelector
563
+ properties:
564
+ title: Full Width Themed
565
+ block: true
566
+ options:
567
+ - label: Dashboard
568
+ value: dashboard
569
+ - label: Projects
570
+ value: projects
571
+ - label: Tasks
572
+ value: tasks
573
+ - label: Calendar
574
+ value: calendar
575
+ theme:
576
+ itemSelectedBg: '#2f54eb'
577
+ itemSelectedColor: '#ffffff'
578
+ trackPadding: 4
579
+
580
+ - title: SegmentedSelector in Dashboard View
581
+ blocks:
582
+ - id: applied2_dashboard_card
583
+ type: Card
584
+ properties:
585
+ title: Sales Dashboard
586
+ blocks:
587
+ - id: applied2_dashboard_view_toggle
588
+ type: SegmentedSelector
589
+ properties:
590
+ title: View
591
+ block: true
592
+ size: large
593
+ label:
594
+ disabled: true
595
+ options:
596
+ - label: Overview
597
+ value: overview
598
+ icon: AiOutlineDashboard
599
+ - label: Charts
600
+ value: charts
601
+ icon: AiOutlineBarChart
602
+ - label: Table
603
+ value: table
604
+ icon: AiOutlineTable
605
+ events:
606
+ onChange:
607
+ - id: view_changed_action
608
+ type: SetState
609
+ params:
610
+ applied2_dashboard_view:
611
+ _state: applied2_dashboard_view_toggle
612
+ - id: applied2_dashboard_date_range
613
+ type: DateRangeSelector
614
+ properties:
615
+ title: Date Range
616
+ placeholder:
617
+ - From
618
+ - To
619
+ format: DD MMM YYYY
620
+ label:
621
+ disabled: true
622
+ - id: applied2_dashboard_refresh_btn
623
+ type: Button
624
+ properties:
625
+ title: Refresh Data
626
+ icon: AiOutlineReload
627
+ type: primary
628
+ events:
629
+ onClick:
630
+ - id: refresh_action
631
+ type: DisplayMessage
632
+ params:
633
+ content: Dashboard data refreshed.
634
+ duration: 2
635
+
636
+ - title: SegmentedSelector in Settings Page
637
+ blocks:
638
+ - id: applied3_settings_card
639
+ type: Card
640
+ properties:
641
+ title: Application Settings
642
+ blocks:
643
+ - id: applied3_theme_selector
644
+ type: SegmentedSelector
645
+ properties:
646
+ title: Theme
647
+ block: true
648
+ options:
649
+ - label: Light
650
+ value: light
651
+ icon: AiOutlineBulb
652
+ - label: Dark
653
+ value: dark
654
+ icon: AiOutlineEyeInvisible
655
+ - label: System
656
+ value: system
657
+ icon: AiOutlineLaptop
658
+ events:
659
+ onChange:
660
+ - id: theme_changed_action
661
+ type: SetState
662
+ params:
663
+ applied3_theme:
664
+ _state: applied3_theme_selector
665
+ - id: applied3_language_selector
666
+ type: SegmentedSelector
667
+ properties:
668
+ title: Language
669
+ options:
670
+ - label: English
671
+ value: en
672
+ - label: French
673
+ value: fr
674
+ - label: German
675
+ value: de
676
+ events:
677
+ onChange:
678
+ - id: language_changed_action
679
+ type: SetState
680
+ params:
681
+ applied3_language:
682
+ _state: applied3_language_selector
683
+ - id: applied3_notifications_toggle
684
+ type: SegmentedSelector
685
+ properties:
686
+ title: Notifications
687
+ options:
688
+ - label: All
689
+ value: all
690
+ - label: Important
691
+ value: important
692
+ - label: None
693
+ value: none
694
+ events:
695
+ onChange:
696
+ - id: notifications_changed_action
697
+ type: SetState
698
+ params:
699
+ applied3_notifications:
700
+ _state: applied3_notifications_toggle
701
+ - id: applied3_save_btn
702
+ type: Button
703
+ properties:
704
+ title: Save Settings
705
+ icon: AiOutlineSave
706
+ type: primary
707
+ events:
708
+ onClick:
709
+ - id: save_settings_action
710
+ type: DisplayMessage
711
+ params:
712
+ content: Settings saved successfully.
713
+ duration: 2
714
+ - title: Data driven (valueKey)
715
+ blocks:
716
+ - id: data_segmented_selector
717
+ type: SegmentedSelector
718
+ properties:
719
+ title: Range
720
+ data:
721
+ - { id: 1, name: Day }
722
+ - { id: 2, name: Week }
723
+ - { id: 3, name: Month }
724
+ html: '{{ item.name }}'
725
+ valueKey: id