@wordpress/components 28.12.0 → 28.13.1-next.082ed6819.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 (396) hide show
  1. package/CHANGELOG.md +43 -1
  2. package/build/autocomplete/autocompleter-ui.js +1 -0
  3. package/build/autocomplete/autocompleter-ui.js.map +1 -1
  4. package/build/border-box-control/border-box-control/component.js +1 -0
  5. package/build/border-box-control/border-box-control/component.js.map +1 -1
  6. package/build/border-box-control/border-box-control-split-controls/component.js +2 -1
  7. package/build/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  8. package/build/border-control/border-control/component.js +2 -1
  9. package/build/border-control/border-control/component.js.map +1 -1
  10. package/build/border-control/border-control/hook.js +3 -1
  11. package/build/border-control/border-control/hook.js.map +1 -1
  12. package/build/border-control/types.js.map +1 -1
  13. package/build/box-control/all-input-control.js +1 -0
  14. package/build/box-control/all-input-control.js.map +1 -1
  15. package/build/box-control/axial-input-controls.js +1 -0
  16. package/build/box-control/axial-input-controls.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/color-palette/index.js +2 -0
  20. package/build/color-palette/index.js.map +1 -1
  21. package/build/color-picker/color-copy-button.js +6 -4
  22. package/build/color-picker/color-copy-button.js.map +1 -1
  23. package/build/color-picker/component.js +1 -0
  24. package/build/color-picker/component.js.map +1 -1
  25. package/build/color-picker/styles.js +21 -28
  26. package/build/color-picker/styles.js.map +1 -1
  27. package/build/combobox-control/index.js +17 -12
  28. package/build/combobox-control/index.js.map +1 -1
  29. package/build/composite/hover.js +1 -1
  30. package/build/composite/hover.js.map +1 -1
  31. package/build/composite/typeahead.js +1 -1
  32. package/build/composite/typeahead.js.map +1 -1
  33. package/build/dashicon/types.js.map +1 -1
  34. package/build/dimension-control/index.js +7 -0
  35. package/build/dimension-control/index.js.map +1 -1
  36. package/build/disabled/index.js +8 -1
  37. package/build/disabled/index.js.map +1 -1
  38. package/build/duotone-picker/duotone-picker.js +2 -0
  39. package/build/duotone-picker/duotone-picker.js.map +1 -1
  40. package/build/font-size-picker/font-size-picker-toggle-group.js +1 -0
  41. package/build/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  42. package/build/font-size-picker/index.js +7 -0
  43. package/build/font-size-picker/index.js.map +1 -1
  44. package/build/form-file-upload/index.js +3 -1
  45. package/build/form-file-upload/index.js.map +1 -1
  46. package/build/gradient-picker/index.js +34 -32
  47. package/build/gradient-picker/index.js.map +1 -1
  48. package/build/gradient-picker/types.js.map +1 -1
  49. package/build/menu/styles.js +16 -16
  50. package/build/menu/styles.js.map +1 -1
  51. package/build/modal/index.js +2 -2
  52. package/build/modal/index.js.map +1 -1
  53. package/build/private-apis.js +0 -2
  54. package/build/private-apis.js.map +1 -1
  55. package/build/range-control/index.js +11 -0
  56. package/build/range-control/index.js.map +1 -1
  57. package/build/range-control/types.js.map +1 -1
  58. package/build/slot-fill/bubbles-virtually/fill.js +14 -31
  59. package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
  60. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js +13 -4
  61. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  62. package/build/slot-fill/bubbles-virtually/slot.js +11 -9
  63. package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
  64. package/build/slot-fill/bubbles-virtually/use-slot.js +1 -8
  65. package/build/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
  66. package/build/slot-fill/fill.js +7 -24
  67. package/build/slot-fill/fill.js.map +1 -1
  68. package/build/slot-fill/index.js +5 -10
  69. package/build/slot-fill/index.js.map +1 -1
  70. package/build/slot-fill/provider.js +2 -2
  71. package/build/slot-fill/provider.js.map +1 -1
  72. package/build/slot-fill/slot.js +37 -77
  73. package/build/slot-fill/slot.js.map +1 -1
  74. package/build/slot-fill/types.js.map +1 -1
  75. package/build/text-control/index.js +7 -0
  76. package/build/text-control/index.js.map +1 -1
  77. package/build/toggle-group-control/toggle-group-control/component.js +9 -0
  78. package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
  79. package/build/toggle-group-control/toggle-group-control-option/component.js +1 -0
  80. package/build/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  81. package/build/toggle-group-control/toggle-group-control-option-icon/component.js +1 -1
  82. package/build/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  83. package/build/toggle-group-control/types.js.map +1 -1
  84. package/build/utils/deprecated-36px-size.js +3 -2
  85. package/build/utils/deprecated-36px-size.js.map +1 -1
  86. package/build-module/autocomplete/autocompleter-ui.js +1 -0
  87. package/build-module/autocomplete/autocompleter-ui.js.map +1 -1
  88. package/build-module/border-box-control/border-box-control/component.js +1 -0
  89. package/build-module/border-box-control/border-box-control/component.js.map +1 -1
  90. package/build-module/border-box-control/border-box-control-split-controls/component.js +2 -1
  91. package/build-module/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  92. package/build-module/border-control/border-control/component.js +2 -1
  93. package/build-module/border-control/border-control/component.js.map +1 -1
  94. package/build-module/border-control/border-control/hook.js +3 -1
  95. package/build-module/border-control/border-control/hook.js.map +1 -1
  96. package/build-module/border-control/types.js.map +1 -1
  97. package/build-module/box-control/all-input-control.js +1 -0
  98. package/build-module/box-control/all-input-control.js.map +1 -1
  99. package/build-module/box-control/axial-input-controls.js +1 -0
  100. package/build-module/box-control/axial-input-controls.js.map +1 -1
  101. package/build-module/box-control/input-controls.js +1 -0
  102. package/build-module/box-control/input-controls.js.map +1 -1
  103. package/build-module/color-palette/index.js +2 -0
  104. package/build-module/color-palette/index.js.map +1 -1
  105. package/build-module/color-picker/color-copy-button.js +6 -4
  106. package/build-module/color-picker/color-copy-button.js.map +1 -1
  107. package/build-module/color-picker/component.js +1 -0
  108. package/build-module/color-picker/component.js.map +1 -1
  109. package/build-module/color-picker/styles.js +20 -27
  110. package/build-module/color-picker/styles.js.map +1 -1
  111. package/build-module/combobox-control/index.js +18 -13
  112. package/build-module/combobox-control/index.js.map +1 -1
  113. package/build-module/composite/hover.js +1 -1
  114. package/build-module/composite/hover.js.map +1 -1
  115. package/build-module/composite/typeahead.js +1 -1
  116. package/build-module/composite/typeahead.js.map +1 -1
  117. package/build-module/dashicon/types.js.map +1 -1
  118. package/build-module/dimension-control/index.js +7 -0
  119. package/build-module/dimension-control/index.js.map +1 -1
  120. package/build-module/disabled/index.js +8 -1
  121. package/build-module/disabled/index.js.map +1 -1
  122. package/build-module/duotone-picker/duotone-picker.js +2 -0
  123. package/build-module/duotone-picker/duotone-picker.js.map +1 -1
  124. package/build-module/font-size-picker/font-size-picker-toggle-group.js +1 -0
  125. package/build-module/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  126. package/build-module/font-size-picker/index.js +7 -0
  127. package/build-module/font-size-picker/index.js.map +1 -1
  128. package/build-module/form-file-upload/index.js +3 -1
  129. package/build-module/form-file-upload/index.js.map +1 -1
  130. package/build-module/gradient-picker/index.js +34 -32
  131. package/build-module/gradient-picker/index.js.map +1 -1
  132. package/build-module/gradient-picker/types.js.map +1 -1
  133. package/build-module/menu/styles.js +16 -16
  134. package/build-module/menu/styles.js.map +1 -1
  135. package/build-module/modal/index.js +2 -2
  136. package/build-module/modal/index.js.map +1 -1
  137. package/build-module/private-apis.js +0 -2
  138. package/build-module/private-apis.js.map +1 -1
  139. package/build-module/range-control/index.js +11 -0
  140. package/build-module/range-control/index.js.map +1 -1
  141. package/build-module/range-control/types.js.map +1 -1
  142. package/build-module/slot-fill/bubbles-virtually/fill.js +15 -32
  143. package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
  144. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js +13 -4
  145. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  146. package/build-module/slot-fill/bubbles-virtually/slot.js +11 -9
  147. package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
  148. package/build-module/slot-fill/bubbles-virtually/use-slot.js +2 -9
  149. package/build-module/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
  150. package/build-module/slot-fill/fill.js +7 -24
  151. package/build-module/slot-fill/fill.js.map +1 -1
  152. package/build-module/slot-fill/index.js +5 -8
  153. package/build-module/slot-fill/index.js.map +1 -1
  154. package/build-module/slot-fill/provider.js +2 -3
  155. package/build-module/slot-fill/provider.js.map +1 -1
  156. package/build-module/slot-fill/slot.js +38 -78
  157. package/build-module/slot-fill/slot.js.map +1 -1
  158. package/build-module/slot-fill/types.js.map +1 -1
  159. package/build-module/text-control/index.js +7 -0
  160. package/build-module/text-control/index.js.map +1 -1
  161. package/build-module/toggle-group-control/toggle-group-control/component.js +9 -0
  162. package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
  163. package/build-module/toggle-group-control/toggle-group-control-option/component.js +1 -0
  164. package/build-module/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  165. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js +1 -1
  166. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  167. package/build-module/toggle-group-control/types.js.map +1 -1
  168. package/build-module/utils/deprecated-36px-size.js +3 -2
  169. package/build-module/utils/deprecated-36px-size.js.map +1 -1
  170. package/build-style/style-rtl.css +0 -7
  171. package/build-style/style.css +0 -7
  172. package/build-types/autocomplete/autocompleter-ui.d.ts.map +1 -1
  173. package/build-types/base-control/stories/index.story.d.ts.map +1 -1
  174. package/build-types/border-box-control/border-box-control/component.d.ts.map +1 -1
  175. package/build-types/border-box-control/border-box-control-split-controls/component.d.ts.map +1 -1
  176. package/build-types/border-control/border-control/component.d.ts +1 -0
  177. package/build-types/border-control/border-control/component.d.ts.map +1 -1
  178. package/build-types/border-control/border-control/hook.d.ts.map +1 -1
  179. package/build-types/border-control/border-control-dropdown/component.d.ts.map +1 -1
  180. package/build-types/border-control/border-control-style-picker/component.d.ts.map +1 -1
  181. package/build-types/border-control/stories/index.story.d.ts +10 -5
  182. package/build-types/border-control/stories/index.story.d.ts.map +1 -1
  183. package/build-types/border-control/types.d.ts +7 -0
  184. package/build-types/border-control/types.d.ts.map +1 -1
  185. package/build-types/box-control/all-input-control.d.ts.map +1 -1
  186. package/build-types/box-control/axial-input-controls.d.ts.map +1 -1
  187. package/build-types/box-control/input-controls.d.ts.map +1 -1
  188. package/build-types/box-control/styles/box-control-styles.d.ts +2 -1
  189. package/build-types/box-control/styles/box-control-styles.d.ts.map +1 -1
  190. package/build-types/checkbox-control/stories/index.story.d.ts.map +1 -1
  191. package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
  192. package/build-types/color-indicator/stories/index.story.d.ts.map +1 -1
  193. package/build-types/color-palette/index.d.ts.map +1 -1
  194. package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
  195. package/build-types/color-picker/color-copy-button.d.ts.map +1 -1
  196. package/build-types/color-picker/component.d.ts.map +1 -1
  197. package/build-types/color-picker/stories/index.story.d.ts.map +1 -1
  198. package/build-types/color-picker/styles.d.ts +2 -4
  199. package/build-types/color-picker/styles.d.ts.map +1 -1
  200. package/build-types/combobox-control/index.d.ts +1 -0
  201. package/build-types/combobox-control/index.d.ts.map +1 -1
  202. package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
  203. package/build-types/composite/typeahead.d.ts.map +1 -1
  204. package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
  205. package/build-types/custom-select-control/stories/index.story.d.ts.map +1 -1
  206. package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +1 -1
  207. package/build-types/dashicon/types.d.ts +1 -1
  208. package/build-types/dashicon/types.d.ts.map +1 -1
  209. package/build-types/date-time/stories/date-time.story.d.ts.map +1 -1
  210. package/build-types/date-time/stories/date.story.d.ts.map +1 -1
  211. package/build-types/date-time/stories/time.story.d.ts.map +1 -1
  212. package/build-types/dimension-control/index.d.ts +1 -0
  213. package/build-types/dimension-control/index.d.ts.map +1 -1
  214. package/build-types/disabled/index.d.ts +8 -1
  215. package/build-types/disabled/index.d.ts.map +1 -1
  216. package/build-types/disabled/stories/index.story.d.ts.map +1 -1
  217. package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
  218. package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
  219. package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -1
  220. package/build-types/font-size-picker/font-size-picker-toggle-group.d.ts.map +1 -1
  221. package/build-types/font-size-picker/index.d.ts.map +1 -1
  222. package/build-types/font-size-picker/stories/index.story.d.ts.map +1 -1
  223. package/build-types/form-file-upload/index.d.ts.map +1 -1
  224. package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
  225. package/build-types/form-token-field/stories/index.story.d.ts.map +1 -1
  226. package/build-types/gradient-picker/index.d.ts +32 -32
  227. package/build-types/gradient-picker/index.d.ts.map +1 -1
  228. package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
  229. package/build-types/gradient-picker/types.d.ts +1 -5
  230. package/build-types/gradient-picker/types.d.ts.map +1 -1
  231. package/build-types/h-stack/stories/index.story.d.ts.map +1 -1
  232. package/build-types/input-control/stories/index.story.d.ts.map +1 -1
  233. package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
  234. package/build-types/menu-item/stories/index.story.d.ts.map +1 -1
  235. package/build-types/menu-items-choice/stories/index.story.d.ts.map +1 -1
  236. package/build-types/number-control/stories/index.story.d.ts.map +1 -1
  237. package/build-types/placeholder/stories/index.story.d.ts.map +1 -1
  238. package/build-types/private-apis.d.ts.map +1 -1
  239. package/build-types/radio-control/stories/index.story.d.ts.map +1 -1
  240. package/build-types/range-control/index.d.ts +3 -1
  241. package/build-types/range-control/index.d.ts.map +1 -1
  242. package/build-types/range-control/stories/index.story.d.ts.map +1 -1
  243. package/build-types/range-control/types.d.ts +7 -0
  244. package/build-types/range-control/types.d.ts.map +1 -1
  245. package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -1
  246. package/build-types/search-control/stories/index.story.d.ts.map +1 -1
  247. package/build-types/select-control/stories/index.story.d.ts.map +1 -1
  248. package/build-types/slot-fill/bubbles-virtually/fill.d.ts +1 -1
  249. package/build-types/slot-fill/bubbles-virtually/fill.d.ts.map +1 -1
  250. package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts.map +1 -1
  251. package/build-types/slot-fill/bubbles-virtually/slot.d.ts.map +1 -1
  252. package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts +1 -1
  253. package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts.map +1 -1
  254. package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts +3 -7
  255. package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts.map +1 -1
  256. package/build-types/slot-fill/fill.d.ts.map +1 -1
  257. package/build-types/slot-fill/index.d.ts +5 -12
  258. package/build-types/slot-fill/index.d.ts.map +1 -1
  259. package/build-types/slot-fill/provider.d.ts.map +1 -1
  260. package/build-types/slot-fill/slot.d.ts +1 -1
  261. package/build-types/slot-fill/slot.d.ts.map +1 -1
  262. package/build-types/slot-fill/types.d.ts +15 -18
  263. package/build-types/slot-fill/types.d.ts.map +1 -1
  264. package/build-types/slot-fill/use-slot.d.ts +1 -1
  265. package/build-types/slot-fill/use-slot.d.ts.map +1 -1
  266. package/build-types/text-control/index.d.ts +1 -0
  267. package/build-types/text-control/index.d.ts.map +1 -1
  268. package/build-types/text-control/stories/index.story.d.ts.map +1 -1
  269. package/build-types/textarea-control/stories/index.story.d.ts.map +1 -1
  270. package/build-types/toggle-control/stories/index.story.d.ts.map +1 -1
  271. package/build-types/toggle-group-control/stories/index.story.d.ts.map +1 -1
  272. package/build-types/toggle-group-control/toggle-group-control/component.d.ts +2 -0
  273. package/build-types/toggle-group-control/toggle-group-control/component.d.ts.map +1 -1
  274. package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts +1 -0
  275. package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts.map +1 -1
  276. package/build-types/toggle-group-control/toggle-group-control-option-icon/component.d.ts +1 -1
  277. package/build-types/toggle-group-control/types.d.ts +7 -0
  278. package/build-types/toggle-group-control/types.d.ts.map +1 -1
  279. package/build-types/tools-panel/stories/index.story.d.ts.map +1 -1
  280. package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
  281. package/build-types/unit-control/stories/index.story.d.ts.map +1 -1
  282. package/build-types/utils/deprecated-36px-size.d.ts +2 -1
  283. package/build-types/utils/deprecated-36px-size.d.ts.map +1 -1
  284. package/build-types/v-stack/stories/index.story.d.ts.map +1 -1
  285. package/package.json +19 -19
  286. package/src/autocomplete/autocompleter-ui.tsx +1 -0
  287. package/src/base-control/stories/index.story.tsx +2 -1
  288. package/src/border-box-control/border-box-control/component.tsx +1 -0
  289. package/src/border-box-control/border-box-control-split-controls/component.tsx +1 -0
  290. package/src/border-control/border-control/component.tsx +1 -0
  291. package/src/border-control/border-control/hook.ts +2 -0
  292. package/src/border-control/types.ts +7 -0
  293. package/src/box-control/all-input-control.tsx +1 -0
  294. package/src/box-control/axial-input-controls.tsx +1 -0
  295. package/src/box-control/input-controls.tsx +1 -0
  296. package/src/checkbox-control/stories/index.story.tsx +2 -1
  297. package/src/circular-option-picker/stories/index.story.tsx +2 -1
  298. package/src/color-indicator/stories/index.story.tsx +2 -1
  299. package/src/color-palette/index.tsx +5 -1
  300. package/src/color-palette/stories/index.story.tsx +2 -1
  301. package/src/color-picker/color-copy-button.tsx +8 -10
  302. package/src/color-picker/component.tsx +1 -0
  303. package/src/color-picker/stories/index.story.tsx +2 -1
  304. package/src/color-picker/styles.ts +0 -13
  305. package/src/combobox-control/README.md +1 -0
  306. package/src/combobox-control/index.tsx +19 -13
  307. package/src/combobox-control/stories/index.story.tsx +3 -1
  308. package/src/combobox-control/style.scss +0 -6
  309. package/src/combobox-control/test/index.tsx +7 -1
  310. package/src/composite/hover.tsx +1 -1
  311. package/src/composite/typeahead.tsx +3 -1
  312. package/src/custom-gradient-picker/stories/index.story.tsx +2 -1
  313. package/src/custom-select-control/stories/index.story.tsx +2 -1
  314. package/src/custom-select-control-v2/stories/index.story.tsx +2 -1
  315. package/src/dashicon/types.ts +0 -2
  316. package/src/date-time/stories/date-time.story.tsx +2 -1
  317. package/src/date-time/stories/date.story.tsx +2 -1
  318. package/src/date-time/stories/time.story.tsx +2 -1
  319. package/src/dimension-control/README.md +1 -0
  320. package/src/dimension-control/index.tsx +8 -0
  321. package/src/dimension-control/stories/index.story.tsx +1 -0
  322. package/src/dimension-control/test/__snapshots__/index.test.js.snap +24 -24
  323. package/src/dimension-control/test/index.test.js +7 -1
  324. package/src/disabled/README.md +9 -7
  325. package/src/disabled/index.tsx +8 -1
  326. package/src/disabled/stories/index.story.tsx +1 -0
  327. package/src/drop-zone/stories/index.story.tsx +2 -1
  328. package/src/dropdown-menu/stories/index.story.tsx +2 -1
  329. package/src/duotone-picker/duotone-picker.tsx +2 -0
  330. package/src/font-size-picker/README.md +1 -0
  331. package/src/font-size-picker/font-size-picker-toggle-group.tsx +1 -0
  332. package/src/font-size-picker/index.tsx +8 -0
  333. package/src/font-size-picker/stories/index.story.tsx +1 -0
  334. package/src/font-size-picker/test/index.tsx +5 -1
  335. package/src/form-file-upload/index.tsx +9 -3
  336. package/src/form-file-upload/stories/index.story.tsx +2 -1
  337. package/src/form-token-field/stories/index.story.tsx +2 -1
  338. package/src/gradient-picker/README.md +107 -69
  339. package/src/gradient-picker/docs-manifest.json +5 -0
  340. package/src/gradient-picker/index.tsx +34 -32
  341. package/src/gradient-picker/stories/index.story.tsx +2 -1
  342. package/src/gradient-picker/types.ts +3 -5
  343. package/src/h-stack/stories/index.story.tsx +2 -1
  344. package/src/higher-order/with-constrained-tabbing/README.md +13 -3
  345. package/src/higher-order/with-focus-return/README.md +9 -2
  346. package/src/input-control/stories/index.story.tsx +2 -1
  347. package/src/menu/styles.ts +1 -1
  348. package/src/menu-group/stories/index.story.tsx +2 -1
  349. package/src/menu-item/stories/index.story.tsx +2 -1
  350. package/src/menu-items-choice/stories/index.story.tsx +2 -1
  351. package/src/modal/index.tsx +2 -2
  352. package/src/modal/stories/index.story.tsx +1 -1
  353. package/src/number-control/stories/index.story.tsx +2 -1
  354. package/src/placeholder/stories/index.story.tsx +1 -0
  355. package/src/private-apis.ts +0 -2
  356. package/src/radio-control/stories/index.story.tsx +2 -1
  357. package/src/range-control/README.md +4 -3
  358. package/src/range-control/index.tsx +11 -0
  359. package/src/range-control/stories/index.story.tsx +9 -1
  360. package/src/range-control/test/index.tsx +7 -1
  361. package/src/range-control/types.ts +7 -0
  362. package/src/responsive-wrapper/stories/index.story.tsx +2 -1
  363. package/src/search-control/stories/index.story.tsx +2 -1
  364. package/src/select-control/stories/index.story.tsx +2 -1
  365. package/src/slot-fill/README.md +26 -15
  366. package/src/slot-fill/bubbles-virtually/fill.tsx +18 -28
  367. package/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx +26 -16
  368. package/src/slot-fill/bubbles-virtually/slot.tsx +13 -9
  369. package/src/slot-fill/bubbles-virtually/use-slot.ts +3 -26
  370. package/src/slot-fill/fill.ts +7 -22
  371. package/src/slot-fill/index.tsx +5 -7
  372. package/src/slot-fill/provider.tsx +8 -17
  373. package/src/slot-fill/slot.tsx +48 -85
  374. package/src/slot-fill/types.ts +14 -51
  375. package/src/text-control/README.md +1 -0
  376. package/src/text-control/index.tsx +8 -0
  377. package/src/text-control/stories/index.story.tsx +3 -1
  378. package/src/text-control/test/text-control.tsx +7 -1
  379. package/src/textarea-control/stories/index.story.tsx +2 -1
  380. package/src/toggle-control/stories/index.story.tsx +2 -1
  381. package/src/toggle-group-control/stories/index.story.tsx +3 -1
  382. package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +12 -12
  383. package/src/toggle-group-control/test/index.tsx +7 -1
  384. package/src/toggle-group-control/toggle-group-control/README.md +2 -1
  385. package/src/toggle-group-control/toggle-group-control/component.tsx +10 -0
  386. package/src/toggle-group-control/toggle-group-control-option/README.md +1 -1
  387. package/src/toggle-group-control/toggle-group-control-option/component.tsx +1 -0
  388. package/src/toggle-group-control/toggle-group-control-option-icon/README.md +1 -1
  389. package/src/toggle-group-control/toggle-group-control-option-icon/component.tsx +1 -1
  390. package/src/toggle-group-control/types.ts +7 -0
  391. package/src/tools-panel/stories/index.story.tsx +3 -0
  392. package/src/tree-select/stories/index.story.tsx +2 -1
  393. package/src/unit-control/stories/index.story.tsx +2 -1
  394. package/src/utils/deprecated-36px-size.ts +3 -0
  395. package/src/v-stack/stories/index.story.tsx +2 -1
  396. package/tsconfig.tsbuildinfo +1 -1
