@wordpress/components 32.2.1-next.v.0 → 32.2.1-next.v.202602091733.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 (471) hide show
  1. package/AGENTS.md +17 -0
  2. package/CHANGELOG.md +6 -1
  3. package/build/base-control/index.cjs.map +1 -1
  4. package/build/base-control/styles/base-control-styles.cjs +1 -2
  5. package/build/base-control/styles/base-control-styles.cjs.map +2 -2
  6. package/build/border-box-control/styles.cjs +2 -4
  7. package/build/border-box-control/styles.cjs.map +2 -2
  8. package/build/border-control/styles.cjs +1 -2
  9. package/build/border-control/styles.cjs.map +2 -2
  10. package/build/box-control/styles/box-control-icon-styles.cjs +8 -16
  11. package/build/box-control/styles/box-control-icon-styles.cjs.map +2 -2
  12. package/build/box-control/styles/box-control-styles.cjs +5 -10
  13. package/build/box-control/styles/box-control-styles.cjs.map +2 -2
  14. package/build/card/get-padding-by-size.cjs +1 -2
  15. package/build/card/get-padding-by-size.cjs.map +2 -2
  16. package/build/card/styles.cjs +8 -16
  17. package/build/card/styles.cjs.map +2 -2
  18. package/build/confirm-dialog/styles.cjs +1 -2
  19. package/build/confirm-dialog/styles.cjs.map +2 -2
  20. package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.cjs +2 -4
  21. package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.cjs.map +2 -2
  22. package/build/custom-select-control-v2/styles.cjs +1 -2
  23. package/build/custom-select-control-v2/styles.cjs.map +2 -2
  24. package/build/date-time/date/styles.cjs +2 -4
  25. package/build/date-time/date/styles.cjs.map +2 -2
  26. package/build/date-time/date-time/styles.cjs +1 -2
  27. package/build/date-time/date-time/styles.cjs.map +2 -2
  28. package/build/date-time/time/styles.cjs +3 -6
  29. package/build/date-time/time/styles.cjs.map +2 -2
  30. package/build/date-time/utils.cjs +1 -1
  31. package/build/date-time/utils.cjs.map +2 -2
  32. package/build/disabled/context.cjs +30 -0
  33. package/build/disabled/context.cjs.map +7 -0
  34. package/build/disabled/index.cjs +13 -5
  35. package/build/disabled/index.cjs.map +3 -3
  36. package/build/disabled/styles/disabled-styles.cjs +1 -2
  37. package/build/disabled/styles/disabled-styles.cjs.map +2 -2
  38. package/build/divider/styles.cjs +1 -2
  39. package/build/divider/styles.cjs.map +2 -2
  40. package/build/elevation/styles.cjs +1 -2
  41. package/build/elevation/styles.cjs.map +2 -2
  42. package/build/flex/styles.cjs +5 -10
  43. package/build/flex/styles.cjs.map +2 -2
  44. package/build/focal-point-picker/styles/focal-point-picker-style.cjs +6 -12
  45. package/build/focal-point-picker/styles/focal-point-picker-style.cjs.map +2 -2
  46. package/build/font-size-picker/styles.cjs +2 -4
  47. package/build/font-size-picker/styles.cjs.map +2 -2
  48. package/build/input-control/styles/input-control-styles.cjs +4 -8
  49. package/build/input-control/styles/input-control-styles.cjs.map +2 -2
  50. package/build/item-group/styles.cjs +2 -4
  51. package/build/item-group/styles.cjs.map +2 -2
  52. package/build/menu/styles.cjs +1 -2
  53. package/build/menu/styles.cjs.map +2 -2
  54. package/build/modal/context.cjs +33 -0
  55. package/build/modal/context.cjs.map +7 -0
  56. package/build/modal/index.cjs +3 -4
  57. package/build/modal/index.cjs.map +2 -2
  58. package/build/navigation/styles/navigation-styles.cjs +3 -6
  59. package/build/navigation/styles/navigation-styles.cjs.map +2 -2
  60. package/build/navigator/styles.cjs +2 -4
  61. package/build/navigator/styles.cjs.map +2 -2
  62. package/build/number-control/styles/number-control-styles.cjs +1 -2
  63. package/build/number-control/styles/number-control-styles.cjs.map +2 -2
  64. package/build/palette-edit/styles.cjs +1 -2
  65. package/build/palette-edit/styles.cjs.map +2 -2
  66. package/build/popover/context.cjs +33 -0
  67. package/build/popover/context.cjs.map +7 -0
  68. package/build/popover/index.cjs +3 -4
  69. package/build/popover/index.cjs.map +3 -3
  70. package/build/progress-bar/styles.cjs +2 -4
  71. package/build/progress-bar/styles.cjs.map +2 -2
  72. package/build/range-control/styles/range-control-styles.cjs +3 -6
  73. package/build/range-control/styles/range-control-styles.cjs.map +2 -2
  74. package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.cjs +2 -4
  75. package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.cjs.map +2 -2
  76. package/build/scrollable/styles.cjs +6 -12
  77. package/build/scrollable/styles.cjs.map +2 -2
  78. package/build/search-control/styles.cjs +2 -4
  79. package/build/search-control/styles.cjs.map +2 -2
  80. package/build/select-control/styles/select-control-styles.cjs +2 -4
  81. package/build/select-control/styles/select-control-styles.cjs.map +2 -2
  82. package/build/slot-fill/index.cjs +3 -2
  83. package/build/slot-fill/index.cjs.map +2 -2
  84. package/build/spinner/styles.cjs +1 -2
  85. package/build/spinner/styles.cjs.map +2 -2
  86. package/build/tabs/styles.cjs +1 -2
  87. package/build/tabs/styles.cjs.map +2 -2
  88. package/build/text/hook.cjs +1 -2
  89. package/build/text/hook.cjs.map +2 -2
  90. package/build/text/styles.cjs +2 -4
  91. package/build/text/styles.cjs.map +2 -2
  92. package/build/theme/styles.cjs +1 -2
  93. package/build/theme/styles.cjs.map +2 -2
  94. package/build/toggle-control/index.cjs +2 -0
  95. package/build/toggle-control/index.cjs.map +2 -2
  96. package/build/toggle-group-control/toggle-group-control/styles.cjs +4 -8
  97. package/build/toggle-group-control/toggle-group-control/styles.cjs.map +2 -2
  98. package/build/toggle-group-control/toggle-group-control-option-base/styles.cjs +2 -4
  99. package/build/toggle-group-control/toggle-group-control-option-base/styles.cjs.map +2 -2
  100. package/build/tools-panel/styles.cjs +4 -8
  101. package/build/tools-panel/styles.cjs.map +2 -2
  102. package/build/tooltip/context.cjs +35 -0
  103. package/build/tooltip/context.cjs.map +7 -0
  104. package/build/tooltip/index.cjs +3 -7
  105. package/build/tooltip/index.cjs.map +2 -2
  106. package/build/truncate/styles.cjs +1 -2
  107. package/build/truncate/styles.cjs.map +2 -2
  108. package/build/utils/box-sizing.cjs +1 -2
  109. package/build/utils/box-sizing.cjs.map +2 -2
  110. package/build/utils/hooks/use-cx.cjs.map +2 -2
  111. package/build/z-stack/styles.cjs +1 -2
  112. package/build/z-stack/styles.cjs.map +2 -2
  113. package/build-module/base-control/index.mjs.map +1 -1
  114. package/build-module/base-control/styles/base-control-styles.mjs +1 -2
  115. package/build-module/base-control/styles/base-control-styles.mjs.map +2 -2
  116. package/build-module/border-box-control/styles.mjs +2 -4
  117. package/build-module/border-box-control/styles.mjs.map +2 -2
  118. package/build-module/border-control/styles.mjs +1 -2
  119. package/build-module/border-control/styles.mjs.map +2 -2
  120. package/build-module/box-control/styles/box-control-icon-styles.mjs +8 -16
  121. package/build-module/box-control/styles/box-control-icon-styles.mjs.map +2 -2
  122. package/build-module/box-control/styles/box-control-styles.mjs +5 -10
  123. package/build-module/box-control/styles/box-control-styles.mjs.map +2 -2
  124. package/build-module/card/get-padding-by-size.mjs +1 -2
  125. package/build-module/card/get-padding-by-size.mjs.map +2 -2
  126. package/build-module/card/styles.mjs +8 -16
  127. package/build-module/card/styles.mjs.map +2 -2
  128. package/build-module/confirm-dialog/styles.mjs +1 -2
  129. package/build-module/confirm-dialog/styles.mjs.map +2 -2
  130. package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.mjs +2 -4
  131. package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.mjs.map +2 -2
  132. package/build-module/custom-select-control-v2/styles.mjs +1 -2
  133. package/build-module/custom-select-control-v2/styles.mjs.map +2 -2
  134. package/build-module/date-time/date/styles.mjs +2 -4
  135. package/build-module/date-time/date/styles.mjs.map +2 -2
  136. package/build-module/date-time/date-time/styles.mjs +1 -2
  137. package/build-module/date-time/date-time/styles.mjs.map +2 -2
  138. package/build-module/date-time/time/styles.mjs +3 -6
  139. package/build-module/date-time/time/styles.mjs.map +2 -2
  140. package/build-module/date-time/utils.mjs +1 -1
  141. package/build-module/date-time/utils.mjs.map +2 -2
  142. package/build-module/disabled/context.mjs +9 -0
  143. package/build-module/disabled/context.mjs.map +7 -0
  144. package/build-module/disabled/index.mjs +1 -3
  145. package/build-module/disabled/index.mjs.map +2 -2
  146. package/build-module/disabled/styles/disabled-styles.mjs +1 -2
  147. package/build-module/disabled/styles/disabled-styles.mjs.map +2 -2
  148. package/build-module/divider/styles.mjs +1 -2
  149. package/build-module/divider/styles.mjs.map +2 -2
  150. package/build-module/elevation/styles.mjs +1 -2
  151. package/build-module/elevation/styles.mjs.map +2 -2
  152. package/build-module/flex/styles.mjs +5 -10
  153. package/build-module/flex/styles.mjs.map +2 -2
  154. package/build-module/focal-point-picker/styles/focal-point-picker-style.mjs +6 -12
  155. package/build-module/focal-point-picker/styles/focal-point-picker-style.mjs.map +2 -2
  156. package/build-module/font-size-picker/styles.mjs +2 -4
  157. package/build-module/font-size-picker/styles.mjs.map +2 -2
  158. package/build-module/input-control/styles/input-control-styles.mjs +4 -8
  159. package/build-module/input-control/styles/input-control-styles.mjs.map +2 -2
  160. package/build-module/item-group/styles.mjs +2 -4
  161. package/build-module/item-group/styles.mjs.map +2 -2
  162. package/build-module/menu/styles.mjs +1 -2
  163. package/build-module/menu/styles.mjs.map +2 -2
  164. package/build-module/modal/context.mjs +8 -0
  165. package/build-module/modal/context.mjs.map +7 -0
  166. package/build-module/modal/index.mjs +2 -3
  167. package/build-module/modal/index.mjs.map +2 -2
  168. package/build-module/navigation/styles/navigation-styles.mjs +3 -6
  169. package/build-module/navigation/styles/navigation-styles.mjs.map +2 -2
  170. package/build-module/navigator/styles.mjs +2 -4
  171. package/build-module/navigator/styles.mjs.map +2 -2
  172. package/build-module/number-control/styles/number-control-styles.mjs +1 -2
  173. package/build-module/number-control/styles/number-control-styles.mjs.map +2 -2
  174. package/build-module/palette-edit/styles.mjs +1 -2
  175. package/build-module/palette-edit/styles.mjs.map +2 -2
  176. package/build-module/popover/context.mjs +8 -0
  177. package/build-module/popover/context.mjs.map +7 -0
  178. package/build-module/popover/index.mjs +2 -3
  179. package/build-module/popover/index.mjs.map +2 -2
  180. package/build-module/progress-bar/styles.mjs +2 -4
  181. package/build-module/progress-bar/styles.mjs.map +2 -2
  182. package/build-module/range-control/styles/range-control-styles.mjs +3 -6
  183. package/build-module/range-control/styles/range-control-styles.mjs.map +2 -2
  184. package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.mjs +2 -4
  185. package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.mjs.map +2 -2
  186. package/build-module/scrollable/styles.mjs +6 -12
  187. package/build-module/scrollable/styles.mjs.map +2 -2
  188. package/build-module/search-control/styles.mjs +2 -4
  189. package/build-module/search-control/styles.mjs.map +2 -2
  190. package/build-module/select-control/styles/select-control-styles.mjs +2 -4
  191. package/build-module/select-control/styles/select-control-styles.mjs.map +2 -2
  192. package/build-module/slot-fill/index.mjs +3 -2
  193. package/build-module/slot-fill/index.mjs.map +2 -2
  194. package/build-module/spinner/styles.mjs +1 -2
  195. package/build-module/spinner/styles.mjs.map +2 -2
  196. package/build-module/tabs/styles.mjs +1 -2
  197. package/build-module/tabs/styles.mjs.map +2 -2
  198. package/build-module/text/hook.mjs +1 -2
  199. package/build-module/text/hook.mjs.map +2 -2
  200. package/build-module/text/styles.mjs +2 -4
  201. package/build-module/text/styles.mjs.map +2 -2
  202. package/build-module/theme/styles.mjs +1 -2
  203. package/build-module/theme/styles.mjs.map +2 -2
  204. package/build-module/toggle-control/index.mjs +2 -0
  205. package/build-module/toggle-control/index.mjs.map +2 -2
  206. package/build-module/toggle-group-control/toggle-group-control/styles.mjs +4 -8
  207. package/build-module/toggle-group-control/toggle-group-control/styles.mjs.map +2 -2
  208. package/build-module/toggle-group-control/toggle-group-control-option-base/styles.mjs +2 -4
  209. package/build-module/toggle-group-control/toggle-group-control-option-base/styles.mjs.map +2 -2
  210. package/build-module/tools-panel/styles.mjs +4 -8
  211. package/build-module/tools-panel/styles.mjs.map +2 -2
  212. package/build-module/tooltip/context.mjs +10 -0
  213. package/build-module/tooltip/context.mjs.map +7 -0
  214. package/build-module/tooltip/index.mjs +2 -6
  215. package/build-module/tooltip/index.mjs.map +2 -2
  216. package/build-module/truncate/styles.mjs +1 -2
  217. package/build-module/truncate/styles.mjs.map +2 -2
  218. package/build-module/utils/box-sizing.mjs +1 -2
  219. package/build-module/utils/box-sizing.mjs.map +2 -2
  220. package/build-module/utils/hooks/use-cx.mjs.map +2 -2
  221. package/build-module/z-stack/styles.mjs +1 -2
  222. package/build-module/z-stack/styles.mjs.map +2 -2
  223. package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -1
  224. package/build-types/angle-picker-control/stories/index.story.d.ts.map +1 -1
  225. package/build-types/animate/stories/index.story.d.ts.map +1 -1
  226. package/build-types/badge/stories/index.story.d.ts.map +1 -1
  227. package/build-types/base-control/index.d.ts +1 -1
  228. package/build-types/base-control/stories/index.story.d.ts.map +1 -1
  229. package/build-types/border-box-control/stories/index.story.d.ts.map +1 -1
  230. package/build-types/border-control/stories/index.story.d.ts.map +1 -1
  231. package/build-types/box-control/stories/index.story.d.ts.map +1 -1
  232. package/build-types/button/stories/index.story.d.ts.map +1 -1
  233. package/build-types/card/stories/index.story.d.ts.map +1 -1
  234. package/build-types/checkbox-control/stories/index.story.d.ts.map +1 -1
  235. package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
  236. package/build-types/color-indicator/stories/index.story.d.ts.map +1 -1
  237. package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
  238. package/build-types/color-picker/stories/index.story.d.ts.map +1 -1
  239. package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
  240. package/build-types/composite/stories/index.story.d.ts.map +1 -1
  241. package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -1
  242. package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
  243. package/build-types/custom-select-control/stories/index.story.d.ts.map +1 -1
  244. package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +1 -1
  245. package/build-types/date-time/stories/date-time.story.d.ts.map +1 -1
  246. package/build-types/date-time/stories/date.story.d.ts.map +1 -1
  247. package/build-types/date-time/stories/time.story.d.ts.map +1 -1
  248. package/build-types/disabled/context.d.ts +3 -0
  249. package/build-types/disabled/context.d.ts.map +1 -0
  250. package/build-types/disabled/index.d.ts.map +1 -1
  251. package/build-types/disabled/stories/index.story.d.ts.map +1 -1
  252. package/build-types/divider/stories/index.story.d.ts.map +1 -1
  253. package/build-types/draggable/stories/index.story.d.ts.map +1 -1
  254. package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
  255. package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
  256. package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
  257. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts.map +1 -1
  258. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts.map +1 -1
  259. package/build-types/elevation/stories/index.story.d.ts.map +1 -1
  260. package/build-types/external-link/stories/index.story.d.ts.map +1 -1
  261. package/build-types/flex/stories/index.story.d.ts.map +1 -1
  262. package/build-types/focal-point-picker/stories/index.story.d.ts.map +1 -1
  263. package/build-types/font-size-picker/stories/index.story.d.ts.map +1 -1
  264. package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
  265. package/build-types/form-toggle/stories/index.story.d.ts.map +1 -1
  266. package/build-types/form-token-field/stories/index.story.d.ts.map +1 -1
  267. package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
  268. package/build-types/grid/stories/index.story.d.ts.map +1 -1
  269. package/build-types/guide/stories/index.story.d.ts.map +1 -1
  270. package/build-types/h-stack/stories/index.story.d.ts.map +1 -1
  271. package/build-types/heading/stories/index.story.d.ts.map +1 -1
  272. package/build-types/icon/stories/index.story.d.ts.map +1 -1
  273. package/build-types/input-control/stories/index.story.d.ts.map +1 -1
  274. package/build-types/item-group/stories/index.story.d.ts.map +1 -1
  275. package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +1 -1
  276. package/build-types/menu/stories/index.story.d.ts.map +1 -1
  277. package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
  278. package/build-types/menu-item/stories/index.story.d.ts.map +1 -1
  279. package/build-types/menu-items-choice/stories/index.story.d.ts.map +1 -1
  280. package/build-types/modal/context.d.ts +4 -0
  281. package/build-types/modal/context.d.ts.map +1 -0
  282. package/build-types/modal/index.d.ts.map +1 -1
  283. package/build-types/modal/stories/index.story.d.ts.map +1 -1
  284. package/build-types/navigable-container/stories/navigable-menu.story.d.ts.map +1 -1
  285. package/build-types/navigable-container/stories/tabbable-container.story.d.ts.map +1 -1
  286. package/build-types/navigator/stories/index.story.d.ts.map +1 -1
  287. package/build-types/navigator/styles.d.ts +24 -4
  288. package/build-types/navigator/styles.d.ts.map +1 -1
  289. package/build-types/notice/stories/index.story.d.ts.map +1 -1
  290. package/build-types/number-control/stories/index.story.d.ts.map +1 -1
  291. package/build-types/palette-edit/stories/index.story.d.ts.map +1 -1
  292. package/build-types/panel/stories/index.story.d.ts.map +1 -1
  293. package/build-types/placeholder/stories/index.story.d.ts.map +1 -1
  294. package/build-types/popover/context.d.ts +2 -0
  295. package/build-types/popover/context.d.ts.map +1 -0
  296. package/build-types/popover/index.d.ts.map +1 -1
  297. package/build-types/popover/stories/index.story.d.ts.map +1 -1
  298. package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
  299. package/build-types/query-controls/stories/index.story.d.ts.map +1 -1
  300. package/build-types/radio-control/stories/index.story.d.ts.map +1 -1
  301. package/build-types/range-control/stories/index.story.d.ts.map +1 -1
  302. package/build-types/resizable-box/stories/index.story.d.ts.map +1 -1
  303. package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -1
  304. package/build-types/sandbox/stories/index.story.d.ts.map +1 -1
  305. package/build-types/scroll-lock/stories/index.story.d.ts.map +1 -1
  306. package/build-types/scrollable/stories/index.story.d.ts.map +1 -1
  307. package/build-types/search-control/stories/index.story.d.ts.map +1 -1
  308. package/build-types/select-control/stories/index.story.d.ts.map +1 -1
  309. package/build-types/shortcut/stories/index.story.d.ts.map +1 -1
  310. package/build-types/slot-fill/index.d.ts +1 -7
  311. package/build-types/slot-fill/index.d.ts.map +1 -1
  312. package/build-types/slot-fill/stories/index.story.d.ts.map +1 -1
  313. package/build-types/snackbar/stories/index.story.d.ts.map +1 -1
  314. package/build-types/spacer/stories/index.story.d.ts.map +1 -1
  315. package/build-types/spinner/stories/index.story.d.ts.map +1 -1
  316. package/build-types/surface/stories/index.story.d.ts.map +1 -1
  317. package/build-types/tab-panel/stories/index.story.d.ts.map +1 -1
  318. package/build-types/tabs/stories/index.story.d.ts.map +1 -1
  319. package/build-types/text/stories/index.story.d.ts.map +1 -1
  320. package/build-types/text-control/stories/index.story.d.ts.map +1 -1
  321. package/build-types/text-highlight/stories/index.story.d.ts.map +1 -1
  322. package/build-types/textarea-control/stories/index.story.d.ts.map +1 -1
  323. package/build-types/theme/stories/index.story.d.ts.map +1 -1
  324. package/build-types/tip/stories/index.story.d.ts.map +1 -1
  325. package/build-types/toggle-control/index.d.ts.map +1 -1
  326. package/build-types/toggle-control/stories/index.story.d.ts.map +1 -1
  327. package/build-types/toggle-group-control/stories/index.story.d.ts.map +1 -1
  328. package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
  329. package/build-types/tools-panel/stories/index.story.d.ts.map +1 -1
  330. package/build-types/tooltip/context.d.ts +3 -0
  331. package/build-types/tooltip/context.d.ts.map +1 -0
  332. package/build-types/tooltip/index.d.ts +0 -3
  333. package/build-types/tooltip/index.d.ts.map +1 -1
  334. package/build-types/tooltip/stories/index.story.d.ts.map +1 -1
  335. package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
  336. package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
  337. package/build-types/truncate/stories/index.story.d.ts.map +1 -1
  338. package/build-types/unit-control/stories/index.story.d.ts.map +1 -1
  339. package/build-types/utils/hooks/use-cx.d.ts +1 -1
  340. package/build-types/utils/hooks/use-cx.d.ts.map +1 -1
  341. package/build-types/v-stack/stories/index.story.d.ts.map +1 -1
  342. package/build-types/view/stories/index.story.d.ts.map +1 -1
  343. package/build-types/visually-hidden/stories/index.story.d.ts.map +1 -1
  344. package/build-types/z-stack/stories/index.story.d.ts.map +1 -1
  345. package/package.json +27 -27
  346. package/src/alignment-matrix-control/stories/index.story.tsx +4 -0
  347. package/src/angle-picker-control/stories/index.story.tsx +4 -0
  348. package/src/animate/stories/index.story.tsx +5 -0
  349. package/src/badge/stories/index.story.tsx +7 -0
  350. package/src/base-control/README.md +1 -1
  351. package/src/base-control/index.tsx +1 -1
  352. package/src/base-control/stories/index.story.tsx +5 -0
  353. package/src/border-box-control/stories/index.story.tsx +4 -0
  354. package/src/border-control/stories/index.story.tsx +4 -0
  355. package/src/box-control/stories/index.story.tsx +5 -0
  356. package/src/button/stories/index.story.tsx +5 -0
  357. package/src/card/stories/index.story.tsx +5 -0
  358. package/src/card/test/__snapshots__/index.tsx.snap +35 -35
  359. package/src/checkbox-control/stories/index.story.tsx +5 -0
  360. package/src/circular-option-picker/stories/index.story.tsx +5 -0
  361. package/src/color-indicator/stories/index.story.tsx +4 -0
  362. package/src/color-palette/stories/index.story.tsx +4 -0
  363. package/src/color-picker/stories/index.story.tsx +4 -0
  364. package/src/combobox-control/stories/index.story.tsx +5 -0
  365. package/src/composite/stories/index.story.tsx +4 -0
  366. package/src/confirm-dialog/stories/index.story.tsx +4 -0
  367. package/src/context/test/__snapshots__/context-system-provider.js.snap +3 -3
  368. package/src/custom-gradient-picker/stories/index.story.tsx +5 -0
  369. package/src/custom-select-control/stories/index.story.tsx +5 -0
  370. package/src/custom-select-control-v2/stories/index.story.tsx +5 -0
  371. package/src/date-time/stories/date-time.story.tsx +5 -0
  372. package/src/date-time/stories/date.story.tsx +5 -0
  373. package/src/date-time/stories/time.story.tsx +5 -0
  374. package/src/date-time/time/test/index.tsx +42 -0
  375. package/src/date-time/utils.ts +1 -1
  376. package/src/disabled/context.ts +6 -0
  377. package/src/disabled/index.tsx +1 -11
  378. package/src/disabled/stories/index.story.tsx +4 -0
  379. package/src/divider/stories/index.story.tsx +5 -0
  380. package/src/draggable/stories/index.story.tsx +5 -0
  381. package/src/drop-zone/stories/index.story.tsx +4 -0
  382. package/src/dropdown/stories/index.story.tsx +4 -0
  383. package/src/dropdown-menu/stories/index.story.tsx +5 -0
  384. package/src/duotone-picker/stories/duotone-picker.story.tsx +4 -0
  385. package/src/duotone-picker/stories/duotone-swatch.story.tsx +4 -0
  386. package/src/elevation/stories/index.story.tsx +5 -0
  387. package/src/external-link/stories/index.story.tsx +4 -0
  388. package/src/flex/stories/index.story.tsx +5 -0
  389. package/src/flex/test/__snapshots__/index.tsx.snap +4 -4
  390. package/src/focal-point-picker/stories/index.story.tsx +4 -0
  391. package/src/font-size-picker/stories/index.story.tsx +4 -0
  392. package/src/form-file-upload/stories/index.story.tsx +4 -0
  393. package/src/form-toggle/stories/index.story.tsx +5 -0
  394. package/src/form-token-field/stories/index.story.tsx +5 -0
  395. package/src/gradient-picker/stories/index.story.tsx +4 -0
  396. package/src/grid/stories/index.story.tsx +5 -0
  397. package/src/guide/stories/index.story.tsx +6 -0
  398. package/src/h-stack/stories/index.story.tsx +5 -0
  399. package/src/heading/stories/index.story.tsx +5 -0
  400. package/src/icon/stories/index.story.tsx +5 -0
  401. package/src/input-control/stories/index.story.tsx +5 -0
  402. package/src/item-group/stories/index.story.tsx +4 -0
  403. package/src/item-group/test/__snapshots__/index.js.snap +16 -16
  404. package/src/keyboard-shortcuts/stories/index.story.tsx +4 -0
  405. package/src/menu/stories/index.story.tsx +5 -0
  406. package/src/menu-group/stories/index.story.tsx +5 -0
  407. package/src/menu-item/stories/index.story.tsx +5 -0
  408. package/src/menu-items-choice/stories/index.story.tsx +5 -0
  409. package/src/modal/context.ts +9 -0
  410. package/src/modal/index.tsx +1 -19
  411. package/src/modal/stories/index.story.tsx +5 -0
  412. package/src/navigable-container/stories/navigable-menu.story.tsx +4 -0
  413. package/src/navigable-container/stories/tabbable-container.story.tsx +5 -0
  414. package/src/navigator/stories/index.story.tsx +4 -0
  415. package/src/notice/stories/index.story.tsx +5 -0
  416. package/src/notice/test/__snapshots__/index.tsx.snap +1 -1
  417. package/src/number-control/stories/index.story.tsx +5 -0
  418. package/src/palette-edit/stories/index.story.tsx +4 -0
  419. package/src/panel/stories/index.story.tsx +4 -0
  420. package/src/placeholder/stories/index.story.tsx +4 -0
  421. package/src/popover/context.ts +4 -0
  422. package/src/popover/index.tsx +1 -14
  423. package/src/popover/stories/index.story.tsx +4 -0
  424. package/src/progress-bar/stories/index.story.tsx +4 -0
  425. package/src/query-controls/stories/index.story.tsx +4 -0
  426. package/src/radio-control/stories/index.story.tsx +5 -0
  427. package/src/range-control/stories/index.story.tsx +5 -0
  428. package/src/resizable-box/stories/index.story.tsx +4 -0
  429. package/src/responsive-wrapper/stories/index.story.tsx +5 -0
  430. package/src/sandbox/stories/index.story.tsx +4 -0
  431. package/src/scroll-lock/stories/index.story.tsx +4 -0
  432. package/src/scrollable/stories/index.story.tsx +5 -0
  433. package/src/search-control/stories/index.story.tsx +5 -0
  434. package/src/select-control/stories/index.story.tsx +5 -0
  435. package/src/shortcut/stories/index.story.tsx +4 -0
  436. package/src/slot-fill/index.tsx +12 -3
  437. package/src/slot-fill/stories/index.story.tsx +4 -0
  438. package/src/slot-fill/test/__snapshots__/slot.js.snap +4 -4
  439. package/src/slot-fill/test/index.js +38 -0
  440. package/src/snackbar/stories/index.story.tsx +4 -0
  441. package/src/spacer/stories/index.story.tsx +5 -0
  442. package/src/spinner/stories/index.story.tsx +4 -0
  443. package/src/surface/stories/index.story.tsx +5 -0
  444. package/src/surface/test/__snapshots__/index.tsx.snap +10 -10
  445. package/src/tab-panel/stories/index.story.tsx +5 -0
  446. package/src/tabs/stories/index.story.tsx +5 -0
  447. package/src/text/stories/index.story.tsx +5 -0
  448. package/src/text-control/stories/index.story.tsx +5 -0
  449. package/src/text-highlight/stories/index.story.tsx +4 -0
  450. package/src/textarea-control/stories/index.story.tsx +5 -0
  451. package/src/theme/stories/index.story.tsx +5 -0
  452. package/src/tip/stories/index.story.tsx +4 -0
  453. package/src/toggle-control/index.tsx +2 -0
  454. package/src/toggle-control/stories/index.story.tsx +5 -0
  455. package/src/toggle-group-control/stories/index.story.tsx +5 -0
  456. package/src/toolbar/stories/index.story.tsx +4 -0
  457. package/src/tools-panel/stories/index.story.tsx +4 -0
  458. package/src/tooltip/context.ts +8 -0
  459. package/src/tooltip/index.tsx +2 -22
  460. package/src/tooltip/stories/index.story.tsx +4 -0
  461. package/src/tree-grid/stories/index.story.tsx +4 -0
  462. package/src/tree-select/stories/index.story.tsx +4 -0
  463. package/src/truncate/stories/index.story.tsx +4 -0
  464. package/src/unit-control/stories/index.story.tsx +4 -0
  465. package/src/utils/hooks/use-cx.ts +1 -2
  466. package/src/v-stack/stories/index.story.tsx +5 -0
  467. package/src/view/stories/index.story.tsx +5 -0
  468. package/src/view/test/__snapshots__/index.js.snap +5 -5
  469. package/src/visually-hidden/stories/index.story.tsx +4 -0
  470. package/src/visually-hidden/test/__snapshots__/index.tsx.snap +1 -1
  471. package/src/z-stack/stories/index.story.tsx +5 -0
