@wordpress/components 32.1.1-next.v.0 → 32.2.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 (830) hide show
  1. package/AGENTS.md +17 -0
  2. package/CHANGELOG.md +35 -0
  3. package/CLAUDE.md +1 -0
  4. package/build/angle-picker-control/angle-circle.cjs +2 -2
  5. package/build/angle-picker-control/angle-circle.cjs.map +2 -2
  6. package/build/autocomplete/index.cjs +1 -1
  7. package/build/autocomplete/index.cjs.map +2 -2
  8. package/build/avatar/component.cjs +99 -0
  9. package/build/avatar/component.cjs.map +7 -0
  10. package/build/avatar/index.cjs +37 -0
  11. package/build/avatar/index.cjs.map +7 -0
  12. package/build/avatar/types.cjs +19 -0
  13. package/build/avatar/types.cjs.map +7 -0
  14. package/build/avatar-group/component.cjs +60 -0
  15. package/build/avatar-group/component.cjs.map +7 -0
  16. package/build/avatar-group/index.cjs +37 -0
  17. package/build/avatar-group/index.cjs.map +7 -0
  18. package/build/avatar-group/types.cjs +19 -0
  19. package/build/avatar-group/types.cjs.map +7 -0
  20. package/build/base-control/index.cjs.map +1 -1
  21. package/build/base-control/styles/base-control-styles.cjs +1 -2
  22. package/build/base-control/styles/base-control-styles.cjs.map +2 -2
  23. package/build/border-box-control/styles.cjs +2 -4
  24. package/build/border-box-control/styles.cjs.map +2 -2
  25. package/build/border-control/styles.cjs +1 -2
  26. package/build/border-control/styles.cjs.map +2 -2
  27. package/build/box-control/styles/box-control-icon-styles.cjs +8 -16
  28. package/build/box-control/styles/box-control-icon-styles.cjs.map +2 -2
  29. package/build/box-control/styles/box-control-styles.cjs +5 -10
  30. package/build/box-control/styles/box-control-styles.cjs.map +2 -2
  31. package/build/card/get-padding-by-size.cjs +1 -2
  32. package/build/card/get-padding-by-size.cjs.map +2 -2
  33. package/build/card/styles.cjs +8 -16
  34. package/build/card/styles.cjs.map +2 -2
  35. package/build/clipboard-button/index.cjs +1 -1
  36. package/build/clipboard-button/index.cjs.map +2 -2
  37. package/build/color-picker/color-copy-button.cjs +1 -1
  38. package/build/color-picker/color-copy-button.cjs.map +2 -2
  39. package/build/confirm-dialog/component.cjs +2 -2
  40. package/build/confirm-dialog/component.cjs.map +2 -2
  41. package/build/confirm-dialog/styles.cjs +1 -2
  42. package/build/confirm-dialog/styles.cjs.map +2 -2
  43. package/build/context/context-system-provider.cjs.map +1 -1
  44. package/build/custom-gradient-picker/gradient-bar/control-points.cjs +2 -2
  45. package/build/custom-gradient-picker/gradient-bar/control-points.cjs.map +2 -2
  46. package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.cjs +2 -4
  47. package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.cjs.map +2 -2
  48. package/build/custom-select-control-v2/styles.cjs +1 -2
  49. package/build/custom-select-control-v2/styles.cjs.map +2 -2
  50. package/build/date-time/date/index.cjs +1 -1
  51. package/build/date-time/date/index.cjs.map +2 -2
  52. package/build/date-time/date/styles.cjs +2 -4
  53. package/build/date-time/date/styles.cjs.map +2 -2
  54. package/build/date-time/date-time/styles.cjs +1 -2
  55. package/build/date-time/date-time/styles.cjs.map +2 -2
  56. package/build/date-time/time/styles.cjs +3 -6
  57. package/build/date-time/time/styles.cjs.map +2 -2
  58. package/build/date-time/utils.cjs +1 -1
  59. package/build/date-time/utils.cjs.map +2 -2
  60. package/build/disabled/context.cjs +30 -0
  61. package/build/disabled/context.cjs.map +7 -0
  62. package/build/disabled/index.cjs +13 -5
  63. package/build/disabled/index.cjs.map +3 -3
  64. package/build/disabled/styles/disabled-styles.cjs +1 -2
  65. package/build/disabled/styles/disabled-styles.cjs.map +2 -2
  66. package/build/divider/styles.cjs +1 -2
  67. package/build/divider/styles.cjs.map +2 -2
  68. package/build/dropdown/index.cjs +1 -1
  69. package/build/dropdown/index.cjs.map +2 -2
  70. package/build/elevation/styles.cjs +1 -2
  71. package/build/elevation/styles.cjs.map +2 -2
  72. package/build/external-link/index.cjs +5 -1
  73. package/build/external-link/index.cjs.map +2 -2
  74. package/build/flex/styles.cjs +5 -10
  75. package/build/flex/styles.cjs.map +2 -2
  76. package/build/focal-point-picker/styles/focal-point-picker-style.cjs +6 -12
  77. package/build/focal-point-picker/styles/focal-point-picker-style.cjs.map +2 -2
  78. package/build/font-size-picker/styles.cjs +2 -4
  79. package/build/font-size-picker/styles.cjs.map +2 -2
  80. package/build/higher-order/with-spoken-messages/index.cjs.map +2 -2
  81. package/build/input-control/styles/input-control-styles.cjs +4 -8
  82. package/build/input-control/styles/input-control-styles.cjs.map +2 -2
  83. package/build/item-group/styles.cjs +2 -4
  84. package/build/item-group/styles.cjs.map +2 -2
  85. package/build/menu/styles.cjs +1 -2
  86. package/build/menu/styles.cjs.map +2 -2
  87. package/build/modal/context.cjs +33 -0
  88. package/build/modal/context.cjs.map +7 -0
  89. package/build/modal/index.cjs +5 -6
  90. package/build/modal/index.cjs.map +2 -2
  91. package/build/modal/use-modal-exit-animation.cjs +2 -2
  92. package/build/modal/use-modal-exit-animation.cjs.map +2 -2
  93. package/build/navigation/styles/navigation-styles.cjs +3 -6
  94. package/build/navigation/styles/navigation-styles.cjs.map +2 -2
  95. package/build/navigator/styles.cjs +2 -4
  96. package/build/navigator/styles.cjs.map +2 -2
  97. package/build/number-control/index.cjs +1 -1
  98. package/build/number-control/index.cjs.map +2 -2
  99. package/build/number-control/styles/number-control-styles.cjs +1 -2
  100. package/build/number-control/styles/number-control-styles.cjs.map +2 -2
  101. package/build/palette-edit/index.cjs +1 -1
  102. package/build/palette-edit/index.cjs.map +2 -2
  103. package/build/palette-edit/styles.cjs +1 -2
  104. package/build/palette-edit/styles.cjs.map +2 -2
  105. package/build/panel/body.cjs +1 -1
  106. package/build/panel/body.cjs.map +2 -2
  107. package/build/popover/context.cjs +33 -0
  108. package/build/popover/context.cjs.map +7 -0
  109. package/build/popover/index.cjs +3 -4
  110. package/build/popover/index.cjs.map +3 -3
  111. package/build/private-apis.cjs +6 -2
  112. package/build/private-apis.cjs.map +3 -3
  113. package/build/progress-bar/styles.cjs +2 -4
  114. package/build/progress-bar/styles.cjs.map +2 -2
  115. package/build/range-control/index.cjs +1 -1
  116. package/build/range-control/index.cjs.map +2 -2
  117. package/build/range-control/styles/range-control-styles.cjs +30 -43
  118. package/build/range-control/styles/range-control-styles.cjs.map +2 -2
  119. package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.cjs +2 -4
  120. package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.cjs.map +2 -2
  121. package/build/resizable-box/resize-tooltip/utils.cjs +1 -1
  122. package/build/resizable-box/resize-tooltip/utils.cjs.map +2 -2
  123. package/build/sandbox/index.cjs +1 -1
  124. package/build/sandbox/index.cjs.map +2 -2
  125. package/build/scrollable/styles.cjs +6 -12
  126. package/build/scrollable/styles.cjs.map +2 -2
  127. package/build/search-control/styles.cjs +2 -4
  128. package/build/search-control/styles.cjs.map +2 -2
  129. package/build/select-control/styles/select-control-styles.cjs +2 -4
  130. package/build/select-control/styles/select-control-styles.cjs.map +2 -2
  131. package/build/slot-fill/index.cjs +3 -2
  132. package/build/slot-fill/index.cjs.map +2 -2
  133. package/build/spinner/styles.cjs +1 -2
  134. package/build/spinner/styles.cjs.map +2 -2
  135. package/build/tabs/styles.cjs +5 -6
  136. package/build/tabs/styles.cjs.map +2 -2
  137. package/build/text/hook.cjs +1 -2
  138. package/build/text/hook.cjs.map +2 -2
  139. package/build/text/styles.cjs +7 -9
  140. package/build/text/styles.cjs.map +2 -2
  141. package/build/text/utils.cjs.map +1 -1
  142. package/build/theme/styles.cjs +1 -2
  143. package/build/theme/styles.cjs.map +2 -2
  144. package/build/toggle-control/index.cjs +6 -2
  145. package/build/toggle-control/index.cjs.map +2 -2
  146. package/build/toggle-group-control/toggle-group-control/styles.cjs +7 -11
  147. package/build/toggle-group-control/toggle-group-control/styles.cjs.map +2 -2
  148. package/build/toggle-group-control/toggle-group-control-option-base/styles.cjs +2 -4
  149. package/build/toggle-group-control/toggle-group-control-option-base/styles.cjs.map +2 -2
  150. package/build/tools-panel/styles.cjs +4 -8
  151. package/build/tools-panel/styles.cjs.map +2 -2
  152. package/build/tooltip/context.cjs +35 -0
  153. package/build/tooltip/context.cjs.map +7 -0
  154. package/build/tooltip/index.cjs +3 -7
  155. package/build/tooltip/index.cjs.map +2 -2
  156. package/build/tree-grid/roving-tab-index-item.cjs +1 -1
  157. package/build/tree-grid/roving-tab-index-item.cjs.map +2 -2
  158. package/build/truncate/styles.cjs +1 -2
  159. package/build/truncate/styles.cjs.map +2 -2
  160. package/build/utils/box-sizing.cjs +1 -2
  161. package/build/utils/box-sizing.cjs.map +2 -2
  162. package/build/utils/element-rect.cjs +1 -1
  163. package/build/utils/element-rect.cjs.map +2 -2
  164. package/build/utils/hooks/use-cx.cjs.map +2 -2
  165. package/build/utils/hooks/use-update-effect.cjs.map +1 -1
  166. package/build/utils/rtl.cjs +2 -2
  167. package/build/utils/rtl.cjs.map +2 -2
  168. package/build/utils/use-responsive-value.cjs +1 -7
  169. package/build/utils/use-responsive-value.cjs.map +2 -2
  170. package/build/validated-form-controls/components/toggle-control.cjs +1 -5
  171. package/build/validated-form-controls/components/toggle-control.cjs.map +2 -2
  172. package/build/z-stack/styles.cjs +1 -2
  173. package/build/z-stack/styles.cjs.map +2 -2
  174. package/build-module/angle-picker-control/angle-circle.mjs +2 -2
  175. package/build-module/angle-picker-control/angle-circle.mjs.map +2 -2
  176. package/build-module/autocomplete/index.mjs +1 -1
  177. package/build-module/autocomplete/index.mjs.map +2 -2
  178. package/build-module/avatar/component.mjs +68 -0
  179. package/build-module/avatar/component.mjs.map +7 -0
  180. package/build-module/avatar/index.mjs +6 -0
  181. package/build-module/avatar/index.mjs.map +7 -0
  182. package/build-module/avatar/types.mjs +1 -0
  183. package/build-module/avatar/types.mjs.map +7 -0
  184. package/build-module/avatar-group/component.mjs +29 -0
  185. package/build-module/avatar-group/component.mjs.map +7 -0
  186. package/build-module/avatar-group/index.mjs +6 -0
  187. package/build-module/avatar-group/index.mjs.map +7 -0
  188. package/build-module/avatar-group/types.mjs +1 -0
  189. package/build-module/avatar-group/types.mjs.map +7 -0
  190. package/build-module/base-control/index.mjs.map +1 -1
  191. package/build-module/base-control/styles/base-control-styles.mjs +1 -2
  192. package/build-module/base-control/styles/base-control-styles.mjs.map +2 -2
  193. package/build-module/border-box-control/styles.mjs +2 -4
  194. package/build-module/border-box-control/styles.mjs.map +2 -2
  195. package/build-module/border-control/styles.mjs +1 -2
  196. package/build-module/border-control/styles.mjs.map +2 -2
  197. package/build-module/box-control/styles/box-control-icon-styles.mjs +8 -16
  198. package/build-module/box-control/styles/box-control-icon-styles.mjs.map +2 -2
  199. package/build-module/box-control/styles/box-control-styles.mjs +5 -10
  200. package/build-module/box-control/styles/box-control-styles.mjs.map +2 -2
  201. package/build-module/card/get-padding-by-size.mjs +1 -2
  202. package/build-module/card/get-padding-by-size.mjs.map +2 -2
  203. package/build-module/card/styles.mjs +8 -16
  204. package/build-module/card/styles.mjs.map +2 -2
  205. package/build-module/clipboard-button/index.mjs +1 -1
  206. package/build-module/clipboard-button/index.mjs.map +2 -2
  207. package/build-module/color-picker/color-copy-button.mjs +1 -1
  208. package/build-module/color-picker/color-copy-button.mjs.map +2 -2
  209. package/build-module/confirm-dialog/component.mjs +2 -2
  210. package/build-module/confirm-dialog/component.mjs.map +2 -2
  211. package/build-module/confirm-dialog/styles.mjs +1 -2
  212. package/build-module/confirm-dialog/styles.mjs.map +2 -2
  213. package/build-module/context/context-system-provider.mjs.map +1 -1
  214. package/build-module/custom-gradient-picker/gradient-bar/control-points.mjs +2 -2
  215. package/build-module/custom-gradient-picker/gradient-bar/control-points.mjs.map +2 -2
  216. package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.mjs +2 -4
  217. package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.mjs.map +2 -2
  218. package/build-module/custom-select-control-v2/styles.mjs +1 -2
  219. package/build-module/custom-select-control-v2/styles.mjs.map +2 -2
  220. package/build-module/date-time/date/index.mjs +1 -1
  221. package/build-module/date-time/date/index.mjs.map +2 -2
  222. package/build-module/date-time/date/styles.mjs +2 -4
  223. package/build-module/date-time/date/styles.mjs.map +2 -2
  224. package/build-module/date-time/date-time/styles.mjs +1 -2
  225. package/build-module/date-time/date-time/styles.mjs.map +2 -2
  226. package/build-module/date-time/time/styles.mjs +3 -6
  227. package/build-module/date-time/time/styles.mjs.map +2 -2
  228. package/build-module/date-time/utils.mjs +1 -1
  229. package/build-module/date-time/utils.mjs.map +2 -2
  230. package/build-module/disabled/context.mjs +9 -0
  231. package/build-module/disabled/context.mjs.map +7 -0
  232. package/build-module/disabled/index.mjs +1 -3
  233. package/build-module/disabled/index.mjs.map +2 -2
  234. package/build-module/disabled/styles/disabled-styles.mjs +1 -2
  235. package/build-module/disabled/styles/disabled-styles.mjs.map +2 -2
  236. package/build-module/divider/styles.mjs +1 -2
  237. package/build-module/divider/styles.mjs.map +2 -2
  238. package/build-module/dropdown/index.mjs +1 -1
  239. package/build-module/dropdown/index.mjs.map +2 -2
  240. package/build-module/elevation/styles.mjs +1 -2
  241. package/build-module/elevation/styles.mjs.map +2 -2
  242. package/build-module/external-link/index.mjs +5 -1
  243. package/build-module/external-link/index.mjs.map +2 -2
  244. package/build-module/flex/styles.mjs +5 -10
  245. package/build-module/flex/styles.mjs.map +2 -2
  246. package/build-module/focal-point-picker/styles/focal-point-picker-style.mjs +6 -12
  247. package/build-module/focal-point-picker/styles/focal-point-picker-style.mjs.map +2 -2
  248. package/build-module/font-size-picker/styles.mjs +2 -4
  249. package/build-module/font-size-picker/styles.mjs.map +2 -2
  250. package/build-module/higher-order/with-spoken-messages/index.mjs.map +2 -2
  251. package/build-module/input-control/styles/input-control-styles.mjs +4 -8
  252. package/build-module/input-control/styles/input-control-styles.mjs.map +2 -2
  253. package/build-module/item-group/styles.mjs +2 -4
  254. package/build-module/item-group/styles.mjs.map +2 -2
  255. package/build-module/menu/styles.mjs +1 -2
  256. package/build-module/menu/styles.mjs.map +2 -2
  257. package/build-module/modal/context.mjs +8 -0
  258. package/build-module/modal/context.mjs.map +7 -0
  259. package/build-module/modal/index.mjs +4 -5
  260. package/build-module/modal/index.mjs.map +2 -2
  261. package/build-module/modal/use-modal-exit-animation.mjs +2 -2
  262. package/build-module/modal/use-modal-exit-animation.mjs.map +2 -2
  263. package/build-module/navigation/styles/navigation-styles.mjs +3 -6
  264. package/build-module/navigation/styles/navigation-styles.mjs.map +2 -2
  265. package/build-module/navigator/styles.mjs +2 -4
  266. package/build-module/navigator/styles.mjs.map +2 -2
  267. package/build-module/number-control/index.mjs +1 -1
  268. package/build-module/number-control/index.mjs.map +2 -2
  269. package/build-module/number-control/styles/number-control-styles.mjs +1 -2
  270. package/build-module/number-control/styles/number-control-styles.mjs.map +2 -2
  271. package/build-module/palette-edit/index.mjs +1 -1
  272. package/build-module/palette-edit/index.mjs.map +2 -2
  273. package/build-module/palette-edit/styles.mjs +1 -2
  274. package/build-module/palette-edit/styles.mjs.map +2 -2
  275. package/build-module/panel/body.mjs +1 -1
  276. package/build-module/panel/body.mjs.map +2 -2
  277. package/build-module/popover/context.mjs +8 -0
  278. package/build-module/popover/context.mjs.map +7 -0
  279. package/build-module/popover/index.mjs +2 -3
  280. package/build-module/popover/index.mjs.map +2 -2
  281. package/build-module/private-apis.mjs +6 -2
  282. package/build-module/private-apis.mjs.map +2 -2
  283. package/build-module/progress-bar/styles.mjs +2 -4
  284. package/build-module/progress-bar/styles.mjs.map +2 -2
  285. package/build-module/range-control/index.mjs +1 -1
  286. package/build-module/range-control/index.mjs.map +2 -2
  287. package/build-module/range-control/styles/range-control-styles.mjs +30 -43
  288. package/build-module/range-control/styles/range-control-styles.mjs.map +2 -2
  289. package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.mjs +2 -4
  290. package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.mjs.map +2 -2
  291. package/build-module/resizable-box/resize-tooltip/utils.mjs +1 -1
  292. package/build-module/resizable-box/resize-tooltip/utils.mjs.map +2 -2
  293. package/build-module/sandbox/index.mjs +1 -1
  294. package/build-module/sandbox/index.mjs.map +2 -2
  295. package/build-module/scrollable/styles.mjs +6 -12
  296. package/build-module/scrollable/styles.mjs.map +2 -2
  297. package/build-module/search-control/styles.mjs +2 -4
  298. package/build-module/search-control/styles.mjs.map +2 -2
  299. package/build-module/select-control/styles/select-control-styles.mjs +2 -4
  300. package/build-module/select-control/styles/select-control-styles.mjs.map +2 -2
  301. package/build-module/slot-fill/index.mjs +3 -2
  302. package/build-module/slot-fill/index.mjs.map +2 -2
  303. package/build-module/spinner/styles.mjs +1 -2
  304. package/build-module/spinner/styles.mjs.map +2 -2
  305. package/build-module/tabs/styles.mjs +5 -6
  306. package/build-module/tabs/styles.mjs.map +2 -2
  307. package/build-module/text/hook.mjs +1 -2
  308. package/build-module/text/hook.mjs.map +2 -2
  309. package/build-module/text/styles.mjs +7 -9
  310. package/build-module/text/styles.mjs.map +2 -2
  311. package/build-module/text/utils.mjs.map +1 -1
  312. package/build-module/theme/styles.mjs +1 -2
  313. package/build-module/theme/styles.mjs.map +2 -2
  314. package/build-module/toggle-control/index.mjs +6 -2
  315. package/build-module/toggle-control/index.mjs.map +2 -2
  316. package/build-module/toggle-group-control/toggle-group-control/styles.mjs +7 -11
  317. package/build-module/toggle-group-control/toggle-group-control/styles.mjs.map +2 -2
  318. package/build-module/toggle-group-control/toggle-group-control-option-base/styles.mjs +2 -4
  319. package/build-module/toggle-group-control/toggle-group-control-option-base/styles.mjs.map +2 -2
  320. package/build-module/tools-panel/styles.mjs +4 -8
  321. package/build-module/tools-panel/styles.mjs.map +2 -2
  322. package/build-module/tooltip/context.mjs +10 -0
  323. package/build-module/tooltip/context.mjs.map +7 -0
  324. package/build-module/tooltip/index.mjs +2 -6
  325. package/build-module/tooltip/index.mjs.map +2 -2
  326. package/build-module/tree-grid/roving-tab-index-item.mjs +1 -1
  327. package/build-module/tree-grid/roving-tab-index-item.mjs.map +2 -2
  328. package/build-module/truncate/styles.mjs +1 -2
  329. package/build-module/truncate/styles.mjs.map +2 -2
  330. package/build-module/utils/box-sizing.mjs +1 -2
  331. package/build-module/utils/box-sizing.mjs.map +2 -2
  332. package/build-module/utils/element-rect.mjs +1 -1
  333. package/build-module/utils/element-rect.mjs.map +2 -2
  334. package/build-module/utils/hooks/use-cx.mjs.map +2 -2
  335. package/build-module/utils/hooks/use-update-effect.mjs.map +1 -1
  336. package/build-module/utils/rtl.mjs +2 -2
  337. package/build-module/utils/rtl.mjs.map +2 -2
  338. package/build-module/utils/use-responsive-value.mjs +1 -7
  339. package/build-module/utils/use-responsive-value.mjs.map +2 -2
  340. package/build-module/validated-form-controls/components/toggle-control.mjs +2 -6
  341. package/build-module/validated-form-controls/components/toggle-control.mjs.map +2 -2
  342. package/build-module/z-stack/styles.mjs +1 -2
  343. package/build-module/z-stack/styles.mjs.map +2 -2
  344. package/build-style/style-rtl.css +185 -1
  345. package/build-style/style.css +185 -1
  346. package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -1
  347. package/build-types/angle-picker-control/angle-circle.d.ts.map +1 -1
  348. package/build-types/angle-picker-control/index.d.ts +1 -1
  349. package/build-types/angle-picker-control/stories/index.story.d.ts +1 -1
  350. package/build-types/angle-picker-control/stories/index.story.d.ts.map +1 -1
  351. package/build-types/animate/index.d.ts +1 -1
  352. package/build-types/animate/index.d.ts.map +1 -1
  353. package/build-types/animate/stories/index.story.d.ts.map +1 -1
  354. package/build-types/animate/types.d.ts +1 -1
  355. package/build-types/animate/types.d.ts.map +1 -1
  356. package/build-types/autocomplete/index.d.ts +2 -2
  357. package/build-types/autocomplete/index.d.ts.map +1 -1
  358. package/build-types/autocomplete/types.d.ts +1 -1
  359. package/build-types/autocomplete/types.d.ts.map +1 -1
  360. package/build-types/avatar/component.d.ts +5 -0
  361. package/build-types/avatar/component.d.ts.map +1 -0
  362. package/build-types/avatar/index.d.ts +3 -0
  363. package/build-types/avatar/index.d.ts.map +1 -0
  364. package/build-types/avatar/types.d.ts +59 -0
  365. package/build-types/avatar/types.d.ts.map +1 -0
  366. package/build-types/avatar-group/component.d.ts +8 -0
  367. package/build-types/avatar-group/component.d.ts.map +1 -0
  368. package/build-types/avatar-group/index.d.ts +3 -0
  369. package/build-types/avatar-group/index.d.ts.map +1 -0
  370. package/build-types/avatar-group/types.d.ts +14 -0
  371. package/build-types/avatar-group/types.d.ts.map +1 -0
  372. package/build-types/badge/stories/index.story.d.ts.map +1 -1
  373. package/build-types/base-control/index.d.ts +3 -3
  374. package/build-types/base-control/stories/index.story.d.ts +1 -1
  375. package/build-types/base-control/stories/index.story.d.ts.map +1 -1
  376. package/build-types/border-box-control/border-box-control/hook.d.ts +1 -1
  377. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +1 -1
  378. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +1 -1
  379. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +1 -1
  380. package/build-types/border-box-control/stories/index.story.d.ts.map +1 -1
  381. package/build-types/border-control/border-control/hook.d.ts +1 -1
  382. package/build-types/border-control/border-control-dropdown/hook.d.ts +1 -1
  383. package/build-types/border-control/stories/index.story.d.ts.map +1 -1
  384. package/build-types/box-control/stories/index.story.d.ts.map +1 -1
  385. package/build-types/box-control/styles/box-control-styles.d.ts +2 -2
  386. package/build-types/box-control/styles/box-control-styles.d.ts.map +1 -1
  387. package/build-types/button/stories/index.story.d.ts.map +1 -1
  388. package/build-types/card/card/hook.d.ts +1 -1
  389. package/build-types/card/card-body/hook.d.ts +1 -1
  390. package/build-types/card/card-footer/hook.d.ts +1 -1
  391. package/build-types/card/card-header/hook.d.ts +1 -1
  392. package/build-types/card/card-media/hook.d.ts +1 -1
  393. package/build-types/card/stories/index.story.d.ts.map +1 -1
  394. package/build-types/checkbox-control/stories/index.story.d.ts.map +1 -1
  395. package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
  396. package/build-types/color-indicator/stories/index.story.d.ts.map +1 -1
  397. package/build-types/color-palette/stories/index.story.d.ts +6 -5
  398. package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
  399. package/build-types/color-palette/styles.d.ts +1 -1
  400. package/build-types/color-picker/color-copy-button.d.ts.map +1 -1
  401. package/build-types/color-picker/stories/index.story.d.ts.map +1 -1
  402. package/build-types/color-picker/styles.d.ts +2 -2
  403. package/build-types/color-picker/styles.d.ts.map +1 -1
  404. package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
  405. package/build-types/combobox-control/styles.d.ts +1 -1
  406. package/build-types/composite/stories/index.story.d.ts.map +1 -1
  407. package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -1
  408. package/build-types/context/context-connect.d.ts +2 -2
  409. package/build-types/context/context-connect.d.ts.map +1 -1
  410. package/build-types/context/context-system-provider.d.ts +2 -2
  411. package/build-types/context/context-system-provider.d.ts.map +1 -1
  412. package/build-types/context/wordpress-component.d.ts +3 -3
  413. package/build-types/context/wordpress-component.d.ts.map +1 -1
  414. package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -1
  415. package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
  416. package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts +2 -2
  417. package/build-types/custom-gradient-picker/types.d.ts +1 -1
  418. package/build-types/custom-gradient-picker/types.d.ts.map +1 -1
  419. package/build-types/custom-select-control/stories/index.story.d.ts.map +1 -1
  420. package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +1 -1
  421. package/build-types/custom-select-control-v2/types.d.ts +4 -4
  422. package/build-types/custom-select-control-v2/types.d.ts.map +1 -1
  423. package/build-types/date-time/date/styles.d.ts +2 -2
  424. package/build-types/date-time/date-time/styles.d.ts +1 -1
  425. package/build-types/date-time/stories/date-time.story.d.ts.map +1 -1
  426. package/build-types/date-time/stories/date.story.d.ts.map +1 -1
  427. package/build-types/date-time/stories/time.story.d.ts.map +1 -1
  428. package/build-types/disabled/context.d.ts +3 -0
  429. package/build-types/disabled/context.d.ts.map +1 -0
  430. package/build-types/disabled/index.d.ts.map +1 -1
  431. package/build-types/disabled/stories/index.story.d.ts.map +1 -1
  432. package/build-types/divider/stories/index.story.d.ts.map +1 -1
  433. package/build-types/draggable/stories/index.story.d.ts.map +1 -1
  434. package/build-types/draggable/types.d.ts +1 -1
  435. package/build-types/draggable/types.d.ts.map +1 -1
  436. package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
  437. package/build-types/drop-zone/types.d.ts +1 -1
  438. package/build-types/drop-zone/types.d.ts.map +1 -1
  439. package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
  440. package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
  441. package/build-types/dropdown-menu/types.d.ts +1 -1
  442. package/build-types/dropdown-menu/types.d.ts.map +1 -1
  443. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts.map +1 -1
  444. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts.map +1 -1
  445. package/build-types/elevation/hook.d.ts +1 -1
  446. package/build-types/elevation/stories/index.story.d.ts.map +1 -1
  447. package/build-types/external-link/index.d.ts.map +1 -1
  448. package/build-types/external-link/stories/index.story.d.ts.map +1 -1
  449. package/build-types/flex/flex/hook.d.ts +1 -1
  450. package/build-types/flex/flex-block/hook.d.ts +1 -1
  451. package/build-types/flex/flex-item/hook.d.ts +1 -1
  452. package/build-types/flex/stories/index.story.d.ts.map +1 -1
  453. package/build-types/focal-point-picker/stories/index.story.d.ts.map +1 -1
  454. package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts +1 -1
  455. package/build-types/font-size-picker/stories/index.story.d.ts +8 -7
  456. package/build-types/font-size-picker/stories/index.story.d.ts.map +1 -1
  457. package/build-types/font-size-picker/styles.d.ts +2 -2
  458. package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
  459. package/build-types/form-toggle/stories/index.story.d.ts.map +1 -1
  460. package/build-types/form-token-field/stories/index.story.d.ts.map +1 -1
  461. package/build-types/form-token-field/styles.d.ts +1 -1
  462. package/build-types/gradient-picker/stories/index.story.d.ts +6 -5
  463. package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
  464. package/build-types/grid/hook.d.ts +1 -1
  465. package/build-types/grid/stories/index.story.d.ts.map +1 -1
  466. package/build-types/guide/stories/index.story.d.ts.map +1 -1
  467. package/build-types/h-stack/hook.d.ts +1 -1
  468. package/build-types/h-stack/stories/index.story.d.ts.map +1 -1
  469. package/build-types/heading/hook.d.ts +1 -1
  470. package/build-types/heading/stories/index.story.d.ts.map +1 -1
  471. package/build-types/higher-order/navigate-regions/index.d.ts +1 -1
  472. package/build-types/higher-order/with-notices/types.d.ts +1 -1
  473. package/build-types/higher-order/with-notices/types.d.ts.map +1 -1
  474. package/build-types/higher-order/with-spoken-messages/index.d.ts +2 -3
  475. package/build-types/higher-order/with-spoken-messages/index.d.ts.map +1 -1
  476. package/build-types/icon/index.d.ts +2 -2
  477. package/build-types/icon/index.d.ts.map +1 -1
  478. package/build-types/icon/stories/index.story.d.ts.map +1 -1
  479. package/build-types/input-control/stories/index.story.d.ts.map +1 -1
  480. package/build-types/input-control/styles/input-control-styles.d.ts +2 -2
  481. package/build-types/item-group/item/hook.d.ts +1 -1
  482. package/build-types/item-group/item-group/hook.d.ts +1 -1
  483. package/build-types/item-group/stories/index.story.d.ts.map +1 -1
  484. package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +1 -1
  485. package/build-types/menu/index.d.ts +2 -2
  486. package/build-types/menu/item-help-text.d.ts +1 -1
  487. package/build-types/menu/item-label.d.ts +1 -1
  488. package/build-types/menu/stories/index.story.d.ts.map +1 -1
  489. package/build-types/menu/styles.d.ts +2 -2
  490. package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
  491. package/build-types/menu-item/index.d.ts +1 -1
  492. package/build-types/menu-item/stories/index.story.d.ts +4 -4
  493. package/build-types/menu-item/stories/index.story.d.ts.map +1 -1
  494. package/build-types/menu-item/types.d.ts +1 -1
  495. package/build-types/menu-item/types.d.ts.map +1 -1
  496. package/build-types/menu-items-choice/stories/index.story.d.ts.map +1 -1
  497. package/build-types/modal/context.d.ts +4 -0
  498. package/build-types/modal/context.d.ts.map +1 -0
  499. package/build-types/modal/index.d.ts.map +1 -1
  500. package/build-types/modal/stories/index.story.d.ts.map +1 -1
  501. package/build-types/modal/types.d.ts +1 -1
  502. package/build-types/modal/types.d.ts.map +1 -1
  503. package/build-types/modal/use-modal-exit-animation.d.ts +1 -1
  504. package/build-types/navigable-container/stories/navigable-menu.story.d.ts.map +1 -1
  505. package/build-types/navigable-container/stories/tabbable-container.story.d.ts.map +1 -1
  506. package/build-types/navigation/styles/navigation-styles.d.ts +2 -2
  507. package/build-types/navigation/types.d.ts +1 -1
  508. package/build-types/navigation/types.d.ts.map +1 -1
  509. package/build-types/navigator/navigator-back-button/hook.d.ts +1 -1
  510. package/build-types/navigator/navigator-button/hook.d.ts +1 -1
  511. package/build-types/navigator/stories/index.story.d.ts.map +1 -1
  512. package/build-types/navigator/styles.d.ts +24 -4
  513. package/build-types/navigator/styles.d.ts.map +1 -1
  514. package/build-types/notice/stories/index.story.d.ts.map +1 -1
  515. package/build-types/number-control/stories/index.story.d.ts.map +1 -1
  516. package/build-types/palette-edit/stories/index.story.d.ts.map +1 -1
  517. package/build-types/palette-edit/styles.d.ts +1 -1
  518. package/build-types/palette-edit/types.d.ts +1 -1
  519. package/build-types/palette-edit/types.d.ts.map +1 -1
  520. package/build-types/panel/stories/index.story.d.ts.map +1 -1
  521. package/build-types/panel/types.d.ts +2 -2
  522. package/build-types/panel/types.d.ts.map +1 -1
  523. package/build-types/placeholder/stories/index.story.d.ts.map +1 -1
  524. package/build-types/popover/context.d.ts +2 -0
  525. package/build-types/popover/context.d.ts.map +1 -0
  526. package/build-types/popover/index.d.ts.map +1 -1
  527. package/build-types/popover/stories/index.story.d.ts.map +1 -1
  528. package/build-types/private-apis.d.ts.map +1 -1
  529. package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
  530. package/build-types/query-controls/stories/index.story.d.ts.map +1 -1
  531. package/build-types/radio-control/stories/index.story.d.ts.map +1 -1
  532. package/build-types/range-control/index.d.ts.map +1 -1
  533. package/build-types/range-control/input-range.d.ts +1 -1
  534. package/build-types/range-control/stories/index.story.d.ts.map +1 -1
  535. package/build-types/range-control/styles/range-control-styles.d.ts.map +1 -1
  536. package/build-types/range-control/types.d.ts +2 -2
  537. package/build-types/range-control/types.d.ts.map +1 -1
  538. package/build-types/resizable-box/resize-tooltip/styles/resize-tooltip.styles.d.ts +1 -1
  539. package/build-types/resizable-box/resize-tooltip/utils.d.ts +1 -1
  540. package/build-types/resizable-box/resize-tooltip/utils.d.ts.map +1 -1
  541. package/build-types/resizable-box/stories/index.story.d.ts.map +1 -1
  542. package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -1
  543. package/build-types/sandbox/stories/index.story.d.ts.map +1 -1
  544. package/build-types/scroll-lock/stories/index.story.d.ts.map +1 -1
  545. package/build-types/scrollable/hook.d.ts +1 -1
  546. package/build-types/scrollable/stories/index.story.d.ts.map +1 -1
  547. package/build-types/search-control/stories/index.story.d.ts.map +1 -1
  548. package/build-types/search-control/types.d.ts +1 -1
  549. package/build-types/search-control/types.d.ts.map +1 -1
  550. package/build-types/select-control/stories/index.story.d.ts.map +1 -1
  551. package/build-types/select-control/styles/select-control-styles.d.ts +2 -2
  552. package/build-types/shortcut/stories/index.story.d.ts.map +1 -1
  553. package/build-types/slot-fill/bubbles-virtually/slot.d.ts +1 -1
  554. package/build-types/slot-fill/index.d.ts +1 -7
  555. package/build-types/slot-fill/index.d.ts.map +1 -1
  556. package/build-types/slot-fill/stories/index.story.d.ts.map +1 -1
  557. package/build-types/slot-fill/types.d.ts +1 -1
  558. package/build-types/slot-fill/types.d.ts.map +1 -1
  559. package/build-types/snackbar/index.d.ts +1 -1
  560. package/build-types/snackbar/stories/index.story.d.ts.map +1 -1
  561. package/build-types/spacer/hook.d.ts +1 -1
  562. package/build-types/spacer/stories/index.story.d.ts.map +1 -1
  563. package/build-types/spinner/stories/index.story.d.ts.map +1 -1
  564. package/build-types/surface/hook.d.ts +1 -1
  565. package/build-types/surface/stories/index.story.d.ts.map +1 -1
  566. package/build-types/tab-panel/stories/index.story.d.ts.map +1 -1
  567. package/build-types/tabs/stories/index.story.d.ts.map +1 -1
  568. package/build-types/tabs/styles.d.ts.map +1 -1
  569. package/build-types/text/hook.d.ts +1 -1
  570. package/build-types/text/stories/index.story.d.ts +3 -3
  571. package/build-types/text/stories/index.story.d.ts.map +1 -1
  572. package/build-types/text/styles.d.ts.map +1 -1
  573. package/build-types/text/utils.d.ts +18 -18
  574. package/build-types/text/utils.d.ts.map +1 -1
  575. package/build-types/text-control/stories/index.story.d.ts.map +1 -1
  576. package/build-types/text-highlight/stories/index.story.d.ts.map +1 -1
  577. package/build-types/textarea-control/stories/index.story.d.ts.map +1 -1
  578. package/build-types/theme/stories/index.story.d.ts +1 -1
  579. package/build-types/theme/stories/index.story.d.ts.map +1 -1
  580. package/build-types/tip/stories/index.story.d.ts.map +1 -1
  581. package/build-types/toggle-control/index.d.ts.map +1 -1
  582. package/build-types/toggle-control/stories/index.story.d.ts.map +1 -1
  583. package/build-types/toggle-group-control/stories/index.story.d.ts.map +1 -1
  584. package/build-types/toggle-group-control/toggle-group-control-option-icon/component.d.ts +1 -1
  585. package/build-types/toggle-group-control/types.d.ts +1 -1
  586. package/build-types/toggle-group-control/types.d.ts.map +1 -1
  587. package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
  588. package/build-types/tools-panel/stories/index.story.d.ts.map +1 -1
  589. package/build-types/tools-panel/tools-panel/hook.d.ts +1 -1
  590. package/build-types/tools-panel/tools-panel-header/hook.d.ts +1 -1
  591. package/build-types/tools-panel/tools-panel-item/hook.d.ts +1 -1
  592. package/build-types/tooltip/context.d.ts +3 -0
  593. package/build-types/tooltip/context.d.ts.map +1 -0
  594. package/build-types/tooltip/index.d.ts +0 -3
  595. package/build-types/tooltip/index.d.ts.map +1 -1
  596. package/build-types/tooltip/stories/index.story.d.ts.map +1 -1
  597. package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
  598. package/build-types/tree-grid/types.d.ts +1 -1
  599. package/build-types/tree-grid/types.d.ts.map +1 -1
  600. package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
  601. package/build-types/truncate/hook.d.ts +1 -1
  602. package/build-types/truncate/stories/index.story.d.ts.map +1 -1
  603. package/build-types/unit-control/stories/index.story.d.ts.map +1 -1
  604. package/build-types/utils/hooks/use-cx.d.ts +1 -1
  605. package/build-types/utils/hooks/use-cx.d.ts.map +1 -1
  606. package/build-types/utils/hooks/use-update-effect.d.ts +3 -3
  607. package/build-types/utils/hooks/use-update-effect.d.ts.map +1 -1
  608. package/build-types/utils/rtl.d.ts +4 -4
  609. package/build-types/utils/rtl.d.ts.map +1 -1
  610. package/build-types/utils/use-responsive-value.d.ts.map +1 -1
  611. package/build-types/v-stack/hook.d.ts +1 -1
  612. package/build-types/v-stack/stories/index.story.d.ts +1 -1
  613. package/build-types/v-stack/stories/index.story.d.ts.map +1 -1
  614. package/build-types/validated-form-controls/components/range-control.d.ts.map +1 -1
  615. package/build-types/validated-form-controls/components/stories/overview.story.d.ts.map +1 -1
  616. package/build-types/validated-form-controls/components/toggle-control.d.ts.map +1 -1
  617. package/build-types/view/stories/index.story.d.ts.map +1 -1
  618. package/build-types/visually-hidden/stories/index.story.d.ts.map +1 -1
  619. package/build-types/z-stack/stories/index.story.d.ts.map +1 -1
  620. package/package.json +30 -30
  621. package/src/alignment-matrix-control/stories/index.story.tsx +4 -0
  622. package/src/alignment-matrix-control/test/index.tsx +1 -1
  623. package/src/angle-picker-control/angle-circle.tsx +6 -5
  624. package/src/angle-picker-control/stories/index.story.tsx +4 -0
  625. package/src/animate/stories/index.story.tsx +5 -0
  626. package/src/animate/types.ts +1 -1
  627. package/src/autocomplete/autocompleter-ui.tsx +1 -1
  628. package/src/autocomplete/index.tsx +3 -2
  629. package/src/autocomplete/types.ts +1 -1
  630. package/src/avatar/component.tsx +82 -0
  631. package/src/avatar/index.ts +2 -0
  632. package/src/avatar/styles.scss +152 -0
  633. package/src/avatar/types.ts +59 -0
  634. package/src/avatar-group/component.tsx +46 -0
  635. package/src/avatar-group/index.ts +2 -0
  636. package/src/avatar-group/styles.scss +32 -0
  637. package/src/avatar-group/types.ts +13 -0
  638. package/src/badge/stories/index.story.tsx +7 -0
  639. package/src/base-control/README.md +1 -1
  640. package/src/base-control/index.tsx +1 -1
  641. package/src/base-control/stories/index.story.tsx +5 -0
  642. package/src/border-box-control/stories/index.story.tsx +4 -0
  643. package/src/border-control/stories/index.story.tsx +4 -0
  644. package/src/box-control/stories/index.story.tsx +5 -0
  645. package/src/button/stories/index.story.tsx +5 -0
  646. package/src/button/style.scss +6 -2
  647. package/src/calendar/style.scss +4 -2
  648. package/src/card/stories/index.story.tsx +5 -0
  649. package/src/card/test/__snapshots__/index.tsx.snap +35 -35
  650. package/src/checkbox-control/stories/index.story.tsx +5 -0
  651. package/src/circular-option-picker/stories/index.story.tsx +5 -0
  652. package/src/clipboard-button/index.tsx +1 -1
  653. package/src/color-indicator/stories/index.story.tsx +4 -0
  654. package/src/color-palette/stories/index.story.tsx +60 -48
  655. package/src/color-picker/color-copy-button.tsx +1 -3
  656. package/src/color-picker/stories/index.story.tsx +4 -0
  657. package/src/combobox-control/stories/index.story.tsx +5 -0
  658. package/src/composite/stories/index.story.tsx +5 -1
  659. package/src/confirm-dialog/component.tsx +2 -2
  660. package/src/confirm-dialog/stories/index.story.tsx +4 -0
  661. package/src/context/context-connect.ts +3 -3
  662. package/src/context/context-system-provider.js +4 -4
  663. package/src/context/test/__snapshots__/context-system-provider.js.snap +3 -3
  664. package/src/context/wordpress-component.ts +3 -5
  665. package/src/custom-gradient-picker/gradient-bar/control-points.tsx +3 -2
  666. package/src/custom-gradient-picker/stories/index.story.tsx +5 -0
  667. package/src/custom-gradient-picker/types.ts +1 -1
  668. package/src/custom-select-control/stories/index.story.tsx +5 -0
  669. package/src/custom-select-control-v2/custom-select.tsx +1 -1
  670. package/src/custom-select-control-v2/stories/index.story.tsx +8 -3
  671. package/src/custom-select-control-v2/test/index.tsx +3 -3
  672. package/src/custom-select-control-v2/types.ts +4 -4
  673. package/src/date-time/date/index.tsx +1 -1
  674. package/src/date-time/stories/date-time.story.tsx +5 -0
  675. package/src/date-time/stories/date.story.tsx +5 -0
  676. package/src/date-time/stories/time.story.tsx +5 -0
  677. package/src/date-time/time/test/index.tsx +42 -0
  678. package/src/date-time/utils.ts +1 -1
  679. package/src/disabled/context.ts +6 -0
  680. package/src/disabled/index.tsx +1 -11
  681. package/src/disabled/stories/index.story.tsx +4 -0
  682. package/src/divider/stories/index.story.tsx +5 -0
  683. package/src/draggable/index.native.js +17 -17
  684. package/src/draggable/stories/index.story.tsx +5 -0
  685. package/src/draggable/types.ts +1 -1
  686. package/src/drop-zone/stories/index.story.tsx +4 -0
  687. package/src/drop-zone/types.ts +1 -1
  688. package/src/dropdown/index.tsx +1 -1
  689. package/src/dropdown/stories/index.story.tsx +4 -0
  690. package/src/dropdown-menu/stories/index.story.tsx +5 -0
  691. package/src/dropdown-menu/types.ts +1 -1
  692. package/src/duotone-picker/stories/duotone-picker.story.tsx +4 -0
  693. package/src/duotone-picker/stories/duotone-swatch.story.tsx +4 -0
  694. package/src/elevation/stories/index.story.tsx +5 -0
  695. package/src/external-link/index.tsx +5 -1
  696. package/src/external-link/stories/index.story.tsx +4 -0
  697. package/src/flex/stories/index.story.tsx +5 -0
  698. package/src/flex/test/__snapshots__/index.tsx.snap +4 -4
  699. package/src/focal-point-picker/stories/index.story.tsx +4 -0
  700. package/src/font-size-picker/stories/index.story.tsx +137 -125
  701. package/src/form-file-upload/stories/index.story.tsx +4 -0
  702. package/src/form-toggle/stories/index.story.tsx +5 -0
  703. package/src/form-token-field/stories/index.story.tsx +5 -0
  704. package/src/gradient-picker/stories/index.story.tsx +52 -42
  705. package/src/grid/stories/index.story.tsx +5 -0
  706. package/src/guide/stories/index.story.tsx +6 -0
  707. package/src/h-stack/stories/index.story.tsx +5 -0
  708. package/src/h-stack/test/index.tsx +1 -1
  709. package/src/heading/hook.ts +2 -2
  710. package/src/heading/stories/index.story.tsx +5 -0
  711. package/src/heading/test/__snapshots__/index.tsx.snap +0 -1
  712. package/src/higher-order/with-notices/test/index.tsx +2 -2
  713. package/src/higher-order/with-notices/types.ts +1 -1
  714. package/src/higher-order/with-spoken-messages/index.tsx +2 -4
  715. package/src/icon/index.tsx +2 -2
  716. package/src/icon/stories/index.story.tsx +5 -0
  717. package/src/input-control/stories/index.story.tsx +5 -0
  718. package/src/item-group/stories/index.story.tsx +4 -0
  719. package/src/item-group/test/__snapshots__/index.js.snap +16 -16
  720. package/src/keyboard-shortcuts/index.tsx +1 -1
  721. package/src/keyboard-shortcuts/stories/index.story.tsx +4 -0
  722. package/src/menu/stories/index.story.tsx +6 -1
  723. package/src/menu-group/stories/index.story.tsx +5 -0
  724. package/src/menu-item/stories/index.story.tsx +5 -0
  725. package/src/menu-item/types.ts +1 -1
  726. package/src/menu-items-choice/stories/index.story.tsx +5 -0
  727. package/src/modal/context.ts +9 -0
  728. package/src/modal/index.tsx +5 -22
  729. package/src/modal/stories/index.story.tsx +5 -0
  730. package/src/modal/types.ts +1 -1
  731. package/src/modal/use-modal-exit-animation.ts +2 -2
  732. package/src/navigable-container/stories/navigable-menu.story.tsx +4 -0
  733. package/src/navigable-container/stories/tabbable-container.story.tsx +5 -0
  734. package/src/navigation/README.md +1 -1
  735. package/src/navigation/types.ts +1 -1
  736. package/src/navigator/stories/index.story.tsx +4 -0
  737. package/src/notice/stories/index.story.tsx +5 -0
  738. package/src/notice/test/__snapshots__/index.tsx.snap +1 -1
  739. package/src/number-control/index.tsx +1 -1
  740. package/src/number-control/stories/index.story.tsx +5 -0
  741. package/src/palette-edit/index.tsx +2 -2
  742. package/src/palette-edit/stories/index.story.tsx +4 -0
  743. package/src/palette-edit/types.ts +1 -1
  744. package/src/panel/README.md +1 -1
  745. package/src/panel/body.tsx +1 -1
  746. package/src/panel/stories/index.story.tsx +4 -0
  747. package/src/panel/types.ts +2 -2
  748. package/src/placeholder/stories/index.story.tsx +4 -0
  749. package/src/popover/context.ts +4 -0
  750. package/src/popover/index.tsx +1 -14
  751. package/src/popover/stories/index.story.tsx +5 -1
  752. package/src/private-apis.ts +10 -2
  753. package/src/progress-bar/stories/index.story.tsx +4 -0
  754. package/src/query-controls/stories/index.story.tsx +4 -0
  755. package/src/radio-control/stories/index.story.tsx +5 -0
  756. package/src/radio-control/test/index.tsx +5 -4
  757. package/src/range-control/index.tsx +1 -1
  758. package/src/range-control/stories/index.story.tsx +5 -0
  759. package/src/range-control/styles/range-control-styles.ts +33 -24
  760. package/src/range-control/types.ts +2 -2
  761. package/src/resizable-box/index.tsx +1 -1
  762. package/src/resizable-box/resize-tooltip/index.tsx +1 -1
  763. package/src/resizable-box/resize-tooltip/label.tsx +1 -1
  764. package/src/resizable-box/resize-tooltip/utils.ts +2 -2
  765. package/src/resizable-box/stories/index.story.tsx +4 -0
  766. package/src/responsive-wrapper/stories/index.story.tsx +5 -0
  767. package/src/sandbox/index.tsx +1 -1
  768. package/src/sandbox/stories/index.story.tsx +4 -0
  769. package/src/scroll-lock/stories/index.story.tsx +4 -0
  770. package/src/scrollable/stories/index.story.tsx +5 -0
  771. package/src/search-control/stories/index.story.tsx +5 -0
  772. package/src/search-control/types.ts +1 -1
  773. package/src/select-control/stories/index.story.tsx +5 -0
  774. package/src/shortcut/stories/index.story.tsx +4 -0
  775. package/src/slot-fill/index.tsx +12 -3
  776. package/src/slot-fill/stories/index.story.tsx +4 -0
  777. package/src/slot-fill/test/__snapshots__/slot.js.snap +4 -4
  778. package/src/slot-fill/test/index.js +38 -0
  779. package/src/slot-fill/types.ts +1 -1
  780. package/src/snackbar/list.tsx +1 -1
  781. package/src/snackbar/stories/index.story.tsx +4 -0
  782. package/src/spacer/stories/index.story.tsx +5 -0
  783. package/src/spinner/stories/index.story.tsx +4 -0
  784. package/src/style.scss +2 -0
  785. package/src/surface/stories/index.story.tsx +5 -0
  786. package/src/surface/test/__snapshots__/index.tsx.snap +10 -10
  787. package/src/tab-panel/stories/index.story.tsx +5 -0
  788. package/src/tabs/stories/index.story.tsx +5 -0
  789. package/src/tabs/styles.ts +1 -0
  790. package/src/text/stories/index.story.tsx +5 -0
  791. package/src/text/styles.ts +0 -1
  792. package/src/text/test/__snapshots__/index.tsx.snap +0 -2
  793. package/src/text/utils.ts +18 -18
  794. package/src/text-control/stories/index.story.tsx +5 -0
  795. package/src/text-highlight/stories/index.story.tsx +4 -0
  796. package/src/textarea-control/stories/index.story.tsx +5 -0
  797. package/src/theme/stories/index.story.tsx +5 -0
  798. package/src/tip/stories/index.story.tsx +4 -0
  799. package/src/toggle-control/index.tsx +4 -0
  800. package/src/toggle-control/stories/index.story.tsx +5 -0
  801. package/src/toggle-group-control/stories/index.story.tsx +5 -0
  802. package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +4 -4
  803. package/src/toggle-group-control/toggle-group-control/styles.ts +1 -1
  804. package/src/toggle-group-control/toggle-group-control-option-base/component.tsx +1 -1
  805. package/src/toggle-group-control/types.ts +1 -1
  806. package/src/toolbar/stories/index.story.tsx +4 -0
  807. package/src/tools-panel/stories/index.story.tsx +4 -0
  808. package/src/tooltip/context.ts +8 -0
  809. package/src/tooltip/index.tsx +2 -22
  810. package/src/tooltip/stories/index.story.tsx +4 -0
  811. package/src/tree-grid/roving-tab-index-item.tsx +1 -1
  812. package/src/tree-grid/stories/index.story.tsx +4 -0
  813. package/src/tree-grid/types.ts +1 -1
  814. package/src/tree-select/stories/index.story.tsx +4 -0
  815. package/src/truncate/stories/index.story.tsx +4 -0
  816. package/src/unit-control/stories/index.story.tsx +4 -0
  817. package/src/utils/element-rect.ts +1 -1
  818. package/src/utils/hooks/use-cx.ts +1 -2
  819. package/src/utils/hooks/use-update-effect.js +2 -2
  820. package/src/utils/rtl.js +4 -4
  821. package/src/utils/use-responsive-value.ts +1 -5
  822. package/src/v-stack/stories/index.story.tsx +5 -0
  823. package/src/v-stack/test/index.tsx +1 -1
  824. package/src/validated-form-controls/components/stories/overview.story.tsx +2 -1
  825. package/src/validated-form-controls/components/toggle-control.tsx +6 -10
  826. package/src/view/stories/index.story.tsx +5 -0
  827. package/src/view/test/__snapshots__/index.js.snap +5 -5
  828. package/src/visually-hidden/stories/index.story.tsx +4 -0
  829. package/src/visually-hidden/test/__snapshots__/index.tsx.snap +1 -1
  830. package/src/z-stack/stories/index.story.tsx +5 -0
