@wordpress/components 25.6.1 → 26.0.1-next.5a1d1283.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 (526) hide show
  1. package/CHANGELOG.md +21 -1
  2. package/CONTRIBUTING.md +1 -1
  3. package/README.md +3 -8
  4. package/build/color-picker/hsv-color-picker.native.js +92 -0
  5. package/build/color-picker/hsv-color-picker.native.js.map +1 -0
  6. package/build/color-picker/hue-picker.native.js +195 -0
  7. package/build/color-picker/hue-picker.native.js.map +1 -0
  8. package/build/color-picker/index.native.js +3 -2
  9. package/build/color-picker/index.native.js.map +1 -1
  10. package/build/color-picker/saturation-picker.native.js +178 -0
  11. package/build/color-picker/saturation-picker.native.js.map +1 -0
  12. package/build/item-group/item/component.js +0 -1
  13. package/build/item-group/item/component.js.map +1 -1
  14. package/build/item-group/item-group/component.js +0 -1
  15. package/build/item-group/item-group/component.js.map +1 -1
  16. package/build/menu-item/index.js +6 -4
  17. package/build/menu-item/index.js.map +1 -1
  18. package/build/menu-item/types.js.map +1 -1
  19. package/build/mobile/link-settings/link-settings-navigation.native.js +1 -1
  20. package/build/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
  21. package/build/navigation/index.js +0 -1
  22. package/build/navigation/index.js.map +1 -1
  23. package/build/navigator/navigator-provider/component.js +1 -2
  24. package/build/navigator/navigator-provider/component.js.map +1 -1
  25. package/build/palette-edit/styles.js +10 -10
  26. package/build/palette-edit/styles.js.map +1 -1
  27. package/build/popover/index.js +38 -75
  28. package/build/popover/index.js.map +1 -1
  29. package/build/popover/overlay-middlewares.js.map +1 -1
  30. package/build/popover/types.js.map +1 -1
  31. package/build/popover/utils.js +5 -50
  32. package/build/popover/utils.js.map +1 -1
  33. package/build/progress-bar/styles.js +6 -5
  34. package/build/progress-bar/styles.js.map +1 -1
  35. package/build/search-control/index.native.js +27 -24
  36. package/build/search-control/index.native.js.map +1 -1
  37. package/build/shortcut/index.js +13 -0
  38. package/build/shortcut/index.js.map +1 -1
  39. package/build/slot-fill/bubbles-virtually/slot-fill-context.js +3 -1
  40. package/build/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
  41. package/build/slot-fill/bubbles-virtually/slot.js +14 -8
  42. package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
  43. package/build/slot-fill/index.js +5 -0
  44. package/build/slot-fill/index.js.map +1 -1
  45. package/build/spinner/index.js +0 -1
  46. package/build/spinner/index.js.map +1 -1
  47. package/build/theme/index.js +0 -1
  48. package/build/theme/index.js.map +1 -1
  49. package/build/tools-panel/tools-panel/component.js +0 -1
  50. package/build/tools-panel/tools-panel/component.js.map +1 -1
  51. package/build/tools-panel/tools-panel-header/component.js +5 -1
  52. package/build/tools-panel/tools-panel-header/component.js.map +1 -1
  53. package/build/tree-select/index.js +0 -1
  54. package/build/tree-select/index.js.map +1 -1
  55. package/build/unit-control/index.js +0 -1
  56. package/build/unit-control/index.js.map +1 -1
  57. package/build/utils/hooks/use-cx.js +2 -1
  58. package/build/utils/hooks/use-cx.js.map +1 -1
  59. package/build/view/component.js +1 -2
  60. package/build/view/component.js.map +1 -1
  61. package/build-module/color-picker/hsv-color-picker.native.js +84 -0
  62. package/build-module/color-picker/hsv-color-picker.native.js.map +1 -0
  63. package/build-module/color-picker/hue-picker.native.js +185 -0
  64. package/build-module/color-picker/hue-picker.native.js.map +1 -0
  65. package/build-module/color-picker/index.native.js +2 -1
  66. package/build-module/color-picker/index.native.js.map +1 -1
  67. package/build-module/color-picker/saturation-picker.native.js +168 -0
  68. package/build-module/color-picker/saturation-picker.native.js.map +1 -0
  69. package/build-module/item-group/item/component.js +0 -1
  70. package/build-module/item-group/item/component.js.map +1 -1
  71. package/build-module/item-group/item-group/component.js +0 -1
  72. package/build-module/item-group/item-group/component.js.map +1 -1
  73. package/build-module/menu-item/index.js +4 -2
  74. package/build-module/menu-item/index.js.map +1 -1
  75. package/build-module/menu-item/types.js.map +1 -1
  76. package/build-module/mobile/link-settings/link-settings-navigation.native.js +1 -1
  77. package/build-module/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
  78. package/build-module/navigation/index.js +0 -1
  79. package/build-module/navigation/index.js.map +1 -1
  80. package/build-module/navigator/navigator-provider/component.js +1 -2
  81. package/build-module/navigator/navigator-provider/component.js.map +1 -1
  82. package/build-module/palette-edit/styles.js +10 -10
  83. package/build-module/palette-edit/styles.js.map +1 -1
  84. package/build-module/popover/index.js +42 -79
  85. package/build-module/popover/index.js.map +1 -1
  86. package/build-module/popover/overlay-middlewares.js.map +1 -1
  87. package/build-module/popover/types.js.map +1 -1
  88. package/build-module/popover/utils.js +4 -47
  89. package/build-module/popover/utils.js.map +1 -1
  90. package/build-module/progress-bar/styles.js +6 -5
  91. package/build-module/progress-bar/styles.js.map +1 -1
  92. package/build-module/search-control/index.native.js +28 -25
  93. package/build-module/search-control/index.native.js.map +1 -1
  94. package/build-module/shortcut/index.js +13 -0
  95. package/build-module/shortcut/index.js.map +1 -1
  96. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js +3 -1
  97. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
  98. package/build-module/slot-fill/bubbles-virtually/slot.js +14 -8
  99. package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
  100. package/build-module/slot-fill/index.js +6 -1
  101. package/build-module/slot-fill/index.js.map +1 -1
  102. package/build-module/spinner/index.js +0 -1
  103. package/build-module/spinner/index.js.map +1 -1
  104. package/build-module/theme/index.js +0 -1
  105. package/build-module/theme/index.js.map +1 -1
  106. package/build-module/tools-panel/tools-panel/component.js +0 -1
  107. package/build-module/tools-panel/tools-panel/component.js.map +1 -1
  108. package/build-module/tools-panel/tools-panel-header/component.js +5 -1
  109. package/build-module/tools-panel/tools-panel-header/component.js.map +1 -1
  110. package/build-module/tree-select/index.js +0 -1
  111. package/build-module/tree-select/index.js.map +1 -1
  112. package/build-module/unit-control/index.js +0 -1
  113. package/build-module/unit-control/index.js.map +1 -1
  114. package/build-module/utils/hooks/use-cx.js +2 -1
  115. package/build-module/utils/hooks/use-cx.js.map +1 -1
  116. package/build-module/view/component.js +1 -2
  117. package/build-module/view/component.js.map +1 -1
  118. package/build-types/alignment-matrix-control/stories/index.story.d.ts +2 -2
  119. package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -1
  120. package/build-types/angle-picker-control/stories/index.story.d.ts +2 -2
  121. package/build-types/angle-picker-control/stories/index.story.d.ts.map +1 -1
  122. package/build-types/animate/stories/index.story.d.ts +9 -9
  123. package/build-types/animate/stories/index.story.d.ts.map +1 -1
  124. package/build-types/base-control/stories/index.story.d.ts +4 -4
  125. package/build-types/base-control/stories/index.story.d.ts.map +1 -1
  126. package/build-types/border-box-control/stories/index.story.d.ts +2 -2
  127. package/build-types/border-box-control/stories/index.story.d.ts.map +1 -1
  128. package/build-types/border-control/stories/index.story.d.ts +2 -2
  129. package/build-types/border-control/stories/index.story.d.ts.map +1 -1
  130. package/build-types/button/stories/e2e/index.story.d.ts +3 -3
  131. package/build-types/button/stories/e2e/index.story.d.ts.map +1 -1
  132. package/build-types/button/stories/index.story.d.ts +10 -9
  133. package/build-types/button/stories/index.story.d.ts.map +1 -1
  134. package/build-types/button-group/stories/index.story.d.ts +3 -3
  135. package/build-types/button-group/stories/index.story.d.ts.map +1 -1
  136. package/build-types/card/stories/index.story.d.ts +2 -2
  137. package/build-types/card/stories/index.story.d.ts.map +1 -1
  138. package/build-types/checkbox-control/stories/index.story.d.ts +4 -4
  139. package/build-types/checkbox-control/stories/index.story.d.ts.map +1 -1
  140. package/build-types/circular-option-picker/stories/index.story.d.ts +2 -2
  141. package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
  142. package/build-types/color-indicator/stories/index.story.d.ts +3 -3
  143. package/build-types/color-indicator/stories/index.story.d.ts.map +1 -1
  144. package/build-types/color-palette/stories/index.story.d.ts +3 -3
  145. package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
  146. package/build-types/color-palette/styles.d.ts +1 -1
  147. package/build-types/color-picker/stories/index.story.d.ts +2 -2
  148. package/build-types/color-picker/stories/index.story.d.ts.map +1 -1
  149. package/build-types/combobox-control/stories/index.story.d.ts +2 -2
  150. package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
  151. package/build-types/custom-gradient-picker/stories/index.story.d.ts +2 -2
  152. package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
  153. package/build-types/date-time/date/styles.d.ts +1 -1
  154. package/build-types/date-time/stories/date-time.story.d.ts +5 -5
  155. package/build-types/date-time/stories/date-time.story.d.ts.map +1 -1
  156. package/build-types/date-time/stories/date.story.d.ts +5 -5
  157. package/build-types/date-time/stories/date.story.d.ts.map +1 -1
  158. package/build-types/date-time/stories/time.story.d.ts +3 -3
  159. package/build-types/date-time/stories/time.story.d.ts.map +1 -1
  160. package/build-types/dimension-control/stories/index.story.d.ts.map +1 -1
  161. package/build-types/disabled/stories/index.story.d.ts +4 -4
  162. package/build-types/disabled/stories/index.story.d.ts.map +1 -1
  163. package/build-types/divider/stories/index.story.d.ts +5 -5
  164. package/build-types/divider/stories/index.story.d.ts.map +1 -1
  165. package/build-types/draggable/stories/index.story.d.ts +4 -4
  166. package/build-types/draggable/stories/index.story.d.ts.map +1 -1
  167. package/build-types/drop-zone/stories/index.story.d.ts +2 -2
  168. package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
  169. package/build-types/dropdown/stories/index.story.d.ts +6 -5
  170. package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
  171. package/build-types/dropdown-menu/stories/index.story.d.ts +2 -2
  172. package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
  173. package/build-types/dropdown-menu-v2/stories/index.story.d.ts +2 -2
  174. package/build-types/dropdown-menu-v2/stories/index.story.d.ts.map +1 -1
  175. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts +2 -2
  176. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts.map +1 -1
  177. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts +2 -2
  178. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts.map +1 -1
  179. package/build-types/elevation/stories/index.story.d.ts +5 -5
  180. package/build-types/elevation/stories/index.story.d.ts.map +1 -1
  181. package/build-types/external-link/stories/index.story.d.ts +3 -3
  182. package/build-types/external-link/stories/index.story.d.ts.map +1 -1
  183. package/build-types/flex/stories/index.story.d.ts +4 -4
  184. package/build-types/flex/stories/index.story.d.ts.map +1 -1
  185. package/build-types/focal-point-picker/stories/index.story.d.ts +2 -2
  186. package/build-types/focal-point-picker/stories/index.story.d.ts.map +1 -1
  187. package/build-types/font-size-picker/stories/e2e/index.story.d.ts +2 -2
  188. package/build-types/font-size-picker/stories/e2e/index.story.d.ts.map +1 -1
  189. package/build-types/font-size-picker/stories/index.story.d.ts +8 -8
  190. package/build-types/font-size-picker/stories/index.story.d.ts.map +1 -1
  191. package/build-types/form-file-upload/stories/index.story.d.ts +2 -2
  192. package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
  193. package/build-types/form-toggle/stories/index.story.d.ts +3 -3
  194. package/build-types/form-toggle/stories/index.story.d.ts.map +1 -1
  195. package/build-types/form-token-field/stories/index.story.d.ts +7 -7
  196. package/build-types/form-token-field/stories/index.story.d.ts.map +1 -1
  197. package/build-types/gradient-picker/stories/index.story.d.ts +2 -2
  198. package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
  199. package/build-types/grid/stories/index.story.d.ts +3 -3
  200. package/build-types/grid/stories/index.story.d.ts.map +1 -1
  201. package/build-types/guide/stories/index.story.d.ts +2 -2
  202. package/build-types/guide/stories/index.story.d.ts.map +1 -1
  203. package/build-types/h-stack/stories/e2e/index.story.d.ts +3 -3
  204. package/build-types/h-stack/stories/e2e/index.story.d.ts.map +1 -1
  205. package/build-types/h-stack/stories/index.story.d.ts +3 -3
  206. package/build-types/h-stack/stories/index.story.d.ts.map +1 -1
  207. package/build-types/heading/stories/index.story.d.ts +3 -3
  208. package/build-types/heading/stories/index.story.d.ts.map +1 -1
  209. package/build-types/icon/stories/index.story.d.ts +4 -4
  210. package/build-types/icon/stories/index.story.d.ts.map +1 -1
  211. package/build-types/input-control/stories/index.story.d.ts +2 -2
  212. package/build-types/input-control/stories/index.story.d.ts.map +1 -1
  213. package/build-types/item-group/item/component.d.ts +0 -1
  214. package/build-types/item-group/item/component.d.ts.map +1 -1
  215. package/build-types/item-group/item-group/component.d.ts +0 -1
  216. package/build-types/item-group/item-group/component.d.ts.map +1 -1
  217. package/build-types/item-group/stories/index.story.d.ts +6 -6
  218. package/build-types/item-group/stories/index.story.d.ts.map +1 -1
  219. package/build-types/keyboard-shortcuts/stories/index.story.d.ts +2 -2
  220. package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +1 -1
  221. package/build-types/menu-group/stories/index.story.d.ts +3 -3
  222. package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
  223. package/build-types/menu-item/index.d.ts +5 -58
  224. package/build-types/menu-item/index.d.ts.map +1 -1
  225. package/build-types/menu-item/stories/index.story.d.ts +74 -0
  226. package/build-types/menu-item/stories/index.story.d.ts.map +1 -0
  227. package/build-types/menu-item/types.d.ts +3 -2
  228. package/build-types/menu-item/types.d.ts.map +1 -1
  229. package/build-types/menu-items-choice/stories/index.story.d.ts +3 -3
  230. package/build-types/menu-items-choice/stories/index.story.d.ts.map +1 -1
  231. package/build-types/modal/stories/index.story.d.ts +4 -4
  232. package/build-types/modal/stories/index.story.d.ts.map +1 -1
  233. package/build-types/navigable-container/stories/navigable-menu.story.d.ts +3 -3
  234. package/build-types/navigable-container/stories/navigable-menu.story.d.ts.map +1 -1
  235. package/build-types/navigable-container/stories/tabbable-container.story.d.ts +3 -3
  236. package/build-types/navigable-container/stories/tabbable-container.story.d.ts.map +1 -1
  237. package/build-types/navigation/index.d.ts +0 -1
  238. package/build-types/navigation/index.d.ts.map +1 -1
  239. package/build-types/navigation/stories/index.story.d.ts +2 -2
  240. package/build-types/navigation/stories/index.story.d.ts.map +1 -1
  241. package/build-types/navigation/stories/utils/controlled-state.d.ts +2 -2
  242. package/build-types/navigation/stories/utils/controlled-state.d.ts.map +1 -1
  243. package/build-types/navigation/stories/utils/default.d.ts +2 -2
  244. package/build-types/navigation/stories/utils/default.d.ts.map +1 -1
  245. package/build-types/navigation/stories/utils/group.d.ts +2 -2
  246. package/build-types/navigation/stories/utils/group.d.ts.map +1 -1
  247. package/build-types/navigation/stories/utils/hide-if-empty.d.ts +2 -2
  248. package/build-types/navigation/stories/utils/hide-if-empty.d.ts.map +1 -1
  249. package/build-types/navigation/stories/utils/more-examples.d.ts +2 -2
  250. package/build-types/navigation/stories/utils/more-examples.d.ts.map +1 -1
  251. package/build-types/navigation/stories/utils/search.d.ts +2 -2
  252. package/build-types/navigation/stories/utils/search.d.ts.map +1 -1
  253. package/build-types/navigation/styles/navigation-styles.d.ts +1 -1
  254. package/build-types/navigator/navigator-provider/component.d.ts +0 -1
  255. package/build-types/navigator/navigator-provider/component.d.ts.map +1 -1
  256. package/build-types/navigator/stories/index.story.d.ts +5 -5
  257. package/build-types/navigator/stories/index.story.d.ts.map +1 -1
  258. package/build-types/notice/stories/index.story.d.ts +3 -3
  259. package/build-types/notice/stories/index.story.d.ts.map +1 -1
  260. package/build-types/number-control/stories/index.story.d.ts +2 -2
  261. package/build-types/number-control/stories/index.story.d.ts.map +1 -1
  262. package/build-types/palette-edit/stories/index.story.d.ts +2 -2
  263. package/build-types/palette-edit/stories/index.story.d.ts.map +1 -1
  264. package/build-types/palette-edit/styles.d.ts +1 -1
  265. package/build-types/palette-edit/styles.d.ts.map +1 -1
  266. package/build-types/panel/stories/index.story.d.ts +6 -6
  267. package/build-types/panel/stories/index.story.d.ts.map +1 -1
  268. package/build-types/placeholder/stories/index.story.d.ts +3 -3
  269. package/build-types/placeholder/stories/index.story.d.ts.map +1 -1
  270. package/build-types/popover/index.d.ts.map +1 -1
  271. package/build-types/popover/overlay-middlewares.d.ts +2 -2
  272. package/build-types/popover/overlay-middlewares.d.ts.map +1 -1
  273. package/build-types/popover/stories/index.story.d.ts +7 -7
  274. package/build-types/popover/stories/index.story.d.ts.map +1 -1
  275. package/build-types/popover/types.d.ts +6 -0
  276. package/build-types/popover/types.d.ts.map +1 -1
  277. package/build-types/popover/utils.d.ts +1 -21
  278. package/build-types/popover/utils.d.ts.map +1 -1
  279. package/build-types/progress-bar/stories/index.story.d.ts +3 -3
  280. package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
  281. package/build-types/progress-bar/styles.d.ts.map +1 -1
  282. package/build-types/query-controls/stories/index.story.d.ts +4 -4
  283. package/build-types/query-controls/stories/index.story.d.ts.map +1 -1
  284. package/build-types/radio-control/stories/index.story.d.ts +3 -3
  285. package/build-types/radio-control/stories/index.story.d.ts.map +1 -1
  286. package/build-types/range-control/stories/index.story.d.ts +9 -9
  287. package/build-types/range-control/stories/index.story.d.ts.map +1 -1
  288. package/build-types/resizable-box/stories/index.story.d.ts +2 -2
  289. package/build-types/resizable-box/stories/index.story.d.ts.map +1 -1
  290. package/build-types/responsive-wrapper/stories/index.story.d.ts +3 -3
  291. package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -1
  292. package/build-types/sandbox/stories/index.story.d.ts +2 -2
  293. package/build-types/sandbox/stories/index.story.d.ts.map +1 -1
  294. package/build-types/scroll-lock/stories/index.story.d.ts +3 -3
  295. package/build-types/scroll-lock/stories/index.story.d.ts.map +1 -1
  296. package/build-types/scrollable/stories/index.story.d.ts +3 -3
  297. package/build-types/scrollable/stories/index.story.d.ts.map +1 -1
  298. package/build-types/search-control/stories/index.story.d.ts +2 -2
  299. package/build-types/search-control/stories/index.story.d.ts.map +1 -1
  300. package/build-types/select-control/stories/index.story.d.ts +2 -2
  301. package/build-types/select-control/stories/index.story.d.ts.map +1 -1
  302. package/build-types/shortcut/index.d.ts +13 -0
  303. package/build-types/shortcut/index.d.ts.map +1 -1
  304. package/build-types/shortcut/stories/index.story.d.ts +13 -0
  305. package/build-types/shortcut/stories/index.story.d.ts.map +1 -0
  306. package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts +1 -0
  307. package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts.map +1 -1
  308. package/build-types/slot-fill/bubbles-virtually/slot.d.ts +1 -6
  309. package/build-types/slot-fill/index.d.ts +1 -1
  310. package/build-types/slot-fill/index.d.ts.map +1 -1
  311. package/build-types/snackbar/stories/index.story.d.ts +7 -7
  312. package/build-types/snackbar/stories/index.story.d.ts.map +1 -1
  313. package/build-types/snackbar/stories/list.story.d.ts +3 -3
  314. package/build-types/snackbar/stories/list.story.d.ts.map +1 -1
  315. package/build-types/spacer/stories/index.story.d.ts +3 -3
  316. package/build-types/spacer/stories/index.story.d.ts.map +1 -1
  317. package/build-types/spinner/index.d.ts +0 -1
  318. package/build-types/spinner/index.d.ts.map +1 -1
  319. package/build-types/spinner/stories/index.story.d.ts +4 -4
  320. package/build-types/spinner/stories/index.story.d.ts.map +1 -1
  321. package/build-types/surface/stories/index.story.d.ts +3 -3
  322. package/build-types/surface/stories/index.story.d.ts.map +1 -1
  323. package/build-types/tab-panel/stories/index.story.d.ts +2 -2
  324. package/build-types/tab-panel/stories/index.story.d.ts.map +1 -1
  325. package/build-types/text-control/stories/index.story.d.ts +4 -4
  326. package/build-types/text-control/stories/index.story.d.ts.map +1 -1
  327. package/build-types/text-highlight/stories/index.story.d.ts +3 -3
  328. package/build-types/text-highlight/stories/index.story.d.ts.map +1 -1
  329. package/build-types/textarea-control/stories/index.story.d.ts +3 -3
  330. package/build-types/textarea-control/stories/index.story.d.ts.map +1 -1
  331. package/build-types/theme/index.d.ts +0 -1
  332. package/build-types/theme/index.d.ts.map +1 -1
  333. package/build-types/theme/stories/index.story.d.ts +4 -4
  334. package/build-types/theme/stories/index.story.d.ts.map +1 -1
  335. package/build-types/tip/stories/index.story.d.ts +3 -3
  336. package/build-types/tip/stories/index.story.d.ts.map +1 -1
  337. package/build-types/toggle-control/stories/index.story.d.ts +2 -2
  338. package/build-types/toggle-control/stories/index.story.d.ts.map +1 -1
  339. package/build-types/toggle-group-control/stories/index.story.d.ts +6 -6
  340. package/build-types/toggle-group-control/stories/index.story.d.ts.map +1 -1
  341. package/build-types/toolbar/stories/index.story.d.ts +2 -2
  342. package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
  343. package/build-types/tools-panel/stories/index.story.d.ts +8 -8
  344. package/build-types/tools-panel/stories/index.story.d.ts.map +1 -1
  345. package/build-types/tools-panel/tools-panel/component.d.ts +0 -1
  346. package/build-types/tools-panel/tools-panel/component.d.ts.map +1 -1
  347. package/build-types/tools-panel/tools-panel-header/component.d.ts.map +1 -1
  348. package/build-types/tree-grid/stories/index.story.d.ts +2 -2
  349. package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
  350. package/build-types/tree-select/index.d.ts +0 -1
  351. package/build-types/tree-select/index.d.ts.map +1 -1
  352. package/build-types/tree-select/stories/index.story.d.ts +2 -2
  353. package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
  354. package/build-types/truncate/stories/index.story.d.ts +4 -4
  355. package/build-types/truncate/stories/index.story.d.ts.map +1 -1
  356. package/build-types/unit-control/index.d.ts +0 -1
  357. package/build-types/unit-control/index.d.ts.map +1 -1
  358. package/build-types/unit-control/stories/index.story.d.ts +7 -7
  359. package/build-types/unit-control/stories/index.story.d.ts.map +1 -1
  360. package/build-types/utils/hooks/use-cx.d.ts +2 -1
  361. package/build-types/utils/hooks/use-cx.d.ts.map +1 -1
  362. package/build-types/v-stack/stories/e2e/index.story.d.ts +3 -3
  363. package/build-types/v-stack/stories/e2e/index.story.d.ts.map +1 -1
  364. package/build-types/v-stack/stories/index.story.d.ts +2 -2
  365. package/build-types/v-stack/stories/index.story.d.ts.map +1 -1
  366. package/build-types/view/component.d.ts +0 -1
  367. package/build-types/view/component.d.ts.map +1 -1
  368. package/build-types/view/stories/index.story.d.ts +3 -3
  369. package/build-types/view/stories/index.story.d.ts.map +1 -1
  370. package/build-types/visually-hidden/stories/index.story.d.ts +5 -5
  371. package/build-types/visually-hidden/stories/index.story.d.ts.map +1 -1
  372. package/build-types/z-stack/stories/index.story.d.ts +3 -3
  373. package/build-types/z-stack/stories/index.story.d.ts.map +1 -1
  374. package/package.json +20 -20
  375. package/src/alignment-matrix-control/stories/index.story.tsx +7 -3
  376. package/src/angle-picker-control/stories/index.story.tsx +3 -3
  377. package/src/animate/stories/index.story.tsx +12 -10
  378. package/src/base-control/stories/index.story.tsx +5 -9
  379. package/src/border-box-control/stories/index.story.tsx +5 -9
  380. package/src/border-control/stories/index.story.tsx +8 -14
  381. package/src/button/stories/e2e/index.story.tsx +3 -3
  382. package/src/button/stories/index.story.tsx +10 -10
  383. package/src/button-group/stories/index.story.tsx +4 -6
  384. package/src/card/stories/index.story.tsx +5 -5
  385. package/src/checkbox-control/stories/index.story.tsx +7 -6
  386. package/src/circular-option-picker/stories/index.story.tsx +16 -4
  387. package/src/color-indicator/stories/index.story.tsx +4 -6
  388. package/src/color-palette/stories/index.story.tsx +12 -21
  389. package/src/color-picker/hsv-color-picker.native.js +88 -0
  390. package/src/color-picker/hue-picker.native.js +194 -0
  391. package/src/color-picker/index.native.js +2 -1
  392. package/src/color-picker/saturation-picker.native.js +163 -0
  393. package/src/color-picker/stories/index.story.tsx +3 -3
  394. package/src/color-picker/style.native.scss +23 -0
  395. package/src/combobox-control/stories/index.story.tsx +3 -3
  396. package/src/custom-gradient-picker/stories/index.story.tsx +3 -3
  397. package/src/date-time/stories/date-time.story.tsx +8 -10
  398. package/src/date-time/stories/date.story.tsx +8 -9
  399. package/src/date-time/stories/time.story.tsx +4 -4
  400. package/src/dimension-control/stories/index.story.tsx +3 -3
  401. package/src/disabled/stories/index.story.tsx +4 -4
  402. package/src/divider/stories/index.story.tsx +6 -6
  403. package/src/draggable/stories/index.story.tsx +5 -7
  404. package/src/drop-zone/stories/index.story.tsx +3 -3
  405. package/src/dropdown/stories/index.story.tsx +8 -6
  406. package/src/dropdown-menu/stories/index.story.tsx +3 -3
  407. package/src/dropdown-menu-v2/stories/index.story.tsx +24 -10
  408. package/src/duotone-picker/stories/duotone-picker.story.tsx +3 -6
  409. package/src/duotone-picker/stories/duotone-swatch.story.tsx +3 -3
  410. package/src/elevation/stories/index.story.tsx +7 -7
  411. package/src/external-link/stories/index.story.tsx +4 -6
  412. package/src/flex/stories/index.story.tsx +6 -6
  413. package/src/focal-point-picker/stories/index.story.tsx +3 -3
  414. package/src/font-size-picker/stories/e2e/index.story.tsx +3 -3
  415. package/src/font-size-picker/stories/index.story.tsx +10 -10
  416. package/src/form-file-upload/stories/index.story.tsx +3 -3
  417. package/src/form-toggle/stories/index.story.tsx +4 -7
  418. package/src/form-token-field/stories/index.story.tsx +10 -11
  419. package/src/gradient-picker/stories/index.story.tsx +3 -3
  420. package/src/grid/stories/index.story.tsx +4 -4
  421. package/src/guide/stories/index.story.tsx +3 -3
  422. package/src/h-stack/stories/e2e/index.story.tsx +4 -4
  423. package/src/h-stack/stories/index.story.tsx +4 -4
  424. package/src/heading/stories/index.story.tsx +3 -3
  425. package/src/icon/stories/index.story.tsx +5 -5
  426. package/src/input-control/stories/index.story.tsx +5 -3
  427. package/src/item-group/item/component.tsx +0 -1
  428. package/src/item-group/item-group/component.tsx +0 -1
  429. package/src/item-group/stories/index.story.tsx +11 -12
  430. package/src/keyboard-shortcuts/stories/index.story.tsx +3 -3
  431. package/src/menu-group/stories/index.story.tsx +5 -5
  432. package/src/menu-item/README.md +1 -1
  433. package/src/menu-item/index.tsx +5 -2
  434. package/src/menu-item/stories/index.story.tsx +80 -0
  435. package/src/menu-item/types.ts +3 -2
  436. package/src/menu-items-choice/stories/index.story.tsx +4 -6
  437. package/src/mobile/link-settings/link-settings-navigation.native.js +1 -1
  438. package/src/modal/stories/index.story.tsx +5 -10
  439. package/src/navigable-container/stories/navigable-menu.story.tsx +3 -3
  440. package/src/navigable-container/stories/tabbable-container.story.tsx +3 -3
  441. package/src/navigation/index.tsx +0 -1
  442. package/src/navigation/stories/index.story.tsx +16 -2
  443. package/src/navigation/stories/utils/controlled-state.tsx +2 -2
  444. package/src/navigation/stories/utils/default.tsx +2 -2
  445. package/src/navigation/stories/utils/group.tsx +2 -2
  446. package/src/navigation/stories/utils/hide-if-empty.tsx +2 -2
  447. package/src/navigation/stories/utils/more-examples.tsx +2 -2
  448. package/src/navigation/stories/utils/search.tsx +2 -2
  449. package/src/navigator/navigator-provider/component.tsx +0 -1
  450. package/src/navigator/stories/index.story.tsx +9 -10
  451. package/src/notice/stories/index.story.tsx +6 -6
  452. package/src/number-control/stories/index.story.tsx +3 -3
  453. package/src/palette-edit/stories/index.story.tsx +3 -3
  454. package/src/palette-edit/styles.js +0 -1
  455. package/src/panel/stories/index.story.tsx +9 -11
  456. package/src/placeholder/stories/index.story.tsx +4 -6
  457. package/src/popover/README.md +2 -2
  458. package/src/popover/index.tsx +69 -103
  459. package/src/popover/overlay-middlewares.tsx +2 -2
  460. package/src/popover/stories/index.story.tsx +8 -10
  461. package/src/popover/test/index.tsx +15 -1
  462. package/src/popover/types.ts +6 -0
  463. package/src/popover/utils.ts +5 -56
  464. package/src/progress-bar/stories/index.story.tsx +4 -6
  465. package/src/progress-bar/styles.ts +4 -1
  466. package/src/query-controls/stories/index.story.tsx +5 -6
  467. package/src/radio-control/stories/index.story.tsx +4 -6
  468. package/src/radio-group/stories/index.story.js +1 -0
  469. package/src/range-control/stories/index.story.tsx +12 -18
  470. package/src/resizable-box/stories/index.story.tsx +3 -3
  471. package/src/responsive-wrapper/stories/index.story.tsx +4 -5
  472. package/src/sandbox/stories/index.story.tsx +3 -5
  473. package/src/scroll-lock/stories/index.story.tsx +3 -3
  474. package/src/scrollable/stories/index.story.tsx +4 -4
  475. package/src/search-control/index.native.js +39 -27
  476. package/src/search-control/stories/index.story.tsx +3 -3
  477. package/src/select-control/stories/index.story.tsx +3 -3
  478. package/src/shortcut/index.tsx +13 -0
  479. package/src/shortcut/stories/index.story.tsx +33 -0
  480. package/src/slot-fill/README.md +5 -5
  481. package/src/slot-fill/bubbles-virtually/slot-fill-context.js +3 -0
  482. package/src/slot-fill/bubbles-virtually/slot.js +17 -5
  483. package/src/slot-fill/index.js +6 -1
  484. package/src/slot-fill/stories/index.story.js +2 -0
  485. package/src/slot-fill/test/__snapshots__/slot.js.snap +12 -4
  486. package/src/snackbar/stories/index.story.tsx +10 -13
  487. package/src/snackbar/stories/list.story.tsx +3 -3
  488. package/src/spacer/stories/index.story.tsx +4 -4
  489. package/src/spinner/index.tsx +0 -1
  490. package/src/spinner/stories/index.story.tsx +5 -5
  491. package/src/surface/stories/index.story.tsx +4 -4
  492. package/src/tab-panel/stories/index.story.tsx +5 -13
  493. package/src/tab-panel/test/index.tsx +9 -25
  494. package/src/text-control/stories/index.story.tsx +7 -6
  495. package/src/text-highlight/stories/index.story.tsx +4 -6
  496. package/src/textarea-control/stories/index.story.tsx +4 -6
  497. package/src/theme/index.tsx +0 -1
  498. package/src/theme/stories/index.story.tsx +5 -5
  499. package/src/tip/stories/index.story.tsx +4 -4
  500. package/src/toggle-control/stories/index.story.tsx +3 -3
  501. package/src/toggle-group-control/stories/index.story.tsx +17 -11
  502. package/src/toolbar/stories/index.story.tsx +13 -3
  503. package/src/tools-panel/stories/index.story.tsx +17 -12
  504. package/src/tools-panel/tools-panel/component.tsx +0 -1
  505. package/src/tools-panel/tools-panel-header/component.tsx +3 -0
  506. package/src/tree-grid/stories/index.story.tsx +5 -3
  507. package/src/tree-select/index.tsx +0 -1
  508. package/src/tree-select/stories/index.story.tsx +3 -3
  509. package/src/truncate/stories/index.story.tsx +5 -7
  510. package/src/unit-control/index.tsx +0 -1
  511. package/src/unit-control/stories/index.story.tsx +10 -9
  512. package/src/utils/hooks/use-cx.ts +2 -1
  513. package/src/v-stack/stories/e2e/index.story.tsx +4 -4
  514. package/src/v-stack/stories/index.story.tsx +3 -3
  515. package/src/view/component.tsx +0 -1
  516. package/src/view/stories/index.story.tsx +4 -4
  517. package/src/visually-hidden/stories/index.story.tsx +7 -7
  518. package/src/z-stack/stories/index.story.tsx +4 -4
  519. package/tsconfig.tsbuildinfo +1 -1
  520. package/build/popover/limit-shift.js +0 -129
  521. package/build/popover/limit-shift.js.map +0 -1
  522. package/build-module/popover/limit-shift.js +0 -122
  523. package/build-module/popover/limit-shift.js.map +0 -1
  524. package/build-types/popover/limit-shift.d.ts +0 -87
  525. package/build-types/popover/limit-shift.d.ts.map +0 -1
  526. package/src/popover/limit-shift.ts +0 -205
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
5
- import { forwardRef } from '@wordpress/element';
5
+ import { forwardRef, useContext } from '@wordpress/element';
6
6
 