@@ -24,6 +24,11 @@ const meta: Meta< typeof SearchControl > = {
24
24
  parameters: {
25
25
  controls: { expanded: true },
26
26
  docs: { canvas: { sourceState: 'shown' } },
27
+ componentStatus: {
28
+ status: 'stable',
29
+ whereUsed: 'global',
30
+ notes: 'Will be superseded by `SearchControl` in `@wordpress/ui`, but continue using for now.',
31
+ },
27
32
  },
28
33
  };
29
34
  export default meta;
@@ -32,6 +32,11 @@ const meta: Meta< typeof SelectControl > = {
32
32
  parameters: {
33
33
  controls: { expanded: true },
34
34
  docs: { canvas: { sourceState: 'shown' } },
35
+ componentStatus: {
36
+ status: 'stable',
37
+ whereUsed: 'global',
38
+ notes: 'Will be superseded by `SelectControl` in `@wordpress/ui`, but continue using for now.',
39
+ },
35
40
  },
36
41
  };
37
42
  export default meta;
@@ -17,6 +17,10 @@ const meta: Meta< typeof Shortcut > = {
17
17
  expanded: true,
18
18
  },
19
19
  docs: { canvas: { sourceState: 'shown' } },
20
+ componentStatus: {
21
+ status: 'stable',
22
+ whereUsed: 'global',
23
+ },
20
24
  },
