@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
@@ -30,6 +30,10 @@ const meta: Meta< typeof FontSizePicker > = {
30
30
  parameters: {
31
31
  controls: { expanded: true },
32
32
  docs: { canvas: { sourceState: 'shown' } },
33
+ componentStatus: {
34
+ status: 'stable',
35
+ whereUsed: 'editor',
36
+ },
33
37
  },
34
38
  };
35
39
  export default meta;
@@ -25,6 +25,10 @@ const meta: Meta< typeof FormFileUpload > = {
25
25
  parameters: {
26
26
  controls: { expanded: true },
27
27
  docs: { canvas: { sourceState: 'shown' } },
28
+ componentStatus: {
29
+ status: 'stable',
30
+ whereUsed: 'global',
31
+ },
28
32
  },
29
33
  };
30
34
  export default meta;
@@ -26,6 +26,11 @@ const meta: Meta< typeof FormToggle > = {
26
26
  expanded: true,
27
27
  },
28
28
  docs: { canvas: { sourceState: 'shown' } },
29
+ componentStatus: {
30
+ status: 'stable',
31
+ whereUsed: 'global',
32
+ notes: 'For standard toggles with labels, use `ToggleControl` instead.',
33
+ },
29
34
  },
30
35
  };
31
36
  export default meta;
@@ -30,6 +30,11 @@ const meta: Meta< typeof FormTokenField > = {
30
30
  expanded: true,
31
31
  },
32
32
  docs: { canvas: { sourceState: 'shown' } },
33
+ componentStatus: {
34
+ status: 'stable',
35
+ whereUsed: 'global',
36
+ notes: 'Will be superseded by `SearchableChipSelect` in `@wordpress/ui`, but continue using for now.',
37
+ },
33
38
  },
34
39
  };
35
40
  export default meta;
@@ -21,6 +21,10 @@ const meta: Meta< typeof GradientPicker > = {
21
21
  parameters: {
22
22
  controls: { expanded: true },
23
23
  docs: { canvas: { sourceState: 'shown' } },
24
+ componentStatus: {
25
+ status: 'stable',
26
+ whereUsed: 'global',
27
+ },
24
28
  },
25
29
  args: {
26
30
  onChange: fn(),
@@ -36,6 +36,11 @@ const meta: Meta< typeof Grid > = {
36
36
  expanded: true,
37
37
  },
38
38
  docs: { canvas: { sourceState: 'shown' } },
39
+ componentStatus: {
40
+ status: 'not-recommended',
41
+ whereUsed: 'global',
42
+ notes: 'Planned for deprecation. Write your own CSS instead.',
43
+ },
39
44
  },
40
45
  };
41
46
  export default meta;
@@ -24,6 +24,12 @@ const meta: Meta< typeof Guide > = {
24
24
  previousButtonText: { control: 'text' },
25
25
  onFinish: { action: 'onFinish' },
26
26
  },
27
+ parameters: {
28
+ componentStatus: {
29
+ status: 'stable',
30
+ whereUsed: 'editor',
31
+ },
32
+ },
27
33
  };
28
34
  export default meta;
29
35
 
@@ -74,6 +74,11 @@ const meta: Meta< typeof HStack > = {
74
74
  parameters: {
75
75
  controls: { expanded: true },
76
76
  docs: { canvas: { sourceState: 'shown' } },
77
+ componentStatus: {
78
+ status: 'stable',
79
+ whereUsed: 'global',
80
+ notes: 'Will be superseded by `Stack` in `@wordpress/ui`, but continue using for now.',
81
+ },
77
82
  },
78
83
  };
79
84
  export default meta;
@@ -29,6 +29,11 @@ const meta: Meta< typeof Heading > = {
29
29
  parameters: {
30
30
  controls: { expanded: true },
31
31
  docs: { canvas: { sourceState: 'shown' } },
32
+ componentStatus: {
33
+ status: 'not-recommended',
34
+ whereUsed: 'global',
35
+ notes: 'Values are not aligned with the current design system. Use [typography tokens](?path=/docs/tokens-typography--page) from `@wordpress/base-styles` instead.',
36
+ },
32
37
  },
33
38
  };
34
39
  export default meta;
