@wordpress/components 28.13.1-next.082ed6819.0 → 28.14.1-next.cd6172eb0.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 (405) hide show
  1. package/CHANGELOG.md +46 -2
  2. package/CONTRIBUTING.md +16 -16
  3. package/build/angle-picker-control/index.js +1 -1
  4. package/build/angle-picker-control/index.js.map +1 -1
  5. package/build/autocomplete/index.js +0 -1
  6. package/build/autocomplete/index.js.map +1 -1
  7. package/build/border-box-control/border-box-control-split-controls/component.js +1 -1
  8. package/build/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  9. package/build/border-control/border-control/component.js +2 -0
  10. package/build/border-control/border-control/component.js.map +1 -1
  11. package/build/box-control/all-input-control.js +1 -0
  12. package/build/box-control/all-input-control.js.map +1 -1
  13. package/build/box-control/axial-input-controls.js +1 -0
  14. package/build/box-control/axial-input-controls.js.map +1 -1
  15. package/build/box-control/index.js +22 -15
  16. package/build/box-control/index.js.map +1 -1
  17. package/build/box-control/input-controls.js +1 -0
  18. package/build/box-control/input-controls.js.map +1 -1
  19. package/build/box-control/types.js.map +1 -1
  20. package/build/circular-option-picker/circular-option-picker-actions.js +1 -0
  21. package/build/circular-option-picker/circular-option-picker-actions.js.map +1 -1
  22. package/build/circular-option-picker/circular-option-picker-option.js +1 -0
  23. package/build/circular-option-picker/circular-option-picker-option.js.map +1 -1
  24. package/build/clipboard-button/index.js +5 -3
  25. package/build/clipboard-button/index.js.map +1 -1
  26. package/build/color-palette/index.native.js +0 -1
  27. package/build/color-palette/index.native.js.map +1 -1
  28. package/build/color-picker/input-with-slider.js +2 -2
  29. package/build/color-picker/input-with-slider.js.map +1 -1
  30. package/build/composite/item.js +0 -9
  31. package/build/composite/item.js.map +1 -1
  32. package/build/context/context-connect.js +0 -1
  33. package/build/context/context-connect.js.map +1 -1
  34. package/build/custom-gradient-picker/gradient-bar/control-points.js +2 -0
  35. package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  36. package/build/custom-gradient-picker/index.js +2 -0
  37. package/build/custom-gradient-picker/index.js.map +1 -1
  38. package/build/custom-gradient-picker/types.js.map +1 -1
  39. package/build/custom-select-control/index.js +8 -0
  40. package/build/custom-select-control/index.js.map +1 -1
  41. package/build/custom-select-control/types.js.map +1 -1
  42. package/build/drop-zone/index.js +19 -13
  43. package/build/drop-zone/index.js.map +1 -1
  44. package/build/drop-zone/types.js.map +1 -1
  45. package/build/dropdown-menu/index.js +1 -0
  46. package/build/dropdown-menu/index.js.map +1 -1
  47. package/build/duotone-picker/color-list-picker/index.js +9 -14
  48. package/build/duotone-picker/color-list-picker/index.js.map +1 -1
  49. package/build/external-link/index.js +0 -1
  50. package/build/external-link/index.js.map +1 -1
  51. package/build/font-size-picker/font-size-picker-select.js +1 -0
  52. package/build/font-size-picker/font-size-picker-select.js.map +1 -1
  53. package/build/font-size-picker/index.js +1 -0
  54. package/build/font-size-picker/index.js.map +1 -1
  55. package/build/form-file-upload/index.js +11 -1
  56. package/build/form-file-upload/index.js.map +1 -1
  57. package/build/form-file-upload/types.js.map +1 -1
  58. package/build/form-token-field/index.js +6 -1
  59. package/build/form-token-field/index.js.map +1 -1
  60. package/build/gradient-picker/index.js +2 -0
  61. package/build/gradient-picker/index.js.map +1 -1
  62. package/build/gradient-picker/types.js.map +1 -1
  63. package/build/icon/index.js +9 -0
  64. package/build/icon/index.js.map +1 -1
  65. package/build/menu/checkbox-item.js +5 -9
  66. package/build/menu/checkbox-item.js.map +1 -1
  67. package/build/menu/group-label.js +4 -1
  68. package/build/menu/group-label.js.map +1 -1
  69. package/build/menu/group.js +4 -1
  70. package/build/menu/group.js.map +1 -1
  71. package/build/menu/item-help-text.js +5 -0
  72. package/build/menu/item-help-text.js.map +1 -1
  73. package/build/menu/item-label.js +5 -0
  74. package/build/menu/item-label.js.map +1 -1
  75. package/build/menu/item.js +4 -8
  76. package/build/menu/item.js.map +1 -1
  77. package/build/menu/radio-item.js +5 -9
  78. package/build/menu/radio-item.js.map +1 -1
  79. package/build/menu/separator.js +5 -2
  80. package/build/menu/separator.js.map +1 -1
  81. package/build/modal/aria-helper.js +0 -1
  82. package/build/modal/aria-helper.js.map +1 -1
  83. package/build/modal/index.js +0 -1
  84. package/build/modal/index.js.map +1 -1
  85. package/build/number-control/index.js +8 -0
  86. package/build/number-control/index.js.map +1 -1
  87. package/build/number-control/types.js.map +1 -1
  88. package/build/range-control/index.js +2 -1
  89. package/build/range-control/index.js.map +1 -1
  90. package/build/resizable-box/index.js +9 -1
  91. package/build/resizable-box/index.js.map +1 -1
  92. package/build/slot-fill/bubbles-virtually/fill.js +8 -12
  93. package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
  94. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js +6 -10
  95. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  96. package/build/slot-fill/bubbles-virtually/slot.js +4 -10
  97. package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
  98. package/build/slot-fill/types.js.map +1 -1
  99. package/build/style-provider/index.js +0 -1
  100. package/build/style-provider/index.js.map +1 -1
  101. package/build/tabs/tab.js +0 -17
  102. package/build/tabs/tab.js.map +1 -1
  103. package/build/toolbar/toolbar-button/index.js +2 -0
  104. package/build/toolbar/toolbar-button/index.js.map +1 -1
  105. package/build/tools-panel/tools-panel/component.js +2 -0
  106. package/build/tools-panel/tools-panel/component.js.map +1 -1
  107. package/build/unit-control/index.js +10 -1
  108. package/build/unit-control/index.js.map +1 -1
  109. package/build/unit-control/types.js.map +1 -1
  110. package/build-module/angle-picker-control/index.js +1 -1
  111. package/build-module/angle-picker-control/index.js.map +1 -1
  112. package/build-module/autocomplete/index.js +0 -1
  113. package/build-module/autocomplete/index.js.map +1 -1
  114. package/build-module/border-box-control/border-box-control-split-controls/component.js +1 -1
  115. package/build-module/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  116. package/build-module/border-control/border-control/component.js +2 -0
  117. package/build-module/border-control/border-control/component.js.map +1 -1
  118. package/build-module/box-control/all-input-control.js +1 -0
  119. package/build-module/box-control/all-input-control.js.map +1 -1
  120. package/build-module/box-control/axial-input-controls.js +1 -0
  121. package/build-module/box-control/axial-input-controls.js.map +1 -1
  122. package/build-module/box-control/index.js +22 -15
  123. package/build-module/box-control/index.js.map +1 -1
  124. package/build-module/box-control/input-controls.js +1 -0
  125. package/build-module/box-control/input-controls.js.map +1 -1
  126. package/build-module/box-control/types.js.map +1 -1
  127. package/build-module/circular-option-picker/circular-option-picker-actions.js +1 -0
  128. package/build-module/circular-option-picker/circular-option-picker-actions.js.map +1 -1
  129. package/build-module/circular-option-picker/circular-option-picker-option.js +1 -0
  130. package/build-module/circular-option-picker/circular-option-picker-option.js.map +1 -1
  131. package/build-module/clipboard-button/index.js +5 -3
  132. package/build-module/clipboard-button/index.js.map +1 -1
  133. package/build-module/color-palette/index.native.js +0 -1
  134. package/build-module/color-palette/index.native.js.map +1 -1
  135. package/build-module/color-picker/input-with-slider.js +2 -2
  136. package/build-module/color-picker/input-with-slider.js.map +1 -1
  137. package/build-module/composite/item.js +0 -9
  138. package/build-module/composite/item.js.map +1 -1
  139. package/build-module/context/context-connect.js +0 -1
  140. package/build-module/context/context-connect.js.map +1 -1
  141. package/build-module/custom-gradient-picker/gradient-bar/control-points.js +2 -0
  142. package/build-module/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  143. package/build-module/custom-gradient-picker/index.js +2 -0
  144. package/build-module/custom-gradient-picker/index.js.map +1 -1
  145. package/build-module/custom-gradient-picker/types.js.map +1 -1
  146. package/build-module/custom-select-control/index.js +8 -0
  147. package/build-module/custom-select-control/index.js.map +1 -1
  148. package/build-module/custom-select-control/types.js.map +1 -1
  149. package/build-module/drop-zone/index.js +19 -13
  150. package/build-module/drop-zone/index.js.map +1 -1
  151. package/build-module/drop-zone/types.js.map +1 -1
  152. package/build-module/dropdown-menu/index.js +1 -0
  153. package/build-module/dropdown-menu/index.js.map +1 -1
  154. package/build-module/duotone-picker/color-list-picker/index.js +10 -15
  155. package/build-module/duotone-picker/color-list-picker/index.js.map +1 -1
  156. package/build-module/external-link/index.js +0 -1
  157. package/build-module/external-link/index.js.map +1 -1
  158. package/build-module/font-size-picker/font-size-picker-select.js +1 -0
  159. package/build-module/font-size-picker/font-size-picker-select.js.map +1 -1
  160. package/build-module/font-size-picker/index.js +1 -0
  161. package/build-module/font-size-picker/index.js.map +1 -1
  162. package/build-module/form-file-upload/index.js +13 -2
  163. package/build-module/form-file-upload/index.js.map +1 -1
  164. package/build-module/form-file-upload/types.js.map +1 -1
  165. package/build-module/form-token-field/index.js +6 -1
  166. package/build-module/form-token-field/index.js.map +1 -1
  167. package/build-module/gradient-picker/index.js +2 -0
  168. package/build-module/gradient-picker/index.js.map +1 -1
  169. package/build-module/gradient-picker/types.js.map +1 -1
  170. package/build-module/icon/index.js +9 -0
  171. package/build-module/icon/index.js.map +1 -1
  172. package/build-module/menu/checkbox-item.js +5 -9
  173. package/build-module/menu/checkbox-item.js.map +1 -1
  174. package/build-module/menu/group-label.js +4 -1
  175. package/build-module/menu/group-label.js.map +1 -1
  176. package/build-module/menu/group.js +4 -1
  177. package/build-module/menu/group.js.map +1 -1
  178. package/build-module/menu/item-help-text.js +6 -1
  179. package/build-module/menu/item-help-text.js.map +1 -1
  180. package/build-module/menu/item-label.js +6 -1
  181. package/build-module/menu/item-label.js.map +1 -1
  182. package/build-module/menu/item.js +4 -8
  183. package/build-module/menu/item.js.map +1 -1
  184. package/build-module/menu/radio-item.js +5 -9
  185. package/build-module/menu/radio-item.js.map +1 -1
  186. package/build-module/menu/separator.js +5 -2
  187. package/build-module/menu/separator.js.map +1 -1
  188. package/build-module/modal/aria-helper.js +0 -1
  189. package/build-module/modal/aria-helper.js.map +1 -1
  190. package/build-module/modal/index.js +0 -1
  191. package/build-module/modal/index.js.map +1 -1
  192. package/build-module/number-control/index.js +8 -0
  193. package/build-module/number-control/index.js.map +1 -1
  194. package/build-module/number-control/types.js.map +1 -1
  195. package/build-module/range-control/index.js +2 -1
  196. package/build-module/range-control/index.js.map +1 -1
  197. package/build-module/resizable-box/index.js +9 -1
  198. package/build-module/resizable-box/index.js.map +1 -1
  199. package/build-module/slot-fill/bubbles-virtually/fill.js +9 -13
  200. package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
  201. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js +6 -10
  202. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  203. package/build-module/slot-fill/bubbles-virtually/slot.js +4 -10
  204. package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
  205. package/build-module/slot-fill/types.js.map +1 -1
  206. package/build-module/style-provider/index.js +0 -1
  207. package/build-module/style-provider/index.js.map +1 -1
  208. package/build-module/tabs/tab.js +0 -15
  209. package/build-module/tabs/tab.js.map +1 -1
  210. package/build-module/toolbar/toolbar-button/index.js +2 -0
  211. package/build-module/toolbar/toolbar-button/index.js.map +1 -1
  212. package/build-module/tools-panel/tools-panel/component.js +2 -0
  213. package/build-module/tools-panel/tools-panel/component.js.map +1 -1
  214. package/build-module/unit-control/index.js +10 -1
  215. package/build-module/unit-control/index.js.map +1 -1
  216. package/build-module/unit-control/types.js.map +1 -1
  217. package/build-style/style-rtl.css +12 -8
  218. package/build-style/style.css +12 -8
  219. package/build-types/border-control/border-control/component.d.ts.map +1 -1
  220. package/build-types/box-control/all-input-control.d.ts.map +1 -1
  221. package/build-types/box-control/axial-input-controls.d.ts.map +1 -1
  222. package/build-types/box-control/index.d.ts +14 -13
  223. package/build-types/box-control/index.d.ts.map +1 -1
  224. package/build-types/box-control/input-controls.d.ts.map +1 -1
  225. package/build-types/box-control/stories/index.story.d.ts +42 -6
  226. package/build-types/box-control/stories/index.story.d.ts.map +1 -1
  227. package/build-types/box-control/styles/box-control-styles.d.ts +3 -2
  228. package/build-types/box-control/styles/box-control-styles.d.ts.map +1 -1
  229. package/build-types/box-control/types.d.ts +16 -2
  230. package/build-types/box-control/types.d.ts.map +1 -1
  231. package/build-types/circular-option-picker/circular-option-picker-actions.d.ts.map +1 -1
  232. package/build-types/circular-option-picker/circular-option-picker-option.d.ts.map +1 -1
  233. package/build-types/clipboard-button/index.d.ts.map +1 -1
  234. package/build-types/color-picker/styles.d.ts +3 -2
  235. package/build-types/color-picker/styles.d.ts.map +1 -1
  236. package/build-types/composite/item.d.ts.map +1 -1
  237. package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -1
  238. package/build-types/custom-gradient-picker/index.d.ts +1 -1
  239. package/build-types/custom-gradient-picker/index.d.ts.map +1 -1
  240. package/build-types/custom-gradient-picker/types.d.ts +6 -0
  241. package/build-types/custom-gradient-picker/types.d.ts.map +1 -1
  242. package/build-types/custom-select-control/index.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/types.d.ts +7 -0
  245. package/build-types/custom-select-control/types.d.ts.map +1 -1
  246. package/build-types/date-time/time/styles.d.ts +8 -4
  247. package/build-types/date-time/time/styles.d.ts.map +1 -1
  248. package/build-types/drop-zone/index.d.ts +1 -1
  249. package/build-types/drop-zone/index.d.ts.map +1 -1
  250. package/build-types/drop-zone/types.d.ts +5 -0
  251. package/build-types/drop-zone/types.d.ts.map +1 -1
  252. package/build-types/dropdown-menu/index.d.ts.map +1 -1
  253. package/build-types/duotone-picker/color-list-picker/index.d.ts.map +1 -1
  254. package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts +2 -1
  255. package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts.map +1 -1
  256. package/build-types/font-size-picker/font-size-picker-select.d.ts.map +1 -1
  257. package/build-types/font-size-picker/index.d.ts.map +1 -1
  258. package/build-types/form-file-upload/index.d.ts +2 -1
  259. package/build-types/form-file-upload/index.d.ts.map +1 -1
  260. package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
  261. package/build-types/form-file-upload/types.d.ts +10 -8
  262. package/build-types/form-file-upload/types.d.ts.map +1 -1
  263. package/build-types/form-token-field/index.d.ts.map +1 -1
  264. package/build-types/form-token-field/stories/index.story.d.ts.map +1 -1
  265. package/build-types/gradient-picker/index.d.ts +1 -1
  266. package/build-types/gradient-picker/index.d.ts.map +1 -1
  267. package/build-types/gradient-picker/types.d.ts +6 -0
  268. package/build-types/gradient-picker/types.d.ts.map +1 -1
  269. package/build-types/icon/index.d.ts +23 -7
  270. package/build-types/icon/index.d.ts.map +1 -1
  271. package/build-types/icon/stories/index.story.d.ts +7 -1
  272. package/build-types/icon/stories/index.story.d.ts.map +1 -1
  273. package/build-types/lock-unlock.d.ts +2 -2
  274. package/build-types/menu/checkbox-item.d.ts.map +1 -1
  275. package/build-types/menu/group-label.d.ts.map +1 -1
  276. package/build-types/menu/group.d.ts.map +1 -1
  277. package/build-types/menu/index.d.ts.map +1 -1
  278. package/build-types/menu/item-help-text.d.ts.map +1 -1
  279. package/build-types/menu/item-label.d.ts.map +1 -1
  280. package/build-types/menu/item.d.ts.map +1 -1
  281. package/build-types/menu/radio-item.d.ts.map +1 -1
  282. package/build-types/menu/separator.d.ts.map +1 -1
  283. package/build-types/number-control/index.d.ts +2 -1
  284. package/build-types/number-control/index.d.ts.map +1 -1
  285. package/build-types/number-control/stories/index.story.d.ts +2 -1
  286. package/build-types/number-control/stories/index.story.d.ts.map +1 -1
  287. package/build-types/number-control/types.d.ts +7 -0
  288. package/build-types/number-control/types.d.ts.map +1 -1
  289. package/build-types/range-control/index.d.ts +1 -1
  290. package/build-types/range-control/index.d.ts.map +1 -1
  291. package/build-types/range-control/styles/range-control-styles.d.ts +2 -1
  292. package/build-types/range-control/styles/range-control-styles.d.ts.map +1 -1
  293. package/build-types/resizable-box/index.d.ts.map +1 -1
  294. package/build-types/slot-fill/bubbles-virtually/fill.d.ts.map +1 -1
  295. package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts.map +1 -1
  296. package/build-types/slot-fill/bubbles-virtually/slot.d.ts.map +1 -1
  297. package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts +1 -1
  298. package/build-types/slot-fill/types.d.ts +4 -3
  299. package/build-types/slot-fill/types.d.ts.map +1 -1
  300. package/build-types/tabs/tab.d.ts +3 -0
  301. package/build-types/tabs/tab.d.ts.map +1 -1
  302. package/build-types/toolbar/toolbar-button/index.d.ts.map +1 -1
  303. package/build-types/tools-panel/stories/index.story.d.ts.map +1 -1
  304. package/build-types/tools-panel/tools-panel/component.d.ts +2 -0
  305. package/build-types/tools-panel/tools-panel/component.d.ts.map +1 -1
  306. package/build-types/unit-control/index.d.ts +3 -2
  307. package/build-types/unit-control/index.d.ts.map +1 -1
  308. package/build-types/unit-control/stories/index.story.d.ts.map +1 -1
  309. package/build-types/unit-control/styles/unit-control-styles.d.ts +2 -1
  310. package/build-types/unit-control/styles/unit-control-styles.d.ts.map +1 -1
  311. package/build-types/unit-control/types.d.ts +7 -0
  312. package/build-types/unit-control/types.d.ts.map +1 -1
  313. package/package.json +20 -20
  314. package/src/angle-picker-control/index.tsx +1 -1
  315. package/src/border-box-control/border-box-control-split-controls/component.tsx +1 -1
  316. package/src/border-control/border-control/component.tsx +2 -0
  317. package/src/box-control/README.md +80 -60
  318. package/src/box-control/all-input-control.tsx +1 -0
  319. package/src/box-control/axial-input-controls.tsx +1 -0
  320. package/src/box-control/docs-manifest.json +5 -0
  321. package/src/box-control/index.tsx +23 -15
  322. package/src/box-control/input-controls.tsx +1 -0
  323. package/src/box-control/stories/index.story.tsx +1 -0
  324. package/src/box-control/test/index.tsx +33 -26
  325. package/src/box-control/types.ts +71 -54
  326. package/src/circular-option-picker/circular-option-picker-actions.tsx +1 -0
  327. package/src/circular-option-picker/circular-option-picker-option.tsx +1 -0
  328. package/src/circular-option-picker/style.scss +2 -2
  329. package/src/clipboard-button/index.tsx +5 -3
  330. package/src/color-picker/input-with-slider.tsx +1 -1
  331. package/src/composite/item.tsx +1 -19
  332. package/src/custom-gradient-picker/gradient-bar/control-points.tsx +2 -0
  333. package/src/custom-gradient-picker/index.tsx +2 -0
  334. package/src/custom-gradient-picker/style.scss +1 -1
  335. package/src/custom-gradient-picker/types.ts +6 -0
  336. package/src/custom-select-control/README.md +2 -0
  337. package/src/custom-select-control/index.tsx +9 -0
  338. package/src/custom-select-control/stories/index.story.tsx +1 -0
  339. package/src/custom-select-control/test/index.tsx +13 -9
  340. package/src/custom-select-control/types.ts +7 -0
  341. package/src/drop-zone/index.tsx +21 -24
  342. package/src/drop-zone/types.ts +5 -0
  343. package/src/dropdown-menu/index.tsx +1 -0
  344. package/src/dropdown-menu/style.scss +1 -1
  345. package/src/duotone-picker/color-list-picker/index.tsx +8 -8
  346. package/src/duotone-picker/color-list-picker/style.scss +0 -6
  347. package/src/font-size-picker/font-size-picker-select.tsx +1 -0
  348. package/src/font-size-picker/index.tsx +1 -0
  349. package/src/form-file-upload/README.md +58 -48
  350. package/src/form-file-upload/docs-manifest.json +5 -0
  351. package/src/form-file-upload/index.tsx +12 -1
  352. package/src/form-file-upload/stories/index.story.tsx +1 -0
  353. package/src/form-file-upload/test/index.tsx +5 -1
  354. package/src/form-file-upload/types.ts +10 -8
  355. package/src/form-token-field/README.md +1 -0
  356. package/src/form-token-field/index.tsx +7 -0
  357. package/src/form-token-field/stories/index.story.tsx +2 -0
  358. package/src/form-token-field/test/index.tsx +5 -1
  359. package/src/gradient-picker/README.md +8 -0
  360. package/src/gradient-picker/index.tsx +2 -0
  361. package/src/gradient-picker/types.ts +6 -0
  362. package/src/icon/README.md +22 -65
  363. package/src/icon/docs-manifest.json +5 -0
  364. package/src/icon/index.tsx +28 -13
  365. package/src/icon/stories/index.story.tsx +50 -8
  366. package/src/menu/checkbox-item.tsx +9 -7
  367. package/src/menu/group-label.tsx +8 -1
  368. package/src/menu/group.tsx +8 -1
  369. package/src/menu/item-help-text.tsx +10 -1
  370. package/src/menu/item-label.tsx +10 -1
  371. package/src/menu/item.tsx +8 -6
  372. package/src/menu/radio-item.tsx +9 -7
  373. package/src/menu/separator.tsx +9 -2
  374. package/src/menu-items-choice/style.scss +1 -0
  375. package/src/number-control/README.md +2 -1
  376. package/src/number-control/index.tsx +9 -0
  377. package/src/number-control/stories/index.story.tsx +1 -0
  378. package/src/number-control/test/index.tsx +5 -1
  379. package/src/number-control/types.ts +7 -0
  380. package/src/range-control/index.tsx +1 -0
  381. package/src/resizable-box/index.tsx +10 -0
  382. package/src/resizable-box/style.scss +8 -0
  383. package/src/slot-fill/bubbles-virtually/fill.tsx +7 -11
  384. package/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx +2 -13
  385. package/src/slot-fill/bubbles-virtually/slot.tsx +4 -7
  386. package/src/slot-fill/types.ts +4 -3
  387. package/src/tabs/tab.tsx +0 -18
  388. package/src/tabs/test/index.tsx +1492 -947
  389. package/src/toolbar/toolbar-button/index.tsx +2 -0
  390. package/src/tools-panel/stories/index.story.tsx +12 -0
  391. package/src/tools-panel/tools-panel/README.md +4 -0
  392. package/src/tools-panel/tools-panel/component.tsx +2 -0
  393. package/src/unit-control/README.md +3 -3
  394. package/src/unit-control/index.tsx +11 -1
  395. package/src/unit-control/stories/index.story.tsx +1 -0
  396. package/src/unit-control/test/index.tsx +5 -1
  397. package/src/unit-control/types.ts +7 -0
  398. package/tsconfig.tsbuildinfo +1 -1
  399. package/build/menu/use-temporary-focus-visible-fix.js +0 -27
  400. package/build/menu/use-temporary-focus-visible-fix.js.map +0 -1
  401. package/build-module/menu/use-temporary-focus-visible-fix.js +0 -20
  402. package/build-module/menu/use-temporary-focus-visible-fix.js.map +0 -1
  403. package/build-types/menu/use-temporary-focus-visible-fix.d.ts +0 -8
  404. package/build-types/menu/use-temporary-focus-visible-fix.d.ts.map +0 -1
  405. package/src/menu/use-temporary-focus-visible-fix.ts +0 -22