21
25
  };
22
26
  export default meta;
@@ -64,9 +64,18 @@ export function createSlotFill( key: SlotKey ) {
64
64
  );
65
65
  FillComponent.displayName = `${ baseName }Fill`;
66
66
 
67
- const SlotComponent = (
68
- props: DistributiveOmit< SlotComponentProps, 'name' >
69
- ) => <Slot name={ key } { ...props } />;
67
+ // Wrap SlotComponent with forwardRef to support ref forwarding
68
+ const SlotComponent = forwardRef(
69
+ (
70
+ props: DistributiveOmit< SlotComponentProps, 'name' >,
71
+ ref: ForwardedRef< any >
72
+ ) => <Slot name={ key } ref={ ref } { ...props } />
73
+ ) as React.ForwardRefExoticComponent<
74
+ DistributiveOmit< SlotComponentProps, 'name' > &
75
+ React.RefAttributes< any >
76
+ > & {
77
+ __unstableName: SlotKey;
78
+ };
70
79
  SlotComponent.displayName = `${ baseName }Slot`;
71
80
  /**
72
81
  * @deprecated 6.8.0
@@ -26,6 +26,10 @@ const meta: Meta< typeof Slot > = {
26
26
  parameters: {
27
27
  controls: { expanded: true },
28
28
  docs: { source: { state: 'open' } },
29
+ componentStatus: {
30
+ status: 'stable',
31
+ whereUsed: 'global',
32
+ },
29
33
  },
30
34
  };
31
35
 
@@ -43,14 +43,14 @@ exports[`Slot bubblesVirtually true should subsume another slot by the same name
43
43
  data-position="first"
44
44
  >
45
45
  <div
46
- class="emotion-0 emotion-1"
46
+ class="css-1ragr82-PolymorphicDiv emotion-0"
47
47
  />
48
48
  </div>
49
49
  <div
50
50
  data-position="second"
51
51
  >
52
52
  <div
53
- class="emotion-0 emotion-1"
53
+ class="css-1ragr82-PolymorphicDiv emotion-0"
54
54
  >
55
55
  Content
56
56
  </div>
@@ -67,7 +67,7 @@ exports[`Slot bubblesVirtually true should subsume another slot by the same name
67
67
  data-position="second"
68
68
  >
69
69
  <div
70
- class="emotion-0 emotion-1"
70
+ class="css-1ragr82-PolymorphicDiv emotion-0"
71
71
  >
72
72
  Content
73
73
  </div>
@@ -208,7 +208,7 @@ exports[`Slot should warn without a Provider 1`] = `
208
208
  <div>
209
209
  <div>
210
210
  <div
211
- class="emotion-0 emotion-1"
211
+ class="css-1ragr82-PolymorphicDiv emotion-0"
212
212
  />
213
213
  </div>
214
214
  </div>
@@ -3,6 +3,11 @@
3
3
  */
