@wordpress/components 28.12.0 → 28.13.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 (442) hide show
  1. package/CHANGELOG.md +45 -1
  2. package/CONTRIBUTING.md +16 -16
  3. package/build/autocomplete/autocompleter-ui.js +1 -0
  4. package/build/autocomplete/autocompleter-ui.js.map +1 -1
  5. package/build/border-box-control/border-box-control/component.js +1 -0
  6. package/build/border-box-control/border-box-control/component.js.map +1 -1
  7. package/build/border-box-control/border-box-control-split-controls/component.js +2 -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 -1
  10. package/build/border-control/border-control/component.js.map +1 -1
  11. package/build/border-control/border-control/hook.js +3 -1
  12. package/build/border-control/border-control/hook.js.map +1 -1
  13. package/build/border-control/types.js.map +1 -1
  14. package/build/box-control/all-input-control.js +1 -0
  15. package/build/box-control/all-input-control.js.map +1 -1
  16. package/build/box-control/axial-input-controls.js +1 -0
  17. package/build/box-control/axial-input-controls.js.map +1 -1
  18. package/build/box-control/index.js +13 -13
  19. package/build/box-control/index.js.map +1 -1
  20. package/build/box-control/input-controls.js +1 -0
  21. package/build/box-control/input-controls.js.map +1 -1
  22. package/build/box-control/types.js.map +1 -1
  23. package/build/circular-option-picker/circular-option-picker-actions.js +1 -0
  24. package/build/circular-option-picker/circular-option-picker-actions.js.map +1 -1
  25. package/build/circular-option-picker/circular-option-picker-option.js +1 -0
  26. package/build/circular-option-picker/circular-option-picker-option.js.map +1 -1
  27. package/build/color-palette/index.js +2 -0
  28. package/build/color-palette/index.js.map +1 -1
  29. package/build/color-picker/color-copy-button.js +6 -4
  30. package/build/color-picker/color-copy-button.js.map +1 -1
  31. package/build/color-picker/component.js +1 -0
  32. package/build/color-picker/component.js.map +1 -1
  33. package/build/color-picker/styles.js +21 -28
  34. package/build/color-picker/styles.js.map +1 -1
  35. package/build/combobox-control/index.js +17 -12
  36. package/build/combobox-control/index.js.map +1 -1
  37. package/build/composite/hover.js +1 -1
  38. package/build/composite/hover.js.map +1 -1
  39. package/build/composite/typeahead.js +1 -1
  40. package/build/composite/typeahead.js.map +1 -1
  41. package/build/custom-gradient-picker/gradient-bar/control-points.js +2 -0
  42. package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  43. package/build/dashicon/types.js.map +1 -1
  44. package/build/dimension-control/index.js +7 -0
  45. package/build/dimension-control/index.js.map +1 -1
  46. package/build/disabled/index.js +8 -1
  47. package/build/disabled/index.js.map +1 -1
  48. package/build/duotone-picker/duotone-picker.js +2 -0
  49. package/build/duotone-picker/duotone-picker.js.map +1 -1
  50. package/build/font-size-picker/font-size-picker-toggle-group.js +1 -0
  51. package/build/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  52. package/build/font-size-picker/index.js +7 -0
  53. package/build/font-size-picker/index.js.map +1 -1
  54. package/build/form-file-upload/index.js +3 -1
  55. package/build/form-file-upload/index.js.map +1 -1
  56. package/build/gradient-picker/index.js +34 -32
  57. package/build/gradient-picker/index.js.map +1 -1
  58. package/build/gradient-picker/types.js.map +1 -1
  59. package/build/icon/index.js +9 -0
  60. package/build/icon/index.js.map +1 -1
  61. package/build/menu/styles.js +16 -16
  62. package/build/menu/styles.js.map +1 -1
  63. package/build/modal/index.js +2 -2
  64. package/build/modal/index.js.map +1 -1
  65. package/build/private-apis.js +0 -2
  66. package/build/private-apis.js.map +1 -1
  67. package/build/range-control/index.js +11 -0
  68. package/build/range-control/index.js.map +1 -1
  69. package/build/range-control/types.js.map +1 -1
  70. package/build/slot-fill/bubbles-virtually/fill.js +14 -31
  71. package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
  72. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js +13 -4
  73. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  74. package/build/slot-fill/bubbles-virtually/slot.js +11 -9
  75. package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
  76. package/build/slot-fill/bubbles-virtually/use-slot.js +1 -8
  77. package/build/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
  78. package/build/slot-fill/fill.js +7 -24
  79. package/build/slot-fill/fill.js.map +1 -1
  80. package/build/slot-fill/index.js +5 -10
  81. package/build/slot-fill/index.js.map +1 -1
  82. package/build/slot-fill/provider.js +2 -2
  83. package/build/slot-fill/provider.js.map +1 -1
  84. package/build/slot-fill/slot.js +37 -77
  85. package/build/slot-fill/slot.js.map +1 -1
  86. package/build/slot-fill/types.js.map +1 -1
  87. package/build/text-control/index.js +7 -0
  88. package/build/text-control/index.js.map +1 -1
  89. package/build/toggle-group-control/toggle-group-control/component.js +9 -0
  90. package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
  91. package/build/toggle-group-control/toggle-group-control-option/component.js +1 -0
  92. package/build/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  93. package/build/toggle-group-control/toggle-group-control-option-icon/component.js +1 -1
  94. package/build/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  95. package/build/toggle-group-control/types.js.map +1 -1
  96. package/build/utils/deprecated-36px-size.js +3 -2
  97. package/build/utils/deprecated-36px-size.js.map +1 -1
  98. package/build-module/autocomplete/autocompleter-ui.js +1 -0
  99. package/build-module/autocomplete/autocompleter-ui.js.map +1 -1
  100. package/build-module/border-box-control/border-box-control/component.js +1 -0
  101. package/build-module/border-box-control/border-box-control/component.js.map +1 -1
  102. package/build-module/border-box-control/border-box-control-split-controls/component.js +2 -1
  103. package/build-module/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  104. package/build-module/border-control/border-control/component.js +2 -1
  105. package/build-module/border-control/border-control/component.js.map +1 -1
  106. package/build-module/border-control/border-control/hook.js +3 -1
  107. package/build-module/border-control/border-control/hook.js.map +1 -1
  108. package/build-module/border-control/types.js.map +1 -1
  109. package/build-module/box-control/all-input-control.js +1 -0
  110. package/build-module/box-control/all-input-control.js.map +1 -1
  111. package/build-module/box-control/axial-input-controls.js +1 -0
  112. package/build-module/box-control/axial-input-controls.js.map +1 -1
  113. package/build-module/box-control/index.js +13 -13
  114. package/build-module/box-control/index.js.map +1 -1
  115. package/build-module/box-control/input-controls.js +1 -0
  116. package/build-module/box-control/input-controls.js.map +1 -1
  117. package/build-module/box-control/types.js.map +1 -1
  118. package/build-module/circular-option-picker/circular-option-picker-actions.js +1 -0
  119. package/build-module/circular-option-picker/circular-option-picker-actions.js.map +1 -1
  120. package/build-module/circular-option-picker/circular-option-picker-option.js +1 -0
  121. package/build-module/circular-option-picker/circular-option-picker-option.js.map +1 -1
  122. package/build-module/color-palette/index.js +2 -0
  123. package/build-module/color-palette/index.js.map +1 -1
  124. package/build-module/color-picker/color-copy-button.js +6 -4
  125. package/build-module/color-picker/color-copy-button.js.map +1 -1
  126. package/build-module/color-picker/component.js +1 -0
  127. package/build-module/color-picker/component.js.map +1 -1
  128. package/build-module/color-picker/styles.js +20 -27
  129. package/build-module/color-picker/styles.js.map +1 -1
  130. package/build-module/combobox-control/index.js +18 -13
  131. package/build-module/combobox-control/index.js.map +1 -1
  132. package/build-module/composite/hover.js +1 -1
  133. package/build-module/composite/hover.js.map +1 -1
  134. package/build-module/composite/typeahead.js +1 -1
  135. package/build-module/composite/typeahead.js.map +1 -1
  136. package/build-module/custom-gradient-picker/gradient-bar/control-points.js +2 -0
  137. package/build-module/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  138. package/build-module/dashicon/types.js.map +1 -1
  139. package/build-module/dimension-control/index.js +7 -0
  140. package/build-module/dimension-control/index.js.map +1 -1
  141. package/build-module/disabled/index.js +8 -1
  142. package/build-module/disabled/index.js.map +1 -1
  143. package/build-module/duotone-picker/duotone-picker.js +2 -0
  144. package/build-module/duotone-picker/duotone-picker.js.map +1 -1
  145. package/build-module/font-size-picker/font-size-picker-toggle-group.js +1 -0
  146. package/build-module/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  147. package/build-module/font-size-picker/index.js +7 -0
  148. package/build-module/font-size-picker/index.js.map +1 -1
  149. package/build-module/form-file-upload/index.js +3 -1
  150. package/build-module/form-file-upload/index.js.map +1 -1
  151. package/build-module/gradient-picker/index.js +34 -32
  152. package/build-module/gradient-picker/index.js.map +1 -1
  153. package/build-module/gradient-picker/types.js.map +1 -1
  154. package/build-module/icon/index.js +9 -0
  155. package/build-module/icon/index.js.map +1 -1
  156. package/build-module/menu/styles.js +16 -16
  157. package/build-module/menu/styles.js.map +1 -1
  158. package/build-module/modal/index.js +2 -2
  159. package/build-module/modal/index.js.map +1 -1
  160. package/build-module/private-apis.js +0 -2
  161. package/build-module/private-apis.js.map +1 -1
  162. package/build-module/range-control/index.js +11 -0
  163. package/build-module/range-control/index.js.map +1 -1
  164. package/build-module/range-control/types.js.map +1 -1
  165. package/build-module/slot-fill/bubbles-virtually/fill.js +15 -32
  166. package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
  167. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js +13 -4
  168. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  169. package/build-module/slot-fill/bubbles-virtually/slot.js +11 -9
  170. package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
  171. package/build-module/slot-fill/bubbles-virtually/use-slot.js +2 -9
  172. package/build-module/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
  173. package/build-module/slot-fill/fill.js +7 -24
  174. package/build-module/slot-fill/fill.js.map +1 -1
  175. package/build-module/slot-fill/index.js +5 -8
  176. package/build-module/slot-fill/index.js.map +1 -1
  177. package/build-module/slot-fill/provider.js +2 -3
  178. package/build-module/slot-fill/provider.js.map +1 -1
  179. package/build-module/slot-fill/slot.js +38 -78
  180. package/build-module/slot-fill/slot.js.map +1 -1
  181. package/build-module/slot-fill/types.js.map +1 -1
  182. package/build-module/text-control/index.js +7 -0
  183. package/build-module/text-control/index.js.map +1 -1
  184. package/build-module/toggle-group-control/toggle-group-control/component.js +9 -0
  185. package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
  186. package/build-module/toggle-group-control/toggle-group-control-option/component.js +1 -0
  187. package/build-module/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  188. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js +1 -1
  189. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  190. package/build-module/toggle-group-control/types.js.map +1 -1
  191. package/build-module/utils/deprecated-36px-size.js +3 -2
  192. package/build-module/utils/deprecated-36px-size.js.map +1 -1
  193. package/build-style/style-rtl.css +3 -10
  194. package/build-style/style.css +3 -10
  195. package/build-types/autocomplete/autocompleter-ui.d.ts.map +1 -1
  196. package/build-types/base-control/stories/index.story.d.ts.map +1 -1
  197. package/build-types/border-box-control/border-box-control/component.d.ts.map +1 -1
  198. package/build-types/border-box-control/border-box-control-split-controls/component.d.ts.map +1 -1
  199. package/build-types/border-control/border-control/component.d.ts +1 -0
  200. package/build-types/border-control/border-control/component.d.ts.map +1 -1
  201. package/build-types/border-control/border-control/hook.d.ts.map +1 -1
  202. package/build-types/border-control/border-control-dropdown/component.d.ts.map +1 -1
  203. package/build-types/border-control/border-control-style-picker/component.d.ts.map +1 -1
  204. package/build-types/border-control/stories/index.story.d.ts +10 -5
  205. package/build-types/border-control/stories/index.story.d.ts.map +1 -1
  206. package/build-types/border-control/types.d.ts +7 -0
  207. package/build-types/border-control/types.d.ts.map +1 -1
  208. package/build-types/box-control/all-input-control.d.ts.map +1 -1
  209. package/build-types/box-control/axial-input-controls.d.ts.map +1 -1
  210. package/build-types/box-control/index.d.ts +13 -13
  211. package/build-types/box-control/input-controls.d.ts.map +1 -1
  212. package/build-types/box-control/styles/box-control-styles.d.ts +2 -1
  213. package/build-types/box-control/styles/box-control-styles.d.ts.map +1 -1
  214. package/build-types/box-control/types.d.ts +2 -0
  215. package/build-types/box-control/types.d.ts.map +1 -1
  216. package/build-types/checkbox-control/stories/index.story.d.ts.map +1 -1
  217. package/build-types/circular-option-picker/circular-option-picker-actions.d.ts.map +1 -1
  218. package/build-types/circular-option-picker/circular-option-picker-option.d.ts.map +1 -1
  219. package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
  220. package/build-types/color-indicator/stories/index.story.d.ts.map +1 -1
  221. package/build-types/color-palette/index.d.ts.map +1 -1
  222. package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
  223. package/build-types/color-picker/color-copy-button.d.ts.map +1 -1
  224. package/build-types/color-picker/component.d.ts.map +1 -1
  225. package/build-types/color-picker/stories/index.story.d.ts.map +1 -1
  226. package/build-types/color-picker/styles.d.ts +2 -4
  227. package/build-types/color-picker/styles.d.ts.map +1 -1
  228. package/build-types/combobox-control/index.d.ts +1 -0
  229. package/build-types/combobox-control/index.d.ts.map +1 -1
  230. package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
  231. package/build-types/composite/typeahead.d.ts.map +1 -1
  232. package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -1
  233. package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
  234. package/build-types/custom-select-control/stories/index.story.d.ts.map +1 -1
  235. package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +1 -1
  236. package/build-types/dashicon/types.d.ts +1 -1
  237. package/build-types/dashicon/types.d.ts.map +1 -1
  238. package/build-types/date-time/stories/date-time.story.d.ts.map +1 -1
  239. package/build-types/date-time/stories/date.story.d.ts.map +1 -1
  240. package/build-types/date-time/stories/time.story.d.ts.map +1 -1
  241. package/build-types/dimension-control/index.d.ts +1 -0
  242. package/build-types/dimension-control/index.d.ts.map +1 -1
  243. package/build-types/disabled/index.d.ts +8 -1
  244. package/build-types/disabled/index.d.ts.map +1 -1
  245. package/build-types/disabled/stories/index.story.d.ts.map +1 -1
  246. package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
  247. package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
  248. package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -1
  249. package/build-types/font-size-picker/font-size-picker-toggle-group.d.ts.map +1 -1
  250. package/build-types/font-size-picker/index.d.ts.map +1 -1
  251. package/build-types/font-size-picker/stories/index.story.d.ts.map +1 -1
  252. package/build-types/form-file-upload/index.d.ts.map +1 -1
  253. package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
  254. package/build-types/form-token-field/stories/index.story.d.ts.map +1 -1
  255. package/build-types/gradient-picker/index.d.ts +32 -32
  256. package/build-types/gradient-picker/index.d.ts.map +1 -1
  257. package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
  258. package/build-types/gradient-picker/types.d.ts +1 -5
  259. package/build-types/gradient-picker/types.d.ts.map +1 -1
  260. package/build-types/h-stack/stories/index.story.d.ts.map +1 -1
  261. package/build-types/icon/index.d.ts +23 -7
  262. package/build-types/icon/index.d.ts.map +1 -1
  263. package/build-types/icon/stories/index.story.d.ts +7 -1
  264. package/build-types/icon/stories/index.story.d.ts.map +1 -1
  265. package/build-types/input-control/stories/index.story.d.ts.map +1 -1
  266. package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
  267. package/build-types/menu-item/stories/index.story.d.ts.map +1 -1
  268. package/build-types/menu-items-choice/stories/index.story.d.ts.map +1 -1
  269. package/build-types/number-control/stories/index.story.d.ts.map +1 -1
  270. package/build-types/placeholder/stories/index.story.d.ts.map +1 -1
  271. package/build-types/private-apis.d.ts.map +1 -1
  272. package/build-types/radio-control/stories/index.story.d.ts.map +1 -1
  273. package/build-types/range-control/index.d.ts +3 -1
  274. package/build-types/range-control/index.d.ts.map +1 -1
  275. package/build-types/range-control/stories/index.story.d.ts.map +1 -1
  276. package/build-types/range-control/types.d.ts +7 -0
  277. package/build-types/range-control/types.d.ts.map +1 -1
  278. package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -1
  279. package/build-types/search-control/stories/index.story.d.ts.map +1 -1
  280. package/build-types/select-control/stories/index.story.d.ts.map +1 -1
  281. package/build-types/slot-fill/bubbles-virtually/fill.d.ts +1 -1
  282. package/build-types/slot-fill/bubbles-virtually/fill.d.ts.map +1 -1
  283. package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts.map +1 -1
  284. package/build-types/slot-fill/bubbles-virtually/slot.d.ts.map +1 -1
  285. package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts +1 -1
  286. package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts.map +1 -1
  287. package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts +3 -7
  288. package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts.map +1 -1
  289. package/build-types/slot-fill/fill.d.ts.map +1 -1
  290. package/build-types/slot-fill/index.d.ts +5 -12
  291. package/build-types/slot-fill/index.d.ts.map +1 -1
  292. package/build-types/slot-fill/provider.d.ts.map +1 -1
  293. package/build-types/slot-fill/slot.d.ts +1 -1
  294. package/build-types/slot-fill/slot.d.ts.map +1 -1
  295. package/build-types/slot-fill/types.d.ts +15 -18
  296. package/build-types/slot-fill/types.d.ts.map +1 -1
  297. package/build-types/slot-fill/use-slot.d.ts +1 -1
  298. package/build-types/slot-fill/use-slot.d.ts.map +1 -1
  299. package/build-types/text-control/index.d.ts +1 -0
  300. package/build-types/text-control/index.d.ts.map +1 -1
  301. package/build-types/text-control/stories/index.story.d.ts.map +1 -1
  302. package/build-types/textarea-control/stories/index.story.d.ts.map +1 -1
  303. package/build-types/toggle-control/stories/index.story.d.ts.map +1 -1
  304. package/build-types/toggle-group-control/stories/index.story.d.ts.map +1 -1
  305. package/build-types/toggle-group-control/toggle-group-control/component.d.ts +2 -0
  306. package/build-types/toggle-group-control/toggle-group-control/component.d.ts.map +1 -1
  307. package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts +1 -0
  308. package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts.map +1 -1
  309. package/build-types/toggle-group-control/toggle-group-control-option-icon/component.d.ts +1 -1
  310. package/build-types/toggle-group-control/types.d.ts +7 -0
  311. package/build-types/toggle-group-control/types.d.ts.map +1 -1
  312. package/build-types/tools-panel/stories/index.story.d.ts.map +1 -1
  313. package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
  314. package/build-types/unit-control/stories/index.story.d.ts.map +1 -1
  315. package/build-types/utils/deprecated-36px-size.d.ts +2 -1
  316. package/build-types/utils/deprecated-36px-size.d.ts.map +1 -1
  317. package/build-types/v-stack/stories/index.story.d.ts.map +1 -1
  318. package/package.json +2 -2
  319. package/src/autocomplete/autocompleter-ui.tsx +1 -0
  320. package/src/base-control/stories/index.story.tsx +2 -1
  321. package/src/border-box-control/border-box-control/component.tsx +1 -0
  322. package/src/border-box-control/border-box-control-split-controls/component.tsx +1 -0
  323. package/src/border-control/border-control/component.tsx +1 -0
  324. package/src/border-control/border-control/hook.ts +2 -0
  325. package/src/border-control/types.ts +7 -0
  326. package/src/box-control/README.md +79 -60
  327. package/src/box-control/all-input-control.tsx +1 -0
  328. package/src/box-control/axial-input-controls.tsx +1 -0
  329. package/src/box-control/docs-manifest.json +5 -0
  330. package/src/box-control/index.tsx +13 -13
  331. package/src/box-control/input-controls.tsx +1 -0
  332. package/src/box-control/types.ts +2 -0
  333. package/src/checkbox-control/stories/index.story.tsx +2 -1
  334. package/src/circular-option-picker/circular-option-picker-actions.tsx +1 -0
  335. package/src/circular-option-picker/circular-option-picker-option.tsx +1 -0
  336. package/src/circular-option-picker/stories/index.story.tsx +2 -1
  337. package/src/circular-option-picker/style.scss +2 -2
  338. package/src/color-indicator/stories/index.story.tsx +2 -1
  339. package/src/color-palette/index.tsx +5 -1
  340. package/src/color-palette/stories/index.story.tsx +2 -1
  341. package/src/color-picker/color-copy-button.tsx +8 -10
  342. package/src/color-picker/component.tsx +1 -0
  343. package/src/color-picker/stories/index.story.tsx +2 -1
  344. package/src/color-picker/styles.ts +0 -13
  345. package/src/combobox-control/README.md +1 -0
  346. package/src/combobox-control/index.tsx +19 -13
  347. package/src/combobox-control/stories/index.story.tsx +3 -1
  348. package/src/combobox-control/style.scss +0 -6
  349. package/src/combobox-control/test/index.tsx +7 -1
  350. package/src/composite/hover.tsx +1 -1
  351. package/src/composite/typeahead.tsx +3 -1
  352. package/src/custom-gradient-picker/gradient-bar/control-points.tsx +2 -0
  353. package/src/custom-gradient-picker/stories/index.story.tsx +2 -1
  354. package/src/custom-gradient-picker/style.scss +1 -1
  355. package/src/custom-select-control/stories/index.story.tsx +2 -1
  356. package/src/custom-select-control-v2/stories/index.story.tsx +2 -1
  357. package/src/dashicon/types.ts +0 -2
  358. package/src/date-time/stories/date-time.story.tsx +2 -1
  359. package/src/date-time/stories/date.story.tsx +2 -1
  360. package/src/date-time/stories/time.story.tsx +2 -1
  361. package/src/dimension-control/README.md +1 -0
  362. package/src/dimension-control/index.tsx +8 -0
  363. package/src/dimension-control/stories/index.story.tsx +1 -0
  364. package/src/dimension-control/test/__snapshots__/index.test.js.snap +24 -24
  365. package/src/dimension-control/test/index.test.js +7 -1
  366. package/src/disabled/README.md +9 -7
  367. package/src/disabled/index.tsx +8 -1
  368. package/src/disabled/stories/index.story.tsx +1 -0
  369. package/src/drop-zone/stories/index.story.tsx +2 -1
  370. package/src/dropdown-menu/stories/index.story.tsx +2 -1
  371. package/src/duotone-picker/duotone-picker.tsx +2 -0
  372. package/src/font-size-picker/README.md +1 -0
  373. package/src/font-size-picker/font-size-picker-toggle-group.tsx +1 -0
  374. package/src/font-size-picker/index.tsx +8 -0
  375. package/src/font-size-picker/stories/index.story.tsx +1 -0
  376. package/src/font-size-picker/test/index.tsx +5 -1
  377. package/src/form-file-upload/index.tsx +9 -3
  378. package/src/form-file-upload/stories/index.story.tsx +2 -1
  379. package/src/form-token-field/stories/index.story.tsx +2 -1
  380. package/src/gradient-picker/README.md +107 -69
  381. package/src/gradient-picker/docs-manifest.json +5 -0
  382. package/src/gradient-picker/index.tsx +34 -32
  383. package/src/gradient-picker/stories/index.story.tsx +2 -1
  384. package/src/gradient-picker/types.ts +3 -5
  385. package/src/h-stack/stories/index.story.tsx +2 -1
  386. package/src/higher-order/with-constrained-tabbing/README.md +13 -3
  387. package/src/higher-order/with-focus-return/README.md +9 -2
  388. package/src/icon/README.md +22 -65
  389. package/src/icon/docs-manifest.json +5 -0
  390. package/src/icon/index.tsx +28 -13
  391. package/src/icon/stories/index.story.tsx +50 -8
  392. package/src/input-control/stories/index.story.tsx +2 -1
  393. package/src/menu/styles.ts +1 -1
  394. package/src/menu-group/stories/index.story.tsx +2 -1
  395. package/src/menu-item/stories/index.story.tsx +2 -1
  396. package/src/menu-items-choice/stories/index.story.tsx +2 -1
  397. package/src/modal/index.tsx +2 -2
  398. package/src/modal/stories/index.story.tsx +1 -1
  399. package/src/number-control/stories/index.story.tsx +2 -1
  400. package/src/placeholder/stories/index.story.tsx +1 -0
  401. package/src/private-apis.ts +0 -2
  402. package/src/radio-control/stories/index.story.tsx +2 -1
  403. package/src/range-control/README.md +4 -3
  404. package/src/range-control/index.tsx +11 -0
  405. package/src/range-control/stories/index.story.tsx +9 -1
  406. package/src/range-control/test/index.tsx +7 -1
  407. package/src/range-control/types.ts +7 -0
  408. package/src/responsive-wrapper/stories/index.story.tsx +2 -1
  409. package/src/search-control/stories/index.story.tsx +2 -1
  410. package/src/select-control/stories/index.story.tsx +2 -1
  411. package/src/slot-fill/README.md +26 -15
  412. package/src/slot-fill/bubbles-virtually/fill.tsx +18 -28
  413. package/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx +26 -16
  414. package/src/slot-fill/bubbles-virtually/slot.tsx +13 -9
  415. package/src/slot-fill/bubbles-virtually/use-slot.ts +3 -26
  416. package/src/slot-fill/fill.ts +7 -22
  417. package/src/slot-fill/index.tsx +5 -7
  418. package/src/slot-fill/provider.tsx +8 -17
  419. package/src/slot-fill/slot.tsx +48 -85
  420. package/src/slot-fill/types.ts +14 -51
  421. package/src/text-control/README.md +1 -0
  422. package/src/text-control/index.tsx +8 -0
  423. package/src/text-control/stories/index.story.tsx +3 -1
  424. package/src/text-control/test/text-control.tsx +7 -1
  425. package/src/textarea-control/stories/index.story.tsx +2 -1
  426. package/src/toggle-control/stories/index.story.tsx +2 -1
  427. package/src/toggle-group-control/stories/index.story.tsx +3 -1
  428. package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +12 -12
  429. package/src/toggle-group-control/test/index.tsx +7 -1
  430. package/src/toggle-group-control/toggle-group-control/README.md +2 -1
  431. package/src/toggle-group-control/toggle-group-control/component.tsx +10 -0
  432. package/src/toggle-group-control/toggle-group-control-option/README.md +1 -1
  433. package/src/toggle-group-control/toggle-group-control-option/component.tsx +1 -0
  434. package/src/toggle-group-control/toggle-group-control-option-icon/README.md +1 -1
  435. package/src/toggle-group-control/toggle-group-control-option-icon/component.tsx +1 -1
  436. package/src/toggle-group-control/types.ts +7 -0
  437. package/src/tools-panel/stories/index.story.tsx +3 -0
  438. package/src/tree-select/stories/index.story.tsx +2 -1
  439. package/src/unit-control/stories/index.story.tsx +2 -1
  440. package/src/utils/deprecated-36px-size.ts +3 -0
  441. package/src/v-stack/stories/index.story.tsx +2 -1
  442. package/tsconfig.tsbuildinfo +1 -1