package/AGENTS.md ADDED
@@ -0,0 +1,17 @@
1
+ ## Status
2
+
3
+ This package contains UI components that are intended to be used anywhere in a general way (global), or specifically in the block editor.
4
+
5
+ We are currently in the process of rewriting the global components to be in the new `@wordpress/ui` package. However, this is a work in progress and `@wordpress/components` should continue to be used until further notice.
6
+
7
+ Due to the nature of the transition, some components may be deprecated or removed in the future. Check the component status documentation in each Storybook file for up-to-date usage guidance on each component. The component status given in the Storybook file should be considered the most accurate signal, above the `experimental` tag or component prefix.
8
+
9
+ ## Forms
10
+
11
+ Is the form going to edit items of a dataset, rather than simply submitting data somewhere? If so, consider using `DataForm` from the `@wordpress/dataviews` package.
12
+
13
+ For adding validation, consider using the [Validated Form Components](./src/validated-form-controls).
14
+
15
+ ## Storybook
16
+
17
+ Don't forget to check a components's Storybook documentation for additional usage guidance. The Storybook links ([public base URL](https://wordpress.github.io/gutenberg/)) are also useful to present to a human when they are asking for help with a component.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,37 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 32.2.0 (2026-02-18)
6
+
7
+ ### Bug Fixes
8
+
9
+ - `Tabs`: Set explicit `font-family` on tab buttons to prevent inheriting unintended fonts ([#75537](https://github.com/WordPress/gutenberg/pull/75537)).
10
+ - `ExternalLink`: Add `wp-exclude-emoji` class to prevent Twemoji from replacing the arrow icon ([#75538](https://github.com/WordPress/gutenberg/pull/75538)).
11
+ - `TimePicker`: Fix date parsing for years below 1000 by implementing ISO 8601 compliant year formatting with zero-padding ([#75343](https://github.com/WordPress/gutenberg/pull/75343)).
12
+ - `Text`: Remove `text-wrap: balance` fallback. Only `text-wrap: pretty` is now used ([#75089](https://github.com/WordPress/gutenberg/pull/75089)).
13
+ - `RangeControl`: support forced-colors mode ([#75165](https://github.com/WordPress/gutenberg/pull/75165)).
14
+ - `ToggleControl`: Prevent `__nextHasNoMarginBottom` from logging a console warning ([#75296](https://github.com/WordPress/gutenberg/pull/75296)).
15
+ - `createSlotFill`: fix ref forwarding ([#75274](https://github.com/WordPress/gutenberg/pull/75274)).
16
+ - `Button`: Fix native outline showing when focused and active ([#75346](https://github.com/WordPress/gutenberg/pull/75346)).
17
+
18
+ ### Enhancements
19
+
20
+ - Improve visual emphasis of the selected item in the ToggleGroupControl component ([#75138](https://github.com/WordPress/gutenberg/pull/75138)).
21
+ - `DateCalendar`, `DateRangeCalendar`: use lighter gray for disabled dates ([#75683](https://github.com/WordPress/gutenberg/pull/75683)).
22
+
23
+ ### Internal
24
+
25
+ - Add `Avatar` and `AvatarGroup` components as private APIs ([#75595](https://github.com/WordPress/gutenberg/pull/75595)).
26
+ - Remove `Picker` from private APIs ([#75394](https://github.com/WordPress/gutenberg/pull/75394)).
27
+ - Expose `useDrag` from `@use-gesture/react` package via private API's ([#66735](https://github.com/WordPress/gutenberg/pull/66735)).
28
+ - `Disabled`, `Modal`, `Popover`, `Tooltip`: Move context code to separate files to help docgen prop extraction ([#75316](https://github.com/WordPress/gutenberg/pull/75316)).
29
+ - Update Emotion dependencies to ensure compatibility with React 19 ([#75324](https://github.com/WordPress/gutenberg/pull/75324)).
30
+ - Update Testing Library packages used in unit tests ([#75340](https://github.com/WordPress/gutenberg/pull/75340)).
31
+ - Clean up type declarations using the `React` namespace ([#75499](https://github.com/WordPress/gutenberg/pull/75499) and ([#75508](https://github.com/WordPress/gutenberg/pull/75508))).
32
+ - Always specify initial values for `useRef` calls ([#75513](https://github.com/WordPress/gutenberg/pull/75513)).
33
+ - Update `RefObject` type usage for React 19 compatibility ([#75567](https://github.com/WordPress/gutenberg/pull/75567)).
34
+ - Upgraded `@ariakit/react` (v0.4.21) and `@ariakit/test` (v0.4.13) ([#75620](https://github.com/WordPress/gutenberg/pull/75620)).
35
+
5
36
  ## 32.1.0 (2026-01-29)
6
37
 
7
38
  ### Code Quality
@@ -12,6 +43,10 @@
12
43
 
13
44
  - `ValidatedComboboxControl`: Expose the component under private API's. [#74891](https://github.com/WordPress/gutenberg/pull/74891)
14
45
 
46
+ ### Enhancements
47
+
48
+ - `ToggleControl` pass full props and support required validation in `ValidatedToggleControl`. [#74956](https://github.com/WordPress/gutenberg/pull/74956)
49
+
15
50
  ## 32.0.0 (2026-01-16)
16
51
 
17
52
  ### Code Quality
package/CLAUDE.md ADDED
@@ -0,0 +1 @@
1
+ @AGENTS.md
@@ -55,8 +55,8 @@ function AngleCircle({
55
55
  ...props
56
56
  }) {
57
57
  const angleCircleRef = (0, import_element.useRef)(null);
58
- const angleCircleCenterRef = (0, import_element.useRef)();
59
- const previousCursorValueRef = (0, import_element.useRef)();
58
+ const angleCircleCenterRef = (0, import_element.useRef)(void 0);
59
+ const previousCursorValueRef = (0, import_element.useRef)(void 0);
60
60
  const setAngleCircleCenter = () => {
61
61
  if (angleCircleRef.current === null) {
62
62
  return;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/angle-picker-control/angle-circle.tsx", "../../src/angle-picker-control/style.module.scss"],
4
- "sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { useEffect, useRef } from '@wordpress/element';\nimport { __experimentalUseDragging as useDragging } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.module.scss';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction AngleCircle({\n value,\n onChange,\n className,\n ...props\n}) {\n const angleCircleRef = useRef(null);\n const angleCircleCenterRef = useRef();\n const previousCursorValueRef = useRef();\n const setAngleCircleCenter = () => {\n if (angleCircleRef.current === null) {\n return;\n }\n const rect = angleCircleRef.current.getBoundingClientRect();\n angleCircleCenterRef.current = {\n x: rect.x + rect.width / 2,\n y: rect.y + rect.height / 2\n };\n };\n const changeAngleToPosition = event => {\n if (event === undefined) {\n return;\n }\n\n // Prevent (drag) mouse events from selecting and accidentally\n // triggering actions from other elements.\n event.preventDefault();\n // Input control needs to lose focus and by preventDefault above, it doesn't.\n event.target?.focus();\n if (angleCircleCenterRef.current !== undefined && onChange !== undefined) {\n const {\n x: centerX,\n y: centerY\n } = angleCircleCenterRef.current;\n onChange(getAngle(centerX, centerY, event.clientX, event.clientY));\n }\n };\n const {\n startDrag,\n isDragging\n } = useDragging({\n onDragStart: event => {\n setAngleCircleCenter();\n changeAngleToPosition(event);\n },\n onDragMove: changeAngleToPosition,\n onDragEnd: changeAngleToPosition\n });\n useEffect(() => {\n if (isDragging) {\n if (previousCursorValueRef.current === undefined) {\n previousCursorValueRef.current = document.body.style.cursor;\n }\n document.body.style.cursor = 'grabbing';\n } else {\n document.body.style.cursor = previousCursorValueRef.current || '';\n previousCursorValueRef.current = undefined;\n }\n }, [isDragging]);\n return (\n /*#__PURE__*/\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n _jsx(\"div\", {\n ref: angleCircleRef,\n onMouseDown: startDrag,\n className: clsx('components-angle-picker-control__angle-circle', styles['circle-root'], className),\n ...props,\n children: /*#__PURE__*/_jsx(\"div\", {\n style: value ? {\n transform: `rotate(${value}deg)`\n } : undefined,\n className: clsx('components-angle-picker-control__angle-circle-indicator-wrapper', styles['circle-indicator-wrapper']),\n tabIndex: -1,\n children: /*#__PURE__*/_jsx(\"div\", {\n className: clsx('components-angle-picker-control__angle-circle-indicator', styles['circle-indicator'])\n })\n })\n })\n );\n}\nfunction getAngle(centerX, centerY, pointX, pointY) {\n const y = pointY - centerY;\n const x = pointX - centerX;\n const angleInRadians = Math.atan2(y, x);\n const angleInDeg = Math.round(angleInRadians * (180 / Math.PI)) + 90;\n if (angleInDeg < 0) {\n return 360 + angleInDeg;\n }\n return angleInDeg;\n}\nexport default AngleCircle;", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='a61a1d6ad7']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"a61a1d6ad7\");\n\tstyle.appendChild(document.createTextNode(\"._8f57b8d483c51fbe__circle-root{border:1px solid var(--wp-components-color-gray-600,#949494);border-radius:50%;box-sizing:border-box;cursor:grab;height:32px;overflow:hidden;width:32px}._8f57b8d483c51fbe__circle-root:active{cursor:grabbing}.b1bae984ac10fcc3__circle-indicator-wrapper{box-sizing:border-box;height:100%;position:relative;width:100%}.b1bae984ac10fcc3__circle-indicator-wrapper:focus-visible{outline:none}._6d2fe0a2cbb31bf0__circle-indicator{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:50%;box-sizing:border-box;display:block;height:6px;left:50%;position:absolute;top:4px;transform:translateX(-50%);width:6px}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"circle-root\":\"_8f57b8d483c51fbe__circle-root\",\"circle-indicator-wrapper\":\"b1bae984ac10fcc3__circle-indicator-wrapper\",\"circle-indicator\":\"_6d2fe0a2cbb31bf0__circle-indicator\"};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAiB;AAKjB,qBAAkC;AAClC,qBAAyD;;;ACTzD,IAAI,OAAO,aAAa,eAAe,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AACxG,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,kqBAAkqB,CAAC;AAC7sB,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,uBAAQ,EAAC,eAAc,kCAAiC,4BAA2B,8CAA6C,oBAAmB,sCAAqC;;;ADS/L,yBAA4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AAAA,MACV,KAAK;AAAA,MACL,aAAa;AAAA,MACb,eAAW,YAAAC,SAAK,iDAAiD,qBAAO,aAAa,GAAG,SAAS;AAAA,MACjG,GAAG;AAAA,MACH,UAAuB,uCAAAD,KAAK,OAAO;AAAA,QACjC,OAAO,QAAQ;AAAA,UACb,WAAW,UAAU,KAAK;AAAA,QAC5B,IAAI;AAAA,QACJ,eAAW,YAAAC,SAAK,mEAAmE,qBAAO,0BAA0B,CAAC;AAAA,QACrH,UAAU;AAAA,QACV,UAAuB,uCAAAD,KAAK,OAAO;AAAA,UACjC,eAAW,YAAAC,SAAK,2DAA2D,qBAAO,kBAAkB,CAAC;AAAA,QACvG,CAAC;AAAA,MACH,CAAC;AAAA,IACH,CAAC;AAAA;AAEL;AACA,SAAS,SAAS,SAAS,SAAS,QAAQ,QAAQ;AAClD,QAAM,IAAI,SAAS;AACnB,QAAM,IAAI,SAAS;AACnB,QAAM,iBAAiB,KAAK,MAAM,GAAG,CAAC;AACtC,QAAM,aAAa,KAAK,MAAM,kBAAkB,MAAM,KAAK,GAAG,IAAI;AAClE,MAAI,aAAa,GAAG;AAClB,WAAO,MAAM;AAAA,EACf;AACA,SAAO;AACT;AACA,IAAO,uBAAQ;",
4
+ "sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { useEffect, useRef } from '@wordpress/element';\nimport { __experimentalUseDragging as useDragging } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.module.scss';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction AngleCircle({\n value,\n onChange,\n className,\n ...props\n}) {\n const angleCircleRef = useRef(null);\n const angleCircleCenterRef = useRef(undefined);\n const previousCursorValueRef = useRef(undefined);\n const setAngleCircleCenter = () => {\n if (angleCircleRef.current === null) {\n return;\n }\n const rect = angleCircleRef.current.getBoundingClientRect();\n angleCircleCenterRef.current = {\n x: rect.x + rect.width / 2,\n y: rect.y + rect.height / 2\n };\n };\n const changeAngleToPosition = event => {\n if (event === undefined) {\n return;\n }\n\n // Prevent (drag) mouse events from selecting and accidentally\n // triggering actions from other elements.\n event.preventDefault();\n // Input control needs to lose focus and by preventDefault above, it doesn't.\n event.target?.focus();\n if (angleCircleCenterRef.current !== undefined && onChange !== undefined) {\n const {\n x: centerX,\n y: centerY\n } = angleCircleCenterRef.current;\n onChange(getAngle(centerX, centerY, event.clientX, event.clientY));\n }\n };\n const {\n startDrag,\n isDragging\n } = useDragging({\n onDragStart: event => {\n setAngleCircleCenter();\n changeAngleToPosition(event);\n },\n onDragMove: changeAngleToPosition,\n onDragEnd: changeAngleToPosition\n });\n useEffect(() => {\n if (isDragging) {\n if (previousCursorValueRef.current === undefined) {\n previousCursorValueRef.current = document.body.style.cursor;\n }\n document.body.style.cursor = 'grabbing';\n } else {\n document.body.style.cursor = previousCursorValueRef.current || '';\n previousCursorValueRef.current = undefined;\n }\n }, [isDragging]);\n return (\n /*#__PURE__*/\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n _jsx(\"div\", {\n ref: angleCircleRef,\n onMouseDown: startDrag,\n className: clsx('components-angle-picker-control__angle-circle', styles['circle-root'], className),\n ...props,\n children: /*#__PURE__*/_jsx(\"div\", {\n style: value ? {\n transform: `rotate(${value}deg)`\n } : undefined,\n className: clsx('components-angle-picker-control__angle-circle-indicator-wrapper', styles['circle-indicator-wrapper']),\n tabIndex: -1,\n children: /*#__PURE__*/_jsx(\"div\", {\n className: clsx('components-angle-picker-control__angle-circle-indicator', styles['circle-indicator'])\n })\n })\n })\n );\n}\nfunction getAngle(centerX, centerY, pointX, pointY) {\n const y = pointY - centerY;\n const x = pointX - centerX;\n const angleInRadians = Math.atan2(y, x);\n const angleInDeg = Math.round(angleInRadians * (180 / Math.PI)) + 90;\n if (angleInDeg < 0) {\n return 360 + angleInDeg;\n }\n return angleInDeg;\n}\nexport default AngleCircle;", "if (typeof document !== 'undefined' && !document.head.querySelector(\"style[data-wp-hash='a61a1d6ad7']\")) {\n\tconst style = document.createElement(\"style\");\n\tstyle.setAttribute(\"data-wp-hash\", \"a61a1d6ad7\");\n\tstyle.appendChild(document.createTextNode(\"._8f57b8d483c51fbe__circle-root{border:1px solid var(--wp-components-color-gray-600,#949494);border-radius:50%;box-sizing:border-box;cursor:grab;height:32px;overflow:hidden;width:32px}._8f57b8d483c51fbe__circle-root:active{cursor:grabbing}.b1bae984ac10fcc3__circle-indicator-wrapper{box-sizing:border-box;height:100%;position:relative;width:100%}.b1bae984ac10fcc3__circle-indicator-wrapper:focus-visible{outline:none}._6d2fe0a2cbb31bf0__circle-indicator{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:50%;box-sizing:border-box;display:block;height:6px;left:50%;position:absolute;top:4px;transform:translateX(-50%);width:6px}\"));\n\tdocument.head.appendChild(style);\n}\nexport default {\"circle-root\":\"_8f57b8d483c51fbe__circle-root\",\"circle-indicator-wrapper\":\"b1bae984ac10fcc3__circle-indicator-wrapper\",\"circle-indicator\":\"_6d2fe0a2cbb31bf0__circle-indicator\"};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAiB;AAKjB,qBAAkC;AAClC,qBAAyD;;;ACTzD,IAAI,OAAO,aAAa,eAAe,CAAC,SAAS,KAAK,cAAc,kCAAkC,GAAG;AACxG,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,gBAAgB,YAAY;AAC/C,QAAM,YAAY,SAAS,eAAe,kqBAAkqB,CAAC;AAC7sB,WAAS,KAAK,YAAY,KAAK;AAChC;AACA,IAAO,uBAAQ,EAAC,eAAc,kCAAiC,4BAA2B,8CAA6C,oBAAmB,sCAAqC;;;ADS/L,yBAA4B;AAC5B,SAAS,YAAY;AAAA,EACnB;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG;AACD,QAAM,qBAAiB,uBAAO,IAAI;AAClC,Q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,GAAG;AAAA,MACH,UAAuB,uCAAAD,KAAK,OAAO;AAAA,QACjC,OAAO,QAAQ;AAAA,UACb,WAAW,UAAU,KAAK;AAAA,QAC5B,IAAI;AAAA,QACJ,eAAW,YAAAC,SAAK,mEAAmE,qBAAO,0BAA0B,CAAC;AAAA,QACrH,UAAU;AAAA,QACV,UAAuB,uCAAAD,KAAK,OAAO;AAAA,UACjC,eAAW,YAAAC,SAAK,2DAA2D,qBAAO,kBAAkB,CAAC;AAAA,QACvG,CAAC;AAAA,MACH,CAAC;AAAA,IACH,CAAC;AAAA;AAEL;AACA,SAAS,SAAS,SAAS,SAAS,QAAQ,QAAQ;AAClD,QAAM,IAAI,SAAS;AACnB,QAAM,IAAI,SAAS;AACnB,QAAM,iBAAiB,KAAK,MAAM,GAAG,CAAC;AACtC,QAAM,aAAa,KAAK,MAAM,kBAAkB,MAAM,KAAK,GAAG,IAAI;AAClE,MAAI,aAAa,GAAG;AAClB,WAAO,MAAM;AAAA,EACf;AACA,SAAO;AACT;AACA,IAAO,uBAAQ;",
6
6
  "names": ["useDragging", "_jsx", "clsx"]
7
7
  }
@@ -265,7 +265,7 @@ function useLastDifferentValue(value) {
265
265
  }
266
266
  function useAutocompleteProps(options) {
267
267
  const ref = (0, import_element.useRef)(null);
268
- const onKeyDownRef = (0, import_element.useRef)();
268
+ const onKeyDownRef = (0, import_element.useRef)(void 0);
269
269
  const {
270
270
  record
271
271
  } = options;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/autocomplete/index.tsx"],
4
- "sourcesContent": ["/**\n * External dependencies\n */\nimport removeAccents from 'remove-accents';\n\n/**\n * WordPress dependencies\n */\nimport { renderToString, useEffect, useState, useRef, useMemo } from '@wordpress/element';\nimport { useInstanceId, useMergeRefs, useRefEffect } from '@wordpress/compose';\nimport { create, slice, insert, isCollapsed, getTextContent } from '@wordpress/rich-text';\nimport { speak } from '@wordpress/a11y';\nimport { isAppleOS } from '@wordpress/keycodes';\n\n/**\n * Internal dependencies\n */\nimport { getAutoCompleterUI } from './autocompleter-ui';\nimport { escapeRegExp } from '../utils/strings';\nimport { withIgnoreIMEEvents } from '../utils/with-ignore-ime-events';\nimport getNodeText from '../utils/get-node-text';\nimport { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst EMPTY_FILTERED_OPTIONS = [];\n\n// Used for generating the instance ID\nconst AUTOCOMPLETE_HOOK_REFERENCE = {};\nexport function useAutocomplete({\n record,\n onChange,\n onReplace,\n completers,\n contentRef\n}) {\n const instanceId = useInstanceId(AUTOCOMPLETE_HOOK_REFERENCE);\n const [selectedIndex, setSelectedIndex] = useState(0);\n const [filteredOptions, setFilteredOptions] = useState(EMPTY_FILTERED_OPTIONS);\n const [filterValue, setFilterValue] = useState('');\n const [autocompleter, setAutocompleter] = useState(null);\n const [AutocompleterUI, setAutocompleterUI] = useState(null);\n const backspacingRef = useRef(false);\n function insertCompletion(replacement) {\n if (autocompleter === null) {\n return;\n }\n const end = record.start;\n const start = end - autocompleter.triggerPrefix.length - filterValue.length;\n const toInsert = create({\n html: renderToString(replacement)\n });\n onChange(insert(record, toInsert, start, end));\n }\n function select(option) {\n const {\n getOptionCompletion\n } = autocompleter || {};\n if (option.isDisabled) {\n return;\n }\n if (getOptionCompletion) {\n const completion = getOptionCompletion(option.value, filterValue);\n const isCompletionObject = obj => {\n return obj !== null && typeof obj === 'object' && 'action' in obj && obj.action !== undefined && 'value' in obj && obj.value !== undefined;\n };\n const completionObject = isCompletionObject(completion) ? completion : {\n action: 'insert-at-caret',\n value: completion\n };\n if ('replace' === completionObject.action) {\n onReplace([completionObject.value]);\n // When replacing, the component will unmount, so don't reset\n // state (below) on an unmounted component.\n return;\n } else if ('insert-at-caret' === completionObject.action) {\n insertCompletion(completionObject.value);\n }\n }\n\n // Reset autocomplete state after insertion rather than before\n // so insertion events don't cause the completion menu to redisplay.\n reset();\n\n // Make sure that the content remains focused after making a selection\n // and that the text cursor position is not lost.\n contentRef.current?.focus();\n }\n function reset() {\n setSelectedIndex(0);\n setFilteredOptions(EMPTY_FILTERED_OPTIONS);\n setFilterValue('');\n setAutocompleter(null);\n setAutocompleterUI(null);\n }\n\n /**\n * Load options for an autocompleter.\n *\n * @param {Array} options\n */\n function onChangeOptions(options) {\n setSelectedIndex(options.length === filteredOptions.length ? selectedIndex : 0);\n setFilteredOptions(options);\n }\n function handleKeyDown(event) {\n backspacingRef.current = event.key === 'Backspace';\n if (!autocompleter) {\n return;\n }\n if (filteredOptions.length === 0) {\n return;\n }\n if (event.defaultPrevented) {\n return;\n }\n switch (event.key) {\n case 'ArrowUp':\n {\n const newIndex = (selectedIndex === 0 ? filteredOptions.length : selectedIndex) - 1;\n setSelectedIndex(newIndex);\n // See the related PR as to why this is necessary: https://github.com/WordPress/gutenberg/pull/54902.\n if (isAppleOS()) {\n speak(getNodeText(filteredOptions[newIndex].label), 'assertive');\n }\n break;\n }\n case 'ArrowDown':\n {\n const newIndex = (selectedIndex + 1) % filteredOptions.length;\n setSelectedIndex(newIndex);\n if (isAppleOS()) {\n speak(getNodeText(filteredOptions[newIndex].label), 'assertive');\n }\n break;\n }\n case 'Escape':\n setAutocompleter(null);\n setAutocompleterUI(null);\n event.preventDefault();\n break;\n case 'Enter':\n select(filteredOptions[selectedIndex]);\n break;\n case 'ArrowLeft':\n case 'ArrowRight':\n reset();\n return;\n default:\n return;\n }\n\n // Any handled key should prevent original behavior. This relies on\n // the early return in the default case.\n event.preventDefault();\n }\n\n // textContent is a primitive (string), memoizing is not strictly necessary\n // but this is a preemptive performance improvement, since the autocompleter\n // is a potential bottleneck for the editor type metric.\n const textContent = useMemo(() => {\n if (isCollapsed(record)) {\n return getTextContent(slice(record, 0));\n }\n return '';\n }, [record]);\n useEffect(() => {\n if (!textContent) {\n if (autocompleter) {\n reset();\n }\n return;\n }\n\n // Find the completer with the highest triggerPrefix index in the\n // textContent.\n const completer = completers.reduce((lastTrigger, currentCompleter) => {\n const triggerIndex = textContent.lastIndexOf(currentCompleter.triggerPrefix);\n const lastTriggerIndex = lastTrigger !== null ? textContent.lastIndexOf(lastTrigger.triggerPrefix) : -1;\n return triggerIndex > lastTriggerIndex ? currentCompleter : lastTrigger;\n }, null);\n if (!completer) {\n if (autocompleter) {\n reset();\n }\n return;\n }\n const {\n allowContext,\n triggerPrefix\n } = completer;\n const triggerIndex = textContent.lastIndexOf(triggerPrefix);\n const textWithoutTrigger = textContent.slice(triggerIndex + triggerPrefix.length);\n const tooDistantFromTrigger = textWithoutTrigger.length > 50; // 50 chars seems to be a good limit.\n // This is a final barrier to prevent the effect from completing with\n // an extremely long string, which causes the editor to slow-down\n // significantly. This could happen, for example, if `matchingWhileBackspacing`\n // is true and one of the \"words\" end up being too long. If that's the case,\n // it will be caught by this guard.\n if (tooDistantFromTrigger) {\n return;\n }\n const mismatch = filteredOptions.length === 0;\n const wordsFromTrigger = textWithoutTrigger.split(/\\s/);\n // We need to allow the effect to run when not backspacing and if there\n // was a mismatch. i.e when typing a trigger + the match string or when\n // clicking in an existing trigger word on the page. We do that if we\n // detect that we have one word from trigger in the current textual context.\n //\n // Ex.: \"Some text @a\" <-- \"@a\" will be detected as the trigger word and\n // allow the effect to run. It will run until there's a mismatch.\n const hasOneTriggerWord = wordsFromTrigger.length === 1;\n // This is used to allow the effect to run when backspacing and if\n // \"touching\" a word that \"belongs\" to a trigger. We consider a \"trigger\n // word\" any word up to the limit of 3 from the trigger character.\n // Anything beyond that is ignored if there's a mismatch. This allows\n // us to \"escape\" a mismatch when backspacing, but still imposing some\n // sane limits.\n //\n // Ex: \"Some text @marcelo sekkkk\" <--- \"kkkk\" caused a mismatch, but\n // if the user presses backspace here, it will show the completion popup again.\n const matchingWhileBackspacing = backspacingRef.current && wordsFromTrigger.length <= 3;\n if (mismatch && !(matchingWhileBackspacing || hasOneTriggerWord)) {\n if (autocompleter) {\n reset();\n }\n return;\n }\n const textAfterSelection = getTextContent(slice(record, undefined, getTextContent(record).length));\n if (allowContext && !allowContext(textContent.slice(0, triggerIndex), textAfterSelection)) {\n if (autocompleter) {\n reset();\n }\n return;\n }\n if (/^\\s/.test(textWithoutTrigger) || /\\s\\s+$/.test(textWithoutTrigger)) {\n if (autocompleter) {\n reset();\n }\n return;\n }\n if (!/[\\u0000-\\uFFFF]*$/.test(textWithoutTrigger)) {\n if (autocompleter) {\n reset();\n }\n return;\n }\n const safeTrigger = escapeRegExp(completer.triggerPrefix);\n const text = removeAccents(textContent);\n const match = text.slice(text.lastIndexOf(completer.triggerPrefix)).match(new RegExp(`${safeTrigger}([\\u0000-\\uFFFF]*)$`));\n const query = match && match[1];\n setAutocompleter(completer);\n setAutocompleterUI(() => completer !== autocompleter ? getAutoCompleterUI(completer) : AutocompleterUI);\n setFilterValue(query === null ? '' : query);\n // We want to avoid introducing unexpected side effects.\n // See https://github.com/WordPress/gutenberg/pull/41820\n }, [textContent]);\n const {\n key: selectedKey = ''\n } = filteredOptions[selectedIndex] || {};\n const {\n className\n } = autocompleter || {};\n const isExpanded = !!autocompleter && filteredOptions.length > 0;\n const listBoxId = isExpanded ? `components-autocomplete-listbox-${instanceId}` : undefined;\n const activeId = isExpanded ? `components-autocomplete-item-${instanceId}-${selectedKey}` : null;\n const hasSelection = record.start !== undefined;\n const showPopover = !!textContent && hasSelection && !!AutocompleterUI;\n return {\n listBoxId,\n activeId,\n onKeyDown: withIgnoreIMEEvents(handleKeyDown),\n popover: showPopover && /*#__PURE__*/_jsx(AutocompleterUI, {\n className: className,\n filterValue: filterValue,\n instanceId: instanceId,\n listBoxId: listBoxId,\n selectedIndex: selectedIndex,\n onChangeOptions: onChangeOptions,\n onSelect: select,\n value: record,\n contentRef: contentRef,\n reset: reset\n })\n };\n}\nfunction useLastDifferentValue(value) {\n const history = useRef(new Set());\n history.current.add(value);\n\n // Keep the history size to 2.\n if (history.current.size > 2) {\n history.current.delete(Array.from(history.current)[0]);\n }\n return Array.from(history.current)[0];\n}\nexport function useAutocompleteProps(options) {\n const ref = useRef(null);\n const onKeyDownRef = useRef();\n const {\n record\n } = options;\n const previousRecord = useLastDifferentValue(record);\n const {\n popover,\n listBoxId,\n activeId,\n onKeyDown\n } = useAutocomplete({\n ...options,\n contentRef: ref\n });\n onKeyDownRef.current = onKeyDown;\n const mergedRefs = useMergeRefs([ref, useRefEffect(element => {\n function _onKeyDown(event) {\n onKeyDownRef.current?.(event);\n }\n element.addEventListener('keydown', _onKeyDown);\n return () => {\n element.removeEventListener('keydown', _onKeyDown);\n };\n }, [])]);\n\n // We only want to show the popover if the user has typed something.\n const didUserInput = record.text !== previousRecord?.text;\n if (!didUserInput) {\n return {\n ref: mergedRefs\n };\n }\n return {\n ref: mergedRefs,\n children: popover,\n 'aria-autocomplete': listBoxId ? 'list' : undefined,\n 'aria-owns': listBoxId,\n 'aria-activedescendant': activeId\n };\n}\nexport default function Autocomplete({\n children,\n isSelected,\n ...options\n}) {\n const {\n popover,\n ...props\n } = useAutocomplete(options);\n return /*#__PURE__*/_jsxs(_Fragment, {\n children: [children(props), isSelected && popover]\n });\n}"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,4BAA0B;AAK1B,qBAAqE;AACrE,qBAA0D;AAC1D,uBAAmE;AACnE,kBAAsB;AACtB,sBAA0B;AAK1B,8BAAmC;AACnC,qBAA6B;AAC7B,oCAAoC;AACpC,2BAAwB;AACxB,yBAAkE;AAClE,IAAM,yBAAyB,CAAC;AAGhC,IAAM,8BAA8B,CAAC;AAC9B,SAAS,gBAAgB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,QAAM,iBAAa,8BAAc,2BAA2B;AAC5D,QAAM,CAAC,eAAe,gBAAgB,QAAI,yBAAS,CAAC;AACpD,QAAM,CAAC,iBAAiB,kBAAkB,QAAI,yBAAS,sBAAsB;AAC7E,QAAM,CAAC,aAAa,cAAc,QAAI,y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AACA,SAAO,MAAM,KAAK,QAAQ,OAAO,EAAE,CAAC;AACtC;AACO,SAAS,qBAAqB,SAAS;AAC5C,QAAM,UAAM,uBAAO,IAAI;AACvB,QAAM,mBAAe,uBAAO;AAC5B,QAAM;AAAA,IACJ;AAAA,EACF,IAAI;AACJ,QAAM,iBAAiB,sBAAsB,MAAM;AACnD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,gBAAgB;AAAA,IAClB,GAAG;AAAA,IACH,YAAY;AAAA,EACd,CAAC;AACD,eAAa,UAAU;AACvB,QAAM,iBAAa,6BAAa,CAAC,SAAK,6BAAa,aAAW;AAC5D,aAAS,WAAW,OAAO;AACzB,mBAAa,UAAU,KAAK;AAAA,IAC9B;AACA,YAAQ,iBAAiB,WAAW,UAAU;AAC9C,WAAO,MAAM;AACX,cAAQ,oBAAoB,WAAW,UAAU;AAAA,IACnD;AAAA,EACF,GAAG,CAAC,CAAC,CAAC,CAAC;AAGP,QAAM,eAAe,OAAO,SAAS,gBAAgB;AACrD,MAAI,CAAC,cAAc;AACjB,WAAO;AAAA,MACL,KAAK;AAAA,IACP;AAAA,EACF;AACA,SAAO;AAAA,IACL,KAAK;AAAA,IACL,UAAU;AAAA,IACV,qBAAqB,YAAY,SAAS;AAAA,IAC1C,aAAa;AAAA,IACb,yBAAyB;AAAA,EAC3B;AACF;AACe,SAAR,aAA8B;AAAA,EACnC;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG;AACD,QAAM;AAAA,IACJ;AAAA,IACA,GAAG;AAAA,EACL,IAAI,gBAAgB,OAAO;AAC3B,SAAoB,uCAAAC,MAAM,mBAAAC,UAAW;AAAA,IACnC,UAAU,CAAC,SAAS,KAAK,GAAG,cAAc,OAAO;AAAA,EACnD,CAAC;AACH;",
4
+ "sourcesContent": ["/**\n * External dependencies\n */\nimport removeAccents from 'remove-accents';\n\n/**\n * WordPress dependencies\n */\nimport { renderToString, useEffect, useState, useRef, useMemo } from '@wordpress/element';\nimport { useInstanceId, useMergeRefs, useRefEffect } from '@wordpress/compose';\nimport { create, slice, insert, isCollapsed, getTextContent } from '@wordpress/rich-text';\nimport { speak } from '@wordpress/a11y';\nimport { isAppleOS } from '@wordpress/keycodes';\n\n/**\n * Internal dependencies\n */\nimport { getAutoCompleterUI } from './autocompleter-ui';\nimport { escapeRegExp } from '../utils/strings';\nimport { withIgnoreIMEEvents } from '../utils/with-ignore-ime-events';\nimport getNodeText from '../utils/get-node-text';\nimport { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst EMPTY_FILTERED_OPTIONS = [];\n\n// Used for generating the instance ID\nconst AUTOCOMPLETE_HOOK_REFERENCE = {};\nexport function useAutocomplete({\n record,\n onChange,\n onReplace,\n completers,\n contentRef\n}) {\n const instanceId = useInstanceId(AUTOCOMPLETE_HOOK_REFERENCE);\n const [selectedIndex, setSelectedIndex] = useState(0);\n const [filteredOptions, setFilteredOptions] = useState(EMPTY_FILTERED_OPTIONS);\n const [filterValue, setFilterValue] = useState('');\n const [autocompleter, setAutocompleter] = useState(null);\n const [AutocompleterUI, setAutocompleterUI] = useState(null);\n const backspacingRef = useRef(false);\n function insertCompletion(replacement) {\n if (autocompleter === null) {\n return;\n }\n const end = record.start;\n const start = end - autocompleter.triggerPrefix.length - filterValue.length;\n const toInsert = create({\n html: renderToString(replacement)\n });\n onChange(insert(record, toInsert, start, end));\n }\n function select(option) {\n const {\n getOptionCompletion\n } = autocompleter || {};\n if (option.isDisabled) {\n return;\n }\n if (getOptionCompletion) {\n const completion = getOptionCompletion(option.value, filterValue);\n const isCompletionObject = obj => {\n return obj !== null && typeof obj === 'object' && 'action' in obj && obj.action !== undefined && 'value' in obj && obj.value !== undefined;\n };\n const completionObject = isCompletionObject(completion) ? completion : {\n action: 'insert-at-caret',\n value: completion\n };\n if ('replace' === completionObject.action) {\n onReplace([completionObject.value]);\n // When replacing, the component will unmount, so don't reset\n // state (below) on an unmounted component.\n return;\n } else if ('insert-at-caret' === completionObject.action) {\n insertCompletion(completionObject.value);\n }\n }\n\n // Reset autocomplete state after insertion rather than before\n // so insertion events don't cause the completion menu to redisplay.\n reset();\n\n // Make sure that the content remains focused after making a selection\n // and that the text cursor position is not lost.\n contentRef.current?.focus();\n }\n function reset() {\n setSelectedIndex(0);\n setFilteredOptions(EMPTY_FILTERED_OPTIONS);\n setFilterValue('');\n setAutocompleter(null);\n setAutocompleterUI(null);\n }\n\n /**\n * Load options for an autocompleter.\n *\n * @param {Array} options\n */\n function onChangeOptions(options) {\n setSelectedIndex(options.length === filteredOptions.length ? selectedIndex : 0);\n setFilteredOptions(options);\n }\n function handleKeyDown(event) {\n backspacingRef.current = event.key === 'Backspace';\n if (!autocompleter) {\n return;\n }\n if (filteredOptions.length === 0) {\n return;\n }\n if (event.defaultPrevented) {\n return;\n }\n switch (event.key) {\n case 'ArrowUp':\n {\n const newIndex = (selectedIndex === 0 ? filteredOptions.length : selectedIndex) - 1;\n setSelectedIndex(newIndex);\n // See the related PR as to why this is necessary: https://github.com/WordPress/gutenberg/pull/54902.\n if (isAppleOS()) {\n speak(getNodeText(filteredOptions[newIndex].label), 'assertive');\n }\n break;\n }\n case 'ArrowDown':\n {\n const newIndex = (selectedIndex + 1) % filteredOptions.length;\n setSelectedIndex(newIndex);\n if (isAppleOS()) {\n speak(getNodeText(filteredOptions[newIndex].label), 'assertive');\n }\n break;\n }\n case 'Escape':\n setAutocompleter(null);\n setAutocompleterUI(null);\n event.preventDefault();\n break;\n case 'Enter':\n select(filteredOptions[selectedIndex]);\n break;\n case 'ArrowLeft':\n case 'ArrowRight':\n reset();\n return;\n default:\n return;\n }\n\n // Any handled key should prevent original behavior. This relies on\n // the early return in the default case.\n event.preventDefault();\n }\n\n // textContent is a primitive (string), memoizing is not strictly necessary\n // but this is a preemptive performance improvement, since the autocompleter\n // is a potential bottleneck for the editor type metric.\n const textContent = useMemo(() => {\n if (isCollapsed(record)) {\n return getTextContent(slice(record, 0));\n }\n return '';\n }, [record]);\n useEffect(() => {\n if (!textContent) {\n if (autocompleter) {\n reset();\n }\n return;\n }\n\n // Find the completer with the highest triggerPrefix index in the\n // textContent.\n const completer = completers.reduce((lastTrigger, currentCompleter) => {\n const triggerIndex = textContent.lastIndexOf(currentCompleter.triggerPrefix);\n const lastTriggerIndex = lastTrigger !== null ? textContent.lastIndexOf(lastTrigger.triggerPrefix) : -1;\n return triggerIndex > lastTriggerIndex ? currentCompleter : lastTrigger;\n }, null);\n if (!completer) {\n if (autocompleter) {\n reset();\n }\n return;\n }\n const {\n allowContext,\n triggerPrefix\n } = completer;\n const triggerIndex = textContent.lastIndexOf(triggerPrefix);\n const textWithoutTrigger = textContent.slice(triggerIndex + triggerPrefix.length);\n const tooDistantFromTrigger = textWithoutTrigger.length > 50; // 50 chars seems to be a good limit.\n // This is a final barrier to prevent the effect from completing with\n // an extremely long string, which causes the editor to slow-down\n // significantly. This could happen, for example, if `matchingWhileBackspacing`\n // is true and one of the \"words\" end up being too long. If that's the case,\n // it will be caught by this guard.\n if (tooDistantFromTrigger) {\n return;\n }\n const mismatch = filteredOptions.length === 0;\n const wordsFromTrigger = textWithoutTrigger.split(/\\s/);\n // We need to allow the effect to run when not backspacing and if there\n // was a mismatch. i.e when typing a trigger + the match string or when\n // clicking in an existing trigger word on the page. We do that if we\n // detect that we have one word from trigger in the current textual context.\n //\n // Ex.: \"Some text @a\" <-- \"@a\" will be detected as the trigger word and\n // allow the effect to run. It will run until there's a mismatch.\n const hasOneTriggerWord = wordsFromTrigger.length === 1;\n // This is used to allow the effect to run when backspacing and if\n // \"touching\" a word that \"belongs\" to a trigger. We consider a \"trigger\n // word\" any word up to the limit of 3 from the trigger character.\n // Anything beyond that is ignored if there's a mismatch. This allows\n // us to \"escape\" a mismatch when backspacing, but still imposing some\n // sane limits.\n //\n // Ex: \"Some text @marcelo sekkkk\" <--- \"kkkk\" caused a mismatch, but\n // if the user presses backspace here, it will show the completion popup again.\n const matchingWhileBackspacing = backspacingRef.current && wordsFromTrigger.length <= 3;\n if (mismatch && !(matchingWhileBackspacing || hasOneTriggerWord)) {\n if (autocompleter) {\n reset();\n }\n return;\n }\n const textAfterSelection = getTextContent(slice(record, undefined, getTextContent(record).length));\n if (allowContext && !allowContext(textContent.slice(0, triggerIndex), textAfterSelection)) {\n if (autocompleter) {\n reset();\n }\n return;\n }\n if (/^\\s/.test(textWithoutTrigger) || /\\s\\s+$/.test(textWithoutTrigger)) {\n if (autocompleter) {\n reset();\n }\n return;\n }\n if (!/[\\u0000-\\uFFFF]*$/.test(textWithoutTrigger)) {\n if (autocompleter) {\n reset();\n }\n return;\n }\n const safeTrigger = escapeRegExp(completer.triggerPrefix);\n const text = removeAccents(textContent);\n const match = text.slice(text.lastIndexOf(completer.triggerPrefix)).match(new RegExp(`${safeTrigger}([\\u0000-\\uFFFF]*)$`));\n const query = match && match[1];\n setAutocompleter(completer);\n setAutocompleterUI(() => completer !== autocompleter ? getAutoCompleterUI(completer) : AutocompleterUI);\n setFilterValue(query === null ? '' : query);\n // We want to avoid introducing unexpected side effects.\n // See https://github.com/WordPress/gutenberg/pull/41820\n }, [textContent]);\n const {\n key: selectedKey = ''\n } = filteredOptions[selectedIndex] || {};\n const {\n className\n } = autocompleter || {};\n const isExpanded = !!autocompleter && filteredOptions.length > 0;\n const listBoxId = isExpanded ? `components-autocomplete-listbox-${instanceId}` : undefined;\n const activeId = isExpanded ? `components-autocomplete-item-${instanceId}-${selectedKey}` : null;\n const hasSelection = record.start !== undefined;\n const showPopover = !!textContent && hasSelection && !!AutocompleterUI;\n return {\n listBoxId,\n activeId,\n onKeyDown: withIgnoreIMEEvents(handleKeyDown),\n popover: showPopover && /*#__PURE__*/_jsx(AutocompleterUI, {\n className: className,\n filterValue: filterValue,\n instanceId: instanceId,\n listBoxId: listBoxId,\n selectedIndex: selectedIndex,\n onChangeOptions: onChangeOptions,\n onSelect: select,\n value: record,\n contentRef: contentRef,\n reset: reset\n })\n };\n}\nfunction useLastDifferentValue(value) {\n const history = useRef(new Set());\n history.current.add(value);\n\n // Keep the history size to 2.\n if (history.current.size > 2) {\n history.current.delete(Array.from(history.current)[0]);\n }\n return Array.from(history.current)[0];\n}\nexport function useAutocompleteProps(options) {\n const ref = useRef(null);\n const onKeyDownRef = useRef(undefined);\n const {\n record\n } = options;\n const previousRecord = useLastDifferentValue(record);\n const {\n popover,\n listBoxId,\n activeId,\n onKeyDown\n } = useAutocomplete({\n ...options,\n contentRef: ref\n });\n onKeyDownRef.current = onKeyDown;\n const mergedRefs = useMergeRefs([ref, useRefEffect(element => {\n function _onKeyDown(event) {\n onKeyDownRef.current?.(event);\n }\n element.addEventListener('keydown', _onKeyDown);\n return () => {\n element.removeEventListener('keydown', _onKeyDown);\n };\n }, [])]);\n\n // We only want to show the popover if the user has typed something.\n const didUserInput = record.text !== previousRecord?.text;\n if (!didUserInput) {\n return {\n ref: mergedRefs\n };\n }\n return {\n ref: mergedRefs,\n children: popover,\n 'aria-autocomplete': listBoxId ? 'list' : undefined,\n 'aria-owns': listBoxId,\n 'aria-activedescendant': activeId\n };\n}\nexport default function Autocomplete({\n children,\n isSelected,\n ...options\n}) {\n const {\n popover,\n ...props\n } = useAutocomplete(options);\n return /*#__PURE__*/_jsxs(_Fragment, {\n children: [children(props), isSelected && popover]\n });\n}"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,4BAA0B;AAK1B,qBAAqE;AACrE,qBAA0D;AAC1D,uBAAmE;AACnE,kBAAsB;AACtB,sBAA0B;AAK1B,8BAAmC;AACnC,qBAA6B;AAC7B,oCAAoC;AACpC,2BAAwB;AACxB,yBAAkE;AAClE,IAAM,yBAAyB,CAAC;AAGhC,IAAM,8BAA8B,CAAC;AAC9B,SAAS,gBAAgB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,QAAM,iBAA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AU,CAAC,SAAS,KAAK,GAAG,cAAc,OAAO;AAAA,EACnD,CAAC;AACH;",
6
6
  "names": ["getNodeText", "triggerIndex", "removeAccents", "_jsx", "_jsxs", "_Fragment"]
7
7
  }
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // packages/components/src/avatar/component.tsx
31
+ var component_exports = {};
32
+ __export(component_exports, {
33
+ default: () => component_default
34
+ });
35
+ module.exports = __toCommonJS(component_exports);
36
+ var import_clsx = __toESM(require("clsx"));
37
+ var import_icon = __toESM(require("../icon/index.cjs"));
38
+ var import_tooltip = __toESM(require("../tooltip/index.cjs"));
39
+ var import_jsx_runtime = require("react/jsx-runtime");
40
+ function Avatar({
41
+ className,
42
+ src,
43
+ name,
44
+ label,
45
+ badge = false,
46
+ size = "default",
47
+ borderColor,
48
+ status,
49
+ statusIndicator,
50
+ style,
51
+ ...props
52
+ }) {
53
+ const showBadge = badge && !!name;
54
+ const initials = name ? name.split(/\s+/).slice(0, 2).map((word) => word[0]).join("").toUpperCase() : void 0;
55
+ const customProperties = {
56
+ ...style,
57
+ ...src ? {
58
+ "--components-avatar-url": `url(${src})`
59
+ } : {},
60
+ ...borderColor ? {
61
+ "--components-avatar-outline-color": borderColor
62
+ } : {}
63
+ };
64
+ const avatar = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
65
+ className: (0, import_clsx.default)("components-avatar", className, {
66
+ "has-avatar-border-color": !!borderColor,
67
+ "has-src": !!src,
68
+ "has-badge": showBadge,
69
+ "is-small": size === "small",
70
+ "has-status": !!status,
71
+ [`is-${status}`]: !!status
72
+ }),
73
+ style: customProperties,
74
+ role: "img",
75
+ "aria-label": name,
76
+ ...props,
77
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
78
+ className: "components-avatar__image",
79
+ children: [!src && initials, !!status && !!statusIndicator && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
80
+ className: "components-avatar__status-indicator",
81
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icon.default, {
82
+ icon: statusIndicator
83
+ })
84
+ })]
85
+ }), showBadge && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
86
+ className: "components-avatar__name",
87
+ children: label || name
88
+ })]
89
+ });
90
+ if (name && (!showBadge || label)) {
91
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tooltip.default, {
92
+ text: name,
93
+ children: avatar
94
+ });
95
+ }
96
+ return avatar;
97
+ }
98
+ var component_default = Avatar;
99
+ //# sourceMappingURL=component.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/avatar/component.tsx"],
4
+ "sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * Internal dependencies\n */\nimport Icon from '../icon';\nimport Tooltip from '../tooltip';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction Avatar({\n className,\n src,\n name,\n label,\n badge = false,\n size = 'default',\n borderColor,\n status,\n statusIndicator,\n style,\n ...props\n}) {\n const showBadge = badge && !!name;\n const initials = name ? name.split(/\\s+/).slice(0, 2).map(word => word[0]).join('').toUpperCase() : undefined;\n const customProperties = {\n ...style,\n ...(src ? {\n '--components-avatar-url': `url(${src})`\n } : {}),\n ...(borderColor ? {\n '--components-avatar-outline-color': borderColor\n } : {})\n };\n const avatar = /*#__PURE__*/_jsxs(\"div\", {\n className: clsx('components-avatar', className, {\n 'has-avatar-border-color': !!borderColor,\n 'has-src': !!src,\n 'has-badge': showBadge,\n 'is-small': size === 'small',\n 'has-status': !!status,\n [`is-${status}`]: !!status\n }),\n style: customProperties,\n role: \"img\",\n \"aria-label\": name,\n ...props,\n children: [/*#__PURE__*/_jsxs(\"span\", {\n className: \"components-avatar__image\",\n children: [!src && initials, !!status && !!statusIndicator && /*#__PURE__*/_jsx(\"span\", {\n className: \"components-avatar__status-indicator\",\n children: /*#__PURE__*/_jsx(Icon, {\n icon: statusIndicator\n })\n })]\n }), showBadge && /*#__PURE__*/_jsx(\"span\", {\n className: \"components-avatar__name\",\n children: label || name\n })]\n });\n if (name && (!showBadge || label)) {\n return /*#__PURE__*/_jsx(Tooltip, {\n text: name,\n children: avatar\n });\n }\n return avatar;\n}\nexport default Avatar;"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAiB;AAKjB,kBAAiB;AACjB,qBAAoB;AACpB,yBAA2C;AAC3C,SAAS,OAAO;AAAA,EACd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,OAAO;AAA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S,CAAC,aAAa,QAAQ;AACjC,WAAoB,uCAAAA,KAAK,eAAAE,SAAS;AAAA,MAChC,MAAM;AAAA,MACN,UAAU;AAAA,IACZ,CAAC;AAAA,EACH;AACA,SAAO;AACT;AACA,IAAO,oBAAQ;",
6
+ "names": ["_jsxs", "clsx", "_jsx", "Icon", "Tooltip"]
7
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // packages/components/src/avatar/index.ts
31
+ var avatar_exports = {};
32
+ __export(avatar_exports, {
33
+ default: () => import_component.default
34
+ });
35
+ module.exports = __toCommonJS(avatar_exports);
36
+ var import_component = __toESM(require("./component.cjs"));
37
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/avatar/index.ts"],
4
+ "sourcesContent": ["export { default } from './component';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAwB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // packages/components/src/avatar/types.ts
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
19
+ //# sourceMappingURL=types.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/avatar/types.ts"],
4
+ "sourcesContent": ["export {};"],
5
+ "mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // packages/components/src/avatar-group/component.tsx
31
+ var component_exports = {};
32
+ __export(component_exports, {
33
+ default: () => component_default
34
+ });
35
+ module.exports = __toCommonJS(component_exports);
36
+ var import_clsx = __toESM(require("clsx"));
37
+ var import_element = require("@wordpress/element");
38
+ var import_jsx_runtime = require("react/jsx-runtime");
39
+ function AvatarGroup({
40
+ className,
41
+ max = 3,
42
+ children,
43
+ ...props
44
+ }) {
45
+ const childArray = import_element.Children.toArray(children);
46
+ const visible = childArray.slice(0, max);
47
+ const overflowCount = childArray.length - max;
48
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
49
+ role: "group",
50
+ className: (0, import_clsx.default)("components-avatar-group", className),
51
+ ...props,
52
+ children: [visible, overflowCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
53
+ className: "components-avatar-group__overflow",
54
+ "aria-label": `${overflowCount} more`,
55
+ children: `+${overflowCount}`
56
+ })]
57
+ });
58
+ }
59
+ var component_default = AvatarGroup;
60
+ //# sourceMappingURL=component.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/avatar-group/component.tsx"],
4
+ "sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { Children } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction AvatarGroup({\n className,\n max = 3,\n children,\n ...props\n}) {\n const childArray = Children.toArray(children);\n const visible = childArray.slice(0, max);\n const overflowCount = childArray.length - max;\n return /*#__PURE__*/_jsxs(\"div\", {\n role: \"group\",\n className: clsx('components-avatar-group', className),\n ...props,\n children: [visible, overflowCount > 0 && /*#__PURE__*/_jsx(\"span\", {\n className: \"components-avatar-group__overflow\",\n \"aria-label\": `${overflowCount} more`,\n children: `+${overflowCount}`\n })]\n });\n}\nexport default AvatarGroup;"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAiB;AAKjB,qBAAyB;AAKzB,yBAA2C;AAC3C,SAAS,YAAY;AAAA,EACnB;AAAA,EACA,MAAM;AAAA,EACN;AAAA,EACA,GAAG;AACL,GAAG;AACD,QAAM,aAAa,wBAAS,QAAQ,QAAQ;AAC5C,QAAM,UAAU,WAAW,MAAM,GAAG,GAAG;AACvC,QAAM,gBAAgB,WAAW,SAAS;AAC1C,SAAoB,uCAAAA,MAAM,OAAO;AAAA,IAC/B,MAAM;AAAA,IACN,eAAW,YAAAC,SAAK,2BAA2B,SAAS;AAAA,IACpD,GAAG;AAAA,IACH,UAAU,CAAC,SAAS,gBAAgB,KAAkB,uCAAAC,KAAK,QAAQ;AAAA,MACjE,WAAW;AAAA,MACX,cAAc,GAAG,aAAa;AAAA,MAC9B,UAAU,IAAI,aAAa;AAAA,IAC7B,CAAC,CAAC;AAAA,EACJ,CAAC;AACH;AACA,IAAO,oBAAQ;",
6
+ "names": ["_jsxs", "clsx", "_jsx"]
7
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // packages/components/src/avatar-group/index.ts
31
+ var avatar_group_exports = {};
32
+ __export(avatar_group_exports, {
33
+ default: () => import_component.default
34
+ });
35
+ module.exports = __toCommonJS(avatar_group_exports);
36
+ var import_component = __toESM(require("./component.cjs"));
37
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/avatar-group/index.ts"],
4
+ "sourcesContent": ["export { default } from './component';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAwB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // packages/components/src/avatar-group/types.ts
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
19
+ //# sourceMappingURL=types.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/avatar-group/types.ts"],
4
+ "sourcesContent": ["export {};"],
5
+ "mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/base-control/index.tsx"],
4
- "sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { VisuallyHidden } from '../visually-hidden';\nimport { Wrapper, StyledField, StyledLabel, StyledHelp, StyledVisualLabel } from './styles/base-control-styles';\nimport { contextConnectWithoutRef, useContextSystem } from '../context';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport { useBaseControlProps } from './hooks';\nconst UnconnectedBaseControl = props => {\n const {\n id,\n label,\n hideLabelFromVision = false,\n help,\n className,\n children\n } = useContextSystem(props, 'BaseControl');\n return /*#__PURE__*/_jsxs(Wrapper, {\n className: className,\n children: [/*#__PURE__*/_jsxs(StyledField, {\n className: \"components-base-control__field\",\n children: [label && id && (hideLabelFromVision ? /*#__PURE__*/_jsx(VisuallyHidden, {\n as: \"label\",\n htmlFor: id,\n children: label\n }) : /*#__PURE__*/_jsx(StyledLabel, {\n className: \"components-base-control__label\",\n htmlFor: id,\n children: label\n })), label && !id && (hideLabelFromVision ? /*#__PURE__*/_jsx(VisuallyHidden, {\n as: \"label\",\n children: label\n }) : /*#__PURE__*/_jsx(VisualLabel, {\n children: label\n })), children]\n }), !!help && /*#__PURE__*/_jsx(StyledHelp, {\n id: id ? id + '__help' : undefined,\n className: \"components-base-control__help\",\n children: help\n })]\n });\n};\nconst UnforwardedVisualLabel = (props, ref) => {\n const {\n className,\n children,\n ...restProps\n } = props;\n return /*#__PURE__*/_jsx(StyledVisualLabel, {\n ref: ref,\n ...restProps,\n className: clsx('components-base-control__label', className),\n children: children\n });\n};\nexport const VisualLabel = forwardRef(UnforwardedVisualLabel);\n\n/**\n * `BaseControl` is a component used to generate labels and help text for components handling user inputs.\n *\n * ```jsx\n * import { BaseControl, useBaseControlProps } from '@wordpress/components';\n *\n * // Render a `BaseControl` for a textarea input\n * const MyCustomTextareaControl = ({ children, ...baseProps }) => (\n * \t// `useBaseControlProps` is a convenience hook to get the props for the `BaseControl`\n * \t// and the inner control itself. Namely, it takes care of generating a unique `id`,\n * \t// properly associating it with the `label` and `help` elements.\n * \tconst { baseControlProps, controlProps } = useBaseControlProps( baseProps );\n *\n * \treturn (\n * \t\t<BaseControl { ...baseControlProps }>\n * \t\t\t<textarea { ...controlProps }>\n * \t\t\t { children }\n * \t\t\t</textarea>\n * \t\t</BaseControl>\n * \t);\n * );\n * ```\n */\nexport const BaseControl = Object.assign(contextConnectWithoutRef(UnconnectedBaseControl, 'BaseControl'), {\n /**\n * `BaseControl.VisualLabel` is used to render a purely visual label inside a `BaseControl` component.\n *\n * It should only be used in cases where the children being rendered inside `BaseControl` are already accessibly labeled,\n * e.g., a button, but we want an additional visual label for that section equivalent to the labels `BaseControl` would\n * otherwise use if the `label` prop was passed.\n *\n * ```jsx\n * import { BaseControl } from '@wordpress/components';\n *\n * const MyBaseControl = () => (\n * \t<BaseControl help=\"This button is already accessibly labeled.\">\n * \t\t<BaseControl.VisualLabel>Author</BaseControl.VisualLabel>\n * \t\t<Button>Select an author</Button>\n * \t</BaseControl>\n * );\n * ```\n */\n VisualLabel\n});\nexport default BaseControl;"],
4
+ "sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { VisuallyHidden } from '../visually-hidden';\nimport { Wrapper, StyledField, StyledLabel, StyledHelp, StyledVisualLabel } from './styles/base-control-styles';\nimport { contextConnectWithoutRef, useContextSystem } from '../context';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport { useBaseControlProps } from './hooks';\nconst UnconnectedBaseControl = props => {\n const {\n id,\n label,\n hideLabelFromVision = false,\n help,\n className,\n children\n } = useContextSystem(props, 'BaseControl');\n return /*#__PURE__*/_jsxs(Wrapper, {\n className: className,\n children: [/*#__PURE__*/_jsxs(StyledField, {\n className: \"components-base-control__field\",\n children: [label && id && (hideLabelFromVision ? /*#__PURE__*/_jsx(VisuallyHidden, {\n as: \"label\",\n htmlFor: id,\n children: label\n }) : /*#__PURE__*/_jsx(StyledLabel, {\n className: \"components-base-control__label\",\n htmlFor: id,\n children: label\n })), label && !id && (hideLabelFromVision ? /*#__PURE__*/_jsx(VisuallyHidden, {\n as: \"label\",\n children: label\n }) : /*#__PURE__*/_jsx(VisualLabel, {\n children: label\n })), children]\n }), !!help && /*#__PURE__*/_jsx(StyledHelp, {\n id: id ? id + '__help' : undefined,\n className: \"components-base-control__help\",\n children: help\n })]\n });\n};\nconst UnforwardedVisualLabel = (props, ref) => {\n const {\n className,\n children,\n ...restProps\n } = props;\n return /*#__PURE__*/_jsx(StyledVisualLabel, {\n ref: ref,\n ...restProps,\n className: clsx('components-base-control__label', className),\n children: children\n });\n};\nexport const VisualLabel = forwardRef(UnforwardedVisualLabel);\n\n/**\n * `BaseControl` is a low-level component used to generate labels and help text for components handling user inputs.\n *\n * ```jsx\n * import { BaseControl, useBaseControlProps } from '@wordpress/components';\n *\n * // Render a `BaseControl` for a textarea input\n * const MyCustomTextareaControl = ({ children, ...baseProps }) => (\n * \t// `useBaseControlProps` is a convenience hook to get the props for the `BaseControl`\n * \t// and the inner control itself. Namely, it takes care of generating a unique `id`,\n * \t// properly associating it with the `label` and `help` elements.\n * \tconst { baseControlProps, controlProps } = useBaseControlProps( baseProps );\n *\n * \treturn (\n * \t\t<BaseControl { ...baseControlProps }>\n * \t\t\t<textarea { ...controlProps }>\n * \t\t\t { children }\n * \t\t\t</textarea>\n * \t\t</BaseControl>\n * \t);\n * );\n * ```\n */\nexport const BaseControl = Object.assign(contextConnectWithoutRef(UnconnectedBaseControl, 'BaseControl'), {\n /**\n * `BaseControl.VisualLabel` is used to render a purely visual label inside a `BaseControl` component.\n *\n * It should only be used in cases where the children being rendered inside `BaseControl` are already accessibly labeled,\n * e.g., a button, but we want an additional visual label for that section equivalent to the labels `BaseControl` would\n * otherwise use if the `label` prop was passed.\n *\n * ```jsx\n * import { BaseControl } from '@wordpress/components';\n *\n * const MyBaseControl = () => (\n * \t<BaseControl help=\"This button is already accessibly labeled.\">\n * \t\t<BaseControl.VisualLabel>Author</BaseControl.VisualLabel>\n * \t\t<Button>Select an author</Button>\n * \t</BaseControl>\n * );\n * ```\n */\n VisualLabel\n});\nexport default BaseControl;"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAiB;AAIjB,qBAA2B;AAK3B,6BAA+B;AAC/B,iCAAiF;AACjF,qBAA2D;AAC3D,yBAA2C;AAC3C,mBAAoC;AACpC,IAAM,yBAAy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A;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmBxG;AACF,CAAC;AACD,IAAO,uBAAQ;",
6
6
  "names": ["_jsxs", "_jsx", "clsx"]
7
7
  }
@@ -60,8 +60,7 @@ var StyledField = /* @__PURE__ */ (0, import_base.default)("div", process.env.NO
60
60
  styles: ".components-panel__row &{margin-bottom:inherit;}"
61
61
  } : {
62
62
  name: "1chyuqs",
63
- styles: ".components-panel__row &{margin-bottom:inherit;}",
64
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJhc2UtY29udHJvbC1zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUJxQyIsImZpbGUiOiJiYXNlLWNvbnRyb2wtc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBFeHRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG4vKipcbiAqIEludGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgeyBiYXNlTGFiZWxUeXBvZ3JhcGh5LCBib3hTaXppbmdSZXNldCwgZm9udCwgQ09MT1JTIH0gZnJvbSAnLi4vLi4vdXRpbHMnO1xuaW1wb3J0IHsgc3BhY2UgfSBmcm9tICcuLi8uLi91dGlscy9zcGFjZSc7XG5cbmV4cG9ydCBjb25zdCBXcmFwcGVyID0gc3R5bGVkLmRpdmBcblx0Zm9udC1mYW1pbHk6ICR7IGZvbnQoICdkZWZhdWx0LmZvbnRGYW1pbHknICkgfTtcblx0Zm9udC1zaXplOiAkeyBmb250KCAnZGVmYXVsdC5mb250U2l6ZScgKSB9O1xuXG5cdCR7IGJveFNpemluZ1Jlc2V0IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRGaWVsZCA9IHN0eWxlZC5kaXZgXG5cdC5jb21wb25lbnRzLXBhbmVsX19yb3cgJiB7XG5cdFx0bWFyZ2luLWJvdHRvbTogaW5oZXJpdDtcblx0fVxuYDtcblxuY29uc3QgbGFiZWxTdHlsZXMgPSBjc3NgXG5cdCR7IGJhc2VMYWJlbFR5cG9ncmFwaHkgfTtcblxuXHRkaXNwbGF5OiBibG9jaztcblx0bWFyZ2luLWJvdHRvbTogJHsgc3BhY2UoIDIgKSB9O1xuXHQvKipcblx0ICogUmVtb3ZlcyBDaHJvbWUvU2FmYXJpL0ZpcmVmb3ggdXNlciBhZ2VudCBzdHlsZXNoZWV0IHBhZGRpbmcgZnJvbVxuXHQgKiBTdHlsZWRMYWJlbCB3aGVuIGl0IGlzIHJlbmRlcmVkIGFzIGEgbGVnZW5kLlxuXHQgKi9cblx0cGFkZGluZzogMDtcbmA7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRMYWJlbCA9IHN0eWxlZC5sYWJlbGBcblx0JHsgbGFiZWxTdHlsZXMgfVxuYDtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZEhlbHAgPSBzdHlsZWQucGBcblx0bWFyZ2luLXRvcDogJHsgc3BhY2UoIDIgKSB9O1xuXHRtYXJnaW4tYm90dG9tOiAwO1xuXHRmb250LXNpemU6ICR7IGZvbnQoICdoZWxwVGV4dC5mb250U2l6ZScgKSB9O1xuXHRmb250LXN0eWxlOiBub3JtYWw7XG5cdGNvbG9yOiAkeyBDT0xPUlMuZ3JheVsgNzAwIF0gfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRWaXN1YWxMYWJlbCA9IHN0eWxlZC5zcGFuYFxuXHQkeyBsYWJlbFN0eWxlcyB9XG5gO1xuIl19 */",
63
+ styles: ".components-panel__row &{margin-bottom:inherit;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uI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BDaHJvbWUvU2FmYXJpL0ZpcmVmb3ggdXNlciBhZ2VudCBzdHlsZXNoZWV0IHBhZGRpbmcgZnJvbVxuXHQgKiBTdHlsZWRMYWJlbCB3aGVuIGl0IGlzIHJlbmRlcmVkIGFzIGEgbGVnZW5kLlxuXHQgKi9cblx0cGFkZGluZzogMDtcbmA7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRMYWJlbCA9IHN0eWxlZC5sYWJlbGBcblx0JHsgbGFiZWxTdHlsZXMgfVxuYDtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZEhlbHAgPSBzdHlsZWQucGBcblx0bWFyZ2luLXRvcDogJHsgc3BhY2UoIDIgKSB9O1xuXHRtYXJnaW4tYm90dG9tOiAwO1xuXHRmb250LXNpemU6ICR7IGZvbnQoICdoZWxwVGV4dC5mb250U2l6ZScgKSB9O1xuXHRmb250LXN0eWxlOiBub3JtYWw7XG5cdGNvbG9yOiAkeyBDT0xPUlMuZ3JheVsgNzAwIF0gfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRWaXN1YWxMYWJlbCA9IHN0eWxlZC5zcGFuYFxuXHQkeyBsYWJlbFN0eWxlcyB9XG5gO1xuIl19 */",
65
64
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
66
65
  });
67
66
  var labelStyles = /* @__PURE__ */ (0, import_react.css)(import_utils.baseLabelTypography, ";display:block;margin-bottom:", (0, import_space.space)(2), ";padding:0;" + (process.env.NODE_ENV === "production" ? "" : ";label:labelStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJhc2UtY29udHJvbC1zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUJ1QiIsImZpbGUiOiJiYXNlLWNvbnRyb2wtc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBFeHRlcm5hbCBkZ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