@wordpress/components 23.2.0 → 23.3.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 (377) hide show
  1. package/CHANGELOG.md +35 -1
  2. package/CONTRIBUTING.md +1 -1
  3. package/build/alignment-matrix-control/utils.js +2 -2
  4. package/build/alignment-matrix-control/utils.js.map +1 -1
  5. package/build/autocomplete/autocompleter-ui.js +1 -3
  6. package/build/autocomplete/autocompleter-ui.js.map +1 -1
  7. package/build/border-box-control/border-box-control-linked-button/component.js.map +1 -1
  8. package/build/border-box-control/border-box-control-linked-button/hook.js.map +1 -1
  9. package/build/border-control/border-control-dropdown/component.js +8 -4
  10. package/build/border-control/border-control-dropdown/component.js.map +1 -1
  11. package/build/button/deprecated.js +8 -6
  12. package/build/button/deprecated.js.map +1 -1
  13. package/build/button/index.js +52 -23
  14. package/build/button/index.js.map +1 -1
  15. package/build/button/types.js +6 -0
  16. package/build/button/types.js.map +1 -0
  17. package/build/color-list-picker/index.js.map +1 -1
  18. package/build/color-list-picker/types.js +6 -0
  19. package/build/color-list-picker/types.js.map +1 -0
  20. package/build/color-palette/index.js +9 -61
  21. package/build/color-palette/index.js.map +1 -1
  22. package/build/color-palette/index.native.js +24 -9
  23. package/build/color-palette/index.native.js.map +1 -1
  24. package/build/color-palette/utils.js +103 -0
  25. package/build/color-palette/utils.js.map +1 -0
  26. package/build/custom-gradient-picker/gradient-bar/utils.js +1 -1
  27. package/build/custom-gradient-picker/gradient-bar/utils.js.map +1 -1
  28. package/build/date-time/date/index.js.map +1 -1
  29. package/build/dropdown/index.js +20 -8
  30. package/build/dropdown/index.js.map +1 -1
  31. package/build/form-token-field/token.js +1 -1
  32. package/build/form-token-field/token.js.map +1 -1
  33. package/build/gradient-picker/index.js +9 -1
  34. package/build/gradient-picker/index.js.map +1 -1
  35. package/build/h-stack/component.js +0 -1
  36. package/build/h-stack/component.js.map +1 -1
  37. package/build/input-control/input-field.js +4 -2
  38. package/build/input-control/input-field.js.map +1 -1
  39. package/build/keyboard-shortcuts/index.js +44 -16
  40. package/build/keyboard-shortcuts/index.js.map +1 -1
  41. package/build/keyboard-shortcuts/types.js +6 -0
  42. package/build/keyboard-shortcuts/types.js.map +1 -0
  43. package/build/modal/index.js +1 -1
  44. package/build/modal/index.js.map +1 -1
  45. package/build/notice/index.js +16 -18
  46. package/build/notice/index.js.map +1 -1
  47. package/build/notice/list.js +23 -8
  48. package/build/notice/list.js.map +1 -1
  49. package/build/notice/types.js +6 -0
  50. package/build/notice/types.js.map +1 -0
  51. package/build/number-control/index.js +1 -1
  52. package/build/number-control/index.js.map +1 -1
  53. package/build/query-controls/author-select.js +7 -3
  54. package/build/query-controls/author-select.js.map +1 -1
  55. package/build/query-controls/category-select.js +7 -3
  56. package/build/query-controls/category-select.js.map +1 -1
  57. package/build/query-controls/index.js +68 -20
  58. package/build/query-controls/index.js.map +1 -1
  59. package/build/query-controls/terms.js +4 -3
  60. package/build/query-controls/terms.js.map +1 -1
  61. package/build/query-controls/types.js +6 -0
  62. package/build/query-controls/types.js.map +1 -0
  63. package/build/slot-fill/bubbles-virtually/fill.js +1 -0
  64. package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
  65. package/build/slot-fill/slot.js +1 -0
  66. package/build/slot-fill/slot.js.map +1 -1
  67. package/build/slot-fill/use-slot.js +1 -11
  68. package/build/slot-fill/use-slot.js.map +1 -1
  69. package/build/snackbar/index.js.map +1 -1
  70. package/build/snackbar/list.js.map +1 -1
  71. package/build/tab-panel/index.js +36 -8
  72. package/build/tab-panel/index.js.map +1 -1
  73. package/build/tree-grid/index.js +1 -1
  74. package/build/tree-grid/index.js.map +1 -1
  75. package/build/tree-select/index.js +2 -6
  76. package/build/tree-select/index.js.map +1 -1
  77. package/build-module/alignment-matrix-control/utils.js +2 -2
  78. package/build-module/alignment-matrix-control/utils.js.map +1 -1
  79. package/build-module/autocomplete/autocompleter-ui.js +1 -2
  80. package/build-module/autocomplete/autocompleter-ui.js.map +1 -1
  81. package/build-module/border-box-control/border-box-control-linked-button/component.js.map +1 -1
  82. package/build-module/border-box-control/border-box-control-linked-button/hook.js.map +1 -1
  83. package/build-module/border-control/border-control-dropdown/component.js +7 -4
  84. package/build-module/border-control/border-control-dropdown/component.js.map +1 -1
  85. package/build-module/button/deprecated.js +8 -5
  86. package/build-module/button/deprecated.js.map +1 -1
  87. package/build-module/button/index.js +51 -22
  88. package/build-module/button/index.js.map +1 -1
  89. package/build-module/button/types.js +2 -0
  90. package/build-module/button/types.js.map +1 -0
  91. package/build-module/color-list-picker/index.js.map +1 -1
  92. package/build-module/color-list-picker/types.js +2 -0
  93. package/build-module/color-list-picker/types.js.map +1 -0
  94. package/build-module/color-palette/index.js +7 -54
  95. package/build-module/color-palette/index.js.map +1 -1
  96. package/build-module/color-palette/index.native.js +24 -8
  97. package/build-module/color-palette/index.native.js.map +1 -1
  98. package/build-module/color-palette/utils.js +79 -0
  99. package/build-module/color-palette/utils.js.map +1 -0
  100. package/build-module/custom-gradient-picker/gradient-bar/utils.js +1 -1
  101. package/build-module/custom-gradient-picker/gradient-bar/utils.js.map +1 -1
  102. package/build-module/date-time/date/index.js +1 -1
  103. package/build-module/date-time/date/index.js.map +1 -1
  104. package/build-module/dropdown/index.js +19 -8
  105. package/build-module/dropdown/index.js.map +1 -1
  106. package/build-module/form-token-field/token.js +1 -1
  107. package/build-module/form-token-field/token.js.map +1 -1
  108. package/build-module/gradient-picker/index.js +9 -2
  109. package/build-module/gradient-picker/index.js.map +1 -1
  110. package/build-module/h-stack/component.js +0 -1
  111. package/build-module/h-stack/component.js.map +1 -1
  112. package/build-module/input-control/input-field.js +4 -2
  113. package/build-module/input-control/input-field.js.map +1 -1
  114. package/build-module/keyboard-shortcuts/index.js +48 -16
  115. package/build-module/keyboard-shortcuts/index.js.map +1 -1
  116. package/build-module/keyboard-shortcuts/types.js +2 -0
  117. package/build-module/keyboard-shortcuts/types.js.map +1 -0
  118. package/build-module/modal/index.js +1 -1
  119. package/build-module/modal/index.js.map +1 -1
  120. package/build-module/notice/index.js +14 -15
  121. package/build-module/notice/index.js.map +1 -1
  122. package/build-module/notice/list.js +23 -8
  123. package/build-module/notice/list.js.map +1 -1
  124. package/build-module/notice/types.js +2 -0
  125. package/build-module/notice/types.js.map +1 -0
  126. package/build-module/number-control/index.js +1 -1
  127. package/build-module/number-control/index.js.map +1 -1
  128. package/build-module/query-controls/author-select.js +7 -3
  129. package/build-module/query-controls/author-select.js.map +1 -1
  130. package/build-module/query-controls/category-select.js +8 -4
  131. package/build-module/query-controls/category-select.js.map +1 -1
  132. package/build-module/query-controls/index.js +64 -20
  133. package/build-module/query-controls/index.js.map +1 -1
  134. package/build-module/query-controls/terms.js +8 -4
  135. package/build-module/query-controls/terms.js.map +1 -1
  136. package/build-module/query-controls/types.js +2 -0
  137. package/build-module/query-controls/types.js.map +1 -0
  138. package/build-module/slot-fill/bubbles-virtually/fill.js +1 -0
  139. package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
  140. package/build-module/slot-fill/slot.js +1 -0
  141. package/build-module/slot-fill/slot.js.map +1 -1
  142. package/build-module/slot-fill/use-slot.js +2 -12
  143. package/build-module/slot-fill/use-slot.js.map +1 -1
  144. package/build-module/snackbar/index.js.map +1 -1
  145. package/build-module/snackbar/list.js.map +1 -1
  146. package/build-module/tab-panel/index.js +36 -8
  147. package/build-module/tab-panel/index.js.map +1 -1
  148. package/build-module/tree-grid/index.js +1 -1
  149. package/build-module/tree-grid/index.js.map +1 -1
  150. package/build-module/tree-select/index.js +2 -6
  151. package/build-module/tree-select/index.js.map +1 -1
  152. package/build-style/style-rtl.css +5 -0
  153. package/build-style/style.css +5 -0
  154. package/build-types/border-box-control/border-box-control/hook.d.ts +1 -1
  155. package/build-types/border-box-control/border-box-control-linked-button/component.d.ts +1 -1
  156. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +171 -160
  157. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts.map +1 -1
  158. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +1 -1
  159. package/build-types/border-control/border-control/hook.d.ts +1 -1
  160. package/build-types/border-control/border-control-dropdown/component.d.ts.map +1 -1
  161. package/build-types/border-control/border-control-dropdown/hook.d.ts +1 -1
  162. package/build-types/button/deprecated.d.ts +143 -7
  163. package/build-types/button/deprecated.d.ts.map +1 -1
  164. package/build-types/button/index.d.ts +20 -3
  165. package/build-types/button/index.d.ts.map +1 -1
  166. package/build-types/button/stories/index.d.ts +20 -0
  167. package/build-types/button/stories/index.d.ts.map +1 -0
  168. package/build-types/button/test/index.d.ts +2 -0
  169. package/build-types/button/test/index.d.ts.map +1 -0
  170. package/build-types/button/types.d.ts +134 -0
  171. package/build-types/button/types.d.ts.map +1 -0
  172. package/build-types/color-list-picker/index.d.ts +5 -0
  173. package/build-types/color-list-picker/index.d.ts.map +1 -0
  174. package/build-types/color-list-picker/types.d.ts +42 -0
  175. package/build-types/color-list-picker/types.d.ts.map +1 -0
  176. package/build-types/color-palette/index.d.ts +2 -4
  177. package/build-types/color-palette/index.d.ts.map +1 -1
  178. package/build-types/color-palette/stories/index.d.ts +2 -2
  179. package/build-types/color-palette/styles.d.ts +1 -1
  180. package/build-types/color-palette/types.d.ts +1 -1
  181. package/build-types/color-palette/types.d.ts.map +1 -1
  182. package/build-types/color-palette/utils.d.ts +14 -0
  183. package/build-types/color-palette/utils.d.ts.map +1 -0
  184. package/build-types/color-picker/styles.d.ts +2 -2
  185. package/build-types/date-time/date/index.d.ts.map +1 -1
  186. package/build-types/date-time/date/styles.d.ts +3 -3
  187. package/build-types/dropdown/index.d.ts +4 -4
  188. package/build-types/dropdown/index.d.ts.map +1 -1
  189. package/build-types/dropdown/stories/index.d.ts.map +1 -1
  190. package/build-types/dropdown/types.d.ts +9 -10
  191. package/build-types/dropdown/types.d.ts.map +1 -1
  192. package/build-types/font-size-picker/styles.d.ts +2 -2
  193. package/build-types/h-stack/component.d.ts +0 -1
  194. package/build-types/h-stack/component.d.ts.map +1 -1
  195. package/build-types/input-control/input-field.d.ts.map +1 -1
  196. package/build-types/keyboard-shortcuts/index.d.ts +38 -0
  197. package/build-types/keyboard-shortcuts/index.d.ts.map +1 -0
  198. package/build-types/keyboard-shortcuts/stories/index.d.ts +12 -0
  199. package/build-types/keyboard-shortcuts/stories/index.d.ts.map +1 -0
  200. package/build-types/keyboard-shortcuts/test/index.d.ts +2 -0
  201. package/build-types/keyboard-shortcuts/test/index.d.ts.map +1 -0
  202. package/build-types/keyboard-shortcuts/types.d.ts +48 -0
  203. package/build-types/keyboard-shortcuts/types.d.ts.map +1 -0
  204. package/build-types/modal/index.d.ts.map +1 -1
  205. package/build-types/navigator/navigator-back-button/component.d.ts +1 -1
  206. package/build-types/navigator/navigator-back-button/hook.d.ts +2 -2
  207. package/build-types/navigator/navigator-button/component.d.ts +1 -1
  208. package/build-types/navigator/navigator-button/hook.d.ts +2 -2
  209. package/build-types/notice/index.d.ts +16 -0
  210. package/build-types/notice/index.d.ts.map +1 -0
  211. package/build-types/notice/list.d.ts +32 -0
  212. package/build-types/notice/list.d.ts.map +1 -0
  213. package/build-types/notice/stories/index.d.ts +17 -0
  214. package/build-types/notice/stories/index.d.ts.map +1 -0
  215. package/build-types/notice/test/index.d.ts +2 -0
  216. package/build-types/notice/test/index.d.ts.map +1 -0
  217. package/build-types/notice/test/list.d.ts +2 -0
  218. package/build-types/notice/test/list.d.ts.map +1 -0
  219. package/build-types/notice/types.d.ts +128 -0
  220. package/build-types/notice/types.d.ts.map +1 -0
  221. package/build-types/number-control/styles/number-control-styles.d.ts +2 -2
  222. package/build-types/number-control/styles/number-control-styles.d.ts.map +1 -1
  223. package/build-types/placeholder/stories/index.d.ts.map +1 -1
  224. package/build-types/query-controls/author-select.d.ts +4 -0
  225. package/build-types/query-controls/author-select.d.ts.map +1 -0
  226. package/build-types/query-controls/category-select.d.ts +4 -0
  227. package/build-types/query-controls/category-select.d.ts.map +1 -0
  228. package/build-types/query-controls/index.d.ts +30 -0
  229. package/build-types/query-controls/index.d.ts.map +1 -0
  230. package/build-types/query-controls/stories/index.d.ts +13 -0
  231. package/build-types/query-controls/stories/index.d.ts.map +1 -0
  232. package/build-types/query-controls/terms.d.ts +13 -0
  233. package/build-types/query-controls/terms.d.ts.map +1 -0
  234. package/build-types/query-controls/test/terms.d.ts +2 -0
  235. package/build-types/query-controls/test/terms.d.ts.map +1 -0
  236. package/build-types/query-controls/types.d.ts +131 -0
  237. package/build-types/query-controls/types.d.ts.map +1 -0
  238. package/build-types/range-control/index.d.ts +1 -1
  239. package/build-types/slot-fill/bubbles-virtually/fill.d.ts.map +1 -1
  240. package/build-types/slot-fill/use-slot.d.ts.map +1 -1
  241. package/build-types/snackbar/index.d.ts +9 -2
  242. package/build-types/snackbar/index.d.ts.map +1 -1
  243. package/build-types/snackbar/list.d.ts.map +1 -1
  244. package/build-types/snackbar/types.d.ts +15 -88
  245. package/build-types/snackbar/types.d.ts.map +1 -1
  246. package/build-types/tab-panel/index.d.ts.map +1 -1
  247. package/build-types/tab-panel/types.d.ts +1 -1
  248. package/build-types/tab-panel/types.d.ts.map +1 -1
  249. package/build-types/toggle-group-control/stories/index.d.ts.map +1 -1
  250. package/build-types/tree-select/index.d.ts.map +1 -1
  251. package/build-types/ui/form-group/form-group.d.ts +2 -2
  252. package/package.json +18 -17
  253. package/src/alignment-matrix-control/utils.tsx +2 -2
  254. package/src/autocomplete/autocompleter-ui.js +1 -2
  255. package/src/autocomplete/test/index.js +1 -5
  256. package/src/border-box-control/border-box-control-linked-button/component.tsx +1 -1
  257. package/src/border-box-control/border-box-control-linked-button/hook.ts +1 -1
  258. package/src/border-control/border-control-dropdown/component.tsx +9 -8
  259. package/src/box-control/test/index.js +11 -35
  260. package/src/button/README.md +49 -55
  261. package/src/button/{deprecated.js → deprecated.tsx} +19 -4
  262. package/src/button/{index.js → index.tsx} +95 -34
  263. package/src/button/stories/index.tsx +106 -0
  264. package/src/button/style.scss +3 -2
  265. package/src/button/test/{index.js → index.tsx} +30 -7
  266. package/src/button/types.ts +138 -0
  267. package/src/checkbox-control/test/index.tsx +1 -5
  268. package/src/color-list-picker/{index.js → index.tsx} +3 -2
  269. package/src/color-list-picker/types.ts +46 -0
  270. package/src/color-palette/README.md +1 -1
  271. package/src/color-palette/index.native.js +11 -4
  272. package/src/color-palette/index.tsx +11 -67
  273. package/src/color-palette/test/index.tsx +4 -14
  274. package/src/color-palette/test/utils.ts +1 -1
  275. package/src/color-palette/types.ts +1 -1
  276. package/src/color-palette/utils.ts +98 -0
  277. package/src/color-picker/test/index.js +6 -15
  278. package/src/combobox-control/test/index.js +1 -6
  279. package/src/confirm-dialog/test/index.js +9 -29
  280. package/src/custom-gradient-picker/gradient-bar/utils.js +1 -1
  281. package/src/date-time/date/index.tsx +2 -1
  282. package/src/date-time/date/test/index.tsx +2 -8
  283. package/src/date-time/time/test/index.tsx +9 -29
  284. package/src/dimension-control/test/index.test.js +2 -8
  285. package/src/disabled/test/index.tsx +1 -5
  286. package/src/draggable/test/index.native.js +4 -4
  287. package/src/dropdown/README.md +1 -8
  288. package/src/dropdown/index.tsx +17 -6
  289. package/src/dropdown/stories/index.tsx +3 -3
  290. package/src/dropdown/test/index.tsx +2 -8
  291. package/src/dropdown/types.ts +9 -10
  292. package/src/dropdown-menu/README.md +1 -1
  293. package/src/dropdown-menu/stories/index.js +96 -27
  294. package/src/dropdown-menu/test/index.js +2 -8
  295. package/src/external-link/test/index.tsx +1 -6
  296. package/src/focal-point-picker/test/index.js +3 -11
  297. package/src/font-size-picker/test/index.tsx +14 -44
  298. package/src/form-file-upload/test/index.tsx +2 -17
  299. package/src/form-toggle/test/index.tsx +1 -5
  300. package/src/form-token-field/test/index.tsx +80 -163
  301. package/src/form-token-field/token.tsx +1 -1
  302. package/src/gradient-picker/index.js +15 -4
  303. package/src/guide/test/index.js +5 -17
  304. package/src/h-stack/component.tsx +0 -1
  305. package/src/higher-order/with-filters/test/index.js +24 -24
  306. package/src/higher-order/with-focus-outside/test/index.js +11 -25
  307. package/src/higher-order/with-focus-return/test/index.js +1 -5
  308. package/src/input-control/input-field.tsx +3 -1
  309. package/src/input-control/test/index.js +1 -6
  310. package/src/isolated-event-container/test/index.js +2 -8
  311. package/src/keyboard-shortcuts/README.md +1 -1
  312. package/src/keyboard-shortcuts/index.tsx +93 -0
  313. package/src/keyboard-shortcuts/stories/index.tsx +60 -0
  314. package/src/keyboard-shortcuts/test/{index.js → index.tsx} +16 -6
  315. package/src/keyboard-shortcuts/types.ts +51 -0
  316. package/src/modal/index.tsx +1 -2
  317. package/src/navigable-container/test/navigable-menu.js +5 -17
  318. package/src/navigable-container/test/tababble-container.js +3 -11
  319. package/src/navigation/test/index.js +3 -11
  320. package/src/navigator/test/index.tsx +6 -20
  321. package/src/notice/README.md +89 -42
  322. package/src/notice/{index.js → index.tsx} +28 -20
  323. package/src/notice/list.tsx +72 -0
  324. package/src/notice/stories/index.tsx +119 -0
  325. package/src/notice/test/__snapshots__/{index.js.snap → index.tsx.snap} +0 -0
  326. package/src/notice/test/{index.js → index.tsx} +7 -4
  327. package/src/notice/test/{list.js → list.tsx} +0 -0
  328. package/src/notice/types.ts +136 -0
  329. package/src/number-control/index.tsx +1 -1
  330. package/src/number-control/test/index.tsx +28 -86
  331. package/src/panel/test/body.js +2 -8
  332. package/src/placeholder/stories/index.tsx +1 -0
  333. package/src/query-controls/README.md +56 -56
  334. package/src/query-controls/author-select.tsx +37 -0
  335. package/src/query-controls/category-select.tsx +46 -0
  336. package/src/query-controls/index.tsx +192 -0
  337. package/src/query-controls/stories/index.tsx +205 -0
  338. package/src/query-controls/terms.ts +57 -0
  339. package/src/query-controls/test/{terms.js → terms.ts} +36 -20
  340. package/src/query-controls/types.ts +150 -0
  341. package/src/select-control/test/select-control.tsx +1 -6
  342. package/src/slot-fill/bubbles-virtually/fill.js +1 -0
  343. package/src/slot-fill/slot.js +1 -1
  344. package/src/slot-fill/use-slot.js +6 -16
  345. package/src/snackbar/index.tsx +6 -5
  346. package/src/snackbar/list.tsx +4 -2
  347. package/src/snackbar/types.ts +18 -92
  348. package/src/tab-panel/index.tsx +38 -16
  349. package/src/tab-panel/style.scss +8 -0
  350. package/src/tab-panel/test/index.tsx +35 -7
  351. package/src/tab-panel/types.ts +1 -1
  352. package/src/theme/test/index.tsx +4 -4
  353. package/src/toggle-group-control/stories/index.tsx +1 -0
  354. package/src/toggle-group-control/test/index.tsx +7 -23
  355. package/src/toolbar/stories/index.js +75 -72
  356. package/src/tools-panel/stories/index.js +3 -0
  357. package/src/tools-panel/test/index.js +1 -1
  358. package/src/tree-grid/index.js +1 -1
  359. package/src/tree-select/index.tsx +3 -6
  360. package/src/ui/context/test/context-connect.tsx +2 -0
  361. package/src/ui/context/test/wordpress-component.tsx +2 -0
  362. package/src/unit-control/test/index.tsx +21 -74
  363. package/src/utils/hooks/test/use-latest-ref.js +15 -18
  364. package/tsconfig.json +1 -4
  365. package/tsconfig.tsbuildinfo +1 -1
  366. package/build-types/radio-context/index.d.ts +0 -6
  367. package/build-types/radio-context/index.d.ts.map +0 -1
  368. package/src/button/stories/index.js +0 -179
  369. package/src/keyboard-shortcuts/index.js +0 -56
  370. package/src/notice/list.js +0 -48
  371. package/src/notice/stories/index.js +0 -46
  372. package/src/query-controls/author-select.js +0 -23
  373. package/src/query-controls/category-select.js +0 -31
  374. package/src/query-controls/index.js +0 -122
  375. package/src/query-controls/terms.js +0 -40
  376. package/src/toolbar/stories/toolbar-button.js +0 -32
  377. package/src/toolbar/stories/toolbar-group.js +0 -33