@@ -1,106 +1,125 @@
1
1
  # BoxControl
2
2
 
3
- A control that lets users set values for top, right, bottom, and left. Can be used as an input control for values like `padding` or `margin`.
3
+ <!-- This file is generated automatically and cannot be edited directly. Make edits via TypeScript types and TSDocs. -->
4
4
 
5
- ## Usage
5
+ <p class="callout callout-info">See the <a href="https://wordpress.github.io/gutenberg/?path=/docs/components-boxcontrol--docs">WordPress Storybook</a> for more detailed, interactive documentation.</p>
6
+
7
+ A control that lets users set values for top, right, bottom, and left. Can be
8
+ used as an input control for values like `padding` or `margin`.
6
9
 
7
10
  ```jsx
8
11
  import { useState } from 'react';
9
12
  import { BoxControl } from '@wordpress/components';
10
13
 
11
14
  function Example() {
12
- const [ values, setValues ] = useState( {
13
- top: '50px',
14
- left: '10%',
15
- right: '10%',
16
- bottom: '50px',
17
- } );
18
-
19
- return (
20
- <BoxControl
21
- values={ values }
22
- onChange={ ( nextValues ) => setValues( nextValues ) }
23
- />
24
- );
25
- }
15
+ const [ values, setValues ] = useState( {
16
+ top: '50px',
17
+ left: '10%',
18
+ right: '10%',
19
+ bottom: '50px',
20
+ } );
21
+
22
+ return (
23
+ <BoxControl
24
+ values={ values }
25
+ onChange={ setValues }
26
+ />
27
+ );
28
+ };
26
29
  ```
