@wordpress/components 27.6.0 → 28.0.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 (1734) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/build/alignment-matrix-control/cell.js +16 -12
  3. package/build/alignment-matrix-control/cell.js.map +1 -1
  4. package/build/alignment-matrix-control/icon.js +12 -11
  5. package/build/alignment-matrix-control/icon.js.map +1 -1
  6. package/build/alignment-matrix-control/index.js +18 -18
  7. package/build/alignment-matrix-control/index.js.map +1 -1
  8. package/build/angle-picker-control/angle-circle.js +14 -12
  9. package/build/angle-picker-control/angle-circle.js.map +1 -1
  10. package/build/angle-picker-control/index.js +30 -24
  11. package/build/angle-picker-control/index.js.map +1 -1
  12. package/build/animate/index.js +1 -1
  13. package/build/animate/index.js.map +1 -1
  14. package/build/autocomplete/autocompleter-ui.js +56 -30
  15. package/build/autocomplete/autocompleter-ui.js.map +1 -1
  16. package/build/autocomplete/autocompleter-ui.native.js +50 -40
  17. package/build/autocomplete/autocompleter-ui.native.js.map +1 -1
  18. package/build/autocomplete/background-view.android.js +5 -4
  19. package/build/autocomplete/background-view.android.js.map +1 -1
  20. package/build/autocomplete/background-view.ios.js +5 -4
  21. package/build/autocomplete/background-view.ios.js.map +1 -1
  22. package/build/autocomplete/index.js +5 -3
  23. package/build/autocomplete/index.js.map +1 -1
  24. package/build/base-control/index.js +33 -24
  25. package/build/base-control/index.js.map +1 -1
  26. package/build/base-control/index.native.js +9 -4
  27. package/build/base-control/index.native.js.map +1 -1
  28. package/build/border-box-control/border-box-control/component.js +49 -44
  29. package/build/border-box-control/border-box-control/component.js.map +1 -1
  30. package/build/border-box-control/border-box-control-linked-button/component.js +15 -13
  31. package/build/border-box-control/border-box-control-linked-button/component.js.map +1 -1
  32. package/build/border-box-control/border-box-control-split-controls/component.js +39 -38
  33. package/build/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  34. package/build/border-box-control/border-box-control-visualizer/component.js +2 -2
  35. package/build/border-box-control/border-box-control-visualizer/component.js.map +1 -1
  36. package/build/border-control/border-control/component.js +56 -52
  37. package/build/border-control/border-control/component.js.map +1 -1
  38. package/build/border-control/border-control-dropdown/component.js +55 -43
  39. package/build/border-control/border-control-dropdown/component.js.map +1 -1
  40. package/build/border-control/border-control-style-picker/component.js +9 -9
  41. package/build/border-control/border-control-style-picker/component.js.map +1 -1
  42. package/build/box-control/all-input-control.js +30 -28
  43. package/build/box-control/all-input-control.js.map +1 -1
  44. package/build/box-control/axial-input-controls.js +45 -41
  45. package/build/box-control/axial-input-controls.js.map +1 -1
  46. package/build/box-control/icon.js +15 -12
  47. package/build/box-control/icon.js.map +1 -1
  48. package/build/box-control/index.js +31 -24
  49. package/build/box-control/index.js.map +1 -1
  50. package/build/box-control/input-controls.js +46 -43
  51. package/build/box-control/input-controls.js.map +1 -1
  52. package/build/box-control/linked-button.js +12 -11
  53. package/build/box-control/linked-button.js.map +1 -1
  54. package/build/button/deprecated.js +2 -2
  55. package/build/button/deprecated.js.map +1 -1
  56. package/build/button/index.js +34 -19
  57. package/build/button/index.js.map +1 -1
  58. package/build/button/index.native.js +27 -21
  59. package/build/button/index.native.js.map +1 -1
  60. package/build/button-group/index.js +2 -2
  61. package/build/button-group/index.js.map +1 -1
  62. package/build/card/card/component.js +22 -19
  63. package/build/card/card/component.js.map +1 -1
  64. package/build/card/card-body/component.js +3 -3
  65. package/build/card/card-body/component.js.map +1 -1
  66. package/build/card/card-divider/component.js +2 -2
  67. package/build/card/card-divider/component.js.map +1 -1
  68. package/build/card/card-footer/component.js +2 -2
  69. package/build/card/card-footer/component.js.map +1 -1
  70. package/build/card/card-header/component.js +2 -2
  71. package/build/card/card-header/component.js.map +1 -1
  72. package/build/card/card-media/component.js +2 -2
  73. package/build/card/card-media/component.js.map +1 -1
  74. package/build/checkbox-control/index.js +39 -34
  75. package/build/checkbox-control/index.js.map +1 -1
  76. package/build/circular-option-picker/circular-option-picker-actions.js +10 -8
  77. package/build/circular-option-picker/circular-option-picker-actions.js.map +1 -1
  78. package/build/circular-option-picker/circular-option-picker-option-group.js +5 -4
  79. package/build/circular-option-picker/circular-option-picker-option-group.js.map +1 -1
  80. package/build/circular-option-picker/circular-option-picker-option.js +16 -14
  81. package/build/circular-option-picker/circular-option-picker-option.js.map +1 -1
  82. package/build/circular-option-picker/circular-option-picker.js +36 -30
  83. package/build/circular-option-picker/circular-option-picker.js.map +1 -1
  84. package/build/clipboard-button/index.js +5 -4
  85. package/build/clipboard-button/index.js.map +1 -1
  86. package/build/color-control/index.native.js +2 -2
  87. package/build/color-control/index.native.js.map +1 -1
  88. package/build/color-indicator/index.js +2 -2
  89. package/build/color-indicator/index.js.map +1 -1
  90. package/build/color-indicator/index.native.js +39 -36
  91. package/build/color-indicator/index.native.js.map +1 -1
  92. package/build/color-palette/index.js +90 -82
  93. package/build/color-palette/index.js.map +1 -1
  94. package/build/color-palette/index.native.js +75 -65
  95. package/build/color-palette/index.native.js.map +1 -1
  96. package/build/color-picker/color-copy-button.js +10 -9
  97. package/build/color-picker/color-copy-button.js.map +1 -1
  98. package/build/color-picker/color-input.js +4 -4
  99. package/build/color-picker/color-input.js.map +1 -1
  100. package/build/color-picker/component.js +36 -30
  101. package/build/color-picker/component.js.map +1 -1
  102. package/build/color-picker/hex-input.js +6 -5
  103. package/build/color-picker/hex-input.js.map +1 -1
  104. package/build/color-picker/hsl-input.js +48 -46
  105. package/build/color-picker/hsl-input.js.map +1 -1
  106. package/build/color-picker/hsv-color-picker.native.js +32 -31
  107. package/build/color-picker/hsv-color-picker.native.js.map +1 -1
  108. package/build/color-picker/hue-picker.native.js +33 -31
  109. package/build/color-picker/hue-picker.native.js.map +1 -1
  110. package/build/color-picker/index.native.js +67 -54
  111. package/build/color-picker/index.native.js.map +1 -1
  112. package/build/color-picker/input-with-slider.js +33 -31
  113. package/build/color-picker/input-with-slider.js.map +1 -1
  114. package/build/color-picker/legacy-adapter.js +2 -2
  115. package/build/color-picker/legacy-adapter.js.map +1 -1
  116. package/build/color-picker/picker.js +2 -2
  117. package/build/color-picker/picker.js.map +1 -1
  118. package/build/color-picker/rgb-input.js +52 -50
  119. package/build/color-picker/rgb-input.js.map +1 -1
  120. package/build/color-picker/saturation-picker.native.js +44 -41
  121. package/build/color-picker/saturation-picker.native.js.map +1 -1
  122. package/build/combobox-control/index.js +67 -52
  123. package/build/combobox-control/index.js.map +1 -1
  124. package/build/combobox-control/types.js.map +1 -1
  125. package/build/composite/legacy/index.js +3 -3
  126. package/build/composite/legacy/index.js.map +1 -1
  127. package/build/confirm-dialog/component.js +35 -26
  128. package/build/confirm-dialog/component.js.map +1 -1
  129. package/build/context/context-connect.js +1 -1
  130. package/build/context/context-connect.js.map +1 -1
  131. package/build/context/context-system-provider.js +6 -5
  132. package/build/context/context-system-provider.js.map +1 -1
  133. package/build/context/use-context-system.js +1 -1
  134. package/build/context/use-context-system.js.map +1 -1
  135. package/build/css.d.js +6 -0
  136. package/build/css.d.js.map +1 -0
  137. package/build/custom-gradient-picker/gradient-bar/control-points.js +114 -107
  138. package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  139. package/build/custom-gradient-picker/gradient-bar/index.js +49 -47
  140. package/build/custom-gradient-picker/gradient-bar/index.js.map +1 -1
  141. package/build/custom-gradient-picker/index.js +31 -25
  142. package/build/custom-gradient-picker/index.js.map +1 -1
  143. package/build/custom-gradient-picker/index.native.js +23 -17
  144. package/build/custom-gradient-picker/index.native.js.map +1 -1
  145. package/build/custom-select-control/index.js +72 -59
  146. package/build/custom-select-control/index.js.map +1 -1
  147. package/build/custom-select-control-v2/custom-select.js +48 -35
  148. package/build/custom-select-control-v2/custom-select.js.map +1 -1
  149. package/build/custom-select-control-v2/default-component/index.js +2 -2
  150. package/build/custom-select-control-v2/default-component/index.js.map +1 -1
  151. package/build/custom-select-control-v2/item.js +9 -6
  152. package/build/custom-select-control-v2/item.js.map +1 -1
  153. package/build/custom-select-control-v2/legacy-component/index.js +32 -44
  154. package/build/custom-select-control-v2/legacy-component/index.js.map +1 -1
  155. package/build/custom-select-control-v2/styles.js +9 -9
  156. package/build/custom-select-control-v2/styles.js.map +1 -1
  157. package/build/custom-select-control-v2/types.js.map +1 -1
  158. package/build/dashicon/index.js +2 -2
  159. package/build/dashicon/index.js.map +1 -1
  160. package/build/dashicon/index.native.js +3 -3
  161. package/build/dashicon/index.native.js.map +1 -1
  162. package/build/date-time/date/index.js +92 -85
  163. package/build/date-time/date/index.js.map +1 -1
  164. package/build/date-time/date-time/index.js +18 -15
  165. package/build/date-time/date-time/index.js.map +1 -1
  166. package/build/date-time/time/index.js +162 -135
  167. package/build/date-time/time/index.js.map +1 -1
  168. package/build/date-time/time/timezone.js +12 -10
  169. package/build/date-time/time/timezone.js.map +1 -1
  170. package/build/dimension-control/index.js +7 -5
  171. package/build/dimension-control/index.js.map +1 -1
  172. package/build/disabled/index.js +11 -9
  173. package/build/disabled/index.js.map +1 -1
  174. package/build/disabled/index.native.js +5 -4
  175. package/build/disabled/index.native.js.map +1 -1
  176. package/build/disclosure/index.js +5 -4
  177. package/build/disclosure/index.js.map +1 -1
  178. package/build/divider/component.js +3 -3
  179. package/build/divider/component.js.map +1 -1
  180. package/build/draggable/index.js +14 -11
  181. package/build/draggable/index.js.map +1 -1
  182. package/build/draggable/index.native.js +15 -11
  183. package/build/draggable/index.native.js.map +1 -1
  184. package/build/drop-zone/index.js +23 -17
  185. package/build/drop-zone/index.js.map +1 -1
  186. package/build/dropdown/dropdown-content-wrapper.js +2 -2
  187. package/build/dropdown/dropdown-content-wrapper.js.map +1 -1
  188. package/build/dropdown/index.js +21 -19
  189. package/build/dropdown/index.js.map +1 -1
  190. package/build/dropdown/index.native.js +4 -2
  191. package/build/dropdown/index.native.js.map +1 -1
  192. package/build/dropdown-menu/index.js +29 -27
  193. package/build/dropdown-menu/index.js.map +1 -1
  194. package/build/dropdown-menu/index.native.js +32 -29
  195. package/build/dropdown-menu/index.native.js.map +1 -1
  196. package/build/dropdown-menu-v2/index.js +108 -76
  197. package/build/dropdown-menu-v2/index.js.map +1 -1
  198. package/build/duotone-picker/color-list-picker/index.js +52 -46
  199. package/build/duotone-picker/color-list-picker/index.js.map +1 -1
  200. package/build/duotone-picker/custom-duotone-bar.js +2 -2
  201. package/build/duotone-picker/custom-duotone-bar.js.map +1 -1
  202. package/build/duotone-picker/duotone-picker.js +40 -38
  203. package/build/duotone-picker/duotone-picker.js.map +1 -1
  204. package/build/duotone-picker/duotone-swatch.js +3 -3
  205. package/build/duotone-picker/duotone-swatch.js.map +1 -1
  206. package/build/elevation/component.js +2 -2
  207. package/build/elevation/component.js.map +1 -1
  208. package/build/external-link/index.js +16 -11
  209. package/build/external-link/index.js.map +1 -1
  210. package/build/external-link/index.native.js +9 -6
  211. package/build/external-link/index.native.js.map +1 -1
  212. package/build/flex/flex/component.js +9 -7
  213. package/build/flex/flex/component.js.map +1 -1
  214. package/build/flex/flex-block/component.js +2 -2
  215. package/build/flex/flex-block/component.js.map +1 -1
  216. package/build/flex/flex-item/component.js +2 -2
  217. package/build/flex/flex-item/component.js.map +1 -1
  218. package/build/focal-point-picker/controls.js +20 -19
  219. package/build/focal-point-picker/controls.js.map +1 -1
  220. package/build/focal-point-picker/focal-point.js +3 -6
  221. package/build/focal-point-picker/focal-point.js.map +1 -1
  222. package/build/focal-point-picker/focal-point.native.js +11 -10
  223. package/build/focal-point-picker/focal-point.native.js.map +1 -1
  224. package/build/focal-point-picker/grid.js +21 -20
  225. package/build/focal-point-picker/grid.js.map +1 -1
  226. package/build/focal-point-picker/index.js +42 -39
  227. package/build/focal-point-picker/index.js.map +1 -1
  228. package/build/focal-point-picker/index.native.js +66 -62
  229. package/build/focal-point-picker/index.native.js.map +1 -1
  230. package/build/focal-point-picker/media.js +4 -4
  231. package/build/focal-point-picker/media.js.map +1 -1
  232. package/build/focal-point-picker/styles/focal-point-style.js +2 -7
  233. package/build/focal-point-picker/styles/focal-point-style.js.map +1 -1
  234. package/build/focal-point-picker/tooltip/index.native.js +32 -27
  235. package/build/focal-point-picker/tooltip/index.native.js.map +1 -1
  236. package/build/focusable-iframe/index.js +2 -2
  237. package/build/focusable-iframe/index.js.map +1 -1
  238. package/build/font-size-picker/font-size-picker-select.js +2 -2
  239. package/build/font-size-picker/font-size-picker-select.js.map +1 -1
  240. package/build/font-size-picker/font-size-picker-toggle-group.js +10 -10
  241. package/build/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  242. package/build/font-size-picker/index.js +119 -103
  243. package/build/font-size-picker/index.js.map +1 -1
  244. package/build/font-size-picker/index.native.js +77 -64
  245. package/build/font-size-picker/index.native.js.map +1 -1
  246. package/build/footer-message-control/index.native.js +2 -2
  247. package/build/footer-message-control/index.native.js.map +1 -1
  248. package/build/form-file-upload/index.js +20 -18
  249. package/build/form-file-upload/index.js.map +1 -1
  250. package/build/form-toggle/index.js +18 -17
  251. package/build/form-toggle/index.js.map +1 -1
  252. package/build/form-token-field/index.js +59 -55
  253. package/build/form-token-field/index.js.map +1 -1
  254. package/build/form-token-field/suggestions-list.js +41 -38
  255. package/build/form-token-field/suggestions-list.js.map +1 -1
  256. package/build/form-token-field/token-input.js +2 -2
  257. package/build/form-token-field/token-input.js.map +1 -1
  258. package/build/form-token-field/token.js +22 -18
  259. package/build/form-token-field/token.js.map +1 -1
  260. package/build/gradient-picker/index.js +50 -47
  261. package/build/gradient-picker/index.js.map +1 -1
  262. package/build/grid/component.js +2 -2
  263. package/build/grid/component.js.map +1 -1
  264. package/build/guide/icons.js +9 -8
  265. package/build/guide/icons.js.map +1 -1
  266. package/build/guide/index.js +33 -26
  267. package/build/guide/index.js.map +1 -1
  268. package/build/guide/page-control.js +16 -17
  269. package/build/guide/page-control.js.map +1 -1
  270. package/build/guide/page.js +2 -2
  271. package/build/guide/page.js.map +1 -1
  272. package/build/h-stack/component.js +2 -2
  273. package/build/h-stack/component.js.map +1 -1
  274. package/build/h-stack/hook.js +3 -4
  275. package/build/h-stack/hook.js.map +1 -1
  276. package/build/heading/component.js +2 -2
  277. package/build/heading/component.js.map +1 -1
  278. package/build/higher-order/navigate-regions/index.js +7 -6
  279. package/build/higher-order/navigate-regions/index.js.map +1 -1
  280. package/build/higher-order/with-constrained-tabbing/index.js +8 -8
  281. package/build/higher-order/with-constrained-tabbing/index.js.map +1 -1
  282. package/build/higher-order/with-fallback-styles/index.js +6 -5
  283. package/build/higher-order/with-fallback-styles/index.js.map +1 -1
  284. package/build/higher-order/with-filters/index.js +2 -2
  285. package/build/higher-order/with-filters/index.js.map +1 -1
  286. package/build/higher-order/with-focus-outside/index.js +8 -7
  287. package/build/higher-order/with-focus-outside/index.js.map +1 -1
  288. package/build/higher-order/with-focus-outside/index.native.js +8 -7
  289. package/build/higher-order/with-focus-outside/index.native.js.map +1 -1
  290. package/build/higher-order/with-focus-return/index.js +8 -8
  291. package/build/higher-order/with-focus-return/index.js.map +1 -1
  292. package/build/higher-order/with-notices/index.js +4 -4
  293. package/build/higher-order/with-notices/index.js.map +1 -1
  294. package/build/higher-order/with-spoken-messages/index.js +2 -2
  295. package/build/higher-order/with-spoken-messages/index.js.map +1 -1
  296. package/build/icon/index.js +3 -2
  297. package/build/icon/index.js.map +1 -1
  298. package/build/index.js +7 -0
  299. package/build/index.js.map +1 -1
  300. package/build/index.native.js +0 -66
  301. package/build/index.native.js.map +1 -1
  302. package/build/input-control/backdrop.js +2 -2
  303. package/build/input-control/backdrop.js.map +1 -1
  304. package/build/input-control/index.js +36 -34
  305. package/build/input-control/index.js.map +1 -1
  306. package/build/input-control/input-base.js +36 -25
  307. package/build/input-control/input-base.js.map +1 -1
  308. package/build/input-control/input-field.js +4 -4
  309. package/build/input-control/input-field.js.map +1 -1
  310. package/build/input-control/input-prefix-wrapper.js +2 -2
  311. package/build/input-control/input-prefix-wrapper.js.map +1 -1
  312. package/build/input-control/input-suffix-wrapper.js +2 -2
  313. package/build/input-control/input-suffix-wrapper.js.map +1 -1
  314. package/build/input-control/label.js +12 -8
  315. package/build/input-control/label.js.map +1 -1
  316. package/build/input-control/styles/input-control-styles.js +27 -27
  317. package/build/input-control/styles/input-control-styles.js.map +1 -1
  318. package/build/isolated-event-container/index.js +2 -2
  319. package/build/isolated-event-container/index.js.map +1 -1
  320. package/build/item-group/item/component.js +8 -7
  321. package/build/item-group/item/component.js.map +1 -1
  322. package/build/item-group/item-group/component.js +8 -7
  323. package/build/item-group/item-group/component.js.map +1 -1
  324. package/build/keyboard-shortcuts/index.js +10 -8
  325. package/build/keyboard-shortcuts/index.js.map +1 -1
  326. package/build/menu-group/index.js +14 -11
  327. package/build/menu-group/index.js.map +1 -1
  328. package/build/menu-item/index.js +23 -18
  329. package/build/menu-item/index.js.map +1 -1
  330. package/build/menu-items-choice/index.js +24 -22
  331. package/build/menu-items-choice/index.js.map +1 -1
  332. package/build/mobile/autocompletion-items.native.js +3 -3
  333. package/build/mobile/autocompletion-items.native.js.map +1 -1
  334. package/build/mobile/badge/index.native.js +10 -6
  335. package/build/mobile/badge/index.native.js.map +1 -1
  336. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +23 -18
  337. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
  338. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +21 -17
  339. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
  340. package/build/mobile/bottom-sheet/button.native.js +17 -14
  341. package/build/mobile/bottom-sheet/button.native.js.map +1 -1
  342. package/build/mobile/bottom-sheet/cell.native.js +69 -53
  343. package/build/mobile/bottom-sheet/cell.native.js.map +1 -1
  344. package/build/mobile/bottom-sheet/chevron-back.native.js +7 -6
  345. package/build/mobile/bottom-sheet/chevron-back.native.js.map +1 -1
  346. package/build/mobile/bottom-sheet/color-cell.native.js +12 -11
  347. package/build/mobile/bottom-sheet/color-cell.native.js.map +1 -1
  348. package/build/mobile/bottom-sheet/cycle-picker-cell.native.js +2 -2
  349. package/build/mobile/bottom-sheet/cycle-picker-cell.native.js.map +1 -1
  350. package/build/mobile/bottom-sheet/footer-message-cell.native.js +4 -4
  351. package/build/mobile/bottom-sheet/footer-message-cell.native.js.map +1 -1
  352. package/build/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js +5 -4
  353. package/build/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js.map +1 -1
  354. package/build/mobile/bottom-sheet/index.native.js +72 -56
  355. package/build/mobile/bottom-sheet/index.native.js.map +1 -1
  356. package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js +6 -6
  357. package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
  358. package/build/mobile/bottom-sheet/link-cell.native.js +7 -6
  359. package/build/mobile/bottom-sheet/link-cell.native.js.map +1 -1
  360. package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js +19 -15
  361. package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
  362. package/build/mobile/bottom-sheet/lock-icon/index.native.js +2 -2
  363. package/build/mobile/bottom-sheet/lock-icon/index.native.js.map +1 -1
  364. package/build/mobile/bottom-sheet/nav-bar/action-button.native.js +9 -7
  365. package/build/mobile/bottom-sheet/nav-bar/action-button.native.js.map +1 -1
  366. package/build/mobile/bottom-sheet/nav-bar/apply-button.native.js +18 -15
  367. package/build/mobile/bottom-sheet/nav-bar/apply-button.native.js.map +1 -1
  368. package/build/mobile/bottom-sheet/nav-bar/back-button.native.js +19 -16
  369. package/build/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
  370. package/build/mobile/bottom-sheet/nav-bar/heading.native.js +5 -4
  371. package/build/mobile/bottom-sheet/nav-bar/heading.native.js.map +1 -1
  372. package/build/mobile/bottom-sheet/nav-bar/index.native.js +5 -4
  373. package/build/mobile/bottom-sheet/nav-bar/index.native.js.map +1 -1
  374. package/build/mobile/bottom-sheet/picker-cell.native.js +11 -10
  375. package/build/mobile/bottom-sheet/picker-cell.native.js.map +1 -1
  376. package/build/mobile/bottom-sheet/radio-cell.native.js +10 -9
  377. package/build/mobile/bottom-sheet/radio-cell.native.js.map +1 -1
  378. package/build/mobile/bottom-sheet/range-cell.native.js +50 -45
  379. package/build/mobile/bottom-sheet/range-cell.native.js.map +1 -1
  380. package/build/mobile/bottom-sheet/range-text-input.native.js +28 -25
  381. package/build/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
  382. package/build/mobile/bottom-sheet/ripple.native.js +12 -9
  383. package/build/mobile/bottom-sheet/ripple.native.js.map +1 -1
  384. package/build/mobile/bottom-sheet/stepper-cell/index.native.js +41 -35
  385. package/build/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
  386. package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js +33 -29
  387. package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js.map +1 -1
  388. package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js +33 -29
  389. package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js.map +1 -1
  390. package/build/mobile/bottom-sheet/sub-sheet/index.native.js +16 -5
  391. package/build/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
  392. package/build/mobile/bottom-sheet/switch-cell.native.js +11 -10
  393. package/build/mobile/bottom-sheet/switch-cell.native.js.map +1 -1
  394. package/build/mobile/bottom-sheet-select-control/index.native.js +40 -31
  395. package/build/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
  396. package/build/mobile/bottom-sheet-text-control/index.native.js +41 -29
  397. package/build/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
  398. package/build/mobile/color-settings/gradient-picker-screen.native.js +14 -8
  399. package/build/mobile/color-settings/gradient-picker-screen.native.js.map +1 -1
  400. package/build/mobile/color-settings/index.native.js +27 -21
  401. package/build/mobile/color-settings/index.native.js.map +1 -1
  402. package/build/mobile/color-settings/palette.screen.native.js +84 -64
  403. package/build/mobile/color-settings/palette.screen.native.js.map +1 -1
  404. package/build/mobile/color-settings/picker-screen.native.js +4 -4
  405. package/build/mobile/color-settings/picker-screen.native.js.map +1 -1
  406. package/build/mobile/cycle-select-control/index.native.js +2 -2
  407. package/build/mobile/cycle-select-control/index.native.js.map +1 -1
  408. package/build/mobile/dashicons/index.native.js +8 -7
  409. package/build/mobile/dashicons/index.native.js.map +1 -1
  410. package/build/mobile/focal-point-settings-panel/index.native.js +22 -16
  411. package/build/mobile/focal-point-settings-panel/index.native.js.map +1 -1
  412. package/build/mobile/gradient/index.native.js +37 -30
  413. package/build/mobile/gradient/index.native.js.map +1 -1
  414. package/build/mobile/gridicons/index.native.js +8 -7
  415. package/build/mobile/gridicons/index.native.js.map +1 -1
  416. package/build/mobile/html-text-input/index.native.js +36 -34
  417. package/build/mobile/html-text-input/index.native.js.map +1 -1
  418. package/build/mobile/image/icon-customize.native.js +8 -7
  419. package/build/mobile/image/icon-customize.native.js.map +1 -1
  420. package/build/mobile/image/icon-retry.native.js +11 -10
  421. package/build/mobile/image/icon-retry.native.js.map +1 -1
  422. package/build/mobile/image/image-editing-button.native.js +18 -15
  423. package/build/mobile/image/image-editing-button.native.js.map +1 -1
  424. package/build/mobile/image/index.native.js +83 -72
  425. package/build/mobile/image/index.native.js.map +1 -1
  426. package/build/mobile/keyboard-avoiding-view/index.ios.js +10 -8
  427. package/build/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
  428. package/build/mobile/keyboard-aware-flat-list/index.android.js +15 -14
  429. package/build/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
  430. package/build/mobile/keyboard-aware-flat-list/index.ios.js +16 -15
  431. package/build/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
  432. package/build/mobile/link-picker/index.native.js +55 -46
  433. package/build/mobile/link-picker/index.native.js.map +1 -1
  434. package/build/mobile/link-picker/link-picker-results.native.js +33 -29
  435. package/build/mobile/link-picker/link-picker-results.native.js.map +1 -1
  436. package/build/mobile/link-picker/link-picker-screen.native.js +2 -2
  437. package/build/mobile/link-picker/link-picker-screen.native.js.map +1 -1
  438. package/build/mobile/link-settings/index.native.js +58 -50
  439. package/build/mobile/link-settings/index.native.js.map +1 -1
  440. package/build/mobile/link-settings/link-rel.native.js +8 -7
  441. package/build/mobile/link-settings/link-rel.native.js.map +1 -1
  442. package/build/mobile/link-settings/link-settings-navigation.native.js +23 -19
  443. package/build/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
  444. package/build/mobile/link-settings/link-settings-screen.native.js +2 -2
  445. package/build/mobile/link-settings/link-settings-screen.native.js.map +1 -1
  446. package/build/mobile/media-edit/index.native.js +8 -3
  447. package/build/mobile/media-edit/index.native.js.map +1 -1
  448. package/build/mobile/picker/index.android.js +27 -24
  449. package/build/mobile/picker/index.android.js.map +1 -1
  450. package/build/mobile/picker/index.ios.js +4 -4
  451. package/build/mobile/picker/index.ios.js.map +1 -1
  452. package/build/mobile/segmented-control/index.native.js +49 -42
  453. package/build/mobile/segmented-control/index.native.js.map +1 -1
  454. package/build/mobile/utils/use-unit-converter-to-mobile.native.js +1 -10
  455. package/build/mobile/utils/use-unit-converter-to-mobile.native.js.map +1 -1
  456. package/build/modal/index.js +57 -46
  457. package/build/modal/index.js.map +1 -1
  458. package/build/navigable-container/container.js +6 -5
  459. package/build/navigable-container/container.js.map +1 -1
  460. package/build/navigable-container/menu.js +2 -2
  461. package/build/navigable-container/menu.js.map +1 -1
  462. package/build/navigable-container/tabbable.js +2 -2
  463. package/build/navigable-container/tabbable.js.map +1 -1
  464. package/build/navigation/back-button/index.js +7 -6
  465. package/build/navigation/back-button/index.js.map +1 -1
  466. package/build/navigation/group/index.js +21 -16
  467. package/build/navigation/group/index.js.map +1 -1
  468. package/build/navigation/index.js +13 -11
  469. package/build/navigation/index.js.map +1 -1
  470. package/build/navigation/item/base-content.js +11 -7
  471. package/build/navigation/item/base-content.js.map +1 -1
  472. package/build/navigation/item/base.js +5 -4
  473. package/build/navigation/item/base.js.map +1 -1
  474. package/build/navigation/item/index.js +17 -13
  475. package/build/navigation/item/index.js.map +1 -1
  476. package/build/navigation/menu/index.js +29 -23
  477. package/build/navigation/menu/index.js.map +1 -1
  478. package/build/navigation/menu/menu-title-search.js +14 -12
  479. package/build/navigation/menu/menu-title-search.js.map +1 -1
  480. package/build/navigation/menu/menu-title.js +35 -28
  481. package/build/navigation/menu/menu-title.js.map +1 -1
  482. package/build/navigation/menu/search-no-results-found.js +6 -2
  483. package/build/navigation/menu/search-no-results-found.js.map +1 -1
  484. package/build/navigator/navigator-back-button/component.js +2 -2
  485. package/build/navigator/navigator-back-button/component.js.map +1 -1
  486. package/build/navigator/navigator-button/component.js +2 -2
  487. package/build/navigator/navigator-button/component.js.map +1 -1
  488. package/build/navigator/navigator-provider/component.js +8 -6
  489. package/build/navigator/navigator-provider/component.js.map +1 -1
  490. package/build/navigator/navigator-screen/component.js +5 -4
  491. package/build/navigator/navigator-screen/component.js.map +1 -1
  492. package/build/navigator/navigator-to-parent-button/component.js +2 -2
  493. package/build/navigator/navigator-to-parent-button/component.js.map +1 -1
  494. package/build/notice/index.js +44 -37
  495. package/build/notice/index.js.map +1 -1
  496. package/build/notice/index.native.js +21 -15
  497. package/build/notice/index.native.js.map +1 -1
  498. package/build/notice/list.js +16 -14
  499. package/build/notice/list.js.map +1 -1
  500. package/build/notice/list.native.js +12 -10
  501. package/build/notice/list.native.js.map +1 -1
  502. package/build/number-control/index.js +24 -20
  503. package/build/number-control/index.js.map +1 -1
  504. package/build/palette-edit/index.js +226 -196
  505. package/build/palette-edit/index.js.map +1 -1
  506. package/build/panel/actions.native.js +9 -9
  507. package/build/panel/actions.native.js.map +1 -1
  508. package/build/panel/body.js +33 -29
  509. package/build/panel/body.js.map +1 -1
  510. package/build/panel/body.native.js +9 -7
  511. package/build/panel/body.native.js.map +1 -1
  512. package/build/panel/bottom-separator-cover.native.js +2 -2
  513. package/build/panel/bottom-separator-cover.native.js.map +1 -1
  514. package/build/panel/header.js +7 -4
  515. package/build/panel/header.js.map +1 -1
  516. package/build/panel/index.js +7 -6
  517. package/build/panel/index.js.map +1 -1
  518. package/build/panel/row.js +5 -4
  519. package/build/panel/row.js.map +1 -1
  520. package/build/placeholder/index.js +26 -20
  521. package/build/placeholder/index.js.map +1 -1
  522. package/build/popover/index.js +52 -42
  523. package/build/popover/index.js.map +1 -1
  524. package/build/private-apis.js +0 -2
  525. package/build/private-apis.js.map +1 -1
  526. package/build/progress-bar/index.js +32 -15
  527. package/build/progress-bar/index.js.map +1 -1
  528. package/build/progress-bar/styles.js +4 -4
  529. package/build/progress-bar/styles.js.map +1 -1
  530. package/build/query-controls/author-select.js +2 -2
  531. package/build/query-controls/author-select.js.map +1 -1
  532. package/build/query-controls/category-select.js +2 -2
  533. package/build/query-controls/category-select.js.map +1 -1
  534. package/build/query-controls/index.js +74 -78
  535. package/build/query-controls/index.js.map +1 -1
  536. package/build/query-controls/index.native.js +27 -24
  537. package/build/query-controls/index.native.js.map +1 -1
  538. package/build/radio-control/index.js +25 -22
  539. package/build/radio-control/index.js.map +1 -1
  540. package/build/radio-control/index.native.js +11 -10
  541. package/build/radio-control/index.native.js.map +1 -1
  542. package/build/radio-group/index.js +13 -10
  543. package/build/radio-group/index.js.map +1 -1
  544. package/build/radio-group/radio.js +6 -5
  545. package/build/radio-group/radio.js.map +1 -1
  546. package/build/range-control/index.js +100 -89
  547. package/build/range-control/index.js.map +1 -1
  548. package/build/range-control/index.native.js +3 -3
  549. package/build/range-control/index.native.js.map +1 -1
  550. package/build/range-control/input-range.js +2 -2
  551. package/build/range-control/input-range.js.map +1 -1
  552. package/build/range-control/mark.js +16 -13
  553. package/build/range-control/mark.js.map +1 -1
  554. package/build/range-control/rail.js +24 -20
  555. package/build/range-control/rail.js.map +1 -1
  556. package/build/range-control/tooltip.js +5 -4
  557. package/build/range-control/tooltip.js.map +1 -1
  558. package/build/resizable-box/index.js +7 -6
  559. package/build/resizable-box/index.js.map +1 -1
  560. package/build/resizable-box/index.native.js +2 -2
  561. package/build/resizable-box/index.native.js.map +1 -1
  562. package/build/resizable-box/resize-tooltip/index.js +11 -10
  563. package/build/resizable-box/resize-tooltip/index.js.map +1 -1
  564. package/build/resizable-box/resize-tooltip/label.js +12 -9
  565. package/build/resizable-box/resize-tooltip/label.js.map +1 -1
  566. package/build/responsive-wrapper/index.js +13 -10
  567. package/build/responsive-wrapper/index.js.map +1 -1
  568. package/build/sandbox/index.js +33 -29
  569. package/build/sandbox/index.js.map +1 -1
  570. package/build/sandbox/index.native.js +32 -29
  571. package/build/sandbox/index.native.js.map +1 -1
  572. package/build/scrollable/component.js +2 -2
  573. package/build/scrollable/component.js.map +1 -1
  574. package/build/search-control/index.js +30 -28
  575. package/build/search-control/index.js.map +1 -1
  576. package/build/search-control/index.native.js +46 -38
  577. package/build/search-control/index.native.js.map +1 -1
  578. package/build/select-control/chevron-down.js +9 -5
  579. package/build/select-control/chevron-down.js.map +1 -1
  580. package/build/select-control/index.js +38 -35
  581. package/build/select-control/index.js.map +1 -1
  582. package/build/select-control/index.native.js +2 -2
  583. package/build/select-control/index.native.js.map +1 -1
  584. package/build/shortcut/index.js +5 -4
  585. package/build/shortcut/index.js.map +1 -1
  586. package/build/slot-fill/bubbles-virtually/fill.js +5 -4
  587. package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
  588. package/build/slot-fill/bubbles-virtually/slot-fill-context.js +1 -1
  589. package/build/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
  590. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js +6 -5
  591. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  592. package/build/slot-fill/bubbles-virtually/slot.js +2 -2
  593. package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
  594. package/build/slot-fill/index.js +20 -12
  595. package/build/slot-fill/index.js.map +1 -1
  596. package/build/slot-fill/index.native.js +4 -4
  597. package/build/slot-fill/index.native.js.map +1 -1
  598. package/build/slot-fill/provider.js +6 -5
  599. package/build/slot-fill/provider.js.map +1 -1
  600. package/build/slot-fill/slot.js +16 -12
  601. package/build/slot-fill/slot.js.map +1 -1
  602. package/build/snackbar/index.js +32 -28
  603. package/build/snackbar/index.js.map +1 -1
  604. package/build/snackbar/list.js +29 -24
  605. package/build/snackbar/list.js.map +1 -1
  606. package/build/spacer/component.js +2 -2
  607. package/build/spacer/component.js.map +1 -1
  608. package/build/spinner/index.js +13 -12
  609. package/build/spinner/index.js.map +1 -1
  610. package/build/spinner/index.native.js +2 -2
  611. package/build/spinner/index.native.js.map +1 -1
  612. package/build/style-provider/index.js +6 -5
  613. package/build/style-provider/index.js.map +1 -1
  614. package/build/surface/component.js +2 -2
  615. package/build/surface/component.js.map +1 -1
  616. package/build/tab-panel/index.js +29 -26
  617. package/build/tab-panel/index.js.map +1 -1
  618. package/build/tabs/index.js +5 -4
  619. package/build/tabs/index.js.map +1 -1
  620. package/build/tabs/styles.js +9 -14
  621. package/build/tabs/styles.js.map +1 -1
  622. package/build/tabs/tab.js +6 -5
  623. package/build/tabs/tab.js.map +1 -1
  624. package/build/tabs/tablist.js +101 -7
  625. package/build/tabs/tablist.js.map +1 -1
  626. package/build/tabs/tabpanel.js +6 -5
  627. package/build/tabs/tabpanel.js.map +1 -1
  628. package/build/text/component.js +2 -2
  629. package/build/text/component.js.map +1 -1
  630. package/build/text-control/index.js +16 -15
  631. package/build/text-control/index.js.map +1 -1
  632. package/build/text-control/index.native.js +2 -2
  633. package/build/text-control/index.native.js.map +1 -1
  634. package/build/text-highlight/index.js +5 -3
  635. package/build/text-highlight/index.js.map +1 -1
  636. package/build/textarea-control/index.js +14 -13
  637. package/build/textarea-control/index.js.map +1 -1
  638. package/build/textarea-control/index.native.js +16 -15
  639. package/build/textarea-control/index.native.js.map +1 -1
  640. package/build/theme/color-algorithms.js +2 -2
  641. package/build/theme/color-algorithms.js.map +1 -1
  642. package/build/theme/index.js +3 -4
  643. package/build/theme/index.js.map +1 -1
  644. package/build/tip/index.js +9 -6
  645. package/build/tip/index.js.map +1 -1
  646. package/build/toggle-control/index.js +23 -20
  647. package/build/toggle-control/index.js.map +1 -1
  648. package/build/toggle-control/index.native.js +2 -2
  649. package/build/toggle-control/index.native.js.map +1 -1
  650. package/build/toggle-group-control/toggle-group-control/as-button-group.js +11 -9
  651. package/build/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -1
  652. package/build/toggle-group-control/toggle-group-control/as-radio-group.js +13 -11
  653. package/build/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
  654. package/build/toggle-group-control/toggle-group-control/component.js +22 -15
  655. package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
  656. package/build/toggle-group-control/toggle-group-control-option/component.js +5 -4
  657. package/build/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  658. package/build/toggle-group-control/toggle-group-control-option-base/component.js +50 -38
  659. package/build/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  660. package/build/toggle-group-control/toggle-group-control-option-icon/component.js +7 -6
  661. package/build/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  662. package/build/toolbar/toolbar/index.js +11 -10
  663. package/build/toolbar/toolbar/index.js.map +1 -1
  664. package/build/toolbar/toolbar/toolbar-container.js +11 -9
  665. package/build/toolbar/toolbar/toolbar-container.js.map +1 -1
  666. package/build/toolbar/toolbar/toolbar-container.native.js +4 -2
  667. package/build/toolbar/toolbar/toolbar-container.native.js.map +1 -1
  668. package/build/toolbar/toolbar-button/index.js +35 -31
  669. package/build/toolbar/toolbar-button/index.js.map +1 -1
  670. package/build/toolbar/toolbar-button/toolbar-button-container.js +5 -4
  671. package/build/toolbar/toolbar-button/toolbar-button-container.js.map +1 -1
  672. package/build/toolbar/toolbar-button/toolbar-button-container.native.js +4 -2
  673. package/build/toolbar/toolbar-button/toolbar-button-container.native.js.map +1 -1
  674. package/build/toolbar/toolbar-dropdown-menu/index.js +12 -11
  675. package/build/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
  676. package/build/toolbar/toolbar-group/index.js +9 -9
  677. package/build/toolbar/toolbar-group/index.js.map +1 -1
  678. package/build/toolbar/toolbar-group/toolbar-group-collapsed.js +6 -5
  679. package/build/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
  680. package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js +8 -7
  681. package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js.map +1 -1
  682. package/build/toolbar/toolbar-group/toolbar-group-container.js +5 -4
  683. package/build/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
  684. package/build/toolbar/toolbar-group/toolbar-group-container.native.js +5 -4
  685. package/build/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
  686. package/build/toolbar/toolbar-item/index.js +10 -7
  687. package/build/toolbar/toolbar-item/index.js.map +1 -1
  688. package/build/toolbar/toolbar-item/index.native.js +1 -1
  689. package/build/toolbar/toolbar-item/index.native.js.map +1 -1
  690. package/build/tools-panel/tools-panel/component.js +14 -12
  691. package/build/tools-panel/tools-panel/component.js.map +1 -1
  692. package/build/tools-panel/tools-panel-header/component.js +108 -94
  693. package/build/tools-panel/tools-panel-header/component.js.map +1 -1
  694. package/build/tools-panel/tools-panel-item/component.js +6 -5
  695. package/build/tools-panel/tools-panel-item/component.js.map +1 -1
  696. package/build/tooltip/index.js +25 -26
  697. package/build/tooltip/index.js.map +1 -1
  698. package/build/tooltip/index.native.js +33 -24
  699. package/build/tooltip/index.native.js.map +1 -1
  700. package/build/tree-grid/cell.js +10 -6
  701. package/build/tree-grid/cell.js.map +1 -1
  702. package/build/tree-grid/index.js +16 -10
  703. package/build/tree-grid/index.js.map +1 -1
  704. package/build/tree-grid/item.js +5 -4
  705. package/build/tree-grid/item.js.map +1 -1
  706. package/build/tree-grid/roving-tab-index-item.js +5 -4
  707. package/build/tree-grid/roving-tab-index-item.js.map +1 -1
  708. package/build/tree-grid/roving-tab-index.js +6 -6
  709. package/build/tree-grid/roving-tab-index.js.map +1 -1
  710. package/build/tree-grid/row.js +5 -4
  711. package/build/tree-grid/row.js.map +1 -1
  712. package/build/tree-select/index.js +2 -2
  713. package/build/tree-select/index.js.map +1 -1
  714. package/build/truncate/component.js +2 -2
  715. package/build/truncate/component.js.map +1 -1
  716. package/build/unit-control/index.js +3 -3
  717. package/build/unit-control/index.js.map +1 -1
  718. package/build/unit-control/index.native.js +56 -48
  719. package/build/unit-control/index.native.js.map +1 -1
  720. package/build/unit-control/unit-select-control.js +12 -10
  721. package/build/unit-control/unit-select-control.js.map +1 -1
  722. package/build/utils/style-mixins.js +0 -7
  723. package/build/utils/style-mixins.js.map +1 -1
  724. package/build/v-stack/component.js +2 -2
  725. package/build/v-stack/component.js.map +1 -1
  726. package/build/view/component.js +2 -2
  727. package/build/view/component.js.map +1 -1
  728. package/build/visually-hidden/component.js +2 -2
  729. package/build/visually-hidden/component.js.map +1 -1
  730. package/build/z-stack/component.js +8 -7
  731. package/build/z-stack/component.js.map +1 -1
  732. package/build-module/alignment-matrix-control/cell.js +17 -12
  733. package/build-module/alignment-matrix-control/cell.js.map +1 -1
  734. package/build-module/alignment-matrix-control/icon.js +12 -11
  735. package/build-module/alignment-matrix-control/icon.js.map +1 -1
  736. package/build-module/alignment-matrix-control/index.js +18 -18
  737. package/build-module/alignment-matrix-control/index.js.map +1 -1
  738. package/build-module/angle-picker-control/angle-circle.js +14 -12
  739. package/build-module/angle-picker-control/angle-circle.js.map +1 -1
  740. package/build-module/angle-picker-control/index.js +31 -24
  741. package/build-module/angle-picker-control/index.js.map +1 -1
  742. package/build-module/animate/index.js +1 -1
  743. package/build-module/animate/index.js.map +1 -1
  744. package/build-module/autocomplete/autocompleter-ui.js +58 -30
  745. package/build-module/autocomplete/autocompleter-ui.js.map +1 -1
  746. package/build-module/autocomplete/autocompleter-ui.native.js +51 -40
  747. package/build-module/autocomplete/autocompleter-ui.native.js.map +1 -1
  748. package/build-module/autocomplete/background-view.android.js +5 -4
  749. package/build-module/autocomplete/background-view.android.js.map +1 -1
  750. package/build-module/autocomplete/background-view.ios.js +5 -4
  751. package/build-module/autocomplete/background-view.ios.js.map +1 -1
  752. package/build-module/autocomplete/index.js +7 -3
  753. package/build-module/autocomplete/index.js.map +1 -1
  754. package/build-module/base-control/index.js +34 -24
  755. package/build-module/base-control/index.js.map +1 -1
  756. package/build-module/base-control/index.native.js +10 -4
  757. package/build-module/base-control/index.native.js.map +1 -1
  758. package/build-module/border-box-control/border-box-control/component.js +50 -44
  759. package/build-module/border-box-control/border-box-control/component.js.map +1 -1
  760. package/build-module/border-box-control/border-box-control-linked-button/component.js +15 -13
  761. package/build-module/border-box-control/border-box-control-linked-button/component.js.map +1 -1
  762. package/build-module/border-box-control/border-box-control-split-controls/component.js +40 -38
  763. package/build-module/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  764. package/build-module/border-box-control/border-box-control-visualizer/component.js +2 -2
  765. package/build-module/border-box-control/border-box-control-visualizer/component.js.map +1 -1
  766. package/build-module/border-control/border-control/component.js +57 -52
  767. package/build-module/border-control/border-control/component.js.map +1 -1
  768. package/build-module/border-control/border-control-dropdown/component.js +57 -43
  769. package/build-module/border-control/border-control-dropdown/component.js.map +1 -1
  770. package/build-module/border-control/border-control-style-picker/component.js +9 -9
  771. package/build-module/border-control/border-control-style-picker/component.js.map +1 -1
  772. package/build-module/box-control/all-input-control.js +31 -28
  773. package/build-module/box-control/all-input-control.js.map +1 -1
  774. package/build-module/box-control/axial-input-controls.js +47 -41
  775. package/build-module/box-control/axial-input-controls.js.map +1 -1
  776. package/build-module/box-control/icon.js +16 -12
  777. package/build-module/box-control/icon.js.map +1 -1
  778. package/build-module/box-control/index.js +32 -24
  779. package/build-module/box-control/index.js.map +1 -1
  780. package/build-module/box-control/input-controls.js +48 -43
  781. package/build-module/box-control/input-controls.js.map +1 -1
  782. package/build-module/box-control/linked-button.js +12 -11
  783. package/build-module/box-control/linked-button.js.map +1 -1
  784. package/build-module/button/deprecated.js +2 -2
  785. package/build-module/button/deprecated.js.map +1 -1
  786. package/build-module/button/index.js +36 -19
  787. package/build-module/button/index.js.map +1 -1
  788. package/build-module/button/index.native.js +28 -21
  789. package/build-module/button/index.native.js.map +1 -1
  790. package/build-module/button-group/index.js +2 -3
  791. package/build-module/button-group/index.js.map +1 -1
  792. package/build-module/card/card/component.js +21 -17
  793. package/build-module/card/card/component.js.map +1 -1
  794. package/build-module/card/card-body/component.js +3 -3
  795. package/build-module/card/card-body/component.js.map +1 -1
  796. package/build-module/card/card-divider/component.js +2 -2
  797. package/build-module/card/card-divider/component.js.map +1 -1
  798. package/build-module/card/card-footer/component.js +2 -2
  799. package/build-module/card/card-footer/component.js.map +1 -1
  800. package/build-module/card/card-header/component.js +2 -2
  801. package/build-module/card/card-header/component.js.map +1 -1
  802. package/build-module/card/card-media/component.js +2 -2
  803. package/build-module/card/card-media/component.js.map +1 -1
  804. package/build-module/checkbox-control/index.js +40 -34
  805. package/build-module/checkbox-control/index.js.map +1 -1
  806. package/build-module/circular-option-picker/circular-option-picker-actions.js +10 -8
  807. package/build-module/circular-option-picker/circular-option-picker-actions.js.map +1 -1
  808. package/build-module/circular-option-picker/circular-option-picker-option-group.js +5 -5
  809. package/build-module/circular-option-picker/circular-option-picker-option-group.js.map +1 -1
  810. package/build-module/circular-option-picker/circular-option-picker-option.js +17 -14
  811. package/build-module/circular-option-picker/circular-option-picker-option.js.map +1 -1
  812. package/build-module/circular-option-picker/circular-option-picker.js +36 -28
  813. package/build-module/circular-option-picker/circular-option-picker.js.map +1 -1
  814. package/build-module/clipboard-button/index.js +5 -4
  815. package/build-module/clipboard-button/index.js.map +1 -1
  816. package/build-module/color-control/index.native.js +2 -2
  817. package/build-module/color-control/index.native.js.map +1 -1
  818. package/build-module/color-indicator/index.js +2 -3
  819. package/build-module/color-indicator/index.js.map +1 -1
  820. package/build-module/color-indicator/index.native.js +40 -36
  821. package/build-module/color-indicator/index.native.js.map +1 -1
  822. package/build-module/color-palette/index.js +91 -82
  823. package/build-module/color-palette/index.js.map +1 -1
  824. package/build-module/color-palette/index.native.js +77 -65
  825. package/build-module/color-palette/index.native.js.map +1 -1
  826. package/build-module/color-picker/color-copy-button.js +10 -9
  827. package/build-module/color-picker/color-copy-button.js.map +1 -1
  828. package/build-module/color-picker/color-input.js +4 -4
  829. package/build-module/color-picker/color-input.js.map +1 -1
  830. package/build-module/color-picker/component.js +37 -30
  831. package/build-module/color-picker/component.js.map +1 -1
  832. package/build-module/color-picker/hex-input.js +6 -5
  833. package/build-module/color-picker/hex-input.js.map +1 -1
  834. package/build-module/color-picker/hsl-input.js +50 -46
  835. package/build-module/color-picker/hsl-input.js.map +1 -1
  836. package/build-module/color-picker/hsv-color-picker.native.js +33 -31
  837. package/build-module/color-picker/hsv-color-picker.native.js.map +1 -1
  838. package/build-module/color-picker/hue-picker.native.js +34 -31
  839. package/build-module/color-picker/hue-picker.native.js.map +1 -1
  840. package/build-module/color-picker/index.native.js +68 -53
  841. package/build-module/color-picker/index.native.js.map +1 -1
  842. package/build-module/color-picker/input-with-slider.js +34 -31
  843. package/build-module/color-picker/input-with-slider.js.map +1 -1
  844. package/build-module/color-picker/legacy-adapter.js +2 -2
  845. package/build-module/color-picker/legacy-adapter.js.map +1 -1
  846. package/build-module/color-picker/picker.js +2 -3
  847. package/build-module/color-picker/picker.js.map +1 -1
  848. package/build-module/color-picker/rgb-input.js +54 -50
  849. package/build-module/color-picker/rgb-input.js.map +1 -1
  850. package/build-module/color-picker/saturation-picker.native.js +45 -41
  851. package/build-module/color-picker/saturation-picker.native.js.map +1 -1
  852. package/build-module/combobox-control/index.js +68 -52
  853. package/build-module/combobox-control/index.js.map +1 -1
  854. package/build-module/combobox-control/types.js.map +1 -1
  855. package/build-module/composite/legacy/index.js +3 -4
  856. package/build-module/composite/legacy/index.js.map +1 -1
  857. package/build-module/confirm-dialog/component.js +37 -26
  858. package/build-module/confirm-dialog/component.js.map +1 -1
  859. package/build-module/context/context-connect.js +1 -1
  860. package/build-module/context/context-connect.js.map +1 -1
  861. package/build-module/context/context-system-provider.js +6 -5
  862. package/build-module/context/context-system-provider.js.map +1 -1
  863. package/build-module/context/use-context-system.js +1 -1
  864. package/build-module/context/use-context-system.js.map +1 -1
  865. package/build-module/css.d.js +2 -0
  866. package/build-module/css.d.js.map +1 -0
  867. package/build-module/custom-gradient-picker/gradient-bar/control-points.js +116 -107
  868. package/build-module/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  869. package/build-module/custom-gradient-picker/gradient-bar/index.js +50 -47
  870. package/build-module/custom-gradient-picker/gradient-bar/index.js.map +1 -1
  871. package/build-module/custom-gradient-picker/index.js +32 -25
  872. package/build-module/custom-gradient-picker/index.js.map +1 -1
  873. package/build-module/custom-gradient-picker/index.native.js +25 -17
  874. package/build-module/custom-gradient-picker/index.native.js.map +1 -1
  875. package/build-module/custom-select-control/index.js +73 -59
  876. package/build-module/custom-select-control/index.js.map +1 -1
  877. package/build-module/custom-select-control-v2/custom-select.js +49 -35
  878. package/build-module/custom-select-control-v2/custom-select.js.map +1 -1
  879. package/build-module/custom-select-control-v2/default-component/index.js +2 -2
  880. package/build-module/custom-select-control-v2/default-component/index.js.map +1 -1
  881. package/build-module/custom-select-control-v2/item.js +10 -6
  882. package/build-module/custom-select-control-v2/item.js.map +1 -1
  883. package/build-module/custom-select-control-v2/legacy-component/index.js +35 -43
  884. package/build-module/custom-select-control-v2/legacy-component/index.js.map +1 -1
  885. package/build-module/custom-select-control-v2/styles.js +9 -9
  886. package/build-module/custom-select-control-v2/styles.js.map +1 -1
  887. package/build-module/custom-select-control-v2/types.js.map +1 -1
  888. package/build-module/dashicon/index.js +2 -2
  889. package/build-module/dashicon/index.js.map +1 -1
  890. package/build-module/dashicon/index.native.js +3 -3
  891. package/build-module/dashicon/index.native.js.map +1 -1
  892. package/build-module/date-time/date/index.js +93 -85
  893. package/build-module/date-time/date/index.js.map +1 -1
  894. package/build-module/date-time/date-time/index.js +20 -15
  895. package/build-module/date-time/date-time/index.js.map +1 -1
  896. package/build-module/date-time/time/index.js +164 -135
  897. package/build-module/date-time/time/index.js.map +1 -1
  898. package/build-module/date-time/time/timezone.js +11 -8
  899. package/build-module/date-time/time/timezone.js.map +1 -1
  900. package/build-module/dimension-control/index.js +9 -5
  901. package/build-module/dimension-control/index.js.map +1 -1
  902. package/build-module/disabled/index.js +11 -9
  903. package/build-module/disabled/index.js.map +1 -1
  904. package/build-module/disabled/index.native.js +5 -4
  905. package/build-module/disabled/index.native.js.map +1 -1
  906. package/build-module/disclosure/index.js +5 -5
  907. package/build-module/disclosure/index.js.map +1 -1
  908. package/build-module/divider/component.js +3 -3
  909. package/build-module/divider/component.js.map +1 -1
  910. package/build-module/draggable/index.js +16 -12
  911. package/build-module/draggable/index.js.map +1 -1
  912. package/build-module/draggable/index.native.js +15 -11
  913. package/build-module/draggable/index.native.js.map +1 -1
  914. package/build-module/drop-zone/index.js +24 -17
  915. package/build-module/drop-zone/index.js.map +1 -1
  916. package/build-module/dropdown/dropdown-content-wrapper.js +2 -2
  917. package/build-module/dropdown/dropdown-content-wrapper.js.map +1 -1
  918. package/build-module/dropdown/index.js +22 -19
  919. package/build-module/dropdown/index.js.map +1 -1
  920. package/build-module/dropdown/index.native.js +5 -2
  921. package/build-module/dropdown/index.native.js.map +1 -1
  922. package/build-module/dropdown-menu/index.js +30 -27
  923. package/build-module/dropdown-menu/index.js.map +1 -1
  924. package/build-module/dropdown-menu/index.native.js +33 -29
  925. package/build-module/dropdown-menu/index.native.js.map +1 -1
  926. package/build-module/dropdown-menu-v2/index.js +110 -76
  927. package/build-module/dropdown-menu-v2/index.js.map +1 -1
  928. package/build-module/duotone-picker/color-list-picker/index.js +54 -46
  929. package/build-module/duotone-picker/color-list-picker/index.js.map +1 -1
  930. package/build-module/duotone-picker/custom-duotone-bar.js +2 -2
  931. package/build-module/duotone-picker/custom-duotone-bar.js.map +1 -1
  932. package/build-module/duotone-picker/duotone-picker.js +41 -38
  933. package/build-module/duotone-picker/duotone-picker.js.map +1 -1
  934. package/build-module/duotone-picker/duotone-swatch.js +3 -3
  935. package/build-module/duotone-picker/duotone-swatch.js.map +1 -1
  936. package/build-module/elevation/component.js +2 -2
  937. package/build-module/elevation/component.js.map +1 -1
  938. package/build-module/external-link/index.js +17 -12
  939. package/build-module/external-link/index.js.map +1 -1
  940. package/build-module/external-link/index.native.js +10 -6
  941. package/build-module/external-link/index.native.js.map +1 -1
  942. package/build-module/flex/flex/component.js +9 -7
  943. package/build-module/flex/flex/component.js.map +1 -1
  944. package/build-module/flex/flex-block/component.js +2 -2
  945. package/build-module/flex/flex-block/component.js.map +1 -1
  946. package/build-module/flex/flex-item/component.js +2 -2
  947. package/build-module/flex/flex-item/component.js.map +1 -1
  948. package/build-module/focal-point-picker/controls.js +21 -19
  949. package/build-module/focal-point-picker/controls.js.map +1 -1
  950. package/build-module/focal-point-picker/focal-point.js +3 -5
  951. package/build-module/focal-point-picker/focal-point.js.map +1 -1
  952. package/build-module/focal-point-picker/focal-point.native.js +12 -10
  953. package/build-module/focal-point-picker/focal-point.native.js.map +1 -1
  954. package/build-module/focal-point-picker/grid.js +22 -20
  955. package/build-module/focal-point-picker/grid.js.map +1 -1
  956. package/build-module/focal-point-picker/index.js +43 -39
  957. package/build-module/focal-point-picker/index.js.map +1 -1
  958. package/build-module/focal-point-picker/index.native.js +67 -62
  959. package/build-module/focal-point-picker/index.native.js.map +1 -1
  960. package/build-module/focal-point-picker/media.js +4 -4
  961. package/build-module/focal-point-picker/media.js.map +1 -1
  962. package/build-module/focal-point-picker/styles/focal-point-style.js +2 -6
  963. package/build-module/focal-point-picker/styles/focal-point-style.js.map +1 -1
  964. package/build-module/focal-point-picker/tooltip/index.native.js +33 -27
  965. package/build-module/focal-point-picker/tooltip/index.native.js.map +1 -1
  966. package/build-module/focusable-iframe/index.js +2 -3
  967. package/build-module/focusable-iframe/index.js.map +1 -1
  968. package/build-module/font-size-picker/font-size-picker-select.js +2 -2
  969. package/build-module/font-size-picker/font-size-picker-select.js.map +1 -1
  970. package/build-module/font-size-picker/font-size-picker-toggle-group.js +10 -10
  971. package/build-module/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  972. package/build-module/font-size-picker/index.js +120 -103
  973. package/build-module/font-size-picker/index.js.map +1 -1
  974. package/build-module/font-size-picker/index.native.js +78 -63
  975. package/build-module/font-size-picker/index.native.js.map +1 -1
  976. package/build-module/footer-message-control/index.native.js +2 -2
  977. package/build-module/footer-message-control/index.native.js.map +1 -1
  978. package/build-module/form-file-upload/index.js +21 -18
  979. package/build-module/form-file-upload/index.js.map +1 -1
  980. package/build-module/form-toggle/index.js +19 -18
  981. package/build-module/form-toggle/index.js.map +1 -1
  982. package/build-module/form-token-field/index.js +60 -55
  983. package/build-module/form-token-field/index.js.map +1 -1
  984. package/build-module/form-token-field/suggestions-list.js +42 -39
  985. package/build-module/form-token-field/suggestions-list.js.map +1 -1
  986. package/build-module/form-token-field/token-input.js +2 -3
  987. package/build-module/form-token-field/token-input.js.map +1 -1
  988. package/build-module/form-token-field/token.js +23 -18
  989. package/build-module/form-token-field/token.js.map +1 -1
  990. package/build-module/gradient-picker/index.js +51 -47
  991. package/build-module/gradient-picker/index.js.map +1 -1
  992. package/build-module/grid/component.js +2 -2
  993. package/build-module/grid/component.js.map +1 -1
  994. package/build-module/guide/icons.js +9 -8
  995. package/build-module/guide/icons.js.map +1 -1
  996. package/build-module/guide/index.js +34 -26
  997. package/build-module/guide/index.js.map +1 -1
  998. package/build-module/guide/page-control.js +16 -17
  999. package/build-module/guide/page-control.js.map +1 -1
  1000. package/build-module/guide/page.js +2 -3
  1001. package/build-module/guide/page.js.map +1 -1
  1002. package/build-module/h-stack/component.js +2 -2
  1003. package/build-module/h-stack/component.js.map +1 -1
  1004. package/build-module/h-stack/hook.js +3 -4
  1005. package/build-module/h-stack/hook.js.map +1 -1
  1006. package/build-module/heading/component.js +2 -2
  1007. package/build-module/heading/component.js.map +1 -1
  1008. package/build-module/higher-order/navigate-regions/index.js +7 -6
  1009. package/build-module/higher-order/navigate-regions/index.js.map +1 -1
  1010. package/build-module/higher-order/with-constrained-tabbing/index.js +7 -6
  1011. package/build-module/higher-order/with-constrained-tabbing/index.js.map +1 -1
  1012. package/build-module/higher-order/with-fallback-styles/index.js +7 -5
  1013. package/build-module/higher-order/with-fallback-styles/index.js.map +1 -1
  1014. package/build-module/higher-order/with-filters/index.js +2 -2
  1015. package/build-module/higher-order/with-filters/index.js.map +1 -1
  1016. package/build-module/higher-order/with-focus-outside/index.js +8 -7
  1017. package/build-module/higher-order/with-focus-outside/index.js.map +1 -1
  1018. package/build-module/higher-order/with-focus-outside/index.native.js +8 -7
  1019. package/build-module/higher-order/with-focus-outside/index.native.js.map +1 -1
  1020. package/build-module/higher-order/with-focus-return/index.js +7 -6
  1021. package/build-module/higher-order/with-focus-return/index.js.map +1 -1
  1022. package/build-module/higher-order/with-notices/index.js +4 -4
  1023. package/build-module/higher-order/with-notices/index.js.map +1 -1
  1024. package/build-module/higher-order/with-spoken-messages/index.js +2 -2
  1025. package/build-module/higher-order/with-spoken-messages/index.js.map +1 -1
  1026. package/build-module/icon/index.js +3 -2
  1027. package/build-module/icon/index.js.map +1 -1
  1028. package/build-module/index.js +1 -0
  1029. package/build-module/index.js.map +1 -1
  1030. package/build-module/index.native.js +0 -3
  1031. package/build-module/index.native.js.map +1 -1
  1032. package/build-module/input-control/backdrop.js +2 -2
  1033. package/build-module/input-control/backdrop.js.map +1 -1
  1034. package/build-module/input-control/index.js +36 -34
  1035. package/build-module/input-control/index.js.map +1 -1
  1036. package/build-module/input-control/input-base.js +38 -25
  1037. package/build-module/input-control/input-base.js.map +1 -1
  1038. package/build-module/input-control/input-field.js +2 -2
  1039. package/build-module/input-control/input-field.js.map +1 -1
  1040. package/build-module/input-control/input-prefix-wrapper.js +2 -2
  1041. package/build-module/input-control/input-prefix-wrapper.js.map +1 -1
  1042. package/build-module/input-control/input-suffix-wrapper.js +2 -2
  1043. package/build-module/input-control/input-suffix-wrapper.js.map +1 -1
  1044. package/build-module/input-control/label.js +12 -8
  1045. package/build-module/input-control/label.js.map +1 -1
  1046. package/build-module/input-control/styles/input-control-styles.js +21 -21
  1047. package/build-module/input-control/styles/input-control-styles.js.map +1 -1
  1048. package/build-module/isolated-event-container/index.js +2 -2
  1049. package/build-module/isolated-event-container/index.js.map +1 -1
  1050. package/build-module/item-group/item/component.js +8 -7
  1051. package/build-module/item-group/item/component.js.map +1 -1
  1052. package/build-module/item-group/item-group/component.js +8 -7
  1053. package/build-module/item-group/item-group/component.js.map +1 -1
  1054. package/build-module/keyboard-shortcuts/index.js +12 -9
  1055. package/build-module/keyboard-shortcuts/index.js.map +1 -1
  1056. package/build-module/menu-group/index.js +15 -12
  1057. package/build-module/menu-group/index.js.map +1 -1
  1058. package/build-module/menu-item/index.js +24 -18
  1059. package/build-module/menu-item/index.js.map +1 -1
  1060. package/build-module/menu-items-choice/index.js +25 -22
  1061. package/build-module/menu-items-choice/index.js.map +1 -1
  1062. package/build-module/mobile/autocompletion-items.native.js +2 -2
  1063. package/build-module/mobile/autocompletion-items.native.js.map +1 -1
  1064. package/build-module/mobile/badge/index.native.js +12 -6
  1065. package/build-module/mobile/badge/index.native.js.map +1 -1
  1066. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +23 -18
  1067. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
  1068. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +22 -16
  1069. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
  1070. package/build-module/mobile/bottom-sheet/button.native.js +17 -14
  1071. package/build-module/mobile/bottom-sheet/button.native.js.map +1 -1
  1072. package/build-module/mobile/bottom-sheet/cell.native.js +70 -53
  1073. package/build-module/mobile/bottom-sheet/cell.native.js.map +1 -1
  1074. package/build-module/mobile/bottom-sheet/chevron-back.native.js +7 -6
  1075. package/build-module/mobile/bottom-sheet/chevron-back.native.js.map +1 -1
  1076. package/build-module/mobile/bottom-sheet/color-cell.native.js +14 -11
  1077. package/build-module/mobile/bottom-sheet/color-cell.native.js.map +1 -1
  1078. package/build-module/mobile/bottom-sheet/cycle-picker-cell.native.js +2 -2
  1079. package/build-module/mobile/bottom-sheet/cycle-picker-cell.native.js.map +1 -1
  1080. package/build-module/mobile/bottom-sheet/footer-message-cell.native.js +4 -4
  1081. package/build-module/mobile/bottom-sheet/footer-message-cell.native.js.map +1 -1
  1082. package/build-module/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js +5 -4
  1083. package/build-module/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js.map +1 -1
  1084. package/build-module/mobile/bottom-sheet/index.native.js +74 -56
  1085. package/build-module/mobile/bottom-sheet/index.native.js.map +1 -1
  1086. package/build-module/mobile/bottom-sheet/keyboard-avoiding-view.native.js +5 -4
  1087. package/build-module/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
  1088. package/build-module/mobile/bottom-sheet/link-cell.native.js +7 -6
  1089. package/build-module/mobile/bottom-sheet/link-cell.native.js.map +1 -1
  1090. package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js +20 -15
  1091. package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
  1092. package/build-module/mobile/bottom-sheet/lock-icon/index.native.js +2 -2
  1093. package/build-module/mobile/bottom-sheet/lock-icon/index.native.js.map +1 -1
  1094. package/build-module/mobile/bottom-sheet/nav-bar/action-button.native.js +9 -7
  1095. package/build-module/mobile/bottom-sheet/nav-bar/action-button.native.js.map +1 -1
  1096. package/build-module/mobile/bottom-sheet/nav-bar/apply-button.native.js +18 -15
  1097. package/build-module/mobile/bottom-sheet/nav-bar/apply-button.native.js.map +1 -1
  1098. package/build-module/mobile/bottom-sheet/nav-bar/back-button.native.js +20 -16
  1099. package/build-module/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
  1100. package/build-module/mobile/bottom-sheet/nav-bar/heading.native.js +5 -4
  1101. package/build-module/mobile/bottom-sheet/nav-bar/heading.native.js.map +1 -1
  1102. package/build-module/mobile/bottom-sheet/nav-bar/index.native.js +5 -4
  1103. package/build-module/mobile/bottom-sheet/nav-bar/index.native.js.map +1 -1
  1104. package/build-module/mobile/bottom-sheet/picker-cell.native.js +11 -10
  1105. package/build-module/mobile/bottom-sheet/picker-cell.native.js.map +1 -1
  1106. package/build-module/mobile/bottom-sheet/radio-cell.native.js +10 -9
  1107. package/build-module/mobile/bottom-sheet/radio-cell.native.js.map +1 -1
  1108. package/build-module/mobile/bottom-sheet/range-cell.native.js +51 -45
  1109. package/build-module/mobile/bottom-sheet/range-cell.native.js.map +1 -1
  1110. package/build-module/mobile/bottom-sheet/range-text-input.native.js +29 -25
  1111. package/build-module/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
  1112. package/build-module/mobile/bottom-sheet/ripple.native.js +12 -9
  1113. package/build-module/mobile/bottom-sheet/ripple.native.js.map +1 -1
  1114. package/build-module/mobile/bottom-sheet/stepper-cell/index.native.js +42 -35
  1115. package/build-module/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
  1116. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.android.js +34 -29
  1117. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.android.js.map +1 -1
  1118. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.ios.js +34 -29
  1119. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.ios.js.map +1 -1
  1120. package/build-module/mobile/bottom-sheet/sub-sheet/index.native.js +16 -3
  1121. package/build-module/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
  1122. package/build-module/mobile/bottom-sheet/switch-cell.native.js +11 -10
  1123. package/build-module/mobile/bottom-sheet/switch-cell.native.js.map +1 -1
  1124. package/build-module/mobile/bottom-sheet-select-control/index.native.js +42 -30
  1125. package/build-module/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
  1126. package/build-module/mobile/bottom-sheet-text-control/index.native.js +42 -28
  1127. package/build-module/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
  1128. package/build-module/mobile/color-settings/gradient-picker-screen.native.js +15 -8
  1129. package/build-module/mobile/color-settings/gradient-picker-screen.native.js.map +1 -1
  1130. package/build-module/mobile/color-settings/index.native.js +27 -20
  1131. package/build-module/mobile/color-settings/index.native.js.map +1 -1
  1132. package/build-module/mobile/color-settings/palette.screen.native.js +85 -63
  1133. package/build-module/mobile/color-settings/palette.screen.native.js.map +1 -1
  1134. package/build-module/mobile/color-settings/picker-screen.native.js +3 -3
  1135. package/build-module/mobile/color-settings/picker-screen.native.js.map +1 -1
  1136. package/build-module/mobile/cycle-select-control/index.native.js +2 -2
  1137. package/build-module/mobile/cycle-select-control/index.native.js.map +1 -1
  1138. package/build-module/mobile/dashicons/index.native.js +8 -7
  1139. package/build-module/mobile/dashicons/index.native.js.map +1 -1
  1140. package/build-module/mobile/focal-point-settings-panel/index.native.js +22 -15
  1141. package/build-module/mobile/focal-point-settings-panel/index.native.js.map +1 -1
  1142. package/build-module/mobile/gradient/index.native.js +37 -29
  1143. package/build-module/mobile/gradient/index.native.js.map +1 -1
  1144. package/build-module/mobile/gridicons/index.native.js +8 -7
  1145. package/build-module/mobile/gridicons/index.native.js.map +1 -1
  1146. package/build-module/mobile/html-text-input/index.native.js +37 -34
  1147. package/build-module/mobile/html-text-input/index.native.js.map +1 -1
  1148. package/build-module/mobile/image/icon-customize.native.js +8 -7
  1149. package/build-module/mobile/image/icon-customize.native.js.map +1 -1
  1150. package/build-module/mobile/image/icon-retry.native.js +12 -10
  1151. package/build-module/mobile/image/icon-retry.native.js.map +1 -1
  1152. package/build-module/mobile/image/image-editing-button.native.js +19 -15
  1153. package/build-module/mobile/image/image-editing-button.native.js.map +1 -1
  1154. package/build-module/mobile/image/index.native.js +85 -72
  1155. package/build-module/mobile/image/index.native.js.map +1 -1
  1156. package/build-module/mobile/keyboard-avoiding-view/index.ios.js +11 -8
  1157. package/build-module/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
  1158. package/build-module/mobile/keyboard-aware-flat-list/index.android.js +15 -14
  1159. package/build-module/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
  1160. package/build-module/mobile/keyboard-aware-flat-list/index.ios.js +16 -15
  1161. package/build-module/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
  1162. package/build-module/mobile/link-picker/index.native.js +56 -46
  1163. package/build-module/mobile/link-picker/index.native.js.map +1 -1
  1164. package/build-module/mobile/link-picker/link-picker-results.native.js +33 -29
  1165. package/build-module/mobile/link-picker/link-picker-results.native.js.map +1 -1
  1166. package/build-module/mobile/link-picker/link-picker-screen.native.js +2 -2
  1167. package/build-module/mobile/link-picker/link-picker-screen.native.js.map +1 -1
  1168. package/build-module/mobile/link-settings/index.native.js +60 -50
  1169. package/build-module/mobile/link-settings/index.native.js.map +1 -1
  1170. package/build-module/mobile/link-settings/link-rel.native.js +8 -7
  1171. package/build-module/mobile/link-settings/link-rel.native.js.map +1 -1
  1172. package/build-module/mobile/link-settings/link-settings-navigation.native.js +24 -19
  1173. package/build-module/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
  1174. package/build-module/mobile/link-settings/link-settings-screen.native.js +2 -2
  1175. package/build-module/mobile/link-settings/link-settings-screen.native.js.map +1 -1
  1176. package/build-module/mobile/media-edit/index.native.js +7 -3
  1177. package/build-module/mobile/media-edit/index.native.js.map +1 -1
  1178. package/build-module/mobile/picker/index.android.js +28 -24
  1179. package/build-module/mobile/picker/index.android.js.map +1 -1
  1180. package/build-module/mobile/picker/index.ios.js +3 -3
  1181. package/build-module/mobile/picker/index.ios.js.map +1 -1
  1182. package/build-module/mobile/segmented-control/index.native.js +50 -42
  1183. package/build-module/mobile/segmented-control/index.native.js.map +1 -1
  1184. package/build-module/mobile/utils/use-unit-converter-to-mobile.native.js +2 -10
  1185. package/build-module/mobile/utils/use-unit-converter-to-mobile.native.js.map +1 -1
  1186. package/build-module/modal/index.js +58 -46
  1187. package/build-module/modal/index.js.map +1 -1
  1188. package/build-module/navigable-container/container.js +6 -6
  1189. package/build-module/navigable-container/container.js.map +1 -1
  1190. package/build-module/navigable-container/menu.js +2 -2
  1191. package/build-module/navigable-container/menu.js.map +1 -1
  1192. package/build-module/navigable-container/tabbable.js +2 -2
  1193. package/build-module/navigable-container/tabbable.js.map +1 -1
  1194. package/build-module/navigation/back-button/index.js +8 -6
  1195. package/build-module/navigation/back-button/index.js.map +1 -1
  1196. package/build-module/navigation/group/index.js +22 -16
  1197. package/build-module/navigation/group/index.js.map +1 -1
  1198. package/build-module/navigation/index.js +13 -11
  1199. package/build-module/navigation/index.js.map +1 -1
  1200. package/build-module/navigation/item/base-content.js +13 -7
  1201. package/build-module/navigation/item/base-content.js.map +1 -1
  1202. package/build-module/navigation/item/base.js +5 -4
  1203. package/build-module/navigation/item/base.js.map +1 -1
  1204. package/build-module/navigation/item/index.js +18 -13
  1205. package/build-module/navigation/item/index.js.map +1 -1
  1206. package/build-module/navigation/menu/index.js +30 -23
  1207. package/build-module/navigation/menu/index.js.map +1 -1
  1208. package/build-module/navigation/menu/menu-title-search.js +14 -12
  1209. package/build-module/navigation/menu/menu-title-search.js.map +1 -1
  1210. package/build-module/navigation/menu/menu-title.js +36 -28
  1211. package/build-module/navigation/menu/menu-title.js.map +1 -1
  1212. package/build-module/navigation/menu/search-no-results-found.js +7 -2
  1213. package/build-module/navigation/menu/search-no-results-found.js.map +1 -1
  1214. package/build-module/navigator/navigator-back-button/component.js +2 -2
  1215. package/build-module/navigator/navigator-back-button/component.js.map +1 -1
  1216. package/build-module/navigator/navigator-button/component.js +2 -2
  1217. package/build-module/navigator/navigator-button/component.js.map +1 -1
  1218. package/build-module/navigator/navigator-provider/component.js +8 -6
  1219. package/build-module/navigator/navigator-provider/component.js.map +1 -1
  1220. package/build-module/navigator/navigator-screen/component.js +5 -4
  1221. package/build-module/navigator/navigator-screen/component.js.map +1 -1
  1222. package/build-module/navigator/navigator-to-parent-button/component.js +2 -2
  1223. package/build-module/navigator/navigator-to-parent-button/component.js.map +1 -1
  1224. package/build-module/notice/index.js +45 -37
  1225. package/build-module/notice/index.js.map +1 -1
  1226. package/build-module/notice/index.native.js +23 -15
  1227. package/build-module/notice/index.native.js.map +1 -1
  1228. package/build-module/notice/list.js +16 -14
  1229. package/build-module/notice/list.js.map +1 -1
  1230. package/build-module/notice/list.native.js +12 -10
  1231. package/build-module/notice/list.native.js.map +1 -1
  1232. package/build-module/number-control/index.js +26 -20
  1233. package/build-module/number-control/index.js.map +1 -1
  1234. package/build-module/palette-edit/index.js +228 -196
  1235. package/build-module/palette-edit/index.js.map +1 -1
  1236. package/build-module/panel/actions.native.js +10 -9
  1237. package/build-module/panel/actions.native.js.map +1 -1
  1238. package/build-module/panel/body.js +34 -29
  1239. package/build-module/panel/body.js.map +1 -1
  1240. package/build-module/panel/body.native.js +10 -7
  1241. package/build-module/panel/body.native.js.map +1 -1
  1242. package/build-module/panel/bottom-separator-cover.native.js +2 -2
  1243. package/build-module/panel/bottom-separator-cover.native.js.map +1 -1
  1244. package/build-module/panel/header.js +8 -4
  1245. package/build-module/panel/header.js.map +1 -1
  1246. package/build-module/panel/index.js +8 -6
  1247. package/build-module/panel/index.js.map +1 -1
  1248. package/build-module/panel/row.js +5 -5
  1249. package/build-module/panel/row.js.map +1 -1
  1250. package/build-module/placeholder/index.js +27 -20
  1251. package/build-module/placeholder/index.js.map +1 -1
  1252. package/build-module/popover/index.js +54 -42
  1253. package/build-module/popover/index.js.map +1 -1
  1254. package/build-module/private-apis.js +0 -2
  1255. package/build-module/private-apis.js.map +1 -1
  1256. package/build-module/progress-bar/index.js +33 -15
  1257. package/build-module/progress-bar/index.js.map +1 -1
  1258. package/build-module/progress-bar/styles.js +4 -4
  1259. package/build-module/progress-bar/styles.js.map +1 -1
  1260. package/build-module/query-controls/author-select.js +2 -2
  1261. package/build-module/query-controls/author-select.js.map +1 -1
  1262. package/build-module/query-controls/category-select.js +2 -2
  1263. package/build-module/query-controls/category-select.js.map +1 -1
  1264. package/build-module/query-controls/index.js +74 -78
  1265. package/build-module/query-controls/index.js.map +1 -1
  1266. package/build-module/query-controls/index.native.js +29 -24
  1267. package/build-module/query-controls/index.native.js.map +1 -1
  1268. package/build-module/radio-control/index.js +26 -22
  1269. package/build-module/radio-control/index.js.map +1 -1
  1270. package/build-module/radio-control/index.native.js +12 -10
  1271. package/build-module/radio-control/index.native.js.map +1 -1
  1272. package/build-module/radio-group/index.js +13 -10
  1273. package/build-module/radio-group/index.js.map +1 -1
  1274. package/build-module/radio-group/radio.js +6 -5
  1275. package/build-module/radio-group/radio.js.map +1 -1
  1276. package/build-module/range-control/index.js +101 -89
  1277. package/build-module/range-control/index.js.map +1 -1
  1278. package/build-module/range-control/index.native.js +3 -3
  1279. package/build-module/range-control/index.native.js.map +1 -1
  1280. package/build-module/range-control/input-range.js +2 -2
  1281. package/build-module/range-control/input-range.js.map +1 -1
  1282. package/build-module/range-control/mark.js +18 -13
  1283. package/build-module/range-control/mark.js.map +1 -1
  1284. package/build-module/range-control/rail.js +26 -20
  1285. package/build-module/range-control/rail.js.map +1 -1
  1286. package/build-module/range-control/tooltip.js +5 -4
  1287. package/build-module/range-control/tooltip.js.map +1 -1
  1288. package/build-module/resizable-box/index.js +8 -6
  1289. package/build-module/resizable-box/index.js.map +1 -1
  1290. package/build-module/resizable-box/index.native.js +2 -2
  1291. package/build-module/resizable-box/index.native.js.map +1 -1
  1292. package/build-module/resizable-box/resize-tooltip/index.js +12 -10
  1293. package/build-module/resizable-box/resize-tooltip/index.js.map +1 -1
  1294. package/build-module/resizable-box/resize-tooltip/label.js +12 -9
  1295. package/build-module/resizable-box/resize-tooltip/label.js.map +1 -1
  1296. package/build-module/responsive-wrapper/index.js +13 -11
  1297. package/build-module/responsive-wrapper/index.js.map +1 -1
  1298. package/build-module/sandbox/index.js +34 -30
  1299. package/build-module/sandbox/index.js.map +1 -1
  1300. package/build-module/sandbox/index.native.js +33 -29
  1301. package/build-module/sandbox/index.native.js.map +1 -1
  1302. package/build-module/scrollable/component.js +2 -2
  1303. package/build-module/scrollable/component.js.map +1 -1
  1304. package/build-module/search-control/index.js +30 -28
  1305. package/build-module/search-control/index.js.map +1 -1
  1306. package/build-module/search-control/index.native.js +46 -37
  1307. package/build-module/search-control/index.native.js.map +1 -1
  1308. package/build-module/select-control/chevron-down.js +9 -5
  1309. package/build-module/select-control/chevron-down.js.map +1 -1
  1310. package/build-module/select-control/index.js +38 -35
  1311. package/build-module/select-control/index.js.map +1 -1
  1312. package/build-module/select-control/index.native.js +2 -2
  1313. package/build-module/select-control/index.native.js.map +1 -1
  1314. package/build-module/shortcut/index.js +5 -4
  1315. package/build-module/shortcut/index.js.map +1 -1
  1316. package/build-module/slot-fill/bubbles-virtually/fill.js +5 -4
  1317. package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
  1318. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js +1 -1
  1319. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
  1320. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js +7 -6
  1321. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  1322. package/build-module/slot-fill/bubbles-virtually/slot.js +2 -2
  1323. package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
  1324. package/build-module/slot-fill/index.js +22 -12
  1325. package/build-module/slot-fill/index.js.map +1 -1
  1326. package/build-module/slot-fill/index.native.js +4 -4
  1327. package/build-module/slot-fill/index.native.js.map +1 -1
  1328. package/build-module/slot-fill/provider.js +7 -6
  1329. package/build-module/slot-fill/provider.js.map +1 -1
  1330. package/build-module/slot-fill/slot.js +17 -12
  1331. package/build-module/slot-fill/slot.js.map +1 -1
  1332. package/build-module/snackbar/index.js +33 -28
  1333. package/build-module/snackbar/index.js.map +1 -1
  1334. package/build-module/snackbar/list.js +30 -24
  1335. package/build-module/snackbar/list.js.map +1 -1
  1336. package/build-module/spacer/component.js +2 -2
  1337. package/build-module/spacer/component.js.map +1 -1
  1338. package/build-module/spinner/index.js +14 -12
  1339. package/build-module/spinner/index.js.map +1 -1
  1340. package/build-module/spinner/index.native.js +2 -2
  1341. package/build-module/spinner/index.native.js.map +1 -1
  1342. package/build-module/style-provider/index.js +5 -5
  1343. package/build-module/style-provider/index.js.map +1 -1
  1344. package/build-module/surface/component.js +2 -2
  1345. package/build-module/surface/component.js.map +1 -1
  1346. package/build-module/tab-panel/index.js +30 -26
  1347. package/build-module/tab-panel/index.js.map +1 -1
  1348. package/build-module/tabs/index.js +5 -4
  1349. package/build-module/tabs/index.js.map +1 -1
  1350. package/build-module/tabs/styles.js +3 -13
  1351. package/build-module/tabs/styles.js.map +1 -1
  1352. package/build-module/tabs/tab.js +6 -5
  1353. package/build-module/tabs/tab.js.map +1 -1
  1354. package/build-module/tabs/tablist.js +102 -8
  1355. package/build-module/tabs/tablist.js.map +1 -1
  1356. package/build-module/tabs/tabpanel.js +6 -5
  1357. package/build-module/tabs/tabpanel.js.map +1 -1
  1358. package/build-module/text/component.js +2 -2
  1359. package/build-module/text/component.js.map +1 -1
  1360. package/build-module/text-control/index.js +16 -15
  1361. package/build-module/text-control/index.js.map +1 -1
  1362. package/build-module/text-control/index.native.js +2 -2
  1363. package/build-module/text-control/index.native.js.map +1 -1
  1364. package/build-module/text-highlight/index.js +6 -3
  1365. package/build-module/text-highlight/index.js.map +1 -1
  1366. package/build-module/textarea-control/index.js +14 -13
  1367. package/build-module/textarea-control/index.js.map +1 -1
  1368. package/build-module/textarea-control/index.native.js +16 -15
  1369. package/build-module/textarea-control/index.native.js.map +1 -1
  1370. package/build-module/theme/color-algorithms.js +2 -2
  1371. package/build-module/theme/color-algorithms.js.map +1 -1
  1372. package/build-module/theme/index.js +2 -2
  1373. package/build-module/theme/index.js.map +1 -1
  1374. package/build-module/tip/index.js +10 -7
  1375. package/build-module/tip/index.js.map +1 -1
  1376. package/build-module/toggle-control/index.js +22 -18
  1377. package/build-module/toggle-control/index.js.map +1 -1
  1378. package/build-module/toggle-control/index.native.js +2 -2
  1379. package/build-module/toggle-control/index.native.js.map +1 -1
  1380. package/build-module/toggle-group-control/toggle-group-control/as-button-group.js +11 -9
  1381. package/build-module/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -1
  1382. package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js +13 -11
  1383. package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
  1384. package/build-module/toggle-group-control/toggle-group-control/component.js +23 -15
  1385. package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
  1386. package/build-module/toggle-group-control/toggle-group-control-option/component.js +5 -4
  1387. package/build-module/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  1388. package/build-module/toggle-group-control/toggle-group-control-option-base/component.js +52 -38
  1389. package/build-module/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  1390. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js +7 -6
  1391. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  1392. package/build-module/toolbar/toolbar/index.js +11 -10
  1393. package/build-module/toolbar/toolbar/index.js.map +1 -1
  1394. package/build-module/toolbar/toolbar/toolbar-container.js +11 -9
  1395. package/build-module/toolbar/toolbar/toolbar-container.js.map +1 -1
  1396. package/build-module/toolbar/toolbar/toolbar-container.native.js +4 -2
  1397. package/build-module/toolbar/toolbar/toolbar-container.native.js.map +1 -1
  1398. package/build-module/toolbar/toolbar-button/index.js +35 -31
  1399. package/build-module/toolbar/toolbar-button/index.js.map +1 -1
  1400. package/build-module/toolbar/toolbar-button/toolbar-button-container.js +5 -4
  1401. package/build-module/toolbar/toolbar-button/toolbar-button-container.js.map +1 -1
  1402. package/build-module/toolbar/toolbar-button/toolbar-button-container.native.js +4 -2
  1403. package/build-module/toolbar/toolbar-button/toolbar-button-container.native.js.map +1 -1
  1404. package/build-module/toolbar/toolbar-dropdown-menu/index.js +12 -11
  1405. package/build-module/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
  1406. package/build-module/toolbar/toolbar-group/index.js +10 -9
  1407. package/build-module/toolbar/toolbar-group/index.js.map +1 -1
  1408. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js +6 -5
  1409. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
  1410. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.native.js +8 -7
  1411. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.native.js.map +1 -1
  1412. package/build-module/toolbar/toolbar-group/toolbar-group-container.js +5 -4
  1413. package/build-module/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
  1414. package/build-module/toolbar/toolbar-group/toolbar-group-container.native.js +5 -4
  1415. package/build-module/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
  1416. package/build-module/toolbar/toolbar-item/index.js +10 -7
  1417. package/build-module/toolbar/toolbar-item/index.js.map +1 -1
  1418. package/build-module/toolbar/toolbar-item/index.native.js +1 -1
  1419. package/build-module/toolbar/toolbar-item/index.native.js.map +1 -1
  1420. package/build-module/tools-panel/tools-panel/component.js +15 -12
  1421. package/build-module/tools-panel/tools-panel/component.js.map +1 -1
  1422. package/build-module/tools-panel/tools-panel-header/component.js +110 -94
  1423. package/build-module/tools-panel/tools-panel-header/component.js.map +1 -1
  1424. package/build-module/tools-panel/tools-panel-item/component.js +6 -5
  1425. package/build-module/tools-panel/tools-panel-item/component.js.map +1 -1
  1426. package/build-module/tooltip/index.js +26 -26
  1427. package/build-module/tooltip/index.js.map +1 -1
  1428. package/build-module/tooltip/index.native.js +35 -24
  1429. package/build-module/tooltip/index.native.js.map +1 -1
  1430. package/build-module/tree-grid/cell.js +11 -6
  1431. package/build-module/tree-grid/cell.js.map +1 -1
  1432. package/build-module/tree-grid/index.js +16 -10
  1433. package/build-module/tree-grid/index.js.map +1 -1
  1434. package/build-module/tree-grid/item.js +5 -4
  1435. package/build-module/tree-grid/item.js.map +1 -1
  1436. package/build-module/tree-grid/roving-tab-index-item.js +5 -4
  1437. package/build-module/tree-grid/roving-tab-index-item.js.map +1 -1
  1438. package/build-module/tree-grid/roving-tab-index.js +5 -4
  1439. package/build-module/tree-grid/roving-tab-index.js.map +1 -1
  1440. package/build-module/tree-grid/row.js +5 -5
  1441. package/build-module/tree-grid/row.js.map +1 -1
  1442. package/build-module/tree-select/index.js +2 -2
  1443. package/build-module/tree-select/index.js.map +1 -1
  1444. package/build-module/truncate/component.js +2 -2
  1445. package/build-module/truncate/component.js.map +1 -1
  1446. package/build-module/unit-control/index.js +3 -3
  1447. package/build-module/unit-control/index.js.map +1 -1
  1448. package/build-module/unit-control/index.native.js +58 -48
  1449. package/build-module/unit-control/index.native.js.map +1 -1
  1450. package/build-module/unit-control/unit-select-control.js +12 -10
  1451. package/build-module/unit-control/unit-select-control.js.map +1 -1
  1452. package/build-module/utils/style-mixins.js +0 -1
  1453. package/build-module/utils/style-mixins.js.map +1 -1
  1454. package/build-module/v-stack/component.js +2 -2
  1455. package/build-module/v-stack/component.js.map +1 -1
  1456. package/build-module/view/component.js +2 -3
  1457. package/build-module/view/component.js.map +1 -1
  1458. package/build-module/visually-hidden/component.js +2 -2
  1459. package/build-module/visually-hidden/component.js.map +1 -1
  1460. package/build-module/z-stack/component.js +8 -7
  1461. package/build-module/z-stack/component.js.map +1 -1
  1462. package/build-style/style-rtl.css +11 -0
  1463. package/build-style/style.css +11 -0
  1464. package/build-types/animate/stories/index.story.d.ts.map +1 -1
  1465. package/build-types/autocomplete/autocompleter-ui.d.ts.map +1 -1
  1466. package/build-types/base-control/hooks.d.ts +1 -1
  1467. package/build-types/border-box-control/border-box-control/component.d.ts +1 -1
  1468. package/build-types/border-box-control/border-box-control/hook.d.ts +15 -15
  1469. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +17 -17
  1470. package/build-types/border-box-control/border-box-control-split-controls/component.d.ts +1 -1
  1471. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +15 -15
  1472. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +14 -14
  1473. package/build-types/border-box-control/stories/index.story.d.ts +2 -2
  1474. package/build-types/border-control/border-control/hook.d.ts +14 -14
  1475. package/build-types/border-control/border-control-dropdown/hook.d.ts +14 -14
  1476. package/build-types/border-control/stories/index.story.d.ts +6 -6
  1477. package/build-types/box-control/stories/index.story.d.ts +180 -180
  1478. package/build-types/box-control/styles/box-control-styles.d.ts +4 -4
  1479. package/build-types/button/deprecated.d.ts +9 -9
  1480. package/build-types/button/index.d.ts.map +1 -1
  1481. package/build-types/card/card/hook.d.ts +14 -14
  1482. package/build-types/card/card-body/hook.d.ts +14 -14
  1483. package/build-types/card/card-divider/component.d.ts +1 -1
  1484. package/build-types/card/card-divider/hook.d.ts +15 -15
  1485. package/build-types/card/card-footer/hook.d.ts +14 -14
  1486. package/build-types/card/card-header/hook.d.ts +14 -14
  1487. package/build-types/card/card-media/hook.d.ts +14 -14
  1488. package/build-types/card/stories/index.story.d.ts +2 -2
  1489. package/build-types/color-palette/stories/index.story.d.ts +3 -0
  1490. package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
  1491. package/build-types/color-palette/styles.d.ts +1 -1
  1492. package/build-types/color-picker/component.d.ts +1 -1
  1493. package/build-types/color-picker/stories/index.story.d.ts +1 -1
  1494. package/build-types/color-picker/styles.d.ts +5 -5
  1495. package/build-types/combobox-control/index.d.ts.map +1 -1
  1496. package/build-types/combobox-control/stories/index.story.d.ts +27 -3
  1497. package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
  1498. package/build-types/combobox-control/types.d.ts +7 -0
  1499. package/build-types/combobox-control/types.d.ts.map +1 -1
  1500. package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts +2 -2
  1501. package/build-types/custom-select-control/index.d.ts.map +1 -1
  1502. package/build-types/custom-select-control-v2/custom-select.d.ts +2 -2
  1503. package/build-types/custom-select-control-v2/custom-select.d.ts.map +1 -1
  1504. package/build-types/custom-select-control-v2/legacy-component/index.d.ts.map +1 -1
  1505. package/build-types/custom-select-control-v2/stories/default.story.d.ts +18 -6
  1506. package/build-types/custom-select-control-v2/stories/default.story.d.ts.map +1 -1
  1507. package/build-types/custom-select-control-v2/styles.d.ts +2 -2
  1508. package/build-types/custom-select-control-v2/styles.d.ts.map +1 -1
  1509. package/build-types/custom-select-control-v2/types.d.ts +11 -15
  1510. package/build-types/custom-select-control-v2/types.d.ts.map +1 -1
  1511. package/build-types/date-time/date/styles.d.ts +3 -3
  1512. package/build-types/date-time/date-time/styles.d.ts +2 -2
  1513. package/build-types/date-time/time/styles.d.ts +8 -8
  1514. package/build-types/dimension-control/stories/index.story.d.ts +10 -2
  1515. package/build-types/dimension-control/stories/index.story.d.ts.map +1 -1
  1516. package/build-types/divider/component.d.ts +1 -1
  1517. package/build-types/divider/styles.d.ts +1 -1
  1518. package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
  1519. package/build-types/dropdown-menu-v2/stories/index.story.d.ts.map +1 -1
  1520. package/build-types/elevation/hook.d.ts +14 -14
  1521. package/build-types/flex/flex/hook.d.ts +16 -16
  1522. package/build-types/flex/flex-block/hook.d.ts +14 -14
  1523. package/build-types/flex/flex-item/hook.d.ts +14 -14
  1524. package/build-types/focal-point-picker/focal-point.d.ts +3 -0
  1525. package/build-types/focal-point-picker/focal-point.d.ts.map +1 -1
  1526. package/build-types/focal-point-picker/stories/index.story.d.ts +4 -4
  1527. package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts +1 -1
  1528. package/build-types/focal-point-picker/styles/focal-point-style.d.ts.map +1 -1
  1529. package/build-types/font-size-picker/styles.d.ts +2 -2
  1530. package/build-types/grid/hook.d.ts +14 -14
  1531. package/build-types/h-stack/component.d.ts +1 -1
  1532. package/build-types/h-stack/hook.d.ts +16 -16
  1533. package/build-types/heading/hook.d.ts +13 -13
  1534. package/build-types/index.d.ts +1 -0
  1535. package/build-types/index.d.ts.map +1 -1
  1536. package/build-types/input-control/input-base.d.ts +4 -5
  1537. package/build-types/input-control/input-base.d.ts.map +1 -1
  1538. package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
  1539. package/build-types/item-group/item/hook.d.ts +13 -13
  1540. package/build-types/item-group/item-group/hook.d.ts +14 -14
  1541. package/build-types/menu-item/index.d.ts +1 -1
  1542. package/build-types/menu-item/stories/index.story.d.ts +4 -4
  1543. package/build-types/navigation/styles/navigation-styles.d.ts +1 -1
  1544. package/build-types/navigator/navigator-back-button/component.d.ts +2 -2
  1545. package/build-types/navigator/navigator-back-button/hook.d.ts +19 -19
  1546. package/build-types/navigator/navigator-button/component.d.ts +2 -2
  1547. package/build-types/navigator/navigator-button/hook.d.ts +19 -19
  1548. package/build-types/navigator/navigator-to-parent-button/component.d.ts +2 -2
  1549. package/build-types/number-control/index.d.ts +2 -2
  1550. package/build-types/number-control/stories/index.story.d.ts +2 -2
  1551. package/build-types/palette-edit/styles.d.ts +629 -629
  1552. package/build-types/popover/index.d.ts +1 -1
  1553. package/build-types/popover/overlay-middlewares.d.ts +2 -2
  1554. package/build-types/popover/stories/e2e/index.story.d.ts +1 -1
  1555. package/build-types/private-apis.d.ts.map +1 -1
  1556. package/build-types/progress-bar/index.d.ts +15 -0
  1557. package/build-types/progress-bar/index.d.ts.map +1 -1
  1558. package/build-types/progress-bar/stories/index.story.d.ts +18 -0
  1559. package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
  1560. package/build-types/progress-bar/styles.d.ts.map +1 -1
  1561. package/build-types/range-control/index.d.ts +1 -1
  1562. package/build-types/range-control/styles/range-control-styles.d.ts +2 -2
  1563. package/build-types/scrollable/hook.d.ts +14 -14
  1564. package/build-types/slot-fill/bubbles-virtually/slot.d.ts +1 -1
  1565. package/build-types/snackbar/index.d.ts +1 -1
  1566. package/build-types/spacer/hook.d.ts +14 -14
  1567. package/build-types/surface/hook.d.ts +14 -14
  1568. package/build-types/tabs/stories/index.story.d.ts +1 -0
  1569. package/build-types/tabs/stories/index.story.d.ts.map +1 -1
  1570. package/build-types/tabs/styles.d.ts.map +1 -1
  1571. package/build-types/tabs/tablist.d.ts.map +1 -1
  1572. package/build-types/text/hook.d.ts +14 -14
  1573. package/build-types/text-control/index.d.ts +3 -3
  1574. package/build-types/textarea-control/index.d.ts +1 -1
  1575. package/build-types/theme/stories/index.story.d.ts.map +1 -1
  1576. package/build-types/toggle-control/index.d.ts +1 -1
  1577. package/build-types/toggle-control/stories/index.story.d.ts +2 -2
  1578. package/build-types/toggle-group-control/toggle-group-control/as-button-group.d.ts +1 -1
  1579. package/build-types/toggle-group-control/toggle-group-control/as-radio-group.d.ts +1 -1
  1580. package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts +1 -1
  1581. package/build-types/toggle-group-control/toggle-group-control-option-icon/component.d.ts +1 -1
  1582. package/build-types/toolbar/toolbar-button/index.d.ts +9 -9
  1583. package/build-types/tools-panel/tools-panel/hook.d.ts +14 -14
  1584. package/build-types/tools-panel/tools-panel-header/hook.d.ts +14 -14
  1585. package/build-types/tools-panel/tools-panel-item/hook.d.ts +14 -14
  1586. package/build-types/tooltip/index.d.ts.map +1 -1
  1587. package/build-types/truncate/hook.d.ts +14 -14
  1588. package/build-types/unit-control/index.d.ts +1 -1
  1589. package/build-types/unit-control/styles/unit-control-styles.d.ts +2 -2
  1590. package/build-types/utils/style-mixins.d.ts +0 -1
  1591. package/build-types/v-stack/component.d.ts +1 -1
  1592. package/build-types/v-stack/hook.d.ts +16 -16
  1593. package/build-types/v-stack/stories/index.story.d.ts +2 -2
  1594. package/build-types/view/component.d.ts +157 -157
  1595. package/package.json +21 -20
  1596. package/src/animate/index.tsx +1 -1
  1597. package/src/animate/stories/index.story.tsx +6 -1
  1598. package/src/autocomplete/autocompleter-ui.native.js +2 -4
  1599. package/src/autocomplete/autocompleter-ui.tsx +68 -38
  1600. package/src/autocomplete/test/index.tsx +3 -3
  1601. package/src/button/index.native.js +1 -1
  1602. package/src/button/index.tsx +6 -2
  1603. package/src/circular-option-picker/circular-option-picker.tsx +2 -2
  1604. package/src/circular-option-picker/stories/index.story.tsx +1 -1
  1605. package/src/circular-option-picker/test/index.tsx +3 -9
  1606. package/src/color-indicator/index.native.js +1 -1
  1607. package/src/color-palette/index.native.js +2 -2
  1608. package/src/color-palette/stories/index.story.tsx +5 -8
  1609. package/src/color-picker/index.native.js +1 -1
  1610. package/src/combobox-control/README.md +9 -0
  1611. package/src/combobox-control/index.tsx +10 -1
  1612. package/src/combobox-control/stories/index.story.tsx +14 -0
  1613. package/src/combobox-control/types.ts +7 -0
  1614. package/src/composite/current/stories/index.story.tsx +1 -1
  1615. package/src/css.d.ts +9 -0
  1616. package/src/custom-gradient-picker/index.native.js +3 -1
  1617. package/src/custom-select-control/index.js +7 -4
  1618. package/src/custom-select-control-v2/custom-select.tsx +37 -36
  1619. package/src/custom-select-control-v2/legacy-component/index.tsx +22 -31
  1620. package/src/custom-select-control-v2/stories/default.story.tsx +0 -1
  1621. package/src/custom-select-control-v2/stories/legacy.story.tsx +1 -1
  1622. package/src/custom-select-control-v2/styles.ts +10 -8
  1623. package/src/custom-select-control-v2/types.ts +16 -15
  1624. package/src/dashicon/index.native.js +1 -1
  1625. package/src/dimension-control/stories/index.story.tsx +3 -2
  1626. package/src/dimension-control/test/__snapshots__/index.test.js.snap +0 -16
  1627. package/src/dimension-control/test/index.test.js +7 -10
  1628. package/src/draggable/test/index.native.js +2 -2
  1629. package/src/dropdown/stories/index.story.tsx +6 -2
  1630. package/src/dropdown-menu/index.native.js +2 -1
  1631. package/src/dropdown-menu-v2/stories/index.story.tsx +1 -2
  1632. package/src/dropdown-menu-v2/test/index.tsx +8 -3
  1633. package/src/focal-point-picker/focal-point.tsx +7 -4
  1634. package/src/focal-point-picker/index.native.js +2 -1
  1635. package/src/focal-point-picker/styles/focal-point-style.ts +3 -7
  1636. package/src/font-size-picker/index.native.js +6 -6
  1637. package/src/font-size-picker/index.tsx +2 -2
  1638. package/src/form-token-field/index.tsx +1 -1
  1639. package/src/index.native.js +0 -14
  1640. package/src/index.ts +1 -0
  1641. package/src/input-control/input-base.tsx +5 -1
  1642. package/src/input-control/styles/input-control-styles.tsx +0 -2
  1643. package/src/keyboard-shortcuts/stories/index.story.tsx +3 -1
  1644. package/src/menu-group/stories/index.story.tsx +1 -1
  1645. package/src/mobile/autocompletion-items.native.js +2 -2
  1646. package/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +2 -1
  1647. package/src/mobile/bottom-sheet/cell.native.js +3 -3
  1648. package/src/mobile/bottom-sheet/color-cell.native.js +3 -2
  1649. package/src/mobile/bottom-sheet/footer-message-cell.native.js +2 -2
  1650. package/src/mobile/bottom-sheet/link-suggestion-item-cell.native.js +3 -3
  1651. package/src/mobile/bottom-sheet/nav-bar/action-button.native.js +1 -1
  1652. package/src/mobile/bottom-sheet/radio-cell.native.js +2 -2
  1653. package/src/mobile/bottom-sheet/stepper-cell/stepper.android.js +1 -1
  1654. package/src/mobile/bottom-sheet/stepper-cell/stepper.ios.js +1 -1
  1655. package/src/mobile/bottom-sheet/sub-sheet/index.native.js +6 -1
  1656. package/src/mobile/bottom-sheet/switch-cell.native.js +2 -2
  1657. package/src/mobile/bottom-sheet-select-control/index.native.js +4 -3
  1658. package/src/mobile/bottom-sheet-text-control/index.native.js +5 -7
  1659. package/src/mobile/color-settings/index.native.js +2 -1
  1660. package/src/mobile/color-settings/palette.screen.native.js +4 -7
  1661. package/src/mobile/color-settings/picker-screen.native.js +1 -1
  1662. package/src/mobile/focal-point-settings-panel/index.native.js +2 -1
  1663. package/src/mobile/gradient/index.native.js +1 -1
  1664. package/src/mobile/image/icon-customize.native.js +1 -1
  1665. package/src/mobile/image/icon-retry.native.js +2 -2
  1666. package/src/mobile/image/image-editing-button.native.js +2 -2
  1667. package/src/mobile/image/index.native.js +2 -2
  1668. package/src/mobile/link-picker/index.native.js +2 -1
  1669. package/src/mobile/link-picker/link-picker-results.native.js +2 -1
  1670. package/src/mobile/link-settings/link-rel.native.js +1 -1
  1671. package/src/mobile/media-edit/index.native.js +5 -1
  1672. package/src/mobile/picker/index.android.js +4 -3
  1673. package/src/mobile/picker/index.ios.js +1 -1
  1674. package/src/mobile/segmented-control/index.native.js +1 -1
  1675. package/src/mobile/utils/use-unit-converter-to-mobile.native.js +2 -14
  1676. package/src/notice/stories/index.story.tsx +1 -1
  1677. package/src/palette-edit/test/index.tsx +15 -11
  1678. package/src/panel/actions.native.js +1 -1
  1679. package/src/popover/index.tsx +1 -1
  1680. package/src/private-apis.ts +0 -2
  1681. package/src/progress-bar/README.md +39 -5
  1682. package/src/progress-bar/index.tsx +21 -8
  1683. package/src/progress-bar/stories/index.story.tsx +36 -3
  1684. package/src/progress-bar/styles.ts +4 -2
  1685. package/src/query-controls/index.native.js +2 -1
  1686. package/src/search-control/index.native.js +3 -2
  1687. package/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx +2 -2
  1688. package/src/slot-fill/provider.tsx +2 -2
  1689. package/src/snackbar/list.tsx +3 -3
  1690. package/src/tab-panel/index.tsx +1 -1
  1691. package/src/tab-panel/style.scss +16 -0
  1692. package/src/tabs/stories/index.story.tsx +39 -31
  1693. package/src/tabs/styles.ts +43 -34
  1694. package/src/tabs/tablist.tsx +130 -3
  1695. package/src/theme/stories/index.story.tsx +0 -1
  1696. package/src/tools-panel/stories/index.story.tsx +1 -1
  1697. package/src/tools-panel/tools-panel-header/component.tsx +1 -1
  1698. package/src/tooltip/index.tsx +1 -4
  1699. package/src/tooltip/test/index.native.js +1 -5
  1700. package/src/unit-control/test/index.tsx +12 -12
  1701. package/src/utils/style-mixins.js +0 -1
  1702. package/tsconfig.json +1 -4
  1703. package/tsconfig.tsbuildinfo +1 -1
  1704. package/build/mobile/audio-player/audio-url-parser.native.js +0 -24
  1705. package/build/mobile/audio-player/audio-url-parser.native.js.map +0 -1
  1706. package/build/mobile/audio-player/index.native.js +0 -163
  1707. package/build/mobile/audio-player/index.native.js.map +0 -1
  1708. package/build/mobile/global-styles-context/index.native.js +0 -68
  1709. package/build/mobile/global-styles-context/index.native.js.map +0 -1
  1710. package/build/mobile/global-styles-context/utils.native.js +0 -405
  1711. package/build/mobile/global-styles-context/utils.native.js.map +0 -1
  1712. package/build/utils/reduce-motion.js +0 -38
  1713. package/build/utils/reduce-motion.js.map +0 -1
  1714. package/build-module/mobile/audio-player/audio-url-parser.native.js +0 -16
  1715. package/build-module/mobile/audio-player/audio-url-parser.native.js.map +0 -1
  1716. package/build-module/mobile/audio-player/index.native.js +0 -155
  1717. package/build-module/mobile/audio-player/index.native.js.map +0 -1
  1718. package/build-module/mobile/global-styles-context/index.native.js +0 -58
  1719. package/build-module/mobile/global-styles-context/index.native.js.map +0 -1
  1720. package/build-module/mobile/global-styles-context/utils.native.js +0 -387
  1721. package/build-module/mobile/global-styles-context/utils.native.js.map +0 -1
  1722. package/build-module/utils/reduce-motion.js +0 -32
  1723. package/build-module/utils/reduce-motion.js.map +0 -1
  1724. package/build-types/utils/reduce-motion.d.ts +0 -12
  1725. package/build-types/utils/reduce-motion.d.ts.map +0 -1
  1726. package/src/mobile/audio-player/audio-url-parser.native.js +0 -20
  1727. package/src/mobile/audio-player/index.native.js +0 -220
  1728. package/src/mobile/audio-player/styles.scss +0 -114
  1729. package/src/mobile/audio-player/test/audio-url-parser.native.js +0 -53
  1730. package/src/mobile/global-styles-context/index.native.js +0 -103
  1731. package/src/mobile/global-styles-context/test/fixtures/theme.native.js +0 -274
  1732. package/src/mobile/global-styles-context/test/utils.native.js +0 -168
  1733. package/src/mobile/global-styles-context/utils.native.js +0 -510
  1734. package/src/utils/reduce-motion.js +0 -35
@@ -1 +1 @@
1
- {"version":3,"names":["Animated","Easing","Keyboard","Platform","StyleSheet","Text","View","cloneElement","createContext","useContext","useEffect","useMemo","useRef","useState","usePrevious","createSlotFill","styles","RIGHT_ALIGN_ARROW_OFFSET","TOOLTIP_VERTICAL_OFFSET","TooltipContext","onHandleScreenTouch","Fill","Slot","useKeyboardVisibility","keyboardVisible","setKeyboardVisible","previousKeyboardVisible","showListener","addListener","keyboardHideEvent","select","android","ios","hideListener","remove","Tooltip","children","position","text","visible","initialVisible","referenceElementRef","animationValue","Value","current","horizontalPosition","split","setVisible","animating","setAnimating","hidden","previousVisible","referenceLayout","setReferenceLayout","height","width","x","y","tooltipLayout","setTooltipLayout","startAnimation","getReferenceElementPosition","frameListener","timing","toValue","duration","useNativeDriver","delay","easing","out","quad","start","tooltipStyles","tooltip","left","Math","floor","top","tooltipBoxStyles","tooltip__box","elevation","opacity","shadowColor","tooltip__shadow","color","shadowOffset","shadowOpacity","shadowRadius","transform","translateY","interpolate","inputRange","outputRange","arrowStyles","tooltip__arrow","requestAnimationFrame","measure","_x","_y","pageX","pageY","getTooltipLayout","nativeEvent","layout","createElement","Fragment","ref","onLayout","style","tooltip__text","TooltipSlot","rest","handleScreenTouch","setHandleScreenTouch","callback","handleTouchStart","value","Provider","onTouchStart","undefined","pointerEvents","absoluteFill","testID"],"sources":["@wordpress/components/src/tooltip/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport {\n\tAnimated,\n\tEasing,\n\tKeyboard,\n\tPlatform,\n\tStyleSheet,\n\tText,\n\tView,\n} from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tcloneElement,\n\tcreateContext,\n\tuseContext,\n\tuseEffect,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from '@wordpress/element';\nimport { usePrevious } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport { createSlotFill } from '../slot-fill';\nimport styles from './style.scss';\n\nconst RIGHT_ALIGN_ARROW_OFFSET = 16;\nconst TOOLTIP_VERTICAL_OFFSET = 2;\n\nconst TooltipContext = createContext( {\n\tonHandleScreenTouch: () => {},\n} );\nconst { Fill, Slot } = createSlotFill( 'Tooltip' );\n\nconst useKeyboardVisibility = () => {\n\tconst [ keyboardVisible, setKeyboardVisible ] = useState( false );\n\tconst previousKeyboardVisible = usePrevious( keyboardVisible );\n\n\tuseEffect( () => {\n\t\tconst showListener = Keyboard.addListener( 'keyboardDidShow', () => {\n\t\t\tif ( previousKeyboardVisible !== true ) {\n\t\t\t\tsetKeyboardVisible( true );\n\t\t\t}\n\t\t} );\n\t\tconst keyboardHideEvent = Platform.select( {\n\t\t\tandroid: 'keyboardDidHide',\n\t\t\tios: 'keyboardWillHide',\n\t\t} );\n\t\tconst hideListener = Keyboard.addListener( keyboardHideEvent, () => {\n\t\t\tif ( previousKeyboardVisible !== false ) {\n\t\t\t\tsetKeyboardVisible( false );\n\t\t\t}\n\t\t} );\n\t\treturn () => {\n\t\t\tshowListener.remove();\n\t\t\thideListener.remove();\n\t\t};\n\t\t// Disable reason: deferring this refactor to the native team.\n\t\t// see https://github.com/WordPress/gutenberg/pull/41166\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [] );\n\n\treturn keyboardVisible;\n};\n\nconst Tooltip = ( {\n\tchildren,\n\tposition = 'top',\n\ttext,\n\tvisible: initialVisible = false,\n} ) => {\n\tconst referenceElementRef = useRef( null );\n\tconst animationValue = useRef( new Animated.Value( 0 ) ).current;\n\tconst [ , horizontalPosition = 'center' ] = position.split( ' ' );\n\tconst [ visible, setVisible ] = useState( initialVisible );\n\tconst [ animating, setAnimating ] = useState( false );\n\tconst hidden = ! visible && ! animating;\n\tconst previousVisible = usePrevious( visible );\n\tconst [ referenceLayout, setReferenceLayout ] = useState( {\n\t\theight: 0,\n\t\twidth: 0,\n\t\tx: 0,\n\t\ty: 0,\n\t} );\n\tconst [ tooltipLayout, setTooltipLayout ] = useState( {\n\t\theight: 0,\n\t\twidth: 0,\n\t} );\n\tconst { onHandleScreenTouch } = useContext( TooltipContext );\n\tconst keyboardVisible = useKeyboardVisibility();\n\n\t// Register callback to dismiss the tooltip whenever the screen is touched.\n\tuseEffect( () => {\n\t\tif ( visible ) {\n\t\t\tonHandleScreenTouch( () => {\n\t\t\t\tsetAnimating( true );\n\t\t\t\tsetVisible( false );\n\t\t\t} );\n\t\t}\n\t\treturn () => onHandleScreenTouch( null );\n\t\t// Disable reason: deferring this refactor to the native team.\n\t\t// see https://github.com/WordPress/gutenberg/pull/41166\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [ visible ] );\n\n\t// Manage visibility animation.\n\tuseEffect( () => {\n\t\tif (\n\t\t\t// Initial render and visibility enabled, animate show.\n\t\t\t( typeof previousVisible === 'undefined' && visible ) ||\n\t\t\t// Previously visible, animate hide\n\t\t\t( previousVisible && previousVisible !== visible )\n\t\t) {\n\t\t\tsetAnimating( true );\n\t\t\tstartAnimation();\n\t\t}\n\t\t// Disable reason: deferring this refactor to the native team.\n\t\t// see https://github.com/WordPress/gutenberg/pull/41166\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [ visible ] );\n\n\t// Manage tooltip visibility and position in relation to keyboard.\n\tuseEffect( () => {\n\t\tif ( ! visible ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Update tooltip position if keyboard is visible.\n\t\tif ( keyboardVisible ) {\n\t\t\tgetReferenceElementPosition();\n\t\t}\n\n\t\t// Hide tooltip if keyboard hides\n\t\tif ( typeof previousVisible !== 'undefined' && ! keyboardVisible ) {\n\t\t\tsetAnimating( true );\n\t\t\tsetVisible( false );\n\t\t}\n\t\t// Disable reason: deferring this refactor to the native team.\n\t\t// see https://github.com/WordPress/gutenberg/pull/41166\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [ visible, keyboardVisible ] );\n\n\t// Manage tooltip position during keyboard frame changes.\n\tuseEffect( () => {\n\t\tconst frameListener = Keyboard.addListener(\n\t\t\t'keyboardWillChangeFrame',\n\t\t\t() => {\n\t\t\t\tif ( visible ) {\n\t\t\t\t\tgetReferenceElementPosition();\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\n\t\treturn () => {\n\t\t\tframeListener.remove();\n\t\t};\n\t}, [ visible ] );\n\n\tconst startAnimation = () => {\n\t\tAnimated.timing( animationValue, {\n\t\t\ttoValue: visible ? 1 : 0,\n\t\t\tduration: visible ? 300 : 150,\n\t\t\tuseNativeDriver: true,\n\t\t\tdelay: visible ? 500 : 0,\n\t\t\teasing: Easing.out( Easing.quad ),\n\t\t} ).start( () => {\n\t\t\tsetAnimating( false );\n\t\t} );\n\t};\n\n\tconst tooltipStyles = [\n\t\tstyles.tooltip,\n\t\t{\n\t\t\tleft:\n\t\t\t\treferenceLayout.x +\n\t\t\t\tMath.floor( referenceLayout.width / 2 ) -\n\t\t\t\t( horizontalPosition === 'right'\n\t\t\t\t\t? RIGHT_ALIGN_ARROW_OFFSET\n\t\t\t\t\t: Math.floor( tooltipLayout.width / 2 ) ),\n\t\t\ttop:\n\t\t\t\treferenceLayout.y -\n\t\t\t\ttooltipLayout.height -\n\t\t\t\tTOOLTIP_VERTICAL_OFFSET,\n\t\t},\n\t];\n\tconst tooltipBoxStyles = [\n\t\tstyles.tooltip__box,\n\t\thorizontalPosition === 'right' && styles[ 'tooltip--rightAlign' ],\n\t\t{\n\t\t\televation: 2,\n\t\t\topacity: animationValue,\n\t\t\tshadowColor: styles.tooltip__shadow?.color,\n\t\t\tshadowOffset: { height: 2, width: 0 },\n\t\t\tshadowOpacity: 0.25,\n\t\t\tshadowRadius: 2,\n\t\t\ttransform: [\n\t\t\t\t{\n\t\t\t\t\ttranslateY: animationValue.interpolate( {\n\t\t\t\t\t\tinputRange: [ 0, 1 ],\n\t\t\t\t\t\toutputRange: [ visible ? 4 : -8, -8 ],\n\t\t\t\t\t} ),\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t];\n\tconst arrowStyles = [\n\t\tstyles.tooltip__arrow,\n\t\thorizontalPosition === 'right' &&\n\t\t\tstyles[ 'tooltip__arrow--rightAlign' ],\n\t];\n\n\tconst getReferenceElementPosition = () => {\n\t\t// rAF allows render to complete before calculating layout\n\t\t// eslint-disable-next-line no-undef\n\t\trequestAnimationFrame( () => {\n\t\t\tif ( ! referenceElementRef.current ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\treferenceElementRef.current.measure(\n\t\t\t\t( _x, _y, width, height, pageX, pageY ) => {\n\t\t\t\t\tsetReferenceLayout( {\n\t\t\t\t\t\theight,\n\t\t\t\t\t\twidth,\n\t\t\t\t\t\tx: pageX,\n\t\t\t\t\t\ty: pageY,\n\t\t\t\t\t} );\n\t\t\t\t}\n\t\t\t);\n\t\t} );\n\t};\n\tconst getTooltipLayout = ( { nativeEvent } ) => {\n\t\tconst { height, width } = nativeEvent.layout;\n\t\tsetTooltipLayout( { height, width } );\n\t};\n\n\tif ( hidden ) {\n\t\treturn children;\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{ cloneElement( children, {\n\t\t\t\tref: referenceElementRef,\n\t\t\t\tonLayout: getReferenceElementPosition,\n\t\t\t} ) }\n\t\t\t<Fill>\n\t\t\t\t<View onLayout={ getTooltipLayout } style={ tooltipStyles }>\n\t\t\t\t\t<Animated.View style={ tooltipBoxStyles }>\n\t\t\t\t\t\t<Text style={ styles.tooltip__text }>{ text }</Text>\n\t\t\t\t\t\t<View style={ arrowStyles } />\n\t\t\t\t\t</Animated.View>\n\t\t\t\t</View>\n\t\t\t</Fill>\n\t\t</>\n\t);\n};\n\nconst TooltipSlot = ( { children, ...rest } ) => {\n\tconst [ handleScreenTouch, setHandleScreenTouch ] = useState( null );\n\tconst onHandleScreenTouch = ( callback ) => {\n\t\t// Must use function to set state below as `callback` is a function itself.\n\t\tsetHandleScreenTouch( () => callback );\n\t};\n\tconst handleTouchStart = () => {\n\t\thandleScreenTouch();\n\t\tsetHandleScreenTouch( null );\n\t};\n\t// Memoize context value to avoid unnecessary rerenders of the Provider's children\n\t// Disable reason: deferring this refactor to the native team.\n\t// see https://github.com/WordPress/gutenberg/pull/41166\n\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\tconst value = useMemo( () => ( { onHandleScreenTouch } ) );\n\n\treturn (\n\t\t<TooltipContext.Provider value={ value }>\n\t\t\t<View\n\t\t\t\tonTouchStart={\n\t\t\t\t\ttypeof handleScreenTouch === 'function'\n\t\t\t\t\t\t? handleTouchStart\n\t\t\t\t\t\t: undefined\n\t\t\t\t}\n\t\t\t\tpointerEvents=\"box-none\"\n\t\t\t\tstyle={ StyleSheet.absoluteFill }\n\t\t\t\ttestID=\"tooltip-overlay\"\n\t\t\t>\n\t\t\t\t{ children }\n\t\t\t\t<Slot { ...rest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,CACkB,CAAC;AAE5B,CAAC;AAED5E,OAAO,CAACb,IAAI,GAAGwF,WAAW;AAE1B,eAAe3E,OAAO","ignoreList":[]}
1
+ {"version":3,"names":["Animated","Easing","Keyboard","Platform","StyleSheet","Text","View","cloneElement","createContext","useContext","useEffect","useMemo","useRef","useState","usePrevious","createSlotFill","styles","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","RIGHT_ALIGN_ARROW_OFFSET","TOOLTIP_VERTICAL_OFFSET","TooltipContext","onHandleScreenTouch","Fill","Slot","useKeyboardVisibility","keyboardVisible","setKeyboardVisible","previousKeyboardVisible","showListener","addListener","keyboardHideEvent","select","android","ios","hideListener","remove","Tooltip","children","position","text","visible","initialVisible","referenceElementRef","animationValue","Value","current","horizontalPosition","split","setVisible","animating","setAnimating","hidden","previousVisible","referenceLayout","setReferenceLayout","height","width","x","y","tooltipLayout","setTooltipLayout","startAnimation","getReferenceElementPosition","frameListener","timing","toValue","duration","useNativeDriver","delay","easing","out","quad","start","tooltipStyles","tooltip","left","Math","floor","top","tooltipBoxStyles","tooltip__box","elevation","opacity","shadowColor","tooltip__shadow","color","shadowOffset","shadowOpacity","shadowRadius","transform","translateY","interpolate","inputRange","outputRange","arrowStyles","tooltip__arrow","requestAnimationFrame","measure","_x","_y","pageX","pageY","getTooltipLayout","nativeEvent","layout","ref","onLayout","style","tooltip__text","TooltipSlot","rest","handleScreenTouch","setHandleScreenTouch","callback","handleTouchStart","value","Provider","onTouchStart","undefined","pointerEvents","absoluteFill","testID"],"sources":["@wordpress/components/src/tooltip/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport {\n\tAnimated,\n\tEasing,\n\tKeyboard,\n\tPlatform,\n\tStyleSheet,\n\tText,\n\tView,\n} from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tcloneElement,\n\tcreateContext,\n\tuseContext,\n\tuseEffect,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from '@wordpress/element';\nimport { usePrevious } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport { createSlotFill } from '../slot-fill';\nimport styles from './style.scss';\n\nconst RIGHT_ALIGN_ARROW_OFFSET = 16;\nconst TOOLTIP_VERTICAL_OFFSET = 2;\n\nconst TooltipContext = createContext( {\n\tonHandleScreenTouch: () => {},\n} );\nconst { Fill, Slot } = createSlotFill( 'Tooltip' );\n\nconst useKeyboardVisibility = () => {\n\tconst [ keyboardVisible, setKeyboardVisible ] = useState( false );\n\tconst previousKeyboardVisible = usePrevious( keyboardVisible );\n\n\tuseEffect( () => {\n\t\tconst showListener = Keyboard.addListener( 'keyboardDidShow', () => {\n\t\t\tif ( previousKeyboardVisible !== true ) {\n\t\t\t\tsetKeyboardVisible( true );\n\t\t\t}\n\t\t} );\n\t\tconst keyboardHideEvent = Platform.select( {\n\t\t\tandroid: 'keyboardDidHide',\n\t\t\tios: 'keyboardWillHide',\n\t\t} );\n\t\tconst hideListener = Keyboard.addListener( keyboardHideEvent, () => {\n\t\t\tif ( previousKeyboardVisible !== false ) {\n\t\t\t\tsetKeyboardVisible( false );\n\t\t\t}\n\t\t} );\n\t\treturn () => {\n\t\t\tshowListener.remove();\n\t\t\thideListener.remove();\n\t\t};\n\t\t// Disable reason: deferring this refactor to the native team.\n\t\t// see https://github.com/WordPress/gutenberg/pull/41166\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [] );\n\n\treturn keyboardVisible;\n};\n\nconst Tooltip = ( {\n\tchildren,\n\tposition = 'top',\n\ttext,\n\tvisible: initialVisible = false,\n} ) => {\n\tconst referenceElementRef = useRef( null );\n\tconst animationValue = useRef( new Animated.Value( 0 ) ).current;\n\tconst [ , horizontalPosition = 'center' ] = position.split( ' ' );\n\tconst [ visible, setVisible ] = useState( initialVisible );\n\tconst [ animating, setAnimating ] = useState( false );\n\tconst hidden = ! visible && ! animating;\n\tconst previousVisible = usePrevious( visible );\n\tconst [ referenceLayout, setReferenceLayout ] = useState( {\n\t\theight: 0,\n\t\twidth: 0,\n\t\tx: 0,\n\t\ty: 0,\n\t} );\n\tconst [ tooltipLayout, setTooltipLayout ] = useState( {\n\t\theight: 0,\n\t\twidth: 0,\n\t} );\n\tconst { onHandleScreenTouch } = useContext( TooltipContext );\n\tconst keyboardVisible = useKeyboardVisibility();\n\n\t// Register callback to dismiss the tooltip whenever the screen is touched.\n\tuseEffect( () => {\n\t\tif ( visible ) {\n\t\t\tonHandleScreenTouch( () => {\n\t\t\t\tsetAnimating( true );\n\t\t\t\tsetVisible( false );\n\t\t\t} );\n\t\t}\n\t\treturn () => onHandleScreenTouch( null );\n\t\t// Disable reason: deferring this refactor to the native team.\n\t\t// see https://github.com/WordPress/gutenberg/pull/41166\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [ visible ] );\n\n\t// Manage visibility animation.\n\tuseEffect( () => {\n\t\tif (\n\t\t\t// Initial render and visibility enabled, animate show.\n\t\t\t( typeof previousVisible === 'undefined' && visible ) ||\n\t\t\t// Previously visible, animate hide\n\t\t\t( previousVisible && previousVisible !== visible )\n\t\t) {\n\t\t\tsetAnimating( true );\n\t\t\tstartAnimation();\n\t\t}\n\t\t// Disable reason: deferring this refactor to the native team.\n\t\t// see https://github.com/WordPress/gutenberg/pull/41166\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [ visible ] );\n\n\t// Manage tooltip visibility and position in relation to keyboard.\n\tuseEffect( () => {\n\t\tif ( ! visible ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Update tooltip position if keyboard is visible.\n\t\tif ( keyboardVisible ) {\n\t\t\tgetReferenceElementPosition();\n\t\t}\n\n\t\t// Hide tooltip if keyboard hides\n\t\tif ( typeof previousVisible !== 'undefined' && ! keyboardVisible ) {\n\t\t\tsetAnimating( true );\n\t\t\tsetVisible( false );\n\t\t}\n\t\t// Disable reason: deferring this refactor to the native team.\n\t\t// see https://github.com/WordPress/gutenberg/pull/41166\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [ visible, keyboardVisible ] );\n\n\t// Manage tooltip position during keyboard frame changes.\n\tuseEffect( () => {\n\t\tconst frameListener = Keyboard.addListener(\n\t\t\t'keyboardWillChangeFrame',\n\t\t\t() => {\n\t\t\t\tif ( visible ) {\n\t\t\t\t\tgetReferenceElementPosition();\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\n\t\treturn () => {\n\t\t\tframeListener.remove();\n\t\t};\n\t}, [ visible ] );\n\n\tconst startAnimation = () => {\n\t\tAnimated.timing( animationValue, {\n\t\t\ttoValue: visible ? 1 : 0,\n\t\t\tduration: visible ? 300 : 150,\n\t\t\tuseNativeDriver: true,\n\t\t\tdelay: visible ? 500 : 0,\n\t\t\teasing: Easing.out( Easing.quad ),\n\t\t} ).start( () => {\n\t\t\tsetAnimating( false );\n\t\t} );\n\t};\n\n\tconst tooltipStyles = [\n\t\tstyles.tooltip,\n\t\t{\n\t\t\tleft:\n\t\t\t\treferenceLayout.x +\n\t\t\t\tMath.floor( referenceLayout.width / 2 ) -\n\t\t\t\t( horizontalPosition === 'right'\n\t\t\t\t\t? RIGHT_ALIGN_ARROW_OFFSET\n\t\t\t\t\t: Math.floor( tooltipLayout.width / 2 ) ),\n\t\t\ttop:\n\t\t\t\treferenceLayout.y -\n\t\t\t\ttooltipLayout.height -\n\t\t\t\tTOOLTIP_VERTICAL_OFFSET,\n\t\t},\n\t];\n\tconst tooltipBoxStyles = [\n\t\tstyles.tooltip__box,\n\t\thorizontalPosition === 'right' && styles[ 'tooltip--rightAlign' ],\n\t\t{\n\t\t\televation: 2,\n\t\t\topacity: animationValue,\n\t\t\tshadowColor: styles.tooltip__shadow?.color,\n\t\t\tshadowOffset: { height: 2, width: 0 },\n\t\t\tshadowOpacity: 0.25,\n\t\t\tshadowRadius: 2,\n\t\t\ttransform: [\n\t\t\t\t{\n\t\t\t\t\ttranslateY: animationValue.interpolate( {\n\t\t\t\t\t\tinputRange: [ 0, 1 ],\n\t\t\t\t\t\toutputRange: [ visible ? 4 : -8, -8 ],\n\t\t\t\t\t} ),\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t];\n\tconst arrowStyles = [\n\t\tstyles.tooltip__arrow,\n\t\thorizontalPosition === 'right' &&\n\t\t\tstyles[ 'tooltip__arrow--rightAlign' ],\n\t];\n\n\tconst getReferenceElementPosition = () => {\n\t\t// rAF allows render to complete before calculating layout\n\t\t// eslint-disable-next-line no-undef\n\t\trequestAnimationFrame( () => {\n\t\t\tif ( ! referenceElementRef.current ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\treferenceElementRef.current.measure(\n\t\t\t\t( _x, _y, width, height, pageX, pageY ) => {\n\t\t\t\t\tsetReferenceLayout( {\n\t\t\t\t\t\theight,\n\t\t\t\t\t\twidth,\n\t\t\t\t\t\tx: pageX,\n\t\t\t\t\t\ty: pageY,\n\t\t\t\t\t} );\n\t\t\t\t}\n\t\t\t);\n\t\t} );\n\t};\n\tconst getTooltipLayout = ( { nativeEvent } ) => {\n\t\tconst { height, width } = nativeEvent.layout;\n\t\tsetTooltipLayout( { height, width } );\n\t};\n\n\tif ( hidden ) {\n\t\treturn children;\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{ cloneElement( children, {\n\t\t\t\tref: referenceElementRef,\n\t\t\t\tonLayout: getReferenceElementPosition,\n\t\t\t} ) }\n\t\t\t<Fill>\n\t\t\t\t<View onLayout={ getTooltipLayout } style={ tooltipStyles }>\n\t\t\t\t\t<Animated.View style={ tooltipBoxStyles }>\n\t\t\t\t\t\t<Text style={ styles.tooltip__text }>{ text }</Text>\n\t\t\t\t\t\t<View style={ arrowStyles } />\n\t\t\t\t\t</Animated.View>\n\t\t\t\t</View>\n\t\t\t</Fill>\n\t\t</>\n\t);\n};\n\nconst TooltipSlot = ( { children, ...rest } ) => {\n\tconst [ handleScreenTouch, setHandleScreenTouch ] = useState( null );\n\tconst onHandleScreenTouch = ( callback ) => {\n\t\t// Must use function to set state below as `callback` is a function itself.\n\t\tsetHandleScreenTouch( () => callback );\n\t};\n\tconst handleTouchStart = () => {\n\t\thandleScreenTouch();\n\t\tsetHandleScreenTouch( null );\n\t};\n\t// Memoize context value to avoid unnecessary rerenders of the Provider's children\n\t// Disable reason: deferring this refactor to the native team.\n\t// see https://github.com/WordPress/gutenberg/pull/41166\n\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\tconst value = useMemo( () => ( { onHandleScreenTouch } ) );\n\n\treturn (\n\t\t<TooltipContext.Provider value={ value }>\n\t\t\t<View\n\t\t\t\tonTouchStart={\n\t\t\t\t\ttypeof handleScreenTouch === 'function'\n\t\t\t\t\t\t? handleTouchStart\n\t\t\t\t\t\t: undefined\n\t\t\t\t}\n\t\t\t\tpointerEvents=\"box-none\"\n\t\t\t\tstyle={ StyleSheet.absoluteFill }\n\t\t\t\ttestID=\"tooltip-overlay\"\n\t\t\t>\n\t\t\t\t{ children }\n\t\t\t\t<Slot { ...rest } />\n\t\t\t</View>\n\t\t</TooltipContext.Provider>\n\t);\n};\n\nTooltip.Slot = TooltipSlot;\n\nexport default Tooltip;\n"],"mappings":"AAAA;AACA;AACA;AACA,SACCA,QAAQ,EACRC,MAAM,EACNC,QAAQ,EACRC,QAAQ,EACRC,UAAU,EACVC,IAAI,EACJC,IAAI,QACE,cAAc;;AAErB;AACA;AACA;AACA,SACCC,YAAY,EACZC,aAAa,EACbC,UAAU,EACVC,SAAS,EACTC,OAAO,EACPC,MAAM,EACNC,QAAQ,QACF,oBAAoB;AAC3B,SAASC,WAAW,QAAQ,oBAAoB;;AAEhD;AACA;AACA;AACA,SAASC,cAAc,QAAQ,cAAc;AAC7C,OAAOC,MAAM,MAAM,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAElC,MAAMC,wBAAwB,GAAG,EAAE;AACnC,MAAMC,uBAAuB,GAAG,CAAC;AAEjC,MAAMC,cAAc,GAAGjB,aAAa,CAAE;EACrCkB,m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AQ;EAAE,GAAGyE;AAAK,CAAC,KAAM;EAChD,MAAM,CAAEC,iBAAiB,EAAEC,oBAAoB,CAAE,GAAGxG,QAAQ,CAAE,IAAK,CAAC;EACpE,MAAMa,mBAAmB,GAAK4F,QAAQ,IAAM;IAC3C;IACAD,oBAAoB,CAAE,MAAMC,QAAS,CAAC;EACvC,CAAC;EACD,MAAMC,gBAAgB,GAAGA,CAAA,KAAM;IAC9BH,iBAAiB,CAAC,CAAC;IACnBC,oBAAoB,CAAE,IAAK,CAAC;EAC7B,CAAC;EACD;EACA;EACA;EACA;EACA,MAAMG,KAAK,GAAG7G,OAAO,CAAE,OAAQ;IAAEe;EAAoB,CAAC,CAAG,CAAC;EAE1D,oBACCR,IAAA,CAACO,cAAc,CAACgG,QAAQ;IAACD,KAAK,EAAGA,KAAO;IAAA9E,QAAA,eACvCtB,KAAA,CAACd,IAAI;MACJoH,YAAY,EACX,OAAON,iBAAiB,KAAK,UAAU,GACpCG,gBAAgB,GAChBI,SACH;MACDC,aAAa,EAAC,UAAU;MACxBZ,KAAK,EAAG5G,UAAU,CAACyH,YAAc;MACjCC,MAAM,EAAC,iBAAiB;MAAApF,QAAA,GAEtBA,QAAQ,eACVxB,IAAA,CAACU,IAAI;QAAA,GAAMuF;MAAI,CAAI,CAAC;IAAA,CACf;EAAC,CACiB,CAAC;AAE5B,CAAC;AAED1E,OAAO,CAACb,IAAI,GAAGsF,WAAW;AAE1B,eAAezE,OAAO","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement, Fragment } from "react";
2
1
  /**
3
2
  * WordPress dependencies
4
3
  */
@@ -8,17 +7,23 @@ import { forwardRef } from '@wordpress/element';
8
7
  * Internal dependencies
9
8
  */
10
9
  import TreeGridItem from './item';
10
+ import { Fragment as _Fragment } from "react/jsx-runtime";
11
+ import { jsx as _jsx } from "react/jsx-runtime";
11
12
  function UnforwardedTreeGridCell({
12
13
  children,
13
14
  withoutGridItem = false,
14
15
  ...props
15
16
  }, ref) {
16
- return createElement("td", {
17
+ return /*#__PURE__*/_jsx("td", {
17
18
  ...props,
18
- role: "gridcell"
19
- }, withoutGridItem ? createElement(Fragment, null, children) : createElement(TreeGridItem, {
20
- ref: ref
21
- }, children));
19
+ role: "gridcell",
20
+ children: withoutGridItem ? /*#__PURE__*/_jsx(_Fragment, {
21
+ children: children
22
+ }) : /*#__PURE__*/_jsx(TreeGridItem, {
23
+ ref: ref,
24
+ children: children
25
+ })
26
+ });
22
27
  }
23
28
 
24
29
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["forwardRef","TreeGridItem","UnforwardedTreeGridCell","children","withoutGridItem","props","ref","createElement","role","Fragment","TreeGridCell"],"sources":["@wordpress/components/src/tree-grid/cell.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport TreeGridItem from './item';\nimport type { WordPressComponentProps } from '../context';\nimport type { TreeGridCellProps } from './types';\n\nfunction UnforwardedTreeGridCell(\n\t{\n\t\tchildren,\n\t\twithoutGridItem = false,\n\t\t...props\n\t}: WordPressComponentProps< TreeGridCellProps, 'td', false >,\n\tref: React.ForwardedRef< any >\n) {\n\treturn (\n\t\t<td { ...props } role=\"gridcell\">\n\t\t\t{ withoutGridItem ? (\n\t\t\t\t<>{ children }</>\n\t\t\t) : (\n\t\t\t\t<TreeGridItem ref={ ref }>{ children }</TreeGridItem>\n\t\t\t) }\n\t\t</td>\n\t);\n}\n\n/**\n * `TreeGridCell` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGridCell = forwardRef( UnforwardedTreeGridCell );\n\nexport default TreeGridCell;\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,UAAU,QAAQ,oBAAoB;;AAE/C;AACA;AACA;AACA,OAAOC,YAAY,MAAM,QAAQ;AAIjC,SAASC,uBAAuBA,CAC/B;EACCC,QAAQ;EACRC,eAAe,GAAG,KAAK;EACvB,GAAGC;AACuD,CAAC,EAC5DC,GAA8B,EAC7B;EACD,OACCC,aAAA;IAAA,GAASF,KAAK;IAAGG,IAAI,EAAC;EAAU,GAC7BJ,eAAe,GAChBG,aAAA,CAAAE,QAAA,QAAIN,QAAY,CAAC,GAEjBI,aAAA,CAACN,YAAY;IAACK,GAAG,EAAGA;EAAK,GAAGH,QAAwB,CAElD,CAAC;AAEP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMO,YAAY,GAAGV,UAAU,CAAEE,uBAAwB,CAAC;AAEjE,eAAeQ,YAAY","ignoreList":[]}
1
+ {"version":3,"names":["forwardRef","TreeGridItem","Fragment","_Fragment","jsx","_jsx","UnforwardedTreeGridCell","children","withoutGridItem","props","ref","role","TreeGridCell"],"sources":["@wordpress/components/src/tree-grid/cell.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport TreeGridItem from './item';\nimport type { WordPressComponentProps } from '../context';\nimport type { TreeGridCellProps } from './types';\n\nfunction UnforwardedTreeGridCell(\n\t{\n\t\tchildren,\n\t\twithoutGridItem = false,\n\t\t...props\n\t}: WordPressComponentProps< TreeGridCellProps, 'td', false >,\n\tref: React.ForwardedRef< any >\n) {\n\treturn (\n\t\t<td { ...props } role=\"gridcell\">\n\t\t\t{ withoutGridItem ? (\n\t\t\t\t<>{ children }</>\n\t\t\t) : (\n\t\t\t\t<TreeGridItem ref={ ref }>{ children }</TreeGridItem>\n\t\t\t) }\n\t\t</td>\n\t);\n}\n\n/**\n * `TreeGridCell` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGridCell = forwardRef( UnforwardedTreeGridCell );\n\nexport default TreeGridCell;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,UAAU,QAAQ,oBAAoB;;AAE/C;AACA;AACA;AACA,OAAOC,YAAY,MAAM,QAAQ;AAAC,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAIlC,SAASC,uBAAuBA,CAC/B;EACCC,QAAQ;EACRC,eAAe,GAAG,KAAK;EACvB,GAAGC;AACuD,CAAC,EAC5DC,GAA8B,EAC7B;EACD,oBACCL,IAAA;IAAA,GAASI,KAAK;IAAGE,IAAI,EAAC,UAAU;IAAAJ,QAAA,EAC7BC,eAAe,gBAChBH,IAAA,CAAAF,SAAA;MAAAI,QAAA,EAAIA;IAAQ,CAAI,CAAC,gBAEjBF,IAAA,CAACJ,YAAY;MAACS,GAAG,EAAGA,GAAK;MAAAH,QAAA,EAAGA;IAAQ,CAAgB;EACpD,CACE,CAAC;AAEP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMK,YAAY,GAAGZ,UAAU,CAAEM,uBAAwB,CAAC;AAEjE,eAAeM,YAAY","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * WordPress dependencies
4
3
  */
@@ -10,6 +9,7 @@ import { UP, DOWN, LEFT, RIGHT, HOME, END } from '@wordpress/keycodes';
10
9
  * Internal dependencies
11
10
  */
12
11
  import RovingTabIndexContainer from './roving-tab-index';
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  /**
14
14
  * Return focusables in a row element, excluding those from other branches
15
15
  * nested within the row.
@@ -231,15 +231,21 @@ ref) {
231
231
 
232
232
  /* Disable reason: A treegrid is implemented using a table element. */
233
233
  /* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */
234
- return createElement(RovingTabIndexContainer, null, createElement("div", {
235
- role: "application",
236
- "aria-label": applicationAriaLabel
237
- }, createElement("table", {
238
- ...props,
239
- role: "treegrid",
240
- onKeyDown: onKeyDown,
241
- ref: ref
242
- }, createElement("tbody", null, children))));
234
+ return /*#__PURE__*/_jsx(RovingTabIndexContainer, {
235
+ children: /*#__PURE__*/_jsx("div", {
236
+ role: "application",
237
+ "aria-label": applicationAriaLabel,
238
+ children: /*#__PURE__*/_jsx("table", {
239
+ ...props,
240
+ role: "treegrid",
241
+ onKeyDown: onKeyDown,
242
+ ref: ref,
243
+ children: /*#__PURE__*/_jsx("tbody", {
244
+ children: children
245
+ })
246
+ })
247
+ })
248
+ });
243
249
  /* eslint-enable jsx-a11y/no-noninteractive-element-to-interactive-role */
244
250
  }
245
251
 
@@ -1 +1 @@
1
- {"version":3,"names":["focus","forwardRef","useCallback","UP","DOWN","LEFT","RIGHT","HOME","END","RovingTabIndexContainer","getRowFocusables","rowElement","focusablesInRow","focusable","find","sequential","filter","closest","UnforwardedTreeGrid","children","onExpandRow","onCollapseRow","onFocusRow","applicationAriaLabel","props","ref","onKeyDown","event","keyCode","metaKey","ctrlKey","altKey","hasModifierKeyPressed","includes","stopPropagation","activeElement","document","currentTarget","treeGridElement","contains","activeRow","currentColumnIndex","indexOf","canExpandCollapse","cannotFocusNextColumn","getAttribute","nextIndex","Math","max","min","length","_activeRow$getAttribu","preventDefault","level","parseInt","rows","Array","from","querySelectorAll","parentRow","currentRowIndex","i","ariaLevel","focusableItems","nextRowIndex","focusablesInNextRow","createElement","role","TreeGrid","default","TreeGridRow","TreeGridCell","TreeGridItem"],"sources":["@wordpress/components/src/tree-grid/index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { focus } from '@wordpress/dom';\nimport { forwardRef, useCallback } from '@wordpress/element';\nimport { UP, DOWN, LEFT, RIGHT, HOME, END } from '@wordpress/keycodes';\n\n/**\n * Internal dependencies\n */\nimport RovingTabIndexContainer from './roving-tab-index';\nimport type { TreeGridProps } from './types';\nimport type { WordPressComponentProps } from '../context';\n\n/**\n * Return focusables in a row element, excluding those from other branches\n * nested within the row.\n *\n * @param rowElement The DOM element representing the row.\n *\n * @return The array of focusables in the row.\n */\nfunction getRowFocusables( rowElement: HTMLElement ) {\n\tconst focusablesInRow = focus.focusable.find( rowElement, {\n\t\tsequential: true,\n\t} );\n\n\treturn focusablesInRow.filter( ( focusable ) => {\n\t\treturn focusable.closest( '[role=\"row\"]' ) === rowElement;\n\t} );\n}\n\n/**\n * Renders both a table and tbody element, used to create a tree hierarchy.\n *\n */\nfunction UnforwardedTreeGrid(\n\t{\n\t\tchildren,\n\t\tonExpandRow = () => {},\n\t\tonCollapseRow = () => {},\n\t\tonFocusRow = () => {},\n\t\tapplicationAriaLabel,\n\t\t...props\n\t}: WordPressComponentProps< TreeGridProps, 'table', false >,\n\t/** A ref to the underlying DOM table element. */\n\tref: React.ForwardedRef< HTMLTableElement >\n) {\n\tconst onKeyDown = useCallback(\n\t\t( event: React.KeyboardEvent< HTMLTableElement > ) => {\n\t\t\tconst { keyCode, metaKey, ctrlKey, altKey } = event;\n\n\t\t\t// The shift key is intentionally absent from the following list,\n\t\t\t// to enable shift + up/down to select items from the list.\n\t\t\tconst hasModifierKeyPressed = metaKey || ctrlKey || altKey;\n\n\t\t\tif (\n\t\t\t\thasModifierKeyPressed ||\n\t\t\t\t! ( [ UP, DOWN, LEFT, RIGHT, HOME, END ] as number[] ).includes(\n\t\t\t\t\tkeyCode\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// The event will be handled, stop propagation.\n\t\t\tevent.stopPropagation();\n\n\t\t\tconst { activeElement } = document;\n\t\t\tconst { currentTarget: treeGridElement } = event;\n\n\t\t\tif (\n\t\t\t\t! activeElement ||\n\t\t\t\t! treeGridElement.contains( activeElement )\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Calculate the columnIndex of the active element.\n\t\t\tconst activeRow =\n\t\t\t\tactiveElement.closest< HTMLElement >( '[role=\"row\"]' );\n\n\t\t\tif ( ! activeRow ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst focusablesInRow = getRowFocusables( activeRow );\n\t\t\tconst currentColumnIndex = focusablesInRow.indexOf(\n\t\t\t\tactiveElement as HTMLElement\n\t\t\t);\n\t\t\tconst canExpandCollapse = 0 === currentColumnIndex;\n\t\t\tconst cannotFocusNextColumn =\n\t\t\t\tcanExpandCollapse &&\n\t\t\t\t( activeRow.getAttribute( 'data-expanded' ) === 'false' ||\n\t\t\t\t\tactiveRow.getAttribute( 'aria-expanded' ) === 'false' ) &&\n\t\t\t\tkeyCode === RIGHT;\n\n\t\t\tif ( ( [ LEFT, RIGHT ] as number[] ).includes( keyCode ) ) {\n\t\t\t\t// Calculate to the next element.\n\t\t\t\tlet nextIndex;\n\t\t\t\tif ( keyCode === LEFT ) {\n\t\t\t\t\tnextIndex = Math.max( 0, currentColumnIndex - 1 );\n\t\t\t\t} else {\n\t\t\t\t\tnextIndex = Math.min(\n\t\t\t\t\t\tcurrentColumnIndex + 1,\n\t\t\t\t\t\tfocusablesInRow.length - 1\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t// Focus is at the left most column.\n\t\t\t\tif ( canExpandCollapse ) {\n\t\t\t\t\tif ( keyCode === LEFT ) {\n\t\t\t\t\t\t// Left:\n\t\t\t\t\t\t// If a row is focused, and it is expanded, collapses the current row.\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tactiveRow.getAttribute( 'data-expanded' ) ===\n\t\t\t\t\t\t\t\t'true' ||\n\t\t\t\t\t\t\tactiveRow.getAttribute( 'aria-expanded' ) === 'true'\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tonCollapseRow( activeRow );\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// If a row is focused, and it is collapsed, moves to the parent row (if there is one).\n\t\t\t\t\t\tconst level = Math.max(\n\t\t\t\t\t\t\tparseInt(\n\t\t\t\t\t\t\t\tactiveRow?.getAttribute( 'aria-level' ) ?? '1',\n\t\t\t\t\t\t\t\t10\n\t\t\t\t\t\t\t) - 1,\n\t\t\t\t\t\t\t1\n\t\t\t\t\t\t);\n\t\t\t\t\t\tconst rows = Array.from(\n\t\t\t\t\t\t\ttreeGridElement.querySelectorAll< HTMLElement >(\n\t\t\t\t\t\t\t\t'[role=\"row\"]'\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t\tlet parentRow = activeRow;\n\t\t\t\t\t\tconst currentRowIndex = rows.indexOf( activeRow );\n\t\t\t\t\t\tfor ( let i = currentRowIndex; i >= 0; i-- ) {\n\t\t\t\t\t\t\tconst ariaLevel =\n\t\t\t\t\t\t\t\trows[ i ].getAttribute( 'aria-level' );\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tariaLevel !== null &&\n\t\t\t\t\t\t\t\tparseInt( ariaLevel, 10 ) === level\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tparentRow = rows[ i ];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tgetRowFocusables( parentRow )?.[ 0 ]?.focus();\n\t\t\t\t\t}\n\t\t\t\t\tif ( keyCode === RIGHT ) {\n\t\t\t\t\t\t// Right:\n\t\t\t\t\t\t// If a row is focused, and it is collapsed, expands the current row.\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tactiveRow.getAttribute( 'data-expanded' ) ===\n\t\t\t\t\t\t\t\t'false' ||\n\t\t\t\t\t\t\tactiveRow.getAttribute( 'aria-expanded' ) ===\n\t\t\t\t\t\t\t\t'false'\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tonExpandRow( activeRow );\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// If a row is focused, and it is expanded, focuses the next cell in the row.\n\t\t\t\t\t\tconst focusableItems = getRowFocusables( activeRow );\n\t\t\t\t\t\tif ( focusableItems.length > 0 ) {\n\t\t\t\t\t\t\tfocusableItems[ nextIndex ]?.focus();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will start reading text on continued use of left/right arrow\n\t\t\t\t\t// keys.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Focus the next element. If at most left column and row is collapsed, moving right is not allowed as this will expand. However, if row is collapsed, moving left is allowed.\n\t\t\t\tif ( cannotFocusNextColumn ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfocusablesInRow[ nextIndex ].focus();\n\n\t\t\t\t// Prevent key use for anything else. This ensures Voiceover\n\t\t\t\t// doesn't try to handle key navigation.\n\t\t\t\tevent.preventDefault();\n\t\t\t} else if ( ( [ UP, DOWN ] as number[] ).includes( keyCode ) ) {\n\t\t\t\t// Calculate the rowIndex of the next row.\n\t\t\t\tconst rows = Array.from(\n\t\t\t\t\ttreeGridElement.querySelectorAll< HTMLElement >(\n\t\t\t\t\t\t'[role=\"row\"]'\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\tconst currentRowIndex = rows.indexOf( activeRow );\n\t\t\t\tlet nextRowIndex;\n\n\t\t\t\tif ( keyCode === UP ) {\n\t\t\t\t\tnextRowIndex = Math.max( 0, currentRowIndex - 1 );\n\t\t\t\t} else {\n\t\t\t\t\tnextRowIndex = Math.min(\n\t\t\t\t\t\tcurrentRowIndex + 1,\n\t\t\t\t\t\trows.length - 1\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t// Focus is either at the top or bottom edge of the grid. Do nothing.\n\t\t\t\tif ( nextRowIndex === currentRowIndex ) {\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will start navigating horizontally when reaching the vertical\n\t\t\t\t\t// bounds of a table.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Get the focusables in the next row.\n\t\t\t\tconst focusablesInNextRow = getRowFocusables(\n\t\t\t\t\trows[ nextRowIndex ]\n\t\t\t\t);\n\n\t\t\t\t// If for some reason there are no focusables in the next row, do nothing.\n\t\t\t\tif ( ! focusablesInNextRow || ! focusablesInNextRow.length ) {\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will still focus text when using arrow keys, while this\n\t\t\t\t\t// component should limit navigation to focusables.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Try to focus the element in the next row that's at a similar column to the activeElement.\n\t\t\t\tconst nextIndex = Math.min(\n\t\t\t\t\tcurrentColumnIndex,\n\t\t\t\t\tfocusablesInNextRow.length - 1\n\t\t\t\t);\n\t\t\t\tfocusablesInNextRow[ nextIndex ].focus();\n\n\t\t\t\t// Let consumers know the row that was originally focused,\n\t\t\t\t// and the row that is now in focus.\n\t\t\t\tonFocusRow( event, activeRow, rows[ nextRowIndex ] );\n\n\t\t\t\t// Prevent key use for anything else. This ensures Voiceover\n\t\t\t\t// doesn't try to handle key navigation.\n\t\t\t\tevent.preventDefault();\n\t\t\t} else if ( ( [ HOME, END ] as number[] ).includes( keyCode ) ) {\n\t\t\t\t// Calculate the rowIndex of the next row.\n\t\t\t\tconst rows = Array.from(\n\t\t\t\t\ttreeGridElement.querySelectorAll< HTMLElement >(\n\t\t\t\t\t\t'[role=\"row\"]'\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\tconst currentRowIndex = rows.indexOf( activeRow );\n\t\t\t\tlet nextRowIndex;\n\n\t\t\t\tif ( keyCode === HOME ) {\n\t\t\t\t\tnextRowIndex = 0;\n\t\t\t\t} else {\n\t\t\t\t\tnextRowIndex = rows.length - 1;\n\t\t\t\t}\n\n\t\t\t\t// Focus is either at the top or bottom edge of the grid. Do nothing.\n\t\t\t\tif ( nextRowIndex === currentRowIndex ) {\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will start navigating horizontally when reaching the vertical\n\t\t\t\t\t// bounds of a table.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Get the focusables in the next row.\n\t\t\t\tconst focusablesInNextRow = getRowFocusables(\n\t\t\t\t\trows[ nextRowIndex ]\n\t\t\t\t);\n\n\t\t\t\t// If for some reason there are no focusables in the next row, do nothing.\n\t\t\t\tif ( ! focusablesInNextRow || ! focusablesInNextRow.length ) {\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will still focus text when using arrow keys, while this\n\t\t\t\t\t// component should limit navigation to focusables.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Try to focus the element in the next row that's at a similar column to the activeElement.\n\t\t\t\tconst nextIndex = Math.min(\n\t\t\t\t\tcurrentColumnIndex,\n\t\t\t\t\tfocusablesInNextRow.length - 1\n\t\t\t\t);\n\t\t\t\tfocusablesInNextRow[ nextIndex ].focus();\n\n\t\t\t\t// Let consumers know the row that was originally focused,\n\t\t\t\t// and the row that is now in focus.\n\t\t\t\tonFocusRow( event, activeRow, rows[ nextRowIndex ] );\n\n\t\t\t\t// Prevent key use for anything else. This ensures Voiceover\n\t\t\t\t// doesn't try to handle key navigation.\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t},\n\t\t[ onExpandRow, onCollapseRow, onFocusRow ]\n\t);\n\n\t/* Disable reason: A treegrid is implemented using a table element. */\n\t/* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */\n\treturn (\n\t\t<RovingTabIndexContainer>\n\t\t\t{\n\t\t\t\t// Prevent browser mode from triggering in NVDA by wrapping List View\n\t\t\t\t// in a role=application wrapper.\n\t\t\t\t// see: https://github.com/WordPress/gutenberg/issues/43729\n\t\t\t }\n\t\t\t<div role=\"application\" aria-label={ applicationAriaLabel }>\n\t\t\t\t<table\n\t\t\t\t\t{ ...props }\n\t\t\t\t\trole=\"treegrid\"\n\t\t\t\t\tonKeyDown={ onKeyDown }\n\t\t\t\t\tref={ ref }\n\t\t\t\t>\n\t\t\t\t\t<tbody>{ children }</tbody>\n\t\t\t\t</table>\n\t\t\t</div>\n\t\t</RovingTabIndexContainer>\n\t);\n\t/* eslint-enable jsx-a11y/no-noninteractive-element-to-interactive-role */\n}\n\n/**\n * `TreeGrid` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * A tree grid is a hierarchical 2 dimensional UI component, for example it could be\n * used to implement a file system browser.\n *\n * A tree grid allows the user to navigate using arrow keys.\n * Up/down to navigate vertically across rows, and left/right to navigate horizontally\n * between focusables in a row.\n *\n * The `TreeGrid` renders both a `table` and `tbody` element, and is intended to be used\n * with `TreeGridRow` (`tr`) and `TreeGridCell` (`td`) to build out a grid.\n *\n * ```jsx\n * function TreeMenu() {\n * \treturn (\n * \t\t<TreeGrid>\n * \t\t\t<TreeGridRow level={ 1 } positionInSet={ 1 } setSize={ 2 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t\t<TreeGridRow level={ 1 } positionInSet={ 2 } setSize={ 2 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t\t<TreeGridRow level={ 2 } positionInSet={ 1 } setSize={ 1 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t</TreeGrid>\n * \t);\n * }\n * ```\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGrid = forwardRef( UnforwardedTreeGrid );\n\nexport default TreeGrid;\nexport { default as TreeGridRow } from './row';\nexport { default as TreeGridCell } from './cell';\nexport { default as TreeGridItem } from './item';\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,KAAK,QAAQ,gBAAgB;AACtC,SAASC,UAAU,EAAEC,WAAW,QAAQ,oBAAoB;AAC5D,SAASC,EAAE,EAAEC,IAAI,EAAEC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,GAAG,QAAQ,qBAAqB;;AAEtE;AACA;AACA;AACA,OAAOC,uBAAuB,MAAM,oBAAoB;AAIxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,gBAAgBA,CAAEC,UAAuB,EAAG;EACpD,MAAMC,eAAe,GAAGZ,KAAK,CAACa,SAAS,CAACC,IAAI,CAAEH,UAAU,EAAE;IACzDI,UAAU,EAAE;EACb,CAAE,CAAC;EAEH,OAAOH,eAAe,CAACI,MAAM,CAAIH,SAAS,IAAM;IAC/C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AAGA;EAAK,GAEXyC,aAAA,gBAAS/C,QAAiB,CACpB,CACH,CACmB,CAAC;EAE3B;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMiD,QAAQ,GAAGnE,UAAU,CAAEiB,mBAAoB,CAAC;AAEzD,eAAekD,QAAQ;AACvB,SAASC,OAAO,IAAIC,WAAW,QAAQ,OAAO;AAC9C,SAASD,OAAO,IAAIE,YAAY,QAAQ,QAAQ;AAChD,SAASF,OAAO,IAAIG,YAAY,QAAQ,QAAQ","ignoreList":[]}
1
+ {"version":3,"names":["focus","forwardRef","useCallback","UP","DOWN","LEFT","RIGHT","HOME","END","RovingTabIndexContainer","jsx","_jsx","getRowFocusables","rowElement","focusablesInRow","focusable","find","sequential","filter","closest","UnforwardedTreeGrid","children","onExpandRow","onCollapseRow","onFocusRow","applicationAriaLabel","props","ref","onKeyDown","event","keyCode","metaKey","ctrlKey","altKey","hasModifierKeyPressed","includes","stopPropagation","activeElement","document","currentTarget","treeGridElement","contains","activeRow","currentColumnIndex","indexOf","canExpandCollapse","cannotFocusNextColumn","getAttribute","nextIndex","Math","max","min","length","_activeRow$getAttribu","preventDefault","level","parseInt","rows","Array","from","querySelectorAll","parentRow","currentRowIndex","i","ariaLevel","focusableItems","nextRowIndex","focusablesInNextRow","role","TreeGrid","default","TreeGridRow","TreeGridCell","TreeGridItem"],"sources":["@wordpress/components/src/tree-grid/index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { focus } from '@wordpress/dom';\nimport { forwardRef, useCallback } from '@wordpress/element';\nimport { UP, DOWN, LEFT, RIGHT, HOME, END } from '@wordpress/keycodes';\n\n/**\n * Internal dependencies\n */\nimport RovingTabIndexContainer from './roving-tab-index';\nimport type { TreeGridProps } from './types';\nimport type { WordPressComponentProps } from '../context';\n\n/**\n * Return focusables in a row element, excluding those from other branches\n * nested within the row.\n *\n * @param rowElement The DOM element representing the row.\n *\n * @return The array of focusables in the row.\n */\nfunction getRowFocusables( rowElement: HTMLElement ) {\n\tconst focusablesInRow = focus.focusable.find( rowElement, {\n\t\tsequential: true,\n\t} );\n\n\treturn focusablesInRow.filter( ( focusable ) => {\n\t\treturn focusable.closest( '[role=\"row\"]' ) === rowElement;\n\t} );\n}\n\n/**\n * Renders both a table and tbody element, used to create a tree hierarchy.\n *\n */\nfunction UnforwardedTreeGrid(\n\t{\n\t\tchildren,\n\t\tonExpandRow = () => {},\n\t\tonCollapseRow = () => {},\n\t\tonFocusRow = () => {},\n\t\tapplicationAriaLabel,\n\t\t...props\n\t}: WordPressComponentProps< TreeGridProps, 'table', false >,\n\t/** A ref to the underlying DOM table element. */\n\tref: React.ForwardedRef< HTMLTableElement >\n) {\n\tconst onKeyDown = useCallback(\n\t\t( event: React.KeyboardEvent< HTMLTableElement > ) => {\n\t\t\tconst { keyCode, metaKey, ctrlKey, altKey } = event;\n\n\t\t\t// The shift key is intentionally absent from the following list,\n\t\t\t// to enable shift + up/down to select items from the list.\n\t\t\tconst hasModifierKeyPressed = metaKey || ctrlKey || altKey;\n\n\t\t\tif (\n\t\t\t\thasModifierKeyPressed ||\n\t\t\t\t! ( [ UP, DOWN, LEFT, RIGHT, HOME, END ] as number[] ).includes(\n\t\t\t\t\tkeyCode\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// The event will be handled, stop propagation.\n\t\t\tevent.stopPropagation();\n\n\t\t\tconst { activeElement } = document;\n\t\t\tconst { currentTarget: treeGridElement } = event;\n\n\t\t\tif (\n\t\t\t\t! activeElement ||\n\t\t\t\t! treeGridElement.contains( activeElement )\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Calculate the columnIndex of the active element.\n\t\t\tconst activeRow =\n\t\t\t\tactiveElement.closest< HTMLElement >( '[role=\"row\"]' );\n\n\t\t\tif ( ! activeRow ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst focusablesInRow = getRowFocusables( activeRow );\n\t\t\tconst currentColumnIndex = focusablesInRow.indexOf(\n\t\t\t\tactiveElement as HTMLElement\n\t\t\t);\n\t\t\tconst canExpandCollapse = 0 === currentColumnIndex;\n\t\t\tconst cannotFocusNextColumn =\n\t\t\t\tcanExpandCollapse &&\n\t\t\t\t( activeRow.getAttribute( 'data-expanded' ) === 'false' ||\n\t\t\t\t\tactiveRow.getAttribute( 'aria-expanded' ) === 'false' ) &&\n\t\t\t\tkeyCode === RIGHT;\n\n\t\t\tif ( ( [ LEFT, RIGHT ] as number[] ).includes( keyCode ) ) {\n\t\t\t\t// Calculate to the next element.\n\t\t\t\tlet nextIndex;\n\t\t\t\tif ( keyCode === LEFT ) {\n\t\t\t\t\tnextIndex = Math.max( 0, currentColumnIndex - 1 );\n\t\t\t\t} else {\n\t\t\t\t\tnextIndex = Math.min(\n\t\t\t\t\t\tcurrentColumnIndex + 1,\n\t\t\t\t\t\tfocusablesInRow.length - 1\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t// Focus is at the left most column.\n\t\t\t\tif ( canExpandCollapse ) {\n\t\t\t\t\tif ( keyCode === LEFT ) {\n\t\t\t\t\t\t// Left:\n\t\t\t\t\t\t// If a row is focused, and it is expanded, collapses the current row.\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tactiveRow.getAttribute( 'data-expanded' ) ===\n\t\t\t\t\t\t\t\t'true' ||\n\t\t\t\t\t\t\tactiveRow.getAttribute( 'aria-expanded' ) === 'true'\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tonCollapseRow( activeRow );\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// If a row is focused, and it is collapsed, moves to the parent row (if there is one).\n\t\t\t\t\t\tconst level = Math.max(\n\t\t\t\t\t\t\tparseInt(\n\t\t\t\t\t\t\t\tactiveRow?.getAttribute( 'aria-level' ) ?? '1',\n\t\t\t\t\t\t\t\t10\n\t\t\t\t\t\t\t) - 1,\n\t\t\t\t\t\t\t1\n\t\t\t\t\t\t);\n\t\t\t\t\t\tconst rows = Array.from(\n\t\t\t\t\t\t\ttreeGridElement.querySelectorAll< HTMLElement >(\n\t\t\t\t\t\t\t\t'[role=\"row\"]'\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t\tlet parentRow = activeRow;\n\t\t\t\t\t\tconst currentRowIndex = rows.indexOf( activeRow );\n\t\t\t\t\t\tfor ( let i = currentRowIndex; i >= 0; i-- ) {\n\t\t\t\t\t\t\tconst ariaLevel =\n\t\t\t\t\t\t\t\trows[ i ].getAttribute( 'aria-level' );\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tariaLevel !== null &&\n\t\t\t\t\t\t\t\tparseInt( ariaLevel, 10 ) === level\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tparentRow = rows[ i ];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tgetRowFocusables( parentRow )?.[ 0 ]?.focus();\n\t\t\t\t\t}\n\t\t\t\t\tif ( keyCode === RIGHT ) {\n\t\t\t\t\t\t// Right:\n\t\t\t\t\t\t// If a row is focused, and it is collapsed, expands the current row.\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tactiveRow.getAttribute( 'data-expanded' ) ===\n\t\t\t\t\t\t\t\t'false' ||\n\t\t\t\t\t\t\tactiveRow.getAttribute( 'aria-expanded' ) ===\n\t\t\t\t\t\t\t\t'false'\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tonExpandRow( activeRow );\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// If a row is focused, and it is expanded, focuses the next cell in the row.\n\t\t\t\t\t\tconst focusableItems = getRowFocusables( activeRow );\n\t\t\t\t\t\tif ( focusableItems.length > 0 ) {\n\t\t\t\t\t\t\tfocusableItems[ nextIndex ]?.focus();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will start reading text on continued use of left/right arrow\n\t\t\t\t\t// keys.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Focus the next element. If at most left column and row is collapsed, moving right is not allowed as this will expand. However, if row is collapsed, moving left is allowed.\n\t\t\t\tif ( cannotFocusNextColumn ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfocusablesInRow[ nextIndex ].focus();\n\n\t\t\t\t// Prevent key use for anything else. This ensures Voiceover\n\t\t\t\t// doesn't try to handle key navigation.\n\t\t\t\tevent.preventDefault();\n\t\t\t} else if ( ( [ UP, DOWN ] as number[] ).includes( keyCode ) ) {\n\t\t\t\t// Calculate the rowIndex of the next row.\n\t\t\t\tconst rows = Array.from(\n\t\t\t\t\ttreeGridElement.querySelectorAll< HTMLElement >(\n\t\t\t\t\t\t'[role=\"row\"]'\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\tconst currentRowIndex = rows.indexOf( activeRow );\n\t\t\t\tlet nextRowIndex;\n\n\t\t\t\tif ( keyCode === UP ) {\n\t\t\t\t\tnextRowIndex = Math.max( 0, currentRowIndex - 1 );\n\t\t\t\t} else {\n\t\t\t\t\tnextRowIndex = Math.min(\n\t\t\t\t\t\tcurrentRowIndex + 1,\n\t\t\t\t\t\trows.length - 1\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t// Focus is either at the top or bottom edge of the grid. Do nothing.\n\t\t\t\tif ( nextRowIndex === currentRowIndex ) {\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will start navigating horizontally when reaching the vertical\n\t\t\t\t\t// bounds of a table.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Get the focusables in the next row.\n\t\t\t\tconst focusablesInNextRow = getRowFocusables(\n\t\t\t\t\trows[ nextRowIndex ]\n\t\t\t\t);\n\n\t\t\t\t// If for some reason there are no focusables in the next row, do nothing.\n\t\t\t\tif ( ! focusablesInNextRow || ! focusablesInNextRow.length ) {\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will still focus text when using arrow keys, while this\n\t\t\t\t\t// component should limit navigation to focusables.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Try to focus the element in the next row that's at a similar column to the activeElement.\n\t\t\t\tconst nextIndex = Math.min(\n\t\t\t\t\tcurrentColumnIndex,\n\t\t\t\t\tfocusablesInNextRow.length - 1\n\t\t\t\t);\n\t\t\t\tfocusablesInNextRow[ nextIndex ].focus();\n\n\t\t\t\t// Let consumers know the row that was originally focused,\n\t\t\t\t// and the row that is now in focus.\n\t\t\t\tonFocusRow( event, activeRow, rows[ nextRowIndex ] );\n\n\t\t\t\t// Prevent key use for anything else. This ensures Voiceover\n\t\t\t\t// doesn't try to handle key navigation.\n\t\t\t\tevent.preventDefault();\n\t\t\t} else if ( ( [ HOME, END ] as number[] ).includes( keyCode ) ) {\n\t\t\t\t// Calculate the rowIndex of the next row.\n\t\t\t\tconst rows = Array.from(\n\t\t\t\t\ttreeGridElement.querySelectorAll< HTMLElement >(\n\t\t\t\t\t\t'[role=\"row\"]'\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\tconst currentRowIndex = rows.indexOf( activeRow );\n\t\t\t\tlet nextRowIndex;\n\n\t\t\t\tif ( keyCode === HOME ) {\n\t\t\t\t\tnextRowIndex = 0;\n\t\t\t\t} else {\n\t\t\t\t\tnextRowIndex = rows.length - 1;\n\t\t\t\t}\n\n\t\t\t\t// Focus is either at the top or bottom edge of the grid. Do nothing.\n\t\t\t\tif ( nextRowIndex === currentRowIndex ) {\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will start navigating horizontally when reaching the vertical\n\t\t\t\t\t// bounds of a table.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Get the focusables in the next row.\n\t\t\t\tconst focusablesInNextRow = getRowFocusables(\n\t\t\t\t\trows[ nextRowIndex ]\n\t\t\t\t);\n\n\t\t\t\t// If for some reason there are no focusables in the next row, do nothing.\n\t\t\t\tif ( ! focusablesInNextRow || ! focusablesInNextRow.length ) {\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will still focus text when using arrow keys, while this\n\t\t\t\t\t// component should limit navigation to focusables.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Try to focus the element in the next row that's at a similar column to the activeElement.\n\t\t\t\tconst nextIndex = Math.min(\n\t\t\t\t\tcurrentColumnIndex,\n\t\t\t\t\tfocusablesInNextRow.length - 1\n\t\t\t\t);\n\t\t\t\tfocusablesInNextRow[ nextIndex ].focus();\n\n\t\t\t\t// Let consumers know the row that was originally focused,\n\t\t\t\t// and the row that is now in focus.\n\t\t\t\tonFocusRow( event, activeRow, rows[ nextRowIndex ] );\n\n\t\t\t\t// Prevent key use for anything else. This ensures Voiceover\n\t\t\t\t// doesn't try to handle key navigation.\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t},\n\t\t[ onExpandRow, onCollapseRow, onFocusRow ]\n\t);\n\n\t/* Disable reason: A treegrid is implemented using a table element. */\n\t/* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */\n\treturn (\n\t\t<RovingTabIndexContainer>\n\t\t\t{\n\t\t\t\t// Prevent browser mode from triggering in NVDA by wrapping List View\n\t\t\t\t// in a role=application wrapper.\n\t\t\t\t// see: https://github.com/WordPress/gutenberg/issues/43729\n\t\t\t }\n\t\t\t<div role=\"application\" aria-label={ applicationAriaLabel }>\n\t\t\t\t<table\n\t\t\t\t\t{ ...props }\n\t\t\t\t\trole=\"treegrid\"\n\t\t\t\t\tonKeyDown={ onKeyDown }\n\t\t\t\t\tref={ ref }\n\t\t\t\t>\n\t\t\t\t\t<tbody>{ children }</tbody>\n\t\t\t\t</table>\n\t\t\t</div>\n\t\t</RovingTabIndexContainer>\n\t);\n\t/* eslint-enable jsx-a11y/no-noninteractive-element-to-interactive-role */\n}\n\n/**\n * `TreeGrid` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * A tree grid is a hierarchical 2 dimensional UI component, for example it could be\n * used to implement a file system browser.\n *\n * A tree grid allows the user to navigate using arrow keys.\n * Up/down to navigate vertically across rows, and left/right to navigate horizontally\n * between focusables in a row.\n *\n * The `TreeGrid` renders both a `table` and `tbody` element, and is intended to be used\n * with `TreeGridRow` (`tr`) and `TreeGridCell` (`td`) to build out a grid.\n *\n * ```jsx\n * function TreeMenu() {\n * \treturn (\n * \t\t<TreeGrid>\n * \t\t\t<TreeGridRow level={ 1 } positionInSet={ 1 } setSize={ 2 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t\t<TreeGridRow level={ 1 } positionInSet={ 2 } setSize={ 2 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t\t<TreeGridRow level={ 2 } positionInSet={ 1 } setSize={ 1 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t</TreeGrid>\n * \t);\n * }\n * ```\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGrid = forwardRef( UnforwardedTreeGrid );\n\nexport default TreeGrid;\nexport { default as TreeGridRow } from './row';\nexport { default as TreeGridCell } from './cell';\nexport { default as TreeGridItem } from './item';\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,KAAK,QAAQ,gBAAgB;AACtC,SAASC,UAAU,EAAEC,WAAW,QAAQ,oBAAoB;AAC5D,SAASC,EAAE,EAAEC,IAAI,EAAEC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,GAAG,QAAQ,qBAAqB;;AAEtE;AACA;AACA;AACA,OAAOC,uBAAuB,MAAM,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAIzD;AACA;A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Aa,EAAEC,UAAU,CACzC,CAAC;;EAED;EACA;EACA,oBACCb,IAAA,CAACF,uBAAuB;IAAAY,QAAA,eAMvBV,IAAA;MAAKyD,IAAI,EAAC,aAAa;MAAC,cAAa3C,oBAAsB;MAAAJ,QAAA,eAC1DV,IAAA;QAAA,GACMe,KAAK;QACV0C,IAAI,EAAC,UAAU;QACfxC,SAAS,EAAGA,SAAW;QACvBD,GAAG,EAAGA,GAAK;QAAAN,QAAA,eAEXV,IAAA;UAAAU,QAAA,EAASA;QAAQ,CAAS;MAAC,CACrB;IAAC,CACJ;EAAC,CACkB,CAAC;EAE3B;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMgD,QAAQ,GAAGpE,UAAU,CAAEmB,mBAAoB,CAAC;AAEzD,eAAeiD,QAAQ;AACvB,SAASC,OAAO,IAAIC,WAAW,QAAQ,OAAO;AAC9C,SAASD,OAAO,IAAIE,YAAY,QAAQ,QAAQ;AAChD,SAASF,OAAO,IAAIG,YAAY,QAAQ,QAAQ","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * WordPress dependencies
4
3
  */
@@ -8,14 +7,16 @@ import { forwardRef } from '@wordpress/element';
8
7
  * Internal dependencies
9
8
  */
10
9
  import RovingTabIndexItem from './roving-tab-index-item';
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
11
  function UnforwardedTreeGridItem({
12
12
  children,
13
13
  ...props
14
14
  }, ref) {
15
- return createElement(RovingTabIndexItem, {
15
+ return /*#__PURE__*/_jsx(RovingTabIndexItem, {
16
16
  ref: ref,
17
- ...props
18
- }, children);
17
+ ...props,
18
+ children: children
19
+ });
19
20
  }
20
21
 
21
22
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["forwardRef","RovingTabIndexItem","UnforwardedTreeGridItem","children","props","ref","createElement","TreeGridItem"],"sources":["@wordpress/components/src/tree-grid/item.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport RovingTabIndexItem from './roving-tab-index-item';\nimport type { RovingTabIndexItemProps } from './types';\n\nfunction UnforwardedTreeGridItem(\n\t{ children, ...props }: RovingTabIndexItemProps,\n\tref: React.ForwardedRef< any >\n) {\n\treturn (\n\t\t<RovingTabIndexItem ref={ ref } { ...props }>\n\t\t\t{ children }\n\t\t</RovingTabIndexItem>\n\t);\n}\n\n/**\n * `TreeGridItem` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGridItem = forwardRef( UnforwardedTreeGridItem );\n\nexport default TreeGridItem;\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,UAAU,QAAQ,oBAAoB;;AAE/C;AACA;AACA;AACA,OAAOC,kBAAkB,MAAM,yBAAyB;AAGxD,SAASC,uBAAuBA,CAC/B;EAAEC,QAAQ;EAAE,GAAGC;AAA+B,CAAC,EAC/CC,GAA8B,EAC7B;EACD,OACCC,aAAA,CAACL,kBAAkB;IAACI,GAAG,EAAGA,GAAK;IAAA,GAAMD;EAAK,GACvCD,QACiB,CAAC;AAEvB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMI,YAAY,GAAGP,UAAU,CAAEE,uBAAwB,CAAC;AAEjE,eAAeK,YAAY","ignoreList":[]}
1
+ {"version":3,"names":["forwardRef","RovingTabIndexItem","jsx","_jsx","UnforwardedTreeGridItem","children","props","ref","TreeGridItem"],"sources":["@wordpress/components/src/tree-grid/item.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport RovingTabIndexItem from './roving-tab-index-item';\nimport type { RovingTabIndexItemProps } from './types';\n\nfunction UnforwardedTreeGridItem(\n\t{ children, ...props }: RovingTabIndexItemProps,\n\tref: React.ForwardedRef< any >\n) {\n\treturn (\n\t\t<RovingTabIndexItem ref={ ref } { ...props }>\n\t\t\t{ children }\n\t\t</RovingTabIndexItem>\n\t);\n}\n\n/**\n * `TreeGridItem` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGridItem = forwardRef( UnforwardedTreeGridItem );\n\nexport default TreeGridItem;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,UAAU,QAAQ,oBAAoB;;AAE/C;AACA;AACA;AACA,OAAOC,kBAAkB,MAAM,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGzD,SAASC,uBAAuBA,CAC/B;EAAEC,QAAQ;EAAE,GAAGC;AAA+B,CAAC,EAC/CC,GAA8B,EAC7B;EACD,oBACCJ,IAAA,CAACF,kBAAkB;IAACM,GAAG,EAAGA,GAAK;IAAA,GAAMD,KAAK;IAAAD,QAAA,EACvCA;EAAQ,CACS,CAAC;AAEvB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMG,YAAY,GAAGR,UAAU,CAAEI,uBAAwB,CAAC;AAEjE,eAAeI,YAAY","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * WordPress dependencies
4
3
  */
@@ -8,6 +7,7 @@ import { useRef, forwardRef } from '@wordpress/element';
8
7
  * Internal dependencies
9
8
  */
10
9
  import { useRovingTabIndexContext } from './roving-tab-index-context';
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
11
  export const RovingTabIndexItem = forwardRef(function UnforwardedRovingTabIndexItem({
12
12
  children,
13
13
  as: Component,
@@ -42,9 +42,10 @@ export const RovingTabIndexItem = forwardRef(function UnforwardedRovingTabIndexI
42
42
  if (!Component) {
43
43
  return null;
44
44
  }
45
- return createElement(Component, {
46
- ...allProps
47
- }, children);
45
+ return /*#__PURE__*/_jsx(Component, {
46
+ ...allProps,
47
+ children: children
48
+ });
48
49
  });
49
50
  export default RovingTabIndexItem;
50
51
  //# sourceMappingURL=roving-tab-index-item.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useRef","forwardRef","useRovingTabIndexContext","RovingTabIndexItem","UnforwardedRovingTabIndexItem","children","as","Component","props","forwardedRef","localRef","ref","lastFocusedElement","setLastFocusedElement","tabIndex","current","undefined","onFocus","event","target","allProps","createElement"],"sources":["@wordpress/components/src/tree-grid/roving-tab-index-item.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useRef, forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { useRovingTabIndexContext } from './roving-tab-index-context';\nimport type { RovingTabIndexItemProps } from './types';\n\nexport const RovingTabIndexItem = forwardRef(\n\tfunction UnforwardedRovingTabIndexItem(\n\t\t{ children, as: Component, ...props }: RovingTabIndexItemProps,\n\t\tforwardedRef: React.ForwardedRef< any >\n\t) {\n\t\tconst localRef = useRef< any >();\n\t\tconst ref = forwardedRef || localRef;\n\t\t// @ts-expect-error - We actually want to throw an error if this is undefined.\n\t\tconst { lastFocusedElement, setLastFocusedElement } =\n\t\t\tuseRovingTabIndexContext();\n\t\tlet tabIndex;\n\n\t\tif ( lastFocusedElement ) {\n\t\t\ttabIndex =\n\t\t\t\tlastFocusedElement ===\n\t\t\t\t// TODO: The original implementation simply used `ref.current` here, assuming\n\t\t\t\t// that a forwarded ref would always be an object, which is not necessarily true.\n\t\t\t\t// This workaround maintains the original runtime behavior in a type-safe way,\n\t\t\t\t// but should be revisited.\n\t\t\t\t( 'current' in ref ? ref.current : undefined )\n\t\t\t\t\t? 0\n\t\t\t\t\t: -1;\n\t\t}\n\n\t\tconst onFocus: React.FocusEventHandler< HTMLElement > = ( event ) =>\n\t\t\tsetLastFocusedElement?.( event.target );\n\t\tconst allProps = { ref, tabIndex, onFocus, ...props };\n\n\t\tif ( typeof children === 'function' ) {\n\t\t\treturn children( allProps );\n\t\t}\n\n\t\tif ( ! Component ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn <Component { ...allProps }>{ children }</Component>;\n\t}\n);\n\nexport default RovingTabIndexItem;\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,MAAM,EAAEC,UAAU,QAAQ,oBAAoB;;AAEvD;AACA;AACA;AACA,SAASC,wBAAwB,QAAQ,4BAA4B;AAGrE,OAAO,MAAMC,kBAAkB,GAAGF,UAAU,CAC3C,SAASG,6BAA6BA,CACrC;EAAEC,QAAQ;EAAEC,EAAE,EAAEC,SAAS;EAAE,GAAGC;AAA+B,CAAC,EAC9DC,YAAuC,EACtC;EACD,MAAMC,QAAQ,GAAGV,MAAM,CAAQ,CAAC;EAChC,MAAMW,GAAG,GAAGF,YAAY,IAAIC,QAAQ;EACpC;EACA,MAAM;IAAEE,kBAAkB;IAAEC;EAAsB,CAAC,GAClDX,wBAAwB,CAAC,CAAC;EAC3B,IAAIY,QAAQ;EAEZ,IAAKF,kBAAkB,EAAG;IACzBE,QAAQ,GACPF,kBAAkB;IAClB;IACA;IACA;IACA;IACE,SAAS,IAAID,GAAG,GAAGA,GAAG,CAACI,OAAO,GAAGC,SAAS,CAAE,GAC3C,CAAC,GACD,CAAC,CAAC;EACP;EAEA,MAAMC,OAA+C,GAAKC,KAAK,IAC9DL,qBAAqB,GAAIK,KAAK,CAACC,MAAO,CAAC;EACxC,MAAMC,QAAQ,GAAG;IAAET,GAAG;IAAEG,QAAQ;IAAEG,OAAO;IAAE,GAAGT;EAAM,CAAC;EAErD,IAAK,OAAOH,QAAQ,KAAK,UAAU,EAAG;IACrC,OAAOA,QAAQ,CAAEe,QAAS,CAAC;EAC5B;EAEA,IAAK,CAAEb,SAAS,EAAG;IAClB,OAAO,IAAI;EACZ;EAEA,OAAOc,aAAA,CAACd,SAAS;IAAA,GAAMa;EAAQ,GAAKf,QAAqB,CAAC;AAC3D,CACD,CAAC;AAED,eAAeF,kBAAkB","ignoreList":[]}
1
+ {"version":3,"names":["useRef","forwardRef","useRovingTabIndexContext","jsx","_jsx","RovingTabIndexItem","UnforwardedRovingTabIndexItem","children","as","Component","props","forwardedRef","localRef","ref","lastFocusedElement","setLastFocusedElement","tabIndex","current","undefined","onFocus","event","target","allProps"],"sources":["@wordpress/components/src/tree-grid/roving-tab-index-item.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useRef, forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { useRovingTabIndexContext } from './roving-tab-index-context';\nimport type { RovingTabIndexItemProps } from './types';\n\nexport const RovingTabIndexItem = forwardRef(\n\tfunction UnforwardedRovingTabIndexItem(\n\t\t{ children, as: Component, ...props }: RovingTabIndexItemProps,\n\t\tforwardedRef: React.ForwardedRef< any >\n\t) {\n\t\tconst localRef = useRef< any >();\n\t\tconst ref = forwardedRef || localRef;\n\t\t// @ts-expect-error - We actually want to throw an error if this is undefined.\n\t\tconst { lastFocusedElement, setLastFocusedElement } =\n\t\t\tuseRovingTabIndexContext();\n\t\tlet tabIndex;\n\n\t\tif ( lastFocusedElement ) {\n\t\t\ttabIndex =\n\t\t\t\tlastFocusedElement ===\n\t\t\t\t// TODO: The original implementation simply used `ref.current` here, assuming\n\t\t\t\t// that a forwarded ref would always be an object, which is not necessarily true.\n\t\t\t\t// This workaround maintains the original runtime behavior in a type-safe way,\n\t\t\t\t// but should be revisited.\n\t\t\t\t( 'current' in ref ? ref.current : undefined )\n\t\t\t\t\t? 0\n\t\t\t\t\t: -1;\n\t\t}\n\n\t\tconst onFocus: React.FocusEventHandler< HTMLElement > = ( event ) =>\n\t\t\tsetLastFocusedElement?.( event.target );\n\t\tconst allProps = { ref, tabIndex, onFocus, ...props };\n\n\t\tif ( typeof children === 'function' ) {\n\t\t\treturn children( allProps );\n\t\t}\n\n\t\tif ( ! Component ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn <Component { ...allProps }>{ children }</Component>;\n\t}\n);\n\nexport default RovingTabIndexItem;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,MAAM,EAAEC,UAAU,QAAQ,oBAAoB;;AAEvD;AACA;AACA;AACA,SAASC,wBAAwB,QAAQ,4BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGtE,OAAO,MAAMC,kBAAkB,GAAGJ,UAAU,CAC3C,SAASK,6BAA6BA,CACrC;EAAEC,QAAQ;EAAEC,EAAE,EAAEC,SAAS;EAAE,GAAGC;AAA+B,CAAC,EAC9DC,YAAuC,EACtC;EACD,MAAMC,QAAQ,GAAGZ,MAAM,CAAQ,CAAC;EAChC,MAAMa,GAAG,GAAGF,YAAY,IAAIC,QAAQ;EACpC;EACA,MAAM;IAAEE,kBAAkB;IAAEC;EAAsB,CAAC,GAClDb,wBAAwB,CAAC,CAAC;EAC3B,IAAIc,QAAQ;EAEZ,IAAKF,kBAAkB,EAAG;IACzBE,QAAQ,GACPF,kBAAkB;IAClB;IACA;IACA;IACA;IACE,SAAS,IAAID,GAAG,GAAGA,GAAG,CAACI,OAAO,GAAGC,SAAS,CAAE,GAC3C,CAAC,GACD,CAAC,CAAC;EACP;EAEA,MAAMC,OAA+C,GAAKC,KAAK,IAC9DL,qBAAqB,GAAIK,KAAK,CAACC,MAAO,CAAC;EACxC,MAAMC,QAAQ,GAAG;IAAET,GAAG;IAAEG,QAAQ;IAAEG,OAAO;IAAE,GAAGT;EAAM,CAAC;EAErD,IAAK,OAAOH,QAAQ,KAAK,UAAU,EAAG;IACrC,OAAOA,QAAQ,CAAEe,QAAS,CAAC;EAC5B;EAEA,IAAK,CAAEb,SAAS,EAAG;IAClB,OAAO,IAAI;EACZ;EAEA,oBAAOL,IAAA,CAACK,SAAS;IAAA,GAAMa,QAAQ;IAAAf,QAAA,EAAKA;EAAQ,CAAa,CAAC;AAC3D,CACD,CAAC;AAED,eAAeF,kBAAkB","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * WordPress dependencies
4
3
  */
@@ -14,6 +13,7 @@ import { RovingTabIndexProvider } from './roving-tab-index-context';
14
13
  *
15
14
  * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/components/src/tree-grid/README.md
16
15
  */
16
+ import { jsx as _jsx } from "react/jsx-runtime";
17
17
  export default function RovingTabIndex({
18
18
  children
19
19
  }) {
@@ -26,8 +26,9 @@ export default function RovingTabIndex({
26
26
  lastFocusedElement,
27
27
  setLastFocusedElement
28
28
  }), [lastFocusedElement]);
29
- return createElement(RovingTabIndexProvider, {
30
- value: providerValue
31
- }, children);
29
+ return /*#__PURE__*/_jsx(RovingTabIndexProvider, {
30
+ value: providerValue,
31
+ children: children
32
+ });
32
33
  }
33
34
  //# sourceMappingURL=roving-tab-index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useState","useMemo","RovingTabIndexProvider","RovingTabIndex","children","lastFocusedElement","setLastFocusedElement","providerValue","createElement","value"],"sources":["@wordpress/components/src/tree-grid/roving-tab-index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useState, useMemo } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { RovingTabIndexProvider } from './roving-tab-index-context';\n\n/**\n * Provider for adding roving tab index behaviors to tree grid structures.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/components/src/tree-grid/README.md\n */\nexport default function RovingTabIndex( {\n\tchildren,\n}: {\n\tchildren: React.ReactNode;\n} ) {\n\tconst [ lastFocusedElement, setLastFocusedElement ] =\n\t\tuseState< HTMLElement >();\n\n\t// Use `useMemo` to avoid creation of a new object for the providerValue\n\t// on every render. Only create a new object when the `lastFocusedElement`\n\t// value changes.\n\tconst providerValue = useMemo(\n\t\t() => ( { lastFocusedElement, setLastFocusedElement } ),\n\t\t[ lastFocusedElement ]\n\t);\n\n\treturn (\n\t\t<RovingTabIndexProvider value={ providerValue }>\n\t\t\t{ children }\n\t\t</RovingTabIndexProvider>\n\t);\n}\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,QAAQ,EAAEC,OAAO,QAAQ,oBAAoB;;AAEtD;AACA;AACA;AACA,SAASC,sBAAsB,QAAQ,4BAA4B;;AAEnE;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,cAAcA,CAAE;EACvCC;AAGD,CAAC,EAAG;EACH,MAAM,CAAEC,kBAAkB,EAAEC,qBAAqB,CAAE,GAClDN,QAAQ,CAAgB,CAAC;;EAE1B;EACA;EACA;EACA,MAAMO,aAAa,GAAGN,OAAO,CAC5B,OAAQ;IAAEI,kBAAkB;IAAEC;EAAsB,CAAC,CAAE,EACvD,CAAED,kBAAkB,CACrB,CAAC;EAED,OACCG,aAAA,CAACN,sBAAsB;IAACO,KAAK,EAAGF;EAAe,GAC5CH,QACqB,CAAC;AAE3B","ignoreList":[]}
1
+ {"version":3,"names":["useState","useMemo","RovingTabIndexProvider","jsx","_jsx","RovingTabIndex","children","lastFocusedElement","setLastFocusedElement","providerValue","value"],"sources":["@wordpress/components/src/tree-grid/roving-tab-index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useState, useMemo } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { RovingTabIndexProvider } from './roving-tab-index-context';\n\n/**\n * Provider for adding roving tab index behaviors to tree grid structures.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/components/src/tree-grid/README.md\n */\nexport default function RovingTabIndex( {\n\tchildren,\n}: {\n\tchildren: React.ReactNode;\n} ) {\n\tconst [ lastFocusedElement, setLastFocusedElement ] =\n\t\tuseState< HTMLElement >();\n\n\t// Use `useMemo` to avoid creation of a new object for the providerValue\n\t// on every render. Only create a new object when the `lastFocusedElement`\n\t// value changes.\n\tconst providerValue = useMemo(\n\t\t() => ( { lastFocusedElement, setLastFocusedElement } ),\n\t\t[ lastFocusedElement ]\n\t);\n\n\treturn (\n\t\t<RovingTabIndexProvider value={ providerValue }>\n\t\t\t{ children }\n\t\t</RovingTabIndexProvider>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,QAAQ,EAAEC,OAAO,QAAQ,oBAAoB;;AAEtD;AACA;AACA;AACA,SAASC,sBAAsB,QAAQ,4BAA4B;;AAEnE;AACA;AACA;AACA;AACA;AAJA,SAAAC,GAAA,IAAAC,IAAA;AAKA,eAAe,SAASC,cAAcA,CAAE;EACvCC;AAGD,CAAC,EAAG;EACH,MAAM,CAAEC,kBAAkB,EAAEC,qBAAqB,CAAE,GAClDR,QAAQ,CAAgB,CAAC;;EAE1B;EACA;EACA;EACA,MAAMS,aAAa,GAAGR,OAAO,CAC5B,OAAQ;IAAEM,kBAAkB;IAAEC;EAAsB,CAAC,CAAE,EACvD,CAAED,kBAAkB,CACrB,CAAC;EAED,oBACCH,IAAA,CAACF,sBAAsB;IAACQ,KAAK,EAAGD,aAAe;IAAAH,QAAA,EAC5CA;EAAQ,CACa,CAAC;AAE3B","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * WordPress dependencies
4
3
  */
@@ -7,7 +6,7 @@ import { forwardRef } from '@wordpress/element';
7
6
  /**
8
7
  * Internal dependencies
9
8
  */
10
-
9
+ import { jsx as _jsx } from "react/jsx-runtime";
11
10
  function UnforwardedTreeGridRow({
12
11
  children,
13
12
  level,
@@ -16,15 +15,16 @@ function UnforwardedTreeGridRow({
16
15
  isExpanded,
17
16
  ...props
18
17
  }, ref) {
19
- return createElement("tr", {
18
+ return /*#__PURE__*/_jsx("tr", {
20
19
  ...props,
21
20
  ref: ref,
22
21
  role: "row",
23
22
  "aria-level": level,
24
23
  "aria-posinset": positionInSet,
25
24
  "aria-setsize": setSize,
26
- "aria-expanded": isExpanded
27
- }, children);
25
+ "aria-expanded": isExpanded,
26
+ children: children
27
+ });
28
28
  }
29
29
 
30
30
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["forwardRef","UnforwardedTreeGridRow","children","level","positionInSet","setSize","isExpanded","props","ref","createElement","role","TreeGridRow"],"sources":["@wordpress/components/src/tree-grid/row.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../context';\nimport type { TreeGridRowProps } from './types';\n\nfunction UnforwardedTreeGridRow(\n\t{\n\t\tchildren,\n\t\tlevel,\n\t\tpositionInSet,\n\t\tsetSize,\n\t\tisExpanded,\n\t\t...props\n\t}: WordPressComponentProps< TreeGridRowProps, 'tr', false >,\n\tref: React.ForwardedRef< HTMLTableRowElement >\n) {\n\treturn (\n\t\t<tr\n\t\t\t{ ...props }\n\t\t\tref={ ref }\n\t\t\trole=\"row\"\n\t\t\taria-level={ level }\n\t\t\taria-posinset={ positionInSet }\n\t\t\taria-setsize={ setSize }\n\t\t\taria-expanded={ isExpanded }\n\t\t>\n\t\t\t{ children }\n\t\t</tr>\n\t);\n}\n\n/**\n * `TreeGridRow` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGridRow = forwardRef( UnforwardedTreeGridRow );\n\nexport default TreeGridRow;\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,UAAU,QAAQ,oBAAoB;;AAE/C;AACA;AACA;;AAIA,SAASC,sBAAsBA,CAC9B;EACCC,QAAQ;EACRC,KAAK;EACLC,aAAa;EACbC,OAAO;EACPC,UAAU;EACV,GAAGC;AACsD,CAAC,EAC3DC,GAA8C,EAC7C;EACD,OACCC,aAAA;IAAA,GACMF,KAAK;IACVC,GAAG,EAAGA,GAAK;IACXE,IAAI,EAAC,KAAK;IACV,cAAaP,KAAO;IACpB,iBAAgBC,aAAe;IAC/B,gBAAeC,OAAS;IACxB,iBAAgBC;EAAY,GAE1BJ,QACC,CAAC;AAEP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMS,WAAW,GAAGX,UAAU,CAAEC,sBAAuB,CAAC;AAE/D,eAAeU,WAAW","ignoreList":[]}
1
+ {"version":3,"names":["forwardRef","jsx","_jsx","UnforwardedTreeGridRow","children","level","positionInSet","setSize","isExpanded","props","ref","role","TreeGridRow"],"sources":["@wordpress/components/src/tree-grid/row.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../context';\nimport type { TreeGridRowProps } from './types';\n\nfunction UnforwardedTreeGridRow(\n\t{\n\t\tchildren,\n\t\tlevel,\n\t\tpositionInSet,\n\t\tsetSize,\n\t\tisExpanded,\n\t\t...props\n\t}: WordPressComponentProps< TreeGridRowProps, 'tr', false >,\n\tref: React.ForwardedRef< HTMLTableRowElement >\n) {\n\treturn (\n\t\t<tr\n\t\t\t{ ...props }\n\t\t\tref={ ref }\n\t\t\trole=\"row\"\n\t\t\taria-level={ level }\n\t\t\taria-posinset={ positionInSet }\n\t\t\taria-setsize={ setSize }\n\t\t\taria-expanded={ isExpanded }\n\t\t>\n\t\t\t{ children }\n\t\t</tr>\n\t);\n}\n\n/**\n * `TreeGridRow` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGridRow = forwardRef( UnforwardedTreeGridRow );\n\nexport default TreeGridRow;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,UAAU,QAAQ,oBAAoB;;AAE/C;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAMA,SAASC,sBAAsBA,CAC9B;EACCC,QAAQ;EACRC,KAAK;EACLC,aAAa;EACbC,OAAO;EACPC,UAAU;EACV,GAAGC;AACsD,CAAC,EAC3DC,GAA8C,EAC7C;EACD,oBACCR,IAAA;IAAA,GACMO,KAAK;IACVC,GAAG,EAAGA,GAAK;IACXC,IAAI,EAAC,KAAK;IACV,cAAaN,KAAO;IACpB,iBAAgBC,aAAe;IAC/B,gBAAeC,OAAS;IACxB,iBAAgBC,UAAY;IAAAJ,QAAA,EAE1BA;EAAQ,CACP,CAAC;AAEP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMQ,WAAW,GAAGZ,UAAU,CAAEG,sBAAuB,CAAC;AAE/D,eAAeS,WAAW","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * WordPress dependencies
4
3
  */
@@ -10,6 +9,7 @@ import { decodeEntities } from '@wordpress/html-entities';
10
9
  */
11
10
  import { SelectControl } from '../select-control';
12
11
  import { useDeprecated36pxDefaultSizeProp } from '../utils/use-deprecated-props';
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  function getSelectOptions(tree, level = 0) {
14
14
  return tree.flatMap(treeNode => [{
15
15
  value: treeNode.id,
@@ -80,7 +80,7 @@ export function TreeSelect(props) {
80
80
  label: noOptionLabel
81
81
  }, ...getSelectOptions(tree)].filter(option => !!option);
82
82
  }, [noOptionLabel, tree]);
83
- return createElement(SelectControl, {
83
+ return /*#__PURE__*/_jsx(SelectControl, {
84
84
  label,
85
85
  options,
86
86
  onChange,
@@ -1 +1 @@
1
- {"version":3,"names":["useMemo","decodeEntities","SelectControl","useDeprecated36pxDefaultSizeProp","getSelectOptions","tree","level","flatMap","treeNode","value","id","label","repeat","name","children","TreeSelect","props","noOptionLabel","onChange","selectedId","restProps","options","filter","option","createElement"],"sources":["@wordpress/components/src/tree-select/index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useMemo } from '@wordpress/element';\nimport { decodeEntities } from '@wordpress/html-entities';\n\n/**\n * Internal dependencies\n */\nimport { SelectControl } from '../select-control';\nimport type { TreeSelectProps, Tree, Truthy } from './types';\nimport { useDeprecated36pxDefaultSizeProp } from '../utils/use-deprecated-props';\n\nfunction getSelectOptions(\n\ttree: Tree[],\n\tlevel = 0\n): NonNullable< TreeSelectProps[ 'options' ] > {\n\treturn tree.flatMap( ( treeNode ) => [\n\t\t{\n\t\t\tvalue: treeNode.id,\n\t\t\tlabel:\n\t\t\t\t'\\u00A0'.repeat( level * 3 ) + decodeEntities( treeNode.name ),\n\t\t},\n\t\t...getSelectOptions( treeNode.children || [], level + 1 ),\n\t] );\n}\n\n/**\n * TreeSelect component is used to generate select input fields.\n *\n * ```jsx\n * import { TreeSelect } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const MyTreeSelect = () => {\n * \tconst [ page, setPage ] = useState( 'p21' );\n *\n * \treturn (\n * \t\t<TreeSelect\n * \t\t\tlabel=\"Parent page\"\n * \t\t\tnoOptionLabel=\"No parent page\"\n * \t\t\tonChange={ ( newPage ) => setPage( newPage ) }\n * \t\t\tselectedId={ page }\n * \t\t\ttree={ [\n * \t\t\t\t{\n * \t\t\t\t\tname: 'Page 1',\n * \t\t\t\t\tid: 'p1',\n * \t\t\t\t\tchildren: [\n * \t\t\t\t\t\t{ name: 'Descend 1 of page 1', id: 'p11' },\n * \t\t\t\t\t\t{ name: 'Descend 2 of page 1', id: 'p12' },\n * \t\t\t\t\t],\n * \t\t\t\t},\n * \t\t\t\t{\n * \t\t\t\t\tname: 'Page 2',\n * \t\t\t\t\tid: 'p2',\n * \t\t\t\t\tchildren: [\n * \t\t\t\t\t\t{\n * \t\t\t\t\t\t\tname: 'Descend 1 of page 2',\n * \t\t\t\t\t\t\tid: 'p21',\n * \t\t\t\t\t\t\tchildren: [\n * \t\t\t\t\t\t\t\t{\n * \t\t\t\t\t\t\t\t\tname: 'Descend 1 of Descend 1 of page 2',\n * \t\t\t\t\t\t\t\t\tid: 'p211',\n * \t\t\t\t\t\t\t\t},\n * \t\t\t\t\t\t\t],\n * \t\t\t\t\t\t},\n * \t\t\t\t\t],\n * \t\t\t\t},\n * \t\t\t] }\n * \t\t/>\n * \t);\n * }\n * ```\n */\n\nexport function TreeSelect( props: TreeSelectProps ) {\n\tconst {\n\t\tlabel,\n\t\tnoOptionLabel,\n\t\tonChange,\n\t\tselectedId,\n\t\ttree = [],\n\t\t...restProps\n\t} = useDeprecated36pxDefaultSizeProp( props );\n\n\tconst options = useMemo( () => {\n\t\treturn [\n\t\t\tnoOptionLabel && { value: '', label: noOptionLabel },\n\t\t\t...getSelectOptions( tree ),\n\t\t].filter( < T, >( option: T ): option is Truthy< T > => !! option );\n\t}, [ noOptionLabel, tree ] );\n\n\treturn (\n\t\t<SelectControl\n\t\t\t{ ...{ label, options, onChange } }\n\t\t\tvalue={ selectedId }\n\t\t\t{ ...restProps }\n\t\t/>\n\t);\n}\n\nexport default TreeSelect;\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,cAAc,QAAQ,0BAA0B;;AAEzD;AACA;AACA;AACA,SAASC,aAAa,QAAQ,mBAAmB;AAEjD,SAASC,gCAAgC,QAAQ,+BAA+B;AAEhF,SAASC,gBAAgBA,CACxBC,IAAY,EACZC,KAAK,GAAG,CAAC,EACqC;EAC9C,OAAOD,IAAI,CAACE,OAAO,CAAIC,QAAQ,IAAM,CACpC;IACCC,KAAK,EAAED,QAAQ,CAACE,EAAE;IAClBC,KAAK,EACJ,QAAQ,CAACC,MAAM,CAAEN,KAAK,GAAG,CAAE,CAAC,GAAGL,cAAc,CAAEO,QAAQ,CAACK,IAAK;EAC/D,CAAC,EACD,GAAGT,gBAAgB,CAAEI,QAAQ,CAACM,QAAQ,IAAI,EAAE,EAAER,KAAK,GAAG,CAAE,CAAC,CACxD,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,SAASS,UAAUA,CAAEC,KAAsB,EAAG;EACpD,MAAM;IACLL,KAAK;IACLM,aAAa;IACbC,QAAQ;IACRC,UAAU;IACVd,IAAI,GAAG,EAAE;IACT,GAAGe;EACJ,CAAC,GAAGjB,gCAAgC,CAAEa,KAAM,CAAC;EAE7C,MAAMK,OAAO,GAAGrB,OAAO,CAAE,MAAM;IAC9B,OAAO,CACNiB,aAAa,IAAI;MAAER,KAAK,EAAE,EAAE;MAAEE,KAAK,EAAEM;IAAc,CAAC,EACpD,GAAGb,gBAAgB,CAAEC,IAAK,CAAC,CAC3B,CAACiB,MAAM,CAAUC,MAAS,IAA6B,CAAC,CAAEA,MAAO,CAAC;EACpE,CAAC,EAAE,CAAEN,aAAa,EAAEZ,IAAI,CAAG,CAAC;EAE5B,OACCmB,aAAA,CAACtB,aAAa;IACNS,KAAK;IAAEU,OAAO;IAAEH,QAAQ;IAC/BT,KAAK,EAAGU,UAAY;IAAA,GACfC;EAAS,CACd,CAAC;AAEJ;AAEA,eAAeL,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["useMemo","decodeEntities","SelectControl","useDeprecated36pxDefaultSizeProp","jsx","_jsx","getSelectOptions","tree","level","flatMap","treeNode","value","id","label","repeat","name","children","TreeSelect","props","noOptionLabel","onChange","selectedId","restProps","options","filter","option"],"sources":["@wordpress/components/src/tree-select/index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useMemo } from '@wordpress/element';\nimport { decodeEntities } from '@wordpress/html-entities';\n\n/**\n * Internal dependencies\n */\nimport { SelectControl } from '../select-control';\nimport type { TreeSelectProps, Tree, Truthy } from './types';\nimport { useDeprecated36pxDefaultSizeProp } from '../utils/use-deprecated-props';\n\nfunction getSelectOptions(\n\ttree: Tree[],\n\tlevel = 0\n): NonNullable< TreeSelectProps[ 'options' ] > {\n\treturn tree.flatMap( ( treeNode ) => [\n\t\t{\n\t\t\tvalue: treeNode.id,\n\t\t\tlabel:\n\t\t\t\t'\\u00A0'.repeat( level * 3 ) + decodeEntities( treeNode.name ),\n\t\t},\n\t\t...getSelectOptions( treeNode.children || [], level + 1 ),\n\t] );\n}\n\n/**\n * TreeSelect component is used to generate select input fields.\n *\n * ```jsx\n * import { TreeSelect } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const MyTreeSelect = () => {\n * \tconst [ page, setPage ] = useState( 'p21' );\n *\n * \treturn (\n * \t\t<TreeSelect\n * \t\t\tlabel=\"Parent page\"\n * \t\t\tnoOptionLabel=\"No parent page\"\n * \t\t\tonChange={ ( newPage ) => setPage( newPage ) }\n * \t\t\tselectedId={ page }\n * \t\t\ttree={ [\n * \t\t\t\t{\n * \t\t\t\t\tname: 'Page 1',\n * \t\t\t\t\tid: 'p1',\n * \t\t\t\t\tchildren: [\n * \t\t\t\t\t\t{ name: 'Descend 1 of page 1', id: 'p11' },\n * \t\t\t\t\t\t{ name: 'Descend 2 of page 1', id: 'p12' },\n * \t\t\t\t\t],\n * \t\t\t\t},\n * \t\t\t\t{\n * \t\t\t\t\tname: 'Page 2',\n * \t\t\t\t\tid: 'p2',\n * \t\t\t\t\tchildren: [\n * \t\t\t\t\t\t{\n * \t\t\t\t\t\t\tname: 'Descend 1 of page 2',\n * \t\t\t\t\t\t\tid: 'p21',\n * \t\t\t\t\t\t\tchildren: [\n * \t\t\t\t\t\t\t\t{\n * \t\t\t\t\t\t\t\t\tname: 'Descend 1 of Descend 1 of page 2',\n * \t\t\t\t\t\t\t\t\tid: 'p211',\n * \t\t\t\t\t\t\t\t},\n * \t\t\t\t\t\t\t],\n * \t\t\t\t\t\t},\n * \t\t\t\t\t],\n * \t\t\t\t},\n * \t\t\t] }\n * \t\t/>\n * \t);\n * }\n * ```\n */\n\nexport function TreeSelect( props: TreeSelectProps ) {\n\tconst {\n\t\tlabel,\n\t\tnoOptionLabel,\n\t\tonChange,\n\t\tselectedId,\n\t\ttree = [],\n\t\t...restProps\n\t} = useDeprecated36pxDefaultSizeProp( props );\n\n\tconst options = useMemo( () => {\n\t\treturn [\n\t\t\tnoOptionLabel && { value: '', label: noOptionLabel },\n\t\t\t...getSelectOptions( tree ),\n\t\t].filter( < T, >( option: T ): option is Truthy< T > => !! option );\n\t}, [ noOptionLabel, tree ] );\n\n\treturn (\n\t\t<SelectControl\n\t\t\t{ ...{ label, options, onChange } }\n\t\t\tvalue={ selectedId }\n\t\t\t{ ...restProps }\n\t\t/>\n\t);\n}\n\nexport default TreeSelect;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,cAAc,QAAQ,0BAA0B;;AAEzD;AACA;AACA;AACA,SAASC,aAAa,QAAQ,mBAAmB;AAEjD,SAASC,gCAAgC,QAAQ,+BAA+B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEjF,SAASC,gBAAgBA,CACxBC,IAAY,EACZC,KAAK,GAAG,CAAC,EACqC;EAC9C,OAAOD,IAAI,CAACE,OAAO,CAAIC,QAAQ,IAAM,CACpC;IACCC,KAAK,EAAED,QAAQ,CAACE,EAAE;IAClBC,KAAK,EACJ,QAAQ,CAACC,MAAM,CAAEN,KAAK,GAAG,CAAE,CAAC,GAAGP,cAAc,CAAES,QAAQ,CAACK,IAAK;EAC/D,CAAC,EACD,GAAGT,gBAAgB,CAAEI,QAAQ,CAACM,QAAQ,IAAI,EAAE,EAAER,KAAK,GAAG,CAAE,CAAC,CACxD,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,SAASS,UAAUA,CAAEC,KAAsB,EAAG;EACpD,MAAM;IACLL,KAAK;IACLM,aAAa;IACbC,QAAQ;IACRC,UAAU;IACVd,IAAI,GAAG,EAAE;IACT,GAAGe;EACJ,CAAC,GAAGnB,gCAAgC,CAAEe,KAAM,CAAC;EAE7C,MAAMK,OAAO,GAAGvB,OAAO,CAAE,MAAM;IAC9B,OAAO,CACNmB,aAAa,IAAI;MAAER,KAAK,EAAE,EAAE;MAAEE,KAAK,EAAEM;IAAc,CAAC,EACpD,GAAGb,gBAAgB,CAAEC,IAAK,CAAC,CAC3B,CAACiB,MAAM,CAAUC,MAAS,IAA6B,CAAC,CAAEA,MAAO,CAAC;EACpE,CAAC,EAAE,CAAEN,aAAa,EAAEZ,IAAI,CAAG,CAAC;EAE5B,oBACCF,IAAA,CAACH,aAAa;IACNW,KAAK;IAAEU,OAAO;IAAEH,QAAQ;IAC/BT,KAAK,EAAGU,UAAY;IAAA,GACfC;EAAS,CACd,CAAC;AAEJ;AAEA,eAAeL,UAAU","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
@@ -10,9 +9,10 @@ import { createElement } from "react";
10
9
  import { contextConnect } from '../context';
11
10
  import { View } from '../view';
12
11
  import useTruncate from './hook';
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  function UnconnectedTruncate(props, forwardedRef) {
14
14
  const truncateProps = useTruncate(props);
15
- return createElement(View, {
15
+ return /*#__PURE__*/_jsx(View, {
16
16
  as: "span",
17
17
  ...truncateProps,
18
18
  ref: forwardedRef
@@ -1 +1 @@
1
- {"version":3,"names":["contextConnect","View","useTruncate","UnconnectedTruncate","props","forwardedRef","truncateProps","createElement","as","ref","Truncate"],"sources":["@wordpress/components/src/truncate/component.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../context';\nimport { contextConnect } from '../context';\nimport { View } from '../view';\nimport useTruncate from './hook';\nimport type { TruncateProps } from './types';\n\nfunction UnconnectedTruncate(\n\tprops: WordPressComponentProps< TruncateProps, 'span' >,\n\tforwardedRef: ForwardedRef< any >\n) {\n\tconst truncateProps = useTruncate( props );\n\n\treturn <View as=\"span\" { ...truncateProps } ref={ forwardedRef } />;\n}\n\n/**\n * `Truncate` is a typography primitive that trims text content.\n * For almost all cases, it is recommended that `Text`, `Heading`, or\n * `Subheading` is used to render text content. However,`Truncate` is\n * available for custom implementations.\n *\n * ```jsx\n * import { __experimentalTruncate as Truncate } from `@wordpress/components`;\n *\n * function Example() {\n * \treturn (\n * \t\t<Truncate>\n * \t\t\tLorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex\n * \t\t\tneque, vulputate a diam et, luctus convallis lacus. Vestibulum ac\n * \t\t\tmollis mi. Morbi id elementum massa.\n * \t\t</Truncate>\n * \t);\n * }\n * ```\n */\nexport const Truncate = contextConnect( UnconnectedTruncate, 'Truncate' );\n\nexport default Truncate;\n"],"mappings":";AAAA;AACA;AACA;;AAGA;AACA;AACA;;AAEA,SAASA,cAAc,QAAQ,YAAY;AAC3C,SAASC,IAAI,QAAQ,SAAS;AAC9B,OAAOC,WAAW,MAAM,QAAQ;AAGhC,SAASC,mBAAmBA,CAC3BC,KAAuD,EACvDC,YAAiC,EAChC;EACD,MAAMC,aAAa,GAAGJ,WAAW,CAAEE,KAAM,CAAC;EAE1C,OAAOG,aAAA,CAACN,IAAI;IAACO,EAAE,EAAC,MAAM;IAAA,GAAMF,aAAa;IAAGG,GAAG,EAAGJ;EAAc,CAAE,CAAC;AACpE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMK,QAAQ,GAAGV,cAAc,CAAEG,mBAAmB,EAAE,UAAW,CAAC;AAEzE,eAAeO,QAAQ","ignoreList":[]}
1
+ {"version":3,"names":["contextConnect","View","useTruncate","jsx","_jsx","UnconnectedTruncate","props","forwardedRef","truncateProps","as","ref","Truncate"],"sources":["@wordpress/components/src/truncate/component.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../context';\nimport { contextConnect } from '../context';\nimport { View } from '../view';\nimport useTruncate from './hook';\nimport type { TruncateProps } from './types';\n\nfunction UnconnectedTruncate(\n\tprops: WordPressComponentProps< TruncateProps, 'span' >,\n\tforwardedRef: ForwardedRef< any >\n) {\n\tconst truncateProps = useTruncate( props );\n\n\treturn <View as=\"span\" { ...truncateProps } ref={ forwardedRef } />;\n}\n\n/**\n * `Truncate` is a typography primitive that trims text content.\n * For almost all cases, it is recommended that `Text`, `Heading`, or\n * `Subheading` is used to render text content. However,`Truncate` is\n * available for custom implementations.\n *\n * ```jsx\n * import { __experimentalTruncate as Truncate } from `@wordpress/components`;\n *\n * function Example() {\n * \treturn (\n * \t\t<Truncate>\n * \t\t\tLorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex\n * \t\t\tneque, vulputate a diam et, luctus convallis lacus. Vestibulum ac\n * \t\t\tmollis mi. Morbi id elementum massa.\n * \t\t</Truncate>\n * \t);\n * }\n * ```\n */\nexport const Truncate = contextConnect( UnconnectedTruncate, 'Truncate' );\n\nexport default Truncate;\n"],"mappings":"AAAA;AACA;AACA;;AAGA;AACA;AACA;;AAEA,SAASA,cAAc,QAAQ,YAAY;AAC3C,SAASC,IAAI,QAAQ,SAAS;AAC9B,OAAOC,WAAW,MAAM,QAAQ;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGjC,SAASC,mBAAmBA,CAC3BC,KAAuD,EACvDC,YAAiC,EAChC;EACD,MAAMC,aAAa,GAAGN,WAAW,CAAEI,KAAM,CAAC;EAE1C,oBAAOF,IAAA,CAACH,IAAI;IAACQ,EAAE,EAAC,MAAM;IAAA,GAAMD,aAAa;IAAGE,GAAG,EAAGH;EAAc,CAAE,CAAC;AACpE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMI,QAAQ,GAAGX,cAAc,CAAEK,mBAAmB,EAAE,UAAW,CAAC;AAEzE,eAAeM,QAAQ","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
@@ -22,6 +21,7 @@ import { CSS_UNITS, getParsedQuantityAndUnit, getUnitsWithCurrentUnit, getValidP
22
21
  import { useControlledState } from '../utils/hooks';
23
22
  import { escapeRegExp } from '../utils/strings';
24
23
  import { useDeprecated36pxDefaultSizeProp } from '../utils/use-deprecated-props';
24
+ import { jsx as _jsx } from "react/jsx-runtime";
25
25
  function UnforwardedUnitControl(unitControlProps, forwardedRef) {
26
26
  const {
27
27
  __unstableStateReducer,
@@ -121,7 +121,7 @@ function UnforwardedUnitControl(unitControlProps, forwardedRef) {
121
121
  };
122
122
  }
123
123
  const refInputSuffix = useRef(null);
124
- const inputSuffix = !disableUnits ? createElement(UnitSelectControl, {
124
+ const inputSuffix = !disableUnits ? /*#__PURE__*/_jsx(UnitSelectControl, {
125
125
  ref: refInputSuffix,
126
126
  "aria-label": __('Select unit'),
127
127
  disabled: disabled,
@@ -144,7 +144,7 @@ function UnforwardedUnitControl(unitControlProps, forwardedRef) {
144
144
  const activeUnit = units.find(option => option.value === unit);
145
145
  step = (_activeUnit$step = activeUnit?.step) !== null && _activeUnit$step !== void 0 ? _activeUnit$step : 1;
146
146
  }
147
- return createElement(ValueInput, {
147
+ return /*#__PURE__*/_jsx(ValueInput, {
148
148
  ...props,
149
149
  autoComplete: autoComplete,
150
150
  className: classes,