@@ -9,18 +9,18 @@ import type { DropdownProps } from './types';
9
9
  * const MyDropdown = () => (
10
10
  * <Dropdown
11
11
  * className="my-container-class-name"
12
- * contentClassName="my-popover-content-classname"
13
- * position="bottom right"
12
+ * contentClassName="my-dropdown-content-classname"
13
+ * popoverProps={ { placement: 'bottom-start' } }
14
14
  * renderToggle={ ( { isOpen, onToggle } ) => (
15
15
  * <Button
16
16
  * variant="primary"
17
17
  * onClick={ onToggle }
18
18
  * aria-expanded={ isOpen }
19
19
  * >
20
- * Toggle Popover!
20
+ * Toggle Dropdown!
21
21
  * </Button>
22
22
  * ) }
23
- * renderContent={ () => <div>This is the content of the popover.</div> }
23
+ * renderContent={ () => <div>This is the content of the dropdown.</div> }
24
24
  * />
25
25
  * );
26
26
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dropdown/index.tsx"],"names":[],"mappings":";AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AA0I7C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,QAAQ,+FAAoC,CAAC;AAE1D,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dropdown/index.tsx"],"names":[],"mappings":";AAiBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAoJ7C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,QAAQ,+FAAoC,CAAC;AAE1D,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dropdown/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEtE;;GAEG;AACH,OAAO,QAAQ,MAAM,IAAI,CAAC;AAI1B,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,QAAQ,CAmBzC,CAAC;AACF,eAAe,IAAI,CAAC;AAUpB,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,QAAQ,CAAwB,CAAC;AAW9E;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,cAAc,CAAE,OAAO,QAAQ,CAE5D,CAAC;AAUF;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,cAAc,CAAE,OAAO,QAAQ,CAE1D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dropdown/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEtE;;GAEG;AACH,OAAO,QAAQ,MAAM,IAAI,CAAC;AAI1B,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,QAAQ,CAoBzC,CAAC;AACF,eAAe,IAAI,CAAC;AAUpB,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,QAAQ,CAAwB,CAAC;AAU9E;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,cAAc,CAAE,OAAO,QAAQ,CAE5D,CAAC;AAUF;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,cAAc,CAAE,OAAO,QAAQ,CAE1D,CAAC"}
@@ -74,16 +74,6 @@ export declare type DropdownProps = {
74
74
  * e.g.: the ability to have the popover without an arrow.
75
75
  */
76
76
  popoverProps?: Omit<ComponentPropsWithoutRef<typeof Popover>, 'children'>;
77
- /**
78
- * The direction in which the popover should open
79
- * relative to its parent node.
80
- * Specify a y- and an x-axis as a space-separated string.
81
- * Supports "top", "bottom" y-axis,
82
- * and "left", "center", "right" x-axis.
83
- *
84
- * @default 'top center'
85
- */
86
- position?: PopoverProps['position'];
87
77
  /**
88
78
  * A callback invoked to render the content of the dropdown menu.
89
79
  * Its first argument is the same as the renderToggle prop.
@@ -105,6 +95,15 @@ export declare type DropdownProps = {
105
95
  * The style of the global container.
106
96
  */
107
97
  style?: CSSProperties;
98
+ /**
99
+ * Legacy way to specify the popover's position with respect to its anchor.
100
+ * For details about the possible values, see the `Popover` component's docs.
101
+ * _Note: this prop is deprecated. Use the `popoverProps.placement` prop
102
+ * instead._
103
+ *
104
+ * @deprecated
105
+ */
106
+ position?: PopoverProps['position'];
108
107
  };