4
4
  import { render, screen, within } from '@testing-library/react';
5
5
 
6
+ /**
7
+ * WordPress dependencies
8
+ */
9
+ import { createRef } from '@wordpress/element';
10
+
6
11
  /**
7
12
  * Internal dependencies
8
13
  */
@@ -82,4 +87,37 @@ describe( 'createSlotFill', () => {
82
87
  within( pageSidebar ).queryByText( 'Post Section' )
83
88
  ).not.toBeInTheDocument();
84
89
  } );
90
+
91
+ test( 'should forward ref to the slot when using bubblesVirtually', () => {
92
+ const TestSlotFill = createSlotFill( 'TestRefSlot' );
93
+ const ref = createRef();
94
+
95
+ render(
96
+ <SlotFillProvider>
97
+ <TestSlotFill.Fill>
98
+ <p>Content</p>
99
+ </TestSlotFill.Fill>
100
+ <TestSlotFill.Slot bubblesVirtually ref={ ref } />
101
+ </SlotFillProvider>
102
+ );
103
+
104
+ expect( ref.current ).not.toBeNull();
105
+ expect( ref.current.tagName ).toBe( 'DIV' );
106
+ } );
107
+
108
+ test( 'should forward ref without bubblesVirtually (ref stays null for fragment-based slot)', () => {
109
+ const TestSlotFill = createSlotFill( 'TestRefSlotBase' );
110
+ const ref = createRef();
111
+
112
+ render(
113
+ <SlotFillProvider>
114
+ <TestSlotFill.Fill>
115
+ <p>Content</p>
116
+ </TestSlotFill.Fill>
117
+ <TestSlotFill.Slot ref={ ref } />
118
+ </SlotFillProvider>
119
+ );
120
+
121
+ expect( ref.current ).toBeNull();
122
+ } );
85
123
  } );