@@ -1,5 +1,6 @@
1
1
  .components-menu-items-choice,
2
2
  .components-menu-items-choice.components-button {
3
+ min-height: $button-size-next-default-40px;
3
4
  height: auto;
4
5
 
5
6
  svg {
@@ -16,6 +16,7 @@ const Example = () => {
16
16
 
17
17
  return (
18
18
  <NumberControl
19
+ __next40pxDefaultSize
19
20
  isShiftStepEnabled={ true }
20
21
  onChange={ setValue }
21
22
  shiftStep={ 10 }
@@ -146,4 +147,4 @@ Start opting into the larger default height that will become the default size in
146
147
 
147
148
  - Type: `Boolean`
148
149
  - Required: No
149
- - Default: `false`
150
+ - Default: `false`
@@ -26,6 +26,7 @@ import { HStack } from '../h-stack';
26
26
  import { Spacer } from '../spacer';
27
27
  import { useCx } from '../utils';
28
28
  import { useDeprecated36pxDefaultSizeProp } from '../utils/use-deprecated-props';
29
+ import { maybeWarnDeprecated36pxSize } from '../utils/deprecated-36px-size';
29
30
 
30
31
  const noop = () => {};
31
32
 
@@ -53,9 +54,17 @@ function UnforwardedNumberControl(
53
54
  size = 'default',
54
55
  suffix,
55
56
  onChange = noop,
57
+ __shouldNotWarnDeprecated36pxSize,
56
58
  ...restProps
57
59
  } = useDeprecated36pxDefaultSizeProp< NumberControlProps >( props );
58
60
 
61
+ maybeWarnDeprecated36pxSize( {
62
+ componentName: 'NumberControl',
63
+ size,
64
+ __next40pxDefaultSize: restProps.__next40pxDefaultSize,
65
+ __shouldNotWarnDeprecated36pxSize,
66
+ } );
67
+
59
68
  if ( hideHTMLArrows ) {
60
69
  deprecated( 'wp.components.NumberControl hideHTMLArrows prop ', {
61
70
  alternative: 'spinControls="none"',
@@ -62,4 +62,5 @@ const Template: StoryFn< typeof NumberControl > = ( {
62
62
  export const Default = Template.bind( {} );
63
63
  Default.args = {
64
64
  label: 'Value',
65
+ __next40pxDefaultSize: true,
65
66
  };
@@ -12,9 +12,13 @@ import { useState } from '@wordpress/element';
12
12
  /**
13
13
  * Internal dependencies
14
14
  */
15
- import NumberControl from '..';
15
+ import _NumberControl from '..';
16
16
  import type { NumberControlProps } from '../types';
17
17
 
18
+ const NumberControl = (
19
+ props: React.ComponentProps< typeof _NumberControl >
20
+ ) => <_NumberControl __next40pxDefaultSize { ...props } />;
21
+
18
22
  function StatefulNumberControl( props: NumberControlProps ) {
19
23
  const [ value, setValue ] = useState( props.value );
20
24
  const handleOnChange = ( v: string | undefined ) => setValue( v );
@@ -91,4 +91,11 @@ export type NumberControlProps = Omit<
91
91
  * The value of the input.
92
92
  */
93
93
  value?: number | string;
94
+ /**
95
+ * Do not throw a warning for the deprecated 36px default size.
96
+ * For internal components of other components that already throw the warning.
97
+ *
98
+ * @ignore
99
+ */
100
+ __shouldNotWarnDeprecated36pxSize?: boolean;
94
101
  };
@@ -350,6 +350,7 @@ function UnforwardedRangeControl(
350
350
  step={ step }
351
351
  // @ts-expect-error TODO: Investigate if the `null` value is necessary
352
352
  value={ inputSliderValue }
353
+ __shouldNotWarnDeprecated36pxSize
353
354
  />
354
355
  ) }
355
356
  { allowReset && (
@@ -112,6 +112,16 @@ function UnforwardedResizableBox(
112
112
  showHandle && 'has-show-handle',
113
113
  className
114
114
  ) }
115
+ // Add a focusable element within the drag handle. Unfortunately,
116
+ // `re-resizable` does not make them properly focusable by default,
117
+ // causing focus to move the the block wrapper which triggers block
118
+ // drag.
119
+ handleComponent={ Object.fromEntries(
120
+ Object.keys( HANDLE_CLASSES ).map( ( key ) => [
121
+ key,
122
+ <div key={ key } tabIndex={ -1 } />,
123
+ ] )
124
+ ) }
115
125
  handleClasses={ HANDLE_CLASSES }
116
126
  handleStyles={ HANDLE_STYLES }
117
127
  ref={ ref }
@@ -15,6 +15,14 @@ $resize-handler-container-size: $resize-handler-size + ($grid-unit-05 * 2); // M
15
15
  .components-resizable-box__container.has-show-handle & {
16
16
  display: block;
17
17
  }
18
+
19
+ > div {
20
+ position: relative;
21
+ width: 100%;
22
+ height: 100%;
23
+ z-index: z-index(".components-resizable-box__handle");
24
+ outline: none;
25
+ }
18
26
  }
19
27
 
20
28
  // Make the image inside the resize to get the full width
@@ -4,7 +4,6 @@
4
4
  import { useObservableValue } from '@wordpress/compose';
5
5
  import {
6
6
  useContext,
7
- useReducer,
8
7
  useRef,
9
8
  useEffect,
10
9
  createPortal,
@@ -20,18 +19,15 @@ import type { FillComponentProps } from '../types';
20
19
  export default function Fill( { name, children }: FillComponentProps ) {
21
20
  const registry = useContext( SlotFillContext );
22
21
  const slot = useObservableValue( registry.slots, name );
23
- const [ , rerender ] = useReducer( () => [], [] );
24
- const ref = useRef( { rerender } );
22
+ const instanceRef = useRef( {} );
25
23
 
24
+ // We register fills so we can keep track of their existence.
25
+ // Slots can use the `useSlotFills` hook to know if there're already fills
26
+ // registered so they can choose to render themselves or not.
26
27
  useEffect( () => {
27
- // We register fills so we can keep track of their existence.
28
- // Some Slot implementations need to know if there're already fills
29
- // registered so they can choose to render themselves or not.
30
- const refValue = ref.current;
31
- registry.registerFill( name, refValue );
32
- return () => {
33
- registry.unregisterFill( name, refValue );
34
- };
28
+ const instance = instanceRef.current;
29
+ registry.registerFill( name, instance );
30
+ return () => registry.unregisterFill( name, instance );
35
31
  }, [ registry, name ] );
36
32
 
37
33
  if ( ! slot || ! slot.ref.current ) {
@@ -23,13 +23,7 @@ function createSlotRegistry(): SlotFillBubblesVirtuallyContext {
23
23
  ref,
24
24
  fillProps
25
25
  ) => {
26
- const slot = slots.get( name );
27
-
28
- slots.set( name, {
29
- ...slot,
30
- ref: ref || slot?.ref,
31
- fillProps: fillProps || slot?.fillProps || {},
32
- } );
26
+ slots.set( name, { ref, fillProps } );
33
27
  };
34
28
 
35
29
  const unregisterSlot: SlotFillBubblesVirtuallyContext[ 'unregisterSlot' ] =
@@ -66,12 +60,7 @@ function createSlotRegistry(): SlotFillBubblesVirtuallyContext {
66
60
  return;
67
61
  }
68
62
 
69
- slot.fillProps = fillProps;
70
- const slotFills = fills.get( name );
71
- if ( slotFills ) {
72
- // Force update fills.
73
- slotFills.forEach( ( fill ) => fill.rerender() );
74
- }
63
+ slots.set( name, { ref, fillProps } );
75
64
  };
76
65
 
77
66
  const registerFill: SlotFillBubblesVirtuallyContext[ 'registerFill' ] = (
@@ -39,8 +39,7 @@ function Slot(
39
39
  ...restProps
40
40
  } = props;
41
41
 
42
- const { registerSlot, unregisterSlot, ...registry } =
43
- useContext( SlotFillContext );
42
+ const registry = useContext( SlotFillContext );
44
43
 
45
44
  const ref = useRef< HTMLElement >( null );
46
45
 
@@ -54,11 +53,9 @@ function Slot(
54
53
  }, [ fillProps ] );
55
54
 
56
55
  useLayoutEffect( () => {
57
- registerSlot( name, ref, fillPropsRef.current );
58
- return () => {
59
- unregisterSlot( name, ref );
60
- };
61
- }, [ registerSlot, unregisterSlot, name ] );
56
+ registry.registerSlot( name, ref, fillPropsRef.current );
57
+ return () => registry.unregisterSlot( name, ref );
58
+ }, [ registry, name ] );
62
59
 
63
60
  useLayoutEffect( () => {
64
61
  registry.updateSlot( name, ref, fillPropsRef.current );
@@ -110,15 +110,16 @@ export type SlotFillProviderProps = {
110
110
 
111
111
  export type SlotRef = RefObject< HTMLElement >;
112
112
  export type Rerenderable = { rerender: () => void };
113
+ export type FillInstance = {};
113
114
 
114
115
  export type SlotFillBubblesVirtuallyContext = {
115
116
  slots: ObservableMap< SlotKey, { ref: SlotRef; fillProps: FillProps } >;
116
- fills: ObservableMap< SlotKey, Rerenderable[] >;
117
+ fills: ObservableMap< SlotKey, FillInstance[] >;
117
118
  registerSlot: ( name: SlotKey, ref: SlotRef, fillProps: FillProps ) => void;
118
119
  unregisterSlot: ( name: SlotKey, ref: SlotRef ) => void;
119
120
  updateSlot: ( name: SlotKey, ref: SlotRef, fillProps: FillProps ) => void;
120
- registerFill: ( name: SlotKey, ref: Rerenderable ) => void;
121
- unregisterFill: ( name: SlotKey, ref: Rerenderable ) => void;
121
+ registerFill: ( name: SlotKey, instance: FillInstance ) => void;
122
+ unregisterFill: ( name: SlotKey, instance: FillInstance ) => void;
122
123
 
123
124
  /**
124
125
  * This helps the provider know if it's using the default context value or not.
package/src/tabs/tab.tsx CHANGED
@@ -1,8 +1,3 @@
1
- /**
2
- * External dependencies
3
- */
4
- import * as Ariakit from '@ariakit/react';
5
-
6
1
  /**
7
2
  * WordPress dependencies
8
3
  */
@@ -29,18 +24,6 @@ export const Tab = forwardRef<
29
24
  >( function Tab( { children, tabId, disabled, render, ...otherProps }, ref ) {
30
25
  const { store, instanceId } = useTabsContext() ?? {};
31
26
 
32
- // If the active item is not connected, the tablist may end up in a state
33
- // where none of the tabs are tabbable. In this case, we force all tabs to
34
- // be tabbable, so that as soon as an item received focus, it becomes active
35
- // and Tablist goes back to working as expected.
36
- // eslint-disable-next-line @wordpress/no-unused-vars-before-return
37
- const tabbable = Ariakit.useStoreState( store, ( state ) => {
38
- return (
39
- state?.activeId !== null &&
40
- ! store?.item( state?.activeId )?.element?.isConnected
41
- );
42
- } );
43
-
44
27
  if ( ! store ) {
45
28
  warning( '`Tabs.Tab` must be wrapped in a `Tabs` component.' );
46
29
  return null;
@@ -55,7 +38,6 @@ export const Tab = forwardRef<
55
38
  id={ instancedTabId }
56
39
  disabled={ disabled }
57
40
  render={ render }
58
- tabbable={ tabbable }
59
41
  { ...otherProps }
60
42
  >
61
43
  <StyledTabChildren>{ children }</StyledTabChildren>