@wordpress/components 27.5.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 (2260) hide show
  1. package/CHANGELOG.md +54 -5
  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 +14 -13
  5. package/build/alignment-matrix-control/icon.js.map +1 -1
  6. package/build/alignment-matrix-control/index.js +20 -20
  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 +32 -26
  11. package/build/angle-picker-control/index.js.map +1 -1
  12. package/build/animate/index.js +4 -4
  13. package/build/animate/index.js.map +1 -1
  14. package/build/autocomplete/autocompleter-ui.js +57 -31
  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/hooks.js +1 -4
  25. package/build/base-control/hooks.js.map +1 -1
  26. package/build/base-control/index.js +34 -25
  27. package/build/base-control/index.js.map +1 -1
  28. package/build/base-control/index.native.js +9 -4
  29. package/build/base-control/index.native.js.map +1 -1
  30. package/build/base-control/types.js.map +1 -1
  31. package/build/border-box-control/border-box-control/component.js +49 -44
  32. package/build/border-box-control/border-box-control/component.js.map +1 -1
  33. package/build/border-box-control/border-box-control-linked-button/component.js +15 -13
  34. package/build/border-box-control/border-box-control-linked-button/component.js.map +1 -1
  35. package/build/border-box-control/border-box-control-split-controls/component.js +39 -38
  36. package/build/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  37. package/build/border-box-control/border-box-control-visualizer/component.js +2 -2
  38. package/build/border-box-control/border-box-control-visualizer/component.js.map +1 -1
  39. package/build/border-control/border-control/component.js +56 -52
  40. package/build/border-control/border-control/component.js.map +1 -1
  41. package/build/border-control/border-control-dropdown/component.js +55 -43
  42. package/build/border-control/border-control-dropdown/component.js.map +1 -1
  43. package/build/border-control/border-control-style-picker/component.js +9 -9
  44. package/build/border-control/border-control-style-picker/component.js.map +1 -1
  45. package/build/border-control/types.js.map +1 -1
  46. package/build/box-control/all-input-control.js +30 -28
  47. package/build/box-control/all-input-control.js.map +1 -1
  48. package/build/box-control/axial-input-controls.js +45 -41
  49. package/build/box-control/axial-input-controls.js.map +1 -1
  50. package/build/box-control/icon.js +15 -12
  51. package/build/box-control/icon.js.map +1 -1
  52. package/build/box-control/index.js +31 -24
  53. package/build/box-control/index.js.map +1 -1
  54. package/build/box-control/input-controls.js +46 -43
  55. package/build/box-control/input-controls.js.map +1 -1
  56. package/build/box-control/linked-button.js +12 -11
  57. package/build/box-control/linked-button.js.map +1 -1
  58. package/build/button/deprecated.js +2 -2
  59. package/build/button/deprecated.js.map +1 -1
  60. package/build/button/index.js +36 -21
  61. package/build/button/index.js.map +1 -1
  62. package/build/button/index.native.js +27 -21
  63. package/build/button/index.native.js.map +1 -1
  64. package/build/button-group/index.js +4 -4
  65. package/build/button-group/index.js.map +1 -1
  66. package/build/card/card/component.js +22 -19
  67. package/build/card/card/component.js.map +1 -1
  68. package/build/card/card-body/component.js +3 -3
  69. package/build/card/card-body/component.js.map +1 -1
  70. package/build/card/card-divider/component.js +2 -2
  71. package/build/card/card-divider/component.js.map +1 -1
  72. package/build/card/card-footer/component.js +2 -2
  73. package/build/card/card-footer/component.js.map +1 -1
  74. package/build/card/card-header/component.js +2 -2
  75. package/build/card/card-header/component.js.map +1 -1
  76. package/build/card/card-media/component.js +2 -2
  77. package/build/card/card-media/component.js.map +1 -1
  78. package/build/checkbox-control/index.js +40 -35
  79. package/build/checkbox-control/index.js.map +1 -1
  80. package/build/circular-option-picker/circular-option-picker-actions.js +13 -11
  81. package/build/circular-option-picker/circular-option-picker-actions.js.map +1 -1
  82. package/build/circular-option-picker/circular-option-picker-option-group.js +6 -5
  83. package/build/circular-option-picker/circular-option-picker-option-group.js.map +1 -1
  84. package/build/circular-option-picker/circular-option-picker-option.js +17 -15
  85. package/build/circular-option-picker/circular-option-picker-option.js.map +1 -1
  86. package/build/circular-option-picker/circular-option-picker.js +38 -32
  87. package/build/circular-option-picker/circular-option-picker.js.map +1 -1
  88. package/build/clipboard-button/index.js +7 -6
  89. package/build/clipboard-button/index.js.map +1 -1
  90. package/build/color-control/index.native.js +2 -2
  91. package/build/color-control/index.native.js.map +1 -1
  92. package/build/color-indicator/index.js +4 -4
  93. package/build/color-indicator/index.js.map +1 -1
  94. package/build/color-indicator/index.native.js +39 -36
  95. package/build/color-indicator/index.native.js.map +1 -1
  96. package/build/color-palette/index.js +91 -83
  97. package/build/color-palette/index.js.map +1 -1
  98. package/build/color-palette/index.native.js +75 -65
  99. package/build/color-palette/index.native.js.map +1 -1
  100. package/build/color-picker/color-copy-button.js +10 -9
  101. package/build/color-picker/color-copy-button.js.map +1 -1
  102. package/build/color-picker/color-input.js +4 -4
  103. package/build/color-picker/color-input.js.map +1 -1
  104. package/build/color-picker/component.js +36 -30
  105. package/build/color-picker/component.js.map +1 -1
  106. package/build/color-picker/hex-input.js +6 -5
  107. package/build/color-picker/hex-input.js.map +1 -1
  108. package/build/color-picker/hsl-input.js +48 -46
  109. package/build/color-picker/hsl-input.js.map +1 -1
  110. package/build/color-picker/hsv-color-picker.native.js +32 -31
  111. package/build/color-picker/hsv-color-picker.native.js.map +1 -1
  112. package/build/color-picker/hue-picker.native.js +33 -31
  113. package/build/color-picker/hue-picker.native.js.map +1 -1
  114. package/build/color-picker/index.native.js +67 -54
  115. package/build/color-picker/index.native.js.map +1 -1
  116. package/build/color-picker/input-with-slider.js +33 -31
  117. package/build/color-picker/input-with-slider.js.map +1 -1
  118. package/build/color-picker/legacy-adapter.js +2 -2
  119. package/build/color-picker/legacy-adapter.js.map +1 -1
  120. package/build/color-picker/picker.js +2 -2
  121. package/build/color-picker/picker.js.map +1 -1
  122. package/build/color-picker/rgb-input.js +52 -50
  123. package/build/color-picker/rgb-input.js.map +1 -1
  124. package/build/color-picker/saturation-picker.native.js +44 -41
  125. package/build/color-picker/saturation-picker.native.js.map +1 -1
  126. package/build/combobox-control/index.js +73 -53
  127. package/build/combobox-control/index.js.map +1 -1
  128. package/build/combobox-control/types.js.map +1 -1
  129. package/build/composite/legacy/index.js +3 -3
  130. package/build/composite/legacy/index.js.map +1 -1
  131. package/build/confirm-dialog/component.js +35 -26
  132. package/build/confirm-dialog/component.js.map +1 -1
  133. package/build/context/context-connect.js +1 -1
  134. package/build/context/context-connect.js.map +1 -1
  135. package/build/context/context-system-provider.js +6 -5
  136. package/build/context/context-system-provider.js.map +1 -1
  137. package/build/context/use-context-system.js +1 -1
  138. package/build/context/use-context-system.js.map +1 -1
  139. package/build/css.d.js +6 -0
  140. package/build/css.d.js.map +1 -0
  141. package/build/custom-gradient-picker/gradient-bar/control-points.js +116 -109
  142. package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  143. package/build/custom-gradient-picker/gradient-bar/index.js +51 -49
  144. package/build/custom-gradient-picker/gradient-bar/index.js.map +1 -1
  145. package/build/custom-gradient-picker/index.js +31 -25
  146. package/build/custom-gradient-picker/index.js.map +1 -1
  147. package/build/custom-gradient-picker/index.native.js +23 -17
  148. package/build/custom-gradient-picker/index.native.js.map +1 -1
  149. package/build/custom-select-control/index.js +73 -60
  150. package/build/custom-select-control/index.js.map +1 -1
  151. package/build/custom-select-control-v2/custom-select.js +48 -35
  152. package/build/custom-select-control-v2/custom-select.js.map +1 -1
  153. package/build/custom-select-control-v2/default-component/index.js +2 -2
  154. package/build/custom-select-control-v2/default-component/index.js.map +1 -1
  155. package/build/custom-select-control-v2/item.js +9 -6
  156. package/build/custom-select-control-v2/item.js.map +1 -1
  157. package/build/custom-select-control-v2/legacy-component/index.js +32 -44
  158. package/build/custom-select-control-v2/legacy-component/index.js.map +1 -1
  159. package/build/custom-select-control-v2/styles.js +9 -9
  160. package/build/custom-select-control-v2/styles.js.map +1 -1
  161. package/build/custom-select-control-v2/types.js.map +1 -1
  162. package/build/dashicon/index.js +2 -2
  163. package/build/dashicon/index.js.map +1 -1
  164. package/build/dashicon/index.native.js +3 -3
  165. package/build/dashicon/index.native.js.map +1 -1
  166. package/build/date-time/date/index.js +92 -85
  167. package/build/date-time/date/index.js.map +1 -1
  168. package/build/date-time/date-time/index.js +18 -15
  169. package/build/date-time/date-time/index.js.map +1 -1
  170. package/build/date-time/time/index.js +162 -135
  171. package/build/date-time/time/index.js.map +1 -1
  172. package/build/date-time/time/timezone.js +12 -10
  173. package/build/date-time/time/timezone.js.map +1 -1
  174. package/build/dimension-control/index.js +9 -7
  175. package/build/dimension-control/index.js.map +1 -1
  176. package/build/disabled/index.js +11 -9
  177. package/build/disabled/index.js.map +1 -1
  178. package/build/disabled/index.native.js +5 -4
  179. package/build/disabled/index.native.js.map +1 -1
  180. package/build/disclosure/index.js +5 -4
  181. package/build/disclosure/index.js.map +1 -1
  182. package/build/divider/component.js +3 -3
  183. package/build/divider/component.js.map +1 -1
  184. package/build/draggable/index.js +14 -11
  185. package/build/draggable/index.js.map +1 -1
  186. package/build/draggable/index.native.js +15 -11
  187. package/build/draggable/index.native.js.map +1 -1
  188. package/build/drop-zone/index.js +25 -19
  189. package/build/drop-zone/index.js.map +1 -1
  190. package/build/dropdown/dropdown-content-wrapper.js +2 -2
  191. package/build/dropdown/dropdown-content-wrapper.js.map +1 -1
  192. package/build/dropdown/index.js +22 -20
  193. package/build/dropdown/index.js.map +1 -1
  194. package/build/dropdown/index.native.js +4 -2
  195. package/build/dropdown/index.native.js.map +1 -1
  196. package/build/dropdown-menu/index.js +33 -31
  197. package/build/dropdown-menu/index.js.map +1 -1
  198. package/build/dropdown-menu/index.native.js +36 -33
  199. package/build/dropdown-menu/index.native.js.map +1 -1
  200. package/build/dropdown-menu-v2/index.js +108 -76
  201. package/build/dropdown-menu-v2/index.js.map +1 -1
  202. package/build/duotone-picker/color-list-picker/index.js +52 -46
  203. package/build/duotone-picker/color-list-picker/index.js.map +1 -1
  204. package/build/duotone-picker/custom-duotone-bar.js +2 -2
  205. package/build/duotone-picker/custom-duotone-bar.js.map +1 -1
  206. package/build/duotone-picker/duotone-picker.js +40 -38
  207. package/build/duotone-picker/duotone-picker.js.map +1 -1
  208. package/build/duotone-picker/duotone-swatch.js +3 -3
  209. package/build/duotone-picker/duotone-swatch.js.map +1 -1
  210. package/build/elevation/component.js +2 -2
  211. package/build/elevation/component.js.map +1 -1
  212. package/build/external-link/index.js +18 -13
  213. package/build/external-link/index.js.map +1 -1
  214. package/build/external-link/index.native.js +9 -6
  215. package/build/external-link/index.native.js.map +1 -1
  216. package/build/flex/flex/component.js +9 -7
  217. package/build/flex/flex/component.js.map +1 -1
  218. package/build/flex/flex-block/component.js +2 -2
  219. package/build/flex/flex-block/component.js.map +1 -1
  220. package/build/flex/flex-item/component.js +2 -2
  221. package/build/flex/flex-item/component.js.map +1 -1
  222. package/build/focal-point-picker/controls.js +20 -19
  223. package/build/focal-point-picker/controls.js.map +1 -1
  224. package/build/focal-point-picker/focal-point.js +3 -6
  225. package/build/focal-point-picker/focal-point.js.map +1 -1
  226. package/build/focal-point-picker/focal-point.native.js +11 -10
  227. package/build/focal-point-picker/focal-point.native.js.map +1 -1
  228. package/build/focal-point-picker/grid.js +21 -20
  229. package/build/focal-point-picker/grid.js.map +1 -1
  230. package/build/focal-point-picker/index.js +44 -41
  231. package/build/focal-point-picker/index.js.map +1 -1
  232. package/build/focal-point-picker/index.native.js +66 -62
  233. package/build/focal-point-picker/index.native.js.map +1 -1
  234. package/build/focal-point-picker/media.js +4 -4
  235. package/build/focal-point-picker/media.js.map +1 -1
  236. package/build/focal-point-picker/styles/focal-point-style.js +2 -7
  237. package/build/focal-point-picker/styles/focal-point-style.js.map +1 -1
  238. package/build/focal-point-picker/tooltip/index.native.js +32 -27
  239. package/build/focal-point-picker/tooltip/index.native.js.map +1 -1
  240. package/build/focusable-iframe/index.js +2 -2
  241. package/build/focusable-iframe/index.js.map +1 -1
  242. package/build/font-size-picker/font-size-picker-select.js +2 -2
  243. package/build/font-size-picker/font-size-picker-select.js.map +1 -1
  244. package/build/font-size-picker/font-size-picker-toggle-group.js +10 -10
  245. package/build/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  246. package/build/font-size-picker/index.js +119 -103
  247. package/build/font-size-picker/index.js.map +1 -1
  248. package/build/font-size-picker/index.native.js +77 -64
  249. package/build/font-size-picker/index.native.js.map +1 -1
  250. package/build/footer-message-control/index.native.js +2 -2
  251. package/build/footer-message-control/index.native.js.map +1 -1
  252. package/build/form-file-upload/index.js +20 -18
  253. package/build/form-file-upload/index.js.map +1 -1
  254. package/build/form-toggle/index.js +20 -19
  255. package/build/form-toggle/index.js.map +1 -1
  256. package/build/form-token-field/index.js +61 -57
  257. package/build/form-token-field/index.js.map +1 -1
  258. package/build/form-token-field/suggestions-list.js +42 -35
  259. package/build/form-token-field/suggestions-list.js.map +1 -1
  260. package/build/form-token-field/token-input.js +4 -4
  261. package/build/form-token-field/token-input.js.map +1 -1
  262. package/build/form-token-field/token.js +24 -20
  263. package/build/form-token-field/token.js.map +1 -1
  264. package/build/gradient-picker/index.js +50 -47
  265. package/build/gradient-picker/index.js.map +1 -1
  266. package/build/grid/component.js +2 -2
  267. package/build/grid/component.js.map +1 -1
  268. package/build/guide/icons.js +9 -8
  269. package/build/guide/icons.js.map +1 -1
  270. package/build/guide/index.js +35 -28
  271. package/build/guide/index.js.map +1 -1
  272. package/build/guide/page-control.js +16 -17
  273. package/build/guide/page-control.js.map +1 -1
  274. package/build/guide/page.js +2 -2
  275. package/build/guide/page.js.map +1 -1
  276. package/build/h-stack/component.js +2 -2
  277. package/build/h-stack/component.js.map +1 -1
  278. package/build/h-stack/hook.js +3 -4
  279. package/build/h-stack/hook.js.map +1 -1
  280. package/build/heading/component.js +2 -2
  281. package/build/heading/component.js.map +1 -1
  282. package/build/higher-order/navigate-regions/index.js +7 -6
  283. package/build/higher-order/navigate-regions/index.js.map +1 -1
  284. package/build/higher-order/with-constrained-tabbing/index.js +8 -8
  285. package/build/higher-order/with-constrained-tabbing/index.js.map +1 -1
  286. package/build/higher-order/with-fallback-styles/index.js +6 -5
  287. package/build/higher-order/with-fallback-styles/index.js.map +1 -1
  288. package/build/higher-order/with-filters/index.js +2 -2
  289. package/build/higher-order/with-filters/index.js.map +1 -1
  290. package/build/higher-order/with-focus-outside/index.js +8 -7
  291. package/build/higher-order/with-focus-outside/index.js.map +1 -1
  292. package/build/higher-order/with-focus-outside/index.native.js +8 -7
  293. package/build/higher-order/with-focus-outside/index.native.js.map +1 -1
  294. package/build/higher-order/with-focus-return/index.js +8 -8
  295. package/build/higher-order/with-focus-return/index.js.map +1 -1
  296. package/build/higher-order/with-notices/index.js +4 -4
  297. package/build/higher-order/with-notices/index.js.map +1 -1
  298. package/build/higher-order/with-spoken-messages/index.js +2 -2
  299. package/build/higher-order/with-spoken-messages/index.js.map +1 -1
  300. package/build/icon/index.js +3 -2
  301. package/build/icon/index.js.map +1 -1
  302. package/build/index.js +7 -0
  303. package/build/index.js.map +1 -1
  304. package/build/index.native.js +0 -66
  305. package/build/index.native.js.map +1 -1
  306. package/build/input-control/backdrop.js +2 -2
  307. package/build/input-control/backdrop.js.map +1 -1
  308. package/build/input-control/index.js +39 -40
  309. package/build/input-control/index.js.map +1 -1
  310. package/build/input-control/input-base.js +36 -25
  311. package/build/input-control/input-base.js.map +1 -1
  312. package/build/input-control/input-field.js +4 -4
  313. package/build/input-control/input-field.js.map +1 -1
  314. package/build/input-control/input-prefix-wrapper.js +2 -2
  315. package/build/input-control/input-prefix-wrapper.js.map +1 -1
  316. package/build/input-control/input-suffix-wrapper.js +2 -2
  317. package/build/input-control/input-suffix-wrapper.js.map +1 -1
  318. package/build/input-control/label.js +12 -8
  319. package/build/input-control/label.js.map +1 -1
  320. package/build/input-control/styles/input-control-styles.js +27 -27
  321. package/build/input-control/styles/input-control-styles.js.map +1 -1
  322. package/build/isolated-event-container/index.js +2 -2
  323. package/build/isolated-event-container/index.js.map +1 -1
  324. package/build/item-group/item/component.js +8 -7
  325. package/build/item-group/item/component.js.map +1 -1
  326. package/build/item-group/item-group/component.js +8 -7
  327. package/build/item-group/item-group/component.js.map +1 -1
  328. package/build/keyboard-shortcuts/index.js +10 -8
  329. package/build/keyboard-shortcuts/index.js.map +1 -1
  330. package/build/menu-group/index.js +16 -13
  331. package/build/menu-group/index.js.map +1 -1
  332. package/build/menu-item/index.js +26 -21
  333. package/build/menu-item/index.js.map +1 -1
  334. package/build/menu-items-choice/index.js +24 -22
  335. package/build/menu-items-choice/index.js.map +1 -1
  336. package/build/mobile/autocompletion-items.native.js +3 -3
  337. package/build/mobile/autocompletion-items.native.js.map +1 -1
  338. package/build/mobile/badge/index.native.js +10 -6
  339. package/build/mobile/badge/index.native.js.map +1 -1
  340. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +23 -18
  341. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
  342. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +21 -17
  343. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
  344. package/build/mobile/bottom-sheet/button.native.js +17 -14
  345. package/build/mobile/bottom-sheet/button.native.js.map +1 -1
  346. package/build/mobile/bottom-sheet/cell.native.js +69 -53
  347. package/build/mobile/bottom-sheet/cell.native.js.map +1 -1
  348. package/build/mobile/bottom-sheet/chevron-back.native.js +7 -6
  349. package/build/mobile/bottom-sheet/chevron-back.native.js.map +1 -1
  350. package/build/mobile/bottom-sheet/color-cell.native.js +12 -11
  351. package/build/mobile/bottom-sheet/color-cell.native.js.map +1 -1
  352. package/build/mobile/bottom-sheet/cycle-picker-cell.native.js +2 -2
  353. package/build/mobile/bottom-sheet/cycle-picker-cell.native.js.map +1 -1
  354. package/build/mobile/bottom-sheet/footer-message-cell.native.js +4 -4
  355. package/build/mobile/bottom-sheet/footer-message-cell.native.js.map +1 -1
  356. package/build/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js +5 -4
  357. package/build/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js.map +1 -1
  358. package/build/mobile/bottom-sheet/index.native.js +72 -56
  359. package/build/mobile/bottom-sheet/index.native.js.map +1 -1
  360. package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js +6 -6
  361. package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
  362. package/build/mobile/bottom-sheet/link-cell.native.js +7 -6
  363. package/build/mobile/bottom-sheet/link-cell.native.js.map +1 -1
  364. package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js +19 -15
  365. package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
  366. package/build/mobile/bottom-sheet/lock-icon/index.native.js +2 -2
  367. package/build/mobile/bottom-sheet/lock-icon/index.native.js.map +1 -1
  368. package/build/mobile/bottom-sheet/nav-bar/action-button.native.js +9 -7
  369. package/build/mobile/bottom-sheet/nav-bar/action-button.native.js.map +1 -1
  370. package/build/mobile/bottom-sheet/nav-bar/apply-button.native.js +18 -15
  371. package/build/mobile/bottom-sheet/nav-bar/apply-button.native.js.map +1 -1
  372. package/build/mobile/bottom-sheet/nav-bar/back-button.native.js +19 -16
  373. package/build/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
  374. package/build/mobile/bottom-sheet/nav-bar/heading.native.js +5 -4
  375. package/build/mobile/bottom-sheet/nav-bar/heading.native.js.map +1 -1
  376. package/build/mobile/bottom-sheet/nav-bar/index.native.js +5 -4
  377. package/build/mobile/bottom-sheet/nav-bar/index.native.js.map +1 -1
  378. package/build/mobile/bottom-sheet/picker-cell.native.js +11 -10
  379. package/build/mobile/bottom-sheet/picker-cell.native.js.map +1 -1
  380. package/build/mobile/bottom-sheet/radio-cell.native.js +10 -9
  381. package/build/mobile/bottom-sheet/radio-cell.native.js.map +1 -1
  382. package/build/mobile/bottom-sheet/range-cell.native.js +50 -45
  383. package/build/mobile/bottom-sheet/range-cell.native.js.map +1 -1
  384. package/build/mobile/bottom-sheet/range-text-input.native.js +28 -25
  385. package/build/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
  386. package/build/mobile/bottom-sheet/ripple.native.js +12 -9
  387. package/build/mobile/bottom-sheet/ripple.native.js.map +1 -1
  388. package/build/mobile/bottom-sheet/stepper-cell/index.native.js +41 -35
  389. package/build/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
  390. package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js +33 -29
  391. package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js.map +1 -1
  392. package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js +33 -29
  393. package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js.map +1 -1
  394. package/build/mobile/bottom-sheet/sub-sheet/index.native.js +16 -5
  395. package/build/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
  396. package/build/mobile/bottom-sheet/switch-cell.native.js +11 -10
  397. package/build/mobile/bottom-sheet/switch-cell.native.js.map +1 -1
  398. package/build/mobile/bottom-sheet-select-control/index.native.js +40 -31
  399. package/build/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
  400. package/build/mobile/bottom-sheet-text-control/index.native.js +41 -29
  401. package/build/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
  402. package/build/mobile/color-settings/gradient-picker-screen.native.js +14 -8
  403. package/build/mobile/color-settings/gradient-picker-screen.native.js.map +1 -1
  404. package/build/mobile/color-settings/index.native.js +27 -21
  405. package/build/mobile/color-settings/index.native.js.map +1 -1
  406. package/build/mobile/color-settings/palette.screen.native.js +84 -64
  407. package/build/mobile/color-settings/palette.screen.native.js.map +1 -1
  408. package/build/mobile/color-settings/picker-screen.native.js +4 -4
  409. package/build/mobile/color-settings/picker-screen.native.js.map +1 -1
  410. package/build/mobile/color-settings/utils.native.js +1 -1
  411. package/build/mobile/color-settings/utils.native.js.map +1 -1
  412. package/build/mobile/cycle-select-control/index.native.js +2 -2
  413. package/build/mobile/cycle-select-control/index.native.js.map +1 -1
  414. package/build/mobile/dashicons/index.native.js +8 -7
  415. package/build/mobile/dashicons/index.native.js.map +1 -1
  416. package/build/mobile/focal-point-settings-panel/index.native.js +22 -16
  417. package/build/mobile/focal-point-settings-panel/index.native.js.map +1 -1
  418. package/build/mobile/gradient/index.native.js +37 -30
  419. package/build/mobile/gradient/index.native.js.map +1 -1
  420. package/build/mobile/gridicons/index.native.js +8 -7
  421. package/build/mobile/gridicons/index.native.js.map +1 -1
  422. package/build/mobile/html-text-input/index.native.js +36 -34
  423. package/build/mobile/html-text-input/index.native.js.map +1 -1
  424. package/build/mobile/image/icon-customize.native.js +8 -7
  425. package/build/mobile/image/icon-customize.native.js.map +1 -1
  426. package/build/mobile/image/icon-retry.native.js +11 -10
  427. package/build/mobile/image/icon-retry.native.js.map +1 -1
  428. package/build/mobile/image/image-editing-button.native.js +18 -15
  429. package/build/mobile/image/image-editing-button.native.js.map +1 -1
  430. package/build/mobile/image/index.native.js +83 -72
  431. package/build/mobile/image/index.native.js.map +1 -1
  432. package/build/mobile/keyboard-avoiding-view/index.ios.js +10 -8
  433. package/build/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
  434. package/build/mobile/keyboard-aware-flat-list/index.android.js +15 -14
  435. package/build/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
  436. package/build/mobile/keyboard-aware-flat-list/index.ios.js +16 -15
  437. package/build/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
  438. package/build/mobile/link-picker/index.native.js +55 -46
  439. package/build/mobile/link-picker/index.native.js.map +1 -1
  440. package/build/mobile/link-picker/link-picker-results.native.js +33 -29
  441. package/build/mobile/link-picker/link-picker-results.native.js.map +1 -1
  442. package/build/mobile/link-picker/link-picker-screen.native.js +2 -2
  443. package/build/mobile/link-picker/link-picker-screen.native.js.map +1 -1
  444. package/build/mobile/link-settings/index.native.js +58 -50
  445. package/build/mobile/link-settings/index.native.js.map +1 -1
  446. package/build/mobile/link-settings/link-rel.native.js +8 -7
  447. package/build/mobile/link-settings/link-rel.native.js.map +1 -1
  448. package/build/mobile/link-settings/link-settings-navigation.native.js +23 -19
  449. package/build/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
  450. package/build/mobile/link-settings/link-settings-screen.native.js +2 -2
  451. package/build/mobile/link-settings/link-settings-screen.native.js.map +1 -1
  452. package/build/mobile/media-edit/index.native.js +8 -3
  453. package/build/mobile/media-edit/index.native.js.map +1 -1
  454. package/build/mobile/picker/index.android.js +27 -24
  455. package/build/mobile/picker/index.android.js.map +1 -1
  456. package/build/mobile/picker/index.ios.js +4 -4
  457. package/build/mobile/picker/index.ios.js.map +1 -1
  458. package/build/mobile/segmented-control/index.native.js +49 -42
  459. package/build/mobile/segmented-control/index.native.js.map +1 -1
  460. package/build/mobile/utils/use-unit-converter-to-mobile.native.js +1 -10
  461. package/build/mobile/utils/use-unit-converter-to-mobile.native.js.map +1 -1
  462. package/build/modal/index.js +59 -48
  463. package/build/modal/index.js.map +1 -1
  464. package/build/navigable-container/container.js +6 -5
  465. package/build/navigable-container/container.js.map +1 -1
  466. package/build/navigable-container/menu.js +2 -2
  467. package/build/navigable-container/menu.js.map +1 -1
  468. package/build/navigable-container/tabbable.js +2 -2
  469. package/build/navigable-container/tabbable.js.map +1 -1
  470. package/build/navigation/back-button/index.js +9 -8
  471. package/build/navigation/back-button/index.js.map +1 -1
  472. package/build/navigation/group/index.js +23 -18
  473. package/build/navigation/group/index.js.map +1 -1
  474. package/build/navigation/index.js +15 -13
  475. package/build/navigation/index.js.map +1 -1
  476. package/build/navigation/item/base-content.js +11 -7
  477. package/build/navigation/item/base-content.js.map +1 -1
  478. package/build/navigation/item/base.js +7 -6
  479. package/build/navigation/item/base.js.map +1 -1
  480. package/build/navigation/item/index.js +19 -15
  481. package/build/navigation/item/index.js.map +1 -1
  482. package/build/navigation/menu/index.js +31 -25
  483. package/build/navigation/menu/index.js.map +1 -1
  484. package/build/navigation/menu/menu-title-search.js +14 -12
  485. package/build/navigation/menu/menu-title-search.js.map +1 -1
  486. package/build/navigation/menu/menu-title.js +35 -28
  487. package/build/navigation/menu/menu-title.js.map +1 -1
  488. package/build/navigation/menu/search-no-results-found.js +6 -2
  489. package/build/navigation/menu/search-no-results-found.js.map +1 -1
  490. package/build/navigator/navigator-back-button/component.js +2 -2
  491. package/build/navigator/navigator-back-button/component.js.map +1 -1
  492. package/build/navigator/navigator-button/component.js +2 -2
  493. package/build/navigator/navigator-button/component.js.map +1 -1
  494. package/build/navigator/navigator-provider/component.js +8 -6
  495. package/build/navigator/navigator-provider/component.js.map +1 -1
  496. package/build/navigator/navigator-screen/component.js +5 -4
  497. package/build/navigator/navigator-screen/component.js.map +1 -1
  498. package/build/navigator/navigator-to-parent-button/component.js +2 -2
  499. package/build/navigator/navigator-to-parent-button/component.js.map +1 -1
  500. package/build/notice/index.js +46 -39
  501. package/build/notice/index.js.map +1 -1
  502. package/build/notice/index.native.js +21 -15
  503. package/build/notice/index.native.js.map +1 -1
  504. package/build/notice/list.js +18 -16
  505. package/build/notice/list.js.map +1 -1
  506. package/build/notice/list.native.js +12 -10
  507. package/build/notice/list.native.js.map +1 -1
  508. package/build/number-control/index.js +26 -22
  509. package/build/number-control/index.js.map +1 -1
  510. package/build/palette-edit/index.js +228 -198
  511. package/build/palette-edit/index.js.map +1 -1
  512. package/build/palette-edit/styles.js +14 -15
  513. package/build/palette-edit/styles.js.map +1 -1
  514. package/build/panel/actions.native.js +9 -9
  515. package/build/panel/actions.native.js.map +1 -1
  516. package/build/panel/body.js +35 -31
  517. package/build/panel/body.js.map +1 -1
  518. package/build/panel/body.native.js +9 -7
  519. package/build/panel/body.native.js.map +1 -1
  520. package/build/panel/bottom-separator-cover.native.js +2 -2
  521. package/build/panel/bottom-separator-cover.native.js.map +1 -1
  522. package/build/panel/header.js +7 -4
  523. package/build/panel/header.js.map +1 -1
  524. package/build/panel/index.js +9 -8
  525. package/build/panel/index.js.map +1 -1
  526. package/build/panel/row.js +7 -6
  527. package/build/panel/row.js.map +1 -1
  528. package/build/placeholder/index.js +29 -23
  529. package/build/placeholder/index.js.map +1 -1
  530. package/build/popover/index.js +54 -44
  531. package/build/popover/index.js.map +1 -1
  532. package/build/private-apis.js +0 -2
  533. package/build/private-apis.js.map +1 -1
  534. package/build/progress-bar/index.js +32 -15
  535. package/build/progress-bar/index.js.map +1 -1
  536. package/build/progress-bar/styles.js +4 -4
  537. package/build/progress-bar/styles.js.map +1 -1
  538. package/build/query-controls/author-select.js +2 -2
  539. package/build/query-controls/author-select.js.map +1 -1
  540. package/build/query-controls/category-select.js +2 -2
  541. package/build/query-controls/category-select.js.map +1 -1
  542. package/build/query-controls/index.js +74 -78
  543. package/build/query-controls/index.js.map +1 -1
  544. package/build/query-controls/index.native.js +27 -24
  545. package/build/query-controls/index.native.js.map +1 -1
  546. package/build/radio-control/index.js +26 -23
  547. package/build/radio-control/index.js.map +1 -1
  548. package/build/radio-control/index.native.js +11 -10
  549. package/build/radio-control/index.native.js.map +1 -1
  550. package/build/radio-group/index.js +13 -10
  551. package/build/radio-group/index.js.map +1 -1
  552. package/build/radio-group/radio.js +6 -5
  553. package/build/radio-group/radio.js.map +1 -1
  554. package/build/range-control/index.js +103 -92
  555. package/build/range-control/index.js.map +1 -1
  556. package/build/range-control/index.native.js +3 -3
  557. package/build/range-control/index.native.js.map +1 -1
  558. package/build/range-control/input-range.js +2 -2
  559. package/build/range-control/input-range.js.map +1 -1
  560. package/build/range-control/mark.js +19 -16
  561. package/build/range-control/mark.js.map +1 -1
  562. package/build/range-control/rail.js +24 -20
  563. package/build/range-control/rail.js.map +1 -1
  564. package/build/range-control/tooltip.js +7 -6
  565. package/build/range-control/tooltip.js.map +1 -1
  566. package/build/resizable-box/index.js +17 -16
  567. package/build/resizable-box/index.js.map +1 -1
  568. package/build/resizable-box/index.native.js +2 -2
  569. package/build/resizable-box/index.native.js.map +1 -1
  570. package/build/resizable-box/resize-tooltip/index.js +13 -12
  571. package/build/resizable-box/resize-tooltip/index.js.map +1 -1
  572. package/build/resizable-box/resize-tooltip/label.js +12 -9
  573. package/build/resizable-box/resize-tooltip/label.js.map +1 -1
  574. package/build/responsive-wrapper/index.js +14 -11
  575. package/build/responsive-wrapper/index.js.map +1 -1
  576. package/build/sandbox/index.js +33 -29
  577. package/build/sandbox/index.js.map +1 -1
  578. package/build/sandbox/index.native.js +32 -29
  579. package/build/sandbox/index.native.js.map +1 -1
  580. package/build/scrollable/component.js +2 -2
  581. package/build/scrollable/component.js.map +1 -1
  582. package/build/search-control/index.js +31 -29
  583. package/build/search-control/index.js.map +1 -1
  584. package/build/search-control/index.native.js +46 -38
  585. package/build/search-control/index.native.js.map +1 -1
  586. package/build/select-control/chevron-down.js +9 -5
  587. package/build/select-control/chevron-down.js.map +1 -1
  588. package/build/select-control/index.js +40 -37
  589. package/build/select-control/index.js.map +1 -1
  590. package/build/select-control/index.native.js +2 -2
  591. package/build/select-control/index.native.js.map +1 -1
  592. package/build/shortcut/index.js +5 -4
  593. package/build/shortcut/index.js.map +1 -1
  594. package/build/slot-fill/bubbles-virtually/fill.js +5 -4
  595. package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
  596. package/build/slot-fill/bubbles-virtually/slot-fill-context.js +1 -1
  597. package/build/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
  598. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js +6 -5
  599. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  600. package/build/slot-fill/bubbles-virtually/slot.js +2 -2
  601. package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
  602. package/build/slot-fill/index.js +20 -12
  603. package/build/slot-fill/index.js.map +1 -1
  604. package/build/slot-fill/index.native.js +4 -4
  605. package/build/slot-fill/index.native.js.map +1 -1
  606. package/build/slot-fill/provider.js +6 -5
  607. package/build/slot-fill/provider.js.map +1 -1
  608. package/build/slot-fill/slot.js +16 -12
  609. package/build/slot-fill/slot.js.map +1 -1
  610. package/build/snackbar/index.js +35 -31
  611. package/build/snackbar/index.js.map +1 -1
  612. package/build/snackbar/list.js +31 -26
  613. package/build/snackbar/list.js.map +1 -1
  614. package/build/spacer/component.js +2 -2
  615. package/build/spacer/component.js.map +1 -1
  616. package/build/spinner/index.js +15 -14
  617. package/build/spinner/index.js.map +1 -1
  618. package/build/spinner/index.native.js +2 -2
  619. package/build/spinner/index.native.js.map +1 -1
  620. package/build/style-provider/index.js +6 -5
  621. package/build/style-provider/index.js.map +1 -1
  622. package/build/surface/component.js +2 -2
  623. package/build/surface/component.js.map +1 -1
  624. package/build/tab-panel/index.js +30 -27
  625. package/build/tab-panel/index.js.map +1 -1
  626. package/build/tabs/index.js +5 -4
  627. package/build/tabs/index.js.map +1 -1
  628. package/build/tabs/styles.js +9 -14
  629. package/build/tabs/styles.js.map +1 -1
  630. package/build/tabs/tab.js +6 -5
  631. package/build/tabs/tab.js.map +1 -1
  632. package/build/tabs/tablist.js +101 -7
  633. package/build/tabs/tablist.js.map +1 -1
  634. package/build/tabs/tabpanel.js +6 -5
  635. package/build/tabs/tabpanel.js.map +1 -1
  636. package/build/text/component.js +2 -2
  637. package/build/text/component.js.map +1 -1
  638. package/build/text-control/index.js +17 -16
  639. package/build/text-control/index.js.map +1 -1
  640. package/build/text-control/index.native.js +2 -2
  641. package/build/text-control/index.native.js.map +1 -1
  642. package/build/text-highlight/index.js +5 -3
  643. package/build/text-highlight/index.js.map +1 -1
  644. package/build/textarea-control/index.js +14 -13
  645. package/build/textarea-control/index.js.map +1 -1
  646. package/build/textarea-control/index.native.js +16 -15
  647. package/build/textarea-control/index.native.js.map +1 -1
  648. package/build/theme/color-algorithms.js +2 -2
  649. package/build/theme/color-algorithms.js.map +1 -1
  650. package/build/theme/index.js +3 -4
  651. package/build/theme/index.js.map +1 -1
  652. package/build/tip/index.js +9 -6
  653. package/build/tip/index.js.map +1 -1
  654. package/build/toggle-control/index.js +23 -20
  655. package/build/toggle-control/index.js.map +1 -1
  656. package/build/toggle-control/index.native.js +2 -2
  657. package/build/toggle-control/index.native.js.map +1 -1
  658. package/build/toggle-group-control/toggle-group-control/as-button-group.js +11 -9
  659. package/build/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -1
  660. package/build/toggle-group-control/toggle-group-control/as-radio-group.js +13 -11
  661. package/build/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
  662. package/build/toggle-group-control/toggle-group-control/component.js +22 -15
  663. package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
  664. package/build/toggle-group-control/toggle-group-control-option/component.js +5 -4
  665. package/build/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  666. package/build/toggle-group-control/toggle-group-control-option-base/component.js +50 -38
  667. package/build/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  668. package/build/toggle-group-control/toggle-group-control-option-icon/component.js +7 -6
  669. package/build/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  670. package/build/toolbar/toolbar/index.js +13 -12
  671. package/build/toolbar/toolbar/index.js.map +1 -1
  672. package/build/toolbar/toolbar/toolbar-container.js +11 -9
  673. package/build/toolbar/toolbar/toolbar-container.js.map +1 -1
  674. package/build/toolbar/toolbar/toolbar-container.native.js +4 -2
  675. package/build/toolbar/toolbar/toolbar-container.native.js.map +1 -1
  676. package/build/toolbar/toolbar-button/index.js +37 -33
  677. package/build/toolbar/toolbar-button/index.js.map +1 -1
  678. package/build/toolbar/toolbar-button/toolbar-button-container.js +5 -4
  679. package/build/toolbar/toolbar-button/toolbar-button-container.js.map +1 -1
  680. package/build/toolbar/toolbar-button/toolbar-button-container.native.js +4 -2
  681. package/build/toolbar/toolbar-button/toolbar-button-container.native.js.map +1 -1
  682. package/build/toolbar/toolbar-dropdown-menu/index.js +12 -11
  683. package/build/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
  684. package/build/toolbar/toolbar-group/index.js +11 -11
  685. package/build/toolbar/toolbar-group/index.js.map +1 -1
  686. package/build/toolbar/toolbar-group/toolbar-group-collapsed.js +6 -5
  687. package/build/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
  688. package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js +8 -7
  689. package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js.map +1 -1
  690. package/build/toolbar/toolbar-group/toolbar-group-container.js +5 -4
  691. package/build/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
  692. package/build/toolbar/toolbar-group/toolbar-group-container.native.js +5 -4
  693. package/build/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
  694. package/build/toolbar/toolbar-item/index.js +10 -7
  695. package/build/toolbar/toolbar-item/index.js.map +1 -1
  696. package/build/toolbar/toolbar-item/index.native.js +1 -1
  697. package/build/toolbar/toolbar-item/index.native.js.map +1 -1
  698. package/build/tools-panel/tools-panel/component.js +14 -12
  699. package/build/tools-panel/tools-panel/component.js.map +1 -1
  700. package/build/tools-panel/tools-panel/hook.js +5 -6
  701. package/build/tools-panel/tools-panel/hook.js.map +1 -1
  702. package/build/tools-panel/tools-panel-header/component.js +108 -94
  703. package/build/tools-panel/tools-panel-header/component.js.map +1 -1
  704. package/build/tools-panel/tools-panel-item/component.js +6 -5
  705. package/build/tools-panel/tools-panel-item/component.js.map +1 -1
  706. package/build/tools-panel/tools-panel-item/hook.js +6 -8
  707. package/build/tools-panel/tools-panel-item/hook.js.map +1 -1
  708. package/build/tools-panel/types.js.map +1 -1
  709. package/build/tooltip/index.js +25 -26
  710. package/build/tooltip/index.js.map +1 -1
  711. package/build/tooltip/index.native.js +33 -24
  712. package/build/tooltip/index.native.js.map +1 -1
  713. package/build/tree-grid/cell.js +10 -6
  714. package/build/tree-grid/cell.js.map +1 -1
  715. package/build/tree-grid/index.js +16 -10
  716. package/build/tree-grid/index.js.map +1 -1
  717. package/build/tree-grid/item.js +5 -4
  718. package/build/tree-grid/item.js.map +1 -1
  719. package/build/tree-grid/roving-tab-index-item.js +5 -4
  720. package/build/tree-grid/roving-tab-index-item.js.map +1 -1
  721. package/build/tree-grid/roving-tab-index.js +6 -6
  722. package/build/tree-grid/roving-tab-index.js.map +1 -1
  723. package/build/tree-grid/row.js +5 -4
  724. package/build/tree-grid/row.js.map +1 -1
  725. package/build/tree-select/index.js +2 -2
  726. package/build/tree-select/index.js.map +1 -1
  727. package/build/truncate/component.js +2 -2
  728. package/build/truncate/component.js.map +1 -1
  729. package/build/truncate/hook.js +1 -1
  730. package/build/truncate/hook.js.map +1 -1
  731. package/build/unit-control/index.js +5 -5
  732. package/build/unit-control/index.js.map +1 -1
  733. package/build/unit-control/index.native.js +56 -48
  734. package/build/unit-control/index.native.js.map +1 -1
  735. package/build/unit-control/unit-select-control.js +14 -12
  736. package/build/unit-control/unit-select-control.js.map +1 -1
  737. package/build/utils/style-mixins.js +0 -7
  738. package/build/utils/style-mixins.js.map +1 -1
  739. package/build/v-stack/component.js +2 -2
  740. package/build/v-stack/component.js.map +1 -1
  741. package/build/view/component.js +2 -2
  742. package/build/view/component.js.map +1 -1
  743. package/build/visually-hidden/component.js +2 -2
  744. package/build/visually-hidden/component.js.map +1 -1
  745. package/build/z-stack/component.js +8 -7
  746. package/build/z-stack/component.js.map +1 -1
  747. package/build-module/alignment-matrix-control/cell.js +17 -12
  748. package/build-module/alignment-matrix-control/cell.js.map +1 -1
  749. package/build-module/alignment-matrix-control/icon.js +14 -13
  750. package/build-module/alignment-matrix-control/icon.js.map +1 -1
  751. package/build-module/alignment-matrix-control/index.js +20 -20
  752. package/build-module/alignment-matrix-control/index.js.map +1 -1
  753. package/build-module/angle-picker-control/angle-circle.js +14 -12
  754. package/build-module/angle-picker-control/angle-circle.js.map +1 -1
  755. package/build-module/angle-picker-control/index.js +33 -26
  756. package/build-module/angle-picker-control/index.js.map +1 -1
  757. package/build-module/animate/index.js +4 -4
  758. package/build-module/animate/index.js.map +1 -1
  759. package/build-module/autocomplete/autocompleter-ui.js +59 -31
  760. package/build-module/autocomplete/autocompleter-ui.js.map +1 -1
  761. package/build-module/autocomplete/autocompleter-ui.native.js +51 -40
  762. package/build-module/autocomplete/autocompleter-ui.native.js.map +1 -1
  763. package/build-module/autocomplete/background-view.android.js +5 -4
  764. package/build-module/autocomplete/background-view.android.js.map +1 -1
  765. package/build-module/autocomplete/background-view.ios.js +5 -4
  766. package/build-module/autocomplete/background-view.ios.js.map +1 -1
  767. package/build-module/autocomplete/index.js +7 -3
  768. package/build-module/autocomplete/index.js.map +1 -1
  769. package/build-module/base-control/hooks.js +1 -4
  770. package/build-module/base-control/hooks.js.map +1 -1
  771. package/build-module/base-control/index.js +35 -25
  772. package/build-module/base-control/index.js.map +1 -1
  773. package/build-module/base-control/index.native.js +10 -4
  774. package/build-module/base-control/index.native.js.map +1 -1
  775. package/build-module/base-control/types.js.map +1 -1
  776. package/build-module/border-box-control/border-box-control/component.js +50 -44
  777. package/build-module/border-box-control/border-box-control/component.js.map +1 -1
  778. package/build-module/border-box-control/border-box-control-linked-button/component.js +15 -13
  779. package/build-module/border-box-control/border-box-control-linked-button/component.js.map +1 -1
  780. package/build-module/border-box-control/border-box-control-split-controls/component.js +40 -38
  781. package/build-module/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  782. package/build-module/border-box-control/border-box-control-visualizer/component.js +2 -2
  783. package/build-module/border-box-control/border-box-control-visualizer/component.js.map +1 -1
  784. package/build-module/border-control/border-control/component.js +57 -52
  785. package/build-module/border-control/border-control/component.js.map +1 -1
  786. package/build-module/border-control/border-control-dropdown/component.js +57 -43
  787. package/build-module/border-control/border-control-dropdown/component.js.map +1 -1
  788. package/build-module/border-control/border-control-style-picker/component.js +9 -9
  789. package/build-module/border-control/border-control-style-picker/component.js.map +1 -1
  790. package/build-module/border-control/types.js.map +1 -1
  791. package/build-module/box-control/all-input-control.js +31 -28
  792. package/build-module/box-control/all-input-control.js.map +1 -1
  793. package/build-module/box-control/axial-input-controls.js +47 -41
  794. package/build-module/box-control/axial-input-controls.js.map +1 -1
  795. package/build-module/box-control/icon.js +16 -12
  796. package/build-module/box-control/icon.js.map +1 -1
  797. package/build-module/box-control/index.js +32 -24
  798. package/build-module/box-control/index.js.map +1 -1
  799. package/build-module/box-control/input-controls.js +48 -43
  800. package/build-module/box-control/input-controls.js.map +1 -1
  801. package/build-module/box-control/linked-button.js +12 -11
  802. package/build-module/box-control/linked-button.js.map +1 -1
  803. package/build-module/button/deprecated.js +2 -2
  804. package/build-module/button/deprecated.js.map +1 -1
  805. package/build-module/button/index.js +38 -21
  806. package/build-module/button/index.js.map +1 -1
  807. package/build-module/button/index.native.js +28 -21
  808. package/build-module/button/index.native.js.map +1 -1
  809. package/build-module/button-group/index.js +4 -5
  810. package/build-module/button-group/index.js.map +1 -1
  811. package/build-module/card/card/component.js +21 -17
  812. package/build-module/card/card/component.js.map +1 -1
  813. package/build-module/card/card-body/component.js +3 -3
  814. package/build-module/card/card-body/component.js.map +1 -1
  815. package/build-module/card/card-divider/component.js +2 -2
  816. package/build-module/card/card-divider/component.js.map +1 -1
  817. package/build-module/card/card-footer/component.js +2 -2
  818. package/build-module/card/card-footer/component.js.map +1 -1
  819. package/build-module/card/card-header/component.js +2 -2
  820. package/build-module/card/card-header/component.js.map +1 -1
  821. package/build-module/card/card-media/component.js +2 -2
  822. package/build-module/card/card-media/component.js.map +1 -1
  823. package/build-module/checkbox-control/index.js +41 -35
  824. package/build-module/checkbox-control/index.js.map +1 -1
  825. package/build-module/circular-option-picker/circular-option-picker-actions.js +13 -11
  826. package/build-module/circular-option-picker/circular-option-picker-actions.js.map +1 -1
  827. package/build-module/circular-option-picker/circular-option-picker-option-group.js +6 -6
  828. package/build-module/circular-option-picker/circular-option-picker-option-group.js.map +1 -1
  829. package/build-module/circular-option-picker/circular-option-picker-option.js +18 -15
  830. package/build-module/circular-option-picker/circular-option-picker-option.js.map +1 -1
  831. package/build-module/circular-option-picker/circular-option-picker.js +38 -30
  832. package/build-module/circular-option-picker/circular-option-picker.js.map +1 -1
  833. package/build-module/clipboard-button/index.js +7 -6
  834. package/build-module/clipboard-button/index.js.map +1 -1
  835. package/build-module/color-control/index.native.js +2 -2
  836. package/build-module/color-control/index.native.js.map +1 -1
  837. package/build-module/color-indicator/index.js +4 -5
  838. package/build-module/color-indicator/index.js.map +1 -1
  839. package/build-module/color-indicator/index.native.js +40 -36
  840. package/build-module/color-indicator/index.native.js.map +1 -1
  841. package/build-module/color-palette/index.js +92 -83
  842. package/build-module/color-palette/index.js.map +1 -1
  843. package/build-module/color-palette/index.native.js +77 -65
  844. package/build-module/color-palette/index.native.js.map +1 -1
  845. package/build-module/color-picker/color-copy-button.js +10 -9
  846. package/build-module/color-picker/color-copy-button.js.map +1 -1
  847. package/build-module/color-picker/color-input.js +4 -4
  848. package/build-module/color-picker/color-input.js.map +1 -1
  849. package/build-module/color-picker/component.js +37 -30
  850. package/build-module/color-picker/component.js.map +1 -1
  851. package/build-module/color-picker/hex-input.js +6 -5
  852. package/build-module/color-picker/hex-input.js.map +1 -1
  853. package/build-module/color-picker/hsl-input.js +50 -46
  854. package/build-module/color-picker/hsl-input.js.map +1 -1
  855. package/build-module/color-picker/hsv-color-picker.native.js +33 -31
  856. package/build-module/color-picker/hsv-color-picker.native.js.map +1 -1
  857. package/build-module/color-picker/hue-picker.native.js +34 -31
  858. package/build-module/color-picker/hue-picker.native.js.map +1 -1
  859. package/build-module/color-picker/index.native.js +68 -53
  860. package/build-module/color-picker/index.native.js.map +1 -1
  861. package/build-module/color-picker/input-with-slider.js +34 -31
  862. package/build-module/color-picker/input-with-slider.js.map +1 -1
  863. package/build-module/color-picker/legacy-adapter.js +2 -2
  864. package/build-module/color-picker/legacy-adapter.js.map +1 -1
  865. package/build-module/color-picker/picker.js +2 -3
  866. package/build-module/color-picker/picker.js.map +1 -1
  867. package/build-module/color-picker/rgb-input.js +54 -50
  868. package/build-module/color-picker/rgb-input.js.map +1 -1
  869. package/build-module/color-picker/saturation-picker.native.js +45 -41
  870. package/build-module/color-picker/saturation-picker.native.js.map +1 -1
  871. package/build-module/combobox-control/index.js +74 -53
  872. package/build-module/combobox-control/index.js.map +1 -1
  873. package/build-module/combobox-control/types.js.map +1 -1
  874. package/build-module/composite/legacy/index.js +3 -4
  875. package/build-module/composite/legacy/index.js.map +1 -1
  876. package/build-module/confirm-dialog/component.js +37 -26
  877. package/build-module/confirm-dialog/component.js.map +1 -1
  878. package/build-module/context/context-connect.js +1 -1
  879. package/build-module/context/context-connect.js.map +1 -1
  880. package/build-module/context/context-system-provider.js +6 -5
  881. package/build-module/context/context-system-provider.js.map +1 -1
  882. package/build-module/context/use-context-system.js +1 -1
  883. package/build-module/context/use-context-system.js.map +1 -1
  884. package/build-module/css.d.js +2 -0
  885. package/build-module/css.d.js.map +1 -0
  886. package/build-module/custom-gradient-picker/gradient-bar/control-points.js +118 -109
  887. package/build-module/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  888. package/build-module/custom-gradient-picker/gradient-bar/index.js +52 -49
  889. package/build-module/custom-gradient-picker/gradient-bar/index.js.map +1 -1
  890. package/build-module/custom-gradient-picker/index.js +32 -25
  891. package/build-module/custom-gradient-picker/index.js.map +1 -1
  892. package/build-module/custom-gradient-picker/index.native.js +25 -17
  893. package/build-module/custom-gradient-picker/index.native.js.map +1 -1
  894. package/build-module/custom-select-control/index.js +74 -60
  895. package/build-module/custom-select-control/index.js.map +1 -1
  896. package/build-module/custom-select-control-v2/custom-select.js +49 -35
  897. package/build-module/custom-select-control-v2/custom-select.js.map +1 -1
  898. package/build-module/custom-select-control-v2/default-component/index.js +2 -2
  899. package/build-module/custom-select-control-v2/default-component/index.js.map +1 -1
  900. package/build-module/custom-select-control-v2/item.js +10 -6
  901. package/build-module/custom-select-control-v2/item.js.map +1 -1
  902. package/build-module/custom-select-control-v2/legacy-component/index.js +35 -43
  903. package/build-module/custom-select-control-v2/legacy-component/index.js.map +1 -1
  904. package/build-module/custom-select-control-v2/styles.js +9 -9
  905. package/build-module/custom-select-control-v2/styles.js.map +1 -1
  906. package/build-module/custom-select-control-v2/types.js.map +1 -1
  907. package/build-module/dashicon/index.js +2 -2
  908. package/build-module/dashicon/index.js.map +1 -1
  909. package/build-module/dashicon/index.native.js +3 -3
  910. package/build-module/dashicon/index.native.js.map +1 -1
  911. package/build-module/date-time/date/index.js +93 -85
  912. package/build-module/date-time/date/index.js.map +1 -1
  913. package/build-module/date-time/date-time/index.js +20 -15
  914. package/build-module/date-time/date-time/index.js.map +1 -1
  915. package/build-module/date-time/time/index.js +164 -135
  916. package/build-module/date-time/time/index.js.map +1 -1
  917. package/build-module/date-time/time/timezone.js +11 -8
  918. package/build-module/date-time/time/timezone.js.map +1 -1
  919. package/build-module/dimension-control/index.js +11 -7
  920. package/build-module/dimension-control/index.js.map +1 -1
  921. package/build-module/disabled/index.js +11 -9
  922. package/build-module/disabled/index.js.map +1 -1
  923. package/build-module/disabled/index.native.js +5 -4
  924. package/build-module/disabled/index.native.js.map +1 -1
  925. package/build-module/disclosure/index.js +5 -5
  926. package/build-module/disclosure/index.js.map +1 -1
  927. package/build-module/divider/component.js +3 -3
  928. package/build-module/divider/component.js.map +1 -1
  929. package/build-module/draggable/index.js +16 -12
  930. package/build-module/draggable/index.js.map +1 -1
  931. package/build-module/draggable/index.native.js +15 -11
  932. package/build-module/draggable/index.native.js.map +1 -1
  933. package/build-module/drop-zone/index.js +26 -19
  934. package/build-module/drop-zone/index.js.map +1 -1
  935. package/build-module/dropdown/dropdown-content-wrapper.js +2 -2
  936. package/build-module/dropdown/dropdown-content-wrapper.js.map +1 -1
  937. package/build-module/dropdown/index.js +23 -20
  938. package/build-module/dropdown/index.js.map +1 -1
  939. package/build-module/dropdown/index.native.js +5 -2
  940. package/build-module/dropdown/index.native.js.map +1 -1
  941. package/build-module/dropdown-menu/index.js +34 -31
  942. package/build-module/dropdown-menu/index.js.map +1 -1
  943. package/build-module/dropdown-menu/index.native.js +37 -33
  944. package/build-module/dropdown-menu/index.native.js.map +1 -1
  945. package/build-module/dropdown-menu-v2/index.js +110 -76
  946. package/build-module/dropdown-menu-v2/index.js.map +1 -1
  947. package/build-module/duotone-picker/color-list-picker/index.js +54 -46
  948. package/build-module/duotone-picker/color-list-picker/index.js.map +1 -1
  949. package/build-module/duotone-picker/custom-duotone-bar.js +2 -2
  950. package/build-module/duotone-picker/custom-duotone-bar.js.map +1 -1
  951. package/build-module/duotone-picker/duotone-picker.js +41 -38
  952. package/build-module/duotone-picker/duotone-picker.js.map +1 -1
  953. package/build-module/duotone-picker/duotone-swatch.js +3 -3
  954. package/build-module/duotone-picker/duotone-swatch.js.map +1 -1
  955. package/build-module/elevation/component.js +2 -2
  956. package/build-module/elevation/component.js.map +1 -1
  957. package/build-module/external-link/index.js +19 -14
  958. package/build-module/external-link/index.js.map +1 -1
  959. package/build-module/external-link/index.native.js +10 -6
  960. package/build-module/external-link/index.native.js.map +1 -1
  961. package/build-module/flex/flex/component.js +9 -7
  962. package/build-module/flex/flex/component.js.map +1 -1
  963. package/build-module/flex/flex-block/component.js +2 -2
  964. package/build-module/flex/flex-block/component.js.map +1 -1
  965. package/build-module/flex/flex-item/component.js +2 -2
  966. package/build-module/flex/flex-item/component.js.map +1 -1
  967. package/build-module/focal-point-picker/controls.js +21 -19
  968. package/build-module/focal-point-picker/controls.js.map +1 -1
  969. package/build-module/focal-point-picker/focal-point.js +3 -5
  970. package/build-module/focal-point-picker/focal-point.js.map +1 -1
  971. package/build-module/focal-point-picker/focal-point.native.js +12 -10
  972. package/build-module/focal-point-picker/focal-point.native.js.map +1 -1
  973. package/build-module/focal-point-picker/grid.js +22 -20
  974. package/build-module/focal-point-picker/grid.js.map +1 -1
  975. package/build-module/focal-point-picker/index.js +45 -41
  976. package/build-module/focal-point-picker/index.js.map +1 -1
  977. package/build-module/focal-point-picker/index.native.js +67 -62
  978. package/build-module/focal-point-picker/index.native.js.map +1 -1
  979. package/build-module/focal-point-picker/media.js +4 -4
  980. package/build-module/focal-point-picker/media.js.map +1 -1
  981. package/build-module/focal-point-picker/styles/focal-point-style.js +2 -6
  982. package/build-module/focal-point-picker/styles/focal-point-style.js.map +1 -1
  983. package/build-module/focal-point-picker/tooltip/index.native.js +33 -27
  984. package/build-module/focal-point-picker/tooltip/index.native.js.map +1 -1
  985. package/build-module/focusable-iframe/index.js +2 -3
  986. package/build-module/focusable-iframe/index.js.map +1 -1
  987. package/build-module/font-size-picker/font-size-picker-select.js +2 -2
  988. package/build-module/font-size-picker/font-size-picker-select.js.map +1 -1
  989. package/build-module/font-size-picker/font-size-picker-toggle-group.js +10 -10
  990. package/build-module/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  991. package/build-module/font-size-picker/index.js +120 -103
  992. package/build-module/font-size-picker/index.js.map +1 -1
  993. package/build-module/font-size-picker/index.native.js +78 -63
  994. package/build-module/font-size-picker/index.native.js.map +1 -1
  995. package/build-module/footer-message-control/index.native.js +2 -2
  996. package/build-module/footer-message-control/index.native.js.map +1 -1
  997. package/build-module/form-file-upload/index.js +21 -18
  998. package/build-module/form-file-upload/index.js.map +1 -1
  999. package/build-module/form-toggle/index.js +21 -20
  1000. package/build-module/form-toggle/index.js.map +1 -1
  1001. package/build-module/form-token-field/index.js +62 -57
  1002. package/build-module/form-token-field/index.js.map +1 -1
  1003. package/build-module/form-token-field/suggestions-list.js +43 -36
  1004. package/build-module/form-token-field/suggestions-list.js.map +1 -1
  1005. package/build-module/form-token-field/token-input.js +4 -5
  1006. package/build-module/form-token-field/token-input.js.map +1 -1
  1007. package/build-module/form-token-field/token.js +25 -20
  1008. package/build-module/form-token-field/token.js.map +1 -1
  1009. package/build-module/gradient-picker/index.js +51 -47
  1010. package/build-module/gradient-picker/index.js.map +1 -1
  1011. package/build-module/grid/component.js +2 -2
  1012. package/build-module/grid/component.js.map +1 -1
  1013. package/build-module/guide/icons.js +9 -8
  1014. package/build-module/guide/icons.js.map +1 -1
  1015. package/build-module/guide/index.js +36 -28
  1016. package/build-module/guide/index.js.map +1 -1
  1017. package/build-module/guide/page-control.js +16 -17
  1018. package/build-module/guide/page-control.js.map +1 -1
  1019. package/build-module/guide/page.js +2 -3
  1020. package/build-module/guide/page.js.map +1 -1
  1021. package/build-module/h-stack/component.js +2 -2
  1022. package/build-module/h-stack/component.js.map +1 -1
  1023. package/build-module/h-stack/hook.js +3 -4
  1024. package/build-module/h-stack/hook.js.map +1 -1
  1025. package/build-module/heading/component.js +2 -2
  1026. package/build-module/heading/component.js.map +1 -1
  1027. package/build-module/higher-order/navigate-regions/index.js +7 -6
  1028. package/build-module/higher-order/navigate-regions/index.js.map +1 -1
  1029. package/build-module/higher-order/with-constrained-tabbing/index.js +7 -6
  1030. package/build-module/higher-order/with-constrained-tabbing/index.js.map +1 -1
  1031. package/build-module/higher-order/with-fallback-styles/index.js +7 -5
  1032. package/build-module/higher-order/with-fallback-styles/index.js.map +1 -1
  1033. package/build-module/higher-order/with-filters/index.js +2 -2
  1034. package/build-module/higher-order/with-filters/index.js.map +1 -1
  1035. package/build-module/higher-order/with-focus-outside/index.js +8 -7
  1036. package/build-module/higher-order/with-focus-outside/index.js.map +1 -1
  1037. package/build-module/higher-order/with-focus-outside/index.native.js +8 -7
  1038. package/build-module/higher-order/with-focus-outside/index.native.js.map +1 -1
  1039. package/build-module/higher-order/with-focus-return/index.js +7 -6
  1040. package/build-module/higher-order/with-focus-return/index.js.map +1 -1
  1041. package/build-module/higher-order/with-notices/index.js +4 -4
  1042. package/build-module/higher-order/with-notices/index.js.map +1 -1
  1043. package/build-module/higher-order/with-spoken-messages/index.js +2 -2
  1044. package/build-module/higher-order/with-spoken-messages/index.js.map +1 -1
  1045. package/build-module/icon/index.js +3 -2
  1046. package/build-module/icon/index.js.map +1 -1
  1047. package/build-module/index.js +1 -0
  1048. package/build-module/index.js.map +1 -1
  1049. package/build-module/index.native.js +0 -3
  1050. package/build-module/index.native.js.map +1 -1
  1051. package/build-module/input-control/backdrop.js +2 -2
  1052. package/build-module/input-control/backdrop.js.map +1 -1
  1053. package/build-module/input-control/index.js +39 -40
  1054. package/build-module/input-control/index.js.map +1 -1
  1055. package/build-module/input-control/input-base.js +38 -25
  1056. package/build-module/input-control/input-base.js.map +1 -1
  1057. package/build-module/input-control/input-field.js +2 -2
  1058. package/build-module/input-control/input-field.js.map +1 -1
  1059. package/build-module/input-control/input-prefix-wrapper.js +2 -2
  1060. package/build-module/input-control/input-prefix-wrapper.js.map +1 -1
  1061. package/build-module/input-control/input-suffix-wrapper.js +2 -2
  1062. package/build-module/input-control/input-suffix-wrapper.js.map +1 -1
  1063. package/build-module/input-control/label.js +12 -8
  1064. package/build-module/input-control/label.js.map +1 -1
  1065. package/build-module/input-control/styles/input-control-styles.js +21 -21
  1066. package/build-module/input-control/styles/input-control-styles.js.map +1 -1
  1067. package/build-module/isolated-event-container/index.js +2 -2
  1068. package/build-module/isolated-event-container/index.js.map +1 -1
  1069. package/build-module/item-group/item/component.js +8 -7
  1070. package/build-module/item-group/item/component.js.map +1 -1
  1071. package/build-module/item-group/item-group/component.js +8 -7
  1072. package/build-module/item-group/item-group/component.js.map +1 -1
  1073. package/build-module/keyboard-shortcuts/index.js +12 -9
  1074. package/build-module/keyboard-shortcuts/index.js.map +1 -1
  1075. package/build-module/menu-group/index.js +17 -14
  1076. package/build-module/menu-group/index.js.map +1 -1
  1077. package/build-module/menu-item/index.js +27 -21
  1078. package/build-module/menu-item/index.js.map +1 -1
  1079. package/build-module/menu-items-choice/index.js +25 -22
  1080. package/build-module/menu-items-choice/index.js.map +1 -1
  1081. package/build-module/mobile/autocompletion-items.native.js +2 -2
  1082. package/build-module/mobile/autocompletion-items.native.js.map +1 -1
  1083. package/build-module/mobile/badge/index.native.js +12 -6
  1084. package/build-module/mobile/badge/index.native.js.map +1 -1
  1085. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +23 -18
  1086. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
  1087. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +22 -16
  1088. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
  1089. package/build-module/mobile/bottom-sheet/button.native.js +17 -14
  1090. package/build-module/mobile/bottom-sheet/button.native.js.map +1 -1
  1091. package/build-module/mobile/bottom-sheet/cell.native.js +70 -53
  1092. package/build-module/mobile/bottom-sheet/cell.native.js.map +1 -1
  1093. package/build-module/mobile/bottom-sheet/chevron-back.native.js +7 -6
  1094. package/build-module/mobile/bottom-sheet/chevron-back.native.js.map +1 -1
  1095. package/build-module/mobile/bottom-sheet/color-cell.native.js +14 -11
  1096. package/build-module/mobile/bottom-sheet/color-cell.native.js.map +1 -1
  1097. package/build-module/mobile/bottom-sheet/cycle-picker-cell.native.js +2 -2
  1098. package/build-module/mobile/bottom-sheet/cycle-picker-cell.native.js.map +1 -1
  1099. package/build-module/mobile/bottom-sheet/footer-message-cell.native.js +4 -4
  1100. package/build-module/mobile/bottom-sheet/footer-message-cell.native.js.map +1 -1
  1101. package/build-module/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js +5 -4
  1102. package/build-module/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js.map +1 -1
  1103. package/build-module/mobile/bottom-sheet/index.native.js +74 -56
  1104. package/build-module/mobile/bottom-sheet/index.native.js.map +1 -1
  1105. package/build-module/mobile/bottom-sheet/keyboard-avoiding-view.native.js +5 -4
  1106. package/build-module/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
  1107. package/build-module/mobile/bottom-sheet/link-cell.native.js +7 -6
  1108. package/build-module/mobile/bottom-sheet/link-cell.native.js.map +1 -1
  1109. package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js +20 -15
  1110. package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
  1111. package/build-module/mobile/bottom-sheet/lock-icon/index.native.js +2 -2
  1112. package/build-module/mobile/bottom-sheet/lock-icon/index.native.js.map +1 -1
  1113. package/build-module/mobile/bottom-sheet/nav-bar/action-button.native.js +9 -7
  1114. package/build-module/mobile/bottom-sheet/nav-bar/action-button.native.js.map +1 -1
  1115. package/build-module/mobile/bottom-sheet/nav-bar/apply-button.native.js +18 -15
  1116. package/build-module/mobile/bottom-sheet/nav-bar/apply-button.native.js.map +1 -1
  1117. package/build-module/mobile/bottom-sheet/nav-bar/back-button.native.js +20 -16
  1118. package/build-module/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
  1119. package/build-module/mobile/bottom-sheet/nav-bar/heading.native.js +5 -4
  1120. package/build-module/mobile/bottom-sheet/nav-bar/heading.native.js.map +1 -1
  1121. package/build-module/mobile/bottom-sheet/nav-bar/index.native.js +5 -4
  1122. package/build-module/mobile/bottom-sheet/nav-bar/index.native.js.map +1 -1
  1123. package/build-module/mobile/bottom-sheet/picker-cell.native.js +11 -10
  1124. package/build-module/mobile/bottom-sheet/picker-cell.native.js.map +1 -1
  1125. package/build-module/mobile/bottom-sheet/radio-cell.native.js +10 -9
  1126. package/build-module/mobile/bottom-sheet/radio-cell.native.js.map +1 -1
  1127. package/build-module/mobile/bottom-sheet/range-cell.native.js +51 -45
  1128. package/build-module/mobile/bottom-sheet/range-cell.native.js.map +1 -1
  1129. package/build-module/mobile/bottom-sheet/range-text-input.native.js +29 -25
  1130. package/build-module/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
  1131. package/build-module/mobile/bottom-sheet/ripple.native.js +12 -9
  1132. package/build-module/mobile/bottom-sheet/ripple.native.js.map +1 -1
  1133. package/build-module/mobile/bottom-sheet/stepper-cell/index.native.js +42 -35
  1134. package/build-module/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
  1135. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.android.js +34 -29
  1136. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.android.js.map +1 -1
  1137. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.ios.js +34 -29
  1138. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.ios.js.map +1 -1
  1139. package/build-module/mobile/bottom-sheet/sub-sheet/index.native.js +16 -3
  1140. package/build-module/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
  1141. package/build-module/mobile/bottom-sheet/switch-cell.native.js +11 -10
  1142. package/build-module/mobile/bottom-sheet/switch-cell.native.js.map +1 -1
  1143. package/build-module/mobile/bottom-sheet-select-control/index.native.js +42 -30
  1144. package/build-module/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
  1145. package/build-module/mobile/bottom-sheet-text-control/index.native.js +42 -28
  1146. package/build-module/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
  1147. package/build-module/mobile/color-settings/gradient-picker-screen.native.js +15 -8
  1148. package/build-module/mobile/color-settings/gradient-picker-screen.native.js.map +1 -1
  1149. package/build-module/mobile/color-settings/index.native.js +27 -20
  1150. package/build-module/mobile/color-settings/index.native.js.map +1 -1
  1151. package/build-module/mobile/color-settings/palette.screen.native.js +85 -63
  1152. package/build-module/mobile/color-settings/palette.screen.native.js.map +1 -1
  1153. package/build-module/mobile/color-settings/picker-screen.native.js +3 -3
  1154. package/build-module/mobile/color-settings/picker-screen.native.js.map +1 -1
  1155. package/build-module/mobile/color-settings/utils.native.js +1 -1
  1156. package/build-module/mobile/color-settings/utils.native.js.map +1 -1
  1157. package/build-module/mobile/cycle-select-control/index.native.js +2 -2
  1158. package/build-module/mobile/cycle-select-control/index.native.js.map +1 -1
  1159. package/build-module/mobile/dashicons/index.native.js +8 -7
  1160. package/build-module/mobile/dashicons/index.native.js.map +1 -1
  1161. package/build-module/mobile/focal-point-settings-panel/index.native.js +22 -15
  1162. package/build-module/mobile/focal-point-settings-panel/index.native.js.map +1 -1
  1163. package/build-module/mobile/gradient/index.native.js +37 -29
  1164. package/build-module/mobile/gradient/index.native.js.map +1 -1
  1165. package/build-module/mobile/gridicons/index.native.js +8 -7
  1166. package/build-module/mobile/gridicons/index.native.js.map +1 -1
  1167. package/build-module/mobile/html-text-input/index.native.js +37 -34
  1168. package/build-module/mobile/html-text-input/index.native.js.map +1 -1
  1169. package/build-module/mobile/image/icon-customize.native.js +8 -7
  1170. package/build-module/mobile/image/icon-customize.native.js.map +1 -1
  1171. package/build-module/mobile/image/icon-retry.native.js +12 -10
  1172. package/build-module/mobile/image/icon-retry.native.js.map +1 -1
  1173. package/build-module/mobile/image/image-editing-button.native.js +19 -15
  1174. package/build-module/mobile/image/image-editing-button.native.js.map +1 -1
  1175. package/build-module/mobile/image/index.native.js +85 -72
  1176. package/build-module/mobile/image/index.native.js.map +1 -1
  1177. package/build-module/mobile/keyboard-avoiding-view/index.ios.js +11 -8
  1178. package/build-module/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
  1179. package/build-module/mobile/keyboard-aware-flat-list/index.android.js +15 -14
  1180. package/build-module/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
  1181. package/build-module/mobile/keyboard-aware-flat-list/index.ios.js +16 -15
  1182. package/build-module/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
  1183. package/build-module/mobile/link-picker/index.native.js +56 -46
  1184. package/build-module/mobile/link-picker/index.native.js.map +1 -1
  1185. package/build-module/mobile/link-picker/link-picker-results.native.js +33 -29
  1186. package/build-module/mobile/link-picker/link-picker-results.native.js.map +1 -1
  1187. package/build-module/mobile/link-picker/link-picker-screen.native.js +2 -2
  1188. package/build-module/mobile/link-picker/link-picker-screen.native.js.map +1 -1
  1189. package/build-module/mobile/link-settings/index.native.js +60 -50
  1190. package/build-module/mobile/link-settings/index.native.js.map +1 -1
  1191. package/build-module/mobile/link-settings/link-rel.native.js +8 -7
  1192. package/build-module/mobile/link-settings/link-rel.native.js.map +1 -1
  1193. package/build-module/mobile/link-settings/link-settings-navigation.native.js +24 -19
  1194. package/build-module/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
  1195. package/build-module/mobile/link-settings/link-settings-screen.native.js +2 -2
  1196. package/build-module/mobile/link-settings/link-settings-screen.native.js.map +1 -1
  1197. package/build-module/mobile/media-edit/index.native.js +7 -3
  1198. package/build-module/mobile/media-edit/index.native.js.map +1 -1
  1199. package/build-module/mobile/picker/index.android.js +28 -24
  1200. package/build-module/mobile/picker/index.android.js.map +1 -1
  1201. package/build-module/mobile/picker/index.ios.js +3 -3
  1202. package/build-module/mobile/picker/index.ios.js.map +1 -1
  1203. package/build-module/mobile/segmented-control/index.native.js +50 -42
  1204. package/build-module/mobile/segmented-control/index.native.js.map +1 -1
  1205. package/build-module/mobile/utils/use-unit-converter-to-mobile.native.js +2 -10
  1206. package/build-module/mobile/utils/use-unit-converter-to-mobile.native.js.map +1 -1
  1207. package/build-module/modal/index.js +60 -48
  1208. package/build-module/modal/index.js.map +1 -1
  1209. package/build-module/navigable-container/container.js +6 -6
  1210. package/build-module/navigable-container/container.js.map +1 -1
  1211. package/build-module/navigable-container/menu.js +2 -2
  1212. package/build-module/navigable-container/menu.js.map +1 -1
  1213. package/build-module/navigable-container/tabbable.js +2 -2
  1214. package/build-module/navigable-container/tabbable.js.map +1 -1
  1215. package/build-module/navigation/back-button/index.js +10 -8
  1216. package/build-module/navigation/back-button/index.js.map +1 -1
  1217. package/build-module/navigation/group/index.js +24 -18
  1218. package/build-module/navigation/group/index.js.map +1 -1
  1219. package/build-module/navigation/index.js +15 -13
  1220. package/build-module/navigation/index.js.map +1 -1
  1221. package/build-module/navigation/item/base-content.js +13 -7
  1222. package/build-module/navigation/item/base-content.js.map +1 -1
  1223. package/build-module/navigation/item/base.js +7 -6
  1224. package/build-module/navigation/item/base.js.map +1 -1
  1225. package/build-module/navigation/item/index.js +20 -15
  1226. package/build-module/navigation/item/index.js.map +1 -1
  1227. package/build-module/navigation/menu/index.js +32 -25
  1228. package/build-module/navigation/menu/index.js.map +1 -1
  1229. package/build-module/navigation/menu/menu-title-search.js +14 -12
  1230. package/build-module/navigation/menu/menu-title-search.js.map +1 -1
  1231. package/build-module/navigation/menu/menu-title.js +36 -28
  1232. package/build-module/navigation/menu/menu-title.js.map +1 -1
  1233. package/build-module/navigation/menu/search-no-results-found.js +7 -2
  1234. package/build-module/navigation/menu/search-no-results-found.js.map +1 -1
  1235. package/build-module/navigator/navigator-back-button/component.js +2 -2
  1236. package/build-module/navigator/navigator-back-button/component.js.map +1 -1
  1237. package/build-module/navigator/navigator-button/component.js +2 -2
  1238. package/build-module/navigator/navigator-button/component.js.map +1 -1
  1239. package/build-module/navigator/navigator-provider/component.js +8 -6
  1240. package/build-module/navigator/navigator-provider/component.js.map +1 -1
  1241. package/build-module/navigator/navigator-screen/component.js +5 -4
  1242. package/build-module/navigator/navigator-screen/component.js.map +1 -1
  1243. package/build-module/navigator/navigator-to-parent-button/component.js +2 -2
  1244. package/build-module/navigator/navigator-to-parent-button/component.js.map +1 -1
  1245. package/build-module/notice/index.js +47 -39
  1246. package/build-module/notice/index.js.map +1 -1
  1247. package/build-module/notice/index.native.js +23 -15
  1248. package/build-module/notice/index.native.js.map +1 -1
  1249. package/build-module/notice/list.js +18 -16
  1250. package/build-module/notice/list.js.map +1 -1
  1251. package/build-module/notice/list.native.js +12 -10
  1252. package/build-module/notice/list.native.js.map +1 -1
  1253. package/build-module/number-control/index.js +28 -22
  1254. package/build-module/number-control/index.js.map +1 -1
  1255. package/build-module/palette-edit/index.js +231 -199
  1256. package/build-module/palette-edit/index.js.map +1 -1
  1257. package/build-module/palette-edit/styles.js +13 -14
  1258. package/build-module/palette-edit/styles.js.map +1 -1
  1259. package/build-module/panel/actions.native.js +10 -9
  1260. package/build-module/panel/actions.native.js.map +1 -1
  1261. package/build-module/panel/body.js +36 -31
  1262. package/build-module/panel/body.js.map +1 -1
  1263. package/build-module/panel/body.native.js +10 -7
  1264. package/build-module/panel/body.native.js.map +1 -1
  1265. package/build-module/panel/bottom-separator-cover.native.js +2 -2
  1266. package/build-module/panel/bottom-separator-cover.native.js.map +1 -1
  1267. package/build-module/panel/header.js +8 -4
  1268. package/build-module/panel/header.js.map +1 -1
  1269. package/build-module/panel/index.js +10 -8
  1270. package/build-module/panel/index.js.map +1 -1
  1271. package/build-module/panel/row.js +7 -7
  1272. package/build-module/panel/row.js.map +1 -1
  1273. package/build-module/placeholder/index.js +30 -23
  1274. package/build-module/placeholder/index.js.map +1 -1
  1275. package/build-module/popover/index.js +56 -44
  1276. package/build-module/popover/index.js.map +1 -1
  1277. package/build-module/private-apis.js +0 -2
  1278. package/build-module/private-apis.js.map +1 -1
  1279. package/build-module/progress-bar/index.js +33 -15
  1280. package/build-module/progress-bar/index.js.map +1 -1
  1281. package/build-module/progress-bar/styles.js +4 -4
  1282. package/build-module/progress-bar/styles.js.map +1 -1
  1283. package/build-module/query-controls/author-select.js +2 -2
  1284. package/build-module/query-controls/author-select.js.map +1 -1
  1285. package/build-module/query-controls/category-select.js +2 -2
  1286. package/build-module/query-controls/category-select.js.map +1 -1
  1287. package/build-module/query-controls/index.js +74 -78
  1288. package/build-module/query-controls/index.js.map +1 -1
  1289. package/build-module/query-controls/index.native.js +29 -24
  1290. package/build-module/query-controls/index.native.js.map +1 -1
  1291. package/build-module/radio-control/index.js +27 -23
  1292. package/build-module/radio-control/index.js.map +1 -1
  1293. package/build-module/radio-control/index.native.js +12 -10
  1294. package/build-module/radio-control/index.native.js.map +1 -1
  1295. package/build-module/radio-group/index.js +13 -10
  1296. package/build-module/radio-group/index.js.map +1 -1
  1297. package/build-module/radio-group/radio.js +6 -5
  1298. package/build-module/radio-group/radio.js.map +1 -1
  1299. package/build-module/range-control/index.js +104 -92
  1300. package/build-module/range-control/index.js.map +1 -1
  1301. package/build-module/range-control/index.native.js +3 -3
  1302. package/build-module/range-control/index.native.js.map +1 -1
  1303. package/build-module/range-control/input-range.js +2 -2
  1304. package/build-module/range-control/input-range.js.map +1 -1
  1305. package/build-module/range-control/mark.js +21 -16
  1306. package/build-module/range-control/mark.js.map +1 -1
  1307. package/build-module/range-control/rail.js +26 -20
  1308. package/build-module/range-control/rail.js.map +1 -1
  1309. package/build-module/range-control/tooltip.js +7 -6
  1310. package/build-module/range-control/tooltip.js.map +1 -1
  1311. package/build-module/resizable-box/index.js +18 -16
  1312. package/build-module/resizable-box/index.js.map +1 -1
  1313. package/build-module/resizable-box/index.native.js +2 -2
  1314. package/build-module/resizable-box/index.native.js.map +1 -1
  1315. package/build-module/resizable-box/resize-tooltip/index.js +14 -12
  1316. package/build-module/resizable-box/resize-tooltip/index.js.map +1 -1
  1317. package/build-module/resizable-box/resize-tooltip/label.js +12 -9
  1318. package/build-module/resizable-box/resize-tooltip/label.js.map +1 -1
  1319. package/build-module/responsive-wrapper/index.js +14 -12
  1320. package/build-module/responsive-wrapper/index.js.map +1 -1
  1321. package/build-module/sandbox/index.js +34 -30
  1322. package/build-module/sandbox/index.js.map +1 -1
  1323. package/build-module/sandbox/index.native.js +33 -29
  1324. package/build-module/sandbox/index.native.js.map +1 -1
  1325. package/build-module/scrollable/component.js +2 -2
  1326. package/build-module/scrollable/component.js.map +1 -1
  1327. package/build-module/search-control/index.js +31 -29
  1328. package/build-module/search-control/index.js.map +1 -1
  1329. package/build-module/search-control/index.native.js +46 -37
  1330. package/build-module/search-control/index.native.js.map +1 -1
  1331. package/build-module/select-control/chevron-down.js +9 -5
  1332. package/build-module/select-control/chevron-down.js.map +1 -1
  1333. package/build-module/select-control/index.js +40 -37
  1334. package/build-module/select-control/index.js.map +1 -1
  1335. package/build-module/select-control/index.native.js +2 -2
  1336. package/build-module/select-control/index.native.js.map +1 -1
  1337. package/build-module/shortcut/index.js +5 -4
  1338. package/build-module/shortcut/index.js.map +1 -1
  1339. package/build-module/slot-fill/bubbles-virtually/fill.js +5 -4
  1340. package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
  1341. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js +1 -1
  1342. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
  1343. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js +7 -6
  1344. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  1345. package/build-module/slot-fill/bubbles-virtually/slot.js +2 -2
  1346. package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
  1347. package/build-module/slot-fill/index.js +22 -12
  1348. package/build-module/slot-fill/index.js.map +1 -1
  1349. package/build-module/slot-fill/index.native.js +4 -4
  1350. package/build-module/slot-fill/index.native.js.map +1 -1
  1351. package/build-module/slot-fill/provider.js +7 -6
  1352. package/build-module/slot-fill/provider.js.map +1 -1
  1353. package/build-module/slot-fill/slot.js +17 -12
  1354. package/build-module/slot-fill/slot.js.map +1 -1
  1355. package/build-module/snackbar/index.js +36 -31
  1356. package/build-module/snackbar/index.js.map +1 -1
  1357. package/build-module/snackbar/list.js +32 -26
  1358. package/build-module/snackbar/list.js.map +1 -1
  1359. package/build-module/spacer/component.js +2 -2
  1360. package/build-module/spacer/component.js.map +1 -1
  1361. package/build-module/spinner/index.js +16 -14
  1362. package/build-module/spinner/index.js.map +1 -1
  1363. package/build-module/spinner/index.native.js +2 -2
  1364. package/build-module/spinner/index.native.js.map +1 -1
  1365. package/build-module/style-provider/index.js +5 -5
  1366. package/build-module/style-provider/index.js.map +1 -1
  1367. package/build-module/surface/component.js +2 -2
  1368. package/build-module/surface/component.js.map +1 -1
  1369. package/build-module/tab-panel/index.js +31 -27
  1370. package/build-module/tab-panel/index.js.map +1 -1
  1371. package/build-module/tabs/index.js +5 -4
  1372. package/build-module/tabs/index.js.map +1 -1
  1373. package/build-module/tabs/styles.js +3 -13
  1374. package/build-module/tabs/styles.js.map +1 -1
  1375. package/build-module/tabs/tab.js +6 -5
  1376. package/build-module/tabs/tab.js.map +1 -1
  1377. package/build-module/tabs/tablist.js +102 -8
  1378. package/build-module/tabs/tablist.js.map +1 -1
  1379. package/build-module/tabs/tabpanel.js +6 -5
  1380. package/build-module/tabs/tabpanel.js.map +1 -1
  1381. package/build-module/text/component.js +2 -2
  1382. package/build-module/text/component.js.map +1 -1
  1383. package/build-module/text-control/index.js +17 -16
  1384. package/build-module/text-control/index.js.map +1 -1
  1385. package/build-module/text-control/index.native.js +2 -2
  1386. package/build-module/text-control/index.native.js.map +1 -1
  1387. package/build-module/text-highlight/index.js +6 -3
  1388. package/build-module/text-highlight/index.js.map +1 -1
  1389. package/build-module/textarea-control/index.js +14 -13
  1390. package/build-module/textarea-control/index.js.map +1 -1
  1391. package/build-module/textarea-control/index.native.js +16 -15
  1392. package/build-module/textarea-control/index.native.js.map +1 -1
  1393. package/build-module/theme/color-algorithms.js +2 -2
  1394. package/build-module/theme/color-algorithms.js.map +1 -1
  1395. package/build-module/theme/index.js +2 -2
  1396. package/build-module/theme/index.js.map +1 -1
  1397. package/build-module/tip/index.js +10 -7
  1398. package/build-module/tip/index.js.map +1 -1
  1399. package/build-module/toggle-control/index.js +22 -18
  1400. package/build-module/toggle-control/index.js.map +1 -1
  1401. package/build-module/toggle-control/index.native.js +2 -2
  1402. package/build-module/toggle-control/index.native.js.map +1 -1
  1403. package/build-module/toggle-group-control/toggle-group-control/as-button-group.js +11 -9
  1404. package/build-module/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -1
  1405. package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js +13 -11
  1406. package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
  1407. package/build-module/toggle-group-control/toggle-group-control/component.js +23 -15
  1408. package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
  1409. package/build-module/toggle-group-control/toggle-group-control-option/component.js +5 -4
  1410. package/build-module/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  1411. package/build-module/toggle-group-control/toggle-group-control-option-base/component.js +52 -38
  1412. package/build-module/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  1413. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js +7 -6
  1414. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  1415. package/build-module/toolbar/toolbar/index.js +13 -12
  1416. package/build-module/toolbar/toolbar/index.js.map +1 -1
  1417. package/build-module/toolbar/toolbar/toolbar-container.js +11 -9
  1418. package/build-module/toolbar/toolbar/toolbar-container.js.map +1 -1
  1419. package/build-module/toolbar/toolbar/toolbar-container.native.js +4 -2
  1420. package/build-module/toolbar/toolbar/toolbar-container.native.js.map +1 -1
  1421. package/build-module/toolbar/toolbar-button/index.js +37 -33
  1422. package/build-module/toolbar/toolbar-button/index.js.map +1 -1
  1423. package/build-module/toolbar/toolbar-button/toolbar-button-container.js +5 -4
  1424. package/build-module/toolbar/toolbar-button/toolbar-button-container.js.map +1 -1
  1425. package/build-module/toolbar/toolbar-button/toolbar-button-container.native.js +4 -2
  1426. package/build-module/toolbar/toolbar-button/toolbar-button-container.native.js.map +1 -1
  1427. package/build-module/toolbar/toolbar-dropdown-menu/index.js +12 -11
  1428. package/build-module/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
  1429. package/build-module/toolbar/toolbar-group/index.js +12 -11
  1430. package/build-module/toolbar/toolbar-group/index.js.map +1 -1
  1431. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js +6 -5
  1432. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
  1433. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.native.js +8 -7
  1434. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.native.js.map +1 -1
  1435. package/build-module/toolbar/toolbar-group/toolbar-group-container.js +5 -4
  1436. package/build-module/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
  1437. package/build-module/toolbar/toolbar-group/toolbar-group-container.native.js +5 -4
  1438. package/build-module/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
  1439. package/build-module/toolbar/toolbar-item/index.js +10 -7
  1440. package/build-module/toolbar/toolbar-item/index.js.map +1 -1
  1441. package/build-module/toolbar/toolbar-item/index.native.js +1 -1
  1442. package/build-module/toolbar/toolbar-item/index.native.js.map +1 -1
  1443. package/build-module/tools-panel/tools-panel/component.js +15 -12
  1444. package/build-module/tools-panel/tools-panel/component.js.map +1 -1
  1445. package/build-module/tools-panel/tools-panel/hook.js +5 -6
  1446. package/build-module/tools-panel/tools-panel/hook.js.map +1 -1
  1447. package/build-module/tools-panel/tools-panel-header/component.js +110 -94
  1448. package/build-module/tools-panel/tools-panel-header/component.js.map +1 -1
  1449. package/build-module/tools-panel/tools-panel-item/component.js +6 -5
  1450. package/build-module/tools-panel/tools-panel-item/component.js.map +1 -1
  1451. package/build-module/tools-panel/tools-panel-item/hook.js +6 -8
  1452. package/build-module/tools-panel/tools-panel-item/hook.js.map +1 -1
  1453. package/build-module/tools-panel/types.js.map +1 -1
  1454. package/build-module/tooltip/index.js +26 -26
  1455. package/build-module/tooltip/index.js.map +1 -1
  1456. package/build-module/tooltip/index.native.js +35 -24
  1457. package/build-module/tooltip/index.native.js.map +1 -1
  1458. package/build-module/tree-grid/cell.js +11 -6
  1459. package/build-module/tree-grid/cell.js.map +1 -1
  1460. package/build-module/tree-grid/index.js +16 -10
  1461. package/build-module/tree-grid/index.js.map +1 -1
  1462. package/build-module/tree-grid/item.js +5 -4
  1463. package/build-module/tree-grid/item.js.map +1 -1
  1464. package/build-module/tree-grid/roving-tab-index-item.js +5 -4
  1465. package/build-module/tree-grid/roving-tab-index-item.js.map +1 -1
  1466. package/build-module/tree-grid/roving-tab-index.js +5 -4
  1467. package/build-module/tree-grid/roving-tab-index.js.map +1 -1
  1468. package/build-module/tree-grid/row.js +5 -5
  1469. package/build-module/tree-grid/row.js.map +1 -1
  1470. package/build-module/tree-select/index.js +2 -2
  1471. package/build-module/tree-select/index.js.map +1 -1
  1472. package/build-module/truncate/component.js +2 -2
  1473. package/build-module/truncate/component.js.map +1 -1
  1474. package/build-module/truncate/hook.js +1 -1
  1475. package/build-module/truncate/hook.js.map +1 -1
  1476. package/build-module/unit-control/index.js +5 -5
  1477. package/build-module/unit-control/index.js.map +1 -1
  1478. package/build-module/unit-control/index.native.js +58 -48
  1479. package/build-module/unit-control/index.native.js.map +1 -1
  1480. package/build-module/unit-control/unit-select-control.js +14 -12
  1481. package/build-module/unit-control/unit-select-control.js.map +1 -1
  1482. package/build-module/utils/style-mixins.js +0 -1
  1483. package/build-module/utils/style-mixins.js.map +1 -1
  1484. package/build-module/v-stack/component.js +2 -2
  1485. package/build-module/v-stack/component.js.map +1 -1
  1486. package/build-module/view/component.js +2 -3
  1487. package/build-module/view/component.js.map +1 -1
  1488. package/build-module/visually-hidden/component.js +2 -2
  1489. package/build-module/visually-hidden/component.js.map +1 -1
  1490. package/build-module/z-stack/component.js +8 -7
  1491. package/build-module/z-stack/component.js.map +1 -1
  1492. package/build-style/style-rtl.css +29 -20
  1493. package/build-style/style.css +29 -20
  1494. package/build-types/alignment-matrix-control/cell.d.ts +1 -1
  1495. package/build-types/alignment-matrix-control/cell.d.ts.map +1 -1
  1496. package/build-types/alignment-matrix-control/icon.d.ts +1 -1
  1497. package/build-types/alignment-matrix-control/icon.d.ts.map +1 -1
  1498. package/build-types/alignment-matrix-control/index.d.ts +1 -1
  1499. package/build-types/alignment-matrix-control/index.d.ts.map +1 -1
  1500. package/build-types/alignment-matrix-control/stories/index.story.d.ts +2 -2
  1501. package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -1
  1502. package/build-types/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.d.ts +4 -4
  1503. package/build-types/alignment-matrix-control/styles/alignment-matrix-control-styles.d.ts +4 -4
  1504. package/build-types/angle-picker-control/angle-circle.d.ts +1 -1
  1505. package/build-types/angle-picker-control/angle-circle.d.ts.map +1 -1
  1506. package/build-types/angle-picker-control/index.d.ts +1 -1
  1507. package/build-types/angle-picker-control/stories/index.story.d.ts +1 -1
  1508. package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts +4 -4
  1509. package/build-types/animate/index.d.ts.map +1 -1
  1510. package/build-types/animate/stories/index.story.d.ts.map +1 -1
  1511. package/build-types/autocomplete/autocompleter-ui.d.ts +1 -1
  1512. package/build-types/autocomplete/autocompleter-ui.d.ts.map +1 -1
  1513. package/build-types/autocomplete/index.d.ts +3 -3
  1514. package/build-types/autocomplete/index.d.ts.map +1 -1
  1515. package/build-types/base-control/hooks.d.ts +2 -1
  1516. package/build-types/base-control/hooks.d.ts.map +1 -1
  1517. package/build-types/base-control/index.d.ts +2 -2
  1518. package/build-types/base-control/index.d.ts.map +1 -1
  1519. package/build-types/base-control/styles/base-control-styles.d.ts +5 -5
  1520. package/build-types/base-control/types.d.ts +1 -2
  1521. package/build-types/base-control/types.d.ts.map +1 -1
  1522. package/build-types/border-box-control/border-box-control/component.d.ts +1 -1
  1523. package/build-types/border-box-control/border-box-control/hook.d.ts +74 -64
  1524. package/build-types/border-box-control/border-box-control/hook.d.ts.map +1 -1
  1525. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +76 -67
  1526. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts.map +1 -1
  1527. package/build-types/border-box-control/border-box-control-split-controls/component.d.ts +1 -1
  1528. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +74 -64
  1529. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts.map +1 -1
  1530. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +73 -63
  1531. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts.map +1 -1
  1532. package/build-types/border-box-control/stories/index.story.d.ts +2 -2
  1533. package/build-types/border-box-control/stories/index.story.d.ts.map +1 -1
  1534. package/build-types/border-control/border-control/component.d.ts +1 -0
  1535. package/build-types/border-control/border-control/component.d.ts.map +1 -1
  1536. package/build-types/border-control/border-control/hook.d.ts +74 -63
  1537. package/build-types/border-control/border-control/hook.d.ts.map +1 -1
  1538. package/build-types/border-control/border-control-dropdown/hook.d.ts +73 -63
  1539. package/build-types/border-control/border-control-dropdown/hook.d.ts.map +1 -1
  1540. package/build-types/border-control/border-control-style-picker/component.d.ts +1 -1
  1541. package/build-types/border-control/stories/index.story.d.ts +12 -6
  1542. package/build-types/border-control/stories/index.story.d.ts.map +1 -1
  1543. package/build-types/border-control/types.d.ts +4 -0
  1544. package/build-types/border-control/types.d.ts.map +1 -1
  1545. package/build-types/box-control/all-input-control.d.ts +1 -1
  1546. package/build-types/box-control/all-input-control.d.ts.map +1 -1
  1547. package/build-types/box-control/axial-input-controls.d.ts +1 -1
  1548. package/build-types/box-control/axial-input-controls.d.ts.map +1 -1
  1549. package/build-types/box-control/icon.d.ts +1 -1
  1550. package/build-types/box-control/icon.d.ts.map +1 -1
  1551. package/build-types/box-control/index.d.ts +1 -1
  1552. package/build-types/box-control/index.d.ts.map +1 -1
  1553. package/build-types/box-control/input-controls.d.ts +1 -1
  1554. package/build-types/box-control/input-controls.d.ts.map +1 -1
  1555. package/build-types/box-control/linked-button.d.ts +1 -1
  1556. package/build-types/box-control/linked-button.d.ts.map +1 -1
  1557. package/build-types/box-control/stories/index.story.d.ts +547 -498
  1558. package/build-types/box-control/stories/index.story.d.ts.map +1 -1
  1559. package/build-types/box-control/styles/box-control-icon-styles.d.ts +6 -6
  1560. package/build-types/box-control/styles/box-control-styles.d.ts +6 -6
  1561. package/build-types/button/deprecated.d.ts +13 -59
  1562. package/build-types/button/deprecated.d.ts.map +1 -1
  1563. package/build-types/button/index.d.ts +1 -1
  1564. package/build-types/button/index.d.ts.map +1 -1
  1565. package/build-types/button/stories/index.story.d.ts +1 -1
  1566. package/build-types/button/stories/index.story.d.ts.map +1 -1
  1567. package/build-types/button-group/index.d.ts +1 -1
  1568. package/build-types/button-group/index.d.ts.map +1 -1
  1569. package/build-types/card/card/hook.d.ts +73 -63
  1570. package/build-types/card/card/hook.d.ts.map +1 -1
  1571. package/build-types/card/card-body/hook.d.ts +73 -63
  1572. package/build-types/card/card-body/hook.d.ts.map +1 -1
  1573. package/build-types/card/card-divider/component.d.ts +1 -1
  1574. package/build-types/card/card-divider/hook.d.ts +74 -64
  1575. package/build-types/card/card-divider/hook.d.ts.map +1 -1
  1576. package/build-types/card/card-footer/hook.d.ts +73 -63
  1577. package/build-types/card/card-footer/hook.d.ts.map +1 -1
  1578. package/build-types/card/card-header/hook.d.ts +73 -63
  1579. package/build-types/card/card-header/hook.d.ts.map +1 -1
  1580. package/build-types/card/card-media/hook.d.ts +73 -63
  1581. package/build-types/card/card-media/hook.d.ts.map +1 -1
  1582. package/build-types/card/stories/index.story.d.ts +2 -2
  1583. package/build-types/checkbox-control/index.d.ts +1 -1
  1584. package/build-types/checkbox-control/index.d.ts.map +1 -1
  1585. package/build-types/circular-option-picker/circular-option-picker-actions.d.ts +2 -2
  1586. package/build-types/circular-option-picker/circular-option-picker-actions.d.ts.map +1 -1
  1587. package/build-types/circular-option-picker/circular-option-picker-option-group.d.ts +1 -1
  1588. package/build-types/circular-option-picker/circular-option-picker-option-group.d.ts.map +1 -1
  1589. package/build-types/circular-option-picker/circular-option-picker-option.d.ts +1 -1
  1590. package/build-types/circular-option-picker/circular-option-picker-option.d.ts.map +1 -1
  1591. package/build-types/circular-option-picker/circular-option-picker.d.ts +1 -1
  1592. package/build-types/circular-option-picker/circular-option-picker.d.ts.map +1 -1
  1593. package/build-types/clipboard-button/index.d.ts +1 -1
  1594. package/build-types/clipboard-button/index.d.ts.map +1 -1
  1595. package/build-types/color-indicator/index.d.ts +1 -1
  1596. package/build-types/color-indicator/index.d.ts.map +1 -1
  1597. package/build-types/color-palette/index.d.ts +1 -1
  1598. package/build-types/color-palette/index.d.ts.map +1 -1
  1599. package/build-types/color-palette/stories/index.story.d.ts +3 -0
  1600. package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
  1601. package/build-types/color-palette/styles.d.ts +1 -1
  1602. package/build-types/color-picker/color-copy-button.d.ts +1 -1
  1603. package/build-types/color-picker/color-copy-button.d.ts.map +1 -1
  1604. package/build-types/color-picker/color-input.d.ts +1 -1
  1605. package/build-types/color-picker/color-input.d.ts.map +1 -1
  1606. package/build-types/color-picker/component.d.ts +2 -2
  1607. package/build-types/color-picker/component.d.ts.map +1 -1
  1608. package/build-types/color-picker/hex-input.d.ts +1 -1
  1609. package/build-types/color-picker/hex-input.d.ts.map +1 -1
  1610. package/build-types/color-picker/hsl-input.d.ts +1 -1
  1611. package/build-types/color-picker/hsl-input.d.ts.map +1 -1
  1612. package/build-types/color-picker/input-with-slider.d.ts +1 -1
  1613. package/build-types/color-picker/input-with-slider.d.ts.map +1 -1
  1614. package/build-types/color-picker/legacy-adapter.d.ts +1 -1
  1615. package/build-types/color-picker/legacy-adapter.d.ts.map +1 -1
  1616. package/build-types/color-picker/picker.d.ts +1 -1
  1617. package/build-types/color-picker/picker.d.ts.map +1 -1
  1618. package/build-types/color-picker/rgb-input.d.ts +1 -1
  1619. package/build-types/color-picker/rgb-input.d.ts.map +1 -1
  1620. package/build-types/color-picker/stories/index.story.d.ts +1 -1
  1621. package/build-types/color-picker/stories/index.story.d.ts.map +1 -1
  1622. package/build-types/color-picker/styles.d.ts +8 -8
  1623. package/build-types/combobox-control/index.d.ts +3 -1
  1624. package/build-types/combobox-control/index.d.ts.map +1 -1
  1625. package/build-types/combobox-control/stories/index.story.d.ts +46 -2
  1626. package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
  1627. package/build-types/combobox-control/styles.d.ts +1 -1
  1628. package/build-types/combobox-control/types.d.ts +8 -0
  1629. package/build-types/combobox-control/types.d.ts.map +1 -1
  1630. package/build-types/composite/current/stories/utils.d.ts +1 -1
  1631. package/build-types/composite/current/stories/utils.d.ts.map +1 -1
  1632. package/build-types/composite/legacy/stories/utils.d.ts +1 -1
  1633. package/build-types/composite/legacy/stories/utils.d.ts.map +1 -1
  1634. package/build-types/confirm-dialog/stories/index.story.d.ts +2 -2
  1635. package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -1
  1636. package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts +2 -2
  1637. package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -1
  1638. package/build-types/custom-gradient-picker/gradient-bar/index.d.ts +1 -1
  1639. package/build-types/custom-gradient-picker/gradient-bar/index.d.ts.map +1 -1
  1640. package/build-types/custom-gradient-picker/index.d.ts +1 -1
  1641. package/build-types/custom-gradient-picker/index.d.ts.map +1 -1
  1642. package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts +2 -2
  1643. package/build-types/custom-select-control/index.d.ts +2 -2
  1644. package/build-types/custom-select-control/index.d.ts.map +1 -1
  1645. package/build-types/custom-select-control-v2/custom-select.d.ts +2 -2
  1646. package/build-types/custom-select-control-v2/custom-select.d.ts.map +1 -1
  1647. package/build-types/custom-select-control-v2/default-component/index.d.ts +1 -1
  1648. package/build-types/custom-select-control-v2/default-component/index.d.ts.map +1 -1
  1649. package/build-types/custom-select-control-v2/item.d.ts +1 -1
  1650. package/build-types/custom-select-control-v2/item.d.ts.map +1 -1
  1651. package/build-types/custom-select-control-v2/legacy-component/index.d.ts +1 -1
  1652. package/build-types/custom-select-control-v2/legacy-component/index.d.ts.map +1 -1
  1653. package/build-types/custom-select-control-v2/stories/default.story.d.ts +18 -6
  1654. package/build-types/custom-select-control-v2/stories/default.story.d.ts.map +1 -1
  1655. package/build-types/custom-select-control-v2/styles.d.ts +10 -10
  1656. package/build-types/custom-select-control-v2/styles.d.ts.map +1 -1
  1657. package/build-types/custom-select-control-v2/types.d.ts +11 -15
  1658. package/build-types/custom-select-control-v2/types.d.ts.map +1 -1
  1659. package/build-types/dashicon/index.d.ts +1 -1
  1660. package/build-types/dashicon/index.d.ts.map +1 -1
  1661. package/build-types/date-time/date/index.d.ts +1 -1
  1662. package/build-types/date-time/date/index.d.ts.map +1 -1
  1663. package/build-types/date-time/date/styles.d.ts +6 -6
  1664. package/build-types/date-time/date-time/styles.d.ts +2 -2
  1665. package/build-types/date-time/time/index.d.ts +1 -1
  1666. package/build-types/date-time/time/index.d.ts.map +1 -1
  1667. package/build-types/date-time/time/styles.d.ts +14 -14
  1668. package/build-types/date-time/time/timezone.d.ts +1 -1
  1669. package/build-types/date-time/time/timezone.d.ts.map +1 -1
  1670. package/build-types/dimension-control/index.d.ts +1 -1
  1671. package/build-types/dimension-control/index.d.ts.map +1 -1
  1672. package/build-types/dimension-control/stories/index.story.d.ts +10 -2
  1673. package/build-types/dimension-control/stories/index.story.d.ts.map +1 -1
  1674. package/build-types/disabled/index.d.ts +1 -1
  1675. package/build-types/disabled/index.d.ts.map +1 -1
  1676. package/build-types/disclosure/index.d.ts +1 -1
  1677. package/build-types/disclosure/index.d.ts.map +1 -1
  1678. package/build-types/divider/component.d.ts +1 -1
  1679. package/build-types/divider/styles.d.ts +2 -2
  1680. package/build-types/draggable/index.d.ts +1 -1
  1681. package/build-types/draggable/index.d.ts.map +1 -1
  1682. package/build-types/drop-zone/index.d.ts +1 -1
  1683. package/build-types/drop-zone/index.d.ts.map +1 -1
  1684. package/build-types/drop-zone/stories/index.story.d.ts +1 -1
  1685. package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
  1686. package/build-types/dropdown/index.d.ts +1 -1
  1687. package/build-types/dropdown/index.d.ts.map +1 -1
  1688. package/build-types/dropdown/stories/index.story.d.ts +4 -4
  1689. package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
  1690. package/build-types/dropdown/styles.d.ts +1 -1
  1691. package/build-types/dropdown-menu/index.d.ts +1 -1
  1692. package/build-types/dropdown-menu/index.d.ts.map +1 -1
  1693. package/build-types/dropdown-menu/stories/index.story.d.ts +2 -2
  1694. package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
  1695. package/build-types/dropdown-menu-v2/index.d.ts +7 -7
  1696. package/build-types/dropdown-menu-v2/index.d.ts.map +1 -1
  1697. package/build-types/dropdown-menu-v2/stories/index.story.d.ts.map +1 -1
  1698. package/build-types/dropdown-menu-v2/styles.d.ts +12 -12
  1699. package/build-types/duotone-picker/color-list-picker/index.d.ts +1 -1
  1700. package/build-types/duotone-picker/color-list-picker/index.d.ts.map +1 -1
  1701. package/build-types/duotone-picker/custom-duotone-bar.d.ts +1 -1
  1702. package/build-types/duotone-picker/custom-duotone-bar.d.ts.map +1 -1
  1703. package/build-types/duotone-picker/duotone-picker.d.ts +1 -1
  1704. package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -1
  1705. package/build-types/duotone-picker/duotone-swatch.d.ts +1 -1
  1706. package/build-types/duotone-picker/duotone-swatch.d.ts.map +1 -1
  1707. package/build-types/elevation/hook.d.ts +72 -62
  1708. package/build-types/elevation/hook.d.ts.map +1 -1
  1709. package/build-types/flex/flex/hook.d.ts +75 -65
  1710. package/build-types/flex/flex/hook.d.ts.map +1 -1
  1711. package/build-types/flex/flex-block/hook.d.ts +73 -63
  1712. package/build-types/flex/flex-block/hook.d.ts.map +1 -1
  1713. package/build-types/flex/flex-item/hook.d.ts +73 -63
  1714. package/build-types/flex/flex-item/hook.d.ts.map +1 -1
  1715. package/build-types/focal-point-picker/controls.d.ts +1 -1
  1716. package/build-types/focal-point-picker/controls.d.ts.map +1 -1
  1717. package/build-types/focal-point-picker/focal-point.d.ts +4 -1
  1718. package/build-types/focal-point-picker/focal-point.d.ts.map +1 -1
  1719. package/build-types/focal-point-picker/grid.d.ts +1 -1
  1720. package/build-types/focal-point-picker/grid.d.ts.map +1 -1
  1721. package/build-types/focal-point-picker/index.d.ts +1 -1
  1722. package/build-types/focal-point-picker/index.d.ts.map +1 -1
  1723. package/build-types/focal-point-picker/media.d.ts +1 -1
  1724. package/build-types/focal-point-picker/media.d.ts.map +1 -1
  1725. package/build-types/focal-point-picker/stories/index.story.d.ts +8 -8
  1726. package/build-types/focal-point-picker/stories/index.story.d.ts.map +1 -1
  1727. package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts +9 -9
  1728. package/build-types/focal-point-picker/styles/focal-point-style.d.ts +1 -1
  1729. package/build-types/focal-point-picker/styles/focal-point-style.d.ts.map +1 -1
  1730. package/build-types/focal-point-picker/test/index.d.ts +2 -0
  1731. package/build-types/focal-point-picker/test/index.d.ts.map +1 -0
  1732. package/build-types/focal-point-picker/test/media.d.ts +2 -0
  1733. package/build-types/focal-point-picker/test/media.d.ts.map +1 -0
  1734. package/build-types/focusable-iframe/index.d.ts +1 -1
  1735. package/build-types/focusable-iframe/index.d.ts.map +1 -1
  1736. package/build-types/font-size-picker/font-size-picker-select.d.ts +1 -1
  1737. package/build-types/font-size-picker/font-size-picker-select.d.ts.map +1 -1
  1738. package/build-types/font-size-picker/font-size-picker-toggle-group.d.ts +1 -1
  1739. package/build-types/font-size-picker/font-size-picker-toggle-group.d.ts.map +1 -1
  1740. package/build-types/font-size-picker/styles.d.ts +5 -5
  1741. package/build-types/form-file-upload/index.d.ts +1 -1
  1742. package/build-types/form-file-upload/index.d.ts.map +1 -1
  1743. package/build-types/form-file-upload/stories/index.story.d.ts +5 -5
  1744. package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
  1745. package/build-types/form-toggle/index.d.ts +2 -2
  1746. package/build-types/form-toggle/index.d.ts.map +1 -1
  1747. package/build-types/form-token-field/index.d.ts +1 -1
  1748. package/build-types/form-token-field/index.d.ts.map +1 -1
  1749. package/build-types/form-token-field/styles.d.ts +1 -1
  1750. package/build-types/form-token-field/suggestions-list.d.ts +2 -1
  1751. package/build-types/form-token-field/suggestions-list.d.ts.map +1 -1
  1752. package/build-types/form-token-field/token-input.d.ts +2 -2
  1753. package/build-types/form-token-field/token-input.d.ts.map +1 -1
  1754. package/build-types/form-token-field/token.d.ts +1 -1
  1755. package/build-types/form-token-field/token.d.ts.map +1 -1
  1756. package/build-types/gradient-picker/index.d.ts +1 -1
  1757. package/build-types/gradient-picker/index.d.ts.map +1 -1
  1758. package/build-types/grid/hook.d.ts +73 -63
  1759. package/build-types/grid/hook.d.ts.map +1 -1
  1760. package/build-types/guide/icons.d.ts +1 -1
  1761. package/build-types/guide/icons.d.ts.map +1 -1
  1762. package/build-types/guide/index.d.ts +1 -1
  1763. package/build-types/guide/index.d.ts.map +1 -1
  1764. package/build-types/guide/page-control.d.ts +1 -1
  1765. package/build-types/guide/page-control.d.ts.map +1 -1
  1766. package/build-types/guide/page.d.ts +1 -1
  1767. package/build-types/guide/page.d.ts.map +1 -1
  1768. package/build-types/h-stack/component.d.ts +1 -1
  1769. package/build-types/h-stack/hook.d.ts +75 -65
  1770. package/build-types/h-stack/hook.d.ts.map +1 -1
  1771. package/build-types/heading/hook.d.ts +72 -62
  1772. package/build-types/heading/hook.d.ts.map +1 -1
  1773. package/build-types/higher-order/navigate-regions/index.d.ts +1 -1
  1774. package/build-types/higher-order/with-constrained-tabbing/index.d.ts +1 -1
  1775. package/build-types/higher-order/with-constrained-tabbing/index.d.ts.map +1 -1
  1776. package/build-types/higher-order/with-fallback-styles/index.d.ts +1 -1
  1777. package/build-types/higher-order/with-filters/index.d.ts +2 -2
  1778. package/build-types/higher-order/with-focus-outside/index.d.ts +1 -1
  1779. package/build-types/higher-order/with-notices/index.d.ts +2 -2
  1780. package/build-types/higher-order/with-spoken-messages/index.d.ts +1 -1
  1781. package/build-types/icon/index.d.ts +1 -1
  1782. package/build-types/icon/index.d.ts.map +1 -1
  1783. package/build-types/index.d.ts +1 -0
  1784. package/build-types/index.d.ts.map +1 -1
  1785. package/build-types/input-control/backdrop.d.ts +1 -1
  1786. package/build-types/input-control/backdrop.d.ts.map +1 -1
  1787. package/build-types/input-control/index.d.ts +1 -1
  1788. package/build-types/input-control/index.d.ts.map +1 -1
  1789. package/build-types/input-control/input-base.d.ts +4 -5
  1790. package/build-types/input-control/input-base.d.ts.map +1 -1
  1791. package/build-types/input-control/input-field.d.ts +1 -1
  1792. package/build-types/input-control/input-field.d.ts.map +1 -1
  1793. package/build-types/input-control/label.d.ts +1 -1
  1794. package/build-types/input-control/label.d.ts.map +1 -1
  1795. package/build-types/input-control/styles/input-control-styles.d.ts +8 -8
  1796. package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
  1797. package/build-types/isolated-event-container/index.d.ts +1 -1
  1798. package/build-types/isolated-event-container/index.d.ts.map +1 -1
  1799. package/build-types/item-group/item/hook.d.ts +72 -62
  1800. package/build-types/item-group/item/hook.d.ts.map +1 -1
  1801. package/build-types/item-group/item-group/hook.d.ts +73 -63
  1802. package/build-types/item-group/item-group/hook.d.ts.map +1 -1
  1803. package/build-types/keyboard-shortcuts/index.d.ts +1 -1
  1804. package/build-types/keyboard-shortcuts/index.d.ts.map +1 -1
  1805. package/build-types/menu-group/index.d.ts +1 -1
  1806. package/build-types/menu-group/index.d.ts.map +1 -1
  1807. package/build-types/menu-item/index.d.ts +1 -1
  1808. package/build-types/menu-item/index.d.ts.map +1 -1
  1809. package/build-types/menu-item/stories/index.story.d.ts +4 -4
  1810. package/build-types/menu-item/stories/index.story.d.ts.map +1 -1
  1811. package/build-types/menu-items-choice/index.d.ts +1 -1
  1812. package/build-types/menu-items-choice/index.d.ts.map +1 -1
  1813. package/build-types/navigable-container/container.d.ts +1 -1
  1814. package/build-types/navigable-container/menu.d.ts +2 -2
  1815. package/build-types/navigable-container/menu.d.ts.map +1 -1
  1816. package/build-types/navigable-container/tabbable.d.ts +2 -2
  1817. package/build-types/navigable-container/tabbable.d.ts.map +1 -1
  1818. package/build-types/navigation/back-button/index.d.ts.map +1 -1
  1819. package/build-types/navigation/group/index.d.ts +1 -1
  1820. package/build-types/navigation/group/index.d.ts.map +1 -1
  1821. package/build-types/navigation/index.d.ts +1 -1
  1822. package/build-types/navigation/index.d.ts.map +1 -1
  1823. package/build-types/navigation/item/base-content.d.ts +1 -1
  1824. package/build-types/navigation/item/base-content.d.ts.map +1 -1
  1825. package/build-types/navigation/item/base.d.ts +1 -1
  1826. package/build-types/navigation/item/base.d.ts.map +1 -1
  1827. package/build-types/navigation/item/index.d.ts +1 -1
  1828. package/build-types/navigation/item/index.d.ts.map +1 -1
  1829. package/build-types/navigation/menu/index.d.ts +1 -1
  1830. package/build-types/navigation/menu/index.d.ts.map +1 -1
  1831. package/build-types/navigation/menu/menu-title-search.d.ts +1 -1
  1832. package/build-types/navigation/menu/menu-title.d.ts +1 -1
  1833. package/build-types/navigation/menu/menu-title.d.ts.map +1 -1
  1834. package/build-types/navigation/menu/search-no-results-found.d.ts +1 -1
  1835. package/build-types/navigation/menu/search-no-results-found.d.ts.map +1 -1
  1836. package/build-types/navigation/styles/navigation-styles.d.ts +11 -11
  1837. package/build-types/navigator/navigator-back-button/component.d.ts +2 -2
  1838. package/build-types/navigator/navigator-back-button/hook.d.ts +78 -69
  1839. package/build-types/navigator/navigator-back-button/hook.d.ts.map +1 -1
  1840. package/build-types/navigator/navigator-button/component.d.ts +2 -2
  1841. package/build-types/navigator/navigator-button/hook.d.ts +78 -69
  1842. package/build-types/navigator/navigator-button/hook.d.ts.map +1 -1
  1843. package/build-types/navigator/navigator-to-parent-button/component.d.ts +2 -2
  1844. package/build-types/notice/index.d.ts +1 -1
  1845. package/build-types/notice/index.d.ts.map +1 -1
  1846. package/build-types/notice/list.d.ts +1 -1
  1847. package/build-types/notice/list.d.ts.map +1 -1
  1848. package/build-types/number-control/index.d.ts +2 -2
  1849. package/build-types/number-control/index.d.ts.map +1 -1
  1850. package/build-types/number-control/stories/index.story.d.ts +2 -2
  1851. package/build-types/number-control/stories/index.story.d.ts.map +1 -1
  1852. package/build-types/palette-edit/index.d.ts +1 -1
  1853. package/build-types/palette-edit/index.d.ts.map +1 -1
  1854. package/build-types/palette-edit/styles.d.ts +1007 -756
  1855. package/build-types/palette-edit/styles.d.ts.map +1 -1
  1856. package/build-types/panel/body.d.ts +1 -1
  1857. package/build-types/panel/body.d.ts.map +1 -1
  1858. package/build-types/panel/header.d.ts +1 -1
  1859. package/build-types/panel/header.d.ts.map +1 -1
  1860. package/build-types/placeholder/index.d.ts +1 -1
  1861. package/build-types/placeholder/index.d.ts.map +1 -1
  1862. package/build-types/popover/index.d.ts +1 -1
  1863. package/build-types/popover/index.d.ts.map +1 -1
  1864. package/build-types/popover/overlay-middlewares.d.ts +2 -2
  1865. package/build-types/popover/stories/e2e/index.story.d.ts +2 -2
  1866. package/build-types/popover/stories/e2e/index.story.d.ts.map +1 -1
  1867. package/build-types/popover/test/utils/index.d.ts +1 -1
  1868. package/build-types/popover/test/utils/index.d.ts.map +1 -1
  1869. package/build-types/private-apis.d.ts.map +1 -1
  1870. package/build-types/progress-bar/index.d.ts +16 -1
  1871. package/build-types/progress-bar/index.d.ts.map +1 -1
  1872. package/build-types/progress-bar/stories/index.story.d.ts +18 -0
  1873. package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
  1874. package/build-types/progress-bar/styles.d.ts +3 -3
  1875. package/build-types/progress-bar/styles.d.ts.map +1 -1
  1876. package/build-types/query-controls/author-select.d.ts +1 -1
  1877. package/build-types/query-controls/author-select.d.ts.map +1 -1
  1878. package/build-types/query-controls/category-select.d.ts +1 -1
  1879. package/build-types/query-controls/category-select.d.ts.map +1 -1
  1880. package/build-types/query-controls/index.d.ts +1 -1
  1881. package/build-types/query-controls/index.d.ts.map +1 -1
  1882. package/build-types/radio-control/index.d.ts +1 -1
  1883. package/build-types/radio-control/index.d.ts.map +1 -1
  1884. package/build-types/radio-group/index.d.ts +1 -1
  1885. package/build-types/radio-group/index.d.ts.map +1 -1
  1886. package/build-types/radio-group/radio.d.ts +1 -1
  1887. package/build-types/radio-group/radio.d.ts.map +1 -1
  1888. package/build-types/range-control/index.d.ts +1 -1
  1889. package/build-types/range-control/index.d.ts.map +1 -1
  1890. package/build-types/range-control/input-range.d.ts +1 -1
  1891. package/build-types/range-control/mark.d.ts +1 -1
  1892. package/build-types/range-control/mark.d.ts.map +1 -1
  1893. package/build-types/range-control/rail.d.ts +1 -1
  1894. package/build-types/range-control/rail.d.ts.map +1 -1
  1895. package/build-types/range-control/styles/range-control-styles.d.ts +16 -16
  1896. package/build-types/range-control/tooltip.d.ts +1 -1
  1897. package/build-types/range-control/tooltip.d.ts.map +1 -1
  1898. package/build-types/resizable-box/index.d.ts +3 -3
  1899. package/build-types/resizable-box/resize-tooltip/index.d.ts +1 -1
  1900. package/build-types/resizable-box/resize-tooltip/index.d.ts.map +1 -1
  1901. package/build-types/resizable-box/resize-tooltip/label.d.ts +1 -1
  1902. package/build-types/resizable-box/resize-tooltip/label.d.ts.map +1 -1
  1903. package/build-types/resizable-box/resize-tooltip/styles/resize-tooltip.styles.d.ts +4 -4
  1904. package/build-types/resizable-box/stories/index.story.d.ts +6 -6
  1905. package/build-types/responsive-wrapper/index.d.ts +1 -1
  1906. package/build-types/responsive-wrapper/index.d.ts.map +1 -1
  1907. package/build-types/sandbox/index.d.ts +1 -1
  1908. package/build-types/sandbox/index.d.ts.map +1 -1
  1909. package/build-types/scrollable/hook.d.ts +73 -63
  1910. package/build-types/scrollable/hook.d.ts.map +1 -1
  1911. package/build-types/search-control/index.d.ts.map +1 -1
  1912. package/build-types/search-control/styles.d.ts +1 -1
  1913. package/build-types/select-control/chevron-down.d.ts +1 -1
  1914. package/build-types/select-control/chevron-down.d.ts.map +1 -1
  1915. package/build-types/select-control/styles/select-control-styles.d.ts +3 -3
  1916. package/build-types/shortcut/index.d.ts +1 -1
  1917. package/build-types/shortcut/index.d.ts.map +1 -1
  1918. package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts +1 -1
  1919. package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts.map +1 -1
  1920. package/build-types/slot-fill/bubbles-virtually/slot.d.ts +1 -1
  1921. package/build-types/slot-fill/index.d.ts +7 -7
  1922. package/build-types/slot-fill/index.d.ts.map +1 -1
  1923. package/build-types/slot-fill/provider.d.ts +1 -1
  1924. package/build-types/slot-fill/provider.d.ts.map +1 -1
  1925. package/build-types/slot-fill/slot.d.ts +1 -1
  1926. package/build-types/slot-fill/slot.d.ts.map +1 -1
  1927. package/build-types/snackbar/index.d.ts +1 -1
  1928. package/build-types/snackbar/index.d.ts.map +1 -1
  1929. package/build-types/snackbar/list.d.ts +1 -1
  1930. package/build-types/snackbar/list.d.ts.map +1 -1
  1931. package/build-types/spacer/hook.d.ts +73 -63
  1932. package/build-types/spacer/hook.d.ts.map +1 -1
  1933. package/build-types/spinner/index.d.ts +2 -2
  1934. package/build-types/spinner/index.d.ts.map +1 -1
  1935. package/build-types/spinner/styles.d.ts +3 -3
  1936. package/build-types/style-provider/index.d.ts +1 -1
  1937. package/build-types/style-provider/index.d.ts.map +1 -1
  1938. package/build-types/surface/hook.d.ts +73 -63
  1939. package/build-types/surface/hook.d.ts.map +1 -1
  1940. package/build-types/tab-panel/index.d.ts +1 -1
  1941. package/build-types/tab-panel/index.d.ts.map +1 -1
  1942. package/build-types/tab-panel/stories/index.story.d.ts +4 -4
  1943. package/build-types/tab-panel/stories/index.story.d.ts.map +1 -1
  1944. package/build-types/tabs/index.d.ts +2 -2
  1945. package/build-types/tabs/index.d.ts.map +1 -1
  1946. package/build-types/tabs/stories/index.story.d.ts +1 -0
  1947. package/build-types/tabs/stories/index.story.d.ts.map +1 -1
  1948. package/build-types/tabs/styles.d.ts +3 -3
  1949. package/build-types/tabs/styles.d.ts.map +1 -1
  1950. package/build-types/tabs/tablist.d.ts +1 -1
  1951. package/build-types/tabs/tablist.d.ts.map +1 -1
  1952. package/build-types/text/hook.d.ts +72 -63
  1953. package/build-types/text/hook.d.ts.map +1 -1
  1954. package/build-types/text/stories/index.story.d.ts +3 -3
  1955. package/build-types/text-control/index.d.ts +3 -3
  1956. package/build-types/text-control/index.d.ts.map +1 -1
  1957. package/build-types/text-highlight/index.d.ts +1 -1
  1958. package/build-types/text-highlight/index.d.ts.map +1 -1
  1959. package/build-types/textarea-control/index.d.ts +2 -2
  1960. package/build-types/textarea-control/index.d.ts.map +1 -1
  1961. package/build-types/textarea-control/styles/textarea-control-styles.d.ts +1 -1
  1962. package/build-types/theme/index.d.ts +1 -1
  1963. package/build-types/theme/index.d.ts.map +1 -1
  1964. package/build-types/theme/stories/index.story.d.ts +1 -1
  1965. package/build-types/theme/stories/index.story.d.ts.map +1 -1
  1966. package/build-types/theme/styles.d.ts +1 -1
  1967. package/build-types/tip/index.d.ts +1 -1
  1968. package/build-types/tip/index.d.ts.map +1 -1
  1969. package/build-types/toggle-control/index.d.ts +2 -2
  1970. package/build-types/toggle-control/index.d.ts.map +1 -1
  1971. package/build-types/toggle-control/stories/index.story.d.ts +2 -2
  1972. package/build-types/toggle-control/stories/index.story.d.ts.map +1 -1
  1973. package/build-types/toggle-group-control/toggle-group-control/as-button-group.d.ts +1 -1
  1974. package/build-types/toggle-group-control/toggle-group-control/as-button-group.d.ts.map +1 -1
  1975. package/build-types/toggle-group-control/toggle-group-control/as-radio-group.d.ts +1 -1
  1976. package/build-types/toggle-group-control/toggle-group-control/as-radio-group.d.ts.map +1 -1
  1977. package/build-types/toggle-group-control/toggle-group-control/styles.d.ts +1 -1
  1978. package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts +1 -1
  1979. package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts.map +1 -1
  1980. package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts +1 -1
  1981. package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts.map +1 -1
  1982. package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts +2 -2
  1983. package/build-types/toggle-group-control/toggle-group-control-option-icon/component.d.ts +1 -1
  1984. package/build-types/toggle-group-control/toggle-group-control-option-icon/component.d.ts.map +1 -1
  1985. package/build-types/toolbar/stories/index.story.d.ts +3 -3
  1986. package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
  1987. package/build-types/toolbar/toolbar/index.d.ts +1 -1
  1988. package/build-types/toolbar/toolbar/index.d.ts.map +1 -1
  1989. package/build-types/toolbar/toolbar/toolbar-container.d.ts +1 -1
  1990. package/build-types/toolbar/toolbar/toolbar-container.d.ts.map +1 -1
  1991. package/build-types/toolbar/toolbar-button/index.d.ts +13 -59
  1992. package/build-types/toolbar/toolbar-button/index.d.ts.map +1 -1
  1993. package/build-types/toolbar/toolbar-button/toolbar-button-container.d.ts +1 -1
  1994. package/build-types/toolbar/toolbar-button/toolbar-button-container.d.ts.map +1 -1
  1995. package/build-types/toolbar/toolbar-group/index.d.ts +1 -1
  1996. package/build-types/toolbar/toolbar-group/index.d.ts.map +1 -1
  1997. package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts +1 -1
  1998. package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts.map +1 -1
  1999. package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts +1 -1
  2000. package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts.map +1 -1
  2001. package/build-types/tools-panel/styles.d.ts +1 -1
  2002. package/build-types/tools-panel/tools-panel/hook.d.ts +75 -65
  2003. package/build-types/tools-panel/tools-panel/hook.d.ts.map +1 -1
  2004. package/build-types/tools-panel/tools-panel-header/hook.d.ts +74 -64
  2005. package/build-types/tools-panel/tools-panel-header/hook.d.ts.map +1 -1
  2006. package/build-types/tools-panel/tools-panel-item/hook.d.ts +73 -63
  2007. package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
  2008. package/build-types/tools-panel/types.d.ts +1 -1
  2009. package/build-types/tools-panel/types.d.ts.map +1 -1
  2010. package/build-types/tooltip/index.d.ts.map +1 -1
  2011. package/build-types/tree-grid/index.d.ts +1 -1
  2012. package/build-types/tree-grid/index.d.ts.map +1 -1
  2013. package/build-types/tree-grid/item.d.ts +1 -1
  2014. package/build-types/tree-grid/item.d.ts.map +1 -1
  2015. package/build-types/tree-grid/roving-tab-index-item.d.ts +1 -1
  2016. package/build-types/tree-grid/roving-tab-index-item.d.ts.map +1 -1
  2017. package/build-types/tree-grid/roving-tab-index.d.ts +1 -1
  2018. package/build-types/tree-grid/roving-tab-index.d.ts.map +1 -1
  2019. package/build-types/tree-grid/row.d.ts +1 -1
  2020. package/build-types/tree-grid/row.d.ts.map +1 -1
  2021. package/build-types/tree-grid/stories/index.story.d.ts +1 -1
  2022. package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
  2023. package/build-types/tree-select/index.d.ts +1 -1
  2024. package/build-types/tree-select/index.d.ts.map +1 -1
  2025. package/build-types/truncate/hook.d.ts +73 -63
  2026. package/build-types/truncate/hook.d.ts.map +1 -1
  2027. package/build-types/unit-control/index.d.ts +1 -1
  2028. package/build-types/unit-control/index.d.ts.map +1 -1
  2029. package/build-types/unit-control/styles/unit-control-styles.d.ts +4 -4
  2030. package/build-types/unit-control/unit-select-control.d.ts +1 -1
  2031. package/build-types/utils/style-mixins.d.ts +0 -1
  2032. package/build-types/v-stack/component.d.ts +1 -1
  2033. package/build-types/v-stack/hook.d.ts +75 -65
  2034. package/build-types/v-stack/hook.d.ts.map +1 -1
  2035. package/build-types/v-stack/stories/index.story.d.ts +2 -2
  2036. package/build-types/view/component.d.ts +251 -249
  2037. package/build-types/view/component.d.ts.map +1 -1
  2038. package/build-types/z-stack/styles.d.ts +2 -2
  2039. package/package.json +24 -23
  2040. package/src/alignment-matrix-control/icon.tsx +2 -2
  2041. package/src/alignment-matrix-control/index.tsx +2 -5
  2042. package/src/angle-picker-control/index.tsx +2 -2
  2043. package/src/animate/index.tsx +4 -7
  2044. package/src/animate/stories/index.story.tsx +6 -1
  2045. package/src/autocomplete/autocompleter-ui.native.js +2 -4
  2046. package/src/autocomplete/autocompleter-ui.tsx +69 -39
  2047. package/src/autocomplete/test/index.tsx +3 -3
  2048. package/src/base-control/README.md +1 -1
  2049. package/src/base-control/hooks.ts +1 -5
  2050. package/src/base-control/index.tsx +2 -5
  2051. package/src/base-control/test/index.tsx +3 -3
  2052. package/src/base-control/types.ts +1 -2
  2053. package/src/border-control/types.ts +4 -0
  2054. package/src/button/index.native.js +1 -1
  2055. package/src/button/index.tsx +8 -4
  2056. package/src/button/style.scss +4 -6
  2057. package/src/button-group/index.tsx +2 -2
  2058. package/src/checkbox-control/index.tsx +2 -2
  2059. package/src/circular-option-picker/circular-option-picker-actions.tsx +3 -3
  2060. package/src/circular-option-picker/circular-option-picker-option-group.tsx +2 -2
  2061. package/src/circular-option-picker/circular-option-picker-option.tsx +2 -2
  2062. package/src/circular-option-picker/circular-option-picker.tsx +4 -7
  2063. package/src/circular-option-picker/stories/index.story.tsx +1 -1
  2064. package/src/circular-option-picker/style.scss +1 -2
  2065. package/src/circular-option-picker/test/index.tsx +3 -9
  2066. package/src/clipboard-button/index.tsx +2 -2
  2067. package/src/color-indicator/index.native.js +1 -1
  2068. package/src/color-indicator/index.tsx +2 -2
  2069. package/src/color-palette/index.native.js +2 -2
  2070. package/src/color-palette/index.tsx +2 -2
  2071. package/src/color-palette/stories/index.story.tsx +5 -8
  2072. package/src/color-picker/index.native.js +1 -1
  2073. package/src/combobox-control/README.md +10 -1
  2074. package/src/combobox-control/index.tsx +18 -6
  2075. package/src/combobox-control/stories/index.story.tsx +42 -0
  2076. package/src/combobox-control/types.ts +8 -0
  2077. package/src/composite/current/stories/index.story.tsx +1 -1
  2078. package/src/css.d.ts +9 -0
  2079. package/src/custom-gradient-picker/gradient-bar/control-points.tsx +3 -3
  2080. package/src/custom-gradient-picker/gradient-bar/index.tsx +2 -2
  2081. package/src/custom-gradient-picker/index.native.js +3 -1
  2082. package/src/custom-gradient-picker/index.tsx +2 -2
  2083. package/src/custom-select-control/index.js +10 -10
  2084. package/src/custom-select-control-v2/custom-select.tsx +37 -36
  2085. package/src/custom-select-control-v2/legacy-component/index.tsx +22 -31
  2086. package/src/custom-select-control-v2/stories/default.story.tsx +0 -1
  2087. package/src/custom-select-control-v2/stories/legacy.story.tsx +1 -1
  2088. package/src/custom-select-control-v2/styles.ts +10 -8
  2089. package/src/custom-select-control-v2/types.ts +16 -15
  2090. package/src/dashicon/index.native.js +1 -1
  2091. package/src/dimension-control/index.tsx +2 -5
  2092. package/src/dimension-control/stories/index.story.tsx +3 -2
  2093. package/src/dimension-control/test/__snapshots__/index.test.js.snap +0 -16
  2094. package/src/dimension-control/test/index.test.js +7 -10
  2095. package/src/draggable/test/index.native.js +2 -2
  2096. package/src/drop-zone/index.tsx +2 -2
  2097. package/src/dropdown/index.tsx +2 -2
  2098. package/src/dropdown/stories/index.story.tsx +6 -2
  2099. package/src/dropdown-menu/index.native.js +8 -13
  2100. package/src/dropdown-menu/index.tsx +9 -16
  2101. package/src/dropdown-menu-v2/stories/index.story.tsx +1 -2
  2102. package/src/dropdown-menu-v2/test/index.tsx +8 -3
  2103. package/src/external-link/index.tsx +2 -2
  2104. package/src/focal-point-picker/focal-point.tsx +7 -6
  2105. package/src/focal-point-picker/index.native.js +2 -1
  2106. package/src/focal-point-picker/index.tsx +2 -5
  2107. package/src/focal-point-picker/styles/focal-point-style.ts +3 -7
  2108. package/src/focal-point-picker/test/{index.js → index.tsx} +44 -17
  2109. package/src/focal-point-picker/test/{media.js → media.tsx} +18 -13
  2110. package/src/font-size-picker/index.native.js +6 -6
  2111. package/src/font-size-picker/index.tsx +2 -2
  2112. package/src/form-toggle/index.tsx +2 -2
  2113. package/src/form-token-field/index.tsx +11 -9
  2114. package/src/form-token-field/style.scss +9 -0
  2115. package/src/form-token-field/suggestions-list.tsx +16 -10
  2116. package/src/form-token-field/token-input.tsx +2 -2
  2117. package/src/form-token-field/token.tsx +2 -2
  2118. package/src/guide/index.tsx +2 -2
  2119. package/src/index.native.js +0 -14
  2120. package/src/index.ts +1 -0
  2121. package/src/input-control/index.tsx +3 -6
  2122. package/src/input-control/input-base.tsx +5 -1
  2123. package/src/input-control/styles/input-control-styles.tsx +0 -2
  2124. package/src/input-control/test/index.js +2 -2
  2125. package/src/keyboard-shortcuts/stories/index.story.tsx +3 -1
  2126. package/src/menu-group/index.tsx +2 -2
  2127. package/src/menu-group/stories/index.story.tsx +1 -1
  2128. package/src/menu-item/index.tsx +3 -3
  2129. package/src/mobile/autocompletion-items.native.js +2 -2
  2130. package/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +2 -1
  2131. package/src/mobile/bottom-sheet/cell.native.js +3 -3
  2132. package/src/mobile/bottom-sheet/color-cell.native.js +3 -2
  2133. package/src/mobile/bottom-sheet/footer-message-cell.native.js +2 -2
  2134. package/src/mobile/bottom-sheet/link-suggestion-item-cell.native.js +3 -3
  2135. package/src/mobile/bottom-sheet/nav-bar/action-button.native.js +1 -1
  2136. package/src/mobile/bottom-sheet/radio-cell.native.js +2 -2
  2137. package/src/mobile/bottom-sheet/stepper-cell/stepper.android.js +1 -1
  2138. package/src/mobile/bottom-sheet/stepper-cell/stepper.ios.js +1 -1
  2139. package/src/mobile/bottom-sheet/sub-sheet/index.native.js +6 -1
  2140. package/src/mobile/bottom-sheet/switch-cell.native.js +2 -2
  2141. package/src/mobile/bottom-sheet-select-control/index.native.js +4 -3
  2142. package/src/mobile/bottom-sheet-text-control/index.native.js +5 -7
  2143. package/src/mobile/color-settings/index.native.js +2 -1
  2144. package/src/mobile/color-settings/palette.screen.native.js +4 -7
  2145. package/src/mobile/color-settings/picker-screen.native.js +1 -1
  2146. package/src/mobile/color-settings/utils.native.js +1 -1
  2147. package/src/mobile/focal-point-settings-panel/index.native.js +2 -1
  2148. package/src/mobile/gradient/index.native.js +1 -1
  2149. package/src/mobile/image/icon-customize.native.js +1 -1
  2150. package/src/mobile/image/icon-retry.native.js +2 -2
  2151. package/src/mobile/image/image-editing-button.native.js +2 -2
  2152. package/src/mobile/image/index.native.js +2 -2
  2153. package/src/mobile/link-picker/index.native.js +2 -1
  2154. package/src/mobile/link-picker/link-picker-results.native.js +2 -1
  2155. package/src/mobile/link-settings/link-rel.native.js +1 -1
  2156. package/src/mobile/media-edit/index.native.js +5 -1
  2157. package/src/mobile/picker/index.android.js +4 -3
  2158. package/src/mobile/picker/index.ios.js +1 -1
  2159. package/src/mobile/segmented-control/index.native.js +1 -1
  2160. package/src/mobile/utils/use-unit-converter-to-mobile.native.js +2 -14
  2161. package/src/modal/index.tsx +4 -4
  2162. package/src/navigation/back-button/index.tsx +2 -5
  2163. package/src/navigation/group/index.tsx +2 -2
  2164. package/src/navigation/index.tsx +3 -3
  2165. package/src/navigation/item/base.tsx +2 -2
  2166. package/src/navigation/item/index.tsx +2 -2
  2167. package/src/navigation/menu/index.tsx +2 -2
  2168. package/src/notice/index.tsx +5 -10
  2169. package/src/notice/list.tsx +2 -2
  2170. package/src/notice/stories/index.story.tsx +1 -1
  2171. package/src/number-control/index.tsx +2 -2
  2172. package/src/palette-edit/index.tsx +10 -8
  2173. package/src/palette-edit/styles.ts +2 -3
  2174. package/src/palette-edit/test/index.tsx +15 -11
  2175. package/src/panel/actions.native.js +1 -1
  2176. package/src/panel/body.tsx +2 -2
  2177. package/src/panel/index.tsx +2 -2
  2178. package/src/panel/row.tsx +2 -2
  2179. package/src/placeholder/index.tsx +3 -3
  2180. package/src/placeholder/style.scss +1 -2
  2181. package/src/popover/index.tsx +3 -3
  2182. package/src/private-apis.ts +0 -2
  2183. package/src/progress-bar/README.md +39 -5
  2184. package/src/progress-bar/index.tsx +21 -8
  2185. package/src/progress-bar/stories/index.story.tsx +36 -3
  2186. package/src/progress-bar/styles.ts +4 -2
  2187. package/src/query-controls/index.native.js +2 -1
  2188. package/src/radio-control/index.tsx +2 -2
  2189. package/src/range-control/index.tsx +3 -3
  2190. package/src/range-control/mark.tsx +3 -3
  2191. package/src/range-control/tooltip.tsx +2 -2
  2192. package/src/resizable-box/index.tsx +10 -10
  2193. package/src/resizable-box/resize-tooltip/index.tsx +2 -2
  2194. package/src/responsive-wrapper/index.tsx +2 -2
  2195. package/src/search-control/index.native.js +3 -2
  2196. package/src/search-control/index.tsx +2 -5
  2197. package/src/select-control/index.tsx +2 -2
  2198. package/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx +2 -2
  2199. package/src/slot-fill/provider.tsx +2 -2
  2200. package/src/snackbar/index.tsx +5 -8
  2201. package/src/snackbar/list.tsx +5 -5
  2202. package/src/spinner/index.tsx +2 -2
  2203. package/src/tab-panel/index.tsx +3 -3
  2204. package/src/tab-panel/style.scss +16 -0
  2205. package/src/tabs/stories/index.story.tsx +39 -31
  2206. package/src/tabs/styles.ts +43 -34
  2207. package/src/tabs/tablist.tsx +130 -3
  2208. package/src/text-control/index.tsx +2 -2
  2209. package/src/theme/stories/index.story.tsx +1 -2
  2210. package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +0 -2
  2211. package/src/toolbar/toolbar/index.tsx +2 -2
  2212. package/src/toolbar/toolbar/style.scss +0 -12
  2213. package/src/toolbar/toolbar-button/index.tsx +3 -3
  2214. package/src/toolbar/toolbar-group/index.tsx +2 -2
  2215. package/src/tools-panel/stories/index.story.tsx +1 -1
  2216. package/src/tools-panel/tools-panel/hook.ts +9 -6
  2217. package/src/tools-panel/tools-panel-header/component.tsx +1 -1
  2218. package/src/tools-panel/tools-panel-item/hook.ts +12 -8
  2219. package/src/tools-panel/types.ts +1 -0
  2220. package/src/tooltip/index.tsx +1 -4
  2221. package/src/tooltip/test/index.native.js +1 -5
  2222. package/src/truncate/hook.ts +1 -1
  2223. package/src/unit-control/index.tsx +2 -2
  2224. package/src/unit-control/test/index.tsx +12 -12
  2225. package/src/unit-control/unit-select-control.tsx +2 -2
  2226. package/src/utils/style-mixins.js +0 -1
  2227. package/src/utils/theme-variables.scss +4 -0
  2228. package/tsconfig.json +1 -4
  2229. package/tsconfig.tsbuildinfo +1 -1
  2230. package/build/mobile/audio-player/audio-url-parser.native.js +0 -24
  2231. package/build/mobile/audio-player/audio-url-parser.native.js.map +0 -1
  2232. package/build/mobile/audio-player/index.native.js +0 -163
  2233. package/build/mobile/audio-player/index.native.js.map +0 -1
  2234. package/build/mobile/global-styles-context/index.native.js +0 -68
  2235. package/build/mobile/global-styles-context/index.native.js.map +0 -1
  2236. package/build/mobile/global-styles-context/utils.native.js +0 -405
  2237. package/build/mobile/global-styles-context/utils.native.js.map +0 -1
  2238. package/build/utils/reduce-motion.js +0 -38
  2239. package/build/utils/reduce-motion.js.map +0 -1
  2240. package/build-module/mobile/audio-player/audio-url-parser.native.js +0 -16
  2241. package/build-module/mobile/audio-player/audio-url-parser.native.js.map +0 -1
  2242. package/build-module/mobile/audio-player/index.native.js +0 -155
  2243. package/build-module/mobile/audio-player/index.native.js.map +0 -1
  2244. package/build-module/mobile/global-styles-context/index.native.js +0 -58
  2245. package/build-module/mobile/global-styles-context/index.native.js.map +0 -1
  2246. package/build-module/mobile/global-styles-context/utils.native.js +0 -387
  2247. package/build-module/mobile/global-styles-context/utils.native.js.map +0 -1
  2248. package/build-module/utils/reduce-motion.js +0 -32
  2249. package/build-module/utils/reduce-motion.js.map +0 -1
  2250. package/build-types/utils/reduce-motion.d.ts +0 -12
  2251. package/build-types/utils/reduce-motion.d.ts.map +0 -1
  2252. package/src/mobile/audio-player/audio-url-parser.native.js +0 -20
  2253. package/src/mobile/audio-player/index.native.js +0 -220
  2254. package/src/mobile/audio-player/styles.scss +0 -114
  2255. package/src/mobile/audio-player/test/audio-url-parser.native.js +0 -53
  2256. package/src/mobile/global-styles-context/index.native.js +0 -103
  2257. package/src/mobile/global-styles-context/test/fixtures/theme.native.js +0 -274
  2258. package/src/mobile/global-styles-context/test/utils.native.js +0 -168
  2259. package/src/mobile/global-styles-context/utils.native.js +0 -510
  2260. package/src/utils/reduce-motion.js +0 -35
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
@@ -14,6 +13,8 @@ import { usePreferredColorSchemeStyle } from '@wordpress/compose';
14
13
  */