27
-
28
30
  ## Props
29
31
 
30
- ### `allowReset`: `boolean`
32
+ ### `__next40pxDefaultSize`
33
+
34
+ Start opting into the larger default height that will become the default size in a future version.
35
+
36
+ - Type: `boolean`
37
+ - Required: No
38
+ - Default: `false`
39
+
40
+ ### `allowReset`
31
41
 
32
42
  If this property is true, a button to reset the box control is rendered.
33
43
 
34
- - Required: No
35
- - Default: `true`
44
+ - Type: `boolean`
45
+ - Required: No
46
+ - Default: `true`
36
47
 
37
- ### `splitOnAxis`: `boolean`
48
+ ### `id`
38
49
 
39
- If this property is true, when the box control is unlinked, vertical and horizontal controls can be used instead of updating individual sides.
50
+ The id to use as a base for the unique HTML id attribute of the control.
40
51
 
41
- - Required: No
42
- - Default: `false`
52
+ - Type: `string`
53
+ - Required: No
43
54
 
44
- ### `inputProps`: `object`
55
+ ### `inputProps`
45
56
 
46
- Props for the internal [UnitControl](../unit-control) components.
57
+ Props for the internal `UnitControl` components.
47
58
 
48
- - Required: No
49
- - Default: `{ min: 0 }`
59
+ - Type: `UnitControlPassthroughProps`
60
+ - Required: No
61
+ - Default: `{
62
+ min: 0,
63
+ }`
50
64
 