109
108
  export {};
110
109
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/dropdown/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,wBAAwB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEhF;;GAEG;AACH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,aAAK,aAAa,GAAG;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEF,oBAAY,2BAA2B,GAAG;IACzC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;CAC1C,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;IACxC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,CAAE,QAAQ,EAAE,OAAO,KAAM,IAAI,CAAC;IACzC;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,IAAI,CAClB,wBAAwB,CAAE,OAAO,OAAO,CAAE,EAC1C,UAAU,CACV,CAAC;IACF;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAE,UAAU,CAAE,CAAC;IACtC;;;OAGG;IACH,aAAa,EAAE,CAAE,KAAK,EAAE,aAAa,KAAM,SAAS,CAAC;IACrD;;;;;;;;;;OAUG;IACH,YAAY,EAAE,CAAE,KAAK,EAAE,aAAa,KAAM,SAAS,CAAC;IACpD;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;CACtB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/dropdown/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,wBAAwB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEhF;;GAEG;AACH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,aAAK,aAAa,GAAG;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEF,oBAAY,2BAA2B,GAAG;IACzC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;CAC1C,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;IACxC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,CAAE,QAAQ,EAAE,OAAO,KAAM,IAAI,CAAC;IACzC;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,IAAI,CAClB,wBAAwB,CAAE,OAAO,OAAO,CAAE,EAC1C,UAAU,CACV,CAAC;IACF;;;OAGG;IACH,aAAa,EAAE,CAAE,KAAK,EAAE,aAAa,KAAM,SAAS,CAAC;IACrD;;;;;;;;;;OAUG;IACH,YAAY,EAAE,CAAE,KAAK,EAAE,aAAa,KAAM,SAAS,CAAC;IACpD;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAE,UAAU,CAAE,CAAC;CACtC,CAAC"}
@@ -19,9 +19,9 @@ export declare const Controls: import("@emotion/styled").StyledComponent<{
19
19
  } & {
20
20
  __nextHasNoMarginBottom: boolean;
21
21
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
22
- export declare const ResetButton: import("@emotion/styled").StyledComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<any> & {
22
+ export declare const ResetButton: import("@emotion/styled").StyledComponent<((import("../button/types").ButtonProps & import("react").RefAttributes<any>) & {
23
23
  theme?: import("@emotion/react").Theme | undefined;
24
- } & {
24
+ }) & {
25
25
  size: FontSizePickerProps['size'];
26
26
  }, {}, {}>;
27
27
  //# sourceMappingURL=styles.d.ts.map
@@ -4,7 +4,6 @@
4
4
  *
5
5
  * `HStack` can render anything inside.
6
6
  *
7
- * @example
8
7
  * ```jsx
9
8
  * import {
10
9
  * __experimentalHStack as HStack,
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/h-stack/component.tsx"],"names":[],"mappings":";AAiBA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,MAAM;;;6CAAgD,CAAC;AAEpE,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/h-stack/component.tsx"],"names":[],"mappings":";AAiBA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,MAAM;;;6CAAgD,CAAC;AAEpE,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"input-field.d.ts","sourceRoot":"","sources":["../../src/input-control/input-field.tsx"],"names":[],"mappings":";AAyBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAiN/C,QAAA,MAAM,kBAAkB,uVAA2B,CAAC;AAEpD,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"input-field.d.ts","sourceRoot":"","sources":["../../src/input-control/input-field.tsx"],"names":[],"mappings":";AAyBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAmN/C,QAAA,MAAM,kBAAkB,uVAA2B,CAAC;AAEpD,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,38 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Internal dependencies
4
+ */
5
+ import type { KeyboardShortcutsProps } from './types';
6
+ /**
7
+ * `KeyboardShortcuts` is a component which handles keyboard sequences during the lifetime of the rendering element.
8
+ *
9
+ * When passed children, it will capture key events which occur on or within the children. If no children are passed, events are captured on the document.
10
+ *
11
+ * It uses the [Mousetrap](https://craig.is/killing/mice) library to implement keyboard sequence bindings.
12
+ *
13
+ * ```jsx
14
+ * import { KeyboardShortcuts } from '@wordpress/components';
15
+ * import { useState } from '@wordpress/element';
16
+ *
17
+ * const MyKeyboardShortcuts = () => {
18
+ * const [ isAllSelected, setIsAllSelected ] = useState( false );
19
+ * const selectAll = () => {
20
+ * setIsAllSelected( true );
21
+ * };
22
+ *
23
+ * return (
24
+ * <div>
25
+ * <KeyboardShortcuts
26
+ * shortcuts={ {
27
+ * 'mod+a': selectAll,
28
+ * } }
29
+ * />
30
+ * [cmd/ctrl + A] Combination pressed? { isAllSelected ? 'Yes' : 'No' }
31
+ * </div>
32
+ * );
33
+ * };
34
+ * ```
35
+ */
36
+ declare function KeyboardShortcuts({ children, shortcuts, bindGlobal, eventName, }: KeyboardShortcutsProps): JSX.Element;
37
+ export default KeyboardShortcuts;
38
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/keyboard-shortcuts/index.tsx"],"names":[],"mappings":";AAMA;;GAEG;AACH,OAAO,KAAK,EAAyB,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAkB7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,iBAAS,iBAAiB,CAAE,EAC3B,QAAQ,EACR,SAAS,EACT,UAAU,EACV,SAAS,GACT,EAAE,sBAAsB,eA4BxB;AAED,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type { ComponentMeta, ComponentStory } from '@storybook/react';
5
+ /**
6
+ * Internal dependencies
7
+ */
8
+ import KeyboardShortcuts from '..';
9
+ declare const meta: ComponentMeta<typeof KeyboardShortcuts>;
10
+ export default meta;
11
+ export declare const Default: ComponentStory<typeof KeyboardShortcuts>;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/keyboard-shortcuts/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEtE;;GAEG;AACH,OAAO,iBAAiB,MAAM,IAAI,CAAC;AAEnC,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,iBAAiB,CAOlD,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,0CAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/keyboard-shortcuts/test/index.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,48 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * WordPress dependencies
4
+ */
5
+ import type { useKeyboardShortcut } from '@wordpress/compose';
6
+ declare type WPKeyboardShortcutConfig = NonNullable<Parameters<typeof useKeyboardShortcut>[2]>;
7
+ export declare type KeyboardShortcutProps = {
8
+ shortcut: string | string[];
9
+ /**
10
+ * @see {@link https://craig.is/killing/mice Mousetrap documentation}
11
+ */
12
+ callback: (event: Mousetrap.ExtendedKeyboardEvent, combo: string) => void;
13
+ } & Pick<WPKeyboardShortcutConfig, 'bindGlobal' | 'eventName' | 'target'>;
14
+ export declare type KeyboardShortcutsProps = {
15
+ /**
16
+ * Elements to render, upon whom key events are to be monitored.
17
+ */
18
+ children?: React.ReactNode;
19
+ /**
20
+ * An object of shortcut bindings, where each key is a keyboard combination,
21
+ * the value of which is the callback to be invoked when the key combination is pressed.
22
+ *
23
+ * The value of each shortcut should be a consistent function reference, not an anonymous function.
24
+ * Otherwise, the callback will not be correctly unbound when the component unmounts.
25
+ *
26
+ * The `KeyboardShortcuts` component will not update to reflect a changed `shortcuts` prop.
27
+ * If you need to change shortcuts, mount a separate `KeyboardShortcuts` element,
28
+ * which can be achieved by assigning a unique `key` prop.
29
+ *
30
+ * @see {@link https://craig.is/killing/mice Mousetrap documentation}
31
+ */
32
+ shortcuts: Record<string, KeyboardShortcutProps['callback']>;
33
+ /**
34
+ * By default, a callback will not be invoked if the key combination occurs in an editable field.
35
+ * Pass `bindGlobal` as `true` if the key events should be observed globally, including within editable fields.
36
+ *
37
+ * Tip: If you need some but not all keyboard events to be observed globally,
38
+ * simply render two distinct `KeyboardShortcuts` elements, one with and one without the `bindGlobal` prop.
39
+ */
40
+ bindGlobal?: KeyboardShortcutProps['bindGlobal'];
41
+ /**
42
+ * By default, a callback is invoked in response to the `keydown` event.
43
+ * To override this, pass `eventName` with the name of a specific keyboard event.
44
+ */
45
+ eventName?: KeyboardShortcutProps['eventName'];
46
+ };
47
+ export {};
48
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/keyboard-shortcuts/types.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAG9D,aAAK,wBAAwB,GAAG,WAAW,CAC1C,UAAU,CAAE,OAAO,mBAAmB,CAAE,CAAE,CAAC,CAAE,CAC7C,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IACnC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B;;OAEG;IACH,QAAQ,EAAE,CAAE,KAAK,EAAE,SAAS,CAAC,qBAAqB,EAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;CAC5E,GAAG,IAAI,CAAE,wBAAwB,EAAE,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAE,CAAC;AAE5E,oBAAY,sBAAsB,GAAG;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;;;;;;;;;OAYG;IACH,SAAS,EAAE,MAAM,CAAE,MAAM,EAAE,qBAAqB,CAAE,UAAU,CAAE,CAAE,CAAC;IACjE;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAE,YAAY,CAAE,CAAC;IACnD;;;OAGG;IACH,SAAS,CAAC,EAAE,qBAAqB,CAAE,WAAW,CAAE,CAAC;CACjD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modal/index.tsx"],"names":[],"mappings":";AAkCA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AA0L1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,KAAK,uGAAiC,CAAC;AAEpD,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modal/index.tsx"],"names":[],"mappings":";AAkCA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAyL1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,KAAK,uGAAiC,CAAC;AAEpD,eAAe,KAAK,CAAC"}
@@ -34,7 +34,7 @@
34
34
  * ```
35
35
  */
36
36
  export declare const NavigatorBackButton: import("../../ui/context").WordPressComponent<"button", Omit<{
37
- variant?: "link" | "secondary" | "tertiary" | "primary" | undefined;
37
+ variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
38
38
  }, "href"> & {
39
39
  children: import("react").ReactNode;
40
40
  } & import("react").RefAttributes<any>, true>;
@@ -5,7 +5,7 @@
5
5
  import { WordPressComponentProps } from '../../ui/context';
6
6
  import type { NavigatorBackButtonProps } from '../types';
7
7
  export declare function useNavigatorBackButton(props: WordPressComponentProps<NavigatorBackButtonProps, 'button'>): {
8
- variant?: "link" | "secondary" | "tertiary" | "primary" | undefined;
8
+ variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
9
9
  children: import("react").ReactNode;
10
10
  defaultValue?: string | number | readonly string[] | undefined;
11
11
  onChange?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
@@ -273,7 +273,7 @@ export declare function useNavigatorBackButton(props: WordPressComponentProps<Na
273
273
  formMethod?: string | undefined;
274
274
  formNoValidate?: boolean | undefined;
275
275
  formTarget?: string | undefined;
276
- as: keyof JSX.IntrinsicElements | import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<any>>;
276
+ as: keyof JSX.IntrinsicElements | import("react").ForwardRefExoticComponent<import("../../button/types").ButtonProps & import("react").RefAttributes<any>>;
277
277
  onClick: import("react").MouseEventHandler<HTMLButtonElement>;
278
278
  };
279
279
  //# sourceMappingURL=hook.d.ts.map
@@ -33,7 +33,7 @@
33
33
  * ```
34
34
  */
35
35
  export declare const NavigatorButton: import("../../ui/context").WordPressComponent<"button", Omit<{
36
- variant?: "link" | "secondary" | "tertiary" | "primary" | undefined;
36
+ variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
37
37
  }, "href"> & {
38
38
  children: import("react").ReactNode;
39
39
  } & {
@@ -5,7 +5,7 @@
5
5
  import { WordPressComponentProps } from '../../ui/context';
6
6
  import type { NavigatorButtonProps } from '../types';
7
7
  export declare function useNavigatorButton(props: WordPressComponentProps<NavigatorButtonProps, 'button'>): {
8
- variant?: "link" | "secondary" | "tertiary" | "primary" | undefined;
8
+ variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
9
9
  children: import("react").ReactNode;
10
10
  defaultValue?: string | number | readonly string[] | undefined;
11
11
  onChange?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
@@ -273,7 +273,7 @@ export declare function useNavigatorButton(props: WordPressComponentProps<Naviga
273
273
  formMethod?: string | undefined;
274
274
  formNoValidate?: boolean | undefined;
275
275
  formTarget?: string | undefined;
276
- as: keyof JSX.IntrinsicElements | import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<any>>;
276
+ as: keyof JSX.IntrinsicElements | import("react").ForwardRefExoticComponent<import("../../button/types").ButtonProps & import("react").RefAttributes<any>>;
277
277
  onClick: import("react").MouseEventHandler<HTMLButtonElement>;
278
278
  };
279
279
  //# sourceMappingURL=hook.d.ts.map
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import type { NoticeProps } from './types';
3
+ /**
4
+ * `Notice` is a component used to communicate feedback to the user.
5
+ *
6
+ *```jsx
7
+ * import { Notice } from `@wordpress/components`;
8
+ *
9
+ * const MyNotice = () => (
10
+ * <Notice status="error">An unknown error occurred.</Notice>
11
+ * );
12
+ * ```
13
+ */
14
+ declare function Notice({ className, status, children, spokenMessage, onRemove, isDismissible, actions, politeness, __unstableHTML, onDismiss, }: NoticeProps): JSX.Element;
15
+ export default Notice;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/notice/index.tsx"],"names":[],"mappings":";AAiBA,OAAO,KAAK,EAAgB,WAAW,EAAE,MAAM,SAAS,CAAC;AAqCzD;;;;;;;;;;GAUG;AACH,iBAAS,MAAM,CAAE,EAChB,SAAS,EACT,MAAe,EACf,QAAQ,EACR,aAAwB,EACxB,QAAe,EACf,aAAoB,EACpB,OAAY,EACZ,UAA2C,EAC3C,cAAc,EAId,SAAgB,GAChB,EAAE,WAAW,eAoFb;AAED,eAAe,MAAM,CAAC"}
@@ -0,0 +1,32 @@
1
+ /// <reference types="react" />
2
+ import type { WordPressComponentProps } from '../ui/context';
3
+ import type { NoticeListProps } from './types';
4
+ /**
5
+ * `NoticeList` is a component used to render a collection of notices.
6
+ *
7
+ *```jsx
8
+ * import { Notice, NoticeList } from `@wordpress/components`;
9
+ *
10
+ * const MyNoticeList = () => {
11
+ * const [ notices, setNotices ] = useState( [
12
+ * {
13
+ * id: 'second-notice',
14
+ * content: 'second notice content',
15
+ * },
16
+ * {
17
+ * id: 'fist-notice',
18
+ * content: 'first notice content',
19
+ * },
20
+ * ] );
21
+ *
22
+ * const removeNotice = ( id ) => {
23
+ * setNotices( notices.filter( ( notice ) => notice.id !== id ) );
24
+ * };
25
+ *
26
+ * return <NoticeList notices={ notices } onRemove={ removeNotice } />;
27
+ *};
28
+ *```
29
+ */
30
+ declare function NoticeList({ notices, onRemove, className, children, }: WordPressComponentProps<NoticeListProps, 'div', false>): JSX.Element;
31
+ export default NoticeList;
32
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/notice/list.tsx"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI/C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,iBAAS,UAAU,CAAE,EACpB,OAAO,EACP,QAAe,EACf,SAAS,EACT,QAAQ,GACR,EAAE,uBAAuB,CAAE,eAAe,EAAE,KAAK,EAAE,KAAK,CAAE,eAwB1D;AAED,eAAe,UAAU,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type { ComponentMeta, ComponentStory } from '@storybook/react';
5
+ /**
6
+ * Internal dependencies
7
+ */
8
+ import Notice from '..';
9
+ import NoticeList from '../list';
10
+ declare const meta: ComponentMeta<typeof Notice>;
11
+ export default meta;
12
+ export declare const Default: ComponentStory<typeof Notice>;
13
+ export declare const WithCustomSpokenMessage: ComponentStory<typeof Notice>;
14
+ export declare const WithJSXChildren: ComponentStory<typeof Notice>;
15
+ export declare const WithActions: ComponentStory<typeof Notice>;
16
+ export declare const NoticeListSubcomponent: ComponentStory<typeof NoticeList>;
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/notice/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOtE;;GAEG;AACH,OAAO,MAAM,MAAM,IAAI,CAAC;AAExB,OAAO,UAAU,MAAM,SAAS,CAAC;AAGjC,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,MAAM,CASvC,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,+BAAsB,CAAC;AAK3C,eAAO,MAAM,uBAAuB,+BAAsB,CAAC;AAO3D,eAAO,MAAM,eAAe,+BAAsB,CAAC;AAiBnD,eAAO,MAAM,WAAW,+BAAsB,CAAC;AAqB/C,eAAO,MAAM,sBAAsB,EAAE,cAAc,CAClD,OAAO,UAAU,CAgCjB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/notice/test/index.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/notice/test/list.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,128 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type { MouseEventHandler, ReactNode } from 'react';
5
+ declare type CommonNoticeActionProps = {
6
+ label: string;
7
+ className?: string;
8
+ noDefaultClasses?: boolean;
9
+ variant?: 'primary' | 'secondary' | 'link';
10
+ };
11
+ declare type NoticeActionWithURL = CommonNoticeActionProps & {
12
+ url: string;
13
+ onClick?: never;
14
+ };
15
+ declare type NoticeActionWithOnClick = CommonNoticeActionProps & {
16
+ url?: never;
17
+ onClick: MouseEventHandler<HTMLButtonElement>;
18
+ };
19
+ export declare type NoticeAction = NoticeActionWithURL | NoticeActionWithOnClick;
20
+ export declare type NoticeChildren = string | JSX.Element;
21
+ export declare type NoticeProps = {
22
+ /**
23
+ * A CSS `class` to give to the wrapper element.
24
+ */
25
+ className?: string;
26
+ /**
27
+ * The displayed message of a notice. Also used as the spoken message for
28
+ * assistive technology, unless `spokenMessage` is provided as an alternative message.
29
+ */
30
+ children: ReactNode;
31
+ /**
32
+ * Used to provide a custom spoken message in place of the `children` default.
33
+ *
34
+ * @default `children`
35
+ */
36
+ spokenMessage?: ReactNode;
37
+ /**
38
+ * Determines the color of the notice: `warning` (yellow),
39
+ * `success` (green), `error` (red), or `'info'`.
40
+ * By default `'info'` will be blue, but if there is a parent Theme component
41
+ * with an accent color prop, the notice will take on that color instead.
42
+ *
43
+ * @default 'info'
44
+ */
45
+ status?: 'warning' | 'success' | 'error' | 'info';
46
+ /**
47
+ * Function called when dismissing the notice
48
+ *
49
+ * @default noop
50
+ */
51
+ onRemove?: () => void;
52
+ /**
53
+ * A politeness level for the notice's spoken message. Should be provided as
54
+ * one of the valid options for an `aria-live` attribute value.
55
+ *
56
+ * A value of `'assertive'` is to be used for important, and usually
57
+ * time-sensitive, information. It will interrupt anything else the screen
58
+ * reader is announcing in that moment.
59
+ * A value of `'polite'` is to be used for advisory information. It should
60
+ * not interrupt what the screen reader is announcing in that moment
61
+ * (the "speech queue") or interrupt the current task.
62
+ *
63
+ * Note that this value should be considered a suggestion; assistive
64
+ * technologies may override it based on internal heuristics.
65
+ *
66
+ * @see https://www.w3.org/TR/wai-aria-1.1/#aria-live
67
+ *
68
+ * @default 'assertive' for 'error' status, 'polite' for all other statuses
69
+ */
70
+ politeness?: 'polite' | 'assertive';
71
+ /**
72
+ * Whether the notice should be dismissible or not
73
+ *
74
+ * @default true
75
+ */
76
+ isDismissible?: boolean;
77
+ /**
78
+ * A deprecated alternative to `onRemove`. This prop is kept for
79
+ * compatibilty reasons but should be avoided.
80
+ *
81
+ * @default noop
82
+ */
83
+ onDismiss?: () => void;
84
+ /**
85
+ * An array of action objects. Each member object should contain:
86
+ *
87
+ * - `label`: `string` containing the text of the button/link
88
+ * - `url`: `string` OR `onClick`: `( event: SyntheticEvent ) => void` to specify
89
+ * what the action does.
90
+ * - `className`: `string` (optional) to add custom classes to the button styles.
91
+ * - `noDefaultClasses`: `boolean` (optional) A value of `true` will remove all
92
+ * default styling.
93
+ * - `variant`: `'primary' | 'secondary' | 'link'` (optional) You can denote a
94
+ * primary button action for a notice by passing a value of `primary`.
95
+ *
96
+ * The default appearance of an action button is inferred based on whether
97
+ * `url` or `onClick` are provided, rendering the button as a link if
98
+ * appropriate. If both props are provided, `url` takes precedence, and the
99
+ * action button will render as an anchor tag.
100
+ *
101
+ * @default []
102
+ */
103
+ actions?: Array<NoticeAction>;
104
+ /**
105
+ * Determines whether or not the message should be parsed as custom HTML
106
+ * instead of a string.
107
+ */
108
+ __unstableHTML?: boolean;
109
+ };
110
+ export declare type NoticeListProps = {
111
+ /**
112
+ * Array of notices to render.
113
+ */
114
+ notices: Array<Omit<NoticeProps, 'children'> & {
115
+ id: string;
116
+ content: string;
117
+ }>;
118
+ /**
119
+ * Function called when a notice should be removed / dismissed.
120
+ */
121
+ onRemove?: (id: string) => void;
122
+ /**
123
+ * Children to be rendered inside the notice list.
124
+ */
125
+ children?: ReactNode;
126
+ };
127
+ export {};
128
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/notice/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1D,aAAK,uBAAuB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,CAAC;CAC3C,CAAC;AAIF,aAAK,mBAAmB,GAAG,uBAAuB,GAAG;IACpD,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,KAAK,CAAC;CAChB,CAAC;AACF,aAAK,uBAAuB,GAAG,uBAAuB,GAAG;IACxD,GAAG,CAAC,EAAE,KAAK,CAAC;IACZ,OAAO,EAAE,iBAAiB,CAAE,iBAAiB,CAAE,CAAC;CAChD,CAAC;AAEF,oBAAY,YAAY,GAAG,mBAAmB,GAAG,uBAAuB,CAAC;AAEzE,oBAAY,cAAc,GAAG,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;AAElD,oBAAY,WAAW,GAAG;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;IAClD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;;;;;;;;;;;;;;;;OAiBG;IACH,UAAU,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;IACpC;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB;;;;;;;;;;;;;;;;;;OAkBG;IACH,OAAO,CAAC,EAAE,KAAK,CAAE,YAAY,CAAE,CAAC;IAChC;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC7B;;OAEG;IACH,OAAO,EAAE,KAAK,CACb,IAAI,CAAE,WAAW,EAAE,UAAU,CAAE,GAAG;QACjC,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;KAChB,CACD,CAAC;IACF;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAE,EAAE,EAAE,MAAM,KAAM,IAAI,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC"}
@@ -5,7 +5,7 @@ export declare const Input: import("@emotion/styled").StyledComponent<import("..
5
5
  } & {
6
6
  hideHTMLArrows: boolean;
7
7
  }, {}, {}>;
8
- export declare const SpinButton: import("@emotion/styled").StyledComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<any> & {
8
+ export declare const SpinButton: import("@emotion/styled").StyledComponent<((import("../../button/types").ButtonProps & import("react").RefAttributes<any>) & {
9
9
  theme?: import("@emotion/react").Theme | undefined;
10
- } & Pick<NumberControlProps, "size">, {}, {}>;
10
+ }) & Pick<NumberControlProps, "size">, {}, {}>;
11
11
  //# sourceMappingURL=number-control-styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"number-control-styles.d.ts","sourceRoot":"","sources":["../../../src/number-control/styles/number-control-styles.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAoBnD,eAAO,MAAM,KAAK;;;oBAlB8C,OAAO;UAoBtE,CAAC;AAgBF,eAAO,MAAM,UAAU;;6CAKtB,CAAC"}
1
+ {"version":3,"file":"number-control-styles.d.ts","sourceRoot":"","sources":["../../../src/number-control/styles/number-control-styles.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAoBnD,eAAO,MAAM,KAAK;;;oBAlB8C,OAAO;UAoBtE,CAAC;AAgBF,eAAO,MAAM,UAAU;;8CAKtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/placeholder/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQtE;;GAEG;AACH,OAAO,WAAW,MAAM,KAAK,CAAC;AAK9B,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,WAAW,CAiB5C,CAAC;AACF,eAAe,IAAI,CAAC;AAmBpB,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,WAAW,CAEvD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/placeholder/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQtE;;GAEG;AACH,OAAO,WAAW,MAAM,KAAK,CAAC;AAK9B,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,WAAW,CAiB5C,CAAC;AACF,eAAe,IAAI,CAAC;AAoBpB,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,WAAW,CAEvD,CAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { AuthorSelectProps } from './types';
3
+ export default function AuthorSelect({ label, noOptionLabel, authorList, selectedAuthorId, onChange: onChangeProp, }: AuthorSelectProps): JSX.Element | null;
4
+ //# sourceMappingURL=author-select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"author-select.d.ts","sourceRoot":"","sources":["../../src/query-controls/author-select.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,EACrC,KAAK,EACL,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,QAAQ,EAAE,YAAY,GACtB,EAAE,iBAAiB,sBAsBnB"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { CategorySelectProps } from './types';
3
+ export default function CategorySelect({ label, noOptionLabel, categoriesList, selectedCategoryId, onChange: onChangeProp, ...props }: CategorySelectProps): JSX.Element;
4
+ //# sourceMappingURL=category-select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"category-select.d.ts","sourceRoot":"","sources":["../../src/query-controls/category-select.tsx"],"names":[],"mappings":";AAWA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAE,EACvC,KAAK,EACL,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,QAAQ,EAAE,YAAY,EACtB,GAAG,KAAK,EACR,EAAE,mBAAmB,eAyBrB"}
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ import type { QueryControlsProps } from './types';
3
+ /**
4
+ * Controls to query for posts.
5
+ *
6
+ * ```jsx
7
+ * const MyQueryControls = () => (
8
+ * <QueryControls
9
+ * { ...{ maxItems, minItems, numberOfItems, order, orderBy } }
10
+ * onOrderByChange={ ( newOrderBy ) => {
11
+ * updateQuery( { orderBy: newOrderBy } )
12
+ * }
13
+ * onOrderChange={ ( newOrder ) => {
14
+ * updateQuery( { order: newOrder } )
15
+ * }
16
+ * categoriesList={ categories }
17
+ * selectedCategoryId={ category }
18
+ * onCategoryChange={ ( newCategory ) => {
19
+ * updateQuery( { category: newCategory } )
20
+ * }
21
+ * onNumberOfItemsChange={ ( newNumberOfItems ) => {
22
+ * updateQuery( { numberOfItems: newNumberOfItems } )
23
+ * } }
24
+ * />
25
+ * );
26
+ * ```
27
+ */
28
+ export declare function QueryControls({ authorList, selectedAuthorId, numberOfItems, order, orderBy, maxItems, minItems, onAuthorChange, onNumberOfItemsChange, onOrderChange, onOrderByChange, ...props }: QueryControlsProps): JSX.Element;
29
+ export default QueryControls;
30
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/query-controls/index.tsx"],"names":[],"mappings":";AAaA,OAAO,KAAK,EACX,kBAAkB,EAGlB,MAAM,SAAS,CAAC;AAkBjB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAAE,EAC9B,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,KAAK,EACL,OAAO,EACP,QAA4B,EAC5B,QAA4B,EAC5B,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,eAAe,EAGf,GAAG,KAAK,EACR,EAAE,kBAAkB,eAkHpB;AAED,eAAe,aAAa,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type { ComponentMeta, ComponentStory } from '@storybook/react';
5
+ /**
6
+ * Internal dependencies
7
+ */
8
+ import QueryControls from '..';
9
+ declare const meta: ComponentMeta<typeof QueryControls>;
10
+ export default meta;
11
+ export declare const Default: ComponentStory<typeof QueryControls>;
12
+ export declare const SelectSingleCategory: ComponentStory<typeof QueryControls>;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/query-controls/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOtE;;GAEG;AACH,OAAO,aAAa,MAAM,IAAI,CAAC;AAO/B,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,aAAa,CAgB9C,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,aAAa,CAuEzD,CAAC;AA8EF,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAE,OAAO,aAAa,CACrC,CAAC"}