@@ -37,6 +37,10 @@ const meta: Meta< typeof Snackbar > = {
37
37
  expanded: true,
38
38
  },
39
39
  docs: { canvas: { sourceState: 'shown' } },
40
+ componentStatus: {
41
+ status: 'stable',
42
+ whereUsed: 'global',
43
+ },
40
44
  },
41
45
  };
42
46
  export default meta;
@@ -45,6 +45,11 @@ const meta: Meta< typeof Spacer > = {
45
45
  expanded: true,
46
46
  },
47
47
  docs: { canvas: { sourceState: 'shown' } },
48
+ componentStatus: {
49
+ status: 'not-recommended',
50
+ whereUsed: 'global',
51
+ notes: 'Planned for deprecation.',
52
+ },
48
53
  },
49
54
  };
50
55
  export default meta;
@@ -18,6 +18,10 @@ const meta: Meta< typeof Spinner > = {
18
18
  expanded: true,
19
19
  },
20
20
  docs: { canvas: { sourceState: 'shown' } },
21
+ componentStatus: {
22
+ status: 'stable',
23
+ whereUsed: 'global',
24
+ },
21
25
  },
22
26
  };
23
27
  export default meta;
@@ -22,6 +22,11 @@ const meta: Meta< typeof Surface > = {
22
22
  expanded: true,
23
23
  },