51
- ### `label`: `string`
65
+ ### `label`
52
66
 
53
67
  Heading label for the control.
54
68
 
55
- - Required: No
56
- - Default: `__( 'Box Control' )`
69
+ - Type: `string`
70
+ - Required: No
71
+ - Default: `__( 'Box Control' )`
57
72
 
58
- ### `onChange`: `(next: BoxControlValue) => void`
73
+ ### `onChange`
59
74
 
60
75
  A callback function when an input value changes.
61
76
 
62
- - Required: Yes
77
+ - Type: `(next: BoxControlValue) => void`
78
+ - Required: No
79
+ - Default: `() => {}`
63
80
 
64
- ### `resetValues`: `object`
81
+ ### `resetValues`
65
82
 
66
83
  The `top`, `right`, `bottom`, and `left` box dimension values to use when the control is reset.
67
84
 
68
- - Required: No
69
- - Default: `{ top: undefined, right: undefined, bottom: undefined, left: undefined }`
70
-
71
- ### `sides`: `string[]`
72
-
73
- Collection of sides to allow control of. If omitted or empty, all sides will be available. Allowed values are "top", "right", "bottom", "left", "vertical", and "horizontal".
74
-
75
- - Required: No
76
-
77
- ### `units`: `WPUnitControlUnit[]`
78
-
79
- Collection of available units which are compatible with [UnitControl](../unit-control).
85
+ - Type: `BoxControlValue`
86
+ - Required: No
87
+ - Default: `{
88
+ top: undefined,
89
+ right: undefined,
90
+ bottom: undefined,
91
+ left: undefined,
92
+ }`
80
93
 