7
7
  /**
8
8
  * Internal dependencies
@@ -13,6 +13,7 @@ import BubblesVirtuallyFill from './bubbles-virtually/fill';
13
13
  import BubblesVirtuallySlot from './bubbles-virtually/slot';
14
14
  import BubblesVirtuallySlotFillProvider from './bubbles-virtually/slot-fill-provider';
15
15
  import SlotFillProvider from './provider';
16
+ import SlotFillContext from './bubbles-virtually/slot-fill-context';
16
17
  export { default as useSlot } from './bubbles-virtually/use-slot';
17
18
  export { default as useSlotFills } from './bubbles-virtually/use-slot-fills';
18
19
 
@@ -35,6 +36,10 @@ export const Slot = forwardRef( ( { bubblesVirtually, ...props }, ref ) => {
35
36
  } );
36
37
 
37
38
  export function Provider( { children, ...props } ) {
39
+ const parent = useContext( SlotFillContext );
40
+ if ( ! parent.isDefault ) {
41
+ return children;
42
+ }
38
43
  return (
39
44
  <SlotFillProvider { ...props }>
40
45
  <BubblesVirtuallySlotFillProvider>
@@ -11,6 +11,8 @@ import { Slot, Fill, Provider as SlotFillProvider } from '../';
11
11
  export default {
12
12
  title: 'Components/SlotFill',
13
13
  component: Slot,
14
+ // @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
15
+ subcomponents: { Fill, SlotFillProvider },
14
16
  parameters: {
15
17
  controls: { expanded: true },
16
18
  docs: { canvas: { sourceState: 'shown' } },
@@ -42,12 +42,16 @@ exports[`Slot bubblesVirtually true should subsume another slot by the same name
42
42
  <div
43
43
  data-position="first"
44
44
  >
45
- <div />
45
+ <div
46
+ class="emotion-0 emotion-1"
47
+ />
46
48
  </div>
47
49
  <div
48
50
  data-position="second"
49
51
  >
50
- <div>
52
+ <div
53
+ class="emotion-0 emotion-1"
54
+ >
51
55
  Content
52
56
  </div>
53
57
  </div>
@@ -62,7 +66,9 @@ exports[`Slot bubblesVirtually true should subsume another slot by the same name
62
66
  <div
63
67
  data-position="second"
64
68
  >
65
- <div>
69
+ <div
70
+ class="emotion-0 emotion-1"
71
+ >
66
72
  Content
67
73
  </div>
68
74
  </div>
@@ -187,7 +193,9 @@ exports[`Slot should render in expected order when fills unmounted 1`] = `
187
193
  exports[`Slot should warn without a Provider 1`] = `
188
194
  <div>
189
195
  <div>
190
- <div />
196
+ <div
197
+ class="emotion-0 emotion-1"
198
+ />
191
199
  </div>
192
200
  </div>
193
201
  `;
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import type { ComponentMeta, ComponentStory } from '@storybook/react';
4
+ import type { Meta, StoryFn } from '@storybook/react';
5
5
 
6
6
  /**
7
7
  * Internal dependencies
8
8
  */