24
24
  docs: { canvas: { sourceState: 'shown' } },
25
+ componentStatus: {
26
+ status: 'not-recommended',
27
+ whereUsed: 'global',
28
+ notes: 'Planned for deprecation.',
29
+ },
25
30
  },
26
31
  };
27
32
  export default meta;
@@ -8,8 +8,8 @@ Snapshot Diff:
8
8
  @@ -1,8 +1,8 @@
9
9
  <div>
10
10
  <div
11
- - class="components-surface css-1bmtyqd-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
12
- + class="components-surface css-1u146xf-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
11
+ - class="components-surface css-1921uc5-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
12
+ + class="components-surface css-o6qg0g-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
13
13
  data-wp-c16t="true"
14
14
  data-wp-component="Surface"
15
15
  >
@@ -25,8 +25,8 @@ Snapshot Diff:
25
25
  @@ -1,8 +1,8 @@
26
26
  <div>
27
27
  <div
28
- - class="components-surface css-iin9ud-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
29
- + class="components-surface css-1u146xf-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
28
+ - class="components-surface css-i25gtk-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
29
+ + class="components-surface css-o6qg0g-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
30
30
  data-wp-c16t="true"
31
31
  data-wp-component="Surface"
32
32
  >
@@ -42,8 +42,8 @@ Snapshot Diff:
42
42
  @@ -1,8 +1,8 @@
43
43
  <div>
44
44
  <div
45
- - class="components-surface css-4j30ez-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
46
- + class="components-surface css-1u146xf-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
45
+ - class="components-surface css-1pd05xm-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
46
+ + class="components-surface css-o6qg0g-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
47
47
  data-wp-c16t="true"
48
48
  data-wp-component="Surface"
49
49
  >
@@ -59,8 +59,8 @@ Snapshot Diff:
59
59
  @@ -1,8 +1,8 @@
60
60
  <div>
61
61
  <div
62
- - class="components-surface css-1v7smm4-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
63
- + class="components-surface css-1u146xf-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
62
+ - class="components-surface css-y3blhg-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
63
+ + class="components-surface css-o6qg0g-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
64
64
  data-wp-c16t="true"
65
65
  data-wp-component="Surface"
66
66
  >
@@ -94,8 +94,8 @@ Snapshot Diff:
94
94
  @@ -1,8 +1,8 @@
95
95
  <div>
96
96
  <div
97
- - class="components-surface css-1afnk4j-PolymorphicDiv-Surface-getBorders-secondary e19lxcc00"
98
- + class="components-surface css-1u146xf-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
97
+ - class="components-surface css-15um7qp-PolymorphicDiv-Surface-getBorders-secondary e19lxcc00"
98
+ + class="components-surface css-o6qg0g-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
99
99
  data-wp-c16t="true"
100
100
  data-wp-component="Surface"
101
101
  >