81
- - Required: No
94
+ ### `sides`
82
95
 
83
- ### `values`: `object`
96
+ Collection of sides to allow control of. If omitted or empty, all sides will be available.
84
97
 
85
- The `top`, `right`, `bottom`, and `left` box dimension values.
98
+ Allowed values are "top", "right", "bottom", "left", "vertical", and "horizontal".
86
99
 
87
- - Required: No
100
+ - Type: `readonly (keyof BoxControlValue | "horizontal" | "vertical")[]`
101
+ - Required: No
88
102
 
89
- ### `onMouseOver`: `function`
103
+ ### `splitOnAxis`
90
104
 
91
- A handler for onMouseOver events.
105
+ If this property is true, when the box control is unlinked, vertical and horizontal controls
106
+ can be used instead of updating individual sides.
92
107
 
93
- - Required: No
108
+ - Type: `boolean`
109
+ - Required: No
110
+ - Default: `false`
94
111
 
95
- ### `onMouseOut`: `function`
112
+ ### `units`
96
113
 
97
- A handler for onMouseOut events.
114
+ Available units to select from.
98
115
 
99
- - Required: No
116
+ - Type: `WPUnitControlUnit[]`
117
+ - Required: No
118
+ - Default: `CSS_UNITS`
100
119
 
101
- ### `__next40pxDefaultSize`: `boolean`
120
+ ### `values`
102
121
 