@@ -21,6 +21,11 @@ const meta: Meta< typeof Icon > = {
21
21
  parameters: {
22
22
  controls: { expanded: true },
23
23
  docs: { canvas: { sourceState: 'shown' } },
24
+ componentStatus: {
25
+ status: 'stable',
26
+ whereUsed: 'global',
27
+ notes: 'Prefer this component over the `Icon` component from `@wordpress/icons`.',
28
+ },
24
29
  },
25
30
  };
26
31
  export default meta;
@@ -40,6 +40,11 @@ const meta: Meta< typeof InputControl > = {
40
40
  parameters: {
41
41
  controls: { expanded: true },
42
42
  docs: { canvas: { sourceState: 'shown' } },
43
+ componentStatus: {
44
+ status: 'stable',
45
+ whereUsed: 'global',
46
+ notes: 'Will be superseded by `InputControl` in `@wordpress/ui`, but continue using for now.',
47
+ },
43
48
  },
44
49
  };
45
50
  export default meta;
@@ -23,6 +23,10 @@ const meta: Meta< typeof ItemGroup > = {
23
23
  parameters: {
24
24
  controls: { expanded: true },
25
25
  docs: { canvas: { sourceState: 'shown' } },
26
+ componentStatus: {
27
+ status: 'stable',
28
+ whereUsed: 'global',
29
+ },
26
30
  },
27
31
  };
28
32
  export default meta;
@@ -11,8 +11,8 @@ Snapshot Diff:
11
11
  role="listitem"
12
12
  >
13
13
  <div
14
- - class="components-item css-au4yox-PolymorphicDiv-medium-item-spacedAround e19lxcc00"
15
- + class="components-item css-1ycukrf-PolymorphicDiv-large-item-spacedAround e19lxcc00"
14
+ - class="components-item css-14dwj71-PolymorphicDiv-medium-item-spacedAround e19lxcc00"
15
+ + class="components-item css-avymxl-PolymorphicDiv-large-item-spacedAround e19lxcc00"
16
16
  data-wp-c16t="true"
17
17
  data-wp-component="Item"
18
18
  >
@@ -24,8 +24,8 @@ Snapshot Diff:
24
24
  role="listitem"
25
25
  >
26
26
  <div
27
- - class="components-item css-au4yox-PolymorphicDiv-medium-item-spacedAround e19lxcc00"
28
- + class="components-item css-1ycukrf-PolymorphicDiv-large-item-spacedAround e19lxcc00"
27
+ - class="components-item css-14dwj71-PolymorphicDiv-medium-item-spacedAround e19lxcc00"
28
+ + class="components-item css-avymxl-PolymorphicDiv-large-item-spacedAround e19lxcc00"
29
29
  data-wp-c16t="true"
30
30
  data-wp-component="Item"
31
31
  >
@@ -44,8 +44,8 @@ Snapshot Diff:
44
44
  role="listitem"
45
45
  >
46
46
  <div
47
- - class="components-item css-tpom78-PolymorphicDiv-medium-item e19lxcc00"
48
- + class="components-item css-sbyvbg-PolymorphicDiv-large-item e19lxcc00"
47
+ - class="components-item css-5pzc6i-PolymorphicDiv-medium-item e19lxcc00"
48
+ + class="components-item css-y16wpf-PolymorphicDiv-large-item e19lxcc00"
49
49
  data-wp-c16t="true"
50
50
  data-wp-component="Item"
51
51
  >
@@ -114,8 +114,8 @@ Snapshot Diff:
114
114
  @@ -1,18 +1,18 @@
115
115
  <div>
116
116
  <div
117
- - class="components-item-group css-1iattls-PolymorphicDiv-rounded e19lxcc00"
118
- + class="components-item-group css-1hvp0tq-PolymorphicDiv-separated-rounded e19lxcc00"
117
+ - class="components-item-group css-7sdlfv-PolymorphicDiv-rounded e19lxcc00"
118
+ + class="components-item-group css-12ds22-PolymorphicDiv-separated-rounded e19lxcc00"
119
119
  data-wp-c16t="true"
120
120
  data-wp-component="ItemGroup"
121
121
  role="list"
@@ -125,8 +125,8 @@ Snapshot Diff:
125
125
  role="listitem"
126
126
  >
127
127
  <div
128
- - class="components-item css-au4yox-PolymorphicDiv-medium-item-spacedAround e19lxcc00"
129
- + class="components-item css-tpom78-PolymorphicDiv-medium-item e19lxcc00"
128
+ - class="components-item css-14dwj71-PolymorphicDiv-medium-item-spacedAround e19lxcc00"
129
+ + class="components-item css-5pzc6i-PolymorphicDiv-medium-item e19lxcc00"
130
130
  data-wp-c16t="true"
