@lowdefy/blocks-antd 5.6.0 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/dist/TagPillRow.js +88 -0
  2. package/dist/blocks/Affix/gallery.yaml +399 -0
  3. package/dist/blocks/Affix/tests/Affix.e2e.yaml +72 -0
  4. package/dist/blocks/Affix/tests.yaml +29 -0
  5. package/dist/blocks/Alert/gallery.yaml +701 -0
  6. package/dist/blocks/Alert/tests/Alert.e2e.yaml +161 -0
  7. package/dist/blocks/Alert/tests.yaml +261 -0
  8. package/dist/blocks/AutoComplete/gallery.yaml +713 -0
  9. package/dist/blocks/AutoComplete/tests/AutoComplete.e2e.yaml +330 -0
  10. package/dist/blocks/AutoComplete/tests.yaml +178 -0
  11. package/dist/blocks/Avatar/gallery.yaml +1037 -0
  12. package/dist/blocks/Avatar/tests/Avatar.e2e.yaml +125 -0
  13. package/dist/blocks/Avatar/tests.yaml +76 -0
  14. package/dist/blocks/Badge/gallery.yaml +1090 -0
  15. package/dist/blocks/Badge/tests/Badge.e2e.yaml +195 -0
  16. package/dist/blocks/Badge/tests.yaml +91 -0
  17. package/dist/blocks/Breadcrumb/gallery.yaml +484 -0
  18. package/dist/blocks/Breadcrumb/tests/Breadcrumb.e2e.yaml +165 -0
  19. package/dist/blocks/Breadcrumb/tests.yaml +106 -0
  20. package/dist/blocks/Button/Button.js +11 -2
  21. package/dist/blocks/Button/gallery.yaml +718 -0
  22. package/dist/blocks/Button/meta.js +4 -0
  23. package/dist/blocks/Button/tests/Button.e2e.yaml +246 -0
  24. package/dist/blocks/Button/tests.yaml +109 -0
  25. package/dist/blocks/ButtonSelector/gallery.yaml +891 -0
  26. package/dist/blocks/ButtonSelector/tests/ButtonSelector.e2e.yaml +188 -0
  27. package/dist/blocks/ButtonSelector/tests.yaml +167 -0
  28. package/dist/blocks/Calendar/gallery.yaml +128 -0
  29. package/dist/blocks/Calendar/tests/Calendar.e2e.yaml +136 -0
  30. package/dist/blocks/Calendar/tests.yaml +50 -0
  31. package/dist/blocks/Card/gallery.yaml +1035 -0
  32. package/dist/blocks/Card/tests/Card.e2e.yaml +209 -0
  33. package/dist/blocks/Card/tests.yaml +75 -0
  34. package/dist/blocks/Carousel/gallery.yaml +1971 -0
  35. package/dist/blocks/Carousel/tests/Carousel.e2e.yaml +211 -0
  36. package/dist/blocks/Carousel/tests.yaml +117 -0
  37. package/dist/blocks/CheckboxSelector/gallery.yaml +781 -0
  38. package/dist/blocks/CheckboxSelector/tests/CheckboxSelector.e2e.yaml +272 -0
  39. package/dist/blocks/CheckboxSelector/tests.yaml +325 -0
  40. package/dist/blocks/CheckboxSwitch/gallery.yaml +457 -0
  41. package/dist/blocks/CheckboxSwitch/tests/CheckboxSwitch.e2e.yaml +126 -0
  42. package/dist/blocks/CheckboxSwitch/tests.yaml +96 -0
  43. package/dist/blocks/Collapse/gallery.yaml +1079 -0
  44. package/dist/blocks/Collapse/tests/Collapse.e2e.yaml +206 -0
  45. package/dist/blocks/Collapse/tests.yaml +265 -0
  46. package/dist/blocks/ColorSelector/gallery.yaml +807 -0
  47. package/dist/blocks/ColorSelector/tests/ColorSelector.e2e.yaml +77 -0
  48. package/dist/blocks/ColorSelector/tests.yaml +84 -0
  49. package/dist/blocks/ConfigProvider/gallery.yaml +1003 -0
  50. package/dist/blocks/ConfigProvider/tests.yaml +62 -0
  51. package/dist/blocks/ConfirmModal/gallery.yaml +1043 -0
  52. package/dist/blocks/ConfirmModal/tests/ConfirmModal.e2e.yaml +410 -0
  53. package/dist/blocks/ConfirmModal/tests.yaml +95 -0
  54. package/dist/blocks/Content/gallery.yaml +528 -0
  55. package/dist/blocks/Content/tests/Content.e2e.yaml +71 -0
  56. package/dist/blocks/Content/tests.yaml +42 -0
  57. package/dist/blocks/ControlledList/ControlledList.js +1 -1
  58. package/dist/blocks/ControlledList/gallery.yaml +481 -0
  59. package/dist/blocks/ControlledList/{style.module.css → style.css} +3 -3
  60. package/dist/blocks/ControlledList/tests/ControlledList.e2e.yaml +161 -0
  61. package/dist/blocks/ControlledList/tests.yaml +57 -0
  62. package/dist/blocks/DateRangeSelector/DateRangeSelector.js +7 -0
  63. package/dist/blocks/DateRangeSelector/e2e.js +28 -2
  64. package/dist/blocks/DateRangeSelector/gallery.yaml +858 -0
  65. package/dist/blocks/DateRangeSelector/meta.js +2 -0
  66. package/dist/blocks/DateRangeSelector/tests/DateRangeSelector.e2e.yaml +204 -0
  67. package/dist/blocks/DateRangeSelector/tests.yaml +129 -0
  68. package/dist/blocks/DateSelector/DateSelector.js +6 -0
  69. package/dist/blocks/DateSelector/e2e.js +28 -2
  70. package/dist/blocks/DateSelector/gallery.yaml +691 -0
  71. package/dist/blocks/DateSelector/meta.js +6 -0
  72. package/dist/blocks/DateSelector/tests/DateSelector.e2e.yaml +229 -0
  73. package/dist/blocks/DateSelector/tests.yaml +117 -0
  74. package/dist/blocks/DateTimeSelector/DateTimeSelector.js +7 -0
  75. package/dist/blocks/DateTimeSelector/e2e.js +26 -2
  76. package/dist/blocks/DateTimeSelector/gallery.yaml +770 -0
  77. package/dist/blocks/DateTimeSelector/meta.js +2 -0
  78. package/dist/blocks/DateTimeSelector/tests/DateTimeSelector.e2e.yaml +163 -0
  79. package/dist/blocks/DateTimeSelector/tests.yaml +140 -0
  80. package/dist/blocks/Descriptions/gallery.yaml +839 -0
  81. package/dist/blocks/Descriptions/tests/Descriptions.e2e.yaml +143 -0
  82. package/dist/blocks/Descriptions/tests.yaml +256 -0
  83. package/dist/blocks/Divider/gallery.yaml +375 -0
  84. package/dist/blocks/Divider/tests/Divider.e2e.yaml +107 -0
  85. package/dist/blocks/Divider/tests.yaml +58 -0
  86. package/dist/blocks/Drawer/gallery.yaml +1257 -0
  87. package/dist/blocks/Drawer/tests/Drawer.e2e.yaml +562 -0
  88. package/dist/blocks/Drawer/tests.yaml +80 -0
  89. package/dist/blocks/DropdownButton/gallery.yaml +606 -0
  90. package/dist/blocks/DropdownButton/tests/DropdownButton.e2e.yaml +243 -0
  91. package/dist/blocks/DropdownMenu/gallery.yaml +578 -0
  92. package/dist/blocks/DropdownMenu/tests/DropdownMenu.e2e.yaml +267 -0
  93. package/dist/blocks/Flex/gallery.yaml +1416 -0
  94. package/dist/blocks/Flex/tests/Flex.e2e.yaml +95 -0
  95. package/dist/blocks/Flex/tests.yaml +92 -0
  96. package/dist/blocks/FloatButton/gallery.yaml +518 -0
  97. package/dist/blocks/FloatButton/tests/FloatButton.e2e.yaml +73 -0
  98. package/dist/blocks/FloatButton/tests.yaml +59 -0
  99. package/dist/blocks/Footer/gallery.yaml +355 -0
  100. package/dist/blocks/Footer/tests/Footer.e2e.yaml +70 -0
  101. package/dist/blocks/Footer/tests.yaml +28 -0
  102. package/dist/blocks/Header/gallery.yaml +249 -0
  103. package/dist/blocks/Header/tests/Header.e2e.yaml +77 -0
  104. package/dist/blocks/Header/tests.yaml +36 -0
  105. package/dist/blocks/Label/Label.js +1 -1
  106. package/dist/blocks/Label/gallery.yaml +762 -0
  107. package/dist/blocks/Label/{style.module.css → style.css} +28 -28
  108. package/dist/blocks/Label/tests/Label.e2e.yaml +247 -0
  109. package/dist/blocks/Label/tests.yaml +212 -0
  110. package/dist/blocks/Layout/gallery.yaml +548 -0
  111. package/dist/blocks/Layout/tests/Layout.e2e.yaml +86 -0
  112. package/dist/blocks/Layout/tests.yaml +28 -0
  113. package/dist/blocks/ListSelector/gallery.yaml +223 -0
  114. package/dist/blocks/Masonry/gallery.yaml +989 -0
  115. package/dist/blocks/Masonry/tests/Masonry.e2e.yaml +128 -0
  116. package/dist/blocks/Masonry/tests.yaml +42 -0
  117. package/dist/blocks/MasonryList/gallery.yaml +224 -0
  118. package/dist/blocks/MasonryList/tests/MasonryList.e2e.yaml +55 -0
  119. package/dist/blocks/MasonryList/tests.yaml +42 -0
  120. package/dist/blocks/Menu/gallery.yaml +974 -0
  121. package/dist/blocks/Menu/tests/Menu.e2e.yaml +484 -0
  122. package/dist/blocks/Menu/tests.yaml +1053 -0
  123. package/dist/blocks/Message/gallery.yaml +860 -0
  124. package/dist/blocks/Message/tests/Message.e2e.yaml +246 -0
  125. package/dist/blocks/Message/tests.yaml +54 -0
  126. package/dist/blocks/MobileMenu/gallery.yaml +1172 -0
  127. package/dist/blocks/MobileMenu/tests/MobileMenu.e2e.yaml +314 -0
  128. package/dist/blocks/MobileMenu/tests.yaml +359 -0
  129. package/dist/blocks/Modal/gallery.yaml +1039 -0
  130. package/dist/blocks/Modal/tests/Modal.e2e.yaml +493 -0
  131. package/dist/blocks/Modal/tests.yaml +75 -0
  132. package/dist/blocks/MonthSelector/MonthSelector.js +6 -0
  133. package/dist/blocks/MonthSelector/e2e.js +26 -2
  134. package/dist/blocks/MonthSelector/gallery.yaml +687 -0
  135. package/dist/blocks/MonthSelector/meta.js +6 -0
  136. package/dist/blocks/MonthSelector/tests/MonthSelector.e2e.yaml +167 -0
  137. package/dist/blocks/MonthSelector/tests.yaml +124 -0
  138. package/dist/blocks/MultipleSelector/gallery.yaml +1245 -0
  139. package/dist/blocks/MultipleSelector/tests/MultipleSelector.e2e.yaml +445 -0
  140. package/dist/blocks/MultipleSelector/tests.yaml +201 -0
  141. package/dist/blocks/Notification/gallery.yaml +1376 -0
  142. package/dist/blocks/Notification/tests/Notification.e2e.yaml +362 -0
  143. package/dist/blocks/Notification/tests.yaml +97 -0
  144. package/dist/blocks/NumberInput/gallery.yaml +753 -0
  145. package/dist/blocks/NumberInput/tests/NumberInput.e2e.yaml +228 -0
  146. package/dist/blocks/NumberInput/tests.yaml +116 -0
  147. package/dist/blocks/PageHeaderMenu/PageHeaderMenu.js +1 -1
  148. package/dist/blocks/PageHeaderMenu/gallery.yaml +480 -0
  149. package/dist/blocks/PageHeaderMenu/tests/PageHeaderMenu.e2e.yaml +110 -0
  150. package/dist/blocks/PageHeaderMenu/tests.yaml +173 -0
  151. package/dist/blocks/PageSidebarLayout/PageSidebarLayout.js +10 -1
  152. package/dist/blocks/PageSidebarLayout/gallery.yaml +302 -0
  153. package/dist/blocks/PageSidebarLayout/meta.js +1 -0
  154. package/dist/blocks/PageSidebarLayout/tests/PageSidebarLayout.e2e.yaml +216 -0
  155. package/dist/blocks/PageSidebarLayout/tests.yaml +174 -0
  156. package/dist/blocks/PageSiderMenu/PageSiderMenu.js +1 -1
  157. package/dist/blocks/PageSiderMenu/gallery.yaml +516 -0
  158. package/dist/blocks/PageSiderMenu/tests/PageSiderMenu.e2e.yaml +175 -0
  159. package/dist/blocks/PageSiderMenu/tests.yaml +211 -0
  160. package/dist/blocks/Pagination/gallery.yaml +503 -0
  161. package/dist/blocks/Pagination/tests/Pagination.e2e.yaml +159 -0
  162. package/dist/blocks/Pagination/tests.yaml +80 -0
  163. package/dist/blocks/Paragraph/gallery.yaml +458 -0
  164. package/dist/blocks/Paragraph/tests/Paragraph.e2e.yaml +153 -0
  165. package/dist/blocks/Paragraph/tests.yaml +176 -0
  166. package/dist/blocks/ParagraphInput/gallery.yaml +1483 -0
  167. package/dist/blocks/ParagraphInput/tests/ParagraphInput.e2e.yaml +189 -0
  168. package/dist/blocks/ParagraphInput/tests.yaml +163 -0
  169. package/dist/blocks/PasswordInput/gallery.yaml +420 -0
  170. package/dist/blocks/PasswordInput/tests/PasswordInput.e2e.yaml +188 -0
  171. package/dist/blocks/PasswordInput/tests.yaml +78 -0
  172. package/dist/blocks/PhoneNumberInput/gallery.yaml +677 -0
  173. package/dist/blocks/PhoneNumberInput/tests/PhoneNumberInput.e2e.yaml +279 -0
  174. package/dist/blocks/PhoneNumberInput/tests.yaml +25 -0
  175. package/dist/blocks/Popover/gallery.yaml +1301 -0
  176. package/dist/blocks/Popover/tests/Popover.e2e.yaml +249 -0
  177. package/dist/blocks/Popover/tests.yaml +105 -0
  178. package/dist/blocks/Progress/gallery.yaml +772 -0
  179. package/dist/blocks/Progress/tests/Progress.e2e.yaml +167 -0
  180. package/dist/blocks/Progress/tests.yaml +114 -0
  181. package/dist/blocks/QRCode/gallery.yaml +492 -0
  182. package/dist/blocks/QRCode/tests/QRCode.e2e.yaml +66 -0
  183. package/dist/blocks/QRCode/tests.yaml +113 -0
  184. package/dist/blocks/RadioSelector/gallery.yaml +816 -0
  185. package/dist/blocks/RadioSelector/tests/RadioSelector.e2e.yaml +269 -0
  186. package/dist/blocks/RadioSelector/tests.yaml +339 -0
  187. package/dist/blocks/RatingSlider/gallery.yaml +627 -0
  188. package/dist/blocks/RatingSlider/tests/RatingSlider.e2e.yaml +188 -0
  189. package/dist/blocks/RatingSlider/tests.yaml +116 -0
  190. package/dist/blocks/Result/gallery.yaml +925 -0
  191. package/dist/blocks/Result/tests/Result.e2e.yaml +126 -0
  192. package/dist/blocks/Result/tests.yaml +75 -0
  193. package/dist/blocks/Search/Search.js +1 -1
  194. package/dist/blocks/Search/SearchModal.js +18 -9
  195. package/dist/blocks/Search/gallery.yaml +170 -0
  196. package/dist/blocks/Search/meta.js +2 -1
  197. package/dist/blocks/Search/{style.module.css → style.css} +19 -12
  198. package/dist/blocks/Search/tests/Search.e2e.yaml +125 -0
  199. package/dist/blocks/Search/useSearchIndex.js +24 -2
  200. package/dist/blocks/SegmentedSelector/gallery.yaml +725 -0
  201. package/dist/blocks/SegmentedSelector/tests/SegmentedSelector.e2e.yaml +115 -0
  202. package/dist/blocks/SegmentedSelector/tests.yaml +141 -0
  203. package/dist/blocks/Selector/gallery.yaml +1055 -0
  204. package/dist/blocks/Selector/tests/Selector.e2e.yaml +427 -0
  205. package/dist/blocks/Selector/tests.yaml +196 -0
  206. package/dist/blocks/Sider/gallery.yaml +994 -0
  207. package/dist/blocks/Sider/tests/Sider.e2e.yaml +162 -0
  208. package/dist/blocks/Sider/tests.yaml +20 -0
  209. package/dist/blocks/Slider/gallery.yaml +600 -0
  210. package/dist/blocks/Slider/tests/Slider.e2e.yaml +190 -0
  211. package/dist/blocks/Slider/tests.yaml +68 -0
  212. package/dist/blocks/Splitter/gallery.yaml +1511 -0
  213. package/dist/blocks/Splitter/tests/Splitter.e2e.yaml +114 -0
  214. package/dist/blocks/Splitter/tests.yaml +79 -0
  215. package/dist/blocks/Statistic/gallery.yaml +460 -0
  216. package/dist/blocks/Statistic/tests/Statistic.e2e.yaml +137 -0
  217. package/dist/blocks/Statistic/tests.yaml +77 -0
  218. package/dist/blocks/Steps/gallery.yaml +550 -0
  219. package/dist/blocks/Switch/gallery.yaml +502 -0
  220. package/dist/blocks/Switch/tests/Switch.e2e.yaml +132 -0
  221. package/dist/blocks/Switch/tests.yaml +87 -0
  222. package/dist/blocks/Tabs/gallery.yaml +1353 -0
  223. package/dist/blocks/Tabs/tests/Tabs.e2e.yaml +370 -0
  224. package/dist/blocks/Tabs/tests.yaml +349 -0
  225. package/dist/blocks/Tag/gallery.yaml +598 -0
  226. package/dist/blocks/Tag/tests/Tag.e2e.yaml +173 -0
  227. package/dist/blocks/Tag/tests.yaml +51 -0
  228. package/dist/blocks/TagMultipleSelector/TagMultipleSelector.js +53 -0
  229. package/dist/blocks/TagMultipleSelector/e2e.js +36 -0
  230. package/dist/blocks/TagMultipleSelector/gallery.yaml +70 -0
  231. package/dist/blocks/TagMultipleSelector/meta.js +91 -0
  232. package/dist/blocks/TagMultipleSelector/tests/TagMultipleSelector.e2e.yaml +93 -0
  233. package/dist/blocks/TagSelector/TagSelector.js +49 -0
  234. package/dist/blocks/TagSelector/e2e.js +36 -0
  235. package/dist/blocks/TagSelector/gallery.yaml +70 -0
  236. package/dist/blocks/TagSelector/meta.js +91 -0
  237. package/dist/blocks/TagSelector/tests/TagSelector.e2e.yaml +93 -0
  238. package/dist/blocks/TextArea/gallery.yaml +618 -0
  239. package/dist/blocks/TextArea/tests/TextArea.e2e.yaml +218 -0
  240. package/dist/blocks/TextArea/tests.yaml +100 -0
  241. package/dist/blocks/TextInput/gallery.yaml +560 -0
  242. package/dist/blocks/TextInput/tests/TextInput.e2e.yaml +287 -0
  243. package/dist/blocks/TextInput/tests.yaml +114 -0
  244. package/dist/blocks/TimelineList/gallery.yaml +431 -0
  245. package/dist/blocks/TimelineList/tests/TimelineList.e2e.yaml +244 -0
  246. package/dist/blocks/TimelineList/tests.yaml +251 -0
  247. package/dist/blocks/Title/gallery.yaml +483 -0
  248. package/dist/blocks/Title/tests/Title.e2e.yaml +180 -0
  249. package/dist/blocks/Title/tests.yaml +175 -0
  250. package/dist/blocks/TitleInput/gallery.yaml +1006 -0
  251. package/dist/blocks/TitleInput/tests/TitleInput.e2e.yaml +195 -0
  252. package/dist/blocks/TitleInput/tests.yaml +181 -0
  253. package/dist/blocks/Tooltip/gallery.yaml +1214 -0
  254. package/dist/blocks/Tooltip/tests/Tooltip.e2e.yaml +195 -0
  255. package/dist/blocks/Tooltip/tests.yaml +92 -0
  256. package/dist/blocks/Tour/gallery.yaml +2305 -0
  257. package/dist/blocks/Tour/tests/Tour.e2e.yaml +90 -0
  258. package/dist/blocks/Tour/tests.yaml +151 -0
  259. package/dist/blocks/TreeInput/gallery.yaml +78 -0
  260. package/dist/blocks/TreeInput/tests/TreeInput.e2e.yaml +139 -0
  261. package/dist/blocks/TreeInput/tests.yaml +140 -0
  262. package/dist/blocks/TreeMultipleSelector/gallery.yaml +67 -0
  263. package/dist/blocks/TreeSelector/gallery.yaml +81 -0
  264. package/dist/blocks/Watermark/gallery.yaml +479 -0
  265. package/dist/blocks/Watermark/tests/Watermark.e2e.yaml +62 -0
  266. package/dist/blocks/Watermark/tests.yaml +86 -0
  267. package/dist/blocks/WeekSelector/WeekSelector.js +6 -0
  268. package/dist/blocks/WeekSelector/e2e.js +26 -2
  269. package/dist/blocks/WeekSelector/gallery.yaml +589 -0
  270. package/dist/blocks/WeekSelector/meta.js +6 -0
  271. package/dist/blocks/WeekSelector/tests/WeekSelector.e2e.yaml +154 -0
  272. package/dist/blocks/WeekSelector/tests.yaml +122 -0
  273. package/dist/blocks.js +2 -0
  274. package/dist/disabledDate.js +91 -19
  275. package/dist/e2e.js +2 -0
  276. package/dist/getPresets.js +151 -0
  277. package/dist/getTagColor.js +44 -0
  278. package/dist/getTagSelectorOptions.js +30 -0
  279. package/dist/metas.js +2 -0
  280. package/dist/pickerPresetsStyle.css +26 -0
  281. package/dist/schemas/disabledDates.js +6 -2
  282. package/dist/schemas/index.js +1 -0
  283. package/dist/schemas/presets.js +111 -0
  284. package/dist/tagSelectorStyle.css +68 -0
  285. package/package.json +13 -13