@@ -1,110 +1,148 @@
1
1
  # GradientPicker
2
2
 
3
- GradientPicker is a React component that renders a color gradient picker to define a multi step gradient. There's either a _linear_ or a _radial_ type available.
3
+ <!-- This file is generated automatically and cannot be edited directly. Make edits via TypeScript types and TSDocs. -->
4
4
 
5
- ![gradient-picker](https://user-images.githubusercontent.com/881729/147505438-3818c4c7-65b5-4394-b97b-af903c62adce.png)
5
+ <p class="callout callout-info">See the <a href="https://wordpress.github.io/gutenberg/?path=/docs/components-gradientpicker--docs">WordPress Storybook</a> for more detailed, interactive documentation.</p>
6
6
 
7
- ## Usage
8
-
9
- Render a GradientPicker.
7
+ GradientPicker is a React component that renders a color gradient picker to
8
+ define a multi step gradient. There's either a _linear_ or a _radial_ type
9
+ available.
10
10
 
11
11
  ```jsx
12
12
  import { useState } from 'react';
13
13
  import { GradientPicker } from '@wordpress/components';
14
14
 
15
- const myGradientPicker = () => {
16
- const [ gradient, setGradient ] = useState( null );
17
-
18
- return (
19
- <GradientPicker
20
- value={ gradient }
21
- onChange={ ( currentGradient ) => setGradient( currentGradient ) }
22
- gradients={ [
23
- {
24
- name: 'JShine',
25
- gradient:
26
- 'linear-gradient(135deg,#12c2e9 0%,#c471ed 50%,#f64f59 100%)',
27
- slug: 'jshine',
28
- },
29
- {
30
- name: 'Moonlit Asteroid',
31
- gradient:
32
- 'linear-gradient(135deg,#0F2027 0%, #203A43 0%, #2c5364 100%)',
33
- slug: 'moonlit-asteroid',
34
- },
35
- {
36
- name: 'Rastafarie',
37
- gradient:
38
- 'linear-gradient(135deg,#1E9600 0%, #FFF200 0%, #FF0000 100%)',
39
- slug: 'rastafari',
40
- },
41
- ] }
42
- />
43
- );
15
+ const MyGradientPicker = () => {
16
+ const [ gradient, setGradient ] = useState( null );
17
+
18
+ return (
19
+ <GradientPicker
20
+ value={ gradient }
21
+ onChange={ ( currentGradient ) => setGradient( currentGradient ) }
22
+ gradients={ [
23
+ {
24
+ name: 'JShine',
25
+ gradient:
26
+ 'linear-gradient(135deg,#12c2e9 0%,#c471ed 50%,#f64f59 100%)',
27
+ slug: 'jshine',
28
+ },
29
+ {
30
+ name: 'Moonlit Asteroid',
31
+ gradient:
32
+ 'linear-gradient(135deg,#0F2027 0%, #203A43 0%, #2c5364 100%)',
33
+ slug: 'moonlit-asteroid',
34
+ },
35
+ {
36
+ name: 'Rastafarie',
37
+ gradient:
38
+ 'linear-gradient(135deg,#1E9600 0%, #FFF200 0%, #FF0000 100%)',
39
+ slug: 'rastafari',
40
+ },
41
+ ] }
42
+ />
43
+ );
44
44
  };
45
45
  ```
46
-
47
46
  ## Props
48
47
 
49
- The component accepts the following props:
48
+ ### `__experimentalIsRenderedInSidebar`
50
49
 
51
- ### `className`: `string`
50
+ Whether this is rendered in the sidebar.
52
51
 
53
- The class name added to the wrapper.
52
+ - Type: `boolean`
53
+ - Required: No
54
+ - Default: `false`
54
55
 
55
- - Required: No
56
+ ### `asButtons`
56
57
 
57
- ### `value`: `string`
58
+ Whether the control should present as a set of buttons,
59
+ each with its own tab stop.
58
60
 
59
- The current value of the gradient. Pass a css gradient like `linear-gradient(90deg, rgb(6, 147, 227) 0%, rgb(155, 81, 224) 100%)`. Optionally pass in a `null` value to specify no gradient is currently selected.
61
+ - Type: `boolean`
62
+ - Required: No
63
+ - Default: `false`
60
64
 
61
- - Required: No
62
- - Default: `linear-gradient(90deg, rgb(6, 147, 227) 0%, rgb(155, 81, 224) 100%)`
65
+ ### `aria-label`
63
66
 
64
- ### `onChange`: `( currentGradient: string | undefined ) => void`
67
+ A label to identify the purpose of the control.
65
68
 
66
- The function called when a new gradient has been defined. It is passed the `currentGradient` as an argument.
69
+ - Type: `string`
70
+ - Required: No
67
71
 
68
- - Required: Yes
72
+ ### `aria-labelledby`
69
73
 
70
- ### `gradients`: `GradientsProp[]`
74
+ An ID of an element to provide a label for the control.
71
75
 
72
- An array of objects of predefined gradients displayed above the gradient selector.
76
+ - Type: `string`
77
+ - Required: No
78
+
79
+ ### `className`
80
+
81
+ The class name added to the wrapper.
73
82
 
74
- - Required: No
75
- - Default: `[]`
83
+ - Type: `string`
84
+ - Required: No
76
85
 
77
- ### `clearable`: `boolean`
86
+ ### `clearable`
78
87
 
79
88
  Whether the palette should have a clearing button or not.
80
89
 
81
- - Required: No
82
- - Default: true
90
+ - Type: `boolean`
91
+ - Required: No
92
+ - Default: `true`
93
+
94
+ ### `disableCustomGradients`
95
+
96
+ If true, the gradient picker will not be displayed and only defined
97
+ gradients from `gradients` will be shown.
98
+
99
+ - Type: `boolean`
100
+ - Required: No
101
+ - Default: `false`
102
+
103
+ ### `gradients`
104
+
105
+ An array of objects as predefined gradients displayed above the gradient
106
+ selector. Alternatively, if there are multiple sets (or 'origins') of
107
+ gradients, you can pass an array of objects each with a `name` and a
108
+ `gradients` array which will in turn contain the predefined gradient objects.
109
+
110
+ - Type: `GradientsProp`
111
+ - Required: No
112
+ - Default: `[]`
83
113
 
84
- ### `disableCustomGradients`: `boolean`
114
+ ### `headingLevel`
85
115
 
86
- If true, the gradient picker will not be displayed and only defined gradients from `gradients` are available.
116
+ The heading level. Only applies in cases where gradients are provided
117
+ from multiple origins (i.e. when the array passed as the `gradients` prop
118
+ contains two or more items).
87
119
 
88
- - Required: No
89
- - Default: false
120
+ - Type: `1 | 2 | 3 | 4 | 5 | 6 | "1" | "2" | "3" | "4" | ...`
121
+ - Required: No
122
+ - Default: `2`
90
123
 
91
- ### `headingLevel`: `1 | 2 | 3 | 4 | 5 | 6 | '1' | '2' | '3' | '4' | '5' | '6'`
124
+ ### `loop`
92
125
 
93
- The heading level. Only applies in cases where gradients are provided from multiple origins (ie. when the array passed as the `gradients` prop contains two or more items).
126
+ Prevents keyboard interaction from wrapping around.
127
+ Only used when `asButtons` is not true.
94
128
 
95
- - Required: No
96
- - Default: `2`
129
+ - Type: `boolean`
130
+ - Required: No
131
+ - Default: `true`
97
132
 
98
- ### `asButtons`: `boolean`
133
+ ### `onChange`
99
134
 
100
- Whether the control should present as a set of buttons, each with its own tab stop.
135
+ The function called when a new gradient has been defined. It is passed to
136
+ the `currentGradient` as an argument.
101
137
 
102
- - Required: No
103
- - Default: `false`
138
+ - Type: `(currentGradient: string) => void`
139
+ - Required: Yes
104
140
 
105
- ### `loop`: `boolean`
141
+ ### `value`
106
142
 
107
- Prevents keyboard interaction from wrapping around. Only used when `asButtons` is not true.
143
+ The current value of the gradient. Pass a css gradient string (See default value for example).
144
+ Optionally pass in a `null` value to specify no gradient is currently selected.
108
145
 
109
- - Required: No
110
- - Default: `true`
146
+ - Type: `string`
147
+ - Required: No
148
+ - Default: `'linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)'`
@@ -0,0 +1,5 @@
1
+ {
2
+ "$schema": "../../schemas/docs-manifest.json",
3
+ "displayName": "GradientPicker",
4
+ "filePath": "./index.tsx"
5
+ }
@@ -166,44 +166,44 @@ function Component( props: PickerProps< any > ) {
166
166
  }
167
167
 
168
168
  /**
169
- * GradientPicker is a React component that renders a color gradient picker to
169
+ * GradientPicker is a React component that renders a color gradient picker to
170
170
  * define a multi step gradient. There's either a _linear_ or a _radial_ type
171
171
  * available.
172
172
  *
173
173
  * ```jsx
174
- *import { GradientPicker } from '@wordpress/components';
175
- *import { useState } from '@wordpress/element';
174
+ * import { useState } from 'react';
175
+ * import { GradientPicker } from '@wordpress/components';
176
176
  *
177
- *const myGradientPicker = () => {
178
- * const [ gradient, setGradient ] = useState( null );
177
+ * const MyGradientPicker = () => {
178
+ * const [ gradient, setGradient ] = useState( null );
179
179
  *
180
- * return (
181
- * <GradientPicker
182
- * value={ gradient }
183
- * onChange={ ( currentGradient ) => setGradient( currentGradient ) }
184
- * gradients={ [
185
- * {
186
- * name: 'JShine',
187
- * gradient:
188
- * 'linear-gradient(135deg,#12c2e9 0%,#c471ed 50%,#f64f59 100%)',
189
- * slug: 'jshine',
190
- * },
191
- * {
192
- * name: 'Moonlit Asteroid',
193
- * gradient:
194
- * 'linear-gradient(135deg,#0F2027 0%, #203A43 0%, #2c5364 100%)',
195
- * slug: 'moonlit-asteroid',
196
- * },
197
- * {
198
- * name: 'Rastafarie',
199
- * gradient:
200
- * 'linear-gradient(135deg,#1E9600 0%, #FFF200 0%, #FF0000 100%)',
201
- * slug: 'rastafari',
202
- * },
203
- * ] }
204
- * />
205
- * );
206
- *};
180
+ * return (
181
+ * <GradientPicker
182
+ * value={ gradient }
183
+ * onChange={ ( currentGradient ) => setGradient( currentGradient ) }
184
+ * gradients={ [
185
+ * {
186
+ * name: 'JShine',
187
+ * gradient:
188
+ * 'linear-gradient(135deg,#12c2e9 0%,#c471ed 50%,#f64f59 100%)',
189
+ * slug: 'jshine',
190
+ * },
191
+ * {
192
+ * name: 'Moonlit Asteroid',
193
+ * gradient:
194
+ * 'linear-gradient(135deg,#0F2027 0%, #203A43 0%, #2c5364 100%)',
195
+ * slug: 'moonlit-asteroid',
196
+ * },
197
+ * {
198
+ * name: 'Rastafarie',
199
+ * gradient:
200
+ * 'linear-gradient(135deg,#1E9600 0%, #FFF200 0%, #FF0000 100%)',
201
+ * slug: 'rastafari',
202
+ * },
203
+ * ] }
204
+ * />
205
+ * );
206
+ * };
207
207
  *```
208
208
  *
209
209
  */
@@ -247,6 +247,8 @@ export function GradientPicker( {
247
247
  ! disableCustomGradients && (
248
248
  <CircularOptionPicker.ButtonAction
249
249
  onClick={ clearGradient }
250
+ accessibleWhenDisabled
251
+ disabled={ ! value }
250
252
  >
251
253
  { __( 'Clear' ) }
252
254
  </CircularOptionPicker.ButtonAction>
@@ -13,7 +13,8 @@ import { useState } from '@wordpress/element';
13
13
  import GradientPicker from '..';
14
14
 
15
15
  const meta: Meta< typeof GradientPicker > = {
16
- title: 'Components/GradientPicker',
16
+ title: 'Components/Selection & Input/Color/GradientPicker',
17
+ id: 'components-gradientpicker',
17
18
  component: GradientPicker,
18
19
  parameters: {
19
20
  controls: { expanded: true },
@@ -36,7 +36,7 @@ type GradientPickerBaseProps = {
36
36
  clearable?: boolean;
37
37
  /**
38
38
  * The heading level. Only applies in cases where gradients are provided
39
- * from multiple origins (ie. when the array passed as the `gradients` prop
39
+ * from multiple origins (i.e. when the array passed as the `gradients` prop
40
40
  * contains two or more items).
41
41
  *
42
42
  * @default 2
@@ -58,19 +58,17 @@ type GradientPickerBaseProps = {
58
58
  loop?: boolean;
59
59
  } & (
60
60
  | {
61
+ // TODO: [#54055] Either this or `aria-labelledby` should be required
61
62
  /**
62
63
  * A label to identify the purpose of the control.
63
- *
64
- * @todo [#54055] Either this or `aria-labelledby` should be required
65
64
  */
66
65
  'aria-label'?: string;
67
66
  'aria-labelledby'?: never;
68
67
  }
69
68
  | {
69
+ // TODO: [#54055] Either this or `aria-label` should be required
70
70
  /**
71
71
  * An ID of an element to provide a label for the control.
72
- *
73
- * @todo [#54055] Either this or `aria-label` should be required
74
72
  */
75
73
  'aria-labelledby'?: string;
76
74
  'aria-label'?: never;
@@ -42,7 +42,8 @@ const JUSTIFICATIONS = {
42
42
 
43
43
  const meta: Meta< typeof HStack > = {
44
44
  component: HStack,
45
- title: 'Components (Experimental)/HStack',
45
+ title: 'Components (Experimental)/Layout/HStack',
46
+ id: 'components-experimental-hstack',
46
47
  argTypes: {
47
48
  as: {
48
49
  control: { type: null },
@@ -22,8 +22,18 @@ const MyComponentWithConstrainedTabbing = () => {
22
22
  const [ isConstrainedTabbing, setIsConstrainedTabbing ] = useState( false );
23
23
  let form = (
24
24
  <form>
25
- <TextControl label="Input 1" onChange={ () => {} } />
26
- <TextControl label="Input 2" onChange={ () => {} } />
25
+ <TextControl
26
+ __next40pxDefaultSize
27
+ __nextHasNoMarginBottom
28
+ label="Input 1"
29
+ onChange={ () => {} }
30
+ />
31
+ <TextControl
32
+ __next40pxDefaultSize
33
+ __nextHasNoMarginBottom
34
+ label="Input 2"
35
+ onChange={ () => {} }
36
+ />
27
37
  </form>
28
38
  );
29
39
  if ( isConstrainedTabbing ) {
@@ -43,5 +53,5 @@ const MyComponentWithConstrainedTabbing = () => {
43
53
  </Button>
44
54
  </div>
45
55
  );
46
- }
56
+ };
47
57
  ```
@@ -13,7 +13,12 @@ import { withFocusReturn, TextControl, Button } from '@wordpress/components';
13
13
  const EnhancedComponent = withFocusReturn( () => (
14
14
  <div>
15
15
  Focus will return to the previous input when this component is unmounted
16
- <TextControl autoFocus={ true } onChange={ () => {} } />
16
+ <TextControl
17
+ __nextHasNoMarginBottom
18
+ __next40pxDefaultSize
19
+ autoFocus={ true }
20
+ onChange={ () => {} }
21
+ />
17
22
  </div>
18
23
  ) );
19
24
 
@@ -27,6 +32,8 @@ const MyComponentWithFocusReturn = () => {
27
32
  return (
28
33
  <div>
29
34
  <TextControl
35
+ __nextHasNoMarginBottom
36
+ __next40pxDefaultSize
30
37
  placeholder="Type something"
31
38
  value={ text }
32
39
  onChange={ ( value ) => setText( value ) }
@@ -39,7 +46,7 @@ const MyComponentWithFocusReturn = () => {
39
46
  ) }
40
47
  </div>
41
48
  );
42
- }
49
+ };
43
50
  ```
44
51
 
45
52
  `withFocusReturn` can optionally be called as a higher-order function creator. Provided an options object, a new higher-order function is returned.
@@ -16,7 +16,8 @@ import { InputControlSuffixWrapper } from '../input-suffix-wrapper';
16
16
  import Button from '../../button';
17
17
 
18
18
  const meta: Meta< typeof InputControl > = {
19
- title: 'Components (Experimental)/InputControl',
19
+ title: 'Components (Experimental)/Selection & Input/InputControl',
20
+ id: 'components-experimental-inputcontrol',
20
21
  component: InputControl,
21
22
  // @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
22
23
  subcomponents: { InputControlPrefixWrapper, InputControlSuffixWrapper },
@@ -380,7 +380,7 @@ export const MenuItemHelpText = styled( Truncate )`
380
380
  font-size: ${ font( 'helpText.fontSize' ) };
381
381
  line-height: 16px;
382
382
  color: ${ LIGHTER_TEXT_COLOR };
383
- word-break: break-all;
383
+ overflow-wrap: anywhere;
384
384
 
385
385
  [data-active-item]:not( [data-focus-visible] )
386
386
  *:not( ${ MenuPopoverInnerWrapper } )
@@ -16,8 +16,9 @@ import MenuItemsChoice from '../../menu-items-choice';
16
16
  import type { Meta, StoryFn } from '@storybook/react';
17
17
 
18
18
  const meta: Meta< typeof MenuGroup > = {
19
- title: 'Components/MenuGroup',
19
+ title: 'Components/Actions/MenuGroup',
20
20
  component: MenuGroup,
21
+ id: 'components-menugroup',
21
22
  argTypes: {
22
23
  children: { control: { type: null } },
23
24
  },
@@ -17,7 +17,8 @@ import Shortcut from '../../shortcut';
17
17
 
18
18
  const meta: Meta< typeof MenuItem > = {
19
19
  component: MenuItem,
20
- title: 'Components/MenuItem',
20
+ title: 'Components/Actions/MenuItem',
21
+ id: 'components-menuitem',
21
22
  argTypes: {
22
23
  children: { control: { type: null } },
23
24
  icon: {
@@ -16,7 +16,8 @@ import MenuGroup from '../../menu-group';
16
16
 
17
17
  const meta: Meta< typeof MenuItemsChoice > = {
18
18
  component: MenuItemsChoice,
19
- title: 'Components/MenuItemsChoice',
19
+ title: 'Components/Actions/MenuItemsChoice',
20
+ id: 'components-menuitemschoice',
20
21
  argTypes: {
21
22
  onHover: { action: 'onHover' },
22
23
  onSelect: { action: 'onSelect' },
@@ -335,10 +335,10 @@ function UnforwardedModal(
335
335
  <>
336
336
  <Spacer
337
337
  marginBottom={ 0 }
338
- marginLeft={ 3 }
338
+ marginLeft={ 2 }
339
339
  />
340
340
  <Button
341
- size="small"
341
+ size="compact"
342
342
  onClick={ (
343
343
  event: React.MouseEvent< HTMLButtonElement >
344
344
  ) =>
@@ -111,7 +111,7 @@ export const WithHeaderActions: StoryFn< typeof Modal > = Template.bind( {} );
111
111
  WithHeaderActions.args = {
112
112
  ...Default.args,
113
113
  headerActions: (
114
- <Button icon={ fullscreen } label="Fullscreen mode" size="small" />
114
+ <Button icon={ fullscreen } label="Fullscreen mode" size="compact" />
115
115
  ),
116
116
  children: <div style={ { height: '200px' } } />,
117
117
  };
@@ -14,7 +14,8 @@ import { useState } from '@wordpress/element';
14
14
  import NumberControl from '..';
15
15
 
16
16
  const meta: Meta< typeof NumberControl > = {
17
- title: 'Components (Experimental)/NumberControl',
17
+ title: 'Components (Experimental)/Selection & Input/NumberControl',
18
+ id: 'components-experimental-numbercontrol',
18
19
  component: NumberControl,
19
20
  argTypes: {
20
21
  onChange: { action: 'onChange' },
@@ -45,6 +45,7 @@ const Template: StoryFn< typeof Placeholder > = ( args ) => {
45
45
  <div>
46
46
  <TextControl
47
47
  __nextHasNoMarginBottom
48
+ __next40pxDefaultSize
48
49
  label="Sample Field"
49
50
  placeholder="Enter something here"
50
51
  value={ value }
@@ -2,7 +2,6 @@
2
2
  * Internal dependencies
3
3
  */
4
4
  import { positionToPlacement as __experimentalPopoverLegacyPositionToPlacement } from './popover/utils';
5
- import { createPrivateSlotFill } from './slot-fill';
6
5
  import { Menu } from './menu';
7
6
  import { ComponentsContext } from './context/context-system-provider';
8
7
  import Theme from './theme';
@@ -13,7 +12,6 @@ import { lock } from './lock-unlock';
13
12
  export const privateApis = {};
14
13
  lock( privateApis, {
15
14
  __experimentalPopoverLegacyPositionToPlacement,
16
- createPrivateSlotFill,
17
15
  ComponentsContext,
18
16
  Tabs,
19
17
  Theme,
@@ -15,7 +15,8 @@ import RadioControl from '..';
15
15
 
16
16
  const meta: Meta< typeof RadioControl > = {
17
17
  component: RadioControl,
18
- title: 'Components/RadioControl',
18
+ title: 'Components/Selection & Input/Common/RadioControl',
19
+ id: 'components-radiocontrol',
19
20
  argTypes: {
20
21
  onChange: {
21
22
  action: 'onChange',
@@ -88,9 +88,10 @@ import { RangeControl } from '@wordpress/components';
88
88
  const MyRangeControl = () => {
89
89
  const [ columns, setColumns ] = useState( 2 );
90
90
 
91
- return(
91
+ return (
92
92
  <RangeControl
93
93
  __nextHasNoMarginBottom
94
+ __next40pxDefaultSize
94
95
  label="Columns"
95
96
  value={ columns }
96
97
  onChange={ ( value ) => setColumns( value ) }
@@ -153,7 +154,6 @@ Disables the `input`, preventing new values from being applied.
153
154
  - Required: No
154
155
  - Platform: Web
155
156
 
156
-
157
157
  ### `help`: `string|Element`
158
158
 
159
159
  If this property is added, a help text will be generated using help property as the content.
@@ -165,7 +165,7 @@ If this property is added, a help text will be generated using help property as
165
165
 
166
166
  Provides control over whether the label will only be visible to screen readers.
167
167
 
168
- - Required: No
168
+ - Required: No
169
169
 
170
170
  ### `icon`: `string`
171
171
 
@@ -334,6 +334,7 @@ The minimum amount by which `value` changes. It is also a factor in validation a
334
334
 
335
335
  - Required: No
336
336
  - Platform: Web
337
+
337
338
  ### `trackColor`: `CSSProperties[ 'color' ]`
338
339
 
339
340
  CSS color string to customize the track element's background.
@@ -38,6 +38,7 @@ import {
38
38
  import type { RangeControlProps } from './types';
39
39
  import type { WordPressComponentProps } from '../context';
40
40
  import { space } from '../utils/space';
41
+ import { maybeWarnDeprecated36pxSize } from '../utils/deprecated-36px-size';
41
42
 
42
43
  const noop = () => {};
43
44
 
@@ -96,6 +97,7 @@ function UnforwardedRangeControl(
96
97
  trackColor,
97
98
  value: valueProp,
98
99
  withInputField = true,
100
+ __shouldNotWarnDeprecated36pxSize,
99
101
  ...otherProps
100
102
  } = props;
101
103
 
@@ -229,6 +231,14 @@ function UnforwardedRangeControl(
229
231
  [ isRTL() ? 'right' : 'left' ]: fillValueOffset,
230
232
  };
231
233
 
234
+ // Add default size deprecation warning.
235
+ maybeWarnDeprecated36pxSize( {
236
+ componentName: 'RangeControl',
237
+ __next40pxDefaultSize,
238
+ size: undefined,
239
+ __shouldNotWarnDeprecated36pxSize,
240
+ } );
241
+
232
242
  return (
233
243
  <BaseControl
234
244
  __nextHasNoMarginBottom={ __nextHasNoMarginBottom }
@@ -384,6 +394,7 @@ function UnforwardedRangeControl(
384
394
  * return (
385
395
  * <RangeControl
386
396
  * __nextHasNoMarginBottom
397
+ * __next40pxDefaultSize
387
398
  * help="Please select how transparent you would like this."
388
399
  * initialPosition={50}
389
400
  * label="Opacity"