131
131
  data-wp-component="Item"
132
132
  >
@@ -142,8 +142,8 @@ Snapshot Diff:
142
142
  @@ -1,18 +1,18 @@
143
143
  <div>
144
144
  <div
145
- - class="components-item-group css-1iattls-PolymorphicDiv-rounded e19lxcc00"
146
- + class="components-item-group css-1ibn92o-PolymorphicDiv-bordered-rounded e19lxcc00"
145
+ - class="components-item-group css-7sdlfv-PolymorphicDiv-rounded e19lxcc00"
146
+ + class="components-item-group css-z3k5b4-PolymorphicDiv-bordered-rounded e19lxcc00"
147
147
  data-wp-c16t="true"
148
148
  data-wp-component="ItemGroup"
149
149
  role="list"
@@ -153,8 +153,8 @@ Snapshot Diff:
153
153
  role="listitem"
154
154
  >
155
155
  <div
156
- - class="components-item css-au4yox-PolymorphicDiv-medium-item-spacedAround e19lxcc00"
157
- + class="components-item css-tpom78-PolymorphicDiv-medium-item e19lxcc00"
156
+ - class="components-item css-14dwj71-PolymorphicDiv-medium-item-spacedAround e19lxcc00"
157
+ + class="components-item css-5pzc6i-PolymorphicDiv-medium-item e19lxcc00"
158
158
  data-wp-c16t="true"
159
159
  data-wp-component="Item"
160
160
  >
@@ -170,8 +170,8 @@ Snapshot Diff:
170
170
  @@ -1,8 +1,8 @@
171
171
  <div>
172
172
  <div
173
- - class="components-item-group css-1iattls-PolymorphicDiv-rounded e19lxcc00"
174
- + class="components-item-group css-161q9d5-PolymorphicDiv e19lxcc00"
173
+ - class="components-item-group css-7sdlfv-PolymorphicDiv-rounded e19lxcc00"
174
+ + class="components-item-group css-1ragr82-PolymorphicDiv e19lxcc00"
175
175
  data-wp-c16t="true"
176
176
  data-wp-component="ItemGroup"
177
177
  role="list"
@@ -15,6 +15,10 @@ const meta: Meta< typeof KeyboardShortcuts > = {
15
15
  parameters: {
16
16
  controls: { expanded: true },
17
17
  docs: { canvas: { sourceState: 'shown' } },
18
+ componentStatus: {
19
+ status: 'stable',
20
+ whereUsed: 'global',
21
+ },
18
22
  },
19
23
  };
20
24
  export default meta;
@@ -55,6 +55,11 @@ const meta: Meta< typeof Menu > = {
55
55
  canvas: { sourceState: 'shown' },
56
56
  source: { excludeDecorators: true },
57
57
  },
58
+ componentStatus: {
59
+ status: 'stable',
60
+ whereUsed: 'global',
61
+ notes: 'When building for the Gutenberg repo, use this component instead of `DropdownMenu`. Otherwise, continue using `DropdownMenu` for now.',
62
+ },
58
63
  },
59
64
  };
60
65
  export default meta;
@@ -25,6 +25,11 @@ const meta: Meta< typeof MenuGroup > = {
25
25
  parameters: {
26
26
  controls: { expanded: true },
27
27
  docs: { canvas: { sourceState: 'shown' } },
28
+ componentStatus: {
29
+ status: 'stable',
30
+ whereUsed: 'global',
31
+ notes: 'Subcomponent of `DropdownMenu`.',
32
+ },
28
33
  },
29
34
  };
30
35
  export default meta;
@@ -36,6 +36,11 @@ const meta: Meta< typeof MenuItem > = {
36
36
  expanded: true,
37
37
  },
38
38
  docs: { canvas: { sourceState: 'shown' } },
39
+ componentStatus: {
40
+ status: 'stable',
41
+ whereUsed: 'global',
42
+ notes: 'Subcomponent of `DropdownMenu`.',
43
+ },
39
44
  },
40
45
  };
41
46
  export default meta;
@@ -28,6 +28,11 @@ const meta: Meta< typeof MenuItemsChoice > = {
28
28
  expanded: true,
29
29
  },