@@ -0,0 +1,1301 @@
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 Popover
16
+ blocks:
17
+ - id: popover_basic
18
+ type: Popover
19
+ layout:
20
+ flex: 0 0 auto
21
+ properties:
22
+ title: Popover Title
23
+ slots:
24
+ popover:
25
+ blocks:
26
+ - id: popover_basic_content
27
+ type: Paragraph
28
+ properties:
29
+ content: This is the popover body content. You can place any blocks here.
30
+ blocks:
31
+ - id: popover_basic_btn
32
+ type: Button
33
+ layout:
34
+ flex: 0 0 auto
35
+ properties:
36
+ title: Hover me
37
+ color: primary
38
+ variant: solid
39
+
40
+ - id: popover_no_title
41
+ type: Popover
42
+ layout:
43
+ flex: 0 0 auto
44
+ slots:
45
+ popover:
46
+ blocks:
47
+ - id: popover_no_title_content
48
+ type: Paragraph
49
+ properties:
50
+ content: A popover without a title - just body content.
51
+ blocks:
52
+ - id: popover_no_title_btn
53
+ type: Button
54
+ layout:
55
+ flex: 0 0 auto
56
+ properties:
57
+ title: No title
58
+ color: default
59
+ variant: outlined
60
+
61
+ - title: Placements
62
+ blocks:
63
+ - id: popover_place_row_top
64
+ type: Box
65
+ layout:
66
+ gap: 8
67
+ justify: center
68
+ blocks:
69
+ - id: popover_pl_top
70
+ type: Popover
71
+ layout:
72
+ flex: 0 0 auto
73
+ properties:
74
+ title: Top
75
+ placement: top
76
+ slots:
77
+ popover:
78
+ blocks:
79
+ - id: popover_pl_top_msg
80
+ type: Paragraph
81
+ properties:
82
+ content: Popover placed at top.
83
+ blocks:
84
+ - id: popover_pl_top_btn
85
+ type: Button
86
+ layout:
87
+ flex: 0 0 auto
88
+ properties:
89
+ title: top
90
+ color: primary
91
+ variant: solid
92
+ size: small
93
+ - id: popover_pl_topLeft
94
+ type: Popover
95
+ layout:
96
+ flex: 0 0 auto
97
+ properties:
98
+ title: Top Left
99
+ placement: topLeft
100
+ slots:
101
+ popover:
102
+ blocks:
103
+ - id: popover_pl_topLeft_msg
104
+ type: Paragraph
105
+ properties:
106
+ content: Popover placed at topLeft.
107
+ blocks:
108
+ - id: popover_pl_topLeft_btn
109
+ type: Button
110
+ layout:
111
+ flex: 0 0 auto
112
+ properties:
113
+ title: topLeft
114
+ color: default
115
+ variant: outlined
116
+ size: small
117
+ - id: popover_pl_topRight
118
+ type: Popover
119
+ layout:
120
+ flex: 0 0 auto
121
+ properties:
122
+ title: Top Right
123
+ placement: topRight
124
+ slots:
125
+ popover:
126
+ blocks:
127
+ - id: popover_pl_topRight_msg
128
+ type: Paragraph
129
+ properties:
130
+ content: Popover placed at topRight.
131
+ blocks:
132
+ - id: popover_pl_topRight_btn
133
+ type: Button
134
+ layout:
135
+ flex: 0 0 auto
136
+ properties:
137
+ title: topRight
138
+ color: default
139
+ variant: outlined
140
+ size: small
141
+
142
+ - id: popover_place_row_sides
143
+ type: Box
144
+ layout:
145
+ gap: 8
146
+ blocks:
147
+ - id: popover_pl_left
148
+ type: Popover
149
+ layout:
150
+ flex: 0 0 auto
151
+ properties:
152
+ title: Left
153
+ placement: left
154
+ slots:
155
+ popover:
156
+ blocks:
157
+ - id: popover_pl_left_msg
158
+ type: Paragraph
159
+ properties:
160
+ content: Popover placed at left.
161
+ blocks:
162
+ - id: popover_pl_left_btn
163
+ type: Button
164
+ layout:
165
+ flex: 0 0 auto
166
+ properties:
167
+ title: left
168
+ color: primary
169
+ variant: solid
170
+ size: small
171
+ - id: popover_pl_right
172
+ type: Popover
173
+ layout:
174
+ flex: 0 0 auto
175
+ properties:
176
+ title: Right
177
+ placement: right
178
+ slots:
179
+ popover:
180
+ blocks:
181
+ - id: popover_pl_right_msg
182
+ type: Paragraph
183
+ properties:
184
+ content: Popover placed at right.
185
+ blocks:
186
+ - id: popover_pl_right_btn
187
+ type: Button
188
+ layout:
189
+ flex: 0 0 auto
190
+ properties:
191
+ title: right
192
+ color: primary
193
+ variant: outlined
194
+ size: small
195
+ - id: popover_pl_bottom
196
+ type: Popover
197
+ layout:
198
+ flex: 0 0 auto
199
+ properties:
200
+ title: Bottom
201
+ placement: bottom
202
+ slots:
203
+ popover:
204
+ blocks:
205
+ - id: popover_pl_bottom_msg
206
+ type: Paragraph
207
+ properties:
208
+ content: Popover placed at bottom (default).
209
+ blocks:
210
+ - id: popover_pl_bottom_btn
211
+ type: Button
212
+ layout:
213
+ flex: 0 0 auto
214
+ properties:
215
+ title: bottom (default)
216
+ color: default
217
+ variant: outlined
218
+ size: small
219
+
220
+ - title: Trigger Modes
221
+ blocks:
222
+ - id: popover_trig_hover
223
+ type: Popover
224
+ layout:
225
+ flex: 0 0 auto
226
+ properties:
227
+ title: Hover Popover
228
+ trigger: hover
229
+ slots:
230
+ popover:
231
+ blocks:
232
+ - id: popover_trig_hover_msg
233
+ type: Paragraph
234
+ properties:
235
+ content: This popover appears on hover (default).
236
+ blocks:
237
+ - id: popover_trig_hover_btn
238
+ type: Button
239
+ layout:
240
+ flex: 0 0 auto
241
+ properties:
242
+ title: Hover (default)
243
+ color: primary
244
+ variant: solid
245
+ - id: popover_trig_click
246
+ type: Popover
247
+ layout:
248
+ flex: 0 0 auto
249
+ properties:
250
+ title: Click Popover
251
+ trigger: click
252
+ slots:
253
+ popover:
254
+ blocks:
255
+ - id: popover_trig_click_msg
256
+ type: Paragraph
257
+ properties:
258
+ content: This popover appears on click. Click outside to close.
259
+ blocks:
260
+ - id: popover_trig_click_btn
261
+ type: Button
262
+ layout:
263
+ flex: 0 0 auto
264
+ properties:
265
+ title: Click me
266
+ color: primary
267
+ variant: outlined
268
+ - id: popover_trig_focus
269
+ type: Popover
270
+ layout:
271
+ flex: 0 0 auto
272
+ properties:
273
+ title: Focus Popover
274
+ trigger: focus
275
+ slots:
276
+ popover:
277
+ blocks:
278
+ - id: popover_trig_focus_msg
279
+ type: Paragraph
280
+ properties:
281
+ content: This popover appears on focus. Tab to the button or click it.
282
+ blocks:
283
+ - id: popover_trig_focus_btn
284
+ type: Button
285
+ layout:
286
+ flex: 0 0 auto
287
+ properties:
288
+ title: Focus (tab to me)
289
+ color: primary
290
+ variant: dashed
291
+
292
+ - title: Background Color
293
+ blocks:
294
+ - id: popover_col_row
295
+ type: Box
296
+ layout:
297
+ gap: 8
298
+ blocks:
299
+ - id: popover_col_default
300
+ type: Popover
301
+ layout:
302
+ flex: 0 0 auto
303
+ properties:
304
+ title: Default Color
305
+ slots:
306
+ popover:
307
+ blocks:
308
+ - id: popover_col_default_msg
309
+ type: Paragraph
310
+ properties:
311
+ content: Default background color.
312
+ blocks:
313
+ - id: popover_col_default_btn
314
+ type: Button
315
+ layout:
316
+ flex: 0 0 auto
317
+ properties:
318
+ title: Default
319
+ color: default
320
+ variant: outlined
321
+ size: small
322
+ - id: popover_col_yellow
323
+ type: Popover
324
+ layout:
325
+ flex: 0 0 auto
326
+ properties:
327
+ title: Light Yellow
328
+ color: '#fffbe6'
329
+ slots:
330
+ popover:
331
+ blocks:
332
+ - id: popover_col_yellow_msg
333
+ type: Paragraph
334
+ properties:
335
+ content: A warm light yellow background.
336
+ blocks:
337
+ - id: popover_col_yellow_btn
338
+ type: Button
339
+ layout:
340
+ flex: 0 0 auto
341
+ properties:
342
+ title: Light Yellow
343
+ color: gold
344
+ variant: outlined
345
+ size: small
346
+ - id: popover_col_blue
347
+ type: Popover
348
+ layout:
349
+ flex: 0 0 auto
350
+ properties:
351
+ title: Light Blue
352
+ color: '#e6f4ff'
353
+ slots:
354
+ popover:
355
+ blocks:
356
+ - id: popover_col_blue_msg
357
+ type: Paragraph
358
+ properties:
359
+ content: A cool light blue background.
360
+ blocks:
361
+ - id: popover_col_blue_btn
362
+ type: Button
363
+ layout:
364
+ flex: 0 0 auto
365
+ properties:
366
+ title: Light Blue
367
+ color: blue
368
+ variant: outlined
369
+ size: small
370
+
371
+ - title: Default Open
372
+ blocks:
373
+ - id: popover_defopen
374
+ type: Popover
375
+ layout:
376
+ flex: 0 0 auto
377
+ properties:
378
+ title: Open by Default
379
+ defaultOpen: true
380
+ placement: right
381
+ slots:
382
+ popover:
383
+ blocks:
384
+ - id: popover_defopen_msg
385
+ type: Paragraph
386
+ properties:
387
+ content: This popover is open by default when the page loads.
388
+ blocks:
389
+ - id: popover_defopen_btn
390
+ type: Button
391
+ layout:
392
+ flex: 0 0 auto
393
+ properties:
394
+ title: Open by default
395
+ color: green
396
+ variant: solid
397
+
398
+ - title: Auto Adjust Overflow
399
+ blocks:
400
+ - id: popover_adj_on
401
+ type: Popover
402
+ layout:
403
+ flex: 0 0 auto
404
+ properties:
405
+ title: Auto Adjust
406
+ autoAdjustOverflow: true
407
+ placement: top
408
+ slots:
409
+ popover:
410
+ blocks:
411
+ - id: popover_adj_on_msg
412
+ type: Paragraph
413
+ properties:
414
+ content: Repositions automatically near viewport edges (default behavior).
415
+ blocks:
416
+ - id: popover_adj_on_btn
417
+ type: Button
418
+ layout:
419
+ flex: 0 0 auto
420
+ properties:
421
+ title: Auto adjust (default)
422
+ color: primary
423
+ variant: solid
424
+ - id: popover_adj_off
425
+ type: Popover
426
+ layout:
427
+ flex: 0 0 auto
428
+ properties:
429
+ title: Fixed Position
430
+ autoAdjustOverflow: false
431
+ placement: top
432
+ slots:
433
+ popover:
434
+ blocks:
435
+ - id: popover_adj_off_msg
436
+ type: Paragraph
437
+ properties:
438
+ content: Stays in the specified position even near edges.
439
+ blocks:
440
+ - id: popover_adj_off_btn
441
+ type: Button
442
+ layout:
443
+ flex: 0 0 auto
444
+ properties:
445
+ title: No auto adjust
446
+ color: default
447
+ variant: outlined
448
+
449
+ - title: Delay Settings
450
+ blocks:
451
+ - id: popover_del_fast
452
+ type: Popover
453
+ layout:
454
+ flex: 0 0 auto
455
+ properties:
456
+ title: Instant
457
+ mouseEnterDelay: 0
458
+ mouseLeaveDelay: 0
459
+ slots:
460
+ popover:
461
+ blocks:
462
+ - id: popover_del_fast_msg
463
+ type: Paragraph
464
+ properties:
465
+ content: No delay on enter or leave.
466
+ blocks:
467
+ - id: popover_del_fast_btn
468
+ type: Button
469
+ layout:
470
+ flex: 0 0 auto
471
+ properties:
472
+ title: No delay
473
+ color: primary
474
+ variant: solid
475
+ - id: popover_del_slow
476
+ type: Popover
477
+ layout:
478
+ flex: 0 0 auto
479
+ properties:
480
+ title: Slow Enter
481
+ mouseEnterDelay: 1
482
+ slots:
483
+ popover:
484
+ blocks:
485
+ - id: popover_del_slow_msg
486
+ type: Paragraph
487
+ properties:
488
+ content: 1 second delay before showing.
489
+ blocks:
490
+ - id: popover_del_slow_btn
491
+ type: Button
492
+ layout:
493
+ flex: 0 0 auto
494
+ properties:
495
+ title: 1s enter delay
496
+ color: primary
497
+ variant: outlined
498
+ - id: popover_del_sticky
499
+ type: Popover
500
+ layout:
501
+ flex: 0 0 auto
502
+ properties:
503
+ title: Sticky
504
+ mouseLeaveDelay: 2
505
+ slots:
506
+ popover:
507
+ blocks:
508
+ - id: popover_del_sticky_msg
509
+ type: Paragraph
510
+ properties:
511
+ content: Stays visible for 2 seconds after mouse leaves.
512
+ blocks:
513
+ - id: popover_del_sticky_btn
514
+ type: Button
515
+ layout:
516
+ flex: 0 0 auto
517
+ properties:
518
+ title: 2s leave delay
519
+ color: primary
520
+ variant: dashed
521
+
522
+ - title: Z-Index
523
+ blocks:
524
+ - id: popover_zindex
525
+ type: Popover
526
+ layout:
527
+ flex: 0 0 auto
528
+ properties:
529
+ title: Custom Z-Index
530
+ zIndex: 2000
531
+ slots:
532
+ popover:
533
+ blocks:
534
+ - id: popover_zindex_msg
535
+ type: Paragraph
536
+ properties:
537
+ content: This popover has a custom z-index of 2000, useful when layering over modals or drawers.
538
+ blocks:
539
+ - id: popover_zindex_btn
540
+ type: Button
541
+ layout:
542
+ flex: 0 0 auto
543
+ properties:
544
+ title: Z-index 2000
545
+ color: primary
546
+ variant: solid
547
+
548
+ - title: Overlay Inner Style
549
+ blocks:
550
+ - id: popover_overlay_style
551
+ type: Popover
552
+ layout:
553
+ flex: 0 0 auto
554
+ properties:
555
+ title: Styled Overlay
556
+ overlayInnerStyle:
557
+ borderRadius: 16
558
+ boxShadow: '0 6px 16px rgba(0, 0, 0, 0.2)'
559
+ slots:
560
+ popover:
561
+ blocks:
562
+ - id: popover_overlay_style_msg
563
+ type: Paragraph
564
+ properties:
565
+ content: Custom inner style with larger border radius and a stronger shadow.
566
+ blocks:
567
+ - id: popover_overlay_style_btn
568
+ type: Button
569
+ layout:
570
+ flex: 0 0 auto
571
+ properties:
572
+ title: Custom overlay style
573
+ color: primary
574
+ variant: solid
575
+ - id: popover_overlay_wide
576
+ type: Popover
577
+ layout:
578
+ flex: 0 0 auto
579
+ properties:
580
+ title: Wide Popover
581
+ overlayInnerStyle:
582
+ width: 400
583
+ padding: 20
584
+ slots:
585
+ popover:
586
+ blocks:
587
+ - id: popover_overlay_wide_msg
588
+ type: Paragraph
589
+ properties:
590
+ content: This popover has a fixed width of 400px and extra padding, useful for displaying larger content like forms or details.
591
+ blocks:
592
+ - id: popover_overlay_wide_btn
593
+ type: Button
594
+ layout:
595
+ flex: 0 0 auto
596
+ properties:
597
+ title: Wide overlay
598
+ color: primary
599
+ variant: outlined
600
+
601
+ - title: onOpenChange Event
602
+ blocks:
603
+ - id: popover_event_open
604
+ type: Popover
605
+ layout:
606
+ flex: 0 0 auto
607
+ properties:
608
+ title: Event Popover
609
+ trigger: click
610
+ events:
611
+ onOpenChange:
612
+ - id: popover_event_open_msg
613
+ type: DisplayMessage
614
+ params:
615
+ content: Popover visibility changed!
616
+ duration: 2
617
+ slots:
618
+ popover:
619
+ blocks:
620
+ - id: popover_event_open_content
621
+ type: Paragraph
622
+ properties:
623
+ content: Opening or closing this popover triggers a DisplayMessage action.
624
+ blocks:
625
+ - id: popover_event_open_btn
626
+ type: Button
627
+ layout:
628
+ flex: 0 0 auto
629
+ properties:
630
+ title: Click to toggle
631
+ color: primary
632
+ variant: solid
633
+ icon: AiOutlineBell
634
+
635
+ - id: popover_event_state
636
+ type: Popover
637
+ layout:
638
+ flex: 0 0 auto
639
+ properties:
640
+ title: Track State
641
+ trigger: click
642
+ events:
643
+ onOpenChange:
644
+ - id: popover_event_state_set
645
+ type: SetState
646
+ params:
647
+ popover_was_opened: true
648
+ slots:
649
+ popover:
650
+ blocks:
651
+ - id: popover_event_state_content
652
+ type: Paragraph
653
+ properties:
654
+ content: This popover uses SetState to track that it was opened.
655
+ blocks:
656
+ - id: popover_event_state_btn
657
+ type: Button
658
+ layout:
659
+ flex: 0 0 auto
660
+ properties:
661
+ title: Track open state
662
+ color: primary
663
+ variant: outlined
664
+
665
+ - title: Rich Popover Content
666
+ blocks:
667
+ - id: popover_rich_profile
668
+ type: Popover
669
+ layout:
670
+ flex: 0 0 auto
671
+ properties:
672
+ title: User Profile
673
+ trigger: click
674
+ slots:
675
+ popover:
676
+ blocks:
677
+ - id: popover_rich_profile_row
678
+ type: Box
679
+ layout:
680
+ gap: 8
681
+ blocks:
682
+ - id: popover_rich_profile_avatar
683
+ type: Avatar
684
+ layout:
685
+ flex: 0 0 auto
686
+ properties:
687
+ content: JD
688
+ color: blue
689
+ - id: popover_rich_profile_info
690
+ type: Box
691
+ blocks:
692
+ - id: popover_rich_profile_name
693
+ type: Title
694
+ properties:
695
+ content: Jane Doe
696
+ level: 5
697
+ - id: popover_rich_profile_email
698
+ type: Paragraph
699
+ properties:
700
+ content: jane.doe@example.com
701
+ blocks:
702
+ - id: popover_rich_profile_btn
703
+ type: Button
704
+ layout:
705
+ flex: 0 0 auto
706
+ properties:
707
+ title: View Profile
708
+ color: primary
709
+ variant: solid
710
+ icon: AiOutlineUser
711
+
712
+ - id: popover_rich_actions
713
+ type: Popover
714
+ layout:
715
+ flex: 0 0 auto
716
+ properties:
717
+ title: Actions
718
+ trigger: click
719
+ slots:
720
+ popover:
721
+ blocks:
722
+ - id: popover_rich_actions_col
723
+ type: Box
724
+ layout:
725
+ gap: 4
726
+ direction: column
727
+ blocks:
728
+ - id: popover_rich_act_edit
729
+ type: Button
730
+ properties:
731
+ title: Edit
732
+ icon: AiOutlineEdit
733
+ color: primary
734
+ variant: text
735
+ block: true
736
+ - id: popover_rich_act_copy
737
+ type: Button
738
+ properties:
739
+ title: Duplicate
740
+ icon: AiOutlineCopy
741
+ color: default
742
+ variant: text
743
+ block: true
744
+ - id: popover_rich_act_del
745
+ type: Button
746
+ properties:
747
+ title: Delete
748
+ icon: AiOutlineDelete
749
+ color: danger
750
+ variant: text
751
+ block: true
752
+ blocks:
753
+ - id: popover_rich_actions_btn
754
+ type: Button
755
+ layout:
756
+ flex: 0 0 auto
757
+ properties:
758
+ title: More
759
+ icon: AiOutlineEllipsis
760
+ color: default
761
+ variant: outlined
762
+
763
+ - title: Theme Token Overrides
764
+ blocks:
765
+ - id: popover_theme_wide
766
+ type: Popover
767
+ layout:
768
+ flex: 0 0 auto
769
+ properties:
770
+ title: Wide Title
771
+ theme:
772
+ titleMinWidth: 300
773
+ slots:
774
+ popover:
775
+ blocks:
776
+ - id: popover_theme_wide_msg
777
+ type: Paragraph
778
+ properties:
779
+ content: This popover has a wider minimum title width of 300px using the titleMinWidth token.
780
+ blocks:
781
+ - id: popover_theme_wide_btn
782
+ type: Button
783
+ layout:
784
+ flex: 0 0 auto
785
+ properties:
786
+ title: Wide title (300px)
787
+ color: primary
788
+ variant: solid
789
+
790
+ - id: popover_theme_radius
791
+ type: Popover
792
+ layout:
793
+ flex: 0 0 auto
794
+ properties:
795
+ title: Large Radius
796
+ theme:
797
+ borderRadiusLG: 20
798
+ slots:
799
+ popover:
800
+ blocks:
801
+ - id: popover_theme_radius_msg
802
+ type: Paragraph
803
+ properties:
804
+ content: Custom border radius of 20px for a softer appearance.
805
+ blocks:
806
+ - id: popover_theme_radius_btn
807
+ type: Button
808
+ layout:
809
+ flex: 0 0 auto
810
+ properties:
811
+ title: Large radius
812
+ color: primary
813
+ variant: outlined
814
+
815
+ - id: popover_theme_bg
816
+ type: Popover
817
+ layout:
818
+ flex: 0 0 auto
819
+ properties:
820
+ title: Custom Background
821
+ slots:
822
+ popover:
823
+ blocks:
824
+ - id: popover_theme_bg_msg
825
+ type: Paragraph
826
+ properties:
827
+ content: Custom elevated background color using the colorBgElevated theme token.
828
+ blocks:
829
+ - id: popover_theme_bg_btn
830
+ type: Button
831
+ layout:
832
+ flex: 0 0 auto
833
+ properties:
834
+ title: Custom background
835
+ color: primary
836
+ variant: dashed
837
+
838
+ - id: popover_theme_padding
839
+ type: Popover
840
+ layout:
841
+ flex: 0 0 auto
842
+ properties:
843
+ title: Extra Padding
844
+ theme:
845
+ innerPadding: 24
846
+ titlePadding: '16px 24px'
847
+ titleMarginBottom: 16
848
+ slots:
849
+ popover:
850
+ blocks:
851
+ - id: popover_theme_padding_msg
852
+ type: Paragraph
853
+ properties:
854
+ content: Increased inner padding (24px), custom title padding, and larger title margin bottom.
855
+ blocks:
856
+ - id: popover_theme_padding_btn
857
+ type: Button
858
+ layout:
859
+ flex: 0 0 auto
860
+ properties:
861
+ title: Extra padding
862
+ color: default
863
+ variant: outlined
864
+
865
+ - id: popover_theme_border
866
+ type: Popover
867
+ layout:
868
+ flex: 0 0 auto
869
+ properties:
870
+ title: Title Border
871
+ theme:
872
+ titleBorderBottom: 1px solid #d9d9d9
873
+ titleMarginBottom: 12
874
+ innerContentPadding: '8px 0'
875
+ slots:
876
+ popover:
877
+ blocks:
878
+ - id: popover_theme_border_msg
879
+ type: Paragraph
880
+ properties:
881
+ content: A visible border under the title using titleBorderBottom, plus innerContentPadding for spacing.
882
+ blocks:
883
+ - id: popover_theme_border_btn
884
+ type: Button
885
+ layout:
886
+ flex: 0 0 auto
887
+ properties:
888
+ title: Title border
889
+ color: default
890
+ variant: outlined
891
+
892
+ - id: popover_theme_zindex
893
+ type: Popover
894
+ layout:
895
+ flex: 0 0 auto
896
+ properties:
897
+ title: Custom Z-Index Token
898
+ theme:
899
+ zIndexPopup: 2050
900
+ slots:
901
+ popover:
902
+ blocks:
903
+ - id: popover_theme_zindex_msg
904
+ type: Paragraph
905
+ properties:
906
+ content: The zIndexPopup theme token sets the popover z-index at the theme level (default 1030).
907
+ blocks:
908
+ - id: popover_theme_zindex_btn
909
+ type: Button
910
+ layout:
911
+ flex: 0 0 auto
912
+ properties:
913
+ title: Z-index token
914
+ color: default
915
+ variant: dashed
916
+
917
+ - title: CSS Key Classes
918
+ blocks:
919
+ - id: popover_css_element
920
+ type: Popover
921
+ layout:
922
+ flex: 0 0 auto
923
+ class:
924
+ element: cursor-pointer
925
+ properties:
926
+ title: Element CSS Key
927
+ trigger: click
928
+ slots:
929
+ popover:
930
+ blocks:
931
+ - id: popover_css_element_msg
932
+ type: Paragraph
933
+ properties:
934
+ content: The element CSS key targets the outer Popover wrapper. Here it adds a pointer cursor on the trigger area.
935
+ blocks:
936
+ - id: popover_css_element_btn
937
+ type: Button
938
+ layout:
939
+ flex: 0 0 auto
940
+ properties:
941
+ title: Element key
942
+ color: primary
943
+ variant: solid
944
+
945
+ - id: popover_css_inner
946
+ type: Popover
947
+ layout:
948
+ flex: 0 0 auto
949
+ class:
950
+ inner: shadow-xl rounded-xl
951
+ properties:
952
+ title: Inner CSS Key
953
+ slots:
954
+ popover:
955
+ blocks:
956
+ - id: popover_css_inner_msg
957
+ type: Paragraph
958
+ properties:
959
+ content: The inner CSS key targets the popover inner container. Here it applies extra shadow and rounded corners.
960
+ blocks:
961
+ - id: popover_css_inner_btn
962
+ type: Button
963
+ layout:
964
+ flex: 0 0 auto
965
+ properties:
966
+ title: Inner key
967
+ color: primary
968
+ variant: outlined
969
+
970
+ - id: popover_css_title
971
+ type: Popover
972
+ layout:
973
+ flex: 0 0 auto
974
+ class:
975
+ title: font-bold text-blue-600 border-b border-border pb-2
976
+ properties:
977
+ title: Title CSS Key
978
+ slots:
979
+ popover:
980
+ blocks:
981
+ - id: popover_css_title_msg
982
+ type: Paragraph
983
+ properties:
984
+ content: The title CSS key styles the popover title area with blue text, bold weight, and a bottom border.
985
+ blocks:
986
+ - id: popover_css_title_btn
987
+ type: Button
988
+ layout:
989
+ flex: 0 0 auto
990
+ properties:
991
+ title: Title key
992
+ color: blue
993
+ variant: outlined
994
+
995
+ - id: popover_css_content
996
+ type: Popover
997
+ layout:
998
+ flex: 0 0 auto
999
+ class:
1000
+ content: bg-bg-layout p-4 rounded-md
1001
+ properties:
1002
+ title: Content CSS Key
1003
+ slots:
1004
+ popover:
1005
+ blocks:
1006
+ - id: popover_css_content_msg
1007
+ type: Paragraph
1008
+ properties:
1009
+ content: The content CSS key targets the popover content area. Here it adds a gray background, padding, and rounded corners.
1010
+ blocks:
1011
+ - id: popover_css_content_btn
1012
+ type: Button
1013
+ layout:
1014
+ flex: 0 0 auto
1015
+ properties:
1016
+ title: Content key
1017
+ color: default
1018
+ variant: outlined
1019
+
1020
+ - title: Popover as User Card
1021
+ blocks:
1022
+ - id: popover_usercard
1023
+ type: Popover
1024
+ layout:
1025
+ flex: 0 0 auto
1026
+ properties:
1027
+ trigger: click
1028
+ overlayInnerStyle:
1029
+ width: 320
1030
+ padding: 0
1031
+ slots:
1032
+ popover:
1033
+ blocks:
1034
+ - id: popover_usercard_header
1035
+ type: Box
1036
+ class: bg-bg-layout p-4 rounded-t-lg
1037
+ layout:
1038
+ gap: 12
1039
+ align: center
1040
+ blocks:
1041
+ - id: popover_usercard_avatar
1042
+ type: Avatar
1043
+ layout:
1044
+ flex: 0 0 auto
1045
+ properties:
1046
+ icon: AiOutlineUser
1047
+ size: 48
1048
+ color: '#fff'
1049
+ backgroundColor: '#1677ff'
1050
+ - id: popover_usercard_info
1051
+ type: Box
1052
+ layout:
1053
+ direction: column
1054
+ gap: 2
1055
+ blocks:
1056
+ - id: popover_usercard_name
1057
+ type: Title
1058
+ properties:
1059
+ content: Sarah Chen
1060
+ level: 5
1061
+ - id: popover_usercard_role
1062
+ type: Paragraph
1063
+ properties:
1064
+ content: Product Manager
1065
+ - id: popover_usercard_details
1066
+ type: Descriptions
1067
+ class: p-4
1068
+ properties:
1069
+ size: small
1070
+ column: 1
1071
+ items:
1072
+ - label: Email
1073
+ value: sarah.chen@company.com
1074
+ - label: Team
1075
+ value: Product
1076
+ - label: Location
1077
+ value: San Francisco, CA
1078
+ - id: popover_usercard_actions_row
1079
+ type: Box
1080
+ class: px-4 pb-4
1081
+ layout:
1082
+ gap: 8
1083
+ blocks:
1084
+ - id: popover_usercard_msg_btn
1085
+ type: Button
1086
+ layout:
1087
+ flex: 1 1 0
1088
+ properties:
1089
+ title: Message
1090
+ icon: AiOutlineMail
1091
+ color: primary
1092
+ variant: solid
1093
+ size: small
1094
+ events:
1095
+ onClick:
1096
+ - id: popover_usercard_msg_action
1097
+ type: DisplayMessage
1098
+ params:
1099
+ content: Opening chat with Sarah...
1100
+ duration: 2
1101
+ - id: popover_usercard_profile_btn
1102
+ type: Button
1103
+ layout:
1104
+ flex: 1 1 0
1105
+ properties:
1106
+ title: View Profile
1107
+ icon: AiOutlineUser
1108
+ color: default
1109
+ variant: outlined
1110
+ size: small
1111
+ events:
1112
+ onClick:
1113
+ - id: popover_usercard_profile_action
1114
+ type: Link
1115
+ params:
1116
+ url: https://example.com/profile
1117
+ newTab: true
1118
+ blocks:
1119
+ - id: popover_usercard_trigger
1120
+ type: Box
1121
+ layout:
1122
+ gap: 8
1123
+ align: center
1124
+ blocks:
1125
+ - id: popover_usercard_trigger_avatar
1126
+ type: Avatar
1127
+ layout:
1128
+ flex: 0 0 auto
1129
+ properties:
1130
+ content: SC
1131
+ color: '#fff'
1132
+ backgroundColor: '#1677ff'
1133
+ - id: popover_usercard_trigger_name
1134
+ type: Paragraph
1135
+ layout:
1136
+ flex: 0 0 auto
1137
+ properties:
1138
+ content: Sarah Chen
1139
+
1140
+ - title: Popover as Quick Actions Menu
1141
+ blocks:
1142
+ - id: popover_quickmenu
1143
+ type: Popover
1144
+ layout:
1145
+ flex: 0 0 auto
1146
+ properties:
1147
+ trigger: click
1148
+ placement: bottomRight
1149
+ overlayInnerStyle:
1150
+ width: 200
1151
+ padding: 8
1152
+ events:
1153
+ onOpenChange:
1154
+ - id: popover_quickmenu_state
1155
+ type: SetState
1156
+ params:
1157
+ menu_toggled: true
1158
+ slots:
1159
+ popover:
1160
+ blocks:
1161
+ - id: popover_quickmenu_col
1162
+ type: Box
1163
+ layout:
1164
+ direction: column
1165
+ gap: 2
1166
+ blocks:
1167
+ - id: popover_quickmenu_new
1168
+ type: Button
1169
+ properties:
1170
+ title: New Document
1171
+ icon: AiOutlineFileAdd
1172
+ color: primary
1173
+ variant: text
1174
+ block: true
1175
+ events:
1176
+ onClick:
1177
+ - id: popover_quickmenu_new_action
1178
+ type: DisplayMessage
1179
+ params:
1180
+ content: Creating new document...
1181
+ duration: 2
1182
+ - id: popover_quickmenu_upload
1183
+ type: Button
1184
+ properties:
1185
+ title: Upload File
1186
+ icon: AiOutlineUpload
1187
+ color: default
1188
+ variant: text
1189
+ block: true
1190
+ events:
1191
+ onClick:
1192
+ - id: popover_quickmenu_upload_action
1193
+ type: DisplayMessage
1194
+ params:
1195
+ content: Opening file picker...
1196
+ duration: 2
1197
+ - id: popover_quickmenu_divider
1198
+ type: Divider
1199
+ properties:
1200
+ dashed: true
1201
+ - id: popover_quickmenu_import
1202
+ type: Button
1203
+ properties:
1204
+ title: Import from URL
1205
+ icon: AiOutlineLink
1206
+ color: default
1207
+ variant: text
1208
+ block: true
1209
+ events:
1210
+ onClick:
1211
+ - id: popover_quickmenu_import_action
1212
+ type: DisplayMessage
1213
+ params:
1214
+ content: Enter a URL to import...
1215
+ duration: 2
1216
+ - id: popover_quickmenu_template
1217
+ type: Button
1218
+ properties:
1219
+ title: Use Template
1220
+ icon: AiOutlineAppstore
1221
+ color: default
1222
+ variant: text
1223
+ block: true
1224
+ blocks:
1225
+ - id: popover_quickmenu_trigger
1226
+ type: Button
1227
+ layout:
1228
+ flex: 0 0 auto
1229
+ properties:
1230
+ title: Create New
1231
+ icon: AiOutlinePlus
1232
+ color: primary
1233
+ variant: solid
1234
+
1235
+ - title: Popover as Help Tooltip
1236
+ blocks:
1237
+ - id: popover_help_row
1238
+ type: Box
1239
+ layout:
1240
+ gap: 16
1241
+ align: center
1242
+ blocks:
1243
+ - id: popover_help_label
1244
+ type: Title
1245
+ layout:
1246
+ flex: 0 0 auto
1247
+ properties:
1248
+ content: Monthly Budget
1249
+ level: 5
1250
+ - id: popover_help_icon
1251
+ type: Popover
1252
+ layout:
1253
+ flex: 0 0 auto
1254
+ properties:
1255
+ title: About Monthly Budget
1256
+ placement: right
1257
+ overlayInnerStyle:
1258
+ width: 300
1259
+ slots:
1260
+ popover:
1261
+ blocks:
1262
+ - id: popover_help_desc
1263
+ type: Paragraph
1264
+ properties:
1265
+ content: The monthly budget is the maximum amount your team can spend on resources each billing cycle. It resets on the 1st of every month.
1266
+ - id: popover_help_note
1267
+ type: Paragraph
1268
+ class: text-text-secondary text-sm
1269
+ properties:
1270
+ content: You will receive a warning notification when 80% of the budget is used.
1271
+ - id: popover_help_link
1272
+ type: Button
1273
+ properties:
1274
+ title: Learn more
1275
+ color: primary
1276
+ variant: link
1277
+ size: small
1278
+ events:
1279
+ onClick:
1280
+ - id: popover_help_link_action
1281
+ type: Link
1282
+ params:
1283
+ url: https://example.com/docs/budget
1284
+ newTab: true
1285
+ blocks:
1286
+ - id: popover_help_trigger
1287
+ type: Icon
1288
+ layout:
1289
+ flex: 0 0 auto
1290
+ properties:
1291
+ name: AiOutlineQuestionCircle
1292
+ color: '#8c8c8c'
1293
+ size: 18
1294
+ - id: popover_help_input
1295
+ type: NumberInput
1296
+ layout:
1297
+ flex: 1 1 0
1298
+ properties:
1299
+ label:
1300
+ disabled: true
1301
+ prefix: $