@wordpress/components 19.1.2 → 19.2.1-next.33ec3857e2.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 (418) hide show
  1. package/CHANGELOG.md +53 -4
  2. package/README.md +0 -1
  3. package/build/angle-picker-control/index.js +2 -0
  4. package/build/angle-picker-control/index.js.map +1 -1
  5. package/build/button/index.native.js +13 -3
  6. package/build/button/index.native.js.map +1 -1
  7. package/build/checkbox-control/index.js +1 -1
  8. package/build/checkbox-control/index.js.map +1 -1
  9. package/build/clipboard-button/index.js +1 -2
  10. package/build/clipboard-button/index.js.map +1 -1
  11. package/build/color-palette/index.js +36 -9
  12. package/build/color-palette/index.js.map +1 -1
  13. package/build/color-picker/color-display.js +4 -2
  14. package/build/color-picker/color-display.js.map +1 -1
  15. package/build/color-picker/hex-input.js +3 -1
  16. package/build/color-picker/hex-input.js.map +1 -1
  17. package/build/color-picker/input-with-slider.js +3 -1
  18. package/build/color-picker/input-with-slider.js.map +1 -1
  19. package/build/confirm-dialog/component.js +103 -0
  20. package/build/confirm-dialog/component.js.map +1 -0
  21. package/build/confirm-dialog/index.js +16 -0
  22. package/build/confirm-dialog/index.js.map +1 -0
  23. package/build/confirm-dialog/types.js +6 -0
  24. package/build/confirm-dialog/types.js.map +1 -0
  25. package/build/custom-gradient-bar/constants.js +1 -6
  26. package/build/custom-gradient-bar/constants.js.map +1 -1
  27. package/build/custom-gradient-bar/control-points.js +52 -21
  28. package/build/custom-gradient-bar/control-points.js.map +1 -1
  29. package/build/custom-gradient-bar/index.js +5 -1
  30. package/build/custom-gradient-bar/index.js.map +1 -1
  31. package/build/custom-gradient-picker/index.js +4 -1
  32. package/build/custom-gradient-picker/index.js.map +1 -1
  33. package/build/date-time/date.js +63 -86
  34. package/build/date-time/date.js.map +1 -1
  35. package/build/date-time/utils.js +32 -0
  36. package/build/date-time/utils.js.map +1 -0
  37. package/build/divider/component.js +8 -7
  38. package/build/divider/component.js.map +1 -1
  39. package/build/divider/styles.js +38 -13
  40. package/build/divider/styles.js.map +1 -1
  41. package/build/drop-zone/index.js +14 -6
  42. package/build/drop-zone/index.js.map +1 -1
  43. package/build/drop-zone/provider.js +1 -0
  44. package/build/drop-zone/provider.js.map +1 -1
  45. package/build/flyout/styles.js +2 -2
  46. package/build/flyout/styles.js.map +1 -1
  47. package/build/focusable-iframe/index.js +1 -0
  48. package/build/focusable-iframe/index.js.map +1 -1
  49. package/build/font-size-picker/index.js +10 -9
  50. package/build/font-size-picker/index.js.map +1 -1
  51. package/build/font-size-picker/utils.js +28 -17
  52. package/build/font-size-picker/utils.js.map +1 -1
  53. package/build/gradient-picker/index.js +3 -1
  54. package/build/gradient-picker/index.js.map +1 -1
  55. package/build/higher-order/with-focus-outside/index.js +2 -0
  56. package/build/higher-order/with-focus-outside/index.js.map +1 -1
  57. package/build/index.js +8 -0
  58. package/build/index.js.map +1 -1
  59. package/build/input-control/styles/input-control-styles.js +44 -32
  60. package/build/input-control/styles/input-control-styles.js.map +1 -1
  61. package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js +10 -3
  62. package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
  63. package/build/mobile/color-settings/index.native.js +4 -2
  64. package/build/mobile/color-settings/index.native.js.map +1 -1
  65. package/build/mobile/color-settings/palette.screen.native.js +7 -6
  66. package/build/mobile/color-settings/palette.screen.native.js.map +1 -1
  67. package/build/mobile/global-styles-context/utils.native.js +1 -1
  68. package/build/mobile/global-styles-context/utils.native.js.map +1 -1
  69. package/build/mobile/gridicons/index.native.js +3 -1
  70. package/build/mobile/gridicons/index.native.js.map +1 -1
  71. package/build/mobile/link-picker/index.native.js +45 -4
  72. package/build/mobile/link-picker/index.native.js.map +1 -1
  73. package/build/mobile/link-settings/index.native.js +10 -0
  74. package/build/mobile/link-settings/index.native.js.map +1 -1
  75. package/build/modal/aria-helper.js +2 -0
  76. package/build/modal/aria-helper.js.map +1 -1
  77. package/build/modal/index.js +17 -8
  78. package/build/modal/index.js.map +1 -1
  79. package/build/palette-edit/index.js +13 -11
  80. package/build/palette-edit/index.js.map +1 -1
  81. package/build/select-control/styles/select-control-styles.js +33 -9
  82. package/build/select-control/styles/select-control-styles.js.map +1 -1
  83. package/build/style-provider/index.js +2 -0
  84. package/build/style-provider/index.js.map +1 -1
  85. package/build/toggle-group-control/toggle-group-control/component.js +7 -2
  86. package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
  87. package/build/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js +25 -14
  88. package/build/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js.map +1 -1
  89. package/build/toggle-group-control/toggle-group-control-option/styles.js +8 -8
  90. package/build/toggle-group-control/toggle-group-control-option/styles.js.map +1 -1
  91. package/build/tools-panel/styles.js +12 -10
  92. package/build/tools-panel/styles.js.map +1 -1
  93. package/build/tools-panel/tools-panel/component.js +6 -8
  94. package/build/tools-panel/tools-panel/component.js.map +1 -1
  95. package/build/tools-panel/tools-panel/hook.js +48 -17
  96. package/build/tools-panel/tools-panel/hook.js.map +1 -1
  97. package/build/tools-panel/tools-panel-item/hook.js +5 -1
  98. package/build/tools-panel/tools-panel-item/hook.js.map +1 -1
  99. package/build/unit-control/styles/unit-control-styles.js +23 -41
  100. package/build/unit-control/styles/unit-control-styles.js.map +1 -1
  101. package/build/z-stack/component.js.map +1 -1
  102. package/build/z-stack/styles.js +10 -8
  103. package/build/z-stack/styles.js.map +1 -1
  104. package/build-module/angle-picker-control/index.js +2 -0
  105. package/build-module/angle-picker-control/index.js.map +1 -1
  106. package/build-module/button/index.native.js +13 -3
  107. package/build-module/button/index.native.js.map +1 -1
  108. package/build-module/checkbox-control/index.js +1 -1
  109. package/build-module/checkbox-control/index.js.map +1 -1
  110. package/build-module/clipboard-button/index.js +1 -2
  111. package/build-module/clipboard-button/index.js.map +1 -1
  112. package/build-module/color-palette/index.js +34 -10
  113. package/build-module/color-palette/index.js.map +1 -1
  114. package/build-module/color-picker/color-display.js +3 -2
  115. package/build-module/color-picker/color-display.js.map +1 -1
  116. package/build-module/color-picker/hex-input.js +2 -1
  117. package/build-module/color-picker/hex-input.js.map +1 -1
  118. package/build-module/color-picker/input-with-slider.js +2 -1
  119. package/build-module/color-picker/input-with-slider.js.map +1 -1
  120. package/build-module/confirm-dialog/component.js +84 -0
  121. package/build-module/confirm-dialog/component.js.map +1 -0
  122. package/build-module/confirm-dialog/index.js +6 -0
  123. package/build-module/confirm-dialog/index.js.map +1 -0
  124. package/build-module/confirm-dialog/types.js +2 -0
  125. package/build-module/confirm-dialog/types.js.map +1 -0
  126. package/build-module/custom-gradient-bar/constants.js +0 -4
  127. package/build-module/custom-gradient-bar/constants.js.map +1 -1
  128. package/build-module/custom-gradient-bar/control-points.js +54 -23
  129. package/build-module/custom-gradient-bar/control-points.js.map +1 -1
  130. package/build-module/custom-gradient-bar/index.js +5 -1
  131. package/build-module/custom-gradient-bar/index.js.map +1 -1
  132. package/build-module/custom-gradient-picker/index.js +4 -1
  133. package/build-module/custom-gradient-picker/index.js.map +1 -1
  134. package/build-module/date-time/date.js +63 -87
  135. package/build-module/date-time/date.js.map +1 -1
  136. package/build-module/date-time/utils.js +20 -0
  137. package/build-module/date-time/utils.js.map +1 -0
  138. package/build-module/divider/component.js +8 -7
  139. package/build-module/divider/component.js.map +1 -1
  140. package/build-module/divider/styles.js +37 -13
  141. package/build-module/divider/styles.js.map +1 -1
  142. package/build-module/drop-zone/index.js +14 -6
  143. package/build-module/drop-zone/index.js.map +1 -1
  144. package/build-module/drop-zone/provider.js +1 -0
  145. package/build-module/drop-zone/provider.js.map +1 -1
  146. package/build-module/flyout/styles.js +2 -2
  147. package/build-module/flyout/styles.js.map +1 -1
  148. package/build-module/focusable-iframe/index.js +1 -0
  149. package/build-module/focusable-iframe/index.js.map +1 -1
  150. package/build-module/font-size-picker/index.js +10 -9
  151. package/build-module/font-size-picker/index.js.map +1 -1
  152. package/build-module/font-size-picker/utils.js +28 -17
  153. package/build-module/font-size-picker/utils.js.map +1 -1
  154. package/build-module/gradient-picker/index.js +3 -1
  155. package/build-module/gradient-picker/index.js.map +1 -1
  156. package/build-module/higher-order/with-focus-outside/index.js +1 -0
  157. package/build-module/higher-order/with-focus-outside/index.js.map +1 -1
  158. package/build-module/index.js +1 -0
  159. package/build-module/index.js.map +1 -1
  160. package/build-module/input-control/styles/input-control-styles.js +44 -32
  161. package/build-module/input-control/styles/input-control-styles.js.map +1 -1
  162. package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js +10 -4
  163. package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
  164. package/build-module/mobile/color-settings/index.native.js +4 -2
  165. package/build-module/mobile/color-settings/index.native.js.map +1 -1
  166. package/build-module/mobile/color-settings/palette.screen.native.js +7 -6
  167. package/build-module/mobile/color-settings/palette.screen.native.js.map +1 -1
  168. package/build-module/mobile/global-styles-context/utils.native.js +1 -1
  169. package/build-module/mobile/global-styles-context/utils.native.js.map +1 -1
  170. package/build-module/mobile/gridicons/index.native.js +1 -0
  171. package/build-module/mobile/gridicons/index.native.js.map +1 -1
  172. package/build-module/mobile/link-picker/index.native.js +50 -8
  173. package/build-module/mobile/link-picker/index.native.js.map +1 -1
  174. package/build-module/mobile/link-settings/index.native.js +10 -0
  175. package/build-module/mobile/link-settings/index.native.js.map +1 -1
  176. package/build-module/modal/aria-helper.js +2 -0
  177. package/build-module/modal/aria-helper.js.map +1 -1
  178. package/build-module/modal/index.js +15 -8
  179. package/build-module/modal/index.js.map +1 -1
  180. package/build-module/palette-edit/index.js +13 -11
  181. package/build-module/palette-edit/index.js.map +1 -1
  182. package/build-module/select-control/styles/select-control-styles.js +33 -9
  183. package/build-module/select-control/styles/select-control-styles.js.map +1 -1
  184. package/build-module/style-provider/index.js +1 -0
  185. package/build-module/style-provider/index.js.map +1 -1
  186. package/build-module/toggle-group-control/toggle-group-control/component.js +8 -3
  187. package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
  188. package/build-module/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js +25 -14
  189. package/build-module/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js.map +1 -1
  190. package/build-module/toggle-group-control/toggle-group-control-option/styles.js +8 -8
  191. package/build-module/toggle-group-control/toggle-group-control-option/styles.js.map +1 -1
  192. package/build-module/tools-panel/styles.js +12 -11
  193. package/build-module/tools-panel/styles.js.map +1 -1
  194. package/build-module/tools-panel/tools-panel/component.js +5 -8
  195. package/build-module/tools-panel/tools-panel/component.js.map +1 -1
  196. package/build-module/tools-panel/tools-panel/hook.js +48 -17
  197. package/build-module/tools-panel/tools-panel/hook.js.map +1 -1
  198. package/build-module/tools-panel/tools-panel-item/hook.js +5 -1
  199. package/build-module/tools-panel/tools-panel-item/hook.js.map +1 -1
  200. package/build-module/unit-control/styles/unit-control-styles.js +23 -41
  201. package/build-module/unit-control/styles/unit-control-styles.js.map +1 -1
  202. package/build-module/z-stack/component.js.map +1 -1
  203. package/build-module/z-stack/styles.js +13 -8
  204. package/build-module/z-stack/styles.js.map +1 -1
  205. package/build-style/style-rtl.css +34 -12
  206. package/build-style/style.css +34 -12
  207. package/build-types/base-field/hook.d.ts +16 -16
  208. package/build-types/card/card/hook.d.ts +16 -16
  209. package/build-types/card/card-body/hook.d.ts +16 -16
  210. package/build-types/card/card-divider/hook.d.ts +18 -18
  211. package/build-types/card/card-footer/hook.d.ts +17 -17
  212. package/build-types/card/card-header/hook.d.ts +16 -16
  213. package/build-types/card/card-media/hook.d.ts +16 -16
  214. package/build-types/divider/component.d.ts +8 -7
  215. package/build-types/divider/component.d.ts.map +1 -1
  216. package/build-types/divider/styles.d.ts +2 -2
  217. package/build-types/divider/styles.d.ts.map +1 -1
  218. package/build-types/divider/types.d.ts +5 -5
  219. package/build-types/divider/types.d.ts.map +1 -1
  220. package/build-types/elevation/hook.d.ts +15 -15
  221. package/build-types/flex/flex/hook.d.ts +16 -16
  222. package/build-types/flex/flex-block/hook.d.ts +16 -16
  223. package/build-types/flex/flex-item/hook.d.ts +16 -16
  224. package/build-types/flyout/flyout/hook.d.ts +17 -17
  225. package/build-types/flyout/styles.d.ts +7 -9
  226. package/build-types/flyout/styles.d.ts.map +1 -1
  227. package/build-types/grid/hook.d.ts +16 -16
  228. package/build-types/h-stack/hook.d.ts +16 -16
  229. package/build-types/heading/hook.d.ts +16 -16
  230. package/build-types/input-control/index.d.ts +1 -1
  231. package/build-types/input-control/index.d.ts.map +1 -1
  232. package/build-types/input-control/input-field.d.ts +1 -1
  233. package/build-types/input-control/input-field.d.ts.map +1 -1
  234. package/build-types/input-control/styles/input-control-styles.d.ts +1 -2
  235. package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
  236. package/build-types/input-control/types.d.ts +2 -1
  237. package/build-types/input-control/types.d.ts.map +1 -1
  238. package/build-types/item-group/item/hook.d.ts +16 -16
  239. package/build-types/item-group/item-group/hook.d.ts +16 -16
  240. package/build-types/number-control/styles/number-control-styles.d.ts +1 -1
  241. package/build-types/scrollable/hook.d.ts +16 -16
  242. package/build-types/select-control/styles/select-control-styles.d.ts.map +1 -1
  243. package/build-types/select-control/types.d.ts +1 -1
  244. package/build-types/select-control/types.d.ts.map +1 -1
  245. package/build-types/spacer/hook.d.ts +16 -16
  246. package/build-types/surface/hook.d.ts +16 -16
  247. package/build-types/text/hook.d.ts +16 -16
  248. package/build-types/toggle-group-control/toggle-group-control/component.d.ts.map +1 -1
  249. package/build-types/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.d.ts.map +1 -1
  250. package/build-types/toggle-group-control/toggle-group-control-option/styles.d.ts.map +1 -1
  251. package/build-types/tools-panel/styles.d.ts.map +1 -1
  252. package/build-types/tools-panel/tools-panel/component.d.ts.map +1 -1
  253. package/build-types/tools-panel/tools-panel/hook.d.ts +16 -16
  254. package/build-types/tools-panel/tools-panel/hook.d.ts.map +1 -1
  255. package/build-types/tools-panel/tools-panel-header/hook.d.ts +16 -16
  256. package/build-types/tools-panel/tools-panel-item/hook.d.ts +16 -16
  257. package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
  258. package/build-types/tools-panel/types.d.ts +2 -1
  259. package/build-types/tools-panel/types.d.ts.map +1 -1
  260. package/build-types/truncate/hook.d.ts +16 -16
  261. package/build-types/ui/control-group/hook.d.ts +18 -18
  262. package/build-types/ui/control-label/hook.d.ts +16 -16
  263. package/build-types/ui/form-group/form-group.d.ts +4 -4
  264. package/build-types/ui/form-group/use-form-group.d.ts +55 -55
  265. package/build-types/unit-control/index.d.ts +1 -1
  266. package/build-types/unit-control/index.d.ts.map +1 -1
  267. package/build-types/unit-control/styles/unit-control-styles.d.ts +1 -0
  268. package/build-types/unit-control/styles/unit-control-styles.d.ts.map +1 -1
  269. package/build-types/unit-control/types.d.ts +2 -2
  270. package/build-types/unit-control/types.d.ts.map +1 -1
  271. package/build-types/v-stack/hook.d.ts +16 -16
  272. package/build-types/z-stack/component.d.ts +1 -1
  273. package/build-types/z-stack/styles.d.ts.map +1 -1
  274. package/package.json +21 -23
  275. package/src/alignment-matrix-control/stories/index.js +1 -1
  276. package/src/angle-picker-control/index.js +2 -0
  277. package/src/base-control/stories/index.js +1 -1
  278. package/src/button/index.native.js +15 -1
  279. package/src/button/stories/index.js +1 -1
  280. package/src/button/style.scss +14 -0
  281. package/src/card/card/README.md +3 -3
  282. package/src/card/stories/index.js +1 -1
  283. package/src/card/test/__snapshots__/index.js.snap +6 -6
  284. package/src/checkbox-control/index.js +1 -1
  285. package/src/checkbox-control/stories/index.js +1 -1
  286. package/src/clipboard-button/index.js +1 -2
  287. package/src/color-indicator/stories/index.js +1 -1
  288. package/src/color-indicator/style.scss +5 -8
  289. package/src/color-palette/index.js +37 -9
  290. package/src/color-palette/stories/index.js +1 -1
  291. package/src/color-palette/style.scss +10 -1
  292. package/src/color-palette/test/__snapshots__/index.js.snap +30 -21
  293. package/src/color-picker/color-display.tsx +3 -2
  294. package/src/color-picker/hex-input.tsx +2 -1
  295. package/src/color-picker/input-with-slider.tsx +2 -1
  296. package/src/color-picker/stories/index.js +1 -1
  297. package/src/combobox-control/README.md +2 -2
  298. package/src/confirm-dialog/README.md +128 -0
  299. package/src/confirm-dialog/component.tsx +114 -0
  300. package/src/confirm-dialog/index.tsx +6 -0
  301. package/src/confirm-dialog/stories/index.js +120 -0
  302. package/src/confirm-dialog/test/index.js +302 -0
  303. package/src/confirm-dialog/types.ts +26 -0
  304. package/src/custom-gradient-bar/constants.js +0 -5
  305. package/src/custom-gradient-bar/control-points.js +40 -9
  306. package/src/custom-gradient-bar/index.js +8 -0
  307. package/src/custom-gradient-picker/index.js +9 -1
  308. package/src/custom-gradient-picker/style.scss +0 -4
  309. package/src/date-time/README.md +7 -0
  310. package/src/date-time/date.js +67 -84
  311. package/src/date-time/stories/index.js +1 -1
  312. package/src/date-time/stories/time.js +1 -1
  313. package/src/date-time/test/date.js +3 -29
  314. package/src/date-time/test/utils.js +32 -0
  315. package/src/date-time/utils.js +18 -0
  316. package/src/dimension-control/README.md +1 -1
  317. package/src/divider/README.md +33 -5
  318. package/src/divider/component.tsx +8 -7
  319. package/src/divider/stories/index.js +43 -17
  320. package/src/divider/styles.ts +53 -16
  321. package/src/divider/test/__snapshots__/index.js.snap +11 -11
  322. package/src/divider/test/index.js +4 -4
  323. package/src/divider/types.ts +5 -5
  324. package/src/drop-zone/index.js +14 -6
  325. package/src/drop-zone/provider.js +1 -0
  326. package/src/dropdown-menu/stories/index.js +1 -1
  327. package/src/duotone-picker/README.md +1 -1
  328. package/src/elevation/stories/index.js +1 -1
  329. package/src/external-link/stories/index.js +1 -1
  330. package/src/flyout/styles.ts +4 -2
  331. package/src/focusable-iframe/index.js +1 -0
  332. package/src/font-size-picker/index.js +27 -13
  333. package/src/font-size-picker/stories/index.js +63 -1
  334. package/src/font-size-picker/test/index.js +87 -0
  335. package/src/font-size-picker/test/util.js +74 -0
  336. package/src/font-size-picker/utils.js +31 -17
  337. package/src/form-token-field/stories/index.js +1 -1
  338. package/src/gradient-picker/index.js +4 -0
  339. package/src/gradient-picker/stories/index.js +1 -1
  340. package/src/grid/stories/index.js +1 -1
  341. package/src/guide/stories/index.js +1 -1
  342. package/src/higher-order/with-focus-outside/index.js +2 -0
  343. package/src/icon/stories/index.js +1 -1
  344. package/src/index.js +1 -0
  345. package/src/input-control/stories/index.js +2 -1
  346. package/src/input-control/styles/input-control-styles.tsx +16 -6
  347. package/src/input-control/types.ts +3 -1
  348. package/src/item-group/stories/index.js +84 -2
  349. package/src/menu-item/README.md +2 -2
  350. package/src/mobile/bottom-sheet/link-suggestion-item-cell.native.js +6 -2
  351. package/src/mobile/color-settings/index.native.js +2 -0
  352. package/src/mobile/color-settings/palette.screen.native.js +8 -5
  353. package/src/mobile/color-settings/style.native.scss +1 -1
  354. package/src/mobile/global-styles-context/utils.native.js +1 -1
  355. package/src/mobile/gridicons/index.native.js +3 -3
  356. package/src/mobile/inserter-button/style.native.scss +1 -0
  357. package/src/mobile/link-picker/index.native.js +41 -7
  358. package/src/mobile/link-settings/index.native.js +11 -0
  359. package/src/mobile/link-settings/test/edit.native.js +432 -0
  360. package/src/modal/README.md +10 -0
  361. package/src/modal/aria-helper.js +2 -0
  362. package/src/modal/index.js +72 -55
  363. package/src/modal/stories/index.js +6 -1
  364. package/src/modal/style.scss +9 -0
  365. package/src/modal/test/index.js +11 -0
  366. package/src/navigation/README.md +0 -9
  367. package/src/notice/stories/index.js +1 -1
  368. package/src/number-control/stories/index.js +1 -1
  369. package/src/palette-edit/index.js +15 -16
  370. package/src/palette-edit/style.scss +5 -0
  371. package/src/panel/stories/index.js +1 -1
  372. package/src/placeholder/stories/index.js +1 -1
  373. package/src/popover/stories/index.js +1 -1
  374. package/src/query-controls/README.md +138 -6
  375. package/src/radio-group/README.md +4 -1
  376. package/src/range-control/stories/index.js +1 -1
  377. package/src/resizable-box/stories/index.js +1 -1
  378. package/src/scrollable/stories/index.js +1 -1
  379. package/src/search-control/stories/index.js +1 -1
  380. package/src/select-control/stories/index.js +2 -1
  381. package/src/select-control/styles/select-control-styles.ts +25 -2
  382. package/src/select-control/types.ts +1 -1
  383. package/src/slot-fill/stories/index.js +1 -1
  384. package/src/snackbar/stories/index.js +1 -1
  385. package/src/spacer/stories/index.js +1 -1
  386. package/src/style-provider/index.js +2 -0
  387. package/src/surface/stories/index.js +1 -1
  388. package/src/tab-panel/stories/index.js +1 -1
  389. package/src/text-control/stories/index.js +1 -1
  390. package/src/text-highlight/stories/index.js +1 -1
  391. package/src/textarea-control/stories/index.js +1 -1
  392. package/src/tip/stories/index.js +1 -1
  393. package/src/toggle-control/stories/index.js +1 -1
  394. package/src/toggle-group-control/stories/index.js +1 -1
  395. package/src/toggle-group-control/toggle-group-control/component.tsx +7 -2
  396. package/src/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.tsx +24 -9
  397. package/src/toggle-group-control/toggle-group-control-option/styles.ts +3 -0
  398. package/src/toolbar-button/stories/index.js +1 -1
  399. package/src/tools-panel/stories/index.js +237 -0
  400. package/src/tools-panel/styles.ts +41 -1
  401. package/src/tools-panel/test/index.js +234 -1
  402. package/src/tools-panel/tools-panel/README.md +9 -0
  403. package/src/tools-panel/tools-panel/component.tsx +2 -5
  404. package/src/tools-panel/tools-panel/hook.ts +50 -18
  405. package/src/tools-panel/tools-panel-item/hook.ts +5 -1
  406. package/src/tools-panel/types.ts +5 -1
  407. package/src/tooltip/stories/index.js +1 -1
  408. package/src/tree-select/stories/index.js +1 -1
  409. package/src/truncate/stories/index.js +1 -1
  410. package/src/unit-control/stories/index.js +19 -1
  411. package/src/unit-control/styles/unit-control-styles.ts +33 -46
  412. package/src/unit-control/types.ts +5 -2
  413. package/src/z-stack/README.md +1 -1
  414. package/src/z-stack/component.tsx +1 -1
  415. package/src/z-stack/stories/index.js +1 -1
  416. package/src/z-stack/styles.ts +7 -2
  417. package/tsconfig.json +6 -2
  418. package/tsconfig.tsbuildinfo +1 -1
@@ -13,50 +13,50 @@ export function useControlLabel(props: import('../context').WordPressComponentPr
13
13
  color?: string | undefined;
14
14
  id?: string | undefined;
15
15
  lang?: string | undefined;
16
- role?: string | undefined;
16
+ role?: import("react").AriaRole | undefined;
17
17
  tabIndex?: number | undefined;
18
18
  'aria-activedescendant'?: string | undefined;
19
- 'aria-atomic'?: boolean | "true" | "false" | undefined;
20
- 'aria-autocomplete'?: "none" | "list" | "both" | "inline" | undefined;
21
- 'aria-busy'?: boolean | "true" | "false" | undefined;
19
+ 'aria-atomic'?: (boolean | "true" | "false") | undefined;
20
+ 'aria-autocomplete'?: "list" | "none" | "both" | "inline" | undefined;
21
+ 'aria-busy'?: (boolean | "true" | "false") | undefined;
22
22
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
23
23
  'aria-colcount'?: number | undefined;
24
24
  'aria-colindex'?: number | undefined;
25
25
  'aria-colspan'?: number | undefined;
26
26
  'aria-controls'?: string | undefined;
27
- 'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date" | undefined;
27
+ 'aria-current'?: boolean | "time" | "true" | "false" | "step" | "date" | "page" | "location" | undefined;
28
28
  'aria-describedby'?: string | undefined;
29
29
  'aria-details'?: string | undefined;
30
- 'aria-disabled'?: boolean | "true" | "false" | undefined;
30
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
31
31
  'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
32
32
  'aria-errormessage'?: string | undefined;
33
- 'aria-expanded'?: boolean | "true" | "false" | undefined;
33
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
34
34
  'aria-flowto'?: string | undefined;
35
- 'aria-grabbed'?: boolean | "true" | "false" | undefined;
36
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
37
- 'aria-hidden'?: boolean | "true" | "false" | undefined;
35
+ 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
36
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
37
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
38
38
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
39
39
  'aria-keyshortcuts'?: string | undefined;
40
40
  'aria-label'?: string | undefined;
41
41
  'aria-labelledby'?: string | undefined;
42
42
  'aria-level'?: number | undefined;
43
43
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
44
- 'aria-modal'?: boolean | "true" | "false" | undefined;
45
- 'aria-multiline'?: boolean | "true" | "false" | undefined;
46
- 'aria-multiselectable'?: boolean | "true" | "false" | undefined;
44
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
45
+ 'aria-multiline'?: (boolean | "true" | "false") | undefined;
46
+ 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
47
47
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
48
48
  'aria-owns'?: string | undefined;
49
49
  'aria-placeholder'?: string | undefined;
50
50
  'aria-posinset'?: number | undefined;
51
51
  'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
52
- 'aria-readonly'?: boolean | "true" | "false" | undefined;
52
+ 'aria-readonly'?: (boolean | "true" | "false") | undefined;
53
53
  'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
54
- 'aria-required'?: boolean | "true" | "false" | undefined;
54
+ 'aria-required'?: (boolean | "true" | "false") | undefined;
55
55
  'aria-roledescription'?: string | undefined;
56
56
  'aria-rowcount'?: number | undefined;
57
57
  'aria-rowindex'?: number | undefined;
58
58
  'aria-rowspan'?: number | undefined;
59
- 'aria-selected'?: boolean | "true" | "false" | undefined;
59
+ 'aria-selected'?: (boolean | "true" | "false") | undefined;
60
60
  'aria-setsize'?: number | undefined;
61
61
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
62
62
  'aria-valuemax'?: number | undefined;
@@ -22,11 +22,11 @@ declare const ConnectedFormGroup: import("../context").WordPressComponent<import
22
22
  labelHidden?: boolean | undefined;
23
23
  id?: import("react").ReactText | undefined;
24
24
  } & {
25
- alignLabel?: import("react/node_modules/csstype").Property.TextAlign | undefined;
25
+ alignLabel?: import("csstype").Property.TextAlign | undefined;
26
26
  help?: import("react").ReactNode;
27
27
  horizontal?: boolean | undefined;
28
28
  label?: import("react").ReactNode;
29
- spacing?: import("react/node_modules/csstype").Property.Width<string | number> | undefined;
29
+ spacing?: import("csstype").Property.Width<string | number> | undefined;
30
30
  truncate?: boolean | undefined;
31
31
  } & import("../../grid/types").Props & {
32
32
  horizontal: true;
@@ -41,11 +41,11 @@ declare const ConnectedFormGroup: import("../context").WordPressComponent<import
41
41
  labelHidden?: boolean | undefined;
42
42
  id?: import("react").ReactText | undefined;
43
43
  } & {
44
- alignLabel?: import("react/node_modules/csstype").Property.TextAlign | undefined;
44
+ alignLabel?: import("csstype").Property.TextAlign | undefined;
45
45
  help?: import("react").ReactNode;
46
46
  horizontal?: boolean | undefined;
47
47
  label?: import("react").ReactNode;
48
- spacing?: import("react/node_modules/csstype").Property.Width<string | number> | undefined;
48
+ spacing?: import("csstype").Property.Width<string | number> | undefined;
49
49
  truncate?: boolean | undefined;
50
50
  } & {
51
51
  horizontal: false;
@@ -4,7 +4,7 @@
4
4
  export function useFormGroup(props: import('../context').WordPressComponentProps<import('./types').FormGroupProps, 'div'>): {
5
5
  className: string;
6
6
  contentProps: {
7
- alignLabel: import("react/node_modules/csstype").Property.TextAlign;
7
+ alignLabel: import("csstype").Property.TextAlign;
8
8
  children: import("react").ReactNode;
9
9
  help: import("react").ReactNode;
10
10
  id: string | number;
@@ -14,88 +14,88 @@ export function useFormGroup(props: import('../context').WordPressComponentProps
14
14
  truncate: boolean;
15
15
  };
16
16
  horizontal: boolean;
17
- align?: (import("react/node_modules/csstype").Property.TextAlign & import("react/node_modules/csstype").Property.AlignItems) | undefined;
17
+ align?: (import("csstype").Property.TextAlign & import("csstype").Property.AlignItems) | undefined;
18
18
  adjustLineHeightForInnerControls?: (boolean | "small" | "medium" | "large" | "xSmall") | undefined;
19
- color?: import("react/node_modules/csstype").Property.Color | undefined;
20
- display?: import("react/node_modules/csstype").Property.Display | undefined;
19
+ color?: import("csstype").Property.Color | undefined;
20
+ display?: import("csstype").Property.Display | undefined;
21
21
  isDestructive?: boolean | undefined;
22
22
  highlightEscape?: boolean | undefined;
23
23
  highlightCaseSensitive?: boolean | undefined;
24
24
  highlightSanitize?: ((text: string) => string) | undefined;
25
25
  isBlock?: boolean | undefined;
26
- lineHeight?: import("react/node_modules/csstype").Property.LineHeight<string | number> | undefined;
27
- optimizeReadabilityFor?: import("react/node_modules/csstype").Property.Color | undefined;
26
+ lineHeight?: import("csstype").Property.LineHeight<string | number> | undefined;
27
+ optimizeReadabilityFor?: import("csstype").Property.Color | undefined;
28
28
  size?: ((string | number | (string & {})) & ("small" | "medium" | "large")) | undefined;
29
29
  upperCase?: boolean | undefined;
30
30
  variant?: "muted" | undefined;
31
- weight?: import("react/node_modules/csstype").Property.FontWeight | (900 | 700 | 300 | 200 | 400 | 500 | 100 | 600 | 800) | undefined;
32
- letterSpacing?: import("react/node_modules/csstype").Property.LetterSpacing<string | number> | undefined;
31
+ weight?: import("csstype").Property.FontWeight | (900 | 700 | 300 | 200 | 400 | 500 | 100 | 600 | 800) | undefined;
32
+ letterSpacing?: import("csstype").Property.LetterSpacing<string | number> | undefined;
33
33
  highlightWords?: string[] | undefined;
34
34
  ellipsis?: string | undefined;
35
35
  ellipsizeMode?: import("../../truncate/types").TruncateEllisizeMode | undefined;
36
36
  limit?: number | undefined;
37
37
  numberOfLines?: number | undefined;
38
- spacing?: import("react/node_modules/csstype").Property.Width<string | number> | undefined;
38
+ spacing?: import("csstype").Property.Width<string | number> | undefined;
39
39
  alignment?: ("top" | "bottom" | "left" | "right" | "center" | "stretch" | "bottomLeft" | "bottomRight" | "spaced" | "topLeft" | "topRight") | undefined;
40
40
  columns?: (number | (number | undefined)[]) | undefined;
41
- columnGap?: import("react/node_modules/csstype").Property.GridColumnGap<string | number> | undefined;
41
+ columnGap?: import("csstype").Property.GridColumnGap<string | number> | undefined;
42
42
  isInline?: boolean | undefined;
43
43
  gap?: number | undefined;
44
- justify?: import("react/node_modules/csstype").Property.JustifyContent | undefined;
45
- rowGap?: import("react/node_modules/csstype").Property.GridRowGap<string | number> | undefined;
44
+ justify?: import("csstype").Property.JustifyContent | undefined;
45
+ rowGap?: import("csstype").Property.GridRowGap<string | number> | undefined;
46
46
  rows?: (number | (number | undefined)[]) | undefined;
47
- templateColumns?: import("react/node_modules/csstype").Property.GridTemplateColumns<string | number> | undefined;
48
- templateRows?: import("react/node_modules/csstype").Property.GridTemplateRows<string | number> | undefined;
47
+ templateColumns?: import("csstype").Property.GridTemplateColumns<string | number> | undefined;
48
+ templateRows?: import("csstype").Property.GridTemplateRows<string | number> | undefined;
49
49
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
50
50
  slot?: string | undefined;
51
51
  style?: import("react").CSSProperties | undefined;
52
52
  title?: string | undefined;
53
53
  key?: import("react").Key | null | undefined;
54
54
  lang?: string | undefined;
55
- role?: string | undefined;
55
+ role?: import("react").AriaRole | undefined;
56
56
  tabIndex?: number | undefined;
57
57
  'aria-activedescendant'?: string | undefined;
58
- 'aria-atomic'?: boolean | "true" | "false" | undefined;
59
- 'aria-autocomplete'?: "none" | "list" | "both" | "inline" | undefined;
60
- 'aria-busy'?: boolean | "true" | "false" | undefined;
58
+ 'aria-atomic'?: (boolean | "true" | "false") | undefined;
59
+ 'aria-autocomplete'?: "list" | "none" | "both" | "inline" | undefined;
60
+ 'aria-busy'?: (boolean | "true" | "false") | undefined;
61
61
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
62
62
  'aria-colcount'?: number | undefined;
63
63
  'aria-colindex'?: number | undefined;
64
64
  'aria-colspan'?: number | undefined;
65
65
  'aria-controls'?: string | undefined;
66
- 'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date" | undefined;
66
+ 'aria-current'?: boolean | "time" | "true" | "false" | "step" | "date" | "page" | "location" | undefined;
67
67
  'aria-describedby'?: string | undefined;
68
68
  'aria-details'?: string | undefined;
69
- 'aria-disabled'?: boolean | "true" | "false" | undefined;
69
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
70
70
  'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
71
71
  'aria-errormessage'?: string | undefined;
72
- 'aria-expanded'?: boolean | "true" | "false" | undefined;
72
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
73
73
  'aria-flowto'?: string | undefined;
74
- 'aria-grabbed'?: boolean | "true" | "false" | undefined;
75
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
76
- 'aria-hidden'?: boolean | "true" | "false" | undefined;
74
+ 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
75
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
76
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
77
77
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
78
78
  'aria-keyshortcuts'?: string | undefined;
79
79
  'aria-label'?: string | undefined;
80
80
  'aria-labelledby'?: string | undefined;
81
81
  'aria-level'?: number | undefined;
82
82
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
83
- 'aria-modal'?: boolean | "true" | "false" | undefined;
84
- 'aria-multiline'?: boolean | "true" | "false" | undefined;
85
- 'aria-multiselectable'?: boolean | "true" | "false" | undefined;
83
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
84
+ 'aria-multiline'?: (boolean | "true" | "false") | undefined;
85
+ 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
86
86
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
87
87
  'aria-owns'?: string | undefined;
88
88
  'aria-placeholder'?: string | undefined;
89
89
  'aria-posinset'?: number | undefined;
90
90
  'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
91
- 'aria-readonly'?: boolean | "true" | "false" | undefined;
91
+ 'aria-readonly'?: (boolean | "true" | "false") | undefined;
92
92
  'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
93
- 'aria-required'?: boolean | "true" | "false" | undefined;
93
+ 'aria-required'?: (boolean | "true" | "false") | undefined;
94
94
  'aria-roledescription'?: string | undefined;
95
95
  'aria-rowcount'?: number | undefined;
96
96
  'aria-rowindex'?: number | undefined;
97
97
  'aria-rowspan'?: number | undefined;
98
- 'aria-selected'?: boolean | "true" | "false" | undefined;
98
+ 'aria-selected'?: (boolean | "true" | "false") | undefined;
99
99
  'aria-setsize'?: number | undefined;
100
100
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
101
101
  'aria-valuemax'?: number | undefined;
@@ -304,7 +304,7 @@ export function useFormGroup(props: import('../context').WordPressComponentProps
304
304
  } | {
305
305
  className: string;
306
306
  contentProps: {
307
- alignLabel: import("react/node_modules/csstype").Property.TextAlign;
307
+ alignLabel: import("csstype").Property.TextAlign;
308
308
  children: import("react").ReactNode;
309
309
  help: import("react").ReactNode;
310
310
  id: string | number;
@@ -314,78 +314,78 @@ export function useFormGroup(props: import('../context').WordPressComponentProps
314
314
  truncate: boolean;
315
315
  };
316
316
  horizontal: boolean;
317
- align?: import("react/node_modules/csstype").Property.TextAlign | undefined;
317
+ align?: import("csstype").Property.TextAlign | undefined;
318
318
  adjustLineHeightForInnerControls?: (boolean | "small" | "medium" | "large" | "xSmall") | undefined;
319
- color?: import("react/node_modules/csstype").Property.Color | undefined;
320
- display?: import("react/node_modules/csstype").Property.Display | undefined;
319
+ color?: import("csstype").Property.Color | undefined;
320
+ display?: import("csstype").Property.Display | undefined;
321
321
  isDestructive?: boolean | undefined;
322
322
  highlightEscape?: boolean | undefined;
323
323
  highlightCaseSensitive?: boolean | undefined;
324
324
  highlightSanitize?: ((text: string) => string) | undefined;
325
325
  isBlock?: boolean | undefined;
326
- lineHeight?: import("react/node_modules/csstype").Property.LineHeight<string | number> | undefined;
327
- optimizeReadabilityFor?: import("react/node_modules/csstype").Property.Color | undefined;
326
+ lineHeight?: import("csstype").Property.LineHeight<string | number> | undefined;
327
+ optimizeReadabilityFor?: import("csstype").Property.Color | undefined;
328
328
  size?: ((string | number | (string & {})) & ("small" | "medium" | "large")) | undefined;
329
329
  upperCase?: boolean | undefined;
330
330
  variant?: "muted" | undefined;
331
- weight?: import("react/node_modules/csstype").Property.FontWeight | (900 | 700 | 300 | 200 | 400 | 500 | 100 | 600 | 800) | undefined;
332
- letterSpacing?: import("react/node_modules/csstype").Property.LetterSpacing<string | number> | undefined;
331
+ weight?: import("csstype").Property.FontWeight | (900 | 700 | 300 | 200 | 400 | 500 | 100 | 600 | 800) | undefined;
332
+ letterSpacing?: import("csstype").Property.LetterSpacing<string | number> | undefined;
333
333
  highlightWords?: string[] | undefined;
334
334
  ellipsis?: string | undefined;
335
335
  ellipsizeMode?: import("../../truncate/types").TruncateEllisizeMode | undefined;
336
336
  limit?: number | undefined;
337
337
  numberOfLines?: number | undefined;
338
- spacing?: import("react/node_modules/csstype").Property.Width<string | number> | undefined;
338
+ spacing?: import("csstype").Property.Width<string | number> | undefined;
339
339
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
340
340
  slot?: string | undefined;
341
341
  style?: import("react").CSSProperties | undefined;
342
342
  title?: string | undefined;
343
343
  key?: import("react").Key | null | undefined;
344
344
  lang?: string | undefined;
345
- role?: string | undefined;
345
+ role?: import("react").AriaRole | undefined;
346
346
  tabIndex?: number | undefined;
347
347
  'aria-activedescendant'?: string | undefined;
348
- 'aria-atomic'?: boolean | "true" | "false" | undefined;
349
- 'aria-autocomplete'?: "none" | "list" | "both" | "inline" | undefined;
350
- 'aria-busy'?: boolean | "true" | "false" | undefined;
348
+ 'aria-atomic'?: (boolean | "true" | "false") | undefined;
349
+ 'aria-autocomplete'?: "list" | "none" | "both" | "inline" | undefined;
350
+ 'aria-busy'?: (boolean | "true" | "false") | undefined;
351
351
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
352
352
  'aria-colcount'?: number | undefined;
353
353
  'aria-colindex'?: number | undefined;
354
354
  'aria-colspan'?: number | undefined;
355
355
  'aria-controls'?: string | undefined;
356
- 'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date" | undefined;
356
+ 'aria-current'?: boolean | "time" | "true" | "false" | "step" | "date" | "page" | "location" | undefined;
357
357
  'aria-describedby'?: string | undefined;
358
358
  'aria-details'?: string | undefined;
359
- 'aria-disabled'?: boolean | "true" | "false" | undefined;
359
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
360
360
  'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
361
361
  'aria-errormessage'?: string | undefined;
362
- 'aria-expanded'?: boolean | "true" | "false" | undefined;
362
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
363
363
  'aria-flowto'?: string | undefined;
364
- 'aria-grabbed'?: boolean | "true" | "false" | undefined;
365
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
366
- 'aria-hidden'?: boolean | "true" | "false" | undefined;
364
+ 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
365
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
366
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
367
367
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
368
368
  'aria-keyshortcuts'?: string | undefined;
369
369
  'aria-label'?: string | undefined;
370
370
  'aria-labelledby'?: string | undefined;
371
371
  'aria-level'?: number | undefined;
372
372
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
373
- 'aria-modal'?: boolean | "true" | "false" | undefined;
374
- 'aria-multiline'?: boolean | "true" | "false" | undefined;
375
- 'aria-multiselectable'?: boolean | "true" | "false" | undefined;
373
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
374
+ 'aria-multiline'?: (boolean | "true" | "false") | undefined;
375
+ 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
376
376
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
377
377
  'aria-owns'?: string | undefined;
378
378
  'aria-placeholder'?: string | undefined;
379
379
  'aria-posinset'?: number | undefined;
380
380
  'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
381
- 'aria-readonly'?: boolean | "true" | "false" | undefined;
381
+ 'aria-readonly'?: (boolean | "true" | "false") | undefined;
382
382
  'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
383
- 'aria-required'?: boolean | "true" | "false" | undefined;
383
+ 'aria-required'?: (boolean | "true" | "false") | undefined;
384
384
  'aria-roledescription'?: string | undefined;
385
385
  'aria-rowcount'?: number | undefined;
386
386
  'aria-rowindex'?: number | undefined;
387
387
  'aria-rowspan'?: number | undefined;
388
- 'aria-selected'?: boolean | "true" | "false" | undefined;
388
+ 'aria-selected'?: (boolean | "true" | "false") | undefined;
389
389
  'aria-setsize'?: number | undefined;
390
390
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
391
391
  'aria-valuemax'?: number | undefined;
@@ -29,7 +29,7 @@ declare const ForwardedUnitControl: import("react").ForwardRefExoticComponent<Pi
29
29
  ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
30
30
  }, "children" | "value" | "label" | "as" | "isPressEnterToChange" | "__unstableStateReducer" | "disableUnits" | keyof import("./types").UnitSelectControlProps | "isResetValueOnUnitChange" | "onUnitChange"> & {
31
31
  as?: undefined;
32
- }, "type" | "value" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "as" | "key" | "className" | "color" | "height" | "id" | "lang" | "max" | "min" | "name" | "width" | "role" | "tabIndex" | "crossOrigin" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "alt" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "autoComplete" | "accept" | "capture" | "checked" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "step" | "isPressEnterToChange" | "__unstableStateReducer" | "disableUnits" | keyof import("./types").UnitSelectControlProps | "isResetValueOnUnitChange" | "onUnitChange"> & import("react").RefAttributes<any>>;
32
+ }, "type" | "value" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "as" | "key" | "className" | "color" | "height" | "id" | "lang" | "max" | "min" | "name" | "width" | "role" | "tabIndex" | "crossOrigin" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "alt" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "autoComplete" | "accept" | "capture" | "checked" | "enterKeyHint" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "step" | "isPressEnterToChange" | "__unstableStateReducer" | "disableUnits" | keyof import("./types").UnitSelectControlProps | "isResetValueOnUnitChange" | "onUnitChange"> & import("react").RefAttributes<any>>;
33
33
  export { parseUnit, useCustomUnits } from './utils';
34
34
  export default ForwardedUnitControl;
35
35
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/unit-control/index.tsx"],"names":[],"mappings":";AAmCA,OAAO,KAAK,EAAoB,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AA+LnE;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,oBAAoB;;;;;;;;;;;;miKAA4B,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACpD,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/unit-control/index.tsx"],"names":[],"mappings":";AAmCA,OAAO,KAAK,EAAoB,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AA+LnE;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,oBAAoB;;;;;;;;;;;;ojKAA4B,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACpD,eAAe,oBAAoB,CAAC"}
@@ -5,6 +5,7 @@ declare type SelectProps = {
5
5
  };
6
6
  declare type InputProps = {
7
7
  disableUnits?: boolean;
8
+ size: SelectSize;
8
9
  };
9
10
  export declare const Root: import("@emotion/styled").StyledComponent<{
10
11
  theme?: import("@emotion/react").Theme | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"unit-control-styles.d.ts","sourceRoot":"","sources":["../../../src/unit-control/styles/unit-control-styles.ts"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C,aAAK,WAAW,GAAG;IAClB,UAAU,EAAE,UAAU,CAAC;CACvB,CAAC;AAEF,aAAK,UAAU,GAAG;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,IAAI;;;yGAGhB,CAAC;AAyBF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;uBAYtB,CAAC;AA8CF,eAAO,MAAM,SAAS;;;uHAMrB,CAAC;AAEF,eAAO,MAAM,UAAU;;;mIAwBtB,CAAC"}
1
+ {"version":3,"file":"unit-control-styles.d.ts","sourceRoot":"","sources":["../../../src/unit-control/styles/unit-control-styles.ts"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C,aAAK,WAAW,GAAG;IAClB,UAAU,EAAE,UAAU,CAAC;CACvB,CAAC;AAEF,aAAK,UAAU,GAAG;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,EAAE,UAAU,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,IAAI;;;yGAGhB,CAAC;AAmCF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;uBAYtB,CAAC;AAqBF,eAAO,MAAM,SAAS;;;uHAMrB,CAAC;AAEF,eAAO,MAAM,UAAU;;;mIAyBtB,CAAC"}
@@ -6,9 +6,9 @@ import type { SyntheticEvent } from 'react';
6
6
  * Internal dependencies
7
7
  */
8
8
  import type { StateReducer } from '../input-control/reducer/state';
9
- import type { InputChangeCallback } from '../input-control/types';
9
+ import type { InputChangeCallback, Size as InputSize } from '../input-control/types';
10
10
  export declare type Value = number | string;
11
- export declare type SelectSize = 'default' | 'small';
11
+ export declare type SelectSize = InputSize;
12
12
  export declare type WPUnitControlUnit = {
13
13
  /**
14
14
  * The value for the unit, used in a CSS value (e.g `px`).
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/unit-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,oBAAY,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpC,oBAAY,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;AAE7C,oBAAY,iBAAiB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,oBAAY,qBAAqB,GAAG,KAAK,CAAE,iBAAiB,CAAE,GAAG,KAAK,CAAC;AAEvE,oBAAY,2BAA2B,GAAG,mBAAmB,CAC5D,cAAc,CAAE,iBAAiB,GAAG,gBAAgB,CAAE,EACtD;IAAE,IAAI,CAAC,EAAE,iBAAiB,CAAA;CAAE,CAC5B,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACpC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,qBAAqB,CAAC;CAC9B,CAAC;AAEF,oBAAY,gBAAgB,GAAG,sBAAsB,GAAG;IACvD,sBAAsB,CAAC,EAAE,YAAY,CAAC;IACtC;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;OAKG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,CAAC,EAAE,2BAA2B,CAAC;IAC3C;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;CACb,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/unit-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EACX,mBAAmB,EACnB,IAAI,IAAI,SAAS,EACjB,MAAM,wBAAwB,CAAC;AAEhC,oBAAY,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpC,oBAAY,UAAU,GAAG,SAAS,CAAC;AAEnC,oBAAY,iBAAiB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,oBAAY,qBAAqB,GAAG,KAAK,CAAE,iBAAiB,CAAE,GAAG,KAAK,CAAC;AAEvE,oBAAY,2BAA2B,GAAG,mBAAmB,CAC5D,cAAc,CAAE,iBAAiB,GAAG,gBAAgB,CAAE,EACtD;IAAE,IAAI,CAAC,EAAE,iBAAiB,CAAA;CAAE,CAC5B,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACpC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,qBAAqB,CAAC;CAC9B,CAAC;AAEF,oBAAY,gBAAgB,GAAG,sBAAsB,GAAG;IACvD,sBAAsB,CAAC,EAAE,YAAY,CAAC;IACtC;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;OAKG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,CAAC,EAAE,2BAA2B,CAAC;IAC3C;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;CACb,CAAC"}
@@ -15,50 +15,50 @@ export function useVStack(props: import('../ui/context').WordPressComponentProps
15
15
  color?: string | undefined;
16
16
  id?: string | undefined;
17
17
  lang?: string | undefined;
18
- role?: string | undefined;
18
+ role?: import("react").AriaRole | undefined;
19
19
  tabIndex?: number | undefined;
20
20
  'aria-activedescendant'?: string | undefined;
21
- 'aria-atomic'?: boolean | "true" | "false" | undefined;
22
- 'aria-autocomplete'?: "none" | "list" | "both" | "inline" | undefined;
23
- 'aria-busy'?: boolean | "true" | "false" | undefined;
21
+ 'aria-atomic'?: (boolean | "true" | "false") | undefined;
22
+ 'aria-autocomplete'?: "list" | "none" | "both" | "inline" | undefined;
23
+ 'aria-busy'?: (boolean | "true" | "false") | undefined;
24
24
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
25
25
  'aria-colcount'?: number | undefined;
26
26
  'aria-colindex'?: number | undefined;
27
27
  'aria-colspan'?: number | undefined;
28
28
  'aria-controls'?: string | undefined;
29
- 'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date" | undefined;
29
+ 'aria-current'?: boolean | "time" | "true" | "false" | "step" | "date" | "page" | "location" | undefined;
30
30
  'aria-describedby'?: string | undefined;
31
31
  'aria-details'?: string | undefined;
32
- 'aria-disabled'?: boolean | "true" | "false" | undefined;
32
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
33
33
  'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
34
34
  'aria-errormessage'?: string | undefined;
35
- 'aria-expanded'?: boolean | "true" | "false" | undefined;
35
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
36
36
  'aria-flowto'?: string | undefined;
37
- 'aria-grabbed'?: boolean | "true" | "false" | undefined;
38
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
39
- 'aria-hidden'?: boolean | "true" | "false" | undefined;
37
+ 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
38
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
39
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
40
40
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
41
41
  'aria-keyshortcuts'?: string | undefined;
42
42
  'aria-label'?: string | undefined;
43
43
  'aria-labelledby'?: string | undefined;
44
44
  'aria-level'?: number | undefined;
45
45
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
46
- 'aria-modal'?: boolean | "true" | "false" | undefined;
47
- 'aria-multiline'?: boolean | "true" | "false" | undefined;
48
- 'aria-multiselectable'?: boolean | "true" | "false" | undefined;
46
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
47
+ 'aria-multiline'?: (boolean | "true" | "false") | undefined;
48
+ 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
49
49
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
50
50
  'aria-owns'?: string | undefined;
51
51
  'aria-placeholder'?: string | undefined;
52
52
  'aria-posinset'?: number | undefined;
53
53
  'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
54
- 'aria-readonly'?: boolean | "true" | "false" | undefined;
54
+ 'aria-readonly'?: (boolean | "true" | "false") | undefined;
55
55
  'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
56
- 'aria-required'?: boolean | "true" | "false" | undefined;
56
+ 'aria-required'?: (boolean | "true" | "false") | undefined;
57
57
  'aria-roledescription'?: string | undefined;
58
58
  'aria-rowcount'?: number | undefined;
59
59
  'aria-rowindex'?: number | undefined;
60
60
  'aria-rowspan'?: number | undefined;
61
- 'aria-selected'?: boolean | "true" | "false" | undefined;
61
+ 'aria-selected'?: (boolean | "true" | "false") | undefined;
62
62
  'aria-setsize'?: number | undefined;
63
63
  'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
64
64
  'aria-valuemax'?: number | undefined;
@@ -16,7 +16,7 @@ export interface ZStackProps {
16
16
  */
17
17
  isReversed?: boolean;
18
18
  /**
19
- * The amount of offset between each child element.
19
+ * The amount of offset between each child element. The amount of space between each child element. Defaults to `0`. Its value is automatically inverted (i.e. from positive to negative, and viceversa) when switching from LTR to RTL.
20
20
  *
21
21
  * @default 0
22
22
  */
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/z-stack/styles.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,UAAU;;;yGAGtB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;eAChB,OAAO;kBACJ,MAAM;YACZ,MAAM;yGAWd,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/z-stack/styles.ts"],"names":[],"mappings":";AAWA,eAAO,MAAM,UAAU;;;yGAGtB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;eAChB,OAAO;kBACJ,MAAM;YACZ,MAAM;yGAWd,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/components",
3
- "version": "19.1.2",
3
+ "version": "19.2.1-next.33ec3857e2.0",
4
4
  "description": "UI components for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -30,25 +30,26 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@babel/runtime": "^7.16.0",
33
- "@emotion/cache": "^11.4.0",
34
- "@emotion/css": "^11.1.3",
35
- "@emotion/react": "^11.4.1",
36
- "@emotion/styled": "^11.3.0",
33
+ "@emotion/cache": "^11.7.1",
34
+ "@emotion/css": "^11.7.1",
35
+ "@emotion/react": "^11.7.1",
36
+ "@emotion/serialize": "^1.0.2",
37
+ "@emotion/styled": "^11.6.0",
37
38
  "@emotion/utils": "1.0.0",
38
- "@wordpress/a11y": "^3.2.4",
39
- "@wordpress/compose": "^5.0.6",
40
- "@wordpress/date": "^4.2.3",
41
- "@wordpress/deprecated": "^3.2.3",
42
- "@wordpress/dom": "^3.2.7",
43
- "@wordpress/element": "^4.0.4",
44
- "@wordpress/hooks": "^3.2.2",
45
- "@wordpress/i18n": "^4.2.4",
46
- "@wordpress/icons": "^6.1.1",
47
- "@wordpress/is-shallow-equal": "^4.2.1",
48
- "@wordpress/keycodes": "^3.2.4",
49
- "@wordpress/primitives": "^3.0.4",
50
- "@wordpress/rich-text": "^5.0.6",
51
- "@wordpress/warning": "^2.2.2",
39
+ "@wordpress/a11y": "^3.2.5-next.33ec3857e2.0",
40
+ "@wordpress/compose": "^5.0.7-next.33ec3857e2.0",
41
+ "@wordpress/date": "^4.2.4-next.33ec3857e2.0",
42
+ "@wordpress/deprecated": "^3.2.4-next.33ec3857e2.0",
43
+ "@wordpress/dom": "^3.2.8-next.33ec3857e2.0",
44
+ "@wordpress/element": "^4.0.6-next.33ec3857e2.0",
45
+ "@wordpress/hooks": "^3.2.3-next.33ec3857e2.0",
46
+ "@wordpress/i18n": "^4.2.5-next.33ec3857e2.0",
47
+ "@wordpress/icons": "^6.1.2-next.33ec3857e2.0",
48
+ "@wordpress/is-shallow-equal": "^4.2.2-next.33ec3857e2.0",
49
+ "@wordpress/keycodes": "^3.2.5-next.33ec3857e2.0",
50
+ "@wordpress/primitives": "^3.0.5-next.33ec3857e2.0",
51
+ "@wordpress/rich-text": "^5.0.7-next.33ec3857e2.0",
52
+ "@wordpress/warning": "^2.2.3-next.33ec3857e2.0",
52
53
  "classnames": "^2.3.1",
53
54
  "colord": "^2.7.0",
54
55
  "dom-scroll-into-view": "^1.2.1",
@@ -68,11 +69,8 @@
68
69
  "rememo": "^3.0.0",
69
70
  "uuid": "^8.3.0"
70
71
  },
71
- "peerDependencies": {
72
- "reakit-utils": "^0.15.1"
73
- },
74
72
  "publishConfig": {
75
73
  "access": "public"
76
74
  },
77
- "gitHead": "34b76b2f9397215e5afb8443f5b3073c83913102"
75
+ "gitHead": "51c7917ea7fac72953702f24d6daac87d99e7617"
78
76
  }
@@ -20,7 +20,7 @@ export default {
20
20
  title: 'Components/AlignmentMatrixControl',
21
21
  component: AlignmentMatrixControl,
22
22
  parameters: {
23
- knobs: { disabled: false },
23
+ knobs: { disable: false },
24
24
  },
25
25
  };
26
26
 
@@ -42,12 +42,14 @@ export default function AnglePickerControl( {
42
42
  max={ 360 }
43
43
  min={ 0 }
44
44
  onChange={ handleOnNumberChange }
45
+ size="__unstable-large"
45
46
  step="1"
46
47
  value={ value }
47
48
  hideHTMLArrows
48
49
  suffix={
49
50
  <Spacer
50
51
  as={ Text }
52
+ marginBottom={ 0 }
51
53
  marginRight={ space( 3 ) }
52
54
  style={ {
53
55
  color: 'var( --wp-admin-theme-color )',