@@ -21,6 +21,11 @@ const meta: Meta< typeof TabPanel > = {
21
21
  parameters: {
22
22
  controls: { expanded: true },
23
23
  docs: { canvas: { sourceState: 'shown' } },
24
+ componentStatus: {
25
+ status: 'use-with-caution',
26
+ whereUsed: 'global',
27
+ notes: 'When building for the Gutenberg repo, use `Tabs` instead. Otherwise, continue using for now.',
28
+ },
24
29
  },
25
30
  args: {
26
31
  onSelect: fn(),
@@ -34,6 +34,11 @@ const meta: Meta< typeof Tabs > = {
34
34
  parameters: {
35
35
  controls: { expanded: true },
36
36
  docs: { canvas: { sourceState: 'shown' } },
37
+ componentStatus: {
38
+ status: 'stable',
39
+ whereUsed: 'global',
40
+ notes: 'When building for the Gutenberg repo, use this component instead of `TabPanel`. Otherwise, continue using `TabPanel`. Both will be superseded by `Tabs` in `@wordpress/ui`, but continue using these for now.',
41
+ },
37
42
  },
38
43
  args: {
39
44
  onActiveTabIdChange: fn(),
@@ -30,6 +30,11 @@ const meta: Meta< typeof Text > = {
30
30
  parameters: {
31
31
  controls: { expanded: true },
32
32
  docs: { canvas: { sourceState: 'shown' } },
33
+ componentStatus: {
34
+ status: 'not-recommended',
35
+ whereUsed: 'global',
36
+ notes: 'Values are not aligned with the current design system. Use [typography tokens](?path=/docs/tokens-typography--page) from `@wordpress/base-styles` instead.',
37
+ },
33
38
  },
34
39
  };
35
40
  export default meta;
@@ -28,6 +28,11 @@ const meta: Meta< typeof TextControl > = {
28
28
  expanded: true,
29
29
  },
30
30
  docs: { canvas: { sourceState: 'shown' } },
31
+ componentStatus: {
32
+ status: 'stable',
33
+ whereUsed: 'global',
34
+ notes: 'Prefer `InputControl` when placing buttons or icons in the prefix/suffix slots.',
35
+ },
31
36
  },
32
37
  };
33
38
  export default meta;
@@ -17,6 +17,10 @@ const meta: Meta< typeof TextHighlight > = {
17
17
  expanded: true,
18
18
  },
19
19
  docs: { canvas: { sourceState: 'shown' } },
20
+ componentStatus: {
21
+ status: 'stable',
22
+ whereUsed: 'global',
23
+ },
20
24
  },
21
25
  };
22
26
  export default meta;
@@ -28,6 +28,11 @@ const meta: Meta< typeof TextareaControl > = {
28
28
  expanded: true,
29
29
  },
30
30
  docs: { canvas: { sourceState: 'shown' } },
31
+ componentStatus: {
32
+ status: 'stable',
33
+ whereUsed: 'global',
34
+ notes: 'Will be superseded by `TextareaControl` in `@wordpress/ui`, but continue using for now.',
35
+ },
31
36
  },
32
37
  };
33
38
  export default meta;
@@ -23,6 +23,11 @@ const meta: Meta< typeof Theme > = {
23
23
  parameters: {
24
24
  controls: { expanded: true },
25
25
  docs: { canvas: { sourceState: 'shown' } },
26
+ componentStatus: {
27
+ status: 'not-recommended',
28
+ whereUsed: 'global',
29
+ notes: 'This is an internal experiment and not meant for external use. Will be superseded by `@wordpress/theme`.',
30
+ },
26
31
  },
27
32
  };
28
33
  export default meta;
@@ -20,6 +20,10 @@ const meta: Meta< typeof Tip > = {
20
20
  expanded: true,
21
21
  },
22
22
  docs: { canvas: { sourceState: 'shown' } },
23
+ componentStatus: {
24
+ status: 'unaudited',
25
+ whereUsed: 'global',
26
+ },
23
27
  },
24
28
  };
25
29
  export default meta;
@@ -28,6 +28,8 @@ function UnforwardedToggleControl(
28
28
  className,
29
29
  onChange,
30
30
  disabled,
31
+ // Prevent passing to internal component.
32
+ __nextHasNoMarginBottom: _,
31
33
  ...additionalProps
32
34
  }: WordPressComponentProps< ToggleControlProps, 'input', false >,
33
35
  ref: ForwardedRef< HTMLInputElement >
@@ -26,6 +26,11 @@ const meta: Meta< typeof ToggleControl > = {
26
26
  parameters: {
27
27
  controls: { expanded: true },
28
28
  docs: { canvas: { sourceState: 'shown' } },
29
+ componentStatus: {
30
+ status: 'stable',
31
+ whereUsed: 'global',
32
+ notes: 'Will be superseded by `ToggleControl` in `@wordpress/ui`, but continue using for now.',
33
+ },
29
34
  },
30
35
  };
31
36
  export default meta;
@@ -37,6 +37,11 @@ const meta: Meta< typeof ToggleGroupControl > = {
37
37
  parameters: {
38
38
  controls: { expanded: true },
39
39
  docs: { canvas: { sourceState: 'shown' } },
40
+ componentStatus: {
41
+ status: 'stable',
42
+ whereUsed: 'global',
43
+ notes: 'Will be superseded by `ToggleGroupControl` in `@wordpress/ui`, but continue using for now.',
44
+ },
40
45
  },
41
46
  };
42
47
  export default meta;
@@ -56,6 +56,10 @@ const meta: Meta< typeof Toolbar > = {
56
56
  parameters: {
57
57
  controls: { expanded: true },
58
58
  docs: { canvas: { sourceState: 'shown' } },
59
+ componentStatus: {
60
+ status: 'stable',
61
+ whereUsed: 'editor',
62
+ },
59
63
  },
60
64
  };
61
65
 
@@ -45,6 +45,10 @@ const meta: Meta< typeof ToolsPanel > = {
45
45
  expanded: true,
46
46
  },
47
47
  docs: { canvas: { sourceState: 'shown' } },
48
+ componentStatus: {
49
+ status: 'stable',
50
+ whereUsed: 'editor',
51
+ },
48
52
  },
49
53
  };
50
54
  export default meta;
@@ -0,0 +1,8 @@
1
+ import { createContext } from '@wordpress/element';
2
+ import type { TooltipInternalContext as TooltipInternalContextType } from './types';
3
+
4
+ export const TooltipInternalContext =
5
+ createContext< TooltipInternalContextType >( {
6
+ isNestedInTooltip: false,
7
+ } );
8
+ TooltipInternalContext.displayName = 'TooltipInternalContext';
@@ -1,36 +1,17 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import * as Ariakit from '@ariakit/react';
5
2
  import clsx from 'clsx';
6
-
7
- /**
8
- * WordPress dependencies
9
- */
10
3
  import { useInstanceId } from '@wordpress/compose';
11
4
  import {
12
5
  Children,
13
6
  useContext,
14
- createContext,
15
7
  forwardRef,
16
8
  cloneElement,
17
9
  } from '@wordpress/element';
18
10
  import deprecated from '@wordpress/deprecated';
19
-
20
- /**
21
- * Internal dependencies
22
- */
23
- import type {
24
- TooltipProps,
25
- TooltipInternalContext as TooltipInternalContextType,
26
- } from './types';
11
+ import type { TooltipProps } from './types';
27
12
  import Shortcut from '../shortcut';
28
13
  import { positionToPlacement } from '../popover/utils';