9
9
  import Snackbar from '..';
10
10
 
11
- const meta: ComponentMeta< typeof Snackbar > = {
11
+ const meta: Meta< typeof Snackbar > = {
12
12
  title: 'Components/Snackbar',
13
13
  component: Snackbar,
14
14
  argTypes: {
@@ -34,23 +34,22 @@ const meta: ComponentMeta< typeof Snackbar > = {
34
34
  };
35
35
  export default meta;
36
36
 
37
- const DefaultTemplate: ComponentStory< typeof Snackbar > = ( {
37
+ const DefaultTemplate: StoryFn< typeof Snackbar > = ( {
38
38
  children,
39
39
  ...props
40
40
  } ) => {
41
41
  return <Snackbar { ...props }>{ children }</Snackbar>;
42
42
  };
43
43
 
44
- export const Default: ComponentStory< typeof Snackbar > = DefaultTemplate.bind(
45
- {}
46
- );
44
+ export const Default: StoryFn< typeof Snackbar > = DefaultTemplate.bind( {} );
47
45
  Default.args = {
48
46
  children:
49
47
  'Use Snackbars to communicate low priority, non-interruptive messages to the user.',
50
48
  };
51
49
 
52
- export const WithActions: ComponentStory< typeof Snackbar > =
53
- DefaultTemplate.bind( {} );
50
+ export const WithActions: StoryFn< typeof Snackbar > = DefaultTemplate.bind(
51
+ {}
52
+ );
54
53
  WithActions.args = {
55
54
  actions: [
56
55
  {
@@ -61,9 +60,7 @@ WithActions.args = {
61
60
  children: 'Use Snackbars with an action link to an external page.',
62
61
  };
63
62
 
64
- export const WithIcon: ComponentStory< typeof Snackbar > = DefaultTemplate.bind(
65
- {}
66
- );
63
+ export const WithIcon: StoryFn< typeof Snackbar > = DefaultTemplate.bind( {} );
67
64
  WithIcon.args = {
68
65
  children: 'Add an icon to make your snackbar stand out',
69
66
  icon: (
@@ -73,7 +70,7 @@ WithIcon.args = {
73
70
  ),
74
71
  };
75
72
 
76
- export const WithExplicitDismiss: ComponentStory< typeof Snackbar > =
73
+ export const WithExplicitDismiss: StoryFn< typeof Snackbar > =
77
74
  DefaultTemplate.bind( {} );
78
75
  WithExplicitDismiss.args = {
79
76
  children:
@@ -81,7 +78,7 @@ WithExplicitDismiss.args = {
81
78
  explicitDismiss: true,
82
79
  };
83
80
 
84
- export const WithActionAndExplicitDismiss: ComponentStory< typeof Snackbar > =
81
+ export const WithActionAndExplicitDismiss: StoryFn< typeof Snackbar > =
85
82
  DefaultTemplate.bind( {} );
86
83
  WithActionAndExplicitDismiss.args = {
87
84
  actions: [
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import type { ComponentMeta, ComponentStory } from '@storybook/react';
4
+ import type { Meta, StoryFn } from '@storybook/react';
5
5
 
6
6
  /**
7
7
  * WordPress dependencies
@@ -13,7 +13,7 @@ import { useState } from '@wordpress/element';
13
13
  */
14
14
  import SnackbarList from '../list';
15
15
 
16
- const meta: ComponentMeta< typeof SnackbarList > = {
16
+ const meta: Meta< typeof SnackbarList > = {
17
17
  title: 'Components/SnackbarList',
18
18
  component: SnackbarList,
19
19
  argTypes: {
@@ -32,7 +32,7 @@ const meta: ComponentMeta< typeof SnackbarList > = {
32
32
  };
33
33
  export default meta;
34
34
 
35
- export const Default: ComponentStory< typeof SnackbarList > = ( {
35
+ export const Default: StoryFn< typeof SnackbarList > = ( {
36
36
  children,
37
37
  notices: noticesProp,
38
38
  ...props
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import type { ComponentMeta, ComponentStory } from '@storybook/react';
4
+ import type { Meta, StoryFn } from '@storybook/react';
5
5
 
6
6
  /**
7
7
  * Internal dependencies
@@ -29,7 +29,7 @@ const controls = [
29
29
  {}
30
30
  );
31
31
 
32
- const meta: ComponentMeta< typeof Spacer > = {
32
+ const meta: Meta< typeof Spacer > = {
33
33
  component: Spacer,
34
34
  title: 'Components (Experimental)/Spacer',
35
35
  argTypes: {
@@ -54,7 +54,7 @@ const BlackBox = () => (
54
54
  />
55
55
  );
56
56
 
57
- const Template: ComponentStory< typeof Spacer > = ( { onChange, ...args } ) => {
57
+ const Template: StoryFn< typeof Spacer > = ( { onChange, ...args } ) => {
58
58
  return (
59
59
  <>
60
60
  <BlackBox />
@@ -64,7 +64,7 @@ const Template: ComponentStory< typeof Spacer > = ( { onChange, ...args } ) => {
64
64
  );
65
65
  };
66
66
 
67
- export const Default: ComponentStory< typeof Spacer > = Template.bind( {} );
67
+ export const Default: StoryFn< typeof Spacer > = Template.bind( {} );
68
68
  Default.args = {
69
69
  children: 'This is the spacer',
70
70
  };
@@ -50,7 +50,6 @@ export function UnforwardedSpinner(
50
50
  /**
51
51
  * `Spinner` is a component used to notify users that their action is being processed.
52
52
  *
53
- * @example
54
53
  * ```js
55
54
  * import { Spinner } from '@wordpress/components';
56
55
  *
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import type { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ import type { StoryFn, Meta } from '@storybook/react';
5
5
 
6
6
  /**
7
7
  * Internal dependencies
@@ -9,7 +9,7 @@ import type { ComponentStory, ComponentMeta } from '@storybook/react';
9
9
  import Spinner from '../';
10
10
  import { space } from '../../ui/utils/space';
11
11
 
12
- const meta: ComponentMeta< typeof Spinner > = {
12
+ const meta: Meta< typeof Spinner > = {
13
13
  title: 'Components/Spinner',
14
14
  component: Spinner,
15
15
  parameters: {
@@ -21,12 +21,12 @@ const meta: ComponentMeta< typeof Spinner > = {
21
21
  };
22
22
  export default meta;
23
23
 
24
- const Template: ComponentStory< typeof Spinner > = ( args ) => {
24
+ const Template: StoryFn< typeof Spinner > = ( args ) => {
25
25
  return <Spinner { ...args } />;
26
26
  };
27
27
 
28
- export const Default: ComponentStory< typeof Spinner > = Template.bind( {} );
28
+ export const Default: StoryFn< typeof Spinner > = Template.bind( {} );
29
29
 
30
30
  // The Spinner can be resized to any size, but the stroke width will remain unchanged.
31
- export const CustomSize: ComponentStory< typeof Spinner > = Template.bind( {} );
31
+ export const CustomSize: StoryFn< typeof Spinner > = Template.bind( {} );
32
32
  CustomSize.args = { style: { width: space( 20 ), height: space( 20 ) } };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import type { ComponentMeta, ComponentStory } from '@storybook/react';
4
+ import type { Meta, StoryFn } from '@storybook/react';
5
5
 
6
6
  /**
7
7
  * Internal dependencies
@@ -9,7 +9,7 @@ import type { ComponentMeta, ComponentStory } from '@storybook/react';
9
9
  import { Surface } from '..';
10
10
  import { Text } from '../../text';
11
11
 
12
- const meta: ComponentMeta< typeof Surface > = {
12
+ const meta: Meta< typeof Surface > = {
13
13
  component: Surface,
14
14
  title: 'Components (Experimental)/Surface',
15
15
  argTypes: {
@@ -25,7 +25,7 @@ const meta: ComponentMeta< typeof Surface > = {
25
25
  };
26
26
  export default meta;
27
27
 
28
- const Template: ComponentStory< typeof Surface > = ( args ) => {
28
+ const Template: StoryFn< typeof Surface > = ( args ) => {
29
29
  return (
30
30
  <Surface
31
31
  { ...args }
@@ -36,5 +36,5 @@ const Template: ComponentStory< typeof Surface > = ( args ) => {
36
36
  );
37
37
  };
38
38
 
39
- export const Default: ComponentStory< typeof Surface > = Template.bind( {} );
39
+ export const Default: StoryFn< typeof Surface > = Template.bind( {} );
40
40
  Default.args = {};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import type { ComponentMeta, ComponentStory } from '@storybook/react';
4
+ import type { Meta, StoryFn } from '@storybook/react';
5
5
 
6
6
  /**
7
7
  * WordPress dependencies
@@ -12,10 +12,8 @@ import { link, more, wordpress } from '@wordpress/icons';
12
12
  * Internal dependencies
13
13
  */
14
14
  import TabPanel from '..';
15
- import Popover from '../../popover';
16
- import { Provider as SlotFillProvider } from '../../slot-fill';
17
15
 
18
- const meta: ComponentMeta< typeof TabPanel > = {
16
+ const meta: Meta< typeof TabPanel > = {
19
17
  title: 'Components/TabPanel',
20
18
  component: TabPanel,
21
19
  parameters: {
@@ -26,7 +24,7 @@ const meta: ComponentMeta< typeof TabPanel > = {
26
24
  };
27
25
  export default meta;
28
26
 
29
- const Template: ComponentStory< typeof TabPanel > = ( props ) => {
27
+ const Template: StoryFn< typeof TabPanel > = ( props ) => {
30
28
  return <TabPanel { ...props } />;
31
29
  };
32
30
 
@@ -65,14 +63,8 @@ DisabledTab.args = {
65
63
  ],
66
64
  };
67
65
 
68
- const SlotFillTemplate: ComponentStory< typeof TabPanel > = ( props ) => {
69
- return (
70
- <SlotFillProvider>
71
- <TabPanel { ...props } />
72
- { /* @ts-expect-error The 'Slot' component hasn't been typed yet. */ }
73
- <Popover.Slot />
74
- </SlotFillProvider>
75
- );
66
+ const SlotFillTemplate: StoryFn< typeof TabPanel > = ( props ) => {
67
+ return <TabPanel { ...props } />;
76
68
  };
77
69
 
78
70
  export const WithTabIconsAndTooltips = SlotFillTemplate.bind( {} );
@@ -13,8 +13,6 @@ import { wordpress, category, media } from '@wordpress/icons';
13
13
  * Internal dependencies
14
14
  */
15
15
  import TabPanel from '..';
16
- import Popover from '../../popover';
17
- import { Provider as SlotFillProvider } from '../../slot-fill';
18
16
 
19
17
  const TABS = [
20
18
  {
@@ -107,17 +105,10 @@ describe.each( [
107
105
  ];
108
106
 
109
107
  render(
110
- // In order for the tooltip to display properly, there needs to be
111
- // `Popover.Slot` in which the `Popover` renders outside of the
112
- // `TabPanel` component, otherwise the tooltip renders inline.
113
- <SlotFillProvider>
114
- <Component
115
- tabs={ TABS_WITH_ICON }
116
- children={ panelRenderFunction }
117
- />
118
- { /* @ts-expect-error The 'Slot' component hasn't been typed yet. */ }
119
- <Popover.Slot />
120
- </SlotFillProvider>
108
+ <Component
109
+ tabs={ TABS_WITH_ICON }
110
+ children={ panelRenderFunction }
111
+ />
121
112
  );
122
113
 
123
114
  const allTabs = screen.getAllByRole( 'tab' );
@@ -152,18 +143,11 @@ describe.each( [
152
143
  ];
153
144
 
154
145
  render(
155
- // In order for the tooltip to display properly, there needs to be
156
- // `Popover.Slot` in which the `Popover` renders outside of the
157
- // `TabPanel` component, otherwise the tooltip renders inline.
158
- <SlotFillProvider>
159
- <Component
160
- tabs={ TABS_WITH_ICON }
161
- children={ panelRenderFunction }
162
- onSelect={ mockOnSelect }
163
- />
164
- { /* @ts-expect-error The 'Slot' component hasn't been typed yet. */ }
165
- <Popover.Slot />
166
- </SlotFillProvider>
146
+ <Component
147
+ tabs={ TABS_WITH_ICON }
148
+ children={ panelRenderFunction }
149
+ onSelect={ mockOnSelect }
150
+ />
167
151
  );
168
152
 
169
153
  expect( await getSelectedTab() ).not.toHaveTextContent( 'Alpha' );
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import type { ComponentMeta, ComponentStory } from '@storybook/react';
4
+ import type { Meta, StoryFn } from '@storybook/react';
5
5
 
6
6
  /**
7
7
  * WordPress dependencies
@@ -13,7 +13,7 @@ import { useState } from '@wordpress/element';
13
13
  */
14
14
  import TextControl from '..';
15
15
 
16
- const meta: ComponentMeta< typeof TextControl > = {
16
+ const meta: Meta< typeof TextControl > = {
17
17
  component: TextControl,
18
18
  title: 'Components/TextControl',
19
19
  argTypes: {
@@ -31,7 +31,7 @@ const meta: ComponentMeta< typeof TextControl > = {
31
31
  };
32
32
  export default meta;
33
33
 
34
- const DefaultTemplate: ComponentStory< typeof TextControl > = ( {
34
+ const DefaultTemplate: StoryFn< typeof TextControl > = ( {
35
35
  onChange,
36
36
  ...args
37
37
  } ) => {
@@ -49,11 +49,12 @@ const DefaultTemplate: ComponentStory< typeof TextControl > = ( {
49
49
  );
50
50
  };
51
51
 
52
- export const Default: ComponentStory< typeof TextControl > =
53
- DefaultTemplate.bind( {} );
52
+ export const Default: StoryFn< typeof TextControl > = DefaultTemplate.bind(
53
+ {}
54
+ );
54
55
  Default.args = {};
55
56
 
56
- export const WithLabelAndHelpText: ComponentStory< typeof TextControl > =
57
+ export const WithLabelAndHelpText: StoryFn< typeof TextControl > =
57
58
  DefaultTemplate.bind( {} );
58
59
  WithLabelAndHelpText.args = {
59
60
  ...Default.args,
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import type { ComponentMeta, ComponentStory } from '@storybook/react';
4
+ import type { Meta, StoryFn } from '@storybook/react';
5
5
 
6
6
  /**
7
7
  * Internal dependencies
8
8
  */
9
9
  import TextHighlight from '..';
10
10
 
11
- const meta: ComponentMeta< typeof TextHighlight > = {
11
+ const meta: Meta< typeof TextHighlight > = {
12
12
  component: TextHighlight,
13
13
  title: 'Components/TextHighlight',
14
14
  parameters: {
@@ -20,13 +20,11 @@ const meta: ComponentMeta< typeof TextHighlight > = {
20
20
  };
21
21
  export default meta;
22
22
 
23
- const Template: ComponentStory< typeof TextHighlight > = ( args ) => {
23
+ const Template: StoryFn< typeof TextHighlight > = ( args ) => {
24
24
  return <TextHighlight { ...args } />;
25
25
  };
26
26
 
27
- export const Default: ComponentStory< typeof TextHighlight > = Template.bind(
28
- {}
29
- );
27
+ export const Default: StoryFn< typeof TextHighlight > = Template.bind( {} );
30
28
  Default.args = {
31
29
  text: 'We call the new editor Gutenberg. The entire editing experience has been rebuilt for media rich pages and posts.',
32
30
  highlight: 'Gutenberg',
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import type { ComponentMeta, ComponentStory } from '@storybook/react';
4
+ import type { Meta, StoryFn } from '@storybook/react';
5
5
 
6
6
  /**
7
7
  * WordPress dependencies
@@ -13,7 +13,7 @@ import { useState } from '@wordpress/element';
13
13
  */
14
14
  import TextareaControl from '..';
15
15
 
16
- const meta: ComponentMeta< typeof TextareaControl > = {
16
+ const meta: Meta< typeof TextareaControl > = {
17
17
  component: TextareaControl,
18
18
  title: 'Components/TextareaControl',
19
19
  argTypes: {
@@ -31,7 +31,7 @@ const meta: ComponentMeta< typeof TextareaControl > = {
31
31
  };
32
32
  export default meta;
33
33
 
34
- const Template: ComponentStory< typeof TextareaControl > = ( {
34
+ const Template: StoryFn< typeof TextareaControl > = ( {
35
35
  onChange,
36
36
  ...args
37
37
  } ) => {
@@ -49,9 +49,7 @@ const Template: ComponentStory< typeof TextareaControl > = ( {
49
49
  );
50
50
  };
51
51
 
52
- export const Default: ComponentStory< typeof TextareaControl > = Template.bind(
53
- {}
54
- );
52
+ export const Default: StoryFn< typeof TextareaControl > = Template.bind( {} );
55
53
  Default.args = {
56
54
  label: 'Text',
57
55
  help: 'Enter some text',
@@ -18,7 +18,6 @@ import { useCx } from '../utils';
18
18
  * Multiple `Theme` components can be nested in order to override specific theme variables.
19
19
  *
20
20
  *
21
- * @example
22
21
  * ```jsx
23
22
  * const Example = () => {
24
23
  * return (
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import type { ComponentMeta, ComponentStory } from '@storybook/react';
4
+ import type { Meta, StoryFn } from '@storybook/react';
5
5
 
6
6
  /**
7
7
  * Internal dependencies
@@ -11,7 +11,7 @@ import Button from '../../button';
11
11
  import { generateThemeVariables, checkContrasts } from '../color-algorithms';
12
12
  import { HStack } from '../../h-stack';
13
13
 
14
- const meta: ComponentMeta< typeof Theme > = {
14
+ const meta: Meta< typeof Theme > = {
15
15
  component: Theme,
16
16
  title: 'Components (Experimental)/Theme',
17
17
  argTypes: {
@@ -25,7 +25,7 @@ const meta: ComponentMeta< typeof Theme > = {
25
25
  };
26
26
  export default meta;
27
27
 
28
- const Template: ComponentStory< typeof Theme > = ( args ) => (
28
+ const Template: StoryFn< typeof Theme > = ( args ) => (
29
29
  <Theme { ...args }>
30
30
  <Button variant="primary">Hello</Button>
31
31
  </Theme>
@@ -34,7 +34,7 @@ const Template: ComponentStory< typeof Theme > = ( args ) => (
34
34
  export const Default = Template.bind( {} );
35
35
  Default.args = {};
36
36
 
37
- export const Nested: ComponentStory< typeof Theme > = ( args ) => (
37
+ export const Nested: StoryFn< typeof Theme > = ( args ) => (
38
38
  <Theme accent="tomato">
39
39
  <Button variant="primary">Outer theme (hardcoded)</Button>
40
40
 
@@ -52,7 +52,7 @@ Nested.args = {
52
52
  /**
53
53
  * The rest of the required colors are generated based on the given accent and background colors.
54
54
  */
55
- export const ColorScheme: ComponentStory< typeof Theme > = ( {
55
+ export const ColorScheme: StoryFn< typeof Theme > = ( {
56
56
  accent,
57
57
  background,
58
58
  } ) => {
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import type { ComponentMeta, ComponentStory } from '@storybook/react';
4
+ import type { Meta, StoryFn } from '@storybook/react';
5
5
 
6
6
  /**
7
7
  * Internal dependencies
8
8
  */
9
9
  import Tip from '..';
10
10
 
11
- const meta: ComponentMeta< typeof Tip > = {
11
+ const meta: Meta< typeof Tip > = {
12
12
  component: Tip,
13
13
  title: 'Components/Tip',
14
14
  argTypes: {
@@ -23,11 +23,11 @@ const meta: ComponentMeta< typeof Tip > = {
23
23
  };
24
24
  export default meta;
25
25
 
26
- const Template: ComponentStory< typeof Tip > = ( args ) => {
26
+ const Template: StoryFn< typeof Tip > = ( args ) => {
27
27
  return <Tip { ...args } />;
28
28
  };
29
29
 
30
- export const Default: ComponentStory< typeof Tip > = Template.bind( {} );
30
+ export const Default: StoryFn< typeof Tip > = Template.bind( {} );
31
31
  Default.args = {
32
32
  children: 'An example tip',
33
33
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import type { ComponentMeta, ComponentStory } from '@storybook/react';
4
+ import type { Meta, StoryFn } from '@storybook/react';
5
5
 
6
6
  /**
7
7
  * WordPress dependencies
@@ -13,7 +13,7 @@ import { useState } from '@wordpress/element';
13
13
  */
14
14
  import ToggleControl from '..';
15
15
 
16
- const meta: ComponentMeta< typeof ToggleControl > = {
16
+ const meta: Meta< typeof ToggleControl > = {
17
17
  title: 'Components/ToggleControl',
18
18
  component: ToggleControl,
19
19
  argTypes: {
@@ -29,7 +29,7 @@ const meta: ComponentMeta< typeof ToggleControl > = {
29
29
  };
30
30
  export default meta;
31
31
 
32
- const Template: ComponentStory< typeof ToggleControl > = ( {
32
+ const Template: StoryFn< typeof ToggleControl > = ( {
33
33
  onChange,
34
34
  ...props
35
35
  } ) => {