30
30
  docs: { canvas: { sourceState: 'shown' } },
31
+ componentStatus: {
32
+ status: 'stable',
33
+ whereUsed: 'global',
34
+ notes: 'Subcomponent of `DropdownMenu`.',
35
+ },
31
36
  },
32
37
  };
33
38
  export default meta;
@@ -0,0 +1,9 @@
1
+ import { createContext } from '@wordpress/element';
2
+ import type { ModalProps } from './types';
3
+
4
+ // Used to track and dismiss the prior modal when another opens unless nested.
5
+ export type Dismissers = Set<
6
+ React.RefObject< ModalProps[ 'onRequestClose' ] | undefined >
7
+ >;
8
+ export const ModalContext = createContext< Dismissers >( new Set() );
9
+ ModalContext.displayName = 'ModalContext';
@@ -1,11 +1,4 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import clsx from 'clsx';
5
-
6
- /**
7
- * WordPress dependencies
8
- */
9
2
  import {
10
3
  createPortal,
11
4
  useCallback,
@@ -14,7 +7,6 @@ import {
14
7
  useState,
15
8
  forwardRef,
16
9
  useLayoutEffect,
17
- createContext,
18
10
  useContext,
19
11
  } from '@wordpress/element';
20
12
  import {
@@ -27,10 +19,6 @@ import {
27
19
  import { __ } from '@wordpress/i18n';
28
20
  import { close } from '@wordpress/icons';
29
21
  import { getScrollContainer } from '@wordpress/dom';
30
-
31
- /**
32
- * Internal dependencies
33
- */
34
22
  import * as ariaHelper from './aria-helper';
35
23
  import Button from '../button';
36
24
  import StyleProvider from '../style-provider';
@@ -38,13 +26,7 @@ import type { ModalProps } from './types';
38
26
  import { withIgnoreIMEEvents } from '../utils/with-ignore-ime-events';
39
27
  import { Spacer } from '../spacer';
40
28
  import { useModalExitAnimation } from './use-modal-exit-animation';
41
-
42
- // Used to track and dismiss the prior modal when another opens unless nested.
43
- type Dismissers = Set<
44
- React.RefObject< ModalProps[ 'onRequestClose' ] | undefined >
45
- >;
46
- const ModalContext = createContext< Dismissers >( new Set() );
47
- ModalContext.displayName = 'ModalContext';
29
+ import { ModalContext, type Dismissers } from './context';
48
30
 
49
31
  // Used to track body class names applied while modals are open.
50
32
  const bodyOpenClasses = new Map< string, number >();
@@ -44,6 +44,11 @@ const meta: Meta< typeof Modal > = {
44
44
  },
45
45
  parameters: {
46
46
  controls: { expanded: true },
47
+ componentStatus: {
48
+ status: 'stable',
49
+ whereUsed: 'global',
50
+ notes: 'Will be superseded by `Dialog` in `@wordpress/ui`, but continue using for now.',
51
+ },
47
52
  },
48
53
  };
49
54
  export default meta;
@@ -25,6 +25,10 @@ const meta: Meta< typeof NavigableMenu > = {
25
25
  expanded: true,
26
26
  },
27
27
  docs: { canvas: { sourceState: 'shown' } },
28
+ componentStatus: {
29
+ status: 'unaudited',
30
+ whereUsed: 'global',
31
+ },
28
32
  },
29
33
  };
30
34
  export default meta;
@@ -25,6 +25,11 @@ const meta: Meta< typeof TabbableContainer > = {
25
25
  expanded: true,
26
26
  },
27
27
  docs: { canvas: { sourceState: 'shown' } },
28
+ componentStatus: {
29
+ status: 'not-recommended',
30
+ whereUsed: 'global',
31
+ notes: 'Planned for deprecation.',
32
+ },
28
33
  },
29
34
  };
30
35
  export default meta;
@@ -28,6 +28,10 @@ const meta: Meta< typeof Navigator > = {
28
28
  parameters: {
29
29
  controls: { expanded: true },
30
30
  docs: { canvas: { sourceState: 'shown' } },
31
+ componentStatus: {
32
+ status: 'stable',
33
+ whereUsed: 'global',
34
+ },
31
35
  },
32
36
  decorators: [
33
37
  ( Story ) => {
@@ -29,6 +29,11 @@ const meta: Meta< typeof Notice > = {
29
29
  parameters: {
30
30
  controls: { expanded: true },
31
31
  docs: { canvas: { sourceState: 'shown' } },
32
+ componentStatus: {
33
+ status: 'stable',
34
+ whereUsed: 'global',
35
+ notes: 'Will be superseded by `Notice` in `@wordpress/ui`, but continue using for now.',
36
+ },
32
37
  },
33
38
  };
34
39
  export default meta;
@@ -6,7 +6,7 @@ exports[`Notice should match snapshot 1`] = `
6
6
  class="components-notice is-success is-dismissible"
7
7
  >
8
8
  <div
9
- class="components-visually-hidden emotion-0 emotion-1"
9
+ class="components-visually-hidden css-1ragr82-PolymorphicDiv emotion-0"
10
10
  data-wp-c16t="true"
11
11
  data-wp-component="VisuallyHidden"
12
12
  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;"
@@ -29,6 +29,11 @@ const meta: Meta< typeof NumberControl > = {
29
29
  parameters: {
30
30
  controls: { expanded: true },
31
31
  docs: { canvas: { sourceState: 'shown' } },
32
+ componentStatus: {
33
+ status: 'stable',
34
+ whereUsed: 'global',
35
+ notes: 'Will be superseded by `InputControl` with `type="number"` in `@wordpress/ui`, but continue using for now.',
36
+ },
32
37
  },
33
38
  };
34
39
 
@@ -24,6 +24,10 @@ const meta: Meta< typeof PaletteEdit > = {
24
24
  parameters: {
25
25
  controls: { expanded: true },
26
26
  docs: { canvas: { sourceState: 'shown' } },
27
+ componentStatus: {
28
+ status: 'stable',
29
+ whereUsed: 'editor',
30
+ },
27
31
  },
28
32
  };
29
33
  export default meta;
@@ -27,6 +27,10 @@ const meta: Meta< typeof Panel > = {
27
27
  parameters: {
28
28
  controls: { expanded: true },
29
29
  docs: { canvas: { sourceState: 'shown' } },
30
+ componentStatus: {
31
+ status: 'stable',
32
+ whereUsed: 'global',
33
+ },
30
34
  },
31
35
  };
32
36
  export default meta;
@@ -33,6 +33,10 @@ const meta: Meta< typeof Placeholder > = {
33
33
  parameters: {
34
34
  controls: { expanded: true },
35
35
  docs: { canvas: { sourceState: 'shown' } },
36
+ componentStatus: {
37
+ status: 'stable',
38
+ whereUsed: 'editor',
39
+ },
36
40
  },
37
41
  };
38
42
  export default meta;
@@ -0,0 +1,4 @@
1
+ import { createContext } from '@wordpress/element';
2
+
3
+ export const slotNameContext = createContext< string | undefined >( undefined );
4
+ slotNameContext.displayName = '__unstableSlotNameContext';
@@ -1,6 +1,3 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import type { ForwardedRef, SyntheticEvent, RefCallback } from 'react';
5
2
  import clsx from 'clsx';
6
3
  import {
@@ -15,15 +12,10 @@ import {
15
12
  } from '@floating-ui/react-dom';
16
13
  import type { HTMLMotionProps, MotionProps } from 'framer-motion';
17
14
  import { motion } from 'framer-motion';
18
-
19
- /**
20
- * WordPress dependencies
21
- */
22
15
  import {
23
16
  useRef,
24
17
  useLayoutEffect,
25
18
  forwardRef,
26
- createContext,
27
19
  useContext,
28
20
  useMemo,
29
21
  useState,
@@ -40,10 +32,6 @@ import { close } from '@wordpress/icons';
40
32
  import deprecated from '@wordpress/deprecated';
41
33
  import { Path, SVG } from '@wordpress/primitives';
42
34
  import { __ } from '@wordpress/i18n';
43
-
44
- /**
45
- * Internal dependencies
46
- */
47
35
  import Button from '../button';
48
36
  import ScrollLock from '../scroll-lock';
49
37
  import { Slot, Fill, useSlot } from '../slot-fill';
@@ -101,8 +89,7 @@ const ArrowTriangle = () => (
101
89
  </SVG>
102
90
  );
103
91
 
104
- const slotNameContext = createContext< string | undefined >( undefined );
105
- slotNameContext.displayName = '__unstableSlotNameContext';
92
+ import { slotNameContext } from './context';
106
93
 
107
94
  const fallbackContainerClassname = 'components-popover__fallback-container';
108
95
  const getPopoverFallbackContainer = () => {
@@ -55,6 +55,10 @@ const meta: Meta< typeof Popover > = {
55
55
  },
56
56
  parameters: {
57
57
  controls: { expanded: true },
58
+ componentStatus: {
59
+ status: 'stable',
60
+ whereUsed: 'global',
61
+ },
58
62
  },
59
63
  };
60
64
 
@@ -20,6 +20,10 @@ const meta: Meta< typeof ProgressBar > = {
20
20
  expanded: true,
21
21
  },
22
22
  docs: { canvas: { sourceState: 'shown' } },
23
+ componentStatus: {
24
+ status: 'stable',
25
+ whereUsed: 'global',
26
+ },
23
27
  },
24
28
  };
25
29
  export default meta;
@@ -40,6 +40,10 @@ const meta: Meta< typeof QueryControls > = {
40
40
  parameters: {
41
41
  controls: { expanded: true },
42
42
  docs: { canvas: { sourceState: 'shown' } },
43
+ componentStatus: {
44
+ status: 'stable',
45
+ whereUsed: 'editor',
46
+ },
43
47
  },
44
48
  };
45
49
  export default meta;
@@ -36,6 +36,11 @@ const meta: Meta< typeof RadioControl > = {
36
36
  expanded: true,
37
37
  },
38
38
  docs: { canvas: { sourceState: 'shown' } },
39
+ componentStatus: {
40
+ status: 'stable',
41
+ whereUsed: 'global',
42
+ notes: 'Will be superseded by `RadioGroupControl` in `@wordpress/ui`, but continue using for now.',
43
+ },
39
44
  },
40
45
  };
41
46
  export default meta;
@@ -57,6 +57,11 @@ const meta: Meta< typeof RangeControl > = {
57
57
  parameters: {
58
58
  controls: { expanded: true },
59
59
  docs: { canvas: { sourceState: 'shown' } },
60
+ componentStatus: {
61
+ status: 'stable',
62
+ whereUsed: 'global',
63
+ notes: 'Will be superseded by `SliderControl` in `@wordpress/ui`, but continue using for now.',
64
+ },
60
65
  },
61
66
  };
62
67
  export default meta;
@@ -25,6 +25,10 @@ const meta: Meta< typeof ResizableBox > = {
25
25
  parameters: {
26
26
  controls: { expanded: true },
27
27
  docs: { canvas: { sourceState: 'shown' } },
28
+ componentStatus: {
29
+ status: 'stable',
30
+ whereUsed: 'global',
31
+ },
28
32
  },
29
33
  };
30
34
  export default meta;
@@ -18,6 +18,11 @@ const meta: Meta< typeof ResponsiveWrapper > = {
18
18
  parameters: {
19
19
  controls: { expanded: true },
20
20
  docs: { canvas: { sourceState: 'shown' } },
21
+ componentStatus: {
22
+ status: 'not-recommended',
23
+ whereUsed: 'global',
24
+ notes: 'Planned for deprecation.',
25
+ },
21
26
  },
22
27
  };
23
28
  export default meta;
@@ -22,6 +22,10 @@ const meta: Meta< typeof SandBox > = {
22
22
  parameters: {
23
23
  controls: { expanded: true },
24
24
  docs: { canvas: { sourceState: 'shown' } },
25
+ componentStatus: {
26
+ status: 'stable',
27
+ whereUsed: 'global',
28
+ },
25
29
  },
26
30
  };
27
31
  export default meta;
@@ -22,6 +22,10 @@ const meta: Meta< typeof ScrollLock > = {
22
22
  parameters: {
23
23
  controls: { hideNoControlsWarning: true },
24
24
  docs: { canvas: { sourceState: 'shown' } },
25
+ componentStatus: {
26
+ status: 'stable',
27
+ whereUsed: 'global',
28
+ },
25
29
  },
26
30
  };
27
31
  export default meta;
@@ -31,6 +31,11 @@ const meta: Meta< typeof Scrollable > = {
31
31
  expanded: true,
32
32
  },
33
33
  docs: { canvas: { sourceState: 'shown' } },
34
+ componentStatus: {
35
+ status: 'not-recommended',
36
+ whereUsed: 'global',
37
+ notes: 'Planned for deprecation.',
38
+ },
34
39
  },
35
40
  };
36
41
  export default meta;