29
-
30
- const TooltipInternalContext = createContext< TooltipInternalContextType >( {
31
- isNestedInTooltip: false,
32
- } );
33
- TooltipInternalContext.displayName = 'TooltipInternalContext';
14
+ import { TooltipInternalContext } from './context';
34
15
 
35
16
  /**
36
17
  * Time over anchor to wait before showing tooltip
@@ -158,6 +139,5 @@ function UnforwardedTooltip(
158
139
  );
159
140
  }
160
141
  export const Tooltip = forwardRef( UnforwardedTooltip );
161
- Tooltip.displayName = 'Tooltip';
162
142
 
163
143
  export default Tooltip;
@@ -36,6 +36,10 @@ const meta: Meta< typeof Tooltip > = {
36
36
  parameters: {
37
37
  controls: { expanded: true },
38
38
  docs: { canvas: { sourceState: 'shown' } },
39
+ componentStatus: {
40
+ status: 'stable',
41
+ whereUsed: 'global',
42
+ },
39
43
  },
40
44
  };
41
45
  export default meta;
@@ -32,6 +32,10 @@ const meta: Meta< typeof TreeGrid > = {
32
32
  },
33
33
  parameters: {
34
34
  controls: { expanded: true },
35
+ componentStatus: {
36
+ status: 'stable',
37
+ whereUsed: 'global',
38
+ },
35
39
  },
36
40
  };
37
41
  export default meta;
@@ -29,6 +29,10 @@ const meta: Meta< typeof TreeSelect > = {
29
29
  expanded: true,
30
30
  },
31
31
  docs: { canvas: { sourceState: 'shown' } },
32
+ componentStatus: {
33
+ status: 'stable',
34
+ whereUsed: 'global',
35
+ },
32
36
  },
33
37
  };
34
38
 
@@ -22,6 +22,10 @@ const meta: Meta< typeof Truncate > = {
22
22
  expanded: true,
23
23
  },
24
24
  docs: { canvas: { sourceState: 'shown' } },
25
+ componentStatus: {
26
+ status: 'stable',
27
+ whereUsed: 'global',
28
+ },
25
29
  },
26
30
  };
27
31
  export default meta;
@@ -39,6 +39,10 @@ const meta: Meta< typeof UnitControl > = {
39
39
  expanded: true,
40
40
  },
41
41
  docs: { canvas: { sourceState: 'shown' } },
42
+ componentStatus: {
43
+ status: 'stable',
44
+ whereUsed: 'global',
45
+ },
42
46
  },
43
47
  };
44
48
  export default meta;
@@ -4,8 +4,7 @@
4
4
  import { __unsafe_useEmotionCache as useEmotionCache } from '@emotion/react';
5
5
  import type { SerializedStyles } from '@emotion/serialize';
6
6
  import { insertStyles } from '@emotion/utils';
7
- // eslint-disable-next-line no-restricted-imports
8
- import type { ClassNamesArg } from '@emotion/css';
7
+ import type { ClassNamesArg } from '@emotion/css/create-instance';
9
8
  // eslint-disable-next-line no-restricted-imports
10
9
  import { cx as innerCx } from '@emotion/css';
11
10
 
@@ -42,6 +42,11 @@ const meta: Meta< typeof VStack > = {
42
42
  parameters: {
43
43
  controls: { expanded: true },
44
44
  docs: { canvas: { sourceState: 'shown' } },
45
+ componentStatus: {
46
+ status: 'stable',
47
+ whereUsed: 'global',
48
+ notes: 'Will be superseded by `Stack` in `@wordpress/ui`, but continue using for now.',
49
+ },
45
50
  },
46
51
  };
47
52
  export default meta;
@@ -19,6 +19,11 @@ const meta: Meta< typeof View > = {
19
19
  parameters: {
20
20
  controls: { expanded: true },
21
21
  docs: { canvas: { sourceState: 'shown' } },
22
+ componentStatus: {
23
+ status: 'not-recommended',
24
+ whereUsed: 'global',
25
+ notes: 'Planned for deprecation.',
26
+ },
22
27
  },
23
28
  };
24
29
  export default meta;
@@ -3,7 +3,7 @@
3
3
  exports[`props should render as another element 1`] = `
4
4
  <div>
5
5
  <p
6
- class="emotion-0 emotion-1"
6
+ class="css-1ragr82-PolymorphicDiv emotion-0"
7
7
  >
8
8
  <span />
9
9
  </p>
@@ -13,7 +13,7 @@ exports[`props should render as another element 1`] = `
13
13
  exports[`props should render correctly 1`] = `
14
14
  <div>
15
15
  <div
16
- class="emotion-0 emotion-1"
16
+ class="css-1ragr82-PolymorphicDiv emotion-0"
17
17
  >
18
18
  <span />
19
19
  </div>
@@ -23,7 +23,7 @@ exports[`props should render correctly 1`] = `
23
23
  exports[`props should render with custom styles (Array) 1`] = `
24
24
  <div>
25
25
  <p
26
- class="emotion-0 emotion-1"
26
+ class="css-1ragr82-PolymorphicDiv emotion-0"
27
27
  >
28
28
  <span />
29
29
  </p>
@@ -33,7 +33,7 @@ exports[`props should render with custom styles (Array) 1`] = `
33
33
  exports[`props should render with custom styles (object) 1`] = `
34
34
  <div>
35
35
  <p
36
- class="emotion-0 emotion-1"
36
+ class="css-1ragr82-PolymorphicDiv emotion-0"
37
37
  >
38
38
  <span />
39
39
  </p>
@@ -43,7 +43,7 @@ exports[`props should render with custom styles (object) 1`] = `
43
43
  exports[`props should render with custom styles (string) 1`] = `
44
44
  <div>
45
45
  <p
46
- class="emotion-0 emotion-1"
46
+ class="css-1ragr82-PolymorphicDiv emotion-0"
47
47
  >
48
48
  <span />
49
49
  </p>
@@ -21,6 +21,10 @@ const meta: Meta< typeof VisuallyHidden > = {
21
21
  expanded: true,
22
22
  },
23
23
  docs: { canvas: { sourceState: 'shown' } },
24
+ componentStatus: {
25
+ status: 'stable',
26
+ whereUsed: 'global',
27
+ },
24
28
  },
25
29
  };
26
30
  export default meta;
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports[`VisuallyHidden should render correctly 1`] = `
4
4
  <div
5
- class="components-visually-hidden emotion-0 emotion-1"
5
+ class="components-visually-hidden css-1ragr82-PolymorphicDiv emotion-0"
6
6
  data-wp-c16t="true"
7
7
  data-wp-component="VisuallyHidden"
8
8
  style="border: 0px; clip: rect(1px, 1px, 1px, 1px); clip-path: inset( 50% ); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; word-wrap: normal;"
@@ -24,6 +24,11 @@ const meta: Meta< typeof ZStack > = {
24
24
  expanded: true,
25
25
  },
26
26
  docs: { canvas: { sourceState: 'shown' } },
27
+ componentStatus: {
28
+ status: 'not-recommended',
29
+ whereUsed: 'global',
30
+ notes: 'Planned for deprecation. Write your own CSS instead.',
31
+ },
27
32
  },
28
33
  };
29
34
  export default meta;