@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,807 @@
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: Setting Initial Values
16
+ blocks:
17
+ - id: init_desc
18
+ type: Markdown
19
+ properties:
20
+ content: 'ColorSelector is externally controlled — use an `onMount` event with `SetState` to set an initial color. Without it, the picker starts empty. The other examples on this page are initialized via the page `onInit` event.'
21
+ - id: init_empty
22
+ type: ColorSelector
23
+ properties:
24
+ title: Empty Picker
25
+ showText: true
26
+ - id: init_with_value
27
+ type: ColorSelector
28
+ properties:
29
+ title: Initialized Picker
30
+ showText: true
31
+ events:
32
+ onMount:
33
+ - id: set_init_with_value
34
+ type: SetState
35
+ params:
36
+ init_with_value: '#1677ff'
37
+
38
+ - title: Sizes
39
+ blocks:
40
+ - id: size_small
41
+ type: ColorSelector
42
+ layout:
43
+ flex: 0 0 auto
44
+ properties:
45
+ size: small
46
+ - id: size_middle
47
+ type: ColorSelector
48
+ layout:
49
+ flex: 0 0 auto
50
+ properties:
51
+ size: middle
52
+ - id: size_large
53
+ type: ColorSelector
54
+ layout:
55
+ flex: 0 0 auto
56
+ properties:
57
+ size: large
58
+
59
+ - title: Sizes with Text
60
+ blocks:
61
+ - id: size_text_small
62
+ type: ColorSelector
63
+ layout:
64
+ flex: 0 0 auto
65
+ properties:
66
+ size: small
67
+ showText: true
68
+ - id: size_text_middle
69
+ type: ColorSelector
70
+ layout:
71
+ flex: 0 0 auto
72
+ properties:
73
+ size: middle
74
+ showText: true
75
+ - id: size_text_large
76
+ type: ColorSelector
77
+ layout:
78
+ flex: 0 0 auto
79
+ properties:
80
+ size: large
81
+ showText: true
82
+
83
+ - title: Color Formats
84
+ blocks:
85
+ - id: format_hex_label
86
+ type: Markdown
87
+ properties:
88
+ content: '**Hex format:**'
89
+ - id: format_hex
90
+ type: ColorSelector
91
+ layout:
92
+ flex: 0 0 auto
93
+ properties:
94
+ format: hex
95
+ showText: true
96
+ - id: format_rgb_label
97
+ type: Markdown
98
+ properties:
99
+ content: '**RGB format:**'
100
+ - id: format_rgb
101
+ type: ColorSelector
102
+ layout:
103
+ flex: 0 0 auto
104
+ properties:
105
+ format: rgb
106
+ showText: true
107
+ - id: format_hsb_label
108
+ type: Markdown
109
+ properties:
110
+ content: '**HSB format:**'
111
+ - id: format_hsb
112
+ type: ColorSelector
113
+ layout:
114
+ flex: 0 0 auto
115
+ properties:
116
+ format: hsb
117
+ showText: true
118
+
119
+ - title: Allow Clear
120
+ blocks:
121
+ - id: allow_clear_red
122
+ type: ColorSelector
123
+ layout:
124
+ flex: 0 0 auto
125
+ properties:
126
+ allowClear: true
127
+ showText: true
128
+ - id: allow_clear_blue
129
+ type: ColorSelector
130
+ layout:
131
+ flex: 0 0 auto
132
+ properties:
133
+ allowClear: true
134
+ showText: true
135
+ - id: allow_clear_green
136
+ type: ColorSelector
137
+ layout:
138
+ flex: 0 0 auto
139
+ properties:
140
+ allowClear: true
141
+ showText: true
142
+
143
+ - title: Toggle Properties
144
+ blocks:
145
+ - id: toggle_arrow_hidden
146
+ type: ColorSelector
147
+ layout:
148
+ flex: 0 0 auto
149
+ properties:
150
+ arrow: false
151
+ showText: true
152
+ - id: toggle_alpha_disabled
153
+ type: ColorSelector
154
+ layout:
155
+ flex: 0 0 auto
156
+ properties:
157
+ disabledAlpha: true
158
+ showText: true
159
+ - id: toggle_format_disabled
160
+ type: ColorSelector
161
+ layout:
162
+ flex: 0 0 auto
163
+ properties:
164
+ disabledFormat: true
165
+ showText: true
166
+ - id: toggle_all_disabled
167
+ type: ColorSelector
168
+ layout:
169
+ flex: 0 0 auto
170
+ properties:
171
+ arrow: false
172
+ disabledAlpha: true
173
+ disabledFormat: true
174
+ showText: true
175
+
176
+ - title: Modes
177
+ blocks:
178
+ - id: mode_default
179
+ type: ColorSelector
180
+ layout:
181
+ flex: 0 0 auto
182
+ properties:
183
+ showText: true
184
+ - id: mode_single
185
+ type: ColorSelector
186
+ layout:
187
+ flex: 0 0 auto
188
+ properties:
189
+ mode: single
190
+ showText: true
191
+ - id: mode_gradient
192
+ type: ColorSelector
193
+ layout:
194
+ flex: 0 0 auto
195
+ properties:
196
+ mode: gradient
197
+ showText: true
198
+
199
+ - title: Placement Options
200
+ blocks:
201
+ - id: placement_top_label
202
+ type: Markdown
203
+ properties:
204
+ content: '**Top:**'
205
+ - id: placement_top
206
+ type: ColorSelector
207
+ layout:
208
+ flex: 0 0 auto
209
+ properties:
210
+ placement: top
211
+ - id: placement_topLeft_label
212
+ type: Markdown
213
+ properties:
214
+ content: '**Top Left:**'
215
+ - id: placement_topLeft
216
+ type: ColorSelector
217
+ layout:
218
+ flex: 0 0 auto
219
+ properties:
220
+ placement: topLeft
221
+ - id: placement_topRight_label
222
+ type: Markdown
223
+ properties:
224
+ content: '**Top Right:**'
225
+ - id: placement_topRight
226
+ type: ColorSelector
227
+ layout:
228
+ flex: 0 0 auto
229
+ properties:
230
+ placement: topRight
231
+ - id: placement_bottom_label
232
+ type: Markdown
233
+ properties:
234
+ content: '**Bottom:**'
235
+ - id: placement_bottom
236
+ type: ColorSelector
237
+ layout:
238
+ flex: 0 0 auto
239
+ properties:
240
+ placement: bottom
241
+ - id: placement_bottomLeft_label
242
+ type: Markdown
243
+ properties:
244
+ content: '**Bottom Left:**'
245
+ - id: placement_bottomLeft
246
+ type: ColorSelector
247
+ layout:
248
+ flex: 0 0 auto
249
+ properties:
250
+ placement: bottomLeft
251
+
252
+ - title: Presets
253
+ blocks:
254
+ - id: presets_brand
255
+ type: ColorSelector
256
+ layout:
257
+ flex: 0 0 auto
258
+ properties:
259
+ showText: true
260
+ presets:
261
+ - label: Brand
262
+ colors:
263
+ - '#1677ff'
264
+ - '#13c2c2'
265
+ - '#52c41a'
266
+ - '#faad14'
267
+ - '#f5222d'
268
+ - '#722ed1'
269
+ - label: Neutral
270
+ colors:
271
+ - '#000000'
272
+ - '#333333'
273
+ - '#666666'
274
+ - '#999999'
275
+ - '#cccccc'
276
+ - '#ffffff'
277
+ - id: presets_extended
278
+ type: ColorSelector
279
+ layout:
280
+ flex: 0 0 auto
281
+ properties:
282
+ showText: true
283
+ presets:
284
+ - label: Red
285
+ colors:
286
+ - '#fff1f0'
287
+ - '#ffa39e'
288
+ - '#ff4d4f'
289
+ - '#cf1322'
290
+ - '#820014'
291
+ - label: Blue
292
+ colors:
293
+ - '#e6f4ff'
294
+ - '#91caff'
295
+ - '#4096ff'
296
+ - '#0958d9'
297
+ - '#002c8c'
298
+ - label: Green
299
+ colors:
300
+ - '#f6ffed'
301
+ - '#b7eb8f'
302
+ - '#52c41a'
303
+ - '#389e0d'
304
+ - '#135200'
305
+ - label: Gold
306
+ colors:
307
+ - '#fffbe6'
308
+ - '#ffe58f'
309
+ - '#faad14'
310
+ - '#d48806'
311
+ - '#874d00'
312
+ - label: Purple
313
+ colors:
314
+ - '#f9f0ff'
315
+ - '#d3adf7'
316
+ - '#722ed1'
317
+ - '#531dab'
318
+ - '#22075e'
319
+ - id: presets_status
320
+ type: ColorSelector
321
+ layout:
322
+ flex: 0 0 auto
323
+ properties:
324
+ showText: true
325
+ presets:
326
+ - label: Status
327
+ colors:
328
+ - '#52c41a'
329
+ - '#faad14'
330
+ - '#f5222d'
331
+ - '#1677ff'
332
+ - '#722ed1'
333
+ - '#eb2f96'
334
+
335
+ - title: Trigger Modes
336
+ blocks:
337
+ - id: trigger_click_label
338
+ type: Markdown
339
+ properties:
340
+ content: '**Click trigger (default):**'
341
+ - id: trigger_click
342
+ type: ColorSelector
343
+ layout:
344
+ flex: 0 0 auto
345
+ properties:
346
+ trigger: click
347
+ showText: true
348
+ - id: trigger_hover_label
349
+ type: Markdown
350
+ properties:
351
+ content: '**Hover trigger:**'
352
+ - id: trigger_hover
353
+ type: ColorSelector
354
+ layout:
355
+ flex: 0 0 auto
356
+ properties:
357
+ trigger: hover
358
+ showText: true
359
+
360
+ - title: Disabled State
361
+ blocks:
362
+ - id: disabled_basic
363
+ type: ColorSelector
364
+ layout:
365
+ flex: 0 0 auto
366
+ properties:
367
+ disabled: true
368
+ - id: disabled_with_text
369
+ type: ColorSelector
370
+ layout:
371
+ flex: 0 0 auto
372
+ properties:
373
+ disabled: true
374
+ showText: true
375
+ - id: disabled_small
376
+ type: ColorSelector
377
+ layout:
378
+ flex: 0 0 auto
379
+ properties:
380
+ disabled: true
381
+ size: small
382
+ - id: disabled_large
383
+ type: ColorSelector
384
+ layout:
385
+ flex: 0 0 auto
386
+ properties:
387
+ disabled: true
388
+ size: large
389
+
390
+ - title: With Label
391
+ blocks:
392
+ - id: label_basic
393
+ type: ColorSelector
394
+ properties:
395
+ label:
396
+ title: Pick a color
397
+ - id: label_inline
398
+ type: ColorSelector
399
+ properties:
400
+ label:
401
+ title: Theme color
402
+ inline: true
403
+ showText: true
404
+ - id: label_colon
405
+ type: ColorSelector
406
+ properties:
407
+ label:
408
+ title: Background
409
+ colon: true
410
+ showText: true
411
+ - id: label_extra
412
+ type: ColorSelector
413
+ properties:
414
+ label:
415
+ title: Brand primary
416
+ extra: Select your primary brand color
417
+ showText: true
418
+ - id: label_disabled
419
+ type: ColorSelector
420
+ properties:
421
+ label:
422
+ title: Disabled picker
423
+ disabled: true
424
+ disabled: true
425
+ showText: true
426
+
427
+ - title: Custom Style and Class
428
+ blocks:
429
+ - id: style_border
430
+ type: ColorSelector
431
+ layout:
432
+ flex: 0 0 auto
433
+ style:
434
+ .element:
435
+ border: 2px solid #1677ff
436
+ borderRadius: 8px
437
+ properties:
438
+ showText: true
439
+ - id: style_shadow
440
+ type: ColorSelector
441
+ layout:
442
+ flex: 0 0 auto
443
+ style:
444
+ .element:
445
+ boxShadow: 0 2px 8px rgba(0, 0, 0, 0.15)
446
+ borderRadius: 8px
447
+ properties:
448
+ showText: true
449
+ - id: style_tailwind
450
+ type: ColorSelector
451
+ layout:
452
+ flex: 0 0 auto
453
+ properties:
454
+ showText: true
455
+ class: rounded-lg shadow-sm
456
+ - id: style_large_swatch
457
+ type: ColorSelector
458
+ layout:
459
+ flex: 0 0 auto
460
+ style:
461
+ .element:
462
+ transform: scale(1.5)
463
+ transformOrigin: left center
464
+
465
+ - title: Combined Features
466
+ blocks:
467
+ - id: combined_full_label
468
+ type: Markdown
469
+ properties:
470
+ content: '**Full-featured picker:**'
471
+ - id: combined_full
472
+ type: ColorSelector
473
+ layout:
474
+ flex: 0 0 auto
475
+ properties:
476
+ showText: true
477
+ format: hex
478
+ allowClear: true
479
+ size: large
480
+ presets:
481
+ - label: Recommended
482
+ colors:
483
+ - '#1677ff'
484
+ - '#52c41a'
485
+ - '#faad14'
486
+ - '#f5222d'
487
+ - '#722ed1'
488
+ - '#13c2c2'
489
+ - id: combined_minimal_label
490
+ type: Markdown
491
+ properties:
492
+ content: '**Minimal picker:**'
493
+ - id: combined_minimal
494
+ type: ColorSelector
495
+ layout:
496
+ flex: 0 0 auto
497
+ properties:
498
+ size: small
499
+ disabledAlpha: true
500
+ disabledFormat: true
501
+ arrow: false
502
+ - id: combined_text_no_alpha_label
503
+ type: Markdown
504
+ properties:
505
+ content: '**Text with no alpha:**'
506
+ - id: combined_text_no_alpha
507
+ type: ColorSelector
508
+ layout:
509
+ flex: 0 0 auto
510
+ properties:
511
+ showText: true
512
+ format: rgb
513
+ disabledAlpha: true
514
+ - id: combined_gradient_presets_label
515
+ type: Markdown
516
+ properties:
517
+ content: '**Gradient mode with presets:**'
518
+ - id: combined_gradient_presets
519
+ type: ColorSelector
520
+ layout:
521
+ flex: 0 0 auto
522
+ properties:
523
+ mode: gradient
524
+ showText: true
525
+ size: large
526
+ presets:
527
+ - label: Gradients
528
+ colors:
529
+ - '#ff4d4f'
530
+ - '#ff7a45'
531
+ - '#ffa940'
532
+ - '#ffc53d'
533
+ - '#ffec3d'
534
+ - '#bae637'
535
+ - '#73d13d'
536
+ - '#36cfc9'
537
+ - '#40a9ff'
538
+ - '#597ef7'
539
+ - '#9254de'
540
+ - '#f759ab'
541
+
542
+ - title: Multiple Pickers in a Row
543
+ blocks:
544
+ - id: multi_row
545
+ type: Box
546
+ layout:
547
+ gap: 12
548
+ blocks:
549
+ - id: multi_primary
550
+ type: ColorSelector
551
+ layout:
552
+ flex: 0 0 auto
553
+ - id: multi_success
554
+ type: ColorSelector
555
+ layout:
556
+ flex: 0 0 auto
557
+ - id: multi_warning
558
+ type: ColorSelector
559
+ layout:
560
+ flex: 0 0 auto
561
+ - id: multi_error
562
+ type: ColorSelector
563
+ layout:
564
+ flex: 0 0 auto
565
+ - id: multi_info
566
+ type: ColorSelector
567
+ layout:
568
+ flex: 0 0 auto
569
+ - id: multi_purple
570
+ type: ColorSelector
571
+ layout:
572
+ flex: 0 0 auto
573
+
574
+ - title: Theme Token Overrides
575
+ blocks:
576
+ - id: theme_large_handler
577
+ type: ColorSelector
578
+ layout:
579
+ flex: 0 0 auto
580
+ properties:
581
+ showText: true
582
+ theme:
583
+ colorPickerHandlerSize: 24
584
+ colorPickerSliderHeight: 12
585
+ - id: theme_wide_picker
586
+ type: ColorSelector
587
+ layout:
588
+ flex: 0 0 auto
589
+ properties:
590
+ showText: true
591
+ theme:
592
+ colorPickerWidth: 300
593
+ - id: theme_large_presets
594
+ type: ColorSelector
595
+ layout:
596
+ flex: 0 0 auto
597
+ properties:
598
+ showText: true
599
+ theme:
600
+ colorPickerPresetColorSize: 32
601
+ presets:
602
+ - label: Custom
603
+ colors:
604
+ - '#1677ff'
605
+ - '#52c41a'
606
+ - '#faad14'
607
+ - '#f5222d'
608
+ - '#722ed1'
609
+ - '#13c2c2'
610
+ - id: theme_custom_border_radius
611
+ type: ColorSelector
612
+ layout:
613
+ flex: 0 0 auto
614
+ properties:
615
+ showText: true
616
+ theme:
617
+ borderRadius: 16
618
+ - id: theme_combined
619
+ type: ColorSelector
620
+ layout:
621
+ flex: 0 0 auto
622
+ properties:
623
+ showText: true
624
+ size: large
625
+ theme:
626
+ colorPickerWidth: 280
627
+ colorPickerHandlerSize: 20
628
+ colorPickerSliderHeight: 10
629
+ colorPickerPresetColorSize: 28
630
+ borderRadius: 12
631
+
632
+ - title: ColorSelector in Theme Editor
633
+ blocks:
634
+ - id: applied_theme_editor_card
635
+ type: Card
636
+ properties:
637
+ title: Brand Theme Settings
638
+ blocks:
639
+ - id: applied_theme_brand_name
640
+ type: TextInput
641
+ properties:
642
+ title: Brand Name
643
+ placeholder: Enter your brand name
644
+ - id: applied_theme_primary_color
645
+ type: ColorSelector
646
+ properties:
647
+ title: Primary Color
648
+ showText: true
649
+ format: hex
650
+ disabledAlpha: true
651
+ label:
652
+ extra: Used for buttons, links, and active elements
653
+ presets:
654
+ - label: Popular
655
+ colors:
656
+ - '#1677ff'
657
+ - '#52c41a'
658
+ - '#faad14'
659
+ - '#f5222d'
660
+ - '#722ed1'
661
+ - '#13c2c2'
662
+ events:
663
+ onMount:
664
+ - id: set_primary_color
665
+ type: SetState
666
+ params:
667
+ applied_theme_primary_color: '#1677ff'
668
+ onChange:
669
+ - id: primary_color_change
670
+ type: DisplayMessage
671
+ params:
672
+ content:
673
+ _string.concat:
674
+ - 'Primary color updated to '
675
+ - _state: applied_theme_primary_color
676
+ duration: 1
677
+ - id: applied_theme_secondary_color
678
+ type: ColorSelector
679
+ properties:
680
+ title: Secondary Color
681
+ showText: true
682
+ format: hex
683
+ disabledAlpha: true
684
+ label:
685
+ extra: Used for backgrounds and secondary actions
686
+ presets:
687
+ - label: Popular
688
+ colors:
689
+ - '#f0f5ff'
690
+ - '#f6ffed'
691
+ - '#fffbe6'
692
+ - '#fff2f0'
693
+ - '#f9f0ff'
694
+ - '#e6fffb'
695
+ events:
696
+ onMount:
697
+ - id: set_secondary_color
698
+ type: SetState
699
+ params:
700
+ applied_theme_secondary_color: '#f0f5ff'
701
+ - id: applied_theme_save_btn
702
+ type: Button
703
+ properties:
704
+ title: Save Theme
705
+ type: primary
706
+ icon: AiOutlineSave
707
+ events:
708
+ onClick:
709
+ - id: theme_save_action
710
+ type: DisplayMessage
711
+ params:
712
+ content: Brand theme saved successfully
713
+ status: success
714
+ - id: theme_set_global
715
+ type: SetGlobal
716
+ params:
717
+ primaryColor:
718
+ _state: applied_theme_primary_color
719
+ secondaryColor:
720
+ _state: applied_theme_secondary_color
721
+
722
+ - title: ColorSelector in Product Customizer
723
+ blocks:
724
+ - id: applied_product_card
725
+ type: Card
726
+ properties:
727
+ title: Customize Your Product
728
+ blocks:
729
+ - id: applied_product_name
730
+ type: TextInput
731
+ properties:
732
+ title: Product Name
733
+ placeholder: e.g. Custom T-Shirt
734
+ - id: applied_product_body_color
735
+ type: ColorSelector
736
+ properties:
737
+ title: Body Color
738
+ showText: true
739
+ size: large
740
+ disabledAlpha: true
741
+ presets:
742
+ - label: Available Colors
743
+ colors:
744
+ - '#ffffff'
745
+ - '#000000'
746
+ - '#1a3c6e'
747
+ - '#8b0000'
748
+ - '#2e8b57'
749
+ - '#daa520'
750
+ events:
751
+ onMount:
752
+ - id: set_body_color
753
+ type: SetState
754
+ params:
755
+ applied_product_body_color: '#1a3c6e'
756
+ onChange:
757
+ - id: body_color_change
758
+ type: SetState
759
+ params:
760
+ product_body_color:
761
+ _state: applied_product_body_color
762
+ - id: applied_product_accent_color
763
+ type: ColorSelector
764
+ properties:
765
+ title: Accent Color
766
+ showText: true
767
+ size: large
768
+ disabledAlpha: true
769
+ presets:
770
+ - label: Available Colors
771
+ colors:
772
+ - '#ff4d4f'
773
+ - '#ff7a45'
774
+ - '#ffc53d'
775
+ - '#52c41a'
776
+ - '#1677ff'
777
+ - '#722ed1'
778
+ events:
779
+ onMount:
780
+ - id: set_accent_color
781
+ type: SetState
782
+ params:
783
+ applied_product_accent_color: '#ff4d4f'
784
+ - id: applied_product_quantity
785
+ type: NumberInput
786
+ properties:
787
+ title: Quantity
788
+ min: 1
789
+ max: 100
790
+ - id: applied_product_add_to_cart
791
+ type: Button
792
+ properties:
793
+ title: Add to Cart
794
+ type: primary
795
+ icon: AiOutlineShoppingCart
796
+ events:
797
+ onClick:
798
+ - id: add_to_cart_action
799
+ type: DisplayMessage
800
+ params:
801
+ content:
802
+ _string.concat:
803
+ - 'Added to cart with body color '
804
+ - _state: applied_product_body_color
805
+ - ' and accent color '
806
+ - _state: applied_product_accent_color
807
+ status: success