103
- Start opting into the larger default size that will become the default size in a future version.
122
+ The current values of the control, expressed as an object of `top`, `right`, `bottom`, and `left` values.
104
123
 
105
- - Required: No
106
- - Default: `false`
124
+ - Type: `BoxControlValue`
125
+ - Required: No
@@ -91,6 +91,7 @@ export default function AllInputControl( {
91
91
  <FlexedRangeControl
92
92
  __nextHasNoMarginBottom
93
93
  __next40pxDefaultSize={ __next40pxDefaultSize }
94
+ __shouldNotWarnDeprecated36pxSize
94
95
  aria-controls={ inputId }
95
96
  label={ LABELS.all }
96
97
  hideLabelFromVision
@@ -129,6 +129,7 @@ export default function AxialInputControls( {
129
129
  <FlexedRangeControl
130
130
  __nextHasNoMarginBottom
131
131
  __next40pxDefaultSize={ __next40pxDefaultSize }
132
+ __shouldNotWarnDeprecated36pxSize
132
133
  aria-controls={ inputId }
133
134
  label={ LABELS[ side ] }
134
135
  hideLabelFromVision
@@ -0,0 +1,5 @@
1
+ {
2
+ "$schema": "../../schemas/docs-manifest.json",
3
+ "displayName": "BoxControl",
4
+ "filePath": "./index.tsx"
5
+ }
@@ -51,23 +51,23 @@ function useUniqueId( idProp?: string ) {
51
51
  * used as an input control for values like `padding` or `margin`.
52
52
  *
53
53
  * ```jsx
54
+ * import { useState } from 'react';
54
55
  * import { BoxControl } from '@wordpress/components';
55
- * import { useState } from '@wordpress/element';
56
56
  *
57
57
  * function Example() {
58
- * const [ values, setValues ] = useState( {
59
- * top: '50px',
60
- * left: '10%',
61
- * right: '10%',
62
- * bottom: '50px',
63
- * } );
58
+ * const [ values, setValues ] = useState( {
59
+ * top: '50px',
60
+ * left: '10%',
61
+ * right: '10%',
62
+ * bottom: '50px',
63
+ * } );
64
64
  *
65
- * return (
66
- * <BoxControl
67
- * values={ values }
68
- * onChange={ ( nextValues ) => setValues( nextValues ) }
69
- * />
70
- * );
65
+ * return (
66
+ * <BoxControl
67
+ * values={ values }
68
+ * onChange={ setValues }
69
+ * />
70
+ * );
71
71
  * };
72
72
  * ```
73
73
  */
@@ -134,6 +134,7 @@ export default function BoxInputControls( {
134
134
  <FlexedRangeControl
135
135
  __nextHasNoMarginBottom
136
136
  __next40pxDefaultSize={ __next40pxDefaultSize }
137
+ __shouldNotWarnDeprecated36pxSize
137
138
  aria-controls={ inputId }
138
139
  label={ LABELS[ side ] }
139
140
  hideLabelFromVision
@@ -58,6 +58,8 @@ export type BoxControlProps = Pick<
58
58
  resetValues?: BoxControlValue;
59
59
  /**
60
60
  * Collection of sides to allow control of. If omitted or empty, all sides will be available.
61
+ *
62
+ * Allowed values are "top", "right", "bottom", "left", "vertical", and "horizontal".
61
63
  */
62
64
  sides?: readonly ( keyof BoxControlValue | 'horizontal' | 'vertical' )[];
63
65
  /**
@@ -17,7 +17,8 @@ import { HStack } from '../../h-stack';
17
17
 
18
18
  const meta: Meta< typeof CheckboxControl > = {
19
19
  component: CheckboxControl,
20
- title: 'Components/CheckboxControl',
20
+ title: 'Components/Selection & Input/Common/CheckboxControl',
21
+ id: 'components-checkboxcontrol',
21
22
  argTypes: {
22
23
  onChange: {
23
24
  action: 'onChange',
@@ -47,6 +47,7 @@ export function ButtonAction( {
47
47
  }: WordPressComponentProps< ButtonAsButtonProps, 'button', false > ) {
48
48
  return (
49
49
  <Button
50
+ __next40pxDefaultSize
50
51
  className={ clsx(
51
52
  'components-circular-option-picker__clear',
52
53
  className
@@ -94,6 +94,7 @@ export function Option( {
94
94
  const commonProps = {
95
95
  id,
96
96
  className: 'components-circular-option-picker__option',
97
+ __next40pxDefaultSize: true,
97
98
  ...additionalProps,
98
99
  };
99
100
 
@@ -17,7 +17,8 @@ const CircularOptionPickerStoryContext = createContext< {
17
17
  } >( {} );
18
18
 
19
19
  const meta: Meta< typeof CircularOptionPicker > = {
20
- title: 'Components/CircularOptionPicker',
20
+ title: 'Components/Selection & Input/Color/CircularOptionPicker',
21
+ id: 'components-circularoptionpicker',
21
22
  component: CircularOptionPicker,
22
23
  subcomponents: {
23
24
  // @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
@@ -67,8 +67,8 @@ $color-palette-circle-spacing: 12px;
67
67
  .components-circular-option-picker__option {
68
68
  display: inline-block;
69
69
  vertical-align: top;
70
- height: 100%;
71
- width: 100%;
70
+ height: 100% !important;
71
+ aspect-ratio: 1;
72
72
  border: none;
73
73
  border-radius: $radius-round;
74
74
  background: transparent;
@@ -10,7 +10,8 @@ import ColorIndicator from '..';
10
10
 
11
11
  const meta: Meta< typeof ColorIndicator > = {
12
12
  component: ColorIndicator,
13
- title: 'Components/ColorIndicator',
13
+ title: 'Components/Selection & Input/Color/ColorIndicator',
14
+ id: 'components-colorindicator',
14
15
  argTypes: {
15
16
  colorValue: {
16
17
  control: { type: 'color' },
@@ -249,7 +249,11 @@ function UnforwardedColorPalette(
249
249
  };
250
250
 
251
251
  const actions = !! clearable && (
252
- <CircularOptionPicker.ButtonAction onClick={ clearColor }>
252
+ <CircularOptionPicker.ButtonAction
253
+ onClick={ clearColor }
254
+ accessibleWhenDisabled
255
+ disabled={ ! value }
256
+ >
253
257
  { __( 'Clear' ) }
254
258
  </CircularOptionPicker.ButtonAction>
255
259
  );
@@ -14,7 +14,8 @@ import { useState } from '@wordpress/element';
14
14
  import ColorPalette from '..';
15
15
 
16
16
  const meta: Meta< typeof ColorPalette > = {
17
- title: 'Components/ColorPalette',
17
+ title: 'Components/Selection & Input/Color/ColorPalette',
18
+ id: 'components-colorpalette',
18
19
  component: ColorPalette,
19
20
  argTypes: {
20
21
  as: { control: { type: null } },
@@ -9,7 +9,7 @@ import { __ } from '@wordpress/i18n';
9
9
  /**
10
10
  * Internal dependencies
11
11
  */
12
- import { CopyButton } from './styles';
12
+ import { Button } from '../button';
13
13
  import Tooltip from '../tooltip';
14
14
 
15
15
  import type { ColorCopyButtonProps } from './types';
@@ -55,16 +55,14 @@ export const ColorCopyButton = ( props: ColorCopyButtonProps ) => {
55
55
  };
56
56
  }, [] );
57
57
 
58
+ const label =
59
+ copiedColor === color.toHex() ? __( 'Copied!' ) : __( 'Copy' );
60
+
58
61
  return (
59
- <Tooltip
60
- delay={ 0 }
61
- hideOnClick={ false }
62
- text={
63
- copiedColor === color.toHex() ? __( 'Copied!' ) : __( 'Copy' )
64
- }
65
- >
66
- <CopyButton
67
- size="small"
62
+ <Tooltip delay={ 0 } hideOnClick={ false } text={ label }>
63
+ <Button
64
+ size="compact"
65
+ aria-label={ label }
68
66
  ref={ copyRef }
69
67
  icon={ copy }
70
68
  showTooltip={ false }
@@ -87,6 +87,7 @@ const UnconnectedColorPicker = (
87
87
  <AuxiliaryColorArtefactHStackHeader justify="space-between">
88
88
  <SelectControl
89
89
  __nextHasNoMarginBottom
90
+ size="compact"
90
91
  options={ options }
91
92
  value={ colorType }
92
93
  onChange={ ( nextColorType ) =>
@@ -10,7 +10,8 @@ import { ColorPicker } from '../component';
10
10
 
11
11
  const meta: Meta< typeof ColorPicker > = {
12
12
  component: ColorPicker,
13
- title: 'Components/ColorPicker',
13
+ title: 'Components/Selection & Input/Color/ColorPicker',
14
+ id: 'components-colorpicker',
14
15
  argTypes: {
15
16
  as: { control: { type: null } },
16
17
  color: { control: { type: null } },
@@ -11,7 +11,6 @@ import InnerSelectControl from '../select-control';
11
11
  import InnerRangeControl from '../range-control';
12
12
  import { space } from '../utils/space';
13
13
  import { boxSizingReset } from '../utils';
14
- import Button from '../button';
15
14
  import { Flex } from '../flex';
16
15
  import { HStack } from '../h-stack';
17
16
  import CONFIG from '../utils/config-values';
@@ -22,7 +21,6 @@ export const NumberControlWrapper = styled( NumberControl )`
22
21
 
23
22
  export const SelectControl = styled( InnerSelectControl )`
24
23
  margin-left: ${ space( -2 ) };
25
- width: 5em;
26
24
  `;
27
25
 
28
26
  export const RangeControl = styled( InnerRangeControl )`
@@ -101,14 +99,3 @@ export const ColorfulWrapper = styled.div`
101
99
 
102
100
  ${ interactiveHueStyles }
103
101
  `;
104
-
105
- export const CopyButton = styled( Button )`
106
- &&&&& {
107
- min-width: ${ space( 6 ) };
108
- padding: 0;
109
-
110
- > svg {
111
- margin-right: 0;
112
- }
113
- }
114
- `;
@@ -34,6 +34,7 @@ function MyComboboxControl() {
34
34
  const [ filteredOptions, setFilteredOptions ] = useState( options );
35
35
  return (
36
36
  <ComboboxControl
37
+ __next40pxDefaultSize
37
38
  __nextHasNoMarginBottom
38
39
  label="Font Size"
39
40
  value={ fontSize }
@@ -26,7 +26,7 @@ import TokenInput from '../form-token-field/token-input';
26
26
  import SuggestionsList from '../form-token-field/suggestions-list';
27
27
  import BaseControl from '../base-control';
28
28
  import Button from '../button';
29
- import { FlexBlock, FlexItem } from '../flex';
29
+ import { FlexBlock } from '../flex';
30
30
  import withFocusOutside from '../higher-order/with-focus-outside';
31
31
  import { useControlledValue } from '../utils/hooks';
32
32
  import { normalizeTextString } from '../utils/strings';
@@ -34,6 +34,7 @@ import type { ComboboxControlOption, ComboboxControlProps } from './types';
34
34
  import type { TokenInputProps } from '../form-token-field/types';
35
35
  import { useDeprecated36pxDefaultSizeProp } from '../utils/use-deprecated-props';
36
36
  import { withIgnoreIMEEvents } from '../utils/with-ignore-ime-events';
37
+ import { maybeWarnDeprecated36pxSize } from '../utils/deprecated-36px-size';
37
38
 
38
39
  const noop = () => {};
39
40
 
@@ -92,6 +93,7 @@ const getIndexOfMatchingSuggestion = (
92
93
  * const [ filteredOptions, setFilteredOptions ] = useState( options );
93
94
  * return (
94
95
  * <ComboboxControl
96
+ * __next40pxDefaultSize
95
97
  * __nextHasNoMarginBottom
96
98
  * label="Font Size"
97
99
  * value={ fontSize }
@@ -313,6 +315,12 @@ function ComboboxControl( props: ComboboxControlProps ) {
313
315
  }
314
316
  }, [ matchingSuggestions, isExpanded ] );
315
317
 
318
+ maybeWarnDeprecated36pxSize( {
319
+ componentName: 'ComboboxControl',
320
+ __next40pxDefaultSize,
321
+ size: undefined,
322
+ } );
323
+
316
324
  // Disable reason: There is no appropriate role which describes the
317
325
  // input container intended accessible usability.
318
326
  // TODO: Refactor click detection to use blur to stop propagation.
@@ -355,18 +363,16 @@ function ComboboxControl( props: ComboboxControlProps ) {
355
363
  />
356
364
  </FlexBlock>
357
365
  { allowReset && (
358
- <FlexItem>
359
- <Button
360
- className="components-combobox-control__reset"
361
- icon={ closeSmall }
362
- // Disable reason: Focus returns to input field when reset is clicked.
363
- // eslint-disable-next-line no-restricted-syntax
364
- disabled={ ! value }
365
- onClick={ handleOnReset }
366
- onKeyDown={ handleResetStopPropagation }
367
- label={ __( 'Reset' ) }
368
- />
369
- </FlexItem>
366
+ <Button
367
+ size="small"
368
+ icon={ closeSmall }
369
+ // Disable reason: Focus returns to input field when reset is clicked.
370
+ // eslint-disable-next-line no-restricted-syntax
371
+ disabled={ ! value }
372
+ onClick={ handleOnReset }
373
+ onKeyDown={ handleResetStopPropagation }
374
+ label={ __( 'Reset' ) }
375
+ />
370
376
  ) }
371
377
  </InputWrapperFlex>
372
378
  { isExpanded && (
@@ -34,7 +34,8 @@ const countries = [
34
34
  ];
35
35
 
36
36
  const meta: Meta< typeof ComboboxControl > = {
37
- title: 'Components/ComboboxControl',
37
+ title: 'Components/Selection & Input/Common/ComboboxControl',
38
+ id: 'components-comboboxcontrol',
38
39
  component: ComboboxControl,
39
40
  argTypes: {
40
41
  value: { control: { type: null } },
@@ -76,6 +77,7 @@ const Template: StoryFn< typeof ComboboxControl > = ( {
76
77
  };
77
78
  export const Default = Template.bind( {} );
78
79
  Default.args = {
80
+ __next40pxDefaultSize: true,
79
81
  __nextHasNoMarginBottom: true,
80
82
  allowReset: false,
81
83
  label: 'Select a country',
@@ -38,9 +38,3 @@ input.components-combobox-control__input[type="text"] {
38
38
  }
39
39
  }
40
40
 
41
- .components-combobox-control__reset.components-button {
42
- display: flex;
43
- height: $grid-unit-20;
44
- min-width: $grid-unit-20;
45
- padding: 0;
46
- }
@@ -58,7 +58,13 @@ const getOptionSearchString = ( option: ComboboxControlOption ) =>
58
58
  option.label.substring( 0, 11 );
59
59
 
60
60
  const ComboboxControl = ( props: ComboboxControlProps ) => {
61
- return <_ComboboxControl { ...props } __nextHasNoMarginBottom />;
61
+ return (
62
+ <_ComboboxControl
63
+ { ...props }
64
+ __next40pxDefaultSize
65
+ __nextHasNoMarginBottom
66
+ />
67
+ );
62
68
  };
63
69
 
64
70
  const ControlledComboboxControl = ( {
@@ -26,5 +26,5 @@ export const CompositeHover = forwardRef<
26
26
  // obfuscated to discourage its use outside of the component's internals.
27
27
  const store = ( props.store ?? context.store ) as Ariakit.CompositeStore;
28
28
 
29
- return <Ariakit.CompositeGroup store={ store } { ...props } ref={ ref } />;
29
+ return <Ariakit.CompositeHover store={ store } { ...props } ref={ ref } />;
30
30
  } );
@@ -26,5 +26,7 @@ export const CompositeTypeahead = forwardRef<
26
26
  // obfuscated to discourage its use outside of the component's internals.
27
27
  const store = ( props.store ?? context.store ) as Ariakit.CompositeStore;
28
28
 
29
- return <Ariakit.CompositeRow store={ store } { ...props } ref={ ref } />;
29
+ return (
30
+ <Ariakit.CompositeTypeahead store={ store } { ...props } ref={ ref } />
31
+ );
30
32
  } );
@@ -66,6 +66,7 @@ function ControlPointButton( {
66
66
  aria-describedby={ descriptionId }
67
67
  aria-haspopup="true"
68
68
  aria-expanded={ isOpen }
69
+ __next40pxDefaultSize
69
70
  className={ clsx(
70
71
  'components-custom-gradient-picker__control-point-button',
71
72
  {
@@ -349,6 +350,7 @@ function InsertPoint( {
349
350
  } }
350
351
  renderToggle={ ( { isOpen, onToggle } ) => (
351
352
  <Button
353
+ __next40pxDefaultSize
352
354
  aria-expanded={ isOpen }
353
355
  aria-haspopup="true"
354
356
  onClick={ () => {
@@ -13,7 +13,8 @@ import { useState } from '@wordpress/element';
13
13
  import CustomGradientPicker from '../';
14
14
 
15
15
  const meta: Meta< typeof CustomGradientPicker > = {
16
- title: 'Components/CustomGradientPicker',
16
+ title: 'Components/Selection & Input/Color/CustomGradientPicker',
17
+ id: 'components-customgradientpicker',
17
18
  component: CustomGradientPicker,
18
19
  parameters: {
19
20
  actions: { argTypesRegex: '^on.*' },
@@ -47,7 +47,7 @@ $components-custom-gradient-picker__padding: $grid-unit-20; // 48px container, 1
47
47
  // Same size as the .components-custom-gradient-picker__control-point-dropdown parent
48
48
  height: inherit;
49
49
  width: inherit;
50
- min-width: $grid-unit-20;
50
+ min-width: $grid-unit-20 !important;
51
51
  border-radius: $radius-round;
52
52
 
53
53
  background: $white;
@@ -14,8 +14,9 @@ import { useState } from '@wordpress/element';
14
14
  import CustomSelectControl from '..';
15
15
 
16
16
  const meta: Meta< typeof CustomSelectControl > = {
17
- title: 'Components/CustomSelectControl',
17
+ title: 'Components/Selection & Input/Common/CustomSelectControl',
18
18
  component: CustomSelectControl,
19
+ id: 'components-customselectcontrol',
19
20
  argTypes: {
20
21
  onChange: { control: { type: null } },
21
22
  value: { control: { type: null } },
@@ -14,7 +14,8 @@ import { useState } from '@wordpress/element';
14
14
  import CustomSelectControlV2 from '..';
15
15
 
16
16
  const meta: Meta< typeof CustomSelectControlV2 > = {
17
- title: 'Components/CustomSelectControl v2',
17
+ title: 'Components/Selection & Input/Common/CustomSelectControl v2',
18
+ id: 'components-customselectcontrol-v2',
18
19
  component: CustomSelectControlV2,
19
20
  subcomponents: {
20
21
  // @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170