15
14
  import { performLayoutAnimation } from '../layout-animation';
16
15
  import styles from './style.scss';
16
+ import { jsx as _jsx } from "react/jsx-runtime";
17
+ import { jsxs as _jsxs } from "react/jsx-runtime";
17
18
  const ANIMATION_DURATION = 200;
18
19
  const isIOS = Platform.OS === 'ios';
19
20
  const Segment = ({
@@ -28,18 +29,22 @@ const Segment = ({
28
29
  const textStyle = usePreferredColorSchemeStyle(styles.buttonTextDefault, styles.buttonTextDefaultDark);
29
30
  const selectedTextStyle = usePreferredColorSchemeStyle(styles.buttonTextSelected, styles.buttonTextSelectedDark);
30
31
  const shadowStyle = usePreferredColorSchemeStyle(styles.shadowIOS, {});
31
- return createElement(View, {
32
- style: isSelectedIOS && shadowStyle
33
- }, createElement(TouchableWithoutFeedback, {
34
- onPress: onPress
35
- }, createElement(View, {
36
- style: segmentStyle,
37
- onLayout: onLayout,
38
- ...props
39
- }, createElement(Text, {
40
- style: [textStyle, isSelected && selectedTextStyle],
41
- maxFontSizeMultiplier: 2
42
- }, title))));
32
+ return /*#__PURE__*/_jsx(View, {
33
+ style: isSelectedIOS && shadowStyle,
34
+ children: /*#__PURE__*/_jsx(TouchableWithoutFeedback, {
35
+ onPress: onPress,
36
+ children: /*#__PURE__*/_jsx(View, {
37
+ style: segmentStyle,
38
+ onLayout: onLayout,
39
+ ...props,
40
+ children: /*#__PURE__*/_jsx(Text, {
41
+ style: [textStyle, isSelected && selectedTextStyle],
42
+ maxFontSizeMultiplier: 2,
43
+ children: title
44
+ })
45
+ })
46
+ })
47
+ });
43
48
  };
44
49
  const SegmentedControls = ({
45
50
  segments,
@@ -112,35 +117,38 @@ const SegmentedControls = ({
112
117
  const width = segmentsDimensions[activeSegmentIndex]?.width;
113
118
  const height = segmentsDimensions[activeSegmentIndex]?.height;
114
119
  const outlineStyle = [styles.outline, isIOS && styles.outlineIOS];
115
- return createElement(View, {
116
- style: styles.row
117
- }, createElement(View, {
118
- style: styles.flex
119
- }, addonLeft), createElement(View, {
120
- style: [containerStyle, isIOS && styles.containerIOS]
121
- }, createElement(Animated.View, {
122
- style: [{
123
- width,
124
- left: positionAnimationValue,
125
- height
126
- }, selectedStyle, outlineStyle]
127
- }), segments.map((segment, index) => {
128
- return createElement(Segment, {
129
- title: segment,
130
- onPress: () => onHandlePress(segment, index),
131
- isSelected: activeSegmentIndex === index,
132
- key: index,
133
- onLayout: event => segmentOnLayout(event, index),
134
- accessibilityState: {
135
- selected: activeSegmentIndex === index
136
- },
137
- accessibilityRole: 'button',
138
- accessibilityLabel: segment,
139
- accessibilityHint: `${index + 1} on ${segments.length}`
140
- });
141
- })), createElement(View, {
142
- style: styles.flex
143
- }, addonRight));
120
+ return /*#__PURE__*/_jsxs(View, {
121
+ style: styles.row,
122
+ children: [/*#__PURE__*/_jsx(View, {
123
+ style: styles.flex,
124
+ children: addonLeft
125
+ }), /*#__PURE__*/_jsxs(View, {
126
+ style: [containerStyle, isIOS && styles.containerIOS],
127
+ children: [/*#__PURE__*/_jsx(Animated.View, {
128
+ style: [{
129
+ width,
130
+ left: positionAnimationValue,
131
+ height
132
+ }, selectedStyle, outlineStyle]
133
+ }), segments.map((segment, index) => {
134
+ return /*#__PURE__*/_jsx(Segment, {
135
+ title: segment,
136
+ onPress: () => onHandlePress(segment, index),
137
+ isSelected: activeSegmentIndex === index,
138
+ onLayout: event => segmentOnLayout(event, index),
139
+ accessibilityState: {
140
+ selected: activeSegmentIndex === index
141
+ },
142
+ accessibilityRole: "button",
143
+ accessibilityLabel: segment,
144
+ accessibilityHint: `${index + 1} on ${segments.length}`
145
+ }, index);
146
+ })]
147
+ }), /*#__PURE__*/_jsx(View, {
148
+ style: styles.flex,
149
+ children: addonRight
150
+ })]
151
+ });
144
152
  };
145
153
  export default SegmentedControls;
146
154
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["View","TouchableWithoutFeedback","Text","Platform","Animated","Easing","useState","useEffect","usePreferredColorSchemeStyle","performLayoutAnimation","styles","ANIMATION_DURATION","isIOS","OS","Segment","isSelected","title","onPress","onLayout","props","isSelectedIOS","segmentStyle","segment","segmentIOS","textStyle","buttonTextDefault","buttonTextDefaultDark","selectedTextStyle","buttonTextSelected","buttonTextSelectedDark","shadowStyle","shadowIOS","createElement","style","maxFontSizeMultiplier","SegmentedControls","segments","segmentHandler","selectedIndex","addonLeft","addonRight","selectedSegmentIndex","activeSegmentIndex","setActiveSegmentIndex","segmentsDimensions","setSegmentsDimensions","width","height","positionAnimationValue","Value","setValue","calculateEndValue","containerStyle","container","containerDark","performSwatchAnimation","index","timing","toValue","duration","easing","ease","useNativeDriver","start","paddingLeft","offset","containerIOS","widths","Object","values","map","dimension","widthsDistance","slice","widthsDistanceSum","reduce","sum","n","endValue","onHandlePress","segmentOnLayout","event","nativeEvent","layout","selectedStyle","selected","selectedDark","outlineStyle","outline","outlineIOS","row","flex","left","key","accessibilityState","accessibilityRole","accessibilityLabel","accessibilityHint","length"],"sources":["@wordpress/components/src/mobile/segmented-control/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport {\n\tView,\n\tTouchableWithoutFeedback,\n\tText,\n\tPlatform,\n\tAnimated,\n\tEasing,\n} from 'react-native';\n/**\n * WordPress dependencies\n */\nimport { useState, useEffect } from '@wordpress/element';\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport { performLayoutAnimation } from '../layout-animation';\nimport styles from './style.scss';\n\nconst ANIMATION_DURATION = 200;\n\nconst isIOS = Platform.OS === 'ios';\n\nconst Segment = ( { isSelected, title, onPress, onLayout, ...props } ) => {\n\tconst isSelectedIOS = isIOS && isSelected;\n\n\tconst segmentStyle = [ styles.segment, isIOS && styles.segmentIOS ];\n\n\tconst textStyle = usePreferredColorSchemeStyle(\n\t\tstyles.buttonTextDefault,\n\t\tstyles.buttonTextDefaultDark\n\t);\n\tconst selectedTextStyle = usePreferredColorSchemeStyle(\n\t\tstyles.buttonTextSelected,\n\t\tstyles.buttonTextSelectedDark\n\t);\n\tconst shadowStyle = usePreferredColorSchemeStyle( styles.shadowIOS, {} );\n\n\treturn (\n\t\t<View style={ isSelectedIOS && shadowStyle }>\n\t\t\t<TouchableWithoutFeedback onPress={ onPress }>\n\t\t\t\t<View style={ segmentStyle } onLayout={ onLayout } { ...props }>\n\t\t\t\t\t<Text\n\t\t\t\t\t\tstyle={ [ textStyle, isSelected && selectedTextStyle ] }\n\t\t\t\t\t\tmaxFontSizeMultiplier={ 2 }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ title }\n\t\t\t\t\t</Text>\n\t\t\t\t</View>\n\t\t\t</TouchableWithoutFeedback>\n\t\t</View>\n\t);\n};\n\nconst SegmentedControls = ( {\n\tsegments,\n\tsegmentHandler,\n\tselectedIndex,\n\taddonLeft,\n\taddonRight,\n} ) => {\n\tconst selectedSegmentIndex = selectedIndex || 0;\n\tconst [ activeSegmentIndex, setActiveSegmentIndex ] =\n\t\tuseState( selectedSegmentIndex );\n\tconst [ segmentsDimensions, setSegmentsDimensions ] = useState( {\n\t\t[ activeSegmentIndex ]: { width: 0, height: 0 },\n\t} );\n\tconst [ positionAnimationValue ] = useState( new Animated.Value( 0 ) );\n\n\tuseEffect( () => {\n\t\tsetActiveSegmentIndex( selectedSegmentIndex );\n\t\tsegmentHandler( segments[ selectedSegmentIndex ] );\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\tuseEffect( () => {\n\t\tpositionAnimationValue.setValue(\n\t\t\tcalculateEndValue( activeSegmentIndex )\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}, [ segmentsDimensions ] );\n\n\tconst containerStyle = usePreferredColorSchemeStyle(\n\t\tstyles.container,\n\t\tstyles.containerDark\n\t);\n\n\tfunction performSwatchAnimation( index ) {\n\t\tAnimated.timing( positionAnimationValue, {\n\t\t\ttoValue: calculateEndValue( index ),\n\t\t\tduration: ANIMATION_DURATION,\n\t\t\teasing: Easing.ease,\n\t\t\tuseNativeDriver: false,\n\t\t} ).start();\n\t}\n\n\tfunction calculateEndValue( index ) {\n\t\tconst { paddingLeft: offset } = isIOS\n\t\t\t? styles.containerIOS\n\t\t\t: styles.container;\n\t\tconst widths = Object.values( segmentsDimensions ).map(\n\t\t\t( dimension ) => dimension.width\n\t\t);\n\t\tconst widthsDistance = widths.slice( 0, index );\n\t\tconst widthsDistanceSum = widthsDistance.reduce(\n\t\t\t( sum, n ) => sum + n,\n\t\t\t0\n\t\t);\n\n\t\tconst endValue = index === 0 ? 0 : widthsDistanceSum;\n\t\treturn endValue + offset;\n\t}\n\n\tfunction onHandlePress( segment, index ) {\n\t\tperformLayoutAnimation( ANIMATION_DURATION );\n\t\tsetActiveSegmentIndex( index );\n\t\tsegmentHandler( segment );\n\t\tperformSwatchAnimation( index );\n\t}\n\n\tfunction segmentOnLayout( event, index ) {\n\t\tconst { width, height } = event.nativeEvent.layout;\n\n\t\tsetSegmentsDimensions( {\n\t\t\t...segmentsDimensions,\n\t\t\t[ index ]: { width, height },\n\t\t} );\n\t}\n\n\tconst selectedStyle = usePreferredColorSchemeStyle(\n\t\tstyles.selected,\n\t\tstyles.selectedDark\n\t);\n\n\tconst width = segmentsDimensions[ activeSegmentIndex ]?.width;\n\tconst height = segmentsDimensions[ activeSegmentIndex ]?.height;\n\n\tconst outlineStyle = [ styles.outline, isIOS && styles.outlineIOS ];\n\n\treturn (\n\t\t<View style={ styles.row }>\n\t\t\t<View style={ styles.flex }>{ addonLeft }</View>\n\t\t\t<View style={ [ containerStyle, isIOS && styles.containerIOS ] }>\n\t\t\t\t<Animated.View\n\t\t\t\t\tstyle={ [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\twidth,\n\t\t\t\t\t\t\tleft: positionAnimationValue,\n\t\t\t\t\t\t\theight,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tselectedStyle,\n\t\t\t\t\t\toutlineStyle,\n\t\t\t\t\t] }\n\t\t\t\t/>\n\t\t\t\t{ segments.map( ( segment, index ) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<Segment\n\t\t\t\t\t\t\ttitle={ segment }\n\t\t\t\t\t\t\tonPress={ () => onHandlePress( segment, index ) }\n\t\t\t\t\t\t\tisSelected={ activeSegmentIndex === index }\n\t\t\t\t\t\t\tkey={ index }\n\t\t\t\t\t\t\tonLayout={ ( event ) =>\n\t\t\t\t\t\t\t\tsegmentOnLayout( event, index )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taccessibilityState={ {\n\t\t\t\t\t\t\t\tselected: activeSegmentIndex === index,\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\taccessibilityRole={ 'button' }\n\t\t\t\t\t\t\taccessibilityLabel={ segment }\n\t\t\t\t\t\t\taccessibilityHint={ `${ index + 1 } on ${\n\t\t\t\t\t\t\t\tsegments.length\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</View>\n\t\t\t<View style={ styles.flex }>{ addonRight }</View>\n\t\t</View>\n\t);\n};\n\nexport default SegmentedControls;\n"],"mappings":";AAAA;AACA;AACA;AACA,SACCA,IAAI,EACJC,wBAAwB,EACxBC,IAAI,EACJC,QAAQ,EACRC,QAAQ,EACRC,MAAM,QACA,cAAc;AACrB;AACA;AACA;AACA,SAASC,QAAQ,EAAEC,SAAS,QAAQ,oBAAoB;AACxD,SAASC,4BAA4B,QAAQ,oBAAoB;;AAEjE;AACA;AACA;AACA,SAASC,sBAAsB,QAAQ,qBAAqB;AAC5D,OAAOC,MAAM,MAAM,cAAc;AAEjC,MAAMC,kBAAkB,GAAG,GAAG;AAE9B,MAAMC,KAAK,GAAGT,QAAQ,CAACU,EAAE,KAAK,KAAK;AAEnC,MAAMC,OAAO,GAAGA,CAAE;EAAEC,UAAU;EAAEC,KAAK;EAAEC,OAAO;EAAEC,QAAQ;EAAE,GAAGC;AAAM,CAAC,KAAM;EACzE,MAAMC,aAAa,GAAGR,KAAK,IAAIG,UAAU;EAEzC,MAAMM,YAAY,GAAG,CAAEX,MAAM,CAACY,OAAO,EAAEV,KAAK,IAAIF,MAAM,CAACa,UAAU,CAAE;EAEnE,MAAMC,SAAS,GAAGhB,4BAA4B,CAC7CE,MAAM,CAACe,iBAAiB,EACxBf,MAAM,CAACgB,qBACR,CAAC;EACD,MAAMC,iBAAiB,GAAGnB,4BAA4B,CACrDE,MAAM,CAACkB,kBAAkB,EACzBlB,MAAM,CAACmB,sBACR,CAAC;EACD,MAAMC,WAAW,GAAGtB,4BAA4B,CAAEE,MAAM,CAACqB,SAAS,EAAE,CAAC,CAAE,CAAC;EAExE,OACCC,aAAA,CAAChC,IAAI;IAACiC,KAAK,EA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AG,EAAGrC,KAAO;MACbtC,QAAQ,EAAK+D,KAAK,IACjBD,eAAe,CAAEC,KAAK,EAAEzB,KAAM,CAC9B;MACDsC,kBAAkB,EAAG;QACpBT,QAAQ,EAAE3C,kBAAkB,KAAKc;MAClC,CAAG;MACHuC,iBAAiB,EAAG,QAAU;MAC9BC,kBAAkB,EAAG1E,OAAS;MAC9B2E,iBAAiB,EAAI,GAAGzC,KAAK,GAAG,CAAG,OAClCpB,QAAQ,CAAC8D,MACT;IAAG,CACJ,CAAC;EAEJ,CAAE,CACG,CAAC,EACPlE,aAAA,CAAChC,IAAI;IAACiC,KAAK,EAAGvB,MAAM,CAACiF;EAAM,GAAGnD,UAAkB,CAC3C,CAAC;AAET,CAAC;AAED,eAAeL,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["View","TouchableWithoutFeedback","Text","Platform","Animated","Easing","useState","useEffect","usePreferredColorSchemeStyle","performLayoutAnimation","styles","jsx","_jsx","jsxs","_jsxs","ANIMATION_DURATION","isIOS","OS","Segment","isSelected","title","onPress","onLayout","props","isSelectedIOS","segmentStyle","segment","segmentIOS","textStyle","buttonTextDefault","buttonTextDefaultDark","selectedTextStyle","buttonTextSelected","buttonTextSelectedDark","shadowStyle","shadowIOS","style","children","maxFontSizeMultiplier","SegmentedControls","segments","segmentHandler","selectedIndex","addonLeft","addonRight","selectedSegmentIndex","activeSegmentIndex","setActiveSegmentIndex","segmentsDimensions","setSegmentsDimensions","width","height","positionAnimationValue","Value","setValue","calculateEndValue","containerStyle","container","containerDark","performSwatchAnimation","index","timing","toValue","duration","easing","ease","useNativeDriver","start","paddingLeft","offset","containerIOS","widths","Object","values","map","dimension","widthsDistance","slice","widthsDistanceSum","reduce","sum","n","endValue","onHandlePress","segmentOnLayout","event","nativeEvent","layout","selectedStyle","selected","selectedDark","outlineStyle","outline","outlineIOS","row","flex","left","accessibilityState","accessibilityRole","accessibilityLabel","accessibilityHint","length"],"sources":["@wordpress/components/src/mobile/segmented-control/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport {\n\tView,\n\tTouchableWithoutFeedback,\n\tText,\n\tPlatform,\n\tAnimated,\n\tEasing,\n} from 'react-native';\n/**\n * WordPress dependencies\n */\nimport { useState, useEffect } from '@wordpress/element';\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport { performLayoutAnimation } from '../layout-animation';\nimport styles from './style.scss';\n\nconst ANIMATION_DURATION = 200;\n\nconst isIOS = Platform.OS === 'ios';\n\nconst Segment = ( { isSelected, title, onPress, onLayout, ...props } ) => {\n\tconst isSelectedIOS = isIOS && isSelected;\n\n\tconst segmentStyle = [ styles.segment, isIOS && styles.segmentIOS ];\n\n\tconst textStyle = usePreferredColorSchemeStyle(\n\t\tstyles.buttonTextDefault,\n\t\tstyles.buttonTextDefaultDark\n\t);\n\tconst selectedTextStyle = usePreferredColorSchemeStyle(\n\t\tstyles.buttonTextSelected,\n\t\tstyles.buttonTextSelectedDark\n\t);\n\tconst shadowStyle = usePreferredColorSchemeStyle( styles.shadowIOS, {} );\n\n\treturn (\n\t\t<View style={ isSelectedIOS && shadowStyle }>\n\t\t\t<TouchableWithoutFeedback onPress={ onPress }>\n\t\t\t\t<View style={ segmentStyle } onLayout={ onLayout } { ...props }>\n\t\t\t\t\t<Text\n\t\t\t\t\t\tstyle={ [ textStyle, isSelected && selectedTextStyle ] }\n\t\t\t\t\t\tmaxFontSizeMultiplier={ 2 }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ title }\n\t\t\t\t\t</Text>\n\t\t\t\t</View>\n\t\t\t</TouchableWithoutFeedback>\n\t\t</View>\n\t);\n};\n\nconst SegmentedControls = ( {\n\tsegments,\n\tsegmentHandler,\n\tselectedIndex,\n\taddonLeft,\n\taddonRight,\n} ) => {\n\tconst selectedSegmentIndex = selectedIndex || 0;\n\tconst [ activeSegmentIndex, setActiveSegmentIndex ] =\n\t\tuseState( selectedSegmentIndex );\n\tconst [ segmentsDimensions, setSegmentsDimensions ] = useState( {\n\t\t[ activeSegmentIndex ]: { width: 0, height: 0 },\n\t} );\n\tconst [ positionAnimationValue ] = useState( new Animated.Value( 0 ) );\n\n\tuseEffect( () => {\n\t\tsetActiveSegmentIndex( selectedSegmentIndex );\n\t\tsegmentHandler( segments[ selectedSegmentIndex ] );\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\tuseEffect( () => {\n\t\tpositionAnimationValue.setValue(\n\t\t\tcalculateEndValue( activeSegmentIndex )\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}, [ segmentsDimensions ] );\n\n\tconst containerStyle = usePreferredColorSchemeStyle(\n\t\tstyles.container,\n\t\tstyles.containerDark\n\t);\n\n\tfunction performSwatchAnimation( index ) {\n\t\tAnimated.timing( positionAnimationValue, {\n\t\t\ttoValue: calculateEndValue( index ),\n\t\t\tduration: ANIMATION_DURATION,\n\t\t\teasing: Easing.ease,\n\t\t\tuseNativeDriver: false,\n\t\t} ).start();\n\t}\n\n\tfunction calculateEndValue( index ) {\n\t\tconst { paddingLeft: offset } = isIOS\n\t\t\t? styles.containerIOS\n\t\t\t: styles.container;\n\t\tconst widths = Object.values( segmentsDimensions ).map(\n\t\t\t( dimension ) => dimension.width\n\t\t);\n\t\tconst widthsDistance = widths.slice( 0, index );\n\t\tconst widthsDistanceSum = widthsDistance.reduce(\n\t\t\t( sum, n ) => sum + n,\n\t\t\t0\n\t\t);\n\n\t\tconst endValue = index === 0 ? 0 : widthsDistanceSum;\n\t\treturn endValue + offset;\n\t}\n\n\tfunction onHandlePress( segment, index ) {\n\t\tperformLayoutAnimation( ANIMATION_DURATION );\n\t\tsetActiveSegmentIndex( index );\n\t\tsegmentHandler( segment );\n\t\tperformSwatchAnimation( index );\n\t}\n\n\tfunction segmentOnLayout( event, index ) {\n\t\tconst { width, height } = event.nativeEvent.layout;\n\n\t\tsetSegmentsDimensions( {\n\t\t\t...segmentsDimensions,\n\t\t\t[ index ]: { width, height },\n\t\t} );\n\t}\n\n\tconst selectedStyle = usePreferredColorSchemeStyle(\n\t\tstyles.selected,\n\t\tstyles.selectedDark\n\t);\n\n\tconst width = segmentsDimensions[ activeSegmentIndex ]?.width;\n\tconst height = segmentsDimensions[ activeSegmentIndex ]?.height;\n\n\tconst outlineStyle = [ styles.outline, isIOS && styles.outlineIOS ];\n\n\treturn (\n\t\t<View style={ styles.row }>\n\t\t\t<View style={ styles.flex }>{ addonLeft }</View>\n\t\t\t<View style={ [ containerStyle, isIOS && styles.containerIOS ] }>\n\t\t\t\t<Animated.View\n\t\t\t\t\tstyle={ [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\twidth,\n\t\t\t\t\t\t\tleft: positionAnimationValue,\n\t\t\t\t\t\t\theight,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tselectedStyle,\n\t\t\t\t\t\toutlineStyle,\n\t\t\t\t\t] }\n\t\t\t\t/>\n\t\t\t\t{ segments.map( ( segment, index ) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<Segment\n\t\t\t\t\t\t\ttitle={ segment }\n\t\t\t\t\t\t\tonPress={ () => onHandlePress( segment, index ) }\n\t\t\t\t\t\t\tisSelected={ activeSegmentIndex === index }\n\t\t\t\t\t\t\tkey={ index }\n\t\t\t\t\t\t\tonLayout={ ( event ) =>\n\t\t\t\t\t\t\t\tsegmentOnLayout( event, index )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taccessibilityState={ {\n\t\t\t\t\t\t\t\tselected: activeSegmentIndex === index,\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\taccessibilityRole=\"button\"\n\t\t\t\t\t\t\taccessibilityLabel={ segment }\n\t\t\t\t\t\t\taccessibilityHint={ `${ index + 1 } on ${\n\t\t\t\t\t\t\t\tsegments.length\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</View>\n\t\t\t<View style={ styles.flex }>{ addonRight }</View>\n\t\t</View>\n\t);\n};\n\nexport default SegmentedControls;\n"],"mappings":"AAAA;AACA;AACA;AACA,SACCA,IAAI,EACJC,wBAAwB,EACxBC,IAAI,EACJC,QAAQ,EACRC,QAAQ,EACRC,MAAM,QACA,cAAc;AACrB;AACA;AACA;AACA,SAASC,QAAQ,EAAEC,SAAS,QAAQ,oBAAoB;AACxD,SAASC,4BAA4B,QAAQ,oBAAoB;;AAEjE;AACA;AACA;AACA,SAASC,sBAAsB,QAAQ,qBAAqB;AAC5D,OAAOC,MAAM,MAAM,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAElC,MAAMC,kBAAkB,GAAG,GAAG;AAE9B,MAAMC,KAAK,GAAGb,QAAQ,CAACc,EAAE,KAAK,KAAK;AAEnC,MAAMC,OAAO,GAAGA,CAAE;EAAEC,UAAU;EAAEC,KAAK;EAAEC,OAAO;EAAEC,QAAQ;EAAE,GAAGC;AAAM,CAAC,KAAM;EACzE,MAAMC,aAAa,GAAGR,KAAK,IAAIG,UAAU;EAEzC,MAAMM,YAAY,GAAG,CAAEf,MAAM,CAACgB,OAAO,EAAEV,KAAK,IAAIN,MAAM,CAACiB,UAAU,CAAE;EAEnE,MAAMC,SAAS,GAAGpB,4BAA4B,CAC7CE,MAAM,CAACmB,iBAAiB,EACxBnB,MAAM,CAACoB,qBACR,CAAC;EACD,MAAMC,iBAAiB,GAAGvB,4BAA4B,CACrDE,MAAM,CAACsB,kBAAkB,EACzBtB,MAAM,CAACuB,sBACR,CAAC;EACD,MAAMC,WAAW,GAAG1B,4BAA4B,CAAEE,MAAM,CAACyB,SAAS,EAAE,CAAC,CAAE,CAAC;EAExE,oBACCvB,IAAA,CAACZ,IAAI;I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;UACjBL,OAAO,EAAGA,CAAA,KAAM8D,aAAa,CAAEzD,OAAO,EAAEkC,KAAM,CAAG;UACjDzC,UAAU,EAAG2B,kBAAkB,KAAKc,KAAO;UAE3CtC,QAAQ,EAAK+D,KAAK,IACjBD,eAAe,CAAEC,KAAK,EAAEzB,KAAM,CAC9B;UACDqC,kBAAkB,EAAG;YACpBR,QAAQ,EAAE3C,kBAAkB,KAAKc;UAClC,CAAG;UACHsC,iBAAiB,EAAC,QAAQ;UAC1BC,kBAAkB,EAAGzE,OAAS;UAC9B0E,iBAAiB,EAAI,GAAGxC,KAAK,GAAG,CAAG,OAClCpB,QAAQ,CAAC6D,MACT;QAAG,GAXEzC,KAYN,CAAC;MAEJ,CAAE,CAAC;IAAA,CACE,CAAC,eACPhD,IAAA,CAACZ,IAAI;MAACoC,KAAK,EAAG1B,MAAM,CAACqF,IAAM;MAAA1D,QAAA,EAAGO;IAAU,CAAQ,CAAC;EAAA,CAC5C,CAAC;AAET,CAAC;AAED,eAAeL,iBAAiB","ignoreList":[]}
@@ -6,12 +6,7 @@ import { Dimensions } from 'react-native';
6
6
  /**
7
7
  * WordPress dependencies
8
8
  */
9
- import { useContext, useEffect, useState, useMemo, useCallback } from '@wordpress/element';
10
-
11
- /**
12
- * Internal dependencies
13
- */
14
- import GlobalStylesContext from '../global-styles-context';
9
+ import { useEffect, useState, useMemo, useCallback } from '@wordpress/element';
15
10
  const getValueAndUnit = (value, unit) => {
16
11
  const regex = /(\d+\.?\d*)(.*)/;
17
12
  const splitValue = `${value}`?.match(regex)?.filter(v => v !== '');
@@ -56,10 +51,7 @@ const convertUnitToMobile = (containerSize, globalStyles, value, unit) => {
56
51
  return Number(valueToConvert / 100) * width;
57
52
  }
58
53
  };
59
- const useConvertUnitToMobile = (value, unit) => {
60
- const {
61
- globalStyles: styles
62
- } = useContext(GlobalStylesContext);
54
+ const useConvertUnitToMobile = (value, unit, styles) => {
63
55
  const [windowSizes, setWindowSizes] = useState(Dimensions.get('window'));
64
56
  useEffect(() => {
65
57
  const dimensionsChangeSubscription = Dimensions.addEventListener('change', onDimensionsChange);
@@ -1 +1 @@
1
- {"version":3,"names":["Dimensions","useContext","useEffect","useState","useMemo","useCallback","GlobalStylesContext","getValueAndUnit","value","unit","regex","splitValue","match","filter","v","valueToConvert","valueUnit","undefined","convertUnitToMobile","containerSize","globalStyles","width","height","fontSize","Number","vw","Math","round","vh","useConvertUnitToMobile","styles","windowSizes","setWindowSizes","get","dimensionsChangeSubscription","addEventListener","onDimensionsChange","remove","window"],"sources":["@wordpress/components/src/mobile/utils/use-unit-converter-to-mobile.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { Dimensions } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tuseContext,\n\tuseEffect,\n\tuseState,\n\tuseMemo,\n\tuseCallback,\n} from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport GlobalStylesContext from '../global-styles-context';\n\nconst getValueAndUnit = ( value, unit ) => {\n\tconst regex = /(\\d+\\.?\\d*)(.*)/;\n\n\tconst splitValue = `${ value }`\n\t\t?.match( regex )\n\t\t?.filter( ( v ) => v !== '' );\n\n\tif ( splitValue ) {\n\t\treturn {\n\t\t\tvalueToConvert: splitValue[ 1 ],\n\t\t\tvalueUnit: unit || splitValue[ 2 ],\n\t\t};\n\t}\n\treturn undefined;\n};\n\nconst convertUnitToMobile = ( containerSize, globalStyles, value, unit ) => {\n\tconst { width, height } = containerSize;\n\tconst { valueToConvert, valueUnit } = getValueAndUnit( value, unit ) || {};\n\tconst { fontSize = 16 } = globalStyles || {};\n\n\tif ( valueToConvert === undefined ) {\n\t\treturn undefined;\n\t}\n\n\tswitch ( valueUnit ) {\n\t\tcase 'rem':\n\t\tcase 'em':\n\t\t\treturn valueToConvert * fontSize;\n\t\tcase '%':\n\t\t\treturn Number( valueToConvert / 100 ) * width;\n\t\tcase 'px':\n\t\t\treturn Number( valueToConvert );\n\t\tcase 'vw':\n\t\t\tconst vw = width / 100;\n\t\t\treturn Math.round( valueToConvert * vw );\n\t\tcase 'vh':\n\t\t\tconst vh = height / 100;\n\t\t\treturn Math.round( valueToConvert * vh );\n\t\tdefault:\n\t\t\treturn Number( valueToConvert / 100 ) * width;\n\t}\n};\n\nconst useConvertUnitToMobile = ( value, unit ) => {\n\tconst { globalStyles: styles } = useContext( GlobalStylesContext );\n\tconst [ windowSizes, setWindowSizes ] = useState(\n\t\tDimensions.get( 'window' )\n\t);\n\n\tuseEffect( () => {\n\t\tconst dimensionsChangeSubscription = Dimensions.addEventListener(\n\t\t\t'change',\n\t\t\tonDimensionsChange\n\t\t);\n\n\t\treturn () => {\n\t\t\tdimensionsChangeSubscription.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\tconst onDimensionsChange = useCallback( ( { window } ) => {\n\t\tsetWindowSizes( window );\n\t}, [] );\n\n\treturn useMemo( () => {\n\t\tconst { valueToConvert, valueUnit } =\n\t\t\tgetValueAndUnit( value, unit ) || {};\n\n\t\treturn convertUnitToMobile(\n\t\t\twindowSizes,\n\t\t\tstyles,\n\t\t\tvalueToConvert,\n\t\t\tvalueUnit\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}, [ windowSizes, value, unit ] );\n};\n\nexport { convertUnitToMobile, useConvertUnitToMobile, getValueAndUnit };\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,UAAU,QAAQ,cAAc;;AAEzC;AACA;AACA;AACA,SACCC,UAAU,EACVC,SAAS,EACTC,QAAQ,EACRC,OAAO,EACPC,WAAW,QACL,oBAAoB;;AAE3B;AACA;AACA;AACA,OAAOC,mBAAmB,MAAM,0BAA0B;AAE1D,MAAMC,eAAe,GAAGA,CAAEC,KAAK,EAAEC,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,CAAC;IACzC;MACC,OAAOJ,MAAM,CAAET,cAAc,GAAG,GAAI,CAAC,GAAGM,KAAK;EAC/C;AACD,CAAC;AAED,MAAMQ,sBAAsB,GAAGA,CAAErB,KAAK,EAAEC,IAAI,KAAM;EACjD,MAAM;IAAEW,YAAY,EAAEU;EAAO,CAAC,GAAG7B,UAAU,CAAEK,mBAAoB,CAAC;EAClE,MAAM,CAAEyB,WAAW,EAAEC,cAAc,CAAE,GAAG7B,QAAQ,CAC/CH,UAAU,CAACiC,GAAG,CAAE,QAAS,CAC1B,CAAC;EAED/B,SAAS,CAAE,MAAM;IAChB,MAAMgC,4BAA4B,GAAGlC,UAAU,CAACmC,gBAAgB,CAC/D,QAAQ,EACRC,kBACD,CAAC;IAED,OAAO,MAAM;MACZF,4BAA4B,CAACG,MAAM,CAAC,CAAC;IACtC,CAAC;IACD;IACA;IACA;EACD,CAAC,EAAE,EAAG,CAAC;EAEP,MAAMD,kBAAkB,GAAG/B,WAAW,CAAE,CAAE;IAAEiC;EAAO,CAAC,KAAM;IACzDN,cAAc,CAAEM,MAAO,CAAC;EACzB,CAAC,EAAE,EAAG,CAAC;EAEP,OAAOlC,OAAO,CAAE,MAAM;IACrB,MAAM;MAAEW,cAAc;MAAEC;IAAU,CAAC,GAClCT,eAAe,CAAEC,KAAK,EAAEC,IAAK,CAAC,IAAI,CAAC,CAAC;IAErC,OAAOS,mBAAmB,CACzBa,WAAW,EACXD,MAAM,EACNf,cAAc,EACdC,SACD,CAAC;IACD;IACA;IACA;EACD,CAAC,EAAE,CAAEe,WAAW,EAAEvB,KAAK,EAAEC,IAAI,CAAG,CAAC;AAClC,CAAC;AAED,SAASS,mBAAmB,EAAEW,sBAAsB,EAAEtB,eAAe","ignoreList":[]}
1
+ {"version":3,"names":["Dimensions","useEffect","useState","useMemo","useCallback","getValueAndUnit","value","unit","regex","splitValue","match","filter","v","valueToConvert","valueUnit","undefined","convertUnitToMobile","containerSize","globalStyles","width","height","fontSize","Number","vw","Math","round","vh","useConvertUnitToMobile","styles","windowSizes","setWindowSizes","get","dimensionsChangeSubscription","addEventListener","onDimensionsChange","remove","window"],"sources":["@wordpress/components/src/mobile/utils/use-unit-converter-to-mobile.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { Dimensions } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { useEffect, useState, useMemo, useCallback } from '@wordpress/element';\n\nconst getValueAndUnit = ( value, unit ) => {\n\tconst regex = /(\\d+\\.?\\d*)(.*)/;\n\n\tconst splitValue = `${ value }`\n\t\t?.match( regex )\n\t\t?.filter( ( v ) => v !== '' );\n\n\tif ( splitValue ) {\n\t\treturn {\n\t\t\tvalueToConvert: splitValue[ 1 ],\n\t\t\tvalueUnit: unit || splitValue[ 2 ],\n\t\t};\n\t}\n\treturn undefined;\n};\n\nconst convertUnitToMobile = ( containerSize, globalStyles, value, unit ) => {\n\tconst { width, height } = containerSize;\n\tconst { valueToConvert, valueUnit } = getValueAndUnit( value, unit ) || {};\n\tconst { fontSize = 16 } = globalStyles || {};\n\n\tif ( valueToConvert === undefined ) {\n\t\treturn undefined;\n\t}\n\n\tswitch ( valueUnit ) {\n\t\tcase 'rem':\n\t\tcase 'em':\n\t\t\treturn valueToConvert * fontSize;\n\t\tcase '%':\n\t\t\treturn Number( valueToConvert / 100 ) * width;\n\t\tcase 'px':\n\t\t\treturn Number( valueToConvert );\n\t\tcase 'vw':\n\t\t\tconst vw = width / 100;\n\t\t\treturn Math.round( valueToConvert * vw );\n\t\tcase 'vh':\n\t\t\tconst vh = height / 100;\n\t\t\treturn Math.round( valueToConvert * vh );\n\t\tdefault:\n\t\t\treturn Number( valueToConvert / 100 ) * width;\n\t}\n};\n\nconst useConvertUnitToMobile = ( value, unit, styles ) => {\n\tconst [ windowSizes, setWindowSizes ] = useState(\n\t\tDimensions.get( 'window' )\n\t);\n\n\tuseEffect( () => {\n\t\tconst dimensionsChangeSubscription = Dimensions.addEventListener(\n\t\t\t'change',\n\t\t\tonDimensionsChange\n\t\t);\n\n\t\treturn () => {\n\t\t\tdimensionsChangeSubscription.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\tconst onDimensionsChange = useCallback( ( { window } ) => {\n\t\tsetWindowSizes( window );\n\t}, [] );\n\n\treturn useMemo( () => {\n\t\tconst { valueToConvert, valueUnit } =\n\t\t\tgetValueAndUnit( value, unit ) || {};\n\n\t\treturn convertUnitToMobile(\n\t\t\twindowSizes,\n\t\t\tstyles,\n\t\t\tvalueToConvert,\n\t\t\tvalueUnit\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}, [ windowSizes, value, unit ] );\n};\n\nexport { convertUnitToMobile, useConvertUnitToMobile, getValueAndUnit };\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,UAAU,QAAQ,cAAc;;AAEzC;AACA;AACA;AACA,SAASC,SAAS,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,WAAW,QAAQ,oBAAoB;AAE9E,MAAMC,eAAe,GAAGA,CAAEC,KAAK,EAAEC,IAAI,KAAM;EAC1C,MAAMC,KAAK,GAAG,iBAAiB;EAE/B,MAAMC,UAAU,GAAI,GAAGH,KAAO,EAAC,EAC5BI,KAAK,CAAEF,KAAM,CAAC,EACdG,MAAM,CAAIC,CAAC,IAAMA,CAAC,KAAK,EAAG,CAAC;EAE9B,IAAKH,UAAU,EAAG;IACjB,OAAO;MACNI,cAAc,EAAEJ,UAAU,CAAE,CAAC,CAAE;MAC/BK,SAAS,EAAEP,IAAI,IAAIE,UAAU,CAAE,CAAC;IACjC,CAAC;EACF;EACA,OAAOM,SAAS;AACjB,CAAC;AAED,MAAMC,mBAAmB,GAAGA,CAAEC,aAAa,EAAEC,YAAY,EAAEZ,K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G,MAAM,CAAC,CAAC;IACtC,CAAC;IACD;IACA;IACA;EACD,CAAC,EAAE,EAAG,CAAC;EAEP,MAAMD,kBAAkB,GAAG9B,WAAW,CAAE,CAAE;IAAEgC;EAAO,CAAC,KAAM;IACzDN,cAAc,CAAEM,MAAO,CAAC;EACzB,CAAC,EAAE,EAAG,CAAC;EAEP,OAAOjC,OAAO,CAAE,MAAM;IACrB,MAAM;MAAEU,cAAc;MAAEC;IAAU,CAAC,GAClCT,eAAe,CAAEC,KAAK,EAAEC,IAAK,CAAC,IAAI,CAAC,CAAC;IAErC,OAAOS,mBAAmB,CACzBa,WAAW,EACXD,MAAM,EACNf,cAAc,EACdC,SACD,CAAC;IACD;IACA;IACA;EACD,CAAC,EAAE,CAAEe,WAAW,EAAEvB,KAAK,EAAEC,IAAI,CAAG,CAAC;AAClC,CAAC;AAED,SAASS,mBAAmB,EAAEW,sBAAsB,EAAEtB,eAAe","ignoreList":[]}
@@ -1,8 +1,7 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
5
- import classnames from 'classnames';
4
+ import clsx from 'clsx';
6
5
  /**
7
6
  * WordPress dependencies
8
7
  */
@@ -21,6 +20,8 @@ import StyleProvider from '../style-provider';
21
20
  import { withIgnoreIMEEvents } from '../utils/with-ignore-ime-events';
22
21
 
23
22
  // Used to track and dismiss the prior modal when another opens unless nested.
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { jsxs as _jsxs } from "react/jsx-runtime";
24
25
  const ModalContext = createContext([]);
25
26
 
26
27
  // Used to track body class names applied while modals are open.
@@ -199,55 +200,66 @@ function UnforwardedModal(props, forwardedRef) {
199
200
  }
200
201
  };
201
202
  const modal =
203
+ /*#__PURE__*/
202
204
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions
203
- createElement("div", {
205
+ _jsx("div", {
204
206
  ref: useMergeRefs([ref, forwardedRef]),
205
- className: classnames('components-modal__screen-overlay', overlayClassName),
207
+ className: clsx('components-modal__screen-overlay', overlayClassName),
206
208
  onKeyDown: withIgnoreIMEEvents(handleEscapeKeyDown),
207
- ...(shouldCloseOnClickOutside ? overlayPressHandlers : {})
208
- }, createElement(StyleProvider, {
209
- document: document
210
- }, createElement("div", {
211
- className: classnames('components-modal__frame', sizeClass, className),
212
- style: style,
213
- ref: useMergeRefs([constrainedTabbingRef, focusReturnRef, focusOnMount !== 'firstContentElement' ? focusOnMountRef : null]),
214
- role: role,
215
- "aria-label": contentLabel,
216
- "aria-labelledby": contentLabel ? undefined : headingId,
217
- "aria-describedby": aria.describedby,
218
- tabIndex: -1,
219
- onKeyDown: onKeyDown
220
- }, createElement("div", {
221
- className: classnames('components-modal__content', {
222
- 'hide-header': __experimentalHideHeader,
223
- 'is-scrollable': hasScrollableContent,
224
- 'has-scrolled-content': hasScrolledContent
225
- }),
226
- role: "document",
227
- onScroll: onContentContainerScroll,
228
- ref: contentRef,
229
- "aria-label": hasScrollableContent ? __('Scrollable section') : undefined,
230
- tabIndex: hasScrollableContent ? 0 : undefined
231
- }, !__experimentalHideHeader && createElement("div", {
232
- className: "components-modal__header"
233
- }, createElement("div", {
234
- className: "components-modal__header-heading-container"
235
- }, icon && createElement("span", {
236
- className: "components-modal__icon-container",
237
- "aria-hidden": true
238
- }, icon), title && createElement("h1", {
239
- id: headingId,
240
- className: "components-modal__header-heading"
241
- }, title)), headerActions, isDismissible && createElement(Button, {
242
- onClick: onRequestClose,
243
- icon: close,
244
- label: closeButtonLabel || __('Close')
245
- })), createElement("div", {
246
- ref: useMergeRefs([childrenContainerRef, focusOnMount === 'firstContentElement' ? focusOnMountRef : null])
247
- }, children)))));
248
- return createPortal(createElement(ModalContext.Provider, {
249
- value: nestedDismissers.current
250
- }, modal), document.body);
209
+ ...(shouldCloseOnClickOutside ? overlayPressHandlers : {}),
210
+ children: /*#__PURE__*/_jsx(StyleProvider, {
211
+ document: document,
212
+ children: /*#__PURE__*/_jsx("div", {
213
+ className: clsx('components-modal__frame', sizeClass, className),
214
+ style: style,
215
+ ref: useMergeRefs([constrainedTabbingRef, focusReturnRef, focusOnMount !== 'firstContentElement' ? focusOnMountRef : null]),
216
+ role: role,
217
+ "aria-label": contentLabel,
218
+ "aria-labelledby": contentLabel ? undefined : headingId,
219
+ "aria-describedby": aria.describedby,
220
+ tabIndex: -1,
221
+ onKeyDown: onKeyDown,
222
+ children: /*#__PURE__*/_jsxs("div", {
223
+ className: clsx('components-modal__content', {
224
+ 'hide-header': __experimentalHideHeader,
225
+ 'is-scrollable': hasScrollableContent,
226
+ 'has-scrolled-content': hasScrolledContent
227
+ }),
228
+ role: "document",
229
+ onScroll: onContentContainerScroll,
230
+ ref: contentRef,
231
+ "aria-label": hasScrollableContent ? __('Scrollable section') : undefined,
232
+ tabIndex: hasScrollableContent ? 0 : undefined,
233
+ children: [!__experimentalHideHeader && /*#__PURE__*/_jsxs("div", {
234
+ className: "components-modal__header",
235
+ children: [/*#__PURE__*/_jsxs("div", {
236
+ className: "components-modal__header-heading-container",
237
+ children: [icon && /*#__PURE__*/_jsx("span", {
238
+ className: "components-modal__icon-container",
239
+ "aria-hidden": true,
240
+ children: icon
241
+ }), title && /*#__PURE__*/_jsx("h1", {
242
+ id: headingId,
243
+ className: "components-modal__header-heading",
244
+ children: title
245
+ })]
246
+ }), headerActions, isDismissible && /*#__PURE__*/_jsx(Button, {
247
+ onClick: onRequestClose,
248
+ icon: close,
249
+ label: closeButtonLabel || __('Close')
250
+ })]
251
+ }), /*#__PURE__*/_jsx("div", {
252
+ ref: useMergeRefs([childrenContainerRef, focusOnMount === 'firstContentElement' ? focusOnMountRef : null]),
253
+ children: children
254
+ })]
255
+ })
256
+ })
257
+ })
258
+ });
259
+ return createPortal( /*#__PURE__*/_jsx(ModalContext.Provider, {
260
+ value: nestedDismissers.current,
261
+ children: modal
262
+ }), document.body);
251
263
  }
252
264
 
253
265
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["classnames","createPortal","useCallback","useEffect","useRef","useState","forwardRef","useLayoutEffect","createContext","useContext","useInstanceId","useFocusReturn","useFocusOnMount","useConstrainedTabbing","useMergeRefs","__","close","getScrollContainer","ariaHelper","Button","StyleProvider","withIgnoreIMEEvents","ModalContext","bodyOpenClasses","Map","UnforwardedModal","props","forwardedRef","bodyOpenClassName","role","title","focusOnMount","shouldCloseOnEsc","shouldCloseOnClickOutside","isDismissible","aria","labelledby","undefined","describedby","onRequestClose","icon","closeButtonLabel","children","style","overlayClassName","className","contentLabel","onKeyDown","isFullScreen","size","headerActions","__experimentalHideHeader","ref","instanceId","Modal","headingId","focusOnMountRef","constrainedTabbingRef","focusReturnRef","contentRef","childrenContainerRef","hasScrolledContent","setHasScrolledContent","hasScrollableContent","setHasScrollableContent","sizeClass","isContentScrollable","current","closestScrollContainer","modalize","unmodalize","refOnRequestClose","dismissers","nestedDismissers","push","first","second","nested","shift","_bodyOpenClasses$get","theClass","oneMore","get","set","document","body","classList","add","oneLess","remove","delete","window","ResizeObserver","resizeObserver","observe","disconnect","handleEscapeKeyDown","event","code","key","defaultPrevented","preventDefault","onContentContainerScroll","e","_e$currentTarget$scro","scrollY","currentTarget","scrollTop","pressTarget","overlayPressHandlers","onPointerDown","target","onPointerUp","button","isSameTarget","modal","createElement","tabIndex","onScroll","id","onClick","label","Provider","value"],"sources":["@wordpress/components/src/modal/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\nimport type {\n\tForwardedRef,\n\tKeyboardEvent,\n\tMutableRefObject,\n\tUIEvent,\n} from 'react';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tcreatePortal,\n\tuseCallback,\n\tuseEffect,\n\tuseRef,\n\tuseState,\n\tforwardRef,\n\tuseLayoutEffect,\n\tcreateContext,\n\tuseContext,\n} from '@wordpress/element';\nimport {\n\tuseInstanceId,\n\tuseFocusReturn,\n\tuseFocusOnMount,\n\tuseConstrainedTabbing,\n\tuseMergeRefs,\n} from '@wordpress/compose';\nimport { __ } from '@wordpress/i18n';\nimport { close } from '@wordpress/icons';\nimport { getScrollContainer } from '@wordpress/dom';\n\n/**\n * Internal dependencies\n */\nimport * as ariaHelper from './aria-helper';\nimport Button from '../button';\nimport StyleProvider from '../style-provider';\nimport type { ModalProps } from './types';\nimport { withIgnoreIMEEvents } from '../utils/with-ignore-ime-events';\n\n// Used to track and dismiss the prior modal when another opens unless nested.\nconst ModalContext = createContext<\n\tMutableRefObject< ModalProps[ 'onRequestClose' ] | undefined >[]\n>( [] );\n\n// Used to track body class names applied while modals are open.\nconst bodyOpenClasses = new Map< string, number >();\n\nfunction UnforwardedModal(\n\tprops: ModalProps,\n\tforwardedRef: ForwardedRef< HTMLDivElement >\n) {\n\tconst {\n\t\tbodyOpenClassName = 'modal-open',\n\t\trole = 'dialog',\n\t\ttitle = null,\n\t\tfocusOnMount = true,\n\t\tshouldCloseOnEsc = true,\n\t\tshouldCloseOnClickOutside = true,\n\t\tisDismissible = true,\n\t\t/* Accessibility. */\n\t\taria = {\n\t\t\tlabelledby: undefined,\n\t\t\tdescribedby: undefined,\n\t\t},\n\t\tonRequestClose,\n\t\ticon,\n\t\tcloseButtonLabel,\n\t\tchildren,\n\t\tstyle,\n\t\toverlayClassName,\n\t\tclassName,\n\t\tcontentLabel,\n\t\tonKeyDown,\n\t\tisFullScreen = false,\n\t\tsize,\n\t\theaderActions = null,\n\t\t__experimentalHideHeader = false,\n\t} = props;\n\n\tconst ref = useRef< HTMLDivElement >();\n\n\tconst instanceId = useInstanceId( Modal );\n\tconst headingId = title\n\t\t? `components-modal-header-${ instanceId }`\n\t\t: aria.labelledby;\n\n\t// The focus hook does not support 'firstContentElement' but this is a valid\n\t// value for the Modal's focusOnMount prop. The following code ensures the focus\n\t// hook will focus the first focusable node within the element to which it is applied.\n\t// When `firstContentElement` is passed as the value of the focusOnMount prop,\n\t// the focus hook is applied to the Modal's content element.\n\t// Otherwise, the focus hook is applied to the Modal's ref. This ensures that the\n\t// focus hook will focus the first element in the Modal's **content** when\n\t// `firstContentElement` is passed.\n\tconst focusOnMountRef = useFocusOnMount(\n\t\tfocusOnMount === 'firstContentElement' ? 'firstElement' : focusOnMount\n\t);\n\tconst constrainedTabbingRef = useConstrainedTabbing();\n\tconst focusReturnRef = useFocusReturn();\n\tconst contentRef = useRef< HTMLDivElement >( null );\n\tconst childrenContainerRef = useRef< HTMLDivElement >( null );\n\n\tconst [ hasScrolledContent, setHasScrolledContent ] = useState( false );\n\tconst [ hasScrollableContent, setHasScrollableContent ] = useState( false );\n\n\tlet sizeClass;\n\tif ( isFullScreen || size === 'fill' ) {\n\t\tsizeClass = 'is-full-screen';\n\t} else if ( size ) {\n\t\tsizeClass = `has-size-${ size }`;\n\t}\n\n\t// Determines whether the Modal content is scrollable and updates the state.\n\tconst isContentScrollable = useCallback( () => {\n\t\tif ( ! contentRef.current ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst closestScrollContainer = getScrollContainer( contentRef.current );\n\n\t\tif ( contentRef.current === closestScrollContainer ) {\n\t\t\tsetHasScrollableContent( true );\n\t\t} else {\n\t\t\tsetHasScrollableContent( false );\n\t\t}\n\t}, [ contentRef ] );\n\n\t// Accessibly isolates/unisolates the modal.\n\tuseEffect( () => {\n\t\tariaHelper.modalize( ref.current );\n\t\treturn () => ariaHelper.unmodalize();\n\t}, [] );\n\n\t// Keeps a fresh ref for the subsequent effect.\n\tconst refOnRequestClose = useRef< ModalProps[ 'onRequestClose' ] >();\n\tuseEffect( () => {\n\t\trefOnRequestClose.current = onRequestClose;\n\t}, [ onRequestClose ] );\n\n\t// The list of `onRequestClose` callbacks of open (non-nested) Modals. Only\n\t// one should remain open at a time and the list enables closing prior ones.\n\tconst dismissers = useContext( ModalContext );\n\t// Used for the tracking and dismissing any nested modals.\n\tconst nestedDismissers = useRef< typeof dismissers >( [] );\n\n\t// Updates the stack tracking open modals at this level and calls\n\t// onRequestClose for any prior and/or nested modals as applicable.\n\tuseEffect( () => {\n\t\tdismissers.push( refOnRequestClose );\n\t\tconst [ first, second ] = dismissers;\n\t\tif ( second ) {\n\t\t\tfirst?.current?.();\n\t\t}\n\n\t\tconst nested = nestedDismissers.current;\n\t\treturn () => {\n\t\t\tnested[ 0 ]?.current?.();\n\t\t\tdismissers.shift();\n\t\t};\n\t}, [ dismissers ] );\n\n\t// Adds/removes the value of bodyOpenClassName to body element.\n\tuseEffect( () => {\n\t\tconst theClass = bodyOpenClassName;\n\t\tconst oneMore = 1 + ( bodyOpenClasses.get( theClass ) ?? 0 );\n\t\tbodyOpenClasses.set( theClass, oneMore );\n\t\tdocument.body.classList.add( bodyOpenClassName );\n\t\treturn () => {\n\t\t\tconst oneLess = bodyOpenClasses.get( theClass )! - 1;\n\t\t\tif ( oneLess === 0 ) {\n\t\t\t\tdocument.body.classList.remove( theClass );\n\t\t\t\tbodyOpenClasses.delete( theClass );\n\t\t\t} else {\n\t\t\t\tbodyOpenClasses.set( theClass, oneLess );\n\t\t\t}\n\t\t};\n\t}, [ bodyOpenClassName ] );\n\n\t// Calls the isContentScrollable callback when the Modal children container resizes.\n\tuseLayoutEffect( () => {\n\t\tif ( ! window.ResizeObserver || ! childrenContainerRef.current ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst resizeObserver = new ResizeObserver( isContentScrollable );\n\t\tresizeObserver.observe( childrenContainerRef.current );\n\n\t\tisContentScrollable();\n\n\t\treturn () => {\n\t\t\tresizeObserver.disconnect();\n\t\t};\n\t}, [ isContentScrollable, childrenContainerRef ] );\n\n\tfunction handleEscapeKeyDown( event: KeyboardEvent< HTMLDivElement > ) {\n\t\tif (\n\t\t\tshouldCloseOnEsc &&\n\t\t\t( event.code === 'Escape' || event.key === 'Escape' ) &&\n\t\t\t! event.defaultPrevented\n\t\t) {\n\t\t\tevent.preventDefault();\n\t\t\tif ( onRequestClose ) {\n\t\t\t\tonRequestClose( event );\n\t\t\t}\n\t\t}\n\t}\n\n\tconst onContentContainerScroll = useCallback(\n\t\t( e: UIEvent< HTMLDivElement > ) => {\n\t\t\tconst scrollY = e?.currentTarget?.scrollTop ?? -1;\n\n\t\t\tif ( ! hasScrolledContent && scrollY > 0 ) {\n\t\t\t\tsetHasScrolledContent( true );\n\t\t\t} else if ( hasScrolledContent && scrollY <= 0 ) {\n\t\t\t\tsetHasScrolledContent( false );\n\t\t\t}\n\t\t},\n\t\t[ hasScrolledContent ]\n\t);\n\n\tlet pressTarget: EventTarget | null = null;\n\tconst overlayPressHandlers: {\n\t\tonPointerDown: React.PointerEventHandler< HTMLDivElement >;\n\t\tonPointerUp: React.PointerEventHandler< HTMLDivElement >;\n\t} = {\n\t\tonPointerDown: ( event ) => {\n\t\t\tif ( event.target === event.currentTarget ) {\n\t\t\t\tpressTarget = event.target;\n\t\t\t\t// Avoids focus changing so that focus return works as expected.\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t},\n\t\t// Closes the modal with two exceptions. 1. Opening the context menu on\n\t\t// the overlay. 2. Pressing on the overlay then dragging the pointer\n\t\t// over the modal and releasing. Due to the modal being a child of the\n\t\t// overlay, such a gesture is a `click` on the overlay and cannot be\n\t\t// excepted by a `click` handler. Thus the tactic of handling\n\t\t// `pointerup` and comparing its target to that of the `pointerdown`.\n\t\tonPointerUp: ( { target, button } ) => {\n\t\t\tconst isSameTarget = target === pressTarget;\n\t\t\tpressTarget = null;\n\t\t\tif ( button === 0 && isSameTarget ) {\n\t\t\t\tonRequestClose();\n\t\t\t}\n\t\t},\n\t};\n\n\tconst modal = (\n\t\t// eslint-disable-next-line jsx-a11y/no-static-element-interactions\n\t\t<div\n\t\t\tref={ useMergeRefs( [ ref, forwardedRef ] ) }\n\t\t\tclassName={ classnames(\n\t\t\t\t'components-modal__screen-overlay',\n\t\t\t\toverlayClassName\n\t\t\t) }\n\t\t\tonKeyDown={ withIgnoreIMEEvents( handleEscapeKeyDown ) }\n\t\t\t{ ...( shouldCloseOnClickOutside ? overlayPressHandlers : {} ) }\n\t\t>\n\t\t\t<StyleProvider document={ document }>\n\t\t\t\t<div\n\t\t\t\t\tclassName={ classnames(\n\t\t\t\t\t\t'components-modal__frame',\n\t\t\t\t\t\tsizeClass,\n\t\t\t\t\t\tclassName\n\t\t\t\t\t) }\n\t\t\t\t\tstyle={ style }\n\t\t\t\t\tref={ useMergeRefs( [\n\t\t\t\t\t\tconstrainedTabbingRef,\n\t\t\t\t\t\tfocusReturnRef,\n\t\t\t\t\t\tfocusOnMount !== 'firstContentElement'\n\t\t\t\t\t\t\t? focusOnMountRef\n\t\t\t\t\t\t\t: null,\n\t\t\t\t\t] ) }\n\t\t\t\t\trole={ role }\n\t\t\t\t\taria-label={ contentLabel }\n\t\t\t\t\taria-labelledby={ contentLabel ? undefined : headingId }\n\t\t\t\t\taria-describedby={ aria.describedby }\n\t\t\t\t\ttabIndex={ -1 }\n\t\t\t\t\tonKeyDown={ onKeyDown }\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={ classnames( 'components-modal__content', {\n\t\t\t\t\t\t\t'hide-header': __experimentalHideHeader,\n\t\t\t\t\t\t\t'is-scrollable': hasScrollableContent,\n\t\t\t\t\t\t\t'has-scrolled-content': hasScrolledContent,\n\t\t\t\t\t\t} ) }\n\t\t\t\t\t\trole=\"document\"\n\t\t\t\t\t\tonScroll={ onContentContainerScroll }\n\t\t\t\t\t\tref={ contentRef }\n\t\t\t\t\t\taria-label={\n\t\t\t\t\t\t\thasScrollableContent\n\t\t\t\t\t\t\t\t? __( 'Scrollable section' )\n\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttabIndex={ hasScrollableContent ? 0 : undefined }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ ! __experimentalHideHeader && (\n\t\t\t\t\t\t\t<div className=\"components-modal__header\">\n\t\t\t\t\t\t\t\t<div className=\"components-modal__header-heading-container\">\n\t\t\t\t\t\t\t\t\t{ icon && (\n\t\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\t\tclassName=\"components-modal__icon-container\"\n\t\t\t\t\t\t\t\t\t\t\taria-hidden\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{ icon }\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t{ title && (\n\t\t\t\t\t\t\t\t\t\t<h1\n\t\t\t\t\t\t\t\t\t\t\tid={ headingId }\n\t\t\t\t\t\t\t\t\t\t\tclassName=\"components-modal__header-heading\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{ title }\n\t\t\t\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t{ headerActions }\n\t\t\t\t\t\t\t\t{ isDismissible && (\n\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\tonClick={ onRequestClose }\n\t\t\t\t\t\t\t\t\t\ticon={ close }\n\t\t\t\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t\t\t\tcloseButtonLabel || __( 'Close' )\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) }\n\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tref={ useMergeRefs( [\n\t\t\t\t\t\t\t\tchildrenContainerRef,\n\t\t\t\t\t\t\t\tfocusOnMount === 'firstContentElement'\n\t\t\t\t\t\t\t\t\t? focusOnMountRef\n\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t] ) }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ children }\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</StyleProvider>\n\t\t</div>\n\t);\n\n\treturn createPortal(\n\t\t<ModalContext.Provider value={ nestedDismissers.current }>\n\t\t\t{ modal }\n\t\t</ModalContext.Provider>,\n\t\tdocument.body\n\t);\n}\n\n/**\n * Modals give users information and choices related to a task they’re trying to\n * accomplish. They can contain critical information, require decisions, or\n * involve multiple tasks.\n *\n * ```jsx\n * import { Button, Modal } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const MyModal = () => {\n * const [ isOpen, setOpen ] = useState( false );\n * const openModal = () => setOpen( true );\n * const closeModal = () => setOpen( false );\n *\n * return (\n * <>\n * <Button variant=\"secondary\" onClick={ openModal }>\n * Open Modal\n * </Button>\n * { isOpen && (\n * <Modal title=\"This is my modal\" onRequestClose={ closeModal }>\n * <Button variant=\"secondary\" onClick={ closeModal }>\n * My custom close button\n * </Button>\n * </Modal>\n * ) }\n * </>\n * );\n * };\n * ```\n */\nexport const Modal = forwardRef( UnforwardedModal );\n\nexport default Modal;\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,UAAU,MAAM,YAAY;AAQnC;AACA;AACA;AACA,SACCC,YAAY,EACZC,WAAW,EACXC,SAAS,EACTC,MAAM,EACNC,QAAQ,EACRC,UAAU,EACVC,eAAe,EACfC,aAAa,EACbC,UAAU,QACJ,oBAAoB;AAC3B,SACCC,aAAa,EACbC,cAAc,EACdC,eAAe,EACfC,qBAAqB,EACrBC,YAAY,QACN,oBAAoB;AAC3B,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,KAAK,QAAQ,kBAAkB;AACxC,SAASC,kBAAkB,QAAQ,gBAAgB;;AAEnD;AACA;AACA;AACA,OAAO,KAAKC,UAAU,MAAM,eAAe;AAC3C,OAAOC,MAAM,MAAM,WAAW;AAC9B,OAAOC,aAAa,MAAM,mBAAmB;AAE7C,SAASC,mBAAmB,QAAQ,iCAAiC;;AAErE;AACA,MAAMC,YAAY,GAAGd,aAAa,CAE/B,EAAG,CAAC;;AAEP;AACA,MAAMe,eAAe,GAAG,IAAIC,GAAG,CAAmB,CAAC;AAEnD,SAASC,gBAAgBA,CACxBC,KAAiB,EACjBC,YAA4C,EAC3C;EACD,MAAM;IACLC,iBAAiB,G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1BsB,SACH;IACDgF,QAAQ,EAAGtD,oBAAoB,GAAG,CAAC,GAAG1B;EAAW,GAE/C,CAAEc,wBAAwB,IAC3BiE,aAAA;IAAKvE,SAAS,EAAC;EAA0B,GACxCuE,aAAA;IAAKvE,SAAS,EAAC;EAA4C,GACxDL,IAAI,IACL4E,aAAA;IACCvE,SAAS,EAAC,kCAAkC;IAC5C;EAAW,GAETL,IACG,CACN,EACCV,KAAK,IACNsF,aAAA;IACCG,EAAE,EAAGhE,SAAW;IAChBV,SAAS,EAAC;EAAkC,GAE1Cf,KACC,CAED,CAAC,EACJoB,aAAa,EACbhB,aAAa,IACdkF,aAAA,CAACjG,MAAM;IACNqG,OAAO,EAAGjF,cAAgB;IAC1BC,IAAI,EAAGxB,KAAO;IACdyG,KAAK,EACJhF,gBAAgB,IAAI1B,EAAE,CAAE,OAAQ;EAChC,CACD,CAEE,CACL,EAEDqG,aAAA;IACChE,GAAG,EAAGtC,YAAY,CAAE,CACnB8C,oBAAoB,EACpB7B,YAAY,KAAK,qBAAqB,GACnCyB,eAAe,GACf,IAAI,CACN;EAAG,GAEHd,QACE,CACD,CACD,CACS,CACX,CACL;EAED,OAAOzC,YAAY,CAClBmH,aAAA,CAAC9F,YAAY,CAACoG,QAAQ;IAACC,KAAK,EAAGlD,gBAAgB,CAACN;EAAS,GACtDgD,KACoB,CAAC,EACxB/B,QAAQ,CAACC,IACV,CAAC;AACF;;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,OAAO,MAAM/B,KAAK,GAAGhD,UAAU,CAAEmB,gBAAiB,CAAC;AAEnD,eAAe6B,KAAK","ignoreList":[]}
1
+ {"version":3,"names":["clsx","createPortal","useCallback","useEffect","useRef","useState","forwardRef","useLayoutEffect","createContext","useContext","useInstanceId","useFocusReturn","useFocusOnMount","useConstrainedTabbing","useMergeRefs","__","close","getScrollContainer","ariaHelper","Button","StyleProvider","withIgnoreIMEEvents","jsx","_jsx","jsxs","_jsxs","ModalContext","bodyOpenClasses","Map","UnforwardedModal","props","forwardedRef","bodyOpenClassName","role","title","focusOnMount","shouldCloseOnEsc","shouldCloseOnClickOutside","isDismissible","aria","labelledby","undefined","describedby","onRequestClose","icon","closeButtonLabel","children","style","overlayClassName","className","contentLabel","onKeyDown","isFullScreen","size","headerActions","__experimentalHideHeader","ref","instanceId","Modal","headingId","focusOnMountRef","constrainedTabbingRef","focusReturnRef","contentRef","childrenContainerRef","hasScrolledContent","setHasScrolledContent","hasScrollableContent","setHasScrollableContent","sizeClass","isContentScrollable","current","closestScrollContainer","modalize","unmodalize","refOnRequestClose","dismissers","nestedDismissers","push","first","second","nested","shift","_bodyOpenClasses$get","theClass","oneMore","get","set","document","body","classList","add","oneLess","remove","delete","window","ResizeObserver","resizeObserver","observe","disconnect","handleEscapeKeyDown","event","code","key","defaultPrevented","preventDefault","onContentContainerScroll","e","_e$currentTarget$scro","scrollY","currentTarget","scrollTop","pressTarget","overlayPressHandlers","onPointerDown","target","onPointerUp","button","isSameTarget","modal","tabIndex","onScroll","id","onClick","label","Provider","value"],"sources":["@wordpress/components/src/modal/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\nimport type {\n\tForwardedRef,\n\tKeyboardEvent,\n\tMutableRefObject,\n\tUIEvent,\n} from 'react';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tcreatePortal,\n\tuseCallback,\n\tuseEffect,\n\tuseRef,\n\tuseState,\n\tforwardRef,\n\tuseLayoutEffect,\n\tcreateContext,\n\tuseContext,\n} from '@wordpress/element';\nimport {\n\tuseInstanceId,\n\tuseFocusReturn,\n\tuseFocusOnMount,\n\tuseConstrainedTabbing,\n\tuseMergeRefs,\n} from '@wordpress/compose';\nimport { __ } from '@wordpress/i18n';\nimport { close } from '@wordpress/icons';\nimport { getScrollContainer } from '@wordpress/dom';\n\n/**\n * Internal dependencies\n */\nimport * as ariaHelper from './aria-helper';\nimport Button from '../button';\nimport StyleProvider from '../style-provider';\nimport type { ModalProps } from './types';\nimport { withIgnoreIMEEvents } from '../utils/with-ignore-ime-events';\n\n// Used to track and dismiss the prior modal when another opens unless nested.\nconst ModalContext = createContext<\n\tMutableRefObject< ModalProps[ 'onRequestClose' ] | undefined >[]\n>( [] );\n\n// Used to track body class names applied while modals are open.\nconst bodyOpenClasses = new Map< string, number >();\n\nfunction UnforwardedModal(\n\tprops: ModalProps,\n\tforwardedRef: ForwardedRef< HTMLDivElement >\n) {\n\tconst {\n\t\tbodyOpenClassName = 'modal-open',\n\t\trole = 'dialog',\n\t\ttitle = null,\n\t\tfocusOnMount = true,\n\t\tshouldCloseOnEsc = true,\n\t\tshouldCloseOnClickOutside = true,\n\t\tisDismissible = true,\n\t\t/* Accessibility. */\n\t\taria = {\n\t\t\tlabelledby: undefined,\n\t\t\tdescribedby: undefined,\n\t\t},\n\t\tonRequestClose,\n\t\ticon,\n\t\tcloseButtonLabel,\n\t\tchildren,\n\t\tstyle,\n\t\toverlayClassName,\n\t\tclassName,\n\t\tcontentLabel,\n\t\tonKeyDown,\n\t\tisFullScreen = false,\n\t\tsize,\n\t\theaderActions = null,\n\t\t__experimentalHideHeader = false,\n\t} = props;\n\n\tconst ref = useRef< HTMLDivElement >();\n\n\tconst instanceId = useInstanceId( Modal );\n\tconst headingId = title\n\t\t? `components-modal-header-${ instanceId }`\n\t\t: aria.labelledby;\n\n\t// The focus hook does not support 'firstContentElement' but this is a valid\n\t// value for the Modal's focusOnMount prop. The following code ensures the focus\n\t// hook will focus the first focusable node within the element to which it is applied.\n\t// When `firstContentElement` is passed as the value of the focusOnMount prop,\n\t// the focus hook is applied to the Modal's content element.\n\t// Otherwise, the focus hook is applied to the Modal's ref. This ensures that the\n\t// focus hook will focus the first element in the Modal's **content** when\n\t// `firstContentElement` is passed.\n\tconst focusOnMountRef = useFocusOnMount(\n\t\tfocusOnMount === 'firstContentElement' ? 'firstElement' : focusOnMount\n\t);\n\tconst constrainedTabbingRef = useConstrainedTabbing();\n\tconst focusReturnRef = useFocusReturn();\n\tconst contentRef = useRef< HTMLDivElement >( null );\n\tconst childrenContainerRef = useRef< HTMLDivElement >( null );\n\n\tconst [ hasScrolledContent, setHasScrolledContent ] = useState( false );\n\tconst [ hasScrollableContent, setHasScrollableContent ] = useState( false );\n\n\tlet sizeClass;\n\tif ( isFullScreen || size === 'fill' ) {\n\t\tsizeClass = 'is-full-screen';\n\t} else if ( size ) {\n\t\tsizeClass = `has-size-${ size }`;\n\t}\n\n\t// Determines whether the Modal content is scrollable and updates the state.\n\tconst isContentScrollable = useCallback( () => {\n\t\tif ( ! contentRef.current ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst closestScrollContainer = getScrollContainer( contentRef.current );\n\n\t\tif ( contentRef.current === closestScrollContainer ) {\n\t\t\tsetHasScrollableContent( true );\n\t\t} else {\n\t\t\tsetHasScrollableContent( false );\n\t\t}\n\t}, [ contentRef ] );\n\n\t// Accessibly isolates/unisolates the modal.\n\tuseEffect( () => {\n\t\tariaHelper.modalize( ref.current );\n\t\treturn () => ariaHelper.unmodalize();\n\t}, [] );\n\n\t// Keeps a fresh ref for the subsequent effect.\n\tconst refOnRequestClose = useRef< ModalProps[ 'onRequestClose' ] >();\n\tuseEffect( () => {\n\t\trefOnRequestClose.current = onRequestClose;\n\t}, [ onRequestClose ] );\n\n\t// The list of `onRequestClose` callbacks of open (non-nested) Modals. Only\n\t// one should remain open at a time and the list enables closing prior ones.\n\tconst dismissers = useContext( ModalContext );\n\t// Used for the tracking and dismissing any nested modals.\n\tconst nestedDismissers = useRef< typeof dismissers >( [] );\n\n\t// Updates the stack tracking open modals at this level and calls\n\t// onRequestClose for any prior and/or nested modals as applicable.\n\tuseEffect( () => {\n\t\tdismissers.push( refOnRequestClose );\n\t\tconst [ first, second ] = dismissers;\n\t\tif ( second ) {\n\t\t\tfirst?.current?.();\n\t\t}\n\n\t\tconst nested = nestedDismissers.current;\n\t\treturn () => {\n\t\t\tnested[ 0 ]?.current?.();\n\t\t\tdismissers.shift();\n\t\t};\n\t}, [ dismissers ] );\n\n\t// Adds/removes the value of bodyOpenClassName to body element.\n\tuseEffect( () => {\n\t\tconst theClass = bodyOpenClassName;\n\t\tconst oneMore = 1 + ( bodyOpenClasses.get( theClass ) ?? 0 );\n\t\tbodyOpenClasses.set( theClass, oneMore );\n\t\tdocument.body.classList.add( bodyOpenClassName );\n\t\treturn () => {\n\t\t\tconst oneLess = bodyOpenClasses.get( theClass )! - 1;\n\t\t\tif ( oneLess === 0 ) {\n\t\t\t\tdocument.body.classList.remove( theClass );\n\t\t\t\tbodyOpenClasses.delete( theClass );\n\t\t\t} else {\n\t\t\t\tbodyOpenClasses.set( theClass, oneLess );\n\t\t\t}\n\t\t};\n\t}, [ bodyOpenClassName ] );\n\n\t// Calls the isContentScrollable callback when the Modal children container resizes.\n\tuseLayoutEffect( () => {\n\t\tif ( ! window.ResizeObserver || ! childrenContainerRef.current ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst resizeObserver = new ResizeObserver( isContentScrollable );\n\t\tresizeObserver.observe( childrenContainerRef.current );\n\n\t\tisContentScrollable();\n\n\t\treturn () => {\n\t\t\tresizeObserver.disconnect();\n\t\t};\n\t}, [ isContentScrollable, childrenContainerRef ] );\n\n\tfunction handleEscapeKeyDown( event: KeyboardEvent< HTMLDivElement > ) {\n\t\tif (\n\t\t\tshouldCloseOnEsc &&\n\t\t\t( event.code === 'Escape' || event.key === 'Escape' ) &&\n\t\t\t! event.defaultPrevented\n\t\t) {\n\t\t\tevent.preventDefault();\n\t\t\tif ( onRequestClose ) {\n\t\t\t\tonRequestClose( event );\n\t\t\t}\n\t\t}\n\t}\n\n\tconst onContentContainerScroll = useCallback(\n\t\t( e: UIEvent< HTMLDivElement > ) => {\n\t\t\tconst scrollY = e?.currentTarget?.scrollTop ?? -1;\n\n\t\t\tif ( ! hasScrolledContent && scrollY > 0 ) {\n\t\t\t\tsetHasScrolledContent( true );\n\t\t\t} else if ( hasScrolledContent && scrollY <= 0 ) {\n\t\t\t\tsetHasScrolledContent( false );\n\t\t\t}\n\t\t},\n\t\t[ hasScrolledContent ]\n\t);\n\n\tlet pressTarget: EventTarget | null = null;\n\tconst overlayPressHandlers: {\n\t\tonPointerDown: React.PointerEventHandler< HTMLDivElement >;\n\t\tonPointerUp: React.PointerEventHandler< HTMLDivElement >;\n\t} = {\n\t\tonPointerDown: ( event ) => {\n\t\t\tif ( event.target === event.currentTarget ) {\n\t\t\t\tpressTarget = event.target;\n\t\t\t\t// Avoids focus changing so that focus return works as expected.\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t},\n\t\t// Closes the modal with two exceptions. 1. Opening the context menu on\n\t\t// the overlay. 2. Pressing on the overlay then dragging the pointer\n\t\t// over the modal and releasing. Due to the modal being a child of the\n\t\t// overlay, such a gesture is a `click` on the overlay and cannot be\n\t\t// excepted by a `click` handler. Thus the tactic of handling\n\t\t// `pointerup` and comparing its target to that of the `pointerdown`.\n\t\tonPointerUp: ( { target, button } ) => {\n\t\t\tconst isSameTarget = target === pressTarget;\n\t\t\tpressTarget = null;\n\t\t\tif ( button === 0 && isSameTarget ) {\n\t\t\t\tonRequestClose();\n\t\t\t}\n\t\t},\n\t};\n\n\tconst modal = (\n\t\t// eslint-disable-next-line jsx-a11y/no-static-element-interactions\n\t\t<div\n\t\t\tref={ useMergeRefs( [ ref, forwardedRef ] ) }\n\t\t\tclassName={ clsx(\n\t\t\t\t'components-modal__screen-overlay',\n\t\t\t\toverlayClassName\n\t\t\t) }\n\t\t\tonKeyDown={ withIgnoreIMEEvents( handleEscapeKeyDown ) }\n\t\t\t{ ...( shouldCloseOnClickOutside ? overlayPressHandlers : {} ) }\n\t\t>\n\t\t\t<StyleProvider document={ document }>\n\t\t\t\t<div\n\t\t\t\t\tclassName={ clsx(\n\t\t\t\t\t\t'components-modal__frame',\n\t\t\t\t\t\tsizeClass,\n\t\t\t\t\t\tclassName\n\t\t\t\t\t) }\n\t\t\t\t\tstyle={ style }\n\t\t\t\t\tref={ useMergeRefs( [\n\t\t\t\t\t\tconstrainedTabbingRef,\n\t\t\t\t\t\tfocusReturnRef,\n\t\t\t\t\t\tfocusOnMount !== 'firstContentElement'\n\t\t\t\t\t\t\t? focusOnMountRef\n\t\t\t\t\t\t\t: null,\n\t\t\t\t\t] ) }\n\t\t\t\t\trole={ role }\n\t\t\t\t\taria-label={ contentLabel }\n\t\t\t\t\taria-labelledby={ contentLabel ? undefined : headingId }\n\t\t\t\t\taria-describedby={ aria.describedby }\n\t\t\t\t\ttabIndex={ -1 }\n\t\t\t\t\tonKeyDown={ onKeyDown }\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={ clsx( 'components-modal__content', {\n\t\t\t\t\t\t\t'hide-header': __experimentalHideHeader,\n\t\t\t\t\t\t\t'is-scrollable': hasScrollableContent,\n\t\t\t\t\t\t\t'has-scrolled-content': hasScrolledContent,\n\t\t\t\t\t\t} ) }\n\t\t\t\t\t\trole=\"document\"\n\t\t\t\t\t\tonScroll={ onContentContainerScroll }\n\t\t\t\t\t\tref={ contentRef }\n\t\t\t\t\t\taria-label={\n\t\t\t\t\t\t\thasScrollableContent\n\t\t\t\t\t\t\t\t? __( 'Scrollable section' )\n\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttabIndex={ hasScrollableContent ? 0 : undefined }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ ! __experimentalHideHeader && (\n\t\t\t\t\t\t\t<div className=\"components-modal__header\">\n\t\t\t\t\t\t\t\t<div className=\"components-modal__header-heading-container\">\n\t\t\t\t\t\t\t\t\t{ icon && (\n\t\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\t\tclassName=\"components-modal__icon-container\"\n\t\t\t\t\t\t\t\t\t\t\taria-hidden\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{ icon }\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t{ title && (\n\t\t\t\t\t\t\t\t\t\t<h1\n\t\t\t\t\t\t\t\t\t\t\tid={ headingId }\n\t\t\t\t\t\t\t\t\t\t\tclassName=\"components-modal__header-heading\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{ title }\n\t\t\t\t\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t{ headerActions }\n\t\t\t\t\t\t\t\t{ isDismissible && (\n\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\tonClick={ onRequestClose }\n\t\t\t\t\t\t\t\t\t\ticon={ close }\n\t\t\t\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t\t\t\tcloseButtonLabel || __( 'Close' )\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) }\n\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tref={ useMergeRefs( [\n\t\t\t\t\t\t\t\tchildrenContainerRef,\n\t\t\t\t\t\t\t\tfocusOnMount === 'firstContentElement'\n\t\t\t\t\t\t\t\t\t? focusOnMountRef\n\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t] ) }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ children }\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</StyleProvider>\n\t\t</div>\n\t);\n\n\treturn createPortal(\n\t\t<ModalContext.Provider value={ nestedDismissers.current }>\n\t\t\t{ modal }\n\t\t</ModalContext.Provider>,\n\t\tdocument.body\n\t);\n}\n\n/**\n * Modals give users information and choices related to a task they’re trying to\n * accomplish. They can contain critical information, require decisions, or\n * involve multiple tasks.\n *\n * ```jsx\n * import { Button, Modal } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const MyModal = () => {\n * const [ isOpen, setOpen ] = useState( false );\n * const openModal = () => setOpen( true );\n * const closeModal = () => setOpen( false );\n *\n * return (\n * <>\n * <Button variant=\"secondary\" onClick={ openModal }>\n * Open Modal\n * </Button>\n * { isOpen && (\n * <Modal title=\"This is my modal\" onRequestClose={ closeModal }>\n * <Button variant=\"secondary\" onClick={ closeModal }>\n * My custom close button\n * </Button>\n * </Modal>\n * ) }\n * </>\n * );\n * };\n * ```\n */\nexport const Modal = forwardRef( UnforwardedModal );\n\nexport default Modal;\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;AAQvB;AACA;AACA;AACA,SACCC,YAAY,EACZC,WAAW,EACXC,SAAS,EACTC,MAAM,EACNC,QAAQ,EACRC,UAAU,EACVC,eAAe,EACfC,aAAa,EACbC,UAAU,QACJ,oBAAoB;AAC3B,SACCC,aAAa,EACbC,cAAc,EACdC,eAAe,EACfC,qBAAqB,EACrBC,YAAY,QACN,oBAAoB;AAC3B,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,KAAK,QAAQ,kBAAkB;AACxC,SAASC,kBAAkB,QAAQ,gBAAgB;;AAEnD;AACA;AACA;AACA,OAAO,KAAKC,UAAU,MAAM,eAAe;AAC3C,OAAOC,MAAM,MAAM,WAAW;AAC9B,OAAOC,aAAa,MAAM,mBAAmB;AAE7C,SAASC,mBAAmB,QAAQ,iCAAiC;;AAErE;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AACA,MAAMC,YAAY,GAAGlB,aAAa,CAE/B,EAAG,CAAC;;AAEP;AACA,MAAMmB,eAAe,GAAG,IAAIC,GAAG,CAAmB,CAAC;AAEnD,SAASC,gBAAgBA,CACxBC,KAAiB,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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAM/B,KAAK,GAAGpD,UAAU,CAAEuB,gBAAiB,CAAC;AAEnD,eAAe6B,KAAK","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
@@ -12,7 +11,7 @@ import { focus } from '@wordpress/dom';
12
11
  /**
13
12
  * Internal dependencies
14
13
  */
15
-
14
+ import { jsx as _jsx } from "react/jsx-runtime";
16
15
  const noop = () => {};
17
16
  const MENU_ITEM_ROLES = ['menuitem', 'menuitemradio', 'menuitemcheckbox'];
18
17
  function cycleValue(value, total, offset) {
@@ -152,14 +151,15 @@ class NavigableContainer extends Component {
152
151
  forwardedRef,
153
152
  ...restProps
154
153
  } = this.props;
155
- return createElement("div", {
154
+ return /*#__PURE__*/_jsx("div", {
156
155
  ref: this.bindContainer,
157
- ...restProps
158
- }, children);
156
+ ...restProps,
157
+ children: children
158
+ });
159
159
  }
160
160
  }
161
161
  const forwardedNavigableContainer = (props, ref) => {
162
- return createElement(NavigableContainer, {
162
+ return /*#__PURE__*/_jsx(NavigableContainer, {
163
163
  ...props,
164
164
  forwardedRef: ref
165
165
  });
@@ -1 +1 @@
1
- {"version":3,"names":["Component","forwardRef","focus","noop","MENU_ITEM_ROLES","cycleValue","value","total","offset","nextValue","NavigableContainer","constructor","args","onKeyDown","bind","bindContainer","getFocusableContext","getFocusableIndex","componentDidMount","container","addEventListener","componentWillUnmount","removeEventListener","ref","forwardedRef","props","current","target","onlyBrowserTabstops","finder","tabbable","focusable","focusables","find","index","indexOf","event","cycle","eventToOffset","onNavigate","stopNavigationEvents","undefined","stopImmediatePropagation","targetRole","getAttribute","targetHasMenuItemRole","includes","preventDefault","activeElement","ownerDocument","context","nextIndex","length","code","render","children","restProps","createElement","forwardedNavigableContainer","displayName"],"sources":["@wordpress/components/src/navigable-container/container.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef } from 'react';\n\n/**\n * WordPress dependencies\n */\nimport { Component, forwardRef } from '@wordpress/element';\nimport { focus } from '@wordpress/dom';\n\n/**\n * Internal dependencies\n */\nimport type { NavigableContainerProps } from './types';\n\nconst noop = () => {};\nconst MENU_ITEM_ROLES = [ 'menuitem', 'menuitemradio', 'menuitemcheckbox' ];\n\nfunction cycleValue( value: number, total: number, offset: number ) {\n\tconst nextValue = value + offset;\n\tif ( nextValue < 0 ) {\n\t\treturn total + nextValue;\n\t} else if ( nextValue >= total ) {\n\t\treturn nextValue - total;\n\t}\n\n\treturn nextValue;\n}\n\nclass NavigableContainer extends Component< NavigableContainerProps > {\n\tcontainer?: HTMLDivElement;\n\n\tconstructor( args: NavigableContainerProps ) {\n\t\tsuper( args );\n\t\tthis.onKeyDown = this.onKeyDown.bind( this );\n\t\tthis.bindContainer = this.bindContainer.bind( this );\n\n\t\tthis.getFocusableContext = this.getFocusableContext.bind( this );\n\t\tthis.getFocusableIndex = this.getFocusableIndex.bind( this );\n\t}\n\n\tcomponentDidMount() {\n\t\tif ( ! this.container ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// We use DOM event listeners instead of React event listeners\n\t\t// because we want to catch events from the underlying DOM tree\n\t\t// The React Tree can be different from the DOM tree when using\n\t\t// portals. Block Toolbars for instance are rendered in a separate\n\t\t// React Trees.\n\t\tthis.container.addEventListener( 'keydown', this.onKeyDown );\n\t}\n\n\tcomponentWillUnmount() {\n\t\tif ( ! this.container ) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.container.removeEventListener( 'keydown', this.onKeyDown );\n\t}\n\n\tbindContainer( ref: HTMLDivElement ) {\n\t\tconst { forwardedRef } = this.props;\n\t\tthis.container = ref;\n\n\t\tif ( typeof forwardedRef === 'function' ) {\n\t\t\tforwardedRef( ref );\n\t\t} else if ( forwardedRef && 'current' in forwardedRef ) {\n\t\t\tforwardedRef.current = ref;\n\t\t}\n\t}\n\n\tgetFocusableContext( target: Element ) {\n\t\tif ( ! this.container ) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst { onlyBrowserTabstops } = this.props;\n\t\tconst finder = onlyBrowserTabstops ? focus.tabbable : focus.focusable;\n\t\tconst focusables = finder.find( this.container );\n\n\t\tconst index = this.getFocusableIndex( focusables, target );\n\t\tif ( index > -1 && target ) {\n\t\t\treturn { index, target, focusables };\n\t\t}\n\t\treturn null;\n\t}\n\n\tgetFocusableIndex( focusables: Element[], target: Element ) {\n\t\treturn focusables.indexOf( target );\n\t}\n\n\tonKeyDown( event: KeyboardEvent ) {\n\t\tif ( this.props.onKeyDown ) {\n\t\t\tthis.props.onKeyDown( event );\n\t\t}\n\n\t\tconst { getFocusableContext } = this;\n\t\tconst {\n\t\t\tcycle = true,\n\t\t\teventToOffset,\n\t\t\tonNavigate = noop,\n\t\t\tstopNavigationEvents,\n\t\t} = this.props;\n\n\t\tconst offset = eventToOffset( event );\n\n\t\t// eventToOffset returns undefined if the event is not handled by the component.\n\t\tif ( offset !== undefined && stopNavigationEvents ) {\n\t\t\t// Prevents arrow key handlers bound to the document directly interfering.\n\t\t\tevent.stopImmediatePropagation();\n\n\t\t\t// When navigating a collection of items, prevent scroll containers\n\t\t\t// from scrolling. The preventDefault also prevents Voiceover from\n\t\t\t// 'handling' the event, as voiceover will try to use arrow keys\n\t\t\t// for highlighting text.\n\t\t\tconst targetRole = (\n\t\t\t\tevent.target as HTMLDivElement | null\n\t\t\t )?.getAttribute( 'role' );\n\t\t\tconst targetHasMenuItemRole =\n\t\t\t\t!! targetRole && MENU_ITEM_ROLES.includes( targetRole );\n\n\t\t\tif ( targetHasMenuItemRole ) {\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t}\n\n\t\tif ( ! offset ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst activeElement = ( event.target as HTMLElement | null )\n\t\t\t?.ownerDocument?.activeElement;\n\t\tif ( ! activeElement ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst context = getFocusableContext( activeElement );\n\t\tif ( ! context ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst { index, focusables } = context;\n\t\tconst nextIndex = cycle\n\t\t\t? cycleValue( index, focusables.length, offset )\n\t\t\t: index + offset;\n\n\t\tif ( nextIndex >= 0 && nextIndex < focusables.length ) {\n\t\t\tfocusables[ nextIndex ].focus();\n\t\t\tonNavigate( nextIndex, focusables[ nextIndex ] );\n\n\t\t\t// `preventDefault()` on tab to avoid having the browser move the focus\n\t\t\t// after this component has already moved it.\n\t\t\tif ( event.code === 'Tab' ) {\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t}\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\tchildren,\n\t\t\tstopNavigationEvents,\n\t\t\teventToOffset,\n\t\t\tonNavigate,\n\t\t\tonKeyDown,\n\t\t\tcycle,\n\t\t\tonlyBrowserTabstops,\n\t\t\tforwardedRef,\n\t\t\t...restProps\n\t\t} = this.props;\n\t\treturn (\n\t\t\t<div ref={ this.bindContainer } { ...restProps }>\n\t\t\t\t{ children }\n\t\t\t</div>\n\t\t);\n\t}\n}\n\nconst forwardedNavigableContainer = (\n\tprops: NavigableContainerProps,\n\tref: ForwardedRef< HTMLDivElement >\n) => {\n\treturn <NavigableContainer { ...props } forwardedRef={ ref } />;\n};\nforwardedNavigableContainer.displayName = 'NavigableContainer';\n\nexport default forwardRef( forwardedNavigableContainer );\n"],"mappings":";AAAA;AACA;AACA;;AAGA;AACA;AACA;AACA,SAASA,SAAS,EAAEC,UAAU,QAAQ,oBAAoB;AAC1D,SAASC,KAAK,QAAQ,gBAAgB;;AAEtC;AACA;AACA;;AAGA,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;AACrB,MAAMC,eAAe,GAAG,CAAE,UAAU,EAAE,eAAe,EAAE,kBAAkB,CAAE;AAE3E,SAASC,UAAUA,CAAEC,KAAa,EAAEC,KAAa,EAAEC,MAAc,EAAG;EACnE,MAAMC,SA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AAC,GAAG,IAAI,CAAC/B,KAAK;IACd,OACCgC,aAAA;MAAKlC,GAAG,EAAG,IAAI,CAACR,aAAe;MAAA,GAAMyC;IAAS,GAC3CD,QACE,CAAC;EAER;AACD;AAEA,MAAMG,2BAA2B,GAAGA,CACnCjC,KAA8B,EAC9BF,GAAmC,KAC/B;EACJ,OAAOkC,aAAA,CAAC/C,kBAAkB;IAAA,GAAMe,KAAK;IAAGD,YAAY,EAAGD;EAAK,CAAE,CAAC;AAChE,CAAC;AACDmC,2BAA2B,CAACC,WAAW,GAAG,oBAAoB;AAE9D,eAAe1D,UAAU,CAAEyD,2BAA4B,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["Component","forwardRef","focus","jsx","_jsx","noop","MENU_ITEM_ROLES","cycleValue","value","total","offset","nextValue","NavigableContainer","constructor","args","onKeyDown","bind","bindContainer","getFocusableContext","getFocusableIndex","componentDidMount","container","addEventListener","componentWillUnmount","removeEventListener","ref","forwardedRef","props","current","target","onlyBrowserTabstops","finder","tabbable","focusable","focusables","find","index","indexOf","event","cycle","eventToOffset","onNavigate","stopNavigationEvents","undefined","stopImmediatePropagation","targetRole","getAttribute","targetHasMenuItemRole","includes","preventDefault","activeElement","ownerDocument","context","nextIndex","length","code","render","children","restProps","forwardedNavigableContainer","displayName"],"sources":["@wordpress/components/src/navigable-container/container.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef } from 'react';\n\n/**\n * WordPress dependencies\n */\nimport { Component, forwardRef } from '@wordpress/element';\nimport { focus } from '@wordpress/dom';\n\n/**\n * Internal dependencies\n */\nimport type { NavigableContainerProps } from './types';\n\nconst noop = () => {};\nconst MENU_ITEM_ROLES = [ 'menuitem', 'menuitemradio', 'menuitemcheckbox' ];\n\nfunction cycleValue( value: number, total: number, offset: number ) {\n\tconst nextValue = value + offset;\n\tif ( nextValue < 0 ) {\n\t\treturn total + nextValue;\n\t} else if ( nextValue >= total ) {\n\t\treturn nextValue - total;\n\t}\n\n\treturn nextValue;\n}\n\nclass NavigableContainer extends Component< NavigableContainerProps > {\n\tcontainer?: HTMLDivElement;\n\n\tconstructor( args: NavigableContainerProps ) {\n\t\tsuper( args );\n\t\tthis.onKeyDown = this.onKeyDown.bind( this );\n\t\tthis.bindContainer = this.bindContainer.bind( this );\n\n\t\tthis.getFocusableContext = this.getFocusableContext.bind( this );\n\t\tthis.getFocusableIndex = this.getFocusableIndex.bind( this );\n\t}\n\n\tcomponentDidMount() {\n\t\tif ( ! this.container ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// We use DOM event listeners instead of React event listeners\n\t\t// because we want to catch events from the underlying DOM tree\n\t\t// The React Tree can be different from the DOM tree when using\n\t\t// portals. Block Toolbars for instance are rendered in a separate\n\t\t// React Trees.\n\t\tthis.container.addEventListener( 'keydown', this.onKeyDown );\n\t}\n\n\tcomponentWillUnmount() {\n\t\tif ( ! this.container ) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.container.removeEventListener( 'keydown', this.onKeyDown );\n\t}\n\n\tbindContainer( ref: HTMLDivElement ) {\n\t\tconst { forwardedRef } = this.props;\n\t\tthis.container = ref;\n\n\t\tif ( typeof forwardedRef === 'function' ) {\n\t\t\tforwardedRef( ref );\n\t\t} else if ( forwardedRef && 'current' in forwardedRef ) {\n\t\t\tforwardedRef.current = ref;\n\t\t}\n\t}\n\n\tgetFocusableContext( target: Element ) {\n\t\tif ( ! this.container ) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst { onlyBrowserTabstops } = this.props;\n\t\tconst finder = onlyBrowserTabstops ? focus.tabbable : focus.focusable;\n\t\tconst focusables = finder.find( this.container );\n\n\t\tconst index = this.getFocusableIndex( focusables, target );\n\t\tif ( index > -1 && target ) {\n\t\t\treturn { index, target, focusables };\n\t\t}\n\t\treturn null;\n\t}\n\n\tgetFocusableIndex( focusables: Element[], target: Element ) {\n\t\treturn focusables.indexOf( target );\n\t}\n\n\tonKeyDown( event: KeyboardEvent ) {\n\t\tif ( this.props.onKeyDown ) {\n\t\t\tthis.props.onKeyDown( event );\n\t\t}\n\n\t\tconst { getFocusableContext } = this;\n\t\tconst {\n\t\t\tcycle = true,\n\t\t\teventToOffset,\n\t\t\tonNavigate = noop,\n\t\t\tstopNavigationEvents,\n\t\t} = this.props;\n\n\t\tconst offset = eventToOffset( event );\n\n\t\t// eventToOffset returns undefined if the event is not handled by the component.\n\t\tif ( offset !== undefined && stopNavigationEvents ) {\n\t\t\t// Prevents arrow key handlers bound to the document directly interfering.\n\t\t\tevent.stopImmediatePropagation();\n\n\t\t\t// When navigating a collection of items, prevent scroll containers\n\t\t\t// from scrolling. The preventDefault also prevents Voiceover from\n\t\t\t// 'handling' the event, as voiceover will try to use arrow keys\n\t\t\t// for highlighting text.\n\t\t\tconst targetRole = (\n\t\t\t\tevent.target as HTMLDivElement | null\n\t\t\t )?.getAttribute( 'role' );\n\t\t\tconst targetHasMenuItemRole =\n\t\t\t\t!! targetRole && MENU_ITEM_ROLES.includes( targetRole );\n\n\t\t\tif ( targetHasMenuItemRole ) {\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t}\n\n\t\tif ( ! offset ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst activeElement = ( event.target as HTMLElement | null )\n\t\t\t?.ownerDocument?.activeElement;\n\t\tif ( ! activeElement ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst context = getFocusableContext( activeElement );\n\t\tif ( ! context ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst { index, focusables } = context;\n\t\tconst nextIndex = cycle\n\t\t\t? cycleValue( index, focusables.length, offset )\n\t\t\t: index + offset;\n\n\t\tif ( nextIndex >= 0 && nextIndex < focusables.length ) {\n\t\t\tfocusables[ nextIndex ].focus();\n\t\t\tonNavigate( nextIndex, focusables[ nextIndex ] );\n\n\t\t\t// `preventDefault()` on tab to avoid having the browser move the focus\n\t\t\t// after this component has already moved it.\n\t\t\tif ( event.code === 'Tab' ) {\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t}\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\tchildren,\n\t\t\tstopNavigationEvents,\n\t\t\teventToOffset,\n\t\t\tonNavigate,\n\t\t\tonKeyDown,\n\t\t\tcycle,\n\t\t\tonlyBrowserTabstops,\n\t\t\tforwardedRef,\n\t\t\t...restProps\n\t\t} = this.props;\n\t\treturn (\n\t\t\t<div ref={ this.bindContainer } { ...restProps }>\n\t\t\t\t{ children }\n\t\t\t</div>\n\t\t);\n\t}\n}\n\nconst forwardedNavigableContainer = (\n\tprops: NavigableContainerProps,\n\tref: ForwardedRef< HTMLDivElement >\n) => {\n\treturn <NavigableContainer { ...props } forwardedRef={ ref } />;\n};\nforwardedNavigableContainer.displayName = 'NavigableContainer';\n\nexport default forwardRef( forwardedNavigableContainer );\n"],"mappings":"AAAA;AACA;AACA;;AAGA;AACA;AACA;AACA,SAASA,SAAS,EAAEC,UAAU,QAAQ,oBAAoB;AAC1D,SAASC,KAAK,QAAQ,gBAAgB;;AAEtC;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAKA,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;AACrB,MAAMC,eAAe,GAAG,CAAE,UAAU,EAAE,eAAe,EAAE,kBAAkB,CAAE;AAE3E,SAASC,UAAUA,CAAEC,KAAa,EAAEC,KAAa,EAAEC,MAAc,EAAG;EACnE,MAAMC,SAAS,GAAGH,KAAK,GAAGE,MAAM;EAChC,IAAKC,SAAS,GAAG,CAAC,EAAG;IACpB,OAAOF,KAAK,GAAGE,SAAS;EACzB,CAAC,MAAM,IAAKA,SAAS,IAAIF,KAAK,EAAG;IAChC,OAAOE,SAAS,GAAGF,KAAK;EACzB;EAEA,OAAOE,SAAS;AACjB;AAEA,MAAMC,kBAAkB,SAASZ,SAAS,CAA4B;EAGrEa,WAAWA,CAAEC,IAA6B,EAAG;IAC5C,KAAK,CAAEA,IAAK,CAAC;IACb,IAAI,CAACC,SAAS,GAAG,IAAI,CAACA,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oBAAoB;AAE9D,eAAe3D,UAAU,CAAE0D,2BAA4B,CAAC","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
@@ -12,6 +11,7 @@ import { forwardRef } from '@wordpress/element';
12
11
  * Internal dependencies
13
12
  */
14
13
  import NavigableContainer from './container';
14
+ import { jsx as _jsx } from "react/jsx-runtime";
15
15
  export function UnforwardedNavigableMenu({
16
16
  role = 'menu',
17
17
  orientation = 'vertical',
@@ -43,7 +43,7 @@ export function UnforwardedNavigableMenu({
43
43
  }
44
44
  return undefined;
45
45
  };
46
- return createElement(NavigableContainer, {
46
+ return /*#__PURE__*/_jsx(NavigableContainer, {
47
47
  ref: ref,
48
48
  stopNavigationEvents: true,
49
49
  onlyBrowserTabstops: false,