@wordpress/components 27.6.0 → 28.0.1

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 (1742) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/build/alignment-matrix-control/cell.js +16 -12
  3. package/build/alignment-matrix-control/cell.js.map +1 -1
  4. package/build/alignment-matrix-control/icon.js +12 -11
  5. package/build/alignment-matrix-control/icon.js.map +1 -1
  6. package/build/alignment-matrix-control/index.js +18 -18
  7. package/build/alignment-matrix-control/index.js.map +1 -1
  8. package/build/angle-picker-control/angle-circle.js +14 -12
  9. package/build/angle-picker-control/angle-circle.js.map +1 -1
  10. package/build/angle-picker-control/index.js +30 -24
  11. package/build/angle-picker-control/index.js.map +1 -1
  12. package/build/animate/index.js +1 -1
  13. package/build/animate/index.js.map +1 -1
  14. package/build/autocomplete/autocompleter-ui.js +56 -30
  15. package/build/autocomplete/autocompleter-ui.js.map +1 -1
  16. package/build/autocomplete/autocompleter-ui.native.js +50 -40
  17. package/build/autocomplete/autocompleter-ui.native.js.map +1 -1
  18. package/build/autocomplete/background-view.android.js +5 -4
  19. package/build/autocomplete/background-view.android.js.map +1 -1
  20. package/build/autocomplete/background-view.ios.js +5 -4
  21. package/build/autocomplete/background-view.ios.js.map +1 -1
  22. package/build/autocomplete/index.js +5 -3
  23. package/build/autocomplete/index.js.map +1 -1
  24. package/build/base-control/index.js +33 -24
  25. package/build/base-control/index.js.map +1 -1
  26. package/build/base-control/index.native.js +9 -4
  27. package/build/base-control/index.native.js.map +1 -1
  28. package/build/border-box-control/border-box-control/component.js +49 -44
  29. package/build/border-box-control/border-box-control/component.js.map +1 -1
  30. package/build/border-box-control/border-box-control-linked-button/component.js +15 -13
  31. package/build/border-box-control/border-box-control-linked-button/component.js.map +1 -1
  32. package/build/border-box-control/border-box-control-split-controls/component.js +39 -38
  33. package/build/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  34. package/build/border-box-control/border-box-control-visualizer/component.js +2 -2
  35. package/build/border-box-control/border-box-control-visualizer/component.js.map +1 -1
  36. package/build/border-control/border-control/component.js +56 -52
  37. package/build/border-control/border-control/component.js.map +1 -1
  38. package/build/border-control/border-control-dropdown/component.js +55 -43
  39. package/build/border-control/border-control-dropdown/component.js.map +1 -1
  40. package/build/border-control/border-control-style-picker/component.js +9 -9
  41. package/build/border-control/border-control-style-picker/component.js.map +1 -1
  42. package/build/box-control/all-input-control.js +30 -28
  43. package/build/box-control/all-input-control.js.map +1 -1
  44. package/build/box-control/axial-input-controls.js +45 -41
  45. package/build/box-control/axial-input-controls.js.map +1 -1
  46. package/build/box-control/icon.js +15 -12
  47. package/build/box-control/icon.js.map +1 -1
  48. package/build/box-control/index.js +31 -24
  49. package/build/box-control/index.js.map +1 -1
  50. package/build/box-control/input-controls.js +46 -43
  51. package/build/box-control/input-controls.js.map +1 -1
  52. package/build/box-control/linked-button.js +12 -11
  53. package/build/box-control/linked-button.js.map +1 -1
  54. package/build/button/deprecated.js +2 -2
  55. package/build/button/deprecated.js.map +1 -1
  56. package/build/button/index.js +34 -19
  57. package/build/button/index.js.map +1 -1
  58. package/build/button/index.native.js +27 -21
  59. package/build/button/index.native.js.map +1 -1
  60. package/build/button-group/index.js +2 -2
  61. package/build/button-group/index.js.map +1 -1
  62. package/build/card/card/component.js +22 -19
  63. package/build/card/card/component.js.map +1 -1
  64. package/build/card/card-body/component.js +3 -3
  65. package/build/card/card-body/component.js.map +1 -1
  66. package/build/card/card-divider/component.js +2 -2
  67. package/build/card/card-divider/component.js.map +1 -1
  68. package/build/card/card-footer/component.js +2 -2
  69. package/build/card/card-footer/component.js.map +1 -1
  70. package/build/card/card-header/component.js +2 -2
  71. package/build/card/card-header/component.js.map +1 -1
  72. package/build/card/card-media/component.js +2 -2
  73. package/build/card/card-media/component.js.map +1 -1
  74. package/build/checkbox-control/index.js +39 -34
  75. package/build/checkbox-control/index.js.map +1 -1
  76. package/build/circular-option-picker/circular-option-picker-actions.js +10 -8
  77. package/build/circular-option-picker/circular-option-picker-actions.js.map +1 -1
  78. package/build/circular-option-picker/circular-option-picker-option-group.js +5 -4
  79. package/build/circular-option-picker/circular-option-picker-option-group.js.map +1 -1
  80. package/build/circular-option-picker/circular-option-picker-option.js +16 -14
  81. package/build/circular-option-picker/circular-option-picker-option.js.map +1 -1
  82. package/build/circular-option-picker/circular-option-picker.js +36 -30
  83. package/build/circular-option-picker/circular-option-picker.js.map +1 -1
  84. package/build/clipboard-button/index.js +5 -4
  85. package/build/clipboard-button/index.js.map +1 -1
  86. package/build/color-control/index.native.js +2 -2
  87. package/build/color-control/index.native.js.map +1 -1
  88. package/build/color-indicator/index.js +2 -2
  89. package/build/color-indicator/index.js.map +1 -1
  90. package/build/color-indicator/index.native.js +39 -36
  91. package/build/color-indicator/index.native.js.map +1 -1
  92. package/build/color-palette/index.js +90 -82
  93. package/build/color-palette/index.js.map +1 -1
  94. package/build/color-palette/index.native.js +75 -65
  95. package/build/color-palette/index.native.js.map +1 -1
  96. package/build/color-picker/color-copy-button.js +10 -9
  97. package/build/color-picker/color-copy-button.js.map +1 -1
  98. package/build/color-picker/color-input.js +4 -4
  99. package/build/color-picker/color-input.js.map +1 -1
  100. package/build/color-picker/component.js +36 -30
  101. package/build/color-picker/component.js.map +1 -1
  102. package/build/color-picker/hex-input.js +6 -5
  103. package/build/color-picker/hex-input.js.map +1 -1
  104. package/build/color-picker/hsl-input.js +48 -46
  105. package/build/color-picker/hsl-input.js.map +1 -1
  106. package/build/color-picker/hsv-color-picker.native.js +32 -31
  107. package/build/color-picker/hsv-color-picker.native.js.map +1 -1
  108. package/build/color-picker/hue-picker.native.js +33 -31
  109. package/build/color-picker/hue-picker.native.js.map +1 -1
  110. package/build/color-picker/index.native.js +67 -54
  111. package/build/color-picker/index.native.js.map +1 -1
  112. package/build/color-picker/input-with-slider.js +33 -31
  113. package/build/color-picker/input-with-slider.js.map +1 -1
  114. package/build/color-picker/legacy-adapter.js +2 -2
  115. package/build/color-picker/legacy-adapter.js.map +1 -1
  116. package/build/color-picker/picker.js +2 -2
  117. package/build/color-picker/picker.js.map +1 -1
  118. package/build/color-picker/rgb-input.js +52 -50
  119. package/build/color-picker/rgb-input.js.map +1 -1
  120. package/build/color-picker/saturation-picker.native.js +44 -41
  121. package/build/color-picker/saturation-picker.native.js.map +1 -1
  122. package/build/combobox-control/index.js +67 -52
  123. package/build/combobox-control/index.js.map +1 -1
  124. package/build/combobox-control/types.js.map +1 -1
  125. package/build/composite/legacy/index.js +3 -3
  126. package/build/composite/legacy/index.js.map +1 -1
  127. package/build/confirm-dialog/component.js +35 -26
  128. package/build/confirm-dialog/component.js.map +1 -1
  129. package/build/context/context-connect.js +1 -1
  130. package/build/context/context-connect.js.map +1 -1
  131. package/build/context/context-system-provider.js +6 -5
  132. package/build/context/context-system-provider.js.map +1 -1
  133. package/build/context/use-context-system.js +1 -1
  134. package/build/context/use-context-system.js.map +1 -1
  135. package/build/css.d.js +6 -0
  136. package/build/css.d.js.map +1 -0
  137. package/build/custom-gradient-picker/gradient-bar/control-points.js +114 -107
  138. package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  139. package/build/custom-gradient-picker/gradient-bar/index.js +49 -47
  140. package/build/custom-gradient-picker/gradient-bar/index.js.map +1 -1
  141. package/build/custom-gradient-picker/index.js +31 -25
  142. package/build/custom-gradient-picker/index.js.map +1 -1
  143. package/build/custom-gradient-picker/index.native.js +23 -17
  144. package/build/custom-gradient-picker/index.native.js.map +1 -1
  145. package/build/custom-select-control/index.js +72 -59
  146. package/build/custom-select-control/index.js.map +1 -1
  147. package/build/custom-select-control-v2/custom-select.js +48 -35
  148. package/build/custom-select-control-v2/custom-select.js.map +1 -1
  149. package/build/custom-select-control-v2/default-component/index.js +2 -2
  150. package/build/custom-select-control-v2/default-component/index.js.map +1 -1
  151. package/build/custom-select-control-v2/item.js +9 -6
  152. package/build/custom-select-control-v2/item.js.map +1 -1
  153. package/build/custom-select-control-v2/legacy-component/index.js +32 -44
  154. package/build/custom-select-control-v2/legacy-component/index.js.map +1 -1
  155. package/build/custom-select-control-v2/styles.js +9 -9
  156. package/build/custom-select-control-v2/styles.js.map +1 -1
  157. package/build/custom-select-control-v2/types.js.map +1 -1
  158. package/build/dashicon/index.js +2 -2
  159. package/build/dashicon/index.js.map +1 -1
  160. package/build/dashicon/index.native.js +3 -3
  161. package/build/dashicon/index.native.js.map +1 -1
  162. package/build/date-time/date/index.js +92 -85
  163. package/build/date-time/date/index.js.map +1 -1
  164. package/build/date-time/date-time/index.js +18 -15
  165. package/build/date-time/date-time/index.js.map +1 -1
  166. package/build/date-time/time/index.js +162 -135
  167. package/build/date-time/time/index.js.map +1 -1
  168. package/build/date-time/time/timezone.js +12 -10
  169. package/build/date-time/time/timezone.js.map +1 -1
  170. package/build/dimension-control/index.js +7 -5
  171. package/build/dimension-control/index.js.map +1 -1
  172. package/build/disabled/index.js +11 -9
  173. package/build/disabled/index.js.map +1 -1
  174. package/build/disabled/index.native.js +5 -4
  175. package/build/disabled/index.native.js.map +1 -1
  176. package/build/disclosure/index.js +5 -4
  177. package/build/disclosure/index.js.map +1 -1
  178. package/build/divider/component.js +3 -3
  179. package/build/divider/component.js.map +1 -1
  180. package/build/draggable/index.js +14 -11
  181. package/build/draggable/index.js.map +1 -1
  182. package/build/draggable/index.native.js +15 -11
  183. package/build/draggable/index.native.js.map +1 -1
  184. package/build/drop-zone/index.js +23 -17
  185. package/build/drop-zone/index.js.map +1 -1
  186. package/build/dropdown/dropdown-content-wrapper.js +2 -2
  187. package/build/dropdown/dropdown-content-wrapper.js.map +1 -1
  188. package/build/dropdown/index.js +21 -19
  189. package/build/dropdown/index.js.map +1 -1
  190. package/build/dropdown/index.native.js +4 -2
  191. package/build/dropdown/index.native.js.map +1 -1
  192. package/build/dropdown-menu/index.js +29 -27
  193. package/build/dropdown-menu/index.js.map +1 -1
  194. package/build/dropdown-menu/index.native.js +32 -29
  195. package/build/dropdown-menu/index.native.js.map +1 -1
  196. package/build/dropdown-menu-v2/index.js +108 -76
  197. package/build/dropdown-menu-v2/index.js.map +1 -1
  198. package/build/duotone-picker/color-list-picker/index.js +52 -46
  199. package/build/duotone-picker/color-list-picker/index.js.map +1 -1
  200. package/build/duotone-picker/custom-duotone-bar.js +2 -2
  201. package/build/duotone-picker/custom-duotone-bar.js.map +1 -1
  202. package/build/duotone-picker/duotone-picker.js +40 -38
  203. package/build/duotone-picker/duotone-picker.js.map +1 -1
  204. package/build/duotone-picker/duotone-swatch.js +3 -3
  205. package/build/duotone-picker/duotone-swatch.js.map +1 -1
  206. package/build/elevation/component.js +2 -2
  207. package/build/elevation/component.js.map +1 -1
  208. package/build/external-link/index.js +16 -11
  209. package/build/external-link/index.js.map +1 -1
  210. package/build/external-link/index.native.js +9 -6
  211. package/build/external-link/index.native.js.map +1 -1
  212. package/build/flex/flex/component.js +9 -7
  213. package/build/flex/flex/component.js.map +1 -1
  214. package/build/flex/flex-block/component.js +2 -2
  215. package/build/flex/flex-block/component.js.map +1 -1
  216. package/build/flex/flex-item/component.js +2 -2
  217. package/build/flex/flex-item/component.js.map +1 -1
  218. package/build/focal-point-picker/controls.js +20 -19
  219. package/build/focal-point-picker/controls.js.map +1 -1
  220. package/build/focal-point-picker/focal-point.js +3 -6
  221. package/build/focal-point-picker/focal-point.js.map +1 -1
  222. package/build/focal-point-picker/focal-point.native.js +11 -10
  223. package/build/focal-point-picker/focal-point.native.js.map +1 -1
  224. package/build/focal-point-picker/grid.js +21 -20
  225. package/build/focal-point-picker/grid.js.map +1 -1
  226. package/build/focal-point-picker/index.js +42 -39
  227. package/build/focal-point-picker/index.js.map +1 -1
  228. package/build/focal-point-picker/index.native.js +66 -62
  229. package/build/focal-point-picker/index.native.js.map +1 -1
  230. package/build/focal-point-picker/media.js +4 -4
  231. package/build/focal-point-picker/media.js.map +1 -1
  232. package/build/focal-point-picker/styles/focal-point-style.js +2 -7
  233. package/build/focal-point-picker/styles/focal-point-style.js.map +1 -1
  234. package/build/focal-point-picker/tooltip/index.native.js +32 -27
  235. package/build/focal-point-picker/tooltip/index.native.js.map +1 -1
  236. package/build/focusable-iframe/index.js +2 -2
  237. package/build/focusable-iframe/index.js.map +1 -1
  238. package/build/font-size-picker/font-size-picker-select.js +2 -2
  239. package/build/font-size-picker/font-size-picker-select.js.map +1 -1
  240. package/build/font-size-picker/font-size-picker-toggle-group.js +10 -10
  241. package/build/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  242. package/build/font-size-picker/index.js +119 -103
  243. package/build/font-size-picker/index.js.map +1 -1
  244. package/build/font-size-picker/index.native.js +77 -64
  245. package/build/font-size-picker/index.native.js.map +1 -1
  246. package/build/footer-message-control/index.native.js +2 -2
  247. package/build/footer-message-control/index.native.js.map +1 -1
  248. package/build/form-file-upload/index.js +20 -18
  249. package/build/form-file-upload/index.js.map +1 -1
  250. package/build/form-toggle/index.js +18 -17
  251. package/build/form-toggle/index.js.map +1 -1
  252. package/build/form-token-field/index.js +59 -55
  253. package/build/form-token-field/index.js.map +1 -1
  254. package/build/form-token-field/suggestions-list.js +41 -38
  255. package/build/form-token-field/suggestions-list.js.map +1 -1
  256. package/build/form-token-field/token-input.js +2 -2
  257. package/build/form-token-field/token-input.js.map +1 -1
  258. package/build/form-token-field/token.js +22 -18
  259. package/build/form-token-field/token.js.map +1 -1
  260. package/build/gradient-picker/index.js +50 -47
  261. package/build/gradient-picker/index.js.map +1 -1
  262. package/build/grid/component.js +2 -2
  263. package/build/grid/component.js.map +1 -1
  264. package/build/guide/icons.js +9 -8
  265. package/build/guide/icons.js.map +1 -1
  266. package/build/guide/index.js +33 -26
  267. package/build/guide/index.js.map +1 -1
  268. package/build/guide/page-control.js +16 -17
  269. package/build/guide/page-control.js.map +1 -1
  270. package/build/guide/page.js +2 -2
  271. package/build/guide/page.js.map +1 -1
  272. package/build/h-stack/component.js +2 -2
  273. package/build/h-stack/component.js.map +1 -1
  274. package/build/h-stack/hook.js +3 -4
  275. package/build/h-stack/hook.js.map +1 -1
  276. package/build/heading/component.js +2 -2
  277. package/build/heading/component.js.map +1 -1
  278. package/build/higher-order/navigate-regions/index.js +7 -6
  279. package/build/higher-order/navigate-regions/index.js.map +1 -1
  280. package/build/higher-order/with-constrained-tabbing/index.js +8 -8
  281. package/build/higher-order/with-constrained-tabbing/index.js.map +1 -1
  282. package/build/higher-order/with-fallback-styles/index.js +6 -5
  283. package/build/higher-order/with-fallback-styles/index.js.map +1 -1
  284. package/build/higher-order/with-filters/index.js +2 -2
  285. package/build/higher-order/with-filters/index.js.map +1 -1
  286. package/build/higher-order/with-focus-outside/index.js +8 -7
  287. package/build/higher-order/with-focus-outside/index.js.map +1 -1
  288. package/build/higher-order/with-focus-outside/index.native.js +8 -7
  289. package/build/higher-order/with-focus-outside/index.native.js.map +1 -1
  290. package/build/higher-order/with-focus-return/index.js +8 -8
  291. package/build/higher-order/with-focus-return/index.js.map +1 -1
  292. package/build/higher-order/with-notices/index.js +4 -4
  293. package/build/higher-order/with-notices/index.js.map +1 -1
  294. package/build/higher-order/with-spoken-messages/index.js +2 -2
  295. package/build/higher-order/with-spoken-messages/index.js.map +1 -1
  296. package/build/icon/index.js +3 -2
  297. package/build/icon/index.js.map +1 -1
  298. package/build/index.js +7 -0
  299. package/build/index.js.map +1 -1
  300. package/build/index.native.js +0 -66
  301. package/build/index.native.js.map +1 -1
  302. package/build/input-control/backdrop.js +2 -2
  303. package/build/input-control/backdrop.js.map +1 -1
  304. package/build/input-control/index.js +36 -34
  305. package/build/input-control/index.js.map +1 -1
  306. package/build/input-control/input-base.js +36 -25
  307. package/build/input-control/input-base.js.map +1 -1
  308. package/build/input-control/input-field.js +4 -4
  309. package/build/input-control/input-field.js.map +1 -1
  310. package/build/input-control/input-prefix-wrapper.js +2 -2
  311. package/build/input-control/input-prefix-wrapper.js.map +1 -1
  312. package/build/input-control/input-suffix-wrapper.js +2 -2
  313. package/build/input-control/input-suffix-wrapper.js.map +1 -1
  314. package/build/input-control/label.js +12 -8
  315. package/build/input-control/label.js.map +1 -1
  316. package/build/input-control/styles/input-control-styles.js +27 -27
  317. package/build/input-control/styles/input-control-styles.js.map +1 -1
  318. package/build/isolated-event-container/index.js +2 -2
  319. package/build/isolated-event-container/index.js.map +1 -1
  320. package/build/item-group/item/component.js +8 -7
  321. package/build/item-group/item/component.js.map +1 -1
  322. package/build/item-group/item-group/component.js +8 -7
  323. package/build/item-group/item-group/component.js.map +1 -1
  324. package/build/keyboard-shortcuts/index.js +10 -8
  325. package/build/keyboard-shortcuts/index.js.map +1 -1
  326. package/build/menu-group/index.js +14 -11
  327. package/build/menu-group/index.js.map +1 -1
  328. package/build/menu-item/index.js +23 -18
  329. package/build/menu-item/index.js.map +1 -1
  330. package/build/menu-items-choice/index.js +24 -22
  331. package/build/menu-items-choice/index.js.map +1 -1
  332. package/build/mobile/autocompletion-items.native.js +3 -3
  333. package/build/mobile/autocompletion-items.native.js.map +1 -1
  334. package/build/mobile/badge/index.native.js +10 -6
  335. package/build/mobile/badge/index.native.js.map +1 -1
  336. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +23 -18
  337. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
  338. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +21 -17
  339. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
  340. package/build/mobile/bottom-sheet/button.native.js +17 -14
  341. package/build/mobile/bottom-sheet/button.native.js.map +1 -1
  342. package/build/mobile/bottom-sheet/cell.native.js +69 -53
  343. package/build/mobile/bottom-sheet/cell.native.js.map +1 -1
  344. package/build/mobile/bottom-sheet/chevron-back.native.js +7 -6
  345. package/build/mobile/bottom-sheet/chevron-back.native.js.map +1 -1
  346. package/build/mobile/bottom-sheet/color-cell.native.js +12 -11
  347. package/build/mobile/bottom-sheet/color-cell.native.js.map +1 -1
  348. package/build/mobile/bottom-sheet/cycle-picker-cell.native.js +2 -2
  349. package/build/mobile/bottom-sheet/cycle-picker-cell.native.js.map +1 -1
  350. package/build/mobile/bottom-sheet/footer-message-cell.native.js +4 -4
  351. package/build/mobile/bottom-sheet/footer-message-cell.native.js.map +1 -1
  352. package/build/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js +5 -4
  353. package/build/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js.map +1 -1
  354. package/build/mobile/bottom-sheet/index.native.js +72 -56
  355. package/build/mobile/bottom-sheet/index.native.js.map +1 -1
  356. package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js +6 -6
  357. package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
  358. package/build/mobile/bottom-sheet/link-cell.native.js +7 -6
  359. package/build/mobile/bottom-sheet/link-cell.native.js.map +1 -1
  360. package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js +19 -15
  361. package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
  362. package/build/mobile/bottom-sheet/lock-icon/index.native.js +2 -2
  363. package/build/mobile/bottom-sheet/lock-icon/index.native.js.map +1 -1
  364. package/build/mobile/bottom-sheet/nav-bar/action-button.native.js +9 -7
  365. package/build/mobile/bottom-sheet/nav-bar/action-button.native.js.map +1 -1
  366. package/build/mobile/bottom-sheet/nav-bar/apply-button.native.js +18 -15
  367. package/build/mobile/bottom-sheet/nav-bar/apply-button.native.js.map +1 -1
  368. package/build/mobile/bottom-sheet/nav-bar/back-button.native.js +19 -16
  369. package/build/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
  370. package/build/mobile/bottom-sheet/nav-bar/heading.native.js +5 -4
  371. package/build/mobile/bottom-sheet/nav-bar/heading.native.js.map +1 -1
  372. package/build/mobile/bottom-sheet/nav-bar/index.native.js +5 -4
  373. package/build/mobile/bottom-sheet/nav-bar/index.native.js.map +1 -1
  374. package/build/mobile/bottom-sheet/picker-cell.native.js +11 -10
  375. package/build/mobile/bottom-sheet/picker-cell.native.js.map +1 -1
  376. package/build/mobile/bottom-sheet/radio-cell.native.js +10 -9
  377. package/build/mobile/bottom-sheet/radio-cell.native.js.map +1 -1
  378. package/build/mobile/bottom-sheet/range-cell.native.js +50 -45
  379. package/build/mobile/bottom-sheet/range-cell.native.js.map +1 -1
  380. package/build/mobile/bottom-sheet/range-text-input.native.js +28 -25
  381. package/build/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
  382. package/build/mobile/bottom-sheet/ripple.native.js +12 -9
  383. package/build/mobile/bottom-sheet/ripple.native.js.map +1 -1
  384. package/build/mobile/bottom-sheet/stepper-cell/index.native.js +41 -35
  385. package/build/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
  386. package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js +33 -29
  387. package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js.map +1 -1
  388. package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js +33 -29
  389. package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js.map +1 -1
  390. package/build/mobile/bottom-sheet/sub-sheet/index.native.js +16 -5
  391. package/build/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
  392. package/build/mobile/bottom-sheet/switch-cell.native.js +11 -10
  393. package/build/mobile/bottom-sheet/switch-cell.native.js.map +1 -1
  394. package/build/mobile/bottom-sheet-select-control/index.native.js +40 -31
  395. package/build/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
  396. package/build/mobile/bottom-sheet-text-control/index.native.js +41 -29
  397. package/build/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
  398. package/build/mobile/color-settings/gradient-picker-screen.native.js +14 -8
  399. package/build/mobile/color-settings/gradient-picker-screen.native.js.map +1 -1
  400. package/build/mobile/color-settings/index.native.js +27 -21
  401. package/build/mobile/color-settings/index.native.js.map +1 -1
  402. package/build/mobile/color-settings/palette.screen.native.js +84 -64
  403. package/build/mobile/color-settings/palette.screen.native.js.map +1 -1
  404. package/build/mobile/color-settings/picker-screen.native.js +4 -4
  405. package/build/mobile/color-settings/picker-screen.native.js.map +1 -1
  406. package/build/mobile/cycle-select-control/index.native.js +2 -2
  407. package/build/mobile/cycle-select-control/index.native.js.map +1 -1
  408. package/build/mobile/dashicons/index.native.js +8 -7
  409. package/build/mobile/dashicons/index.native.js.map +1 -1
  410. package/build/mobile/focal-point-settings-panel/index.native.js +22 -16
  411. package/build/mobile/focal-point-settings-panel/index.native.js.map +1 -1
  412. package/build/mobile/gradient/index.native.js +37 -30
  413. package/build/mobile/gradient/index.native.js.map +1 -1
  414. package/build/mobile/gridicons/index.native.js +8 -7
  415. package/build/mobile/gridicons/index.native.js.map +1 -1
  416. package/build/mobile/html-text-input/index.native.js +36 -34
  417. package/build/mobile/html-text-input/index.native.js.map +1 -1
  418. package/build/mobile/image/icon-customize.native.js +8 -7
  419. package/build/mobile/image/icon-customize.native.js.map +1 -1
  420. package/build/mobile/image/icon-retry.native.js +11 -10
  421. package/build/mobile/image/icon-retry.native.js.map +1 -1
  422. package/build/mobile/image/image-editing-button.native.js +18 -15
  423. package/build/mobile/image/image-editing-button.native.js.map +1 -1
  424. package/build/mobile/image/index.native.js +83 -72
  425. package/build/mobile/image/index.native.js.map +1 -1
  426. package/build/mobile/keyboard-avoiding-view/index.ios.js +10 -8
  427. package/build/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
  428. package/build/mobile/keyboard-aware-flat-list/index.android.js +15 -14
  429. package/build/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
  430. package/build/mobile/keyboard-aware-flat-list/index.ios.js +16 -15
  431. package/build/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
  432. package/build/mobile/link-picker/index.native.js +55 -46
  433. package/build/mobile/link-picker/index.native.js.map +1 -1
  434. package/build/mobile/link-picker/link-picker-results.native.js +33 -29
  435. package/build/mobile/link-picker/link-picker-results.native.js.map +1 -1
  436. package/build/mobile/link-picker/link-picker-screen.native.js +2 -2
  437. package/build/mobile/link-picker/link-picker-screen.native.js.map +1 -1
  438. package/build/mobile/link-settings/index.native.js +58 -50
  439. package/build/mobile/link-settings/index.native.js.map +1 -1
  440. package/build/mobile/link-settings/link-rel.native.js +8 -7
  441. package/build/mobile/link-settings/link-rel.native.js.map +1 -1
  442. package/build/mobile/link-settings/link-settings-navigation.native.js +23 -19
  443. package/build/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
  444. package/build/mobile/link-settings/link-settings-screen.native.js +2 -2
  445. package/build/mobile/link-settings/link-settings-screen.native.js.map +1 -1
  446. package/build/mobile/media-edit/index.native.js +8 -3
  447. package/build/mobile/media-edit/index.native.js.map +1 -1
  448. package/build/mobile/picker/index.android.js +27 -24
  449. package/build/mobile/picker/index.android.js.map +1 -1
  450. package/build/mobile/picker/index.ios.js +4 -4
  451. package/build/mobile/picker/index.ios.js.map +1 -1
  452. package/build/mobile/segmented-control/index.native.js +49 -42
  453. package/build/mobile/segmented-control/index.native.js.map +1 -1
  454. package/build/mobile/utils/use-unit-converter-to-mobile.native.js +1 -10
  455. package/build/mobile/utils/use-unit-converter-to-mobile.native.js.map +1 -1
  456. package/build/modal/index.js +57 -46
  457. package/build/modal/index.js.map +1 -1
  458. package/build/navigable-container/container.js +6 -5
  459. package/build/navigable-container/container.js.map +1 -1
  460. package/build/navigable-container/menu.js +2 -2
  461. package/build/navigable-container/menu.js.map +1 -1
  462. package/build/navigable-container/tabbable.js +2 -2
  463. package/build/navigable-container/tabbable.js.map +1 -1
  464. package/build/navigation/back-button/index.js +7 -6
  465. package/build/navigation/back-button/index.js.map +1 -1
  466. package/build/navigation/group/index.js +21 -16
  467. package/build/navigation/group/index.js.map +1 -1
  468. package/build/navigation/index.js +13 -11
  469. package/build/navigation/index.js.map +1 -1
  470. package/build/navigation/item/base-content.js +11 -7
  471. package/build/navigation/item/base-content.js.map +1 -1
  472. package/build/navigation/item/base.js +5 -4
  473. package/build/navigation/item/base.js.map +1 -1
  474. package/build/navigation/item/index.js +17 -13
  475. package/build/navigation/item/index.js.map +1 -1
  476. package/build/navigation/menu/index.js +29 -23
  477. package/build/navigation/menu/index.js.map +1 -1
  478. package/build/navigation/menu/menu-title-search.js +14 -12
  479. package/build/navigation/menu/menu-title-search.js.map +1 -1
  480. package/build/navigation/menu/menu-title.js +35 -28
  481. package/build/navigation/menu/menu-title.js.map +1 -1
  482. package/build/navigation/menu/search-no-results-found.js +6 -2
  483. package/build/navigation/menu/search-no-results-found.js.map +1 -1
  484. package/build/navigator/navigator-back-button/component.js +2 -2
  485. package/build/navigator/navigator-back-button/component.js.map +1 -1
  486. package/build/navigator/navigator-button/component.js +2 -2
  487. package/build/navigator/navigator-button/component.js.map +1 -1
  488. package/build/navigator/navigator-provider/component.js +8 -6
  489. package/build/navigator/navigator-provider/component.js.map +1 -1
  490. package/build/navigator/navigator-screen/component.js +5 -4
  491. package/build/navigator/navigator-screen/component.js.map +1 -1
  492. package/build/navigator/navigator-to-parent-button/component.js +2 -2
  493. package/build/navigator/navigator-to-parent-button/component.js.map +1 -1
  494. package/build/notice/index.js +44 -37
  495. package/build/notice/index.js.map +1 -1
  496. package/build/notice/index.native.js +21 -15
  497. package/build/notice/index.native.js.map +1 -1
  498. package/build/notice/list.js +16 -14
  499. package/build/notice/list.js.map +1 -1
  500. package/build/notice/list.native.js +12 -10
  501. package/build/notice/list.native.js.map +1 -1
  502. package/build/number-control/index.js +24 -20
  503. package/build/number-control/index.js.map +1 -1
  504. package/build/palette-edit/index.js +226 -196
  505. package/build/palette-edit/index.js.map +1 -1
  506. package/build/panel/actions.native.js +9 -9
  507. package/build/panel/actions.native.js.map +1 -1
  508. package/build/panel/body.js +33 -29
  509. package/build/panel/body.js.map +1 -1
  510. package/build/panel/body.native.js +9 -7
  511. package/build/panel/body.native.js.map +1 -1
  512. package/build/panel/bottom-separator-cover.native.js +2 -2
  513. package/build/panel/bottom-separator-cover.native.js.map +1 -1
  514. package/build/panel/header.js +7 -4
  515. package/build/panel/header.js.map +1 -1
  516. package/build/panel/index.js +7 -6
  517. package/build/panel/index.js.map +1 -1
  518. package/build/panel/row.js +5 -4
  519. package/build/panel/row.js.map +1 -1
  520. package/build/placeholder/index.js +26 -20
  521. package/build/placeholder/index.js.map +1 -1
  522. package/build/popover/index.js +52 -42
  523. package/build/popover/index.js.map +1 -1
  524. package/build/private-apis.js +0 -2
  525. package/build/private-apis.js.map +1 -1
  526. package/build/progress-bar/index.js +32 -15
  527. package/build/progress-bar/index.js.map +1 -1
  528. package/build/progress-bar/styles.js +4 -4
  529. package/build/progress-bar/styles.js.map +1 -1
  530. package/build/query-controls/author-select.js +2 -2
  531. package/build/query-controls/author-select.js.map +1 -1
  532. package/build/query-controls/category-select.js +2 -2
  533. package/build/query-controls/category-select.js.map +1 -1
  534. package/build/query-controls/index.js +74 -78
  535. package/build/query-controls/index.js.map +1 -1
  536. package/build/query-controls/index.native.js +27 -24
  537. package/build/query-controls/index.native.js.map +1 -1
  538. package/build/radio-control/index.js +25 -22
  539. package/build/radio-control/index.js.map +1 -1
  540. package/build/radio-control/index.native.js +11 -10
  541. package/build/radio-control/index.native.js.map +1 -1
  542. package/build/radio-group/index.js +13 -10
  543. package/build/radio-group/index.js.map +1 -1
  544. package/build/radio-group/radio.js +6 -5
  545. package/build/radio-group/radio.js.map +1 -1
  546. package/build/range-control/index.js +100 -89
  547. package/build/range-control/index.js.map +1 -1
  548. package/build/range-control/index.native.js +3 -3
  549. package/build/range-control/index.native.js.map +1 -1
  550. package/build/range-control/input-range.js +2 -2
  551. package/build/range-control/input-range.js.map +1 -1
  552. package/build/range-control/mark.js +16 -13
  553. package/build/range-control/mark.js.map +1 -1
  554. package/build/range-control/rail.js +24 -20
  555. package/build/range-control/rail.js.map +1 -1
  556. package/build/range-control/tooltip.js +5 -4
  557. package/build/range-control/tooltip.js.map +1 -1
  558. package/build/resizable-box/index.js +7 -6
  559. package/build/resizable-box/index.js.map +1 -1
  560. package/build/resizable-box/index.native.js +2 -2
  561. package/build/resizable-box/index.native.js.map +1 -1
  562. package/build/resizable-box/resize-tooltip/index.js +11 -10
  563. package/build/resizable-box/resize-tooltip/index.js.map +1 -1
  564. package/build/resizable-box/resize-tooltip/label.js +12 -9
  565. package/build/resizable-box/resize-tooltip/label.js.map +1 -1
  566. package/build/responsive-wrapper/index.js +13 -10
  567. package/build/responsive-wrapper/index.js.map +1 -1
  568. package/build/sandbox/index.js +33 -29
  569. package/build/sandbox/index.js.map +1 -1
  570. package/build/sandbox/index.native.js +32 -29
  571. package/build/sandbox/index.native.js.map +1 -1
  572. package/build/scrollable/component.js +2 -2
  573. package/build/scrollable/component.js.map +1 -1
  574. package/build/search-control/index.js +30 -28
  575. package/build/search-control/index.js.map +1 -1
  576. package/build/search-control/index.native.js +46 -38
  577. package/build/search-control/index.native.js.map +1 -1
  578. package/build/select-control/chevron-down.js +9 -5
  579. package/build/select-control/chevron-down.js.map +1 -1
  580. package/build/select-control/index.js +38 -35
  581. package/build/select-control/index.js.map +1 -1
  582. package/build/select-control/index.native.js +2 -2
  583. package/build/select-control/index.native.js.map +1 -1
  584. package/build/shortcut/index.js +5 -4
  585. package/build/shortcut/index.js.map +1 -1
  586. package/build/slot-fill/bubbles-virtually/fill.js +5 -4
  587. package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
  588. package/build/slot-fill/bubbles-virtually/slot-fill-context.js +1 -1
  589. package/build/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
  590. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js +6 -5
  591. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  592. package/build/slot-fill/bubbles-virtually/slot.js +2 -2
  593. package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
  594. package/build/slot-fill/index.js +20 -12
  595. package/build/slot-fill/index.js.map +1 -1
  596. package/build/slot-fill/index.native.js +4 -4
  597. package/build/slot-fill/index.native.js.map +1 -1
  598. package/build/slot-fill/provider.js +6 -5
  599. package/build/slot-fill/provider.js.map +1 -1
  600. package/build/slot-fill/slot.js +16 -12
  601. package/build/slot-fill/slot.js.map +1 -1
  602. package/build/snackbar/index.js +32 -28
  603. package/build/snackbar/index.js.map +1 -1
  604. package/build/snackbar/list.js +29 -24
  605. package/build/snackbar/list.js.map +1 -1
  606. package/build/spacer/component.js +2 -2
  607. package/build/spacer/component.js.map +1 -1
  608. package/build/spinner/index.js +13 -12
  609. package/build/spinner/index.js.map +1 -1
  610. package/build/spinner/index.native.js +2 -2
  611. package/build/spinner/index.native.js.map +1 -1
  612. package/build/style-provider/index.js +6 -5
  613. package/build/style-provider/index.js.map +1 -1
  614. package/build/surface/component.js +2 -2
  615. package/build/surface/component.js.map +1 -1
  616. package/build/tab-panel/index.js +29 -26
  617. package/build/tab-panel/index.js.map +1 -1
  618. package/build/tabs/index.js +5 -4
  619. package/build/tabs/index.js.map +1 -1
  620. package/build/tabs/styles.js +9 -14
  621. package/build/tabs/styles.js.map +1 -1
  622. package/build/tabs/tab.js +6 -5
  623. package/build/tabs/tab.js.map +1 -1
  624. package/build/tabs/tablist.js +103 -7
  625. package/build/tabs/tablist.js.map +1 -1
  626. package/build/tabs/tabpanel.js +6 -5
  627. package/build/tabs/tabpanel.js.map +1 -1
  628. package/build/text/component.js +2 -2
  629. package/build/text/component.js.map +1 -1
  630. package/build/text/styles.js +7 -7
  631. package/build/text/styles.js.map +1 -1
  632. package/build/text-control/index.js +16 -15
  633. package/build/text-control/index.js.map +1 -1
  634. package/build/text-control/index.native.js +2 -2
  635. package/build/text-control/index.native.js.map +1 -1
  636. package/build/text-highlight/index.js +5 -3
  637. package/build/text-highlight/index.js.map +1 -1
  638. package/build/textarea-control/index.js +14 -13
  639. package/build/textarea-control/index.js.map +1 -1
  640. package/build/textarea-control/index.native.js +16 -15
  641. package/build/textarea-control/index.native.js.map +1 -1
  642. package/build/theme/color-algorithms.js +2 -2
  643. package/build/theme/color-algorithms.js.map +1 -1
  644. package/build/theme/index.js +3 -4
  645. package/build/theme/index.js.map +1 -1
  646. package/build/tip/index.js +9 -6
  647. package/build/tip/index.js.map +1 -1
  648. package/build/toggle-control/index.js +23 -20
  649. package/build/toggle-control/index.js.map +1 -1
  650. package/build/toggle-control/index.native.js +2 -2
  651. package/build/toggle-control/index.native.js.map +1 -1
  652. package/build/toggle-group-control/toggle-group-control/as-button-group.js +11 -9
  653. package/build/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -1
  654. package/build/toggle-group-control/toggle-group-control/as-radio-group.js +13 -11
  655. package/build/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
  656. package/build/toggle-group-control/toggle-group-control/component.js +22 -15
  657. package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
  658. package/build/toggle-group-control/toggle-group-control-option/component.js +5 -4
  659. package/build/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  660. package/build/toggle-group-control/toggle-group-control-option-base/component.js +50 -38
  661. package/build/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  662. package/build/toggle-group-control/toggle-group-control-option-icon/component.js +7 -6
  663. package/build/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  664. package/build/toolbar/toolbar/index.js +11 -10
  665. package/build/toolbar/toolbar/index.js.map +1 -1
  666. package/build/toolbar/toolbar/toolbar-container.js +11 -9
  667. package/build/toolbar/toolbar/toolbar-container.js.map +1 -1
  668. package/build/toolbar/toolbar/toolbar-container.native.js +4 -2
  669. package/build/toolbar/toolbar/toolbar-container.native.js.map +1 -1
  670. package/build/toolbar/toolbar-button/index.js +35 -31
  671. package/build/toolbar/toolbar-button/index.js.map +1 -1
  672. package/build/toolbar/toolbar-button/toolbar-button-container.js +5 -4
  673. package/build/toolbar/toolbar-button/toolbar-button-container.js.map +1 -1
  674. package/build/toolbar/toolbar-button/toolbar-button-container.native.js +4 -2
  675. package/build/toolbar/toolbar-button/toolbar-button-container.native.js.map +1 -1
  676. package/build/toolbar/toolbar-dropdown-menu/index.js +12 -11
  677. package/build/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
  678. package/build/toolbar/toolbar-group/index.js +9 -9
  679. package/build/toolbar/toolbar-group/index.js.map +1 -1
  680. package/build/toolbar/toolbar-group/toolbar-group-collapsed.js +6 -5
  681. package/build/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
  682. package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js +8 -7
  683. package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js.map +1 -1
  684. package/build/toolbar/toolbar-group/toolbar-group-container.js +5 -4
  685. package/build/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
  686. package/build/toolbar/toolbar-group/toolbar-group-container.native.js +5 -4
  687. package/build/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
  688. package/build/toolbar/toolbar-item/index.js +10 -7
  689. package/build/toolbar/toolbar-item/index.js.map +1 -1
  690. package/build/toolbar/toolbar-item/index.native.js +1 -1
  691. package/build/toolbar/toolbar-item/index.native.js.map +1 -1
  692. package/build/tools-panel/tools-panel/component.js +14 -12
  693. package/build/tools-panel/tools-panel/component.js.map +1 -1
  694. package/build/tools-panel/tools-panel-header/component.js +108 -94
  695. package/build/tools-panel/tools-panel-header/component.js.map +1 -1
  696. package/build/tools-panel/tools-panel-item/component.js +6 -5
  697. package/build/tools-panel/tools-panel-item/component.js.map +1 -1
  698. package/build/tooltip/index.js +25 -26
  699. package/build/tooltip/index.js.map +1 -1
  700. package/build/tooltip/index.native.js +33 -24
  701. package/build/tooltip/index.native.js.map +1 -1
  702. package/build/tree-grid/cell.js +10 -6
  703. package/build/tree-grid/cell.js.map +1 -1
  704. package/build/tree-grid/index.js +16 -10
  705. package/build/tree-grid/index.js.map +1 -1
  706. package/build/tree-grid/item.js +5 -4
  707. package/build/tree-grid/item.js.map +1 -1
  708. package/build/tree-grid/roving-tab-index-item.js +5 -4
  709. package/build/tree-grid/roving-tab-index-item.js.map +1 -1
  710. package/build/tree-grid/roving-tab-index.js +6 -6
  711. package/build/tree-grid/roving-tab-index.js.map +1 -1
  712. package/build/tree-grid/row.js +5 -4
  713. package/build/tree-grid/row.js.map +1 -1
  714. package/build/tree-select/index.js +2 -2
  715. package/build/tree-select/index.js.map +1 -1
  716. package/build/truncate/component.js +2 -2
  717. package/build/truncate/component.js.map +1 -1
  718. package/build/unit-control/index.js +3 -3
  719. package/build/unit-control/index.js.map +1 -1
  720. package/build/unit-control/index.native.js +56 -48
  721. package/build/unit-control/index.native.js.map +1 -1
  722. package/build/unit-control/unit-select-control.js +12 -10
  723. package/build/unit-control/unit-select-control.js.map +1 -1
  724. package/build/utils/style-mixins.js +0 -7
  725. package/build/utils/style-mixins.js.map +1 -1
  726. package/build/v-stack/component.js +2 -2
  727. package/build/v-stack/component.js.map +1 -1
  728. package/build/view/component.js +2 -2
  729. package/build/view/component.js.map +1 -1
  730. package/build/visually-hidden/component.js +2 -2
  731. package/build/visually-hidden/component.js.map +1 -1
  732. package/build/z-stack/component.js +8 -7
  733. package/build/z-stack/component.js.map +1 -1
  734. package/build-module/alignment-matrix-control/cell.js +17 -12
  735. package/build-module/alignment-matrix-control/cell.js.map +1 -1
  736. package/build-module/alignment-matrix-control/icon.js +12 -11
  737. package/build-module/alignment-matrix-control/icon.js.map +1 -1
  738. package/build-module/alignment-matrix-control/index.js +18 -18
  739. package/build-module/alignment-matrix-control/index.js.map +1 -1
  740. package/build-module/angle-picker-control/angle-circle.js +14 -12
  741. package/build-module/angle-picker-control/angle-circle.js.map +1 -1
  742. package/build-module/angle-picker-control/index.js +31 -24
  743. package/build-module/angle-picker-control/index.js.map +1 -1
  744. package/build-module/animate/index.js +1 -1
  745. package/build-module/animate/index.js.map +1 -1
  746. package/build-module/autocomplete/autocompleter-ui.js +58 -30
  747. package/build-module/autocomplete/autocompleter-ui.js.map +1 -1
  748. package/build-module/autocomplete/autocompleter-ui.native.js +51 -40
  749. package/build-module/autocomplete/autocompleter-ui.native.js.map +1 -1
  750. package/build-module/autocomplete/background-view.android.js +5 -4
  751. package/build-module/autocomplete/background-view.android.js.map +1 -1
  752. package/build-module/autocomplete/background-view.ios.js +5 -4
  753. package/build-module/autocomplete/background-view.ios.js.map +1 -1
  754. package/build-module/autocomplete/index.js +7 -3
  755. package/build-module/autocomplete/index.js.map +1 -1
  756. package/build-module/base-control/index.js +34 -24
  757. package/build-module/base-control/index.js.map +1 -1
  758. package/build-module/base-control/index.native.js +10 -4
  759. package/build-module/base-control/index.native.js.map +1 -1
  760. package/build-module/border-box-control/border-box-control/component.js +50 -44
  761. package/build-module/border-box-control/border-box-control/component.js.map +1 -1
  762. package/build-module/border-box-control/border-box-control-linked-button/component.js +15 -13
  763. package/build-module/border-box-control/border-box-control-linked-button/component.js.map +1 -1
  764. package/build-module/border-box-control/border-box-control-split-controls/component.js +40 -38
  765. package/build-module/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  766. package/build-module/border-box-control/border-box-control-visualizer/component.js +2 -2
  767. package/build-module/border-box-control/border-box-control-visualizer/component.js.map +1 -1
  768. package/build-module/border-control/border-control/component.js +57 -52
  769. package/build-module/border-control/border-control/component.js.map +1 -1
  770. package/build-module/border-control/border-control-dropdown/component.js +57 -43
  771. package/build-module/border-control/border-control-dropdown/component.js.map +1 -1
  772. package/build-module/border-control/border-control-style-picker/component.js +9 -9
  773. package/build-module/border-control/border-control-style-picker/component.js.map +1 -1
  774. package/build-module/box-control/all-input-control.js +31 -28
  775. package/build-module/box-control/all-input-control.js.map +1 -1
  776. package/build-module/box-control/axial-input-controls.js +47 -41
  777. package/build-module/box-control/axial-input-controls.js.map +1 -1
  778. package/build-module/box-control/icon.js +16 -12
  779. package/build-module/box-control/icon.js.map +1 -1
  780. package/build-module/box-control/index.js +32 -24
  781. package/build-module/box-control/index.js.map +1 -1
  782. package/build-module/box-control/input-controls.js +48 -43
  783. package/build-module/box-control/input-controls.js.map +1 -1
  784. package/build-module/box-control/linked-button.js +12 -11
  785. package/build-module/box-control/linked-button.js.map +1 -1
  786. package/build-module/button/deprecated.js +2 -2
  787. package/build-module/button/deprecated.js.map +1 -1
  788. package/build-module/button/index.js +36 -19
  789. package/build-module/button/index.js.map +1 -1
  790. package/build-module/button/index.native.js +28 -21
  791. package/build-module/button/index.native.js.map +1 -1
  792. package/build-module/button-group/index.js +2 -3
  793. package/build-module/button-group/index.js.map +1 -1
  794. package/build-module/card/card/component.js +21 -17
  795. package/build-module/card/card/component.js.map +1 -1
  796. package/build-module/card/card-body/component.js +3 -3
  797. package/build-module/card/card-body/component.js.map +1 -1
  798. package/build-module/card/card-divider/component.js +2 -2
  799. package/build-module/card/card-divider/component.js.map +1 -1
  800. package/build-module/card/card-footer/component.js +2 -2
  801. package/build-module/card/card-footer/component.js.map +1 -1
  802. package/build-module/card/card-header/component.js +2 -2
  803. package/build-module/card/card-header/component.js.map +1 -1
  804. package/build-module/card/card-media/component.js +2 -2
  805. package/build-module/card/card-media/component.js.map +1 -1
  806. package/build-module/checkbox-control/index.js +40 -34
  807. package/build-module/checkbox-control/index.js.map +1 -1
  808. package/build-module/circular-option-picker/circular-option-picker-actions.js +10 -8
  809. package/build-module/circular-option-picker/circular-option-picker-actions.js.map +1 -1
  810. package/build-module/circular-option-picker/circular-option-picker-option-group.js +5 -5
  811. package/build-module/circular-option-picker/circular-option-picker-option-group.js.map +1 -1
  812. package/build-module/circular-option-picker/circular-option-picker-option.js +17 -14
  813. package/build-module/circular-option-picker/circular-option-picker-option.js.map +1 -1
  814. package/build-module/circular-option-picker/circular-option-picker.js +36 -28
  815. package/build-module/circular-option-picker/circular-option-picker.js.map +1 -1
  816. package/build-module/clipboard-button/index.js +5 -4
  817. package/build-module/clipboard-button/index.js.map +1 -1
  818. package/build-module/color-control/index.native.js +2 -2
  819. package/build-module/color-control/index.native.js.map +1 -1
  820. package/build-module/color-indicator/index.js +2 -3
  821. package/build-module/color-indicator/index.js.map +1 -1
  822. package/build-module/color-indicator/index.native.js +40 -36
  823. package/build-module/color-indicator/index.native.js.map +1 -1
  824. package/build-module/color-palette/index.js +91 -82
  825. package/build-module/color-palette/index.js.map +1 -1
  826. package/build-module/color-palette/index.native.js +77 -65
  827. package/build-module/color-palette/index.native.js.map +1 -1
  828. package/build-module/color-picker/color-copy-button.js +10 -9
  829. package/build-module/color-picker/color-copy-button.js.map +1 -1
  830. package/build-module/color-picker/color-input.js +4 -4
  831. package/build-module/color-picker/color-input.js.map +1 -1
  832. package/build-module/color-picker/component.js +37 -30
  833. package/build-module/color-picker/component.js.map +1 -1
  834. package/build-module/color-picker/hex-input.js +6 -5
  835. package/build-module/color-picker/hex-input.js.map +1 -1
  836. package/build-module/color-picker/hsl-input.js +50 -46
  837. package/build-module/color-picker/hsl-input.js.map +1 -1
  838. package/build-module/color-picker/hsv-color-picker.native.js +33 -31
  839. package/build-module/color-picker/hsv-color-picker.native.js.map +1 -1
  840. package/build-module/color-picker/hue-picker.native.js +34 -31
  841. package/build-module/color-picker/hue-picker.native.js.map +1 -1
  842. package/build-module/color-picker/index.native.js +68 -53
  843. package/build-module/color-picker/index.native.js.map +1 -1
  844. package/build-module/color-picker/input-with-slider.js +34 -31
  845. package/build-module/color-picker/input-with-slider.js.map +1 -1
  846. package/build-module/color-picker/legacy-adapter.js +2 -2
  847. package/build-module/color-picker/legacy-adapter.js.map +1 -1
  848. package/build-module/color-picker/picker.js +2 -3
  849. package/build-module/color-picker/picker.js.map +1 -1
  850. package/build-module/color-picker/rgb-input.js +54 -50
  851. package/build-module/color-picker/rgb-input.js.map +1 -1
  852. package/build-module/color-picker/saturation-picker.native.js +45 -41
  853. package/build-module/color-picker/saturation-picker.native.js.map +1 -1
  854. package/build-module/combobox-control/index.js +68 -52
  855. package/build-module/combobox-control/index.js.map +1 -1
  856. package/build-module/combobox-control/types.js.map +1 -1
  857. package/build-module/composite/legacy/index.js +3 -4
  858. package/build-module/composite/legacy/index.js.map +1 -1
  859. package/build-module/confirm-dialog/component.js +37 -26
  860. package/build-module/confirm-dialog/component.js.map +1 -1
  861. package/build-module/context/context-connect.js +1 -1
  862. package/build-module/context/context-connect.js.map +1 -1
  863. package/build-module/context/context-system-provider.js +6 -5
  864. package/build-module/context/context-system-provider.js.map +1 -1
  865. package/build-module/context/use-context-system.js +1 -1
  866. package/build-module/context/use-context-system.js.map +1 -1
  867. package/build-module/css.d.js +2 -0
  868. package/build-module/css.d.js.map +1 -0
  869. package/build-module/custom-gradient-picker/gradient-bar/control-points.js +116 -107
  870. package/build-module/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  871. package/build-module/custom-gradient-picker/gradient-bar/index.js +50 -47
  872. package/build-module/custom-gradient-picker/gradient-bar/index.js.map +1 -1
  873. package/build-module/custom-gradient-picker/index.js +32 -25
  874. package/build-module/custom-gradient-picker/index.js.map +1 -1
  875. package/build-module/custom-gradient-picker/index.native.js +25 -17
  876. package/build-module/custom-gradient-picker/index.native.js.map +1 -1
  877. package/build-module/custom-select-control/index.js +73 -59
  878. package/build-module/custom-select-control/index.js.map +1 -1
  879. package/build-module/custom-select-control-v2/custom-select.js +49 -35
  880. package/build-module/custom-select-control-v2/custom-select.js.map +1 -1
  881. package/build-module/custom-select-control-v2/default-component/index.js +2 -2
  882. package/build-module/custom-select-control-v2/default-component/index.js.map +1 -1
  883. package/build-module/custom-select-control-v2/item.js +10 -6
  884. package/build-module/custom-select-control-v2/item.js.map +1 -1
  885. package/build-module/custom-select-control-v2/legacy-component/index.js +35 -43
  886. package/build-module/custom-select-control-v2/legacy-component/index.js.map +1 -1
  887. package/build-module/custom-select-control-v2/styles.js +9 -9
  888. package/build-module/custom-select-control-v2/styles.js.map +1 -1
  889. package/build-module/custom-select-control-v2/types.js.map +1 -1
  890. package/build-module/dashicon/index.js +2 -2
  891. package/build-module/dashicon/index.js.map +1 -1
  892. package/build-module/dashicon/index.native.js +3 -3
  893. package/build-module/dashicon/index.native.js.map +1 -1
  894. package/build-module/date-time/date/index.js +93 -85
  895. package/build-module/date-time/date/index.js.map +1 -1
  896. package/build-module/date-time/date-time/index.js +20 -15
  897. package/build-module/date-time/date-time/index.js.map +1 -1
  898. package/build-module/date-time/time/index.js +164 -135
  899. package/build-module/date-time/time/index.js.map +1 -1
  900. package/build-module/date-time/time/timezone.js +11 -8
  901. package/build-module/date-time/time/timezone.js.map +1 -1
  902. package/build-module/dimension-control/index.js +9 -5
  903. package/build-module/dimension-control/index.js.map +1 -1
  904. package/build-module/disabled/index.js +11 -9
  905. package/build-module/disabled/index.js.map +1 -1
  906. package/build-module/disabled/index.native.js +5 -4
  907. package/build-module/disabled/index.native.js.map +1 -1
  908. package/build-module/disclosure/index.js +5 -5
  909. package/build-module/disclosure/index.js.map +1 -1
  910. package/build-module/divider/component.js +3 -3
  911. package/build-module/divider/component.js.map +1 -1
  912. package/build-module/draggable/index.js +16 -12
  913. package/build-module/draggable/index.js.map +1 -1
  914. package/build-module/draggable/index.native.js +15 -11
  915. package/build-module/draggable/index.native.js.map +1 -1
  916. package/build-module/drop-zone/index.js +24 -17
  917. package/build-module/drop-zone/index.js.map +1 -1
  918. package/build-module/dropdown/dropdown-content-wrapper.js +2 -2
  919. package/build-module/dropdown/dropdown-content-wrapper.js.map +1 -1
  920. package/build-module/dropdown/index.js +22 -19
  921. package/build-module/dropdown/index.js.map +1 -1
  922. package/build-module/dropdown/index.native.js +5 -2
  923. package/build-module/dropdown/index.native.js.map +1 -1
  924. package/build-module/dropdown-menu/index.js +30 -27
  925. package/build-module/dropdown-menu/index.js.map +1 -1
  926. package/build-module/dropdown-menu/index.native.js +33 -29
  927. package/build-module/dropdown-menu/index.native.js.map +1 -1
  928. package/build-module/dropdown-menu-v2/index.js +110 -76
  929. package/build-module/dropdown-menu-v2/index.js.map +1 -1
  930. package/build-module/duotone-picker/color-list-picker/index.js +54 -46
  931. package/build-module/duotone-picker/color-list-picker/index.js.map +1 -1
  932. package/build-module/duotone-picker/custom-duotone-bar.js +2 -2
  933. package/build-module/duotone-picker/custom-duotone-bar.js.map +1 -1
  934. package/build-module/duotone-picker/duotone-picker.js +41 -38
  935. package/build-module/duotone-picker/duotone-picker.js.map +1 -1
  936. package/build-module/duotone-picker/duotone-swatch.js +3 -3
  937. package/build-module/duotone-picker/duotone-swatch.js.map +1 -1
  938. package/build-module/elevation/component.js +2 -2
  939. package/build-module/elevation/component.js.map +1 -1
  940. package/build-module/external-link/index.js +17 -12
  941. package/build-module/external-link/index.js.map +1 -1
  942. package/build-module/external-link/index.native.js +10 -6
  943. package/build-module/external-link/index.native.js.map +1 -1
  944. package/build-module/flex/flex/component.js +9 -7
  945. package/build-module/flex/flex/component.js.map +1 -1
  946. package/build-module/flex/flex-block/component.js +2 -2
  947. package/build-module/flex/flex-block/component.js.map +1 -1
  948. package/build-module/flex/flex-item/component.js +2 -2
  949. package/build-module/flex/flex-item/component.js.map +1 -1
  950. package/build-module/focal-point-picker/controls.js +21 -19
  951. package/build-module/focal-point-picker/controls.js.map +1 -1
  952. package/build-module/focal-point-picker/focal-point.js +3 -5
  953. package/build-module/focal-point-picker/focal-point.js.map +1 -1
  954. package/build-module/focal-point-picker/focal-point.native.js +12 -10
  955. package/build-module/focal-point-picker/focal-point.native.js.map +1 -1
  956. package/build-module/focal-point-picker/grid.js +22 -20
  957. package/build-module/focal-point-picker/grid.js.map +1 -1
  958. package/build-module/focal-point-picker/index.js +43 -39
  959. package/build-module/focal-point-picker/index.js.map +1 -1
  960. package/build-module/focal-point-picker/index.native.js +67 -62
  961. package/build-module/focal-point-picker/index.native.js.map +1 -1
  962. package/build-module/focal-point-picker/media.js +4 -4
  963. package/build-module/focal-point-picker/media.js.map +1 -1
  964. package/build-module/focal-point-picker/styles/focal-point-style.js +2 -6
  965. package/build-module/focal-point-picker/styles/focal-point-style.js.map +1 -1
  966. package/build-module/focal-point-picker/tooltip/index.native.js +33 -27
  967. package/build-module/focal-point-picker/tooltip/index.native.js.map +1 -1
  968. package/build-module/focusable-iframe/index.js +2 -3
  969. package/build-module/focusable-iframe/index.js.map +1 -1
  970. package/build-module/font-size-picker/font-size-picker-select.js +2 -2
  971. package/build-module/font-size-picker/font-size-picker-select.js.map +1 -1
  972. package/build-module/font-size-picker/font-size-picker-toggle-group.js +10 -10
  973. package/build-module/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  974. package/build-module/font-size-picker/index.js +120 -103
  975. package/build-module/font-size-picker/index.js.map +1 -1
  976. package/build-module/font-size-picker/index.native.js +78 -63
  977. package/build-module/font-size-picker/index.native.js.map +1 -1
  978. package/build-module/footer-message-control/index.native.js +2 -2
  979. package/build-module/footer-message-control/index.native.js.map +1 -1
  980. package/build-module/form-file-upload/index.js +21 -18
  981. package/build-module/form-file-upload/index.js.map +1 -1
  982. package/build-module/form-toggle/index.js +19 -18
  983. package/build-module/form-toggle/index.js.map +1 -1
  984. package/build-module/form-token-field/index.js +60 -55
  985. package/build-module/form-token-field/index.js.map +1 -1
  986. package/build-module/form-token-field/suggestions-list.js +42 -39
  987. package/build-module/form-token-field/suggestions-list.js.map +1 -1
  988. package/build-module/form-token-field/token-input.js +2 -3
  989. package/build-module/form-token-field/token-input.js.map +1 -1
  990. package/build-module/form-token-field/token.js +23 -18
  991. package/build-module/form-token-field/token.js.map +1 -1
  992. package/build-module/gradient-picker/index.js +51 -47
  993. package/build-module/gradient-picker/index.js.map +1 -1
  994. package/build-module/grid/component.js +2 -2
  995. package/build-module/grid/component.js.map +1 -1
  996. package/build-module/guide/icons.js +9 -8
  997. package/build-module/guide/icons.js.map +1 -1
  998. package/build-module/guide/index.js +34 -26
  999. package/build-module/guide/index.js.map +1 -1
  1000. package/build-module/guide/page-control.js +16 -17
  1001. package/build-module/guide/page-control.js.map +1 -1
  1002. package/build-module/guide/page.js +2 -3
  1003. package/build-module/guide/page.js.map +1 -1
  1004. package/build-module/h-stack/component.js +2 -2
  1005. package/build-module/h-stack/component.js.map +1 -1
  1006. package/build-module/h-stack/hook.js +3 -4
  1007. package/build-module/h-stack/hook.js.map +1 -1
  1008. package/build-module/heading/component.js +2 -2
  1009. package/build-module/heading/component.js.map +1 -1
  1010. package/build-module/higher-order/navigate-regions/index.js +7 -6
  1011. package/build-module/higher-order/navigate-regions/index.js.map +1 -1
  1012. package/build-module/higher-order/with-constrained-tabbing/index.js +7 -6
  1013. package/build-module/higher-order/with-constrained-tabbing/index.js.map +1 -1
  1014. package/build-module/higher-order/with-fallback-styles/index.js +7 -5
  1015. package/build-module/higher-order/with-fallback-styles/index.js.map +1 -1
  1016. package/build-module/higher-order/with-filters/index.js +2 -2
  1017. package/build-module/higher-order/with-filters/index.js.map +1 -1
  1018. package/build-module/higher-order/with-focus-outside/index.js +8 -7
  1019. package/build-module/higher-order/with-focus-outside/index.js.map +1 -1
  1020. package/build-module/higher-order/with-focus-outside/index.native.js +8 -7
  1021. package/build-module/higher-order/with-focus-outside/index.native.js.map +1 -1
  1022. package/build-module/higher-order/with-focus-return/index.js +7 -6
  1023. package/build-module/higher-order/with-focus-return/index.js.map +1 -1
  1024. package/build-module/higher-order/with-notices/index.js +4 -4
  1025. package/build-module/higher-order/with-notices/index.js.map +1 -1
  1026. package/build-module/higher-order/with-spoken-messages/index.js +2 -2
  1027. package/build-module/higher-order/with-spoken-messages/index.js.map +1 -1
  1028. package/build-module/icon/index.js +3 -2
  1029. package/build-module/icon/index.js.map +1 -1
  1030. package/build-module/index.js +1 -0
  1031. package/build-module/index.js.map +1 -1
  1032. package/build-module/index.native.js +0 -3
  1033. package/build-module/index.native.js.map +1 -1
  1034. package/build-module/input-control/backdrop.js +2 -2
  1035. package/build-module/input-control/backdrop.js.map +1 -1
  1036. package/build-module/input-control/index.js +36 -34
  1037. package/build-module/input-control/index.js.map +1 -1
  1038. package/build-module/input-control/input-base.js +38 -25
  1039. package/build-module/input-control/input-base.js.map +1 -1
  1040. package/build-module/input-control/input-field.js +2 -2
  1041. package/build-module/input-control/input-field.js.map +1 -1
  1042. package/build-module/input-control/input-prefix-wrapper.js +2 -2
  1043. package/build-module/input-control/input-prefix-wrapper.js.map +1 -1
  1044. package/build-module/input-control/input-suffix-wrapper.js +2 -2
  1045. package/build-module/input-control/input-suffix-wrapper.js.map +1 -1
  1046. package/build-module/input-control/label.js +12 -8
  1047. package/build-module/input-control/label.js.map +1 -1
  1048. package/build-module/input-control/styles/input-control-styles.js +21 -21
  1049. package/build-module/input-control/styles/input-control-styles.js.map +1 -1
  1050. package/build-module/isolated-event-container/index.js +2 -2
  1051. package/build-module/isolated-event-container/index.js.map +1 -1
  1052. package/build-module/item-group/item/component.js +8 -7
  1053. package/build-module/item-group/item/component.js.map +1 -1
  1054. package/build-module/item-group/item-group/component.js +8 -7
  1055. package/build-module/item-group/item-group/component.js.map +1 -1
  1056. package/build-module/keyboard-shortcuts/index.js +12 -9
  1057. package/build-module/keyboard-shortcuts/index.js.map +1 -1
  1058. package/build-module/menu-group/index.js +15 -12
  1059. package/build-module/menu-group/index.js.map +1 -1
  1060. package/build-module/menu-item/index.js +24 -18
  1061. package/build-module/menu-item/index.js.map +1 -1
  1062. package/build-module/menu-items-choice/index.js +25 -22
  1063. package/build-module/menu-items-choice/index.js.map +1 -1
  1064. package/build-module/mobile/autocompletion-items.native.js +2 -2
  1065. package/build-module/mobile/autocompletion-items.native.js.map +1 -1
  1066. package/build-module/mobile/badge/index.native.js +12 -6
  1067. package/build-module/mobile/badge/index.native.js.map +1 -1
  1068. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +23 -18
  1069. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
  1070. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +22 -16
  1071. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
  1072. package/build-module/mobile/bottom-sheet/button.native.js +17 -14
  1073. package/build-module/mobile/bottom-sheet/button.native.js.map +1 -1
  1074. package/build-module/mobile/bottom-sheet/cell.native.js +70 -53
  1075. package/build-module/mobile/bottom-sheet/cell.native.js.map +1 -1
  1076. package/build-module/mobile/bottom-sheet/chevron-back.native.js +7 -6
  1077. package/build-module/mobile/bottom-sheet/chevron-back.native.js.map +1 -1
  1078. package/build-module/mobile/bottom-sheet/color-cell.native.js +14 -11
  1079. package/build-module/mobile/bottom-sheet/color-cell.native.js.map +1 -1
  1080. package/build-module/mobile/bottom-sheet/cycle-picker-cell.native.js +2 -2
  1081. package/build-module/mobile/bottom-sheet/cycle-picker-cell.native.js.map +1 -1
  1082. package/build-module/mobile/bottom-sheet/footer-message-cell.native.js +4 -4
  1083. package/build-module/mobile/bottom-sheet/footer-message-cell.native.js.map +1 -1
  1084. package/build-module/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js +5 -4
  1085. package/build-module/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js.map +1 -1
  1086. package/build-module/mobile/bottom-sheet/index.native.js +74 -56
  1087. package/build-module/mobile/bottom-sheet/index.native.js.map +1 -1
  1088. package/build-module/mobile/bottom-sheet/keyboard-avoiding-view.native.js +5 -4
  1089. package/build-module/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
  1090. package/build-module/mobile/bottom-sheet/link-cell.native.js +7 -6
  1091. package/build-module/mobile/bottom-sheet/link-cell.native.js.map +1 -1
  1092. package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js +20 -15
  1093. package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
  1094. package/build-module/mobile/bottom-sheet/lock-icon/index.native.js +2 -2
  1095. package/build-module/mobile/bottom-sheet/lock-icon/index.native.js.map +1 -1
  1096. package/build-module/mobile/bottom-sheet/nav-bar/action-button.native.js +9 -7
  1097. package/build-module/mobile/bottom-sheet/nav-bar/action-button.native.js.map +1 -1
  1098. package/build-module/mobile/bottom-sheet/nav-bar/apply-button.native.js +18 -15
  1099. package/build-module/mobile/bottom-sheet/nav-bar/apply-button.native.js.map +1 -1
  1100. package/build-module/mobile/bottom-sheet/nav-bar/back-button.native.js +20 -16
  1101. package/build-module/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
  1102. package/build-module/mobile/bottom-sheet/nav-bar/heading.native.js +5 -4
  1103. package/build-module/mobile/bottom-sheet/nav-bar/heading.native.js.map +1 -1
  1104. package/build-module/mobile/bottom-sheet/nav-bar/index.native.js +5 -4
  1105. package/build-module/mobile/bottom-sheet/nav-bar/index.native.js.map +1 -1
  1106. package/build-module/mobile/bottom-sheet/picker-cell.native.js +11 -10
  1107. package/build-module/mobile/bottom-sheet/picker-cell.native.js.map +1 -1
  1108. package/build-module/mobile/bottom-sheet/radio-cell.native.js +10 -9
  1109. package/build-module/mobile/bottom-sheet/radio-cell.native.js.map +1 -1
  1110. package/build-module/mobile/bottom-sheet/range-cell.native.js +51 -45
  1111. package/build-module/mobile/bottom-sheet/range-cell.native.js.map +1 -1
  1112. package/build-module/mobile/bottom-sheet/range-text-input.native.js +29 -25
  1113. package/build-module/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
  1114. package/build-module/mobile/bottom-sheet/ripple.native.js +12 -9
  1115. package/build-module/mobile/bottom-sheet/ripple.native.js.map +1 -1
  1116. package/build-module/mobile/bottom-sheet/stepper-cell/index.native.js +42 -35
  1117. package/build-module/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
  1118. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.android.js +34 -29
  1119. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.android.js.map +1 -1
  1120. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.ios.js +34 -29
  1121. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.ios.js.map +1 -1
  1122. package/build-module/mobile/bottom-sheet/sub-sheet/index.native.js +16 -3
  1123. package/build-module/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
  1124. package/build-module/mobile/bottom-sheet/switch-cell.native.js +11 -10
  1125. package/build-module/mobile/bottom-sheet/switch-cell.native.js.map +1 -1
  1126. package/build-module/mobile/bottom-sheet-select-control/index.native.js +42 -30
  1127. package/build-module/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
  1128. package/build-module/mobile/bottom-sheet-text-control/index.native.js +42 -28
  1129. package/build-module/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
  1130. package/build-module/mobile/color-settings/gradient-picker-screen.native.js +15 -8
  1131. package/build-module/mobile/color-settings/gradient-picker-screen.native.js.map +1 -1
  1132. package/build-module/mobile/color-settings/index.native.js +27 -20
  1133. package/build-module/mobile/color-settings/index.native.js.map +1 -1
  1134. package/build-module/mobile/color-settings/palette.screen.native.js +85 -63
  1135. package/build-module/mobile/color-settings/palette.screen.native.js.map +1 -1
  1136. package/build-module/mobile/color-settings/picker-screen.native.js +3 -3
  1137. package/build-module/mobile/color-settings/picker-screen.native.js.map +1 -1
  1138. package/build-module/mobile/cycle-select-control/index.native.js +2 -2
  1139. package/build-module/mobile/cycle-select-control/index.native.js.map +1 -1
  1140. package/build-module/mobile/dashicons/index.native.js +8 -7
  1141. package/build-module/mobile/dashicons/index.native.js.map +1 -1
  1142. package/build-module/mobile/focal-point-settings-panel/index.native.js +22 -15
  1143. package/build-module/mobile/focal-point-settings-panel/index.native.js.map +1 -1
  1144. package/build-module/mobile/gradient/index.native.js +37 -29
  1145. package/build-module/mobile/gradient/index.native.js.map +1 -1
  1146. package/build-module/mobile/gridicons/index.native.js +8 -7
  1147. package/build-module/mobile/gridicons/index.native.js.map +1 -1
  1148. package/build-module/mobile/html-text-input/index.native.js +37 -34
  1149. package/build-module/mobile/html-text-input/index.native.js.map +1 -1
  1150. package/build-module/mobile/image/icon-customize.native.js +8 -7
  1151. package/build-module/mobile/image/icon-customize.native.js.map +1 -1
  1152. package/build-module/mobile/image/icon-retry.native.js +12 -10
  1153. package/build-module/mobile/image/icon-retry.native.js.map +1 -1
  1154. package/build-module/mobile/image/image-editing-button.native.js +19 -15
  1155. package/build-module/mobile/image/image-editing-button.native.js.map +1 -1
  1156. package/build-module/mobile/image/index.native.js +85 -72
  1157. package/build-module/mobile/image/index.native.js.map +1 -1
  1158. package/build-module/mobile/keyboard-avoiding-view/index.ios.js +11 -8
  1159. package/build-module/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
  1160. package/build-module/mobile/keyboard-aware-flat-list/index.android.js +15 -14
  1161. package/build-module/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
  1162. package/build-module/mobile/keyboard-aware-flat-list/index.ios.js +16 -15
  1163. package/build-module/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
  1164. package/build-module/mobile/link-picker/index.native.js +56 -46
  1165. package/build-module/mobile/link-picker/index.native.js.map +1 -1
  1166. package/build-module/mobile/link-picker/link-picker-results.native.js +33 -29
  1167. package/build-module/mobile/link-picker/link-picker-results.native.js.map +1 -1
  1168. package/build-module/mobile/link-picker/link-picker-screen.native.js +2 -2
  1169. package/build-module/mobile/link-picker/link-picker-screen.native.js.map +1 -1
  1170. package/build-module/mobile/link-settings/index.native.js +60 -50
  1171. package/build-module/mobile/link-settings/index.native.js.map +1 -1
  1172. package/build-module/mobile/link-settings/link-rel.native.js +8 -7
  1173. package/build-module/mobile/link-settings/link-rel.native.js.map +1 -1
  1174. package/build-module/mobile/link-settings/link-settings-navigation.native.js +24 -19
  1175. package/build-module/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
  1176. package/build-module/mobile/link-settings/link-settings-screen.native.js +2 -2
  1177. package/build-module/mobile/link-settings/link-settings-screen.native.js.map +1 -1
  1178. package/build-module/mobile/media-edit/index.native.js +7 -3
  1179. package/build-module/mobile/media-edit/index.native.js.map +1 -1
  1180. package/build-module/mobile/picker/index.android.js +28 -24
  1181. package/build-module/mobile/picker/index.android.js.map +1 -1
  1182. package/build-module/mobile/picker/index.ios.js +3 -3
  1183. package/build-module/mobile/picker/index.ios.js.map +1 -1
  1184. package/build-module/mobile/segmented-control/index.native.js +50 -42
  1185. package/build-module/mobile/segmented-control/index.native.js.map +1 -1
  1186. package/build-module/mobile/utils/use-unit-converter-to-mobile.native.js +2 -10
  1187. package/build-module/mobile/utils/use-unit-converter-to-mobile.native.js.map +1 -1
  1188. package/build-module/modal/index.js +58 -46
  1189. package/build-module/modal/index.js.map +1 -1
  1190. package/build-module/navigable-container/container.js +6 -6
  1191. package/build-module/navigable-container/container.js.map +1 -1
  1192. package/build-module/navigable-container/menu.js +2 -2
  1193. package/build-module/navigable-container/menu.js.map +1 -1
  1194. package/build-module/navigable-container/tabbable.js +2 -2
  1195. package/build-module/navigable-container/tabbable.js.map +1 -1
  1196. package/build-module/navigation/back-button/index.js +8 -6
  1197. package/build-module/navigation/back-button/index.js.map +1 -1
  1198. package/build-module/navigation/group/index.js +22 -16
  1199. package/build-module/navigation/group/index.js.map +1 -1
  1200. package/build-module/navigation/index.js +13 -11
  1201. package/build-module/navigation/index.js.map +1 -1
  1202. package/build-module/navigation/item/base-content.js +13 -7
  1203. package/build-module/navigation/item/base-content.js.map +1 -1
  1204. package/build-module/navigation/item/base.js +5 -4
  1205. package/build-module/navigation/item/base.js.map +1 -1
  1206. package/build-module/navigation/item/index.js +18 -13
  1207. package/build-module/navigation/item/index.js.map +1 -1
  1208. package/build-module/navigation/menu/index.js +30 -23
  1209. package/build-module/navigation/menu/index.js.map +1 -1
  1210. package/build-module/navigation/menu/menu-title-search.js +14 -12
  1211. package/build-module/navigation/menu/menu-title-search.js.map +1 -1
  1212. package/build-module/navigation/menu/menu-title.js +36 -28
  1213. package/build-module/navigation/menu/menu-title.js.map +1 -1
  1214. package/build-module/navigation/menu/search-no-results-found.js +7 -2
  1215. package/build-module/navigation/menu/search-no-results-found.js.map +1 -1
  1216. package/build-module/navigator/navigator-back-button/component.js +2 -2
  1217. package/build-module/navigator/navigator-back-button/component.js.map +1 -1
  1218. package/build-module/navigator/navigator-button/component.js +2 -2
  1219. package/build-module/navigator/navigator-button/component.js.map +1 -1
  1220. package/build-module/navigator/navigator-provider/component.js +8 -6
  1221. package/build-module/navigator/navigator-provider/component.js.map +1 -1
  1222. package/build-module/navigator/navigator-screen/component.js +5 -4
  1223. package/build-module/navigator/navigator-screen/component.js.map +1 -1
  1224. package/build-module/navigator/navigator-to-parent-button/component.js +2 -2
  1225. package/build-module/navigator/navigator-to-parent-button/component.js.map +1 -1
  1226. package/build-module/notice/index.js +45 -37
  1227. package/build-module/notice/index.js.map +1 -1
  1228. package/build-module/notice/index.native.js +23 -15
  1229. package/build-module/notice/index.native.js.map +1 -1
  1230. package/build-module/notice/list.js +16 -14
  1231. package/build-module/notice/list.js.map +1 -1
  1232. package/build-module/notice/list.native.js +12 -10
  1233. package/build-module/notice/list.native.js.map +1 -1
  1234. package/build-module/number-control/index.js +26 -20
  1235. package/build-module/number-control/index.js.map +1 -1
  1236. package/build-module/palette-edit/index.js +228 -196
  1237. package/build-module/palette-edit/index.js.map +1 -1
  1238. package/build-module/panel/actions.native.js +10 -9
  1239. package/build-module/panel/actions.native.js.map +1 -1
  1240. package/build-module/panel/body.js +34 -29
  1241. package/build-module/panel/body.js.map +1 -1
  1242. package/build-module/panel/body.native.js +10 -7
  1243. package/build-module/panel/body.native.js.map +1 -1
  1244. package/build-module/panel/bottom-separator-cover.native.js +2 -2
  1245. package/build-module/panel/bottom-separator-cover.native.js.map +1 -1
  1246. package/build-module/panel/header.js +8 -4
  1247. package/build-module/panel/header.js.map +1 -1
  1248. package/build-module/panel/index.js +8 -6
  1249. package/build-module/panel/index.js.map +1 -1
  1250. package/build-module/panel/row.js +5 -5
  1251. package/build-module/panel/row.js.map +1 -1
  1252. package/build-module/placeholder/index.js +27 -20
  1253. package/build-module/placeholder/index.js.map +1 -1
  1254. package/build-module/popover/index.js +54 -42
  1255. package/build-module/popover/index.js.map +1 -1
  1256. package/build-module/private-apis.js +0 -2
  1257. package/build-module/private-apis.js.map +1 -1
  1258. package/build-module/progress-bar/index.js +33 -15
  1259. package/build-module/progress-bar/index.js.map +1 -1
  1260. package/build-module/progress-bar/styles.js +4 -4
  1261. package/build-module/progress-bar/styles.js.map +1 -1
  1262. package/build-module/query-controls/author-select.js +2 -2
  1263. package/build-module/query-controls/author-select.js.map +1 -1
  1264. package/build-module/query-controls/category-select.js +2 -2
  1265. package/build-module/query-controls/category-select.js.map +1 -1
  1266. package/build-module/query-controls/index.js +74 -78
  1267. package/build-module/query-controls/index.js.map +1 -1
  1268. package/build-module/query-controls/index.native.js +29 -24
  1269. package/build-module/query-controls/index.native.js.map +1 -1
  1270. package/build-module/radio-control/index.js +26 -22
  1271. package/build-module/radio-control/index.js.map +1 -1
  1272. package/build-module/radio-control/index.native.js +12 -10
  1273. package/build-module/radio-control/index.native.js.map +1 -1
  1274. package/build-module/radio-group/index.js +13 -10
  1275. package/build-module/radio-group/index.js.map +1 -1
  1276. package/build-module/radio-group/radio.js +6 -5
  1277. package/build-module/radio-group/radio.js.map +1 -1
  1278. package/build-module/range-control/index.js +101 -89
  1279. package/build-module/range-control/index.js.map +1 -1
  1280. package/build-module/range-control/index.native.js +3 -3
  1281. package/build-module/range-control/index.native.js.map +1 -1
  1282. package/build-module/range-control/input-range.js +2 -2
  1283. package/build-module/range-control/input-range.js.map +1 -1
  1284. package/build-module/range-control/mark.js +18 -13
  1285. package/build-module/range-control/mark.js.map +1 -1
  1286. package/build-module/range-control/rail.js +26 -20
  1287. package/build-module/range-control/rail.js.map +1 -1
  1288. package/build-module/range-control/tooltip.js +5 -4
  1289. package/build-module/range-control/tooltip.js.map +1 -1
  1290. package/build-module/resizable-box/index.js +8 -6
  1291. package/build-module/resizable-box/index.js.map +1 -1
  1292. package/build-module/resizable-box/index.native.js +2 -2
  1293. package/build-module/resizable-box/index.native.js.map +1 -1
  1294. package/build-module/resizable-box/resize-tooltip/index.js +12 -10
  1295. package/build-module/resizable-box/resize-tooltip/index.js.map +1 -1
  1296. package/build-module/resizable-box/resize-tooltip/label.js +12 -9
  1297. package/build-module/resizable-box/resize-tooltip/label.js.map +1 -1
  1298. package/build-module/responsive-wrapper/index.js +13 -11
  1299. package/build-module/responsive-wrapper/index.js.map +1 -1
  1300. package/build-module/sandbox/index.js +34 -30
  1301. package/build-module/sandbox/index.js.map +1 -1
  1302. package/build-module/sandbox/index.native.js +33 -29
  1303. package/build-module/sandbox/index.native.js.map +1 -1
  1304. package/build-module/scrollable/component.js +2 -2
  1305. package/build-module/scrollable/component.js.map +1 -1
  1306. package/build-module/search-control/index.js +30 -28
  1307. package/build-module/search-control/index.js.map +1 -1
  1308. package/build-module/search-control/index.native.js +46 -37
  1309. package/build-module/search-control/index.native.js.map +1 -1
  1310. package/build-module/select-control/chevron-down.js +9 -5
  1311. package/build-module/select-control/chevron-down.js.map +1 -1
  1312. package/build-module/select-control/index.js +38 -35
  1313. package/build-module/select-control/index.js.map +1 -1
  1314. package/build-module/select-control/index.native.js +2 -2
  1315. package/build-module/select-control/index.native.js.map +1 -1
  1316. package/build-module/shortcut/index.js +5 -4
  1317. package/build-module/shortcut/index.js.map +1 -1
  1318. package/build-module/slot-fill/bubbles-virtually/fill.js +5 -4
  1319. package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
  1320. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js +1 -1
  1321. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
  1322. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js +7 -6
  1323. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  1324. package/build-module/slot-fill/bubbles-virtually/slot.js +2 -2
  1325. package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
  1326. package/build-module/slot-fill/index.js +22 -12
  1327. package/build-module/slot-fill/index.js.map +1 -1
  1328. package/build-module/slot-fill/index.native.js +4 -4
  1329. package/build-module/slot-fill/index.native.js.map +1 -1
  1330. package/build-module/slot-fill/provider.js +7 -6
  1331. package/build-module/slot-fill/provider.js.map +1 -1
  1332. package/build-module/slot-fill/slot.js +17 -12
  1333. package/build-module/slot-fill/slot.js.map +1 -1
  1334. package/build-module/snackbar/index.js +33 -28
  1335. package/build-module/snackbar/index.js.map +1 -1
  1336. package/build-module/snackbar/list.js +30 -24
  1337. package/build-module/snackbar/list.js.map +1 -1
  1338. package/build-module/spacer/component.js +2 -2
  1339. package/build-module/spacer/component.js.map +1 -1
  1340. package/build-module/spinner/index.js +14 -12
  1341. package/build-module/spinner/index.js.map +1 -1
  1342. package/build-module/spinner/index.native.js +2 -2
  1343. package/build-module/spinner/index.native.js.map +1 -1
  1344. package/build-module/style-provider/index.js +5 -5
  1345. package/build-module/style-provider/index.js.map +1 -1
  1346. package/build-module/surface/component.js +2 -2
  1347. package/build-module/surface/component.js.map +1 -1
  1348. package/build-module/tab-panel/index.js +30 -26
  1349. package/build-module/tab-panel/index.js.map +1 -1
  1350. package/build-module/tabs/index.js +5 -4
  1351. package/build-module/tabs/index.js.map +1 -1
  1352. package/build-module/tabs/styles.js +3 -13
  1353. package/build-module/tabs/styles.js.map +1 -1
  1354. package/build-module/tabs/tab.js +6 -5
  1355. package/build-module/tabs/tab.js.map +1 -1
  1356. package/build-module/tabs/tablist.js +104 -8
  1357. package/build-module/tabs/tablist.js.map +1 -1
  1358. package/build-module/tabs/tabpanel.js +6 -5
  1359. package/build-module/tabs/tabpanel.js.map +1 -1
  1360. package/build-module/text/component.js +2 -2
  1361. package/build-module/text/component.js.map +1 -1
  1362. package/build-module/text/styles.js +7 -7
  1363. package/build-module/text/styles.js.map +1 -1
  1364. package/build-module/text-control/index.js +16 -15
  1365. package/build-module/text-control/index.js.map +1 -1
  1366. package/build-module/text-control/index.native.js +2 -2
  1367. package/build-module/text-control/index.native.js.map +1 -1
  1368. package/build-module/text-highlight/index.js +6 -3
  1369. package/build-module/text-highlight/index.js.map +1 -1
  1370. package/build-module/textarea-control/index.js +14 -13
  1371. package/build-module/textarea-control/index.js.map +1 -1
  1372. package/build-module/textarea-control/index.native.js +16 -15
  1373. package/build-module/textarea-control/index.native.js.map +1 -1
  1374. package/build-module/theme/color-algorithms.js +2 -2
  1375. package/build-module/theme/color-algorithms.js.map +1 -1
  1376. package/build-module/theme/index.js +2 -2
  1377. package/build-module/theme/index.js.map +1 -1
  1378. package/build-module/tip/index.js +10 -7
  1379. package/build-module/tip/index.js.map +1 -1
  1380. package/build-module/toggle-control/index.js +22 -18
  1381. package/build-module/toggle-control/index.js.map +1 -1
  1382. package/build-module/toggle-control/index.native.js +2 -2
  1383. package/build-module/toggle-control/index.native.js.map +1 -1
  1384. package/build-module/toggle-group-control/toggle-group-control/as-button-group.js +11 -9
  1385. package/build-module/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -1
  1386. package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js +13 -11
  1387. package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
  1388. package/build-module/toggle-group-control/toggle-group-control/component.js +23 -15
  1389. package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
  1390. package/build-module/toggle-group-control/toggle-group-control-option/component.js +5 -4
  1391. package/build-module/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  1392. package/build-module/toggle-group-control/toggle-group-control-option-base/component.js +52 -38
  1393. package/build-module/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  1394. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js +7 -6
  1395. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  1396. package/build-module/toolbar/toolbar/index.js +11 -10
  1397. package/build-module/toolbar/toolbar/index.js.map +1 -1
  1398. package/build-module/toolbar/toolbar/toolbar-container.js +11 -9
  1399. package/build-module/toolbar/toolbar/toolbar-container.js.map +1 -1
  1400. package/build-module/toolbar/toolbar/toolbar-container.native.js +4 -2
  1401. package/build-module/toolbar/toolbar/toolbar-container.native.js.map +1 -1
  1402. package/build-module/toolbar/toolbar-button/index.js +35 -31
  1403. package/build-module/toolbar/toolbar-button/index.js.map +1 -1
  1404. package/build-module/toolbar/toolbar-button/toolbar-button-container.js +5 -4
  1405. package/build-module/toolbar/toolbar-button/toolbar-button-container.js.map +1 -1
  1406. package/build-module/toolbar/toolbar-button/toolbar-button-container.native.js +4 -2
  1407. package/build-module/toolbar/toolbar-button/toolbar-button-container.native.js.map +1 -1
  1408. package/build-module/toolbar/toolbar-dropdown-menu/index.js +12 -11
  1409. package/build-module/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
  1410. package/build-module/toolbar/toolbar-group/index.js +10 -9
  1411. package/build-module/toolbar/toolbar-group/index.js.map +1 -1
  1412. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js +6 -5
  1413. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
  1414. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.native.js +8 -7
  1415. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.native.js.map +1 -1
  1416. package/build-module/toolbar/toolbar-group/toolbar-group-container.js +5 -4
  1417. package/build-module/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
  1418. package/build-module/toolbar/toolbar-group/toolbar-group-container.native.js +5 -4
  1419. package/build-module/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
  1420. package/build-module/toolbar/toolbar-item/index.js +10 -7
  1421. package/build-module/toolbar/toolbar-item/index.js.map +1 -1
  1422. package/build-module/toolbar/toolbar-item/index.native.js +1 -1
  1423. package/build-module/toolbar/toolbar-item/index.native.js.map +1 -1
  1424. package/build-module/tools-panel/tools-panel/component.js +15 -12
  1425. package/build-module/tools-panel/tools-panel/component.js.map +1 -1
  1426. package/build-module/tools-panel/tools-panel-header/component.js +110 -94
  1427. package/build-module/tools-panel/tools-panel-header/component.js.map +1 -1
  1428. package/build-module/tools-panel/tools-panel-item/component.js +6 -5
  1429. package/build-module/tools-panel/tools-panel-item/component.js.map +1 -1
  1430. package/build-module/tooltip/index.js +26 -26
  1431. package/build-module/tooltip/index.js.map +1 -1
  1432. package/build-module/tooltip/index.native.js +35 -24
  1433. package/build-module/tooltip/index.native.js.map +1 -1
  1434. package/build-module/tree-grid/cell.js +11 -6
  1435. package/build-module/tree-grid/cell.js.map +1 -1
  1436. package/build-module/tree-grid/index.js +16 -10
  1437. package/build-module/tree-grid/index.js.map +1 -1
  1438. package/build-module/tree-grid/item.js +5 -4
  1439. package/build-module/tree-grid/item.js.map +1 -1
  1440. package/build-module/tree-grid/roving-tab-index-item.js +5 -4
  1441. package/build-module/tree-grid/roving-tab-index-item.js.map +1 -1
  1442. package/build-module/tree-grid/roving-tab-index.js +5 -4
  1443. package/build-module/tree-grid/roving-tab-index.js.map +1 -1
  1444. package/build-module/tree-grid/row.js +5 -5
  1445. package/build-module/tree-grid/row.js.map +1 -1
  1446. package/build-module/tree-select/index.js +2 -2
  1447. package/build-module/tree-select/index.js.map +1 -1
  1448. package/build-module/truncate/component.js +2 -2
  1449. package/build-module/truncate/component.js.map +1 -1
  1450. package/build-module/unit-control/index.js +3 -3
  1451. package/build-module/unit-control/index.js.map +1 -1
  1452. package/build-module/unit-control/index.native.js +58 -48
  1453. package/build-module/unit-control/index.native.js.map +1 -1
  1454. package/build-module/unit-control/unit-select-control.js +12 -10
  1455. package/build-module/unit-control/unit-select-control.js.map +1 -1
  1456. package/build-module/utils/style-mixins.js +0 -1
  1457. package/build-module/utils/style-mixins.js.map +1 -1
  1458. package/build-module/v-stack/component.js +2 -2
  1459. package/build-module/v-stack/component.js.map +1 -1
  1460. package/build-module/view/component.js +2 -3
  1461. package/build-module/view/component.js.map +1 -1
  1462. package/build-module/visually-hidden/component.js +2 -2
  1463. package/build-module/visually-hidden/component.js.map +1 -1
  1464. package/build-module/z-stack/component.js +8 -7
  1465. package/build-module/z-stack/component.js.map +1 -1
  1466. package/build-style/style-rtl.css +11 -0
  1467. package/build-style/style.css +11 -0
  1468. package/build-types/animate/stories/index.story.d.ts.map +1 -1
  1469. package/build-types/autocomplete/autocompleter-ui.d.ts.map +1 -1
  1470. package/build-types/base-control/hooks.d.ts +1 -1
  1471. package/build-types/border-box-control/border-box-control/component.d.ts +1 -1
  1472. package/build-types/border-box-control/border-box-control/hook.d.ts +15 -15
  1473. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +17 -17
  1474. package/build-types/border-box-control/border-box-control-split-controls/component.d.ts +1 -1
  1475. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +15 -15
  1476. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +14 -14
  1477. package/build-types/border-box-control/stories/index.story.d.ts +2 -2
  1478. package/build-types/border-control/border-control/hook.d.ts +14 -14
  1479. package/build-types/border-control/border-control-dropdown/hook.d.ts +14 -14
  1480. package/build-types/border-control/stories/index.story.d.ts +6 -6
  1481. package/build-types/box-control/stories/index.story.d.ts +180 -180
  1482. package/build-types/box-control/styles/box-control-styles.d.ts +4 -4
  1483. package/build-types/button/deprecated.d.ts +9 -9
  1484. package/build-types/button/index.d.ts.map +1 -1
  1485. package/build-types/card/card/hook.d.ts +14 -14
  1486. package/build-types/card/card-body/hook.d.ts +14 -14
  1487. package/build-types/card/card-divider/component.d.ts +1 -1
  1488. package/build-types/card/card-divider/hook.d.ts +15 -15
  1489. package/build-types/card/card-footer/hook.d.ts +14 -14
  1490. package/build-types/card/card-header/hook.d.ts +14 -14
  1491. package/build-types/card/card-media/hook.d.ts +14 -14
  1492. package/build-types/card/stories/index.story.d.ts +2 -2
  1493. package/build-types/color-palette/stories/index.story.d.ts +3 -0
  1494. package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
  1495. package/build-types/color-palette/styles.d.ts +1 -1
  1496. package/build-types/color-picker/component.d.ts +1 -1
  1497. package/build-types/color-picker/stories/index.story.d.ts +1 -1
  1498. package/build-types/color-picker/styles.d.ts +5 -5
  1499. package/build-types/combobox-control/index.d.ts.map +1 -1
  1500. package/build-types/combobox-control/stories/index.story.d.ts +27 -3
  1501. package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
  1502. package/build-types/combobox-control/types.d.ts +7 -0
  1503. package/build-types/combobox-control/types.d.ts.map +1 -1
  1504. package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts +2 -2
  1505. package/build-types/custom-select-control/index.d.ts.map +1 -1
  1506. package/build-types/custom-select-control-v2/custom-select.d.ts +2 -2
  1507. package/build-types/custom-select-control-v2/custom-select.d.ts.map +1 -1
  1508. package/build-types/custom-select-control-v2/legacy-component/index.d.ts.map +1 -1
  1509. package/build-types/custom-select-control-v2/stories/default.story.d.ts +18 -6
  1510. package/build-types/custom-select-control-v2/stories/default.story.d.ts.map +1 -1
  1511. package/build-types/custom-select-control-v2/styles.d.ts +2 -2
  1512. package/build-types/custom-select-control-v2/styles.d.ts.map +1 -1
  1513. package/build-types/custom-select-control-v2/types.d.ts +11 -15
  1514. package/build-types/custom-select-control-v2/types.d.ts.map +1 -1
  1515. package/build-types/date-time/date/styles.d.ts +3 -3
  1516. package/build-types/date-time/date-time/styles.d.ts +2 -2
  1517. package/build-types/date-time/time/styles.d.ts +8 -8
  1518. package/build-types/dimension-control/stories/index.story.d.ts +10 -2
  1519. package/build-types/dimension-control/stories/index.story.d.ts.map +1 -1
  1520. package/build-types/divider/component.d.ts +1 -1
  1521. package/build-types/divider/styles.d.ts +1 -1
  1522. package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
  1523. package/build-types/dropdown-menu-v2/stories/index.story.d.ts.map +1 -1
  1524. package/build-types/elevation/hook.d.ts +14 -14
  1525. package/build-types/flex/flex/hook.d.ts +16 -16
  1526. package/build-types/flex/flex-block/hook.d.ts +14 -14
  1527. package/build-types/flex/flex-item/hook.d.ts +14 -14
  1528. package/build-types/focal-point-picker/focal-point.d.ts +3 -0
  1529. package/build-types/focal-point-picker/focal-point.d.ts.map +1 -1
  1530. package/build-types/focal-point-picker/stories/index.story.d.ts +4 -4
  1531. package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts +1 -1
  1532. package/build-types/focal-point-picker/styles/focal-point-style.d.ts.map +1 -1
  1533. package/build-types/font-size-picker/styles.d.ts +2 -2
  1534. package/build-types/grid/hook.d.ts +14 -14
  1535. package/build-types/h-stack/component.d.ts +1 -1
  1536. package/build-types/h-stack/hook.d.ts +16 -16
  1537. package/build-types/heading/hook.d.ts +13 -13
  1538. package/build-types/index.d.ts +1 -0
  1539. package/build-types/index.d.ts.map +1 -1
  1540. package/build-types/input-control/input-base.d.ts +4 -5
  1541. package/build-types/input-control/input-base.d.ts.map +1 -1
  1542. package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
  1543. package/build-types/item-group/item/hook.d.ts +13 -13
  1544. package/build-types/item-group/item-group/hook.d.ts +14 -14
  1545. package/build-types/menu-item/index.d.ts +1 -1
  1546. package/build-types/menu-item/stories/index.story.d.ts +4 -4
  1547. package/build-types/navigation/styles/navigation-styles.d.ts +1 -1
  1548. package/build-types/navigator/navigator-back-button/component.d.ts +2 -2
  1549. package/build-types/navigator/navigator-back-button/hook.d.ts +19 -19
  1550. package/build-types/navigator/navigator-button/component.d.ts +2 -2
  1551. package/build-types/navigator/navigator-button/hook.d.ts +19 -19
  1552. package/build-types/navigator/navigator-to-parent-button/component.d.ts +2 -2
  1553. package/build-types/number-control/index.d.ts +2 -2
  1554. package/build-types/number-control/stories/index.story.d.ts +2 -2
  1555. package/build-types/palette-edit/styles.d.ts +629 -629
  1556. package/build-types/popover/index.d.ts +1 -1
  1557. package/build-types/popover/overlay-middlewares.d.ts +2 -2
  1558. package/build-types/popover/stories/e2e/index.story.d.ts +1 -1
  1559. package/build-types/private-apis.d.ts.map +1 -1
  1560. package/build-types/progress-bar/index.d.ts +15 -0
  1561. package/build-types/progress-bar/index.d.ts.map +1 -1
  1562. package/build-types/progress-bar/stories/index.story.d.ts +18 -0
  1563. package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
  1564. package/build-types/progress-bar/styles.d.ts.map +1 -1
  1565. package/build-types/range-control/index.d.ts +1 -1
  1566. package/build-types/range-control/styles/range-control-styles.d.ts +2 -2
  1567. package/build-types/scrollable/hook.d.ts +14 -14
  1568. package/build-types/slot-fill/bubbles-virtually/slot.d.ts +1 -1
  1569. package/build-types/snackbar/index.d.ts +1 -1
  1570. package/build-types/spacer/hook.d.ts +14 -14
  1571. package/build-types/surface/hook.d.ts +14 -14
  1572. package/build-types/tabs/stories/index.story.d.ts +1 -0
  1573. package/build-types/tabs/stories/index.story.d.ts.map +1 -1
  1574. package/build-types/tabs/styles.d.ts.map +1 -1
  1575. package/build-types/tabs/tablist.d.ts.map +1 -1
  1576. package/build-types/text/hook.d.ts +14 -14
  1577. package/build-types/text/styles.d.ts.map +1 -1
  1578. package/build-types/text-control/index.d.ts +3 -3
  1579. package/build-types/textarea-control/index.d.ts +1 -1
  1580. package/build-types/theme/stories/index.story.d.ts.map +1 -1
  1581. package/build-types/toggle-control/index.d.ts +1 -1
  1582. package/build-types/toggle-control/stories/index.story.d.ts +2 -2
  1583. package/build-types/toggle-group-control/toggle-group-control/as-button-group.d.ts +1 -1
  1584. package/build-types/toggle-group-control/toggle-group-control/as-radio-group.d.ts +1 -1
  1585. package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts +1 -1
  1586. package/build-types/toggle-group-control/toggle-group-control-option-icon/component.d.ts +1 -1
  1587. package/build-types/toolbar/toolbar-button/index.d.ts +9 -9
  1588. package/build-types/tools-panel/tools-panel/hook.d.ts +14 -14
  1589. package/build-types/tools-panel/tools-panel-header/hook.d.ts +14 -14
  1590. package/build-types/tools-panel/tools-panel-item/hook.d.ts +14 -14
  1591. package/build-types/tooltip/index.d.ts.map +1 -1
  1592. package/build-types/truncate/hook.d.ts +14 -14
  1593. package/build-types/unit-control/index.d.ts +1 -1
  1594. package/build-types/unit-control/styles/unit-control-styles.d.ts +2 -2
  1595. package/build-types/utils/style-mixins.d.ts +0 -1
  1596. package/build-types/v-stack/component.d.ts +1 -1
  1597. package/build-types/v-stack/hook.d.ts +16 -16
  1598. package/build-types/v-stack/stories/index.story.d.ts +2 -2
  1599. package/build-types/view/component.d.ts +157 -157
  1600. package/package.json +21 -20
  1601. package/src/animate/index.tsx +1 -1
  1602. package/src/animate/stories/index.story.tsx +6 -1
  1603. package/src/autocomplete/autocompleter-ui.native.js +2 -4
  1604. package/src/autocomplete/autocompleter-ui.tsx +68 -38
  1605. package/src/autocomplete/test/index.tsx +3 -3
  1606. package/src/button/index.native.js +1 -1
  1607. package/src/button/index.tsx +6 -2
  1608. package/src/circular-option-picker/circular-option-picker.tsx +2 -2
  1609. package/src/circular-option-picker/stories/index.story.tsx +1 -1
  1610. package/src/circular-option-picker/test/index.tsx +3 -9
  1611. package/src/color-indicator/index.native.js +1 -1
  1612. package/src/color-palette/index.native.js +2 -2
  1613. package/src/color-palette/stories/index.story.tsx +5 -8
  1614. package/src/color-picker/index.native.js +1 -1
  1615. package/src/combobox-control/README.md +9 -0
  1616. package/src/combobox-control/index.tsx +10 -1
  1617. package/src/combobox-control/stories/index.story.tsx +14 -0
  1618. package/src/combobox-control/types.ts +7 -0
  1619. package/src/composite/current/stories/index.story.tsx +1 -1
  1620. package/src/css.d.ts +9 -0
  1621. package/src/custom-gradient-picker/index.native.js +3 -1
  1622. package/src/custom-select-control/index.js +7 -4
  1623. package/src/custom-select-control-v2/custom-select.tsx +37 -36
  1624. package/src/custom-select-control-v2/legacy-component/index.tsx +22 -31
  1625. package/src/custom-select-control-v2/stories/default.story.tsx +0 -1
  1626. package/src/custom-select-control-v2/stories/legacy.story.tsx +1 -1
  1627. package/src/custom-select-control-v2/styles.ts +10 -8
  1628. package/src/custom-select-control-v2/types.ts +16 -15
  1629. package/src/dashicon/index.native.js +1 -1
  1630. package/src/dimension-control/stories/index.story.tsx +3 -2
  1631. package/src/dimension-control/test/__snapshots__/index.test.js.snap +4 -16
  1632. package/src/dimension-control/test/index.test.js +7 -10
  1633. package/src/draggable/test/index.native.js +2 -2
  1634. package/src/dropdown/stories/index.story.tsx +6 -2
  1635. package/src/dropdown-menu/index.native.js +2 -1
  1636. package/src/dropdown-menu-v2/stories/index.story.tsx +1 -2
  1637. package/src/dropdown-menu-v2/test/index.tsx +8 -3
  1638. package/src/focal-point-picker/focal-point.tsx +7 -4
  1639. package/src/focal-point-picker/index.native.js +2 -1
  1640. package/src/focal-point-picker/styles/focal-point-style.ts +3 -7
  1641. package/src/font-size-picker/index.native.js +6 -6
  1642. package/src/font-size-picker/index.tsx +2 -2
  1643. package/src/form-token-field/index.tsx +1 -1
  1644. package/src/heading/test/__snapshots__/index.tsx.snap +1 -0
  1645. package/src/index.native.js +0 -14
  1646. package/src/index.ts +1 -0
  1647. package/src/input-control/input-base.tsx +5 -1
  1648. package/src/input-control/styles/input-control-styles.tsx +0 -2
  1649. package/src/keyboard-shortcuts/stories/index.story.tsx +3 -1
  1650. package/src/menu-group/stories/index.story.tsx +1 -1
  1651. package/src/mobile/autocompletion-items.native.js +2 -2
  1652. package/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +2 -1
  1653. package/src/mobile/bottom-sheet/cell.native.js +3 -3
  1654. package/src/mobile/bottom-sheet/color-cell.native.js +3 -2
  1655. package/src/mobile/bottom-sheet/footer-message-cell.native.js +2 -2
  1656. package/src/mobile/bottom-sheet/link-suggestion-item-cell.native.js +3 -3
  1657. package/src/mobile/bottom-sheet/nav-bar/action-button.native.js +1 -1
  1658. package/src/mobile/bottom-sheet/radio-cell.native.js +2 -2
  1659. package/src/mobile/bottom-sheet/stepper-cell/stepper.android.js +1 -1
  1660. package/src/mobile/bottom-sheet/stepper-cell/stepper.ios.js +1 -1
  1661. package/src/mobile/bottom-sheet/sub-sheet/index.native.js +6 -1
  1662. package/src/mobile/bottom-sheet/switch-cell.native.js +2 -2
  1663. package/src/mobile/bottom-sheet-select-control/index.native.js +4 -3
  1664. package/src/mobile/bottom-sheet-text-control/index.native.js +5 -7
  1665. package/src/mobile/color-settings/index.native.js +2 -1
  1666. package/src/mobile/color-settings/palette.screen.native.js +4 -7
  1667. package/src/mobile/color-settings/picker-screen.native.js +1 -1
  1668. package/src/mobile/focal-point-settings-panel/index.native.js +2 -1
  1669. package/src/mobile/gradient/index.native.js +1 -1
  1670. package/src/mobile/image/icon-customize.native.js +1 -1
  1671. package/src/mobile/image/icon-retry.native.js +2 -2
  1672. package/src/mobile/image/image-editing-button.native.js +2 -2
  1673. package/src/mobile/image/index.native.js +2 -2
  1674. package/src/mobile/link-picker/index.native.js +2 -1
  1675. package/src/mobile/link-picker/link-picker-results.native.js +2 -1
  1676. package/src/mobile/link-settings/link-rel.native.js +1 -1
  1677. package/src/mobile/media-edit/index.native.js +5 -1
  1678. package/src/mobile/picker/index.android.js +4 -3
  1679. package/src/mobile/picker/index.ios.js +1 -1
  1680. package/src/mobile/segmented-control/index.native.js +1 -1
  1681. package/src/mobile/utils/use-unit-converter-to-mobile.native.js +2 -14
  1682. package/src/notice/stories/index.story.tsx +1 -1
  1683. package/src/palette-edit/test/index.tsx +15 -11
  1684. package/src/panel/actions.native.js +1 -1
  1685. package/src/popover/index.tsx +1 -1
  1686. package/src/private-apis.ts +0 -2
  1687. package/src/progress-bar/README.md +39 -5
  1688. package/src/progress-bar/index.tsx +21 -8
  1689. package/src/progress-bar/stories/index.story.tsx +36 -3
  1690. package/src/progress-bar/styles.ts +4 -2
  1691. package/src/query-controls/index.native.js +2 -1
  1692. package/src/search-control/index.native.js +3 -2
  1693. package/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx +2 -2
  1694. package/src/slot-fill/provider.tsx +2 -2
  1695. package/src/snackbar/list.tsx +3 -3
  1696. package/src/tab-panel/index.tsx +1 -1
  1697. package/src/tab-panel/style.scss +16 -0
  1698. package/src/tabs/stories/index.story.tsx +39 -31
  1699. package/src/tabs/styles.ts +43 -34
  1700. package/src/tabs/tablist.tsx +132 -3
  1701. package/src/text/styles.ts +1 -0
  1702. package/src/text/test/__snapshots__/index.tsx.snap +2 -0
  1703. package/src/theme/stories/index.story.tsx +0 -1
  1704. package/src/tools-panel/stories/index.story.tsx +1 -1
  1705. package/src/tools-panel/tools-panel-header/component.tsx +1 -1
  1706. package/src/tooltip/index.tsx +1 -4
  1707. package/src/tooltip/test/index.native.js +1 -5
  1708. package/src/unit-control/test/index.tsx +12 -12
  1709. package/src/utils/style-mixins.js +0 -1
  1710. package/tsconfig.json +1 -4
  1711. package/tsconfig.tsbuildinfo +1 -1
  1712. package/build/mobile/audio-player/audio-url-parser.native.js +0 -24
  1713. package/build/mobile/audio-player/audio-url-parser.native.js.map +0 -1
  1714. package/build/mobile/audio-player/index.native.js +0 -163
  1715. package/build/mobile/audio-player/index.native.js.map +0 -1
  1716. package/build/mobile/global-styles-context/index.native.js +0 -68
  1717. package/build/mobile/global-styles-context/index.native.js.map +0 -1
  1718. package/build/mobile/global-styles-context/utils.native.js +0 -405
  1719. package/build/mobile/global-styles-context/utils.native.js.map +0 -1
  1720. package/build/utils/reduce-motion.js +0 -38
  1721. package/build/utils/reduce-motion.js.map +0 -1
  1722. package/build-module/mobile/audio-player/audio-url-parser.native.js +0 -16
  1723. package/build-module/mobile/audio-player/audio-url-parser.native.js.map +0 -1
  1724. package/build-module/mobile/audio-player/index.native.js +0 -155
  1725. package/build-module/mobile/audio-player/index.native.js.map +0 -1
  1726. package/build-module/mobile/global-styles-context/index.native.js +0 -58
  1727. package/build-module/mobile/global-styles-context/index.native.js.map +0 -1
  1728. package/build-module/mobile/global-styles-context/utils.native.js +0 -387
  1729. package/build-module/mobile/global-styles-context/utils.native.js.map +0 -1
  1730. package/build-module/utils/reduce-motion.js +0 -32
  1731. package/build-module/utils/reduce-motion.js.map +0 -1
  1732. package/build-types/utils/reduce-motion.d.ts +0 -12
  1733. package/build-types/utils/reduce-motion.d.ts.map +0 -1
  1734. package/src/mobile/audio-player/audio-url-parser.native.js +0 -20
  1735. package/src/mobile/audio-player/index.native.js +0 -220
  1736. package/src/mobile/audio-player/styles.scss +0 -114
  1737. package/src/mobile/audio-player/test/audio-url-parser.native.js +0 -53
  1738. package/src/mobile/global-styles-context/index.native.js +0 -103
  1739. package/src/mobile/global-styles-context/test/fixtures/theme.native.js +0 -274
  1740. package/src/mobile/global-styles-context/test/utils.native.js +0 -168
  1741. package/src/mobile/global-styles-context/utils.native.js +0 -510
  1742. package/src/utils/reduce-motion.js +0 -35
@@ -1 +1 @@
1
- {"version":3,"names":["contextConnect","View","useNavigatorBackButton","UnconnectedNavigatorBackButton","props","forwardedRef","navigatorBackButtonProps","createElement","ref","NavigatorBackButton"],"sources":["@wordpress/components/src/navigator/navigator-back-button/component.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../../context';\nimport { contextConnect } from '../../context';\nimport { View } from '../../view';\nimport { useNavigatorBackButton } from './hook';\nimport type { NavigatorBackButtonProps } from '../types';\n\nfunction UnconnectedNavigatorBackButton(\n\tprops: WordPressComponentProps< NavigatorBackButtonProps, 'button' >,\n\tforwardedRef: ForwardedRef< any >\n) {\n\tconst navigatorBackButtonProps = useNavigatorBackButton( props );\n\n\treturn <View ref={ forwardedRef } { ...navigatorBackButtonProps } />;\n}\n\n/**\n * The `NavigatorBackButton` component can be used to navigate to a screen and\n * should be used in combination with the `NavigatorProvider`, the\n * `NavigatorScreen` and the `NavigatorButton` components (or the `useNavigator`\n * hook).\n *\n * @example\n * ```jsx\n * import {\n * __experimentalNavigatorProvider as NavigatorProvider,\n * __experimentalNavigatorScreen as NavigatorScreen,\n * __experimentalNavigatorButton as NavigatorButton,\n * __experimentalNavigatorBackButton as NavigatorBackButton,\n * } from '@wordpress/components';\n *\n * const MyNavigation = () => (\n * <NavigatorProvider initialPath=\"/\">\n * <NavigatorScreen path=\"/\">\n * <p>This is the home screen.</p>\n * <NavigatorButton path=\"/child\">\n * Navigate to child screen.\n * </NavigatorButton>\n * </NavigatorScreen>\n *\n * <NavigatorScreen path=\"/child\">\n * <p>This is the child screen.</p>\n * <NavigatorBackButton>\n * Go back\n * </NavigatorBackButton>\n * </NavigatorScreen>\n * </NavigatorProvider>\n * );\n * ```\n */\nexport const NavigatorBackButton = contextConnect(\n\tUnconnectedNavigatorBackButton,\n\t'NavigatorBackButton'\n);\n\nexport default NavigatorBackButton;\n"],"mappings":";AAAA;AACA;AACA;;AAGA;AACA;AACA;;AAEA,SAASA,cAAc,QAAQ,eAAe;AAC9C,SAASC,IAAI,QAAQ,YAAY;AACjC,SAASC,sBAAsB,QAAQ,QAAQ;AAG/C,SAASC,8BAA8BA,CACtCC,KAAoE,EACpEC,YAAiC,EAChC;EACD,MAAMC,wBAAwB,GAAGJ,sBAAsB,CAAEE,KAAM,CAAC;EAEhE,OAAOG,aAAA,CAACN,IAAI;IAACO,GAAG,EAAGH,YAAc;IAAA,GAAMC;EAAwB,CAAI,CAAC;AACrE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMG,mBAAmB,GAAGT,cAAc,CAChDG,8BAA8B,EAC9B,qBACD,CAAC;AAED,eAAeM,mBAAmB","ignoreList":[]}
1
+ {"version":3,"names":["contextConnect","View","useNavigatorBackButton","jsx","_jsx","UnconnectedNavigatorBackButton","props","forwardedRef","navigatorBackButtonProps","ref","NavigatorBackButton"],"sources":["@wordpress/components/src/navigator/navigator-back-button/component.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../../context';\nimport { contextConnect } from '../../context';\nimport { View } from '../../view';\nimport { useNavigatorBackButton } from './hook';\nimport type { NavigatorBackButtonProps } from '../types';\n\nfunction UnconnectedNavigatorBackButton(\n\tprops: WordPressComponentProps< NavigatorBackButtonProps, 'button' >,\n\tforwardedRef: ForwardedRef< any >\n) {\n\tconst navigatorBackButtonProps = useNavigatorBackButton( props );\n\n\treturn <View ref={ forwardedRef } { ...navigatorBackButtonProps } />;\n}\n\n/**\n * The `NavigatorBackButton` component can be used to navigate to a screen and\n * should be used in combination with the `NavigatorProvider`, the\n * `NavigatorScreen` and the `NavigatorButton` components (or the `useNavigator`\n * hook).\n *\n * @example\n * ```jsx\n * import {\n * __experimentalNavigatorProvider as NavigatorProvider,\n * __experimentalNavigatorScreen as NavigatorScreen,\n * __experimentalNavigatorButton as NavigatorButton,\n * __experimentalNavigatorBackButton as NavigatorBackButton,\n * } from '@wordpress/components';\n *\n * const MyNavigation = () => (\n * <NavigatorProvider initialPath=\"/\">\n * <NavigatorScreen path=\"/\">\n * <p>This is the home screen.</p>\n * <NavigatorButton path=\"/child\">\n * Navigate to child screen.\n * </NavigatorButton>\n * </NavigatorScreen>\n *\n * <NavigatorScreen path=\"/child\">\n * <p>This is the child screen.</p>\n * <NavigatorBackButton>\n * Go back\n * </NavigatorBackButton>\n * </NavigatorScreen>\n * </NavigatorProvider>\n * );\n * ```\n */\nexport const NavigatorBackButton = contextConnect(\n\tUnconnectedNavigatorBackButton,\n\t'NavigatorBackButton'\n);\n\nexport default NavigatorBackButton;\n"],"mappings":"AAAA;AACA;AACA;;AAGA;AACA;AACA;;AAEA,SAASA,cAAc,QAAQ,eAAe;AAC9C,SAASC,IAAI,QAAQ,YAAY;AACjC,SAASC,sBAAsB,QAAQ,QAAQ;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGhD,SAASC,8BAA8BA,CACtCC,KAAoE,EACpEC,YAAiC,EAChC;EACD,MAAMC,wBAAwB,GAAGN,sBAAsB,CAAEI,KAAM,CAAC;EAEhE,oBAAOF,IAAA,CAACH,IAAI;IAACQ,GAAG,EAAGF,YAAc;IAAA,GAAMC;EAAwB,CAAI,CAAC;AACrE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAME,mBAAmB,GAAGV,cAAc,CAChDK,8BAA8B,EAC9B,qBACD,CAAC;AAED,eAAeK,mBAAmB","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
@@ -10,9 +9,10 @@ import { createElement } from "react";
10
9
  import { contextConnect } from '../../context';
11
10
  import { View } from '../../view';
12
11
  import { useNavigatorButton } from './hook';
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  function UnconnectedNavigatorButton(props, forwardedRef) {
14
14
  const navigatorButtonProps = useNavigatorButton(props);
15
- return createElement(View, {
15
+ return /*#__PURE__*/_jsx(View, {
16
16
  ref: forwardedRef,
17
17
  ...navigatorButtonProps
18
18
  });
@@ -1 +1 @@
1
- {"version":3,"names":["contextConnect","View","useNavigatorButton","UnconnectedNavigatorButton","props","forwardedRef","navigatorButtonProps","createElement","ref","NavigatorButton"],"sources":["@wordpress/components/src/navigator/navigator-button/component.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../../context';\nimport { contextConnect } from '../../context';\nimport { View } from '../../view';\nimport { useNavigatorButton } from './hook';\nimport type { NavigatorButtonProps } from '../types';\n\nfunction UnconnectedNavigatorButton(\n\tprops: WordPressComponentProps< NavigatorButtonProps, 'button' >,\n\tforwardedRef: ForwardedRef< any >\n) {\n\tconst navigatorButtonProps = useNavigatorButton( props );\n\n\treturn <View ref={ forwardedRef } { ...navigatorButtonProps } />;\n}\n\n/**\n * The `NavigatorButton` component can be used to navigate to a screen and should\n * be used in combination with the `NavigatorProvider`, the `NavigatorScreen`\n * and the `NavigatorBackButton` components (or the `useNavigator` hook).\n *\n * @example\n * ```jsx\n * import {\n * __experimentalNavigatorProvider as NavigatorProvider,\n * __experimentalNavigatorScreen as NavigatorScreen,\n * __experimentalNavigatorButton as NavigatorButton,\n * __experimentalNavigatorBackButton as NavigatorBackButton,\n * } from '@wordpress/components';\n *\n * const MyNavigation = () => (\n * <NavigatorProvider initialPath=\"/\">\n * <NavigatorScreen path=\"/\">\n * <p>This is the home screen.</p>\n * <NavigatorButton path=\"/child\">\n * Navigate to child screen.\n * </NavigatorButton>\n * </NavigatorScreen>\n *\n * <NavigatorScreen path=\"/child\">\n * <p>This is the child screen.</p>\n * <NavigatorBackButton>\n * Go back\n * </NavigatorBackButton>\n * </NavigatorScreen>\n * </NavigatorProvider>\n * );\n * ```\n */\nexport const NavigatorButton = contextConnect(\n\tUnconnectedNavigatorButton,\n\t'NavigatorButton'\n);\n\nexport default NavigatorButton;\n"],"mappings":";AAAA;AACA;AACA;;AAGA;AACA;AACA;;AAEA,SAASA,cAAc,QAAQ,eAAe;AAC9C,SAASC,IAAI,QAAQ,YAAY;AACjC,SAASC,kBAAkB,QAAQ,QAAQ;AAG3C,SAASC,0BAA0BA,CAClCC,KAAgE,EAChEC,YAAiC,EAChC;EACD,MAAMC,oBAAoB,GAAGJ,kBAAkB,CAAEE,KAAM,CAAC;EAExD,OAAOG,aAAA,CAACN,IAAI;IAACO,GAAG,EAAGH,YAAc;IAAA,GAAMC;EAAoB,CAAI,CAAC;AACjE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMG,eAAe,GAAGT,cAAc,CAC5CG,0BAA0B,EAC1B,iBACD,CAAC;AAED,eAAeM,eAAe","ignoreList":[]}
1
+ {"version":3,"names":["contextConnect","View","useNavigatorButton","jsx","_jsx","UnconnectedNavigatorButton","props","forwardedRef","navigatorButtonProps","ref","NavigatorButton"],"sources":["@wordpress/components/src/navigator/navigator-button/component.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../../context';\nimport { contextConnect } from '../../context';\nimport { View } from '../../view';\nimport { useNavigatorButton } from './hook';\nimport type { NavigatorButtonProps } from '../types';\n\nfunction UnconnectedNavigatorButton(\n\tprops: WordPressComponentProps< NavigatorButtonProps, 'button' >,\n\tforwardedRef: ForwardedRef< any >\n) {\n\tconst navigatorButtonProps = useNavigatorButton( props );\n\n\treturn <View ref={ forwardedRef } { ...navigatorButtonProps } />;\n}\n\n/**\n * The `NavigatorButton` component can be used to navigate to a screen and should\n * be used in combination with the `NavigatorProvider`, the `NavigatorScreen`\n * and the `NavigatorBackButton` components (or the `useNavigator` hook).\n *\n * @example\n * ```jsx\n * import {\n * __experimentalNavigatorProvider as NavigatorProvider,\n * __experimentalNavigatorScreen as NavigatorScreen,\n * __experimentalNavigatorButton as NavigatorButton,\n * __experimentalNavigatorBackButton as NavigatorBackButton,\n * } from '@wordpress/components';\n *\n * const MyNavigation = () => (\n * <NavigatorProvider initialPath=\"/\">\n * <NavigatorScreen path=\"/\">\n * <p>This is the home screen.</p>\n * <NavigatorButton path=\"/child\">\n * Navigate to child screen.\n * </NavigatorButton>\n * </NavigatorScreen>\n *\n * <NavigatorScreen path=\"/child\">\n * <p>This is the child screen.</p>\n * <NavigatorBackButton>\n * Go back\n * </NavigatorBackButton>\n * </NavigatorScreen>\n * </NavigatorProvider>\n * );\n * ```\n */\nexport const NavigatorButton = contextConnect(\n\tUnconnectedNavigatorButton,\n\t'NavigatorButton'\n);\n\nexport default NavigatorButton;\n"],"mappings":"AAAA;AACA;AACA;;AAGA;AACA;AACA;;AAEA,SAASA,cAAc,QAAQ,eAAe;AAC9C,SAASC,IAAI,QAAQ,YAAY;AACjC,SAASC,kBAAkB,QAAQ,QAAQ;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAG5C,SAASC,0BAA0BA,CAClCC,KAAgE,EAChEC,YAAiC,EAChC;EACD,MAAMC,oBAAoB,GAAGN,kBAAkB,CAAEI,KAAM,CAAC;EAExD,oBAAOF,IAAA,CAACH,IAAI;IAACQ,GAAG,EAAGF,YAAc;IAAA,GAAMC;EAAoB,CAAI,CAAC;AACjE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAME,eAAe,GAAGV,cAAc,CAC5CK,0BAA0B,EAC1B,iBACD,CAAC;AAED,eAAeK,eAAe","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
@@ -19,6 +18,7 @@ import { patternMatch, findParent } from '../utils/router';
19
18
  import { View } from '../../view';
20
19
  import { NavigatorContext } from '../context';
21
20
  import * as styles from '../styles';
21
+ import { jsx as _jsx } from "react/jsx-runtime";
22
22
  const MAX_HISTORY_LENGTH = 50;
23
23
  function addScreen({
24
24
  screens
@@ -202,13 +202,15 @@ function UnconnectedNavigatorProvider(props, forwardedRef) {
202
202
  }, [locationHistory, matchedPath, methods]);
203
203
  const cx = useCx();
204
204
  const classes = useMemo(() => cx(styles.navigatorProviderWrapper, className), [className, cx]);
205
- return createElement(View, {
205
+ return /*#__PURE__*/_jsx(View, {
206
206
  ref: forwardedRef,
207
207
  className: classes,
208
- ...otherProps
209
- }, createElement(NavigatorContext.Provider, {
210
- value: navigatorContextValue
211
- }, children));
208
+ ...otherProps,
209
+ children: /*#__PURE__*/_jsx(NavigatorContext.Provider, {
210
+ value: navigatorContextValue,
211
+ children: children
212
+ })
213
+ });
212
214
  }
213
215
 
214
216
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["useMemo","useReducer","isShallowEqual","contextConnect","useContextSystem","useCx","patternMatch","findParent","View","NavigatorContext","styles","MAX_HISTORY_LENGTH","addScreen","screens","screen","removeScreen","filter","s","id","goBack","locationHistory","length","slice","isBack","hasRestoredFocus","goTo","state","path","options","focusTargetSelector","skipFocus","replace","restOptions","isNavigatingToSamePath","isNavigatingToPreviousPath","newLocation","newLocationHistory","push","goToParent","currentPath","undefined","parentPath","routerReducer","action","matchedPath","type","params","UnconnectedNavigatorProvider","props","forwardedRef","initialPath","children","className","otherProps","routerState","dispatch","methods","navigatorContextValue","_matchedPath$params","location","isInitial","match","cx","classes","navigatorProviderWrapper","createElement","ref","Provider","value","NavigatorProvider"],"sources":["@wordpress/components/src/navigator/navigator-provider/component.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef } from 'react';\n\n/**\n * WordPress dependencies\n */\nimport { useMemo, useReducer } from '@wordpress/element';\nimport isShallowEqual from '@wordpress/is-shallow-equal';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../../context';\nimport { contextConnect, useContextSystem } from '../../context';\nimport { useCx } from '../../utils/hooks/use-cx';\nimport { patternMatch, findParent } from '../utils/router';\nimport { View } from '../../view';\nimport { NavigatorContext } from '../context';\nimport * as styles from '../styles';\nimport type {\n\tNavigatorProviderProps,\n\tNavigatorLocation,\n\tNavigatorContext as NavigatorContextType,\n\tNavigateOptions,\n\tScreen,\n\tNavigateToParentOptions,\n} from '../types';\n\ntype MatchedPath = ReturnType< typeof patternMatch >;\n\ntype RouterAction =\n\t| { type: 'add' | 'remove'; screen: Screen }\n\t| { type: 'goback' }\n\t| { type: 'goto'; path: string; options?: NavigateOptions }\n\t| { type: 'gotoparent'; options?: NavigateToParentOptions };\n\ntype RouterState = {\n\tscreens: Screen[];\n\tlocationHistory: NavigatorLocation[];\n\tmatchedPath: MatchedPath;\n};\n\nconst MAX_HISTORY_LENGTH = 50;\n\nfunction addScreen( { screens }: RouterState, screen: Screen ) {\n\treturn [ ...screens, screen ];\n}\n\nfunction removeScreen( { screens }: RouterState, screen: Screen ) {\n\treturn screens.filter( ( s ) => s.id !== screen.id );\n}\n\nfunction goBack( { locationHistory }: RouterState ) {\n\tif ( locationHistory.length <= 1 ) {\n\t\treturn locationHistory;\n\t}\n\treturn [\n\t\t...locationHistory.slice( 0, -2 ),\n\t\t{\n\t\t\t...locationHistory[ locationHistory.length - 2 ],\n\t\t\tisBack: true,\n\t\t\thasRestoredFocus: false,\n\t\t},\n\t];\n}\n\nfunction goTo(\n\tstate: RouterState,\n\tpath: string,\n\toptions: NavigateOptions = {}\n) {\n\tconst { locationHistory } = state;\n\tconst {\n\t\tfocusTargetSelector,\n\t\tisBack = false,\n\t\tskipFocus = false,\n\t\treplace = false,\n\t\t...restOptions\n\t} = options;\n\n\tconst isNavigatingToSamePath =\n\t\tlocationHistory.length > 0 &&\n\t\tlocationHistory[ locationHistory.length - 1 ].path === path;\n\tif ( isNavigatingToSamePath ) {\n\t\treturn locationHistory;\n\t}\n\n\tconst isNavigatingToPreviousPath =\n\t\tisBack &&\n\t\tlocationHistory.length > 1 &&\n\t\tlocationHistory[ locationHistory.length - 2 ].path === path;\n\n\tif ( isNavigatingToPreviousPath ) {\n\t\treturn goBack( state );\n\t}\n\n\tconst newLocation = {\n\t\t...restOptions,\n\t\tpath,\n\t\tisBack,\n\t\thasRestoredFocus: false,\n\t\tskipFocus,\n\t};\n\n\tif ( locationHistory.length === 0 ) {\n\t\treturn replace ? [] : [ newLocation ];\n\t}\n\n\tconst newLocationHistory = locationHistory.slice(\n\t\tlocationHistory.length > MAX_HISTORY_LENGTH - 1 ? 1 : 0,\n\t\t-1\n\t);\n\n\tif ( ! replace ) {\n\t\tnewLocationHistory.push(\n\t\t\t// Assign `focusTargetSelector` to the previous location in history\n\t\t\t// (the one we just navigated from).\n\t\t\t{\n\t\t\t\t...locationHistory[ locationHistory.length - 1 ],\n\t\t\t\tfocusTargetSelector,\n\t\t\t}\n\t\t);\n\t}\n\n\tnewLocationHistory.push( newLocation );\n\n\treturn newLocationHistory;\n}\n\nfunction goToParent(\n\tstate: RouterState,\n\toptions: NavigateToParentOptions = {}\n) {\n\tconst { locationHistory, screens } = state;\n\tconst currentPath = locationHistory[ locationHistory.length - 1 ].path;\n\tif ( currentPath === undefined ) {\n\t\treturn locationHistory;\n\t}\n\tconst parentPath = findParent( currentPath, screens );\n\tif ( parentPath === undefined ) {\n\t\treturn locationHistory;\n\t}\n\treturn goTo( state, parentPath, {\n\t\t...options,\n\t\tisBack: true,\n\t} );\n}\n\nfunction routerReducer(\n\tstate: RouterState,\n\taction: RouterAction\n): RouterState {\n\tlet { screens, locationHistory, matchedPath } = state;\n\tswitch ( action.type ) {\n\t\tcase 'add':\n\t\t\tscreens = addScreen( state, action.screen );\n\t\t\tbreak;\n\t\tcase 'remove':\n\t\t\tscreens = removeScreen( state, action.screen );\n\t\t\tbreak;\n\t\tcase 'goback':\n\t\t\tlocationHistory = goBack( state );\n\t\t\tbreak;\n\t\tcase 'goto':\n\t\t\tlocationHistory = goTo( state, action.path, action.options );\n\t\t\tbreak;\n\t\tcase 'gotoparent':\n\t\t\tlocationHistory = goToParent( state, action.options );\n\t\t\tbreak;\n\t}\n\n\t// Return early in case there is no change\n\tif (\n\t\tscreens === state.screens &&\n\t\tlocationHistory === state.locationHistory\n\t) {\n\t\treturn state;\n\t}\n\n\t// Compute the matchedPath\n\tconst currentPath =\n\t\tlocationHistory.length > 0\n\t\t\t? locationHistory[ locationHistory.length - 1 ].path\n\t\t\t: undefined;\n\tmatchedPath =\n\t\tcurrentPath !== undefined\n\t\t\t? patternMatch( currentPath, screens )\n\t\t\t: undefined;\n\n\t// If the new match is the same as the previous match,\n\t// return the previous one to keep immutability.\n\tif (\n\t\tmatchedPath &&\n\t\tstate.matchedPath &&\n\t\tmatchedPath.id === state.matchedPath.id &&\n\t\tisShallowEqual( matchedPath.params, state.matchedPath.params )\n\t) {\n\t\tmatchedPath = state.matchedPath;\n\t}\n\n\treturn { screens, locationHistory, matchedPath };\n}\n\nfunction UnconnectedNavigatorProvider(\n\tprops: WordPressComponentProps< NavigatorProviderProps, 'div' >,\n\tforwardedRef: ForwardedRef< any >\n) {\n\tconst { initialPath, children, className, ...otherProps } =\n\t\tuseContextSystem( props, 'NavigatorProvider' );\n\n\tconst [ routerState, dispatch ] = useReducer(\n\t\trouterReducer,\n\t\tinitialPath,\n\t\t( path ) => ( {\n\t\t\tscreens: [],\n\t\t\tlocationHistory: [ { path } ],\n\t\t\tmatchedPath: undefined,\n\t\t} )\n\t);\n\n\t// The methods are constant forever, create stable references to them.\n\tconst methods = useMemo(\n\t\t() => ( {\n\t\t\tgoBack: () => dispatch( { type: 'goback' } ),\n\t\t\tgoTo: ( path: string, options?: NavigateOptions ) =>\n\t\t\t\tdispatch( { type: 'goto', path, options } ),\n\t\t\tgoToParent: ( options: NavigateToParentOptions | undefined ) =>\n\t\t\t\tdispatch( { type: 'gotoparent', options } ),\n\t\t\taddScreen: ( screen: Screen ) =>\n\t\t\t\tdispatch( { type: 'add', screen } ),\n\t\t\tremoveScreen: ( screen: Screen ) =>\n\t\t\t\tdispatch( { type: 'remove', screen } ),\n\t\t} ),\n\t\t[]\n\t);\n\n\tconst { locationHistory, matchedPath } = routerState;\n\n\tconst navigatorContextValue: NavigatorContextType = useMemo(\n\t\t() => ( {\n\t\t\tlocation: {\n\t\t\t\t...locationHistory[ locationHistory.length - 1 ],\n\t\t\t\tisInitial: locationHistory.length === 1,\n\t\t\t},\n\t\t\tparams: matchedPath?.params ?? {},\n\t\t\tmatch: matchedPath?.id,\n\t\t\t...methods,\n\t\t} ),\n\t\t[ locationHistory, matchedPath, methods ]\n\t);\n\n\tconst cx = useCx();\n\tconst classes = useMemo(\n\t\t() => cx( styles.navigatorProviderWrapper, className ),\n\t\t[ className, cx ]\n\t);\n\n\treturn (\n\t\t<View ref={ forwardedRef } className={ classes } { ...otherProps }>\n\t\t\t<NavigatorContext.Provider value={ navigatorContextValue }>\n\t\t\t\t{ children }\n\t\t\t</NavigatorContext.Provider>\n\t\t</View>\n\t);\n}\n\n/**\n * The `NavigatorProvider` component allows rendering nested views/panels/menus\n * (via the `NavigatorScreen` component and navigate between these different\n * view (via the `NavigatorButton` and `NavigatorBackButton` components or the\n * `useNavigator` hook).\n *\n * ```jsx\n * import {\n * __experimentalNavigatorProvider as NavigatorProvider,\n * __experimentalNavigatorScreen as NavigatorScreen,\n * __experimentalNavigatorButton as NavigatorButton,\n * __experimentalNavigatorBackButton as NavigatorBackButton,\n * } from '@wordpress/components';\n *\n * const MyNavigation = () => (\n * <NavigatorProvider initialPath=\"/\">\n * <NavigatorScreen path=\"/\">\n * <p>This is the home screen.</p>\n * <NavigatorButton path=\"/child\">\n * Navigate to child screen.\n * </NavigatorButton>\n * </NavigatorScreen>\n *\n * <NavigatorScreen path=\"/child\">\n * <p>This is the child screen.</p>\n * <NavigatorBackButton>\n * Go back\n * </NavigatorBackButton>\n * </NavigatorScreen>\n * </NavigatorProvider>\n * );\n * ```\n */\nexport const NavigatorProvider = contextConnect(\n\tUnconnectedNavigatorProvider,\n\t'NavigatorProvider'\n);\n\nexport default NavigatorProvider;\n"],"mappings":";AAAA;AACA;AACA;;AAGA;AACA;AACA;AACA,SAASA,OAAO,EAAEC,UAAU,QAAQ,oBAAoB;AACxD,OAAOC,cAAc,MAAM,6BAA6B;;AAExD;AACA;AACA;;AAEA,SAASC,cAAc,EAAEC,gBAAgB,QAAQ,eAAe;AAChE,SAASC,KAAK,QAAQ,0BAA0B;AAChD,SAASC,YAAY,EAAEC,UAAU,QAAQ,iBAAiB;AAC1D,SAASC,IAAI,QAAQ,YAAY;AACjC,SAASC,gBAAgB,QAAQ,YAAY;AAC7C,OAAO,KAAKC,MAAM,MAAM,WAAW;AAwBnC,MAAMC,kBAAkB,GAAG,EAAE;AAE7B,SAASC,SAASA,CAAE;EAAEC;AAAqB,CAAC,EAAEC,MAAc,EAAG;EAC9D,OAAO,CAAE,GAAGD,OAAO,EAAEC,MAAM,CAAE;AAC9B;AAEA,SAASC,YAAYA,CAAE;EAAEF;AAAqB,CAAC,EAAEC,MAAc,EAAG;EACjE,OAAOD,OAAO,CAACG,MAAM,CAAIC,CAAC,IAAMA,CAAC,CAACC,EAAE,KAAKJ,MAAM,CAACI,EAAG,CAAC;AACrD;AAEA,SAASC,MAAMA,CAAE;EAAEC;AAA6B,CAAC,EAAG;EACnD,IAAKA,eAAe,CAACC,MAAM,IAAI,CAAC,EAAG;IAClC,OAAOD,eAAe;EACvB;EACA,OAAO,CACN,GAAGA,eAAe,CAACE,KAAK,CAAE,CAAC,EAAE,CAAC,CAAE,CAAC,EACjC;IACC,GAAGF,eAAe,CAAEA,eAAe,CAACC,MAAM,GAAG,CAAC,CAAE;IAChDE,MA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,EAAEZ,SAAU,CAAC,EACtD,CAAEA,SAAS,EAAEU,EAAE,CAChB,CAAC;EAED,OACCG,aAAA,CAACzD,IAAI;IAAC0D,GAAG,EAAGjB,YAAc;IAACG,SAAS,EAAGW,OAAS;IAAA,GAAMV;EAAU,GAC/DY,aAAA,CAACxD,gBAAgB,CAAC0D,QAAQ;IAACC,KAAK,EAAGX;EAAuB,GACvDN,QACwB,CACtB,CAAC;AAET;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMkB,iBAAiB,GAAGlE,cAAc,CAC9C4C,4BAA4B,EAC5B,mBACD,CAAC;AAED,eAAesB,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["useMemo","useReducer","isShallowEqual","contextConnect","useContextSystem","useCx","patternMatch","findParent","View","NavigatorContext","styles","jsx","_jsx","MAX_HISTORY_LENGTH","addScreen","screens","screen","removeScreen","filter","s","id","goBack","locationHistory","length","slice","isBack","hasRestoredFocus","goTo","state","path","options","focusTargetSelector","skipFocus","replace","restOptions","isNavigatingToSamePath","isNavigatingToPreviousPath","newLocation","newLocationHistory","push","goToParent","currentPath","undefined","parentPath","routerReducer","action","matchedPath","type","params","UnconnectedNavigatorProvider","props","forwardedRef","initialPath","children","className","otherProps","routerState","dispatch","methods","navigatorContextValue","_matchedPath$params","location","isInitial","match","cx","classes","navigatorProviderWrapper","ref","Provider","value","NavigatorProvider"],"sources":["@wordpress/components/src/navigator/navigator-provider/component.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef } from 'react';\n\n/**\n * WordPress dependencies\n */\nimport { useMemo, useReducer } from '@wordpress/element';\nimport isShallowEqual from '@wordpress/is-shallow-equal';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../../context';\nimport { contextConnect, useContextSystem } from '../../context';\nimport { useCx } from '../../utils/hooks/use-cx';\nimport { patternMatch, findParent } from '../utils/router';\nimport { View } from '../../view';\nimport { NavigatorContext } from '../context';\nimport * as styles from '../styles';\nimport type {\n\tNavigatorProviderProps,\n\tNavigatorLocation,\n\tNavigatorContext as NavigatorContextType,\n\tNavigateOptions,\n\tScreen,\n\tNavigateToParentOptions,\n} from '../types';\n\ntype MatchedPath = ReturnType< typeof patternMatch >;\n\ntype RouterAction =\n\t| { type: 'add' | 'remove'; screen: Screen }\n\t| { type: 'goback' }\n\t| { type: 'goto'; path: string; options?: NavigateOptions }\n\t| { type: 'gotoparent'; options?: NavigateToParentOptions };\n\ntype RouterState = {\n\tscreens: Screen[];\n\tlocationHistory: NavigatorLocation[];\n\tmatchedPath: MatchedPath;\n};\n\nconst MAX_HISTORY_LENGTH = 50;\n\nfunction addScreen( { screens }: RouterState, screen: Screen ) {\n\treturn [ ...screens, screen ];\n}\n\nfunction removeScreen( { screens }: RouterState, screen: Screen ) {\n\treturn screens.filter( ( s ) => s.id !== screen.id );\n}\n\nfunction goBack( { locationHistory }: RouterState ) {\n\tif ( locationHistory.length <= 1 ) {\n\t\treturn locationHistory;\n\t}\n\treturn [\n\t\t...locationHistory.slice( 0, -2 ),\n\t\t{\n\t\t\t...locationHistory[ locationHistory.length - 2 ],\n\t\t\tisBack: true,\n\t\t\thasRestoredFocus: false,\n\t\t},\n\t];\n}\n\nfunction goTo(\n\tstate: RouterState,\n\tpath: string,\n\toptions: NavigateOptions = {}\n) {\n\tconst { locationHistory } = state;\n\tconst {\n\t\tfocusTargetSelector,\n\t\tisBack = false,\n\t\tskipFocus = false,\n\t\treplace = false,\n\t\t...restOptions\n\t} = options;\n\n\tconst isNavigatingToSamePath =\n\t\tlocationHistory.length > 0 &&\n\t\tlocationHistory[ locationHistory.length - 1 ].path === path;\n\tif ( isNavigatingToSamePath ) {\n\t\treturn locationHistory;\n\t}\n\n\tconst isNavigatingToPreviousPath =\n\t\tisBack &&\n\t\tlocationHistory.length > 1 &&\n\t\tlocationHistory[ locationHistory.length - 2 ].path === path;\n\n\tif ( isNavigatingToPreviousPath ) {\n\t\treturn goBack( state );\n\t}\n\n\tconst newLocation = {\n\t\t...restOptions,\n\t\tpath,\n\t\tisBack,\n\t\thasRestoredFocus: false,\n\t\tskipFocus,\n\t};\n\n\tif ( locationHistory.length === 0 ) {\n\t\treturn replace ? [] : [ newLocation ];\n\t}\n\n\tconst newLocationHistory = locationHistory.slice(\n\t\tlocationHistory.length > MAX_HISTORY_LENGTH - 1 ? 1 : 0,\n\t\t-1\n\t);\n\n\tif ( ! replace ) {\n\t\tnewLocationHistory.push(\n\t\t\t// Assign `focusTargetSelector` to the previous location in history\n\t\t\t// (the one we just navigated from).\n\t\t\t{\n\t\t\t\t...locationHistory[ locationHistory.length - 1 ],\n\t\t\t\tfocusTargetSelector,\n\t\t\t}\n\t\t);\n\t}\n\n\tnewLocationHistory.push( newLocation );\n\n\treturn newLocationHistory;\n}\n\nfunction goToParent(\n\tstate: RouterState,\n\toptions: NavigateToParentOptions = {}\n) {\n\tconst { locationHistory, screens } = state;\n\tconst currentPath = locationHistory[ locationHistory.length - 1 ].path;\n\tif ( currentPath === undefined ) {\n\t\treturn locationHistory;\n\t}\n\tconst parentPath = findParent( currentPath, screens );\n\tif ( parentPath === undefined ) {\n\t\treturn locationHistory;\n\t}\n\treturn goTo( state, parentPath, {\n\t\t...options,\n\t\tisBack: true,\n\t} );\n}\n\nfunction routerReducer(\n\tstate: RouterState,\n\taction: RouterAction\n): RouterState {\n\tlet { screens, locationHistory, matchedPath } = state;\n\tswitch ( action.type ) {\n\t\tcase 'add':\n\t\t\tscreens = addScreen( state, action.screen );\n\t\t\tbreak;\n\t\tcase 'remove':\n\t\t\tscreens = removeScreen( state, action.screen );\n\t\t\tbreak;\n\t\tcase 'goback':\n\t\t\tlocationHistory = goBack( state );\n\t\t\tbreak;\n\t\tcase 'goto':\n\t\t\tlocationHistory = goTo( state, action.path, action.options );\n\t\t\tbreak;\n\t\tcase 'gotoparent':\n\t\t\tlocationHistory = goToParent( state, action.options );\n\t\t\tbreak;\n\t}\n\n\t// Return early in case there is no change\n\tif (\n\t\tscreens === state.screens &&\n\t\tlocationHistory === state.locationHistory\n\t) {\n\t\treturn state;\n\t}\n\n\t// Compute the matchedPath\n\tconst currentPath =\n\t\tlocationHistory.length > 0\n\t\t\t? locationHistory[ locationHistory.length - 1 ].path\n\t\t\t: undefined;\n\tmatchedPath =\n\t\tcurrentPath !== undefined\n\t\t\t? patternMatch( currentPath, screens )\n\t\t\t: undefined;\n\n\t// If the new match is the same as the previous match,\n\t// return the previous one to keep immutability.\n\tif (\n\t\tmatchedPath &&\n\t\tstate.matchedPath &&\n\t\tmatchedPath.id === state.matchedPath.id &&\n\t\tisShallowEqual( matchedPath.params, state.matchedPath.params )\n\t) {\n\t\tmatchedPath = state.matchedPath;\n\t}\n\n\treturn { screens, locationHistory, matchedPath };\n}\n\nfunction UnconnectedNavigatorProvider(\n\tprops: WordPressComponentProps< NavigatorProviderProps, 'div' >,\n\tforwardedRef: ForwardedRef< any >\n) {\n\tconst { initialPath, children, className, ...otherProps } =\n\t\tuseContextSystem( props, 'NavigatorProvider' );\n\n\tconst [ routerState, dispatch ] = useReducer(\n\t\trouterReducer,\n\t\tinitialPath,\n\t\t( path ) => ( {\n\t\t\tscreens: [],\n\t\t\tlocationHistory: [ { path } ],\n\t\t\tmatchedPath: undefined,\n\t\t} )\n\t);\n\n\t// The methods are constant forever, create stable references to them.\n\tconst methods = useMemo(\n\t\t() => ( {\n\t\t\tgoBack: () => dispatch( { type: 'goback' } ),\n\t\t\tgoTo: ( path: string, options?: NavigateOptions ) =>\n\t\t\t\tdispatch( { type: 'goto', path, options } ),\n\t\t\tgoToParent: ( options: NavigateToParentOptions | undefined ) =>\n\t\t\t\tdispatch( { type: 'gotoparent', options } ),\n\t\t\taddScreen: ( screen: Screen ) =>\n\t\t\t\tdispatch( { type: 'add', screen } ),\n\t\t\tremoveScreen: ( screen: Screen ) =>\n\t\t\t\tdispatch( { type: 'remove', screen } ),\n\t\t} ),\n\t\t[]\n\t);\n\n\tconst { locationHistory, matchedPath } = routerState;\n\n\tconst navigatorContextValue: NavigatorContextType = useMemo(\n\t\t() => ( {\n\t\t\tlocation: {\n\t\t\t\t...locationHistory[ locationHistory.length - 1 ],\n\t\t\t\tisInitial: locationHistory.length === 1,\n\t\t\t},\n\t\t\tparams: matchedPath?.params ?? {},\n\t\t\tmatch: matchedPath?.id,\n\t\t\t...methods,\n\t\t} ),\n\t\t[ locationHistory, matchedPath, methods ]\n\t);\n\n\tconst cx = useCx();\n\tconst classes = useMemo(\n\t\t() => cx( styles.navigatorProviderWrapper, className ),\n\t\t[ className, cx ]\n\t);\n\n\treturn (\n\t\t<View ref={ forwardedRef } className={ classes } { ...otherProps }>\n\t\t\t<NavigatorContext.Provider value={ navigatorContextValue }>\n\t\t\t\t{ children }\n\t\t\t</NavigatorContext.Provider>\n\t\t</View>\n\t);\n}\n\n/**\n * The `NavigatorProvider` component allows rendering nested views/panels/menus\n * (via the `NavigatorScreen` component and navigate between these different\n * view (via the `NavigatorButton` and `NavigatorBackButton` components or the\n * `useNavigator` hook).\n *\n * ```jsx\n * import {\n * __experimentalNavigatorProvider as NavigatorProvider,\n * __experimentalNavigatorScreen as NavigatorScreen,\n * __experimentalNavigatorButton as NavigatorButton,\n * __experimentalNavigatorBackButton as NavigatorBackButton,\n * } from '@wordpress/components';\n *\n * const MyNavigation = () => (\n * <NavigatorProvider initialPath=\"/\">\n * <NavigatorScreen path=\"/\">\n * <p>This is the home screen.</p>\n * <NavigatorButton path=\"/child\">\n * Navigate to child screen.\n * </NavigatorButton>\n * </NavigatorScreen>\n *\n * <NavigatorScreen path=\"/child\">\n * <p>This is the child screen.</p>\n * <NavigatorBackButton>\n * Go back\n * </NavigatorBackButton>\n * </NavigatorScreen>\n * </NavigatorProvider>\n * );\n * ```\n */\nexport const NavigatorProvider = contextConnect(\n\tUncon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,GAAMV,UAAU;IAAAF,QAAA,eAC/DzC,IAAA,CAACH,gBAAgB,CAAC2D,QAAQ;MAACC,KAAK,EAAGV,qBAAuB;MAAAN,QAAA,EACvDA;IAAQ,CACgB;EAAC,CACvB,CAAC;AAET;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMiB,iBAAiB,GAAGnE,cAAc,CAC9C8C,4BAA4B,EAC5B,mBACD,CAAC;AAED,eAAeqB,iBAAiB","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
@@ -21,6 +20,7 @@ import { useCx } from '../../utils/hooks/use-cx';
21
20
  import { View } from '../../view';
22
21
  import { NavigatorContext } from '../context';
23
22
  import * as styles from '../styles';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
24
  function UnconnectedNavigatorScreen(props, forwardedRef) {
25
25
  const screenId = useId();
26
26
  const {
@@ -98,11 +98,12 @@ function UnconnectedNavigatorScreen(props, forwardedRef) {
98
98
  elementToFocus.focus();
99
99
  }, [isInitialLocation, isMatch, location.isBack, location.focusTargetSelector, location.skipFocus]);
100
100
  const mergedWrapperRef = useMergeRefs([forwardedRef, wrapperRef]);
101
- return isMatch ? createElement(View, {
101
+ return isMatch ? /*#__PURE__*/_jsx(View, {
102
102
  ref: mergedWrapperRef,
103
103
  className: classes,
104
- ...otherProps
105
- }, children) : null;
104
+ ...otherProps,
105
+ children: children
106
+ }) : null;
106
107
  }
107
108
 
108
109
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["focus","useContext","useEffect","useMemo","useRef","useId","useMergeRefs","isRTL","isRTLFn","escapeAttribute","contextConnect","useContextSystem","useCx","View","NavigatorContext","styles","UnconnectedNavigatorScreen","props","forwardedRef","screenId","children","className","path","otherProps","location","match","addScreen","removeScreen","isMatch","wrapperRef","screen","id","isInitial","isBack","cx","classes","navigatorScreen","locationRef","current","isInitialLocation","hasRestoredFocus","skipFocus","activeElement","ownerDocument","contains","elementToFocus","focusTargetSelector","querySelector","firstTabbable","tabbable","find","mergedWrapperRef","createElement","ref","NavigatorScreen"],"sources":["@wordpress/components/src/navigator/navigator-screen/component.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef } from 'react';\n\n/**\n * WordPress dependencies\n */\nimport { focus } from '@wordpress/dom';\nimport {\n\tuseContext,\n\tuseEffect,\n\tuseMemo,\n\tuseRef,\n\tuseId,\n} from '@wordpress/element';\nimport { useMergeRefs } from '@wordpress/compose';\nimport { isRTL as isRTLFn } from '@wordpress/i18n';\nimport { escapeAttribute } from '@wordpress/escape-html';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../../context';\nimport { contextConnect, useContextSystem } from '../../context';\nimport { useCx } from '../../utils/hooks/use-cx';\nimport { View } from '../../view';\nimport { NavigatorContext } from '../context';\nimport * as styles from '../styles';\nimport type { NavigatorScreenProps } from '../types';\n\nfunction UnconnectedNavigatorScreen(\n\tprops: WordPressComponentProps< NavigatorScreenProps, 'div', false >,\n\tforwardedRef: ForwardedRef< any >\n) {\n\tconst screenId = useId();\n\tconst { children, className, path, ...otherProps } = useContextSystem(\n\t\tprops,\n\t\t'NavigatorScreen'\n\t);\n\n\tconst { location, match, addScreen, removeScreen } =\n\t\tuseContext( NavigatorContext );\n\tconst isMatch = match === screenId;\n\tconst wrapperRef = useRef< HTMLDivElement >( null );\n\n\tuseEffect( () => {\n\t\tconst screen = {\n\t\t\tid: screenId,\n\t\t\tpath: escapeAttribute( path ),\n\t\t};\n\t\taddScreen( screen );\n\t\treturn () => removeScreen( screen );\n\t}, [ screenId, path, addScreen, removeScreen ] );\n\n\tconst isRTL = isRTLFn();\n\tconst { isInitial, isBack } = location;\n\tconst cx = useCx();\n\tconst classes = useMemo(\n\t\t() =>\n\t\t\tcx(\n\t\t\t\tstyles.navigatorScreen( {\n\t\t\t\t\tisInitial,\n\t\t\t\t\tisBack,\n\t\t\t\t\tisRTL,\n\t\t\t\t} ),\n\t\t\t\tclassName\n\t\t\t),\n\t\t[ className, cx, isInitial, isBack, isRTL ]\n\t);\n\n\tconst locationRef = useRef( location );\n\n\tuseEffect( () => {\n\t\tlocationRef.current = location;\n\t}, [ location ] );\n\n\t// Focus restoration\n\tconst isInitialLocation = location.isInitial && ! location.isBack;\n\tuseEffect( () => {\n\t\t// Only attempt to restore focus:\n\t\t// - if the current location is not the initial one (to avoid moving focus on page load)\n\t\t// - when the screen becomes visible\n\t\t// - if the wrapper ref has been assigned\n\t\t// - if focus hasn't already been restored for the current location\n\t\t// - if the `skipFocus` option is not set to `true`. This is useful when we trigger the navigation outside of NavigatorScreen.\n\t\tif (\n\t\t\tisInitialLocation ||\n\t\t\t! isMatch ||\n\t\t\t! wrapperRef.current ||\n\t\t\tlocationRef.current.hasRestoredFocus ||\n\t\t\tlocation.skipFocus\n\t\t) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst activeElement = wrapperRef.current.ownerDocument.activeElement;\n\n\t\t// If an element is already focused within the wrapper do not focus the\n\t\t// element. This prevents inputs or buttons from losing focus unnecessarily.\n\t\tif ( wrapperRef.current.contains( activeElement ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet elementToFocus: HTMLElement | null = null;\n\n\t\t// When navigating back, if a selector is provided, use it to look for the\n\t\t// target element (assumed to be a node inside the current NavigatorScreen)\n\t\tif ( location.isBack && location.focusTargetSelector ) {\n\t\t\telementToFocus = wrapperRef.current.querySelector(\n\t\t\t\tlocation.focusTargetSelector\n\t\t\t);\n\t\t}\n\n\t\t// If the previous query didn't run or find any element to focus, fallback\n\t\t// to the first tabbable element in the screen (or the screen itself).\n\t\tif ( ! elementToFocus ) {\n\t\t\tconst [ firstTabbable ] = focus.tabbable.find( wrapperRef.current );\n\t\t\telementToFocus = firstTabbable ?? wrapperRef.current;\n\t\t}\n\n\t\tlocationRef.current.hasRestoredFocus = true;\n\t\telementToFocus.focus();\n\t}, [\n\t\tisInitialLocation,\n\t\tisMatch,\n\t\tlocation.isBack,\n\t\tlocation.focusTargetSelector,\n\t\tlocation.skipFocus,\n\t] );\n\n\tconst mergedWrapperRef = useMergeRefs( [ forwardedRef, wrapperRef ] );\n\n\treturn isMatch ? (\n\t\t<View ref={ mergedWrapperRef } className={ classes } { ...otherProps }>\n\t\t\t{ children }\n\t\t</View>\n\t) : null;\n}\n\n/**\n * The `NavigatorScreen` component represents a single view/screen/panel and\n * should be used in combination with the `NavigatorProvider`, the\n * `NavigatorButton` and the `NavigatorBackButton` components (or the `useNavigator`\n * hook).\n *\n * @example\n * ```jsx\n * import {\n * __experimentalNavigatorProvider as NavigatorProvider,\n * __experimentalNavigatorScreen as NavigatorScreen,\n * __experimentalNavigatorButton as NavigatorButton,\n * __experimentalNavigatorBackButton as NavigatorBackButton,\n * } from '@wordpress/components';\n *\n * const MyNavigation = () => (\n * <NavigatorProvider initialPath=\"/\">\n * <NavigatorScreen path=\"/\">\n * <p>This is the home screen.</p>\n * <NavigatorButton path=\"/child\">\n * Navigate to child screen.\n * </NavigatorButton>\n * </NavigatorScreen>\n *\n * <NavigatorScreen path=\"/child\">\n * <p>This is the child screen.</p>\n * <NavigatorBackButton>\n * Go back\n * </NavigatorBackButton>\n * </NavigatorScreen>\n * </NavigatorProvider>\n * );\n * ```\n */\nexport const NavigatorScreen = contextConnect(\n\tUnconnectedNavigatorScreen,\n\t'NavigatorScreen'\n);\n\nexport default NavigatorScreen;\n"],"mappings":";AAAA;AACA;AACA;;AAGA;AACA;AACA;AACA,SAASA,KAAK,QAAQ,gBAAgB;AACtC,SACCC,UAAU,EACVC,SAAS,EACTC,OAAO,EACPC,MAAM,EACNC,KAAK,QACC,oBAAoB;AAC3B,SAASC,YAAY,QAAQ,oBAAoB;AACjD,SAASC,KAAK,IAAIC,OAAO,QAAQ,i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,GAAG,IAAI;IAC3CK,cAAc,CAAC7C,KAAK,CAAC,CAAC;EACvB,CAAC,EAAE,CACFuC,iBAAiB,EACjBX,OAAO,EACPJ,QAAQ,CAACS,MAAM,EACfT,QAAQ,CAACsB,mBAAmB,EAC5BtB,QAAQ,CAACiB,SAAS,CACjB,CAAC;EAEH,MAAMU,gBAAgB,GAAG7C,YAAY,CAAE,CAAEY,YAAY,EAAEW,UAAU,CAAG,CAAC;EAErE,OAAOD,OAAO,GACbwB,aAAA,CAACvC,IAAI;IAACwC,GAAG,EAAGF,gBAAkB;IAAC9B,SAAS,EAAGc,OAAS;IAAA,GAAMZ;EAAU,GACjEH,QACG,CAAC,GACJ,IAAI;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMkC,eAAe,GAAG5C,cAAc,CAC5CM,0BAA0B,EAC1B,iBACD,CAAC;AAED,eAAesC,eAAe","ignoreList":[]}
1
+ {"version":3,"names":["focus","useContext","useEffect","useMemo","useRef","useId","useMergeRefs","isRTL","isRTLFn","escapeAttribute","contextConnect","useContextSystem","useCx","View","NavigatorContext","styles","jsx","_jsx","UnconnectedNavigatorScreen","props","forwardedRef","screenId","children","className","path","otherProps","location","match","addScreen","removeScreen","isMatch","wrapperRef","screen","id","isInitial","isBack","cx","classes","navigatorScreen","locationRef","current","isInitialLocation","hasRestoredFocus","skipFocus","activeElement","ownerDocument","contains","elementToFocus","focusTargetSelector","querySelector","firstTabbable","tabbable","find","mergedWrapperRef","ref","NavigatorScreen"],"sources":["@wordpress/components/src/navigator/navigator-screen/component.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef } from 'react';\n\n/**\n * WordPress dependencies\n */\nimport { focus } from '@wordpress/dom';\nimport {\n\tuseContext,\n\tuseEffect,\n\tuseMemo,\n\tuseRef,\n\tuseId,\n} from '@wordpress/element';\nimport { useMergeRefs } from '@wordpress/compose';\nimport { isRTL as isRTLFn } from '@wordpress/i18n';\nimport { escapeAttribute } from '@wordpress/escape-html';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../../context';\nimport { contextConnect, useContextSystem } from '../../context';\nimport { useCx } from '../../utils/hooks/use-cx';\nimport { View } from '../../view';\nimport { NavigatorContext } from '../context';\nimport * as styles from '../styles';\nimport type { NavigatorScreenProps } from '../types';\n\nfunction UnconnectedNavigatorScreen(\n\tprops: WordPressComponentProps< NavigatorScreenProps, 'div', false >,\n\tforwardedRef: ForwardedRef< any >\n) {\n\tconst screenId = useId();\n\tconst { children, className, path, ...otherProps } = useContextSystem(\n\t\tprops,\n\t\t'NavigatorScreen'\n\t);\n\n\tconst { location, match, addScreen, removeScreen } =\n\t\tuseContext( NavigatorContext );\n\tconst isMatch = match === screenId;\n\tconst wrapperRef = useRef< HTMLDivElement >( null );\n\n\tuseEffect( () => {\n\t\tconst screen = {\n\t\t\tid: screenId,\n\t\t\tpath: escapeAttribute( path ),\n\t\t};\n\t\taddScreen( screen );\n\t\treturn () => removeScreen( screen );\n\t}, [ screenId, path, addScreen, removeScreen ] );\n\n\tconst isRTL = isRTLFn();\n\tconst { isInitial, isBack } = location;\n\tconst cx = useCx();\n\tconst classes = useMemo(\n\t\t() =>\n\t\t\tcx(\n\t\t\t\tstyles.navigatorScreen( {\n\t\t\t\t\tisInitial,\n\t\t\t\t\tisBack,\n\t\t\t\t\tisRTL,\n\t\t\t\t} ),\n\t\t\t\tclassName\n\t\t\t),\n\t\t[ className, cx, isInitial, isBack, isRTL ]\n\t);\n\n\tconst locationRef = useRef( location );\n\n\tuseEffect( () => {\n\t\tlocationRef.current = location;\n\t}, [ location ] );\n\n\t// Focus restoration\n\tconst isInitialLocation = location.isInitial && ! location.isBack;\n\tuseEffect( () => {\n\t\t// Only attempt to restore focus:\n\t\t// - if the current location is not the initial one (to avoid moving focus on page load)\n\t\t// - when the screen becomes visible\n\t\t// - if the wrapper ref has been assigned\n\t\t// - if focus hasn't already been restored for the current location\n\t\t// - if the `skipFocus` option is not set to `true`. This is useful when we trigger the navigation outside of NavigatorScreen.\n\t\tif (\n\t\t\tisInitialLocation ||\n\t\t\t! isMatch ||\n\t\t\t! wrapperRef.current ||\n\t\t\tlocationRef.current.hasRestoredFocus ||\n\t\t\tlocation.skipFocus\n\t\t) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst activeElement = wrapperRef.current.ownerDocument.activeElement;\n\n\t\t// If an element is already focused within the wrapper do not focus the\n\t\t// element. This prevents inputs or buttons from losing focus unnecessarily.\n\t\tif ( wrapperRef.current.contains( activeElement ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet elementToFocus: HTMLElement | null = null;\n\n\t\t// When navigating back, if a selector is provided, use it to look for the\n\t\t// target element (assumed to be a node inside the current NavigatorScreen)\n\t\tif ( location.isBack && location.focusTargetSelector ) {\n\t\t\telementToFocus = wrapperRef.current.querySelector(\n\t\t\t\tlocation.focusTargetSelector\n\t\t\t);\n\t\t}\n\n\t\t// If the previous query didn't run or find any element to focus, fallback\n\t\t// to the first tabbable element in the screen (or the screen itself).\n\t\tif ( ! elementToFocus ) {\n\t\t\tconst [ firstTabbable ] = focus.tabbable.find( wrapperRef.current );\n\t\t\telementToFocus = firstTabbable ?? wrapperRef.current;\n\t\t}\n\n\t\tlocationRef.current.hasRestoredFocus = true;\n\t\telementToFocus.focus();\n\t}, [\n\t\tisInitialLocation,\n\t\tisMatch,\n\t\tlocation.isBack,\n\t\tlocation.focusTargetSelector,\n\t\tlocation.skipFocus,\n\t] );\n\n\tconst mergedWrapperRef = useMergeRefs( [ forwardedRef, wrapperRef ] );\n\n\treturn isMatch ? (\n\t\t<View ref={ mergedWrapperRef } className={ classes } { ...otherProps }>\n\t\t\t{ children }\n\t\t</View>\n\t) : null;\n}\n\n/**\n * The `NavigatorScreen` component represents a single view/screen/panel and\n * should be used in combination with the `NavigatorProvider`, the\n * `NavigatorButton` and the `NavigatorBackButton` components (or the `useNavigator`\n * hook).\n *\n * @example\n * ```jsx\n * import {\n * __experimentalNavigatorProvider as NavigatorProvider,\n * __experimentalNavigatorScreen as NavigatorScreen,\n * __experimentalNavigatorButton as NavigatorButton,\n * __experimentalNavigatorBackButton as NavigatorBackButton,\n * } from '@wordpress/components';\n *\n * const MyNavigation = () => (\n * <NavigatorProvider initialPath=\"/\">\n * <NavigatorScreen path=\"/\">\n * <p>This is the home screen.</p>\n * <NavigatorButton path=\"/child\">\n * Navigate to child screen.\n * </NavigatorButton>\n * </NavigatorScreen>\n *\n * <NavigatorScreen path=\"/child\">\n * <p>This is the child screen.</p>\n * <NavigatorBackButton>\n * Go back\n * </NavigatorBackButton>\n * </NavigatorScreen>\n * </NavigatorProvider>\n * );\n * ```\n */\nexport const NavigatorScreen = contextConnect(\n\tUnconnectedNavigatorScreen,\n\t'NavigatorScreen'\n);\n\nexport default NavigatorScreen;\n"],"mappings":"AAAA;AACA;AACA;;AAGA;AACA;AACA;AACA,SAASA,KAAK,QAAQ,gBAAgB;AACtC,SACCC,UAAU,EACVC,SAAS,EACTC,OAAO,EACPC,MAAM,EACNC,KAAK,QACC,oBAAoB;AAC3B,SAASC,YAAY,QAAQ,oBAAoB;AACjD,SAASC,KAAK,IAAIC,OAAO,QAAQ,iBAAiB;AAClD,SAASC,eAAe,QAAQ,wBAAwB;;AAExD;AACA;AACA;;AAEA,SAASC,cAAc,EAAEC,gBAAgB,QAAQ,eAAe;AAChE,SAASC,KAAK,QAAQ,0BAA0B;AAChD,SAASC,IAAI,QAAQ,YAAY;AACjC,SAASC,gBAAgB,QAAQ,YAAY;AAC7C,OAAO,KAAKC,MAAM,MAAM,WAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGpC,SAASC,0BAA0BA,CAClCC,KAAoE,EACpEC,YAAiC,EAChC;EACD,MAAMC,QAAQ,GAAGhB,KAAK,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C,GAAG,EAAGD,gBAAkB;IAAC9B,SAAS,EAAGc,OAAS;IAAA,GAAMZ,UAAU;IAAAH,QAAA,EACjEA;EAAQ,CACL,CAAC,GACJ,IAAI;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMiC,eAAe,GAAG7C,cAAc,CAC5CQ,0BAA0B,EAC1B,iBACD,CAAC;AAED,eAAeqC,eAAe","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
@@ -10,12 +9,13 @@ import { createElement } from "react";
10
9
  import { contextConnect } from '../../context';
11
10
  import { View } from '../../view';
12
11
  import { useNavigatorBackButton } from '../navigator-back-button/hook';
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  function UnconnectedNavigatorToParentButton(props, forwardedRef) {
14
14
  const navigatorToParentButtonProps = useNavigatorBackButton({
15
15
  ...props,
16
16
  goToParent: true
17
17
  });
18
- return createElement(View, {
18
+ return /*#__PURE__*/_jsx(View, {
19
19
  ref: forwardedRef,
20
20
  ...navigatorToParentButtonProps
21
21
  });
@@ -1 +1 @@
1
- {"version":3,"names":["contextConnect","View","useNavigatorBackButton","UnconnectedNavigatorToParentButton","props","forwardedRef","navigatorToParentButtonProps","goToParent","createElement","ref","NavigatorToParentButton"],"sources":["@wordpress/components/src/navigator/navigator-to-parent-button/component.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../../context';\nimport { contextConnect } from '../../context';\nimport { View } from '../../view';\nimport { useNavigatorBackButton } from '../navigator-back-button/hook';\nimport type { NavigatorToParentButtonProps } from '../types';\n\nfunction UnconnectedNavigatorToParentButton(\n\tprops: WordPressComponentProps< NavigatorToParentButtonProps, 'button' >,\n\tforwardedRef: ForwardedRef< any >\n) {\n\tconst navigatorToParentButtonProps = useNavigatorBackButton( {\n\t\t...props,\n\t\tgoToParent: true,\n\t} );\n\n\treturn <View ref={ forwardedRef } { ...navigatorToParentButtonProps } />;\n}\n\n/*\n * The `NavigatorToParentButton` component can be used to navigate to a screen and\n * should be used in combination with the `NavigatorProvider`, the\n * `NavigatorScreen` and the `NavigatorButton` components (or the `useNavigator`\n * hook).\n *\n * @example\n * ```jsx\n * import {\n * __experimentalNavigatorProvider as NavigatorProvider,\n * __experimentalNavigatorScreen as NavigatorScreen,\n * __experimentalNavigatorButton as NavigatorButton,\n * __experimentalNavigatorToParentButton as NavigatorToParentButton,\n * } from '@wordpress/components';\n *\n * const MyNavigation = () => (\n * <NavigatorProvider initialPath=\"/\">\n * <NavigatorScreen path=\"/\">\n * <p>This is the home screen.</p>\n * <NavigatorButton path=\"/child\">\n * Navigate to child screen.\n * </NavigatorButton>\n * </NavigatorScreen>\n *\n * <NavigatorScreen path=\"/child\">\n * <p>This is the child screen.</p>\n * <NavigatorToParentButton>\n * Go to parent\n * </NavigatorToParentButton>\n * </NavigatorScreen>\n * </NavigatorProvider>\n * );\n * ```\n */\nexport const NavigatorToParentButton = contextConnect(\n\tUnconnectedNavigatorToParentButton,\n\t'NavigatorToParentButton'\n);\n\nexport default NavigatorToParentButton;\n"],"mappings":";AAAA;AACA;AACA;;AAGA;AACA;AACA;;AAEA,SAASA,cAAc,QAAQ,eAAe;AAC9C,SAASC,IAAI,QAAQ,YAAY;AACjC,SAASC,sBAAsB,QAAQ,+BAA+B;AAGtE,SAASC,kCAAkCA,CAC1CC,KAAwE,EACxEC,YAAiC,EAChC;EACD,MAAMC,4BAA4B,GAAGJ,sBAAsB,CAAE;IAC5D,GAAGE,KAAK;IACRG,UAAU,EAAE;EACb,CAAE,CAAC;EAEH,OAAOC,aAAA,CAACP,IAAI;IAACQ,GAAG,EAAGJ,YAAc;IAAA,GAAMC;EAA4B,CAAI,CAAC;AACzE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMI,uBAAuB,GAAGV,cAAc,CACpDG,kCAAkC,EAClC,yBACD,CAAC;AAED,eAAeO,uBAAuB","ignoreList":[]}
1
+ {"version":3,"names":["contextConnect","View","useNavigatorBackButton","jsx","_jsx","UnconnectedNavigatorToParentButton","props","forwardedRef","navigatorToParentButtonProps","goToParent","ref","NavigatorToParentButton"],"sources":["@wordpress/components/src/navigator/navigator-to-parent-button/component.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../../context';\nimport { contextConnect } from '../../context';\nimport { View } from '../../view';\nimport { useNavigatorBackButton } from '../navigator-back-button/hook';\nimport type { NavigatorToParentButtonProps } from '../types';\n\nfunction UnconnectedNavigatorToParentButton(\n\tprops: WordPressComponentProps< NavigatorToParentButtonProps, 'button' >,\n\tforwardedRef: ForwardedRef< any >\n) {\n\tconst navigatorToParentButtonProps = useNavigatorBackButton( {\n\t\t...props,\n\t\tgoToParent: true,\n\t} );\n\n\treturn <View ref={ forwardedRef } { ...navigatorToParentButtonProps } />;\n}\n\n/*\n * The `NavigatorToParentButton` component can be used to navigate to a screen and\n * should be used in combination with the `NavigatorProvider`, the\n * `NavigatorScreen` and the `NavigatorButton` components (or the `useNavigator`\n * hook).\n *\n * @example\n * ```jsx\n * import {\n * __experimentalNavigatorProvider as NavigatorProvider,\n * __experimentalNavigatorScreen as NavigatorScreen,\n * __experimentalNavigatorButton as NavigatorButton,\n * __experimentalNavigatorToParentButton as NavigatorToParentButton,\n * } from '@wordpress/components';\n *\n * const MyNavigation = () => (\n * <NavigatorProvider initialPath=\"/\">\n * <NavigatorScreen path=\"/\">\n * <p>This is the home screen.</p>\n * <NavigatorButton path=\"/child\">\n * Navigate to child screen.\n * </NavigatorButton>\n * </NavigatorScreen>\n *\n * <NavigatorScreen path=\"/child\">\n * <p>This is the child screen.</p>\n * <NavigatorToParentButton>\n * Go to parent\n * </NavigatorToParentButton>\n * </NavigatorScreen>\n * </NavigatorProvider>\n * );\n * ```\n */\nexport const NavigatorToParentButton = contextConnect(\n\tUnconnectedNavigatorToParentButton,\n\t'NavigatorToParentButton'\n);\n\nexport default NavigatorToParentButton;\n"],"mappings":"AAAA;AACA;AACA;;AAGA;AACA;AACA;;AAEA,SAASA,cAAc,QAAQ,eAAe;AAC9C,SAASC,IAAI,QAAQ,YAAY;AACjC,SAASC,sBAAsB,QAAQ,+BAA+B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGvE,SAASC,kCAAkCA,CAC1CC,KAAwE,EACxEC,YAAiC,EAChC;EACD,MAAMC,4BAA4B,GAAGN,sBAAsB,CAAE;IAC5D,GAAGI,KAAK;IACRG,UAAU,EAAE;EACb,CAAE,CAAC;EAEH,oBAAOL,IAAA,CAACH,IAAI;IAACS,GAAG,EAAGH,YAAc;IAAA,GAAMC;EAA4B,CAAI,CAAC;AACzE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMG,uBAAuB,GAAGX,cAAc,CACpDK,kCAAkC,EAClC,yBACD,CAAC;AAED,eAAeM,uBAAuB","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
@@ -17,6 +16,8 @@ import { close } from '@wordpress/icons';
17
16
  */
18
17
  import Button from '../button';
19
18
  import { VisuallyHidden } from '../visually-hidden';
19
+ import { jsx as _jsx } from "react/jsx-runtime";
20
+ import { jsxs as _jsxs } from "react/jsx-runtime";
20
21
  const noop = () => {};
21
22
 
22
23
  /**
@@ -87,47 +88,54 @@ function Notice({
87
88
  'is-dismissible': isDismissible
88
89
  });
89
90
  if (__unstableHTML && typeof children === 'string') {
90
- children = createElement(RawHTML, null, children);
91
+ children = /*#__PURE__*/_jsx(RawHTML, {
92
+ children: children
93
+ });
91
94
  }
92
95
  const onDismissNotice = () => {
93
96
  onDismiss();
94
97
  onRemove();
95
98
  };
96
- return createElement("div", {
97
- className: classes
98
- }, createElement(VisuallyHidden, null, getStatusLabel(status)), createElement("div", {
99
- className: "components-notice__content"
100
- }, children, createElement("div", {
101
- className: "components-notice__actions"
102
- }, actions.map(({
103
- className: buttonCustomClasses,
104
- label,
105
- isPrimary,
106
- variant,
107
- noDefaultClasses = false,
108
- onClick,
109
- url
110
- }, index) => {
111
- let computedVariant = variant;
112
- if (variant !== 'primary' && !noDefaultClasses) {
113
- computedVariant = !url ? 'secondary' : 'link';
114
- }
115
- if (typeof computedVariant === 'undefined' && isPrimary) {
116
- computedVariant = 'primary';
117
- }
118
- return createElement(Button, {
119
- key: index,
120
- href: url,
121
- variant: computedVariant,
122
- onClick: url ? undefined : onClick,
123
- className: clsx('components-notice__action', buttonCustomClasses)
124
- }, label);
125
- }))), isDismissible && createElement(Button, {
126
- className: "components-notice__dismiss",
127
- icon: close,
128
- label: __('Close'),
129
- onClick: onDismissNotice
130
- }));
99
+ return /*#__PURE__*/_jsxs("div", {
100
+ className: classes,
101
+ children: [/*#__PURE__*/_jsx(VisuallyHidden, {
102
+ children: getStatusLabel(status)
103
+ }), /*#__PURE__*/_jsxs("div", {
104
+ className: "components-notice__content",
105
+ children: [children, /*#__PURE__*/_jsx("div", {
106
+ className: "components-notice__actions",
107
+ children: actions.map(({
108
+ className: buttonCustomClasses,
109
+ label,
110
+ isPrimary,
111
+ variant,
112
+ noDefaultClasses = false,
113
+ onClick,
114
+ url
115
+ }, index) => {
116
+ let computedVariant = variant;
117
+ if (variant !== 'primary' && !noDefaultClasses) {
118
+ computedVariant = !url ? 'secondary' : 'link';
119
+ }
120
+ if (typeof computedVariant === 'undefined' && isPrimary) {
121
+ computedVariant = 'primary';
122
+ }
123
+ return /*#__PURE__*/_jsx(Button, {
124
+ href: url,
125
+ variant: computedVariant,
126
+ onClick: url ? undefined : onClick,
127
+ className: clsx('components-notice__action', buttonCustomClasses),
128
+ children: label
129
+ }, index);
130
+ })
131
+ })]
132
+ }), isDismissible && /*#__PURE__*/_jsx(Button, {
133
+ className: "components-notice__dismiss",
134
+ icon: close,
135
+ label: __('Close'),
136
+ onClick: onDismissNotice
137
+ })]
138
+ });
131
139
  }
132
140
  export default Notice;
133
141
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["clsx","__","RawHTML","useEffect","renderToString","speak","close","Button","VisuallyHidden","noop","useSpokenMessage","message","politeness","spokenMessage","getDefaultPoliteness","status","getStatusLabel","Notice","className","children","onRemove","isDismissible","actions","__unstableHTML","onDismiss","classes","createElement","onDismissNotice","map","buttonCustomClasses","label","isPrimary","variant","noDefaultClasses","onClick","url","index","computedVariant","key","href","undefined","icon"],"sources":["@wordpress/components/src/notice/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { RawHTML, useEffect, renderToString } from '@wordpress/element';\nimport { speak } from '@wordpress/a11y';\nimport { close } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport Button from '../button';\nimport type { NoticeAction, NoticeProps } from './types';\nimport type { DeprecatedButtonProps } from '../button/types';\nimport { VisuallyHidden } from '../visually-hidden';\n\nconst noop = () => {};\n\n/**\n * Custom hook which announces the message with the given politeness, if a\n * valid message is provided.\n */\nfunction useSpokenMessage(\n\tmessage: NoticeProps[ 'spokenMessage' ],\n\tpoliteness: NoticeProps[ 'politeness' ]\n) {\n\tconst spokenMessage =\n\t\ttypeof message === 'string' ? message : renderToString( message );\n\n\tuseEffect( () => {\n\t\tif ( spokenMessage ) {\n\t\t\tspeak( spokenMessage, politeness );\n\t\t}\n\t}, [ spokenMessage, politeness ] );\n}\n\nfunction getDefaultPoliteness( status: NoticeProps[ 'status' ] ) {\n\tswitch ( status ) {\n\t\tcase 'success':\n\t\tcase 'warning':\n\t\tcase 'info':\n\t\t\treturn 'polite';\n\t\t// The default will also catch the 'error' status.\n\t\tdefault:\n\t\t\treturn 'assertive';\n\t}\n}\n\nfunction getStatusLabel( status: NoticeProps[ 'status' ] ) {\n\tswitch ( status ) {\n\t\tcase 'warning':\n\t\t\treturn __( 'Warning notice' );\n\t\tcase 'info':\n\t\t\treturn __( 'Information notice' );\n\t\tcase 'error':\n\t\t\treturn __( 'Error notice' );\n\t\t// The default will also catch the 'success' status.\n\t\tdefault:\n\t\t\treturn __( 'Notice' );\n\t}\n}\n\n/**\n * `Notice` is a component used to communicate feedback to the user.\n *\n *```jsx\n * import { Notice } from `@wordpress/components`;\n *\n * const MyNotice = () => (\n * <Notice status=\"error\">An unknown error occurred.</Notice>\n * );\n * ```\n */\nfunction Notice( {\n\tclassName,\n\tstatus = 'info',\n\tchildren,\n\tspokenMessage = children,\n\tonRemove = noop,\n\tisDismissible = true,\n\tactions = [],\n\tpoliteness = getDefaultPoliteness( status ),\n\t__unstableHTML,\n\t// onDismiss is a callback executed when the notice is dismissed.\n\t// It is distinct from onRemove, which _looks_ like a callback but is\n\t// actually the function to call to remove the notice from the UI.\n\tonDismiss = noop,\n}: NoticeProps ) {\n\tuseSpokenMessage( spokenMessage, politeness );\n\n\tconst classes = clsx( className, 'components-notice', 'is-' + status, {\n\t\t'is-dismissible': isDismissible,\n\t} );\n\n\tif ( __unstableHTML && typeof children === 'string' ) {\n\t\tchildren = <RawHTML>{ children }</RawHTML>;\n\t}\n\n\tconst onDismissNotice = () => {\n\t\tonDismiss();\n\t\tonRemove();\n\t};\n\n\treturn (\n\t\t<div className={ classes }>\n\t\t\t<VisuallyHidden>{ getStatusLabel( status ) }</VisuallyHidden>\n\t\t\t<div className=\"components-notice__content\">\n\t\t\t\t{ children }\n\t\t\t\t<div className=\"components-notice__actions\">\n\t\t\t\t\t{ actions.map(\n\t\t\t\t\t\t(\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tclassName: buttonCustomClasses,\n\t\t\t\t\t\t\t\tlabel,\n\t\t\t\t\t\t\t\tisPrimary,\n\t\t\t\t\t\t\t\tvariant,\n\t\t\t\t\t\t\t\tnoDefaultClasses = false,\n\t\t\t\t\t\t\t\tonClick,\n\t\t\t\t\t\t\t\turl,\n\t\t\t\t\t\t\t}: NoticeAction &\n\t\t\t\t\t\t\t\t// `isPrimary` is a legacy prop included for\n\t\t\t\t\t\t\t\t// backcompat, but `variant` should be used\n\t\t\t\t\t\t\t\t// instead.\n\t\t\t\t\t\t\t\tPick< DeprecatedButtonProps, 'isPrimary' >,\n\t\t\t\t\t\t\tindex\n\t\t\t\t\t\t) => {\n\t\t\t\t\t\t\tlet computedVariant = variant;\n\t\t\t\t\t\t\tif ( variant !== 'primary' && ! noDefaultClasses ) {\n\t\t\t\t\t\t\t\tcomputedVariant = ! url ? 'secondary' : 'link';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\ttypeof computedVariant === 'undefined' &&\n\t\t\t\t\t\t\t\tisPrimary\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tcomputedVariant = 'primary';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\tkey={ index }\n\t\t\t\t\t\t\t\t\thref={ url }\n\t\t\t\t\t\t\t\t\tvariant={ computedVariant }\n\t\t\t\t\t\t\t\t\tonClick={ url ? undefined : onClick }\n\t\t\t\t\t\t\t\t\tclassName={ clsx(\n\t\t\t\t\t\t\t\t\t\t'components-notice__action',\n\t\t\t\t\t\t\t\t\t\tbuttonCustomClasses\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\t\t{ label }\n\t\t\t\t\t\t\t\t</Button>\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</div>\n\t\t\t</div>\n\t\t\t{ isDismissible && (\n\t\t\t\t<Button\n\t\t\t\t\tclassName=\"components-notice__dismiss\"\n\t\t\t\t\ticon={ close }\n\t\t\t\t\tlabel={ __( 'Close' ) }\n\t\t\t\t\tonClick={ onDismissNotice }\n\t\t\t\t/>\n\t\t\t) }\n\t\t</div>\n\t);\n}\n\nexport default Notice;\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,OAAO,EAAEC,SAAS,EAAEC,cAAc,QAAQ,oBAAoB;AACvE,SAASC,KAAK,QAAQ,iBAAiB;AACvC,SAASC,KAAK,QAAQ,kBAAkB;;AAExC;AACA;AACA;AACA,OAAOC,MAAM,MAAM,WAAW;AAG9B,SAASC,cAAc,QAAQ,oBAAoB;AAEnD,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;;AAErB;AACA;AACA;AACA;AACA,SAASC,gBAAgBA,CACxBC,OAAuC,EACvCC,UAAuC,EACtC;EACD,MAAMC,aAAa,GAClB,OAAOF,OAAO,KAAK,QAAQ,GAAGA,OAAO,GAAGP,cAAc,CAAEO,OAAQ,CAAC;EAElER,SAAS,CAAE,MAAM;IAChB,IAAKU,aAAa,EAAG;MACpBR,KAAK,CAAEQ,aAAa,EAAED,UAAW,CAAC;IACnC;EACD,CAAC,EAAE,CAAEC,aAAa,EAAED,UAAU,CAAG,CAAC;AACnC;AAEA,SAASE,oBAAoBA,CAAEC,MAA+B,EAAG;EAChE,QAASA,MAAM;IACd,KAAK,SAAS;IACd,KAAK,SAAS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AC7DW,aAAA;IAAKR,SAAS,EAAC;EAA4B,GACxCC,QAAQ,EACVO,aAAA;IAAKR,SAAS,EAAC;EAA4B,GACxCI,OAAO,CAACM,GAAG,CACZ,CACC;IACCV,SAAS,EAAEW,mBAAmB;IAC9BC,KAAK;IACLC,SAAS;IACTC,OAAO;IACPC,gBAAgB,GAAG,KAAK;IACxBC,OAAO;IACPC;EAKyC,CAAC,EAC3CC,KAAK,KACD;IACJ,IAAIC,eAAe,GAAGL,OAAO;IAC7B,IAAKA,OAAO,KAAK,SAAS,IAAI,CAAEC,gBAAgB,EAAG;MAClDI,eAAe,GAAG,CAAEF,GAAG,GAAG,WAAW,GAAG,MAAM;IAC/C;IACA,IACC,OAAOE,eAAe,KAAK,WAAW,IACtCN,SAAS,EACR;MACDM,eAAe,GAAG,SAAS;IAC5B;IAEA,OACCX,aAAA,CAACnB,MAAM;MACN+B,GAAG,EAAGF,KAAO;MACbG,IAAI,EAAGJ,GAAK;MACZH,OAAO,EAAGK,eAAiB;MAC3BH,OAAO,EAAGC,GAAG,GAAGK,SAAS,GAAGN,OAAS;MACrChB,SAAS,EAAGlB,IAAI,CACf,2BAA2B,EAC3B6B,mBACD;IAAG,GAEDC,KACK,CAAC;EAEX,CACD,CACI,CACD,CAAC,EACJT,aAAa,IACdK,aAAA,CAACnB,MAAM;IACNW,SAAS,EAAC,4BAA4B;IACtCuB,IAAI,EAAGnC,KAAO;IACdwB,KAAK,EAAG7B,EAAE,CAAE,OAAQ,CAAG;IACvBiC,OAAO,EAAGP;EAAiB,CAC3B,CAEE,CAAC;AAER;AAEA,eAAeV,MAAM","ignoreList":[]}
1
+ {"version":3,"names":["clsx","__","RawHTML","useEffect","renderToString","speak","close","Button","VisuallyHidden","jsx","_jsx","jsxs","_jsxs","noop","useSpokenMessage","message","politeness","spokenMessage","getDefaultPoliteness","status","getStatusLabel","Notice","className","children","onRemove","isDismissible","actions","__unstableHTML","onDismiss","classes","onDismissNotice","map","buttonCustomClasses","label","isPrimary","variant","noDefaultClasses","onClick","url","index","computedVariant","href","undefined","icon"],"sources":["@wordpress/components/src/notice/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { RawHTML, useEffect, renderToString } from '@wordpress/element';\nimport { speak } from '@wordpress/a11y';\nimport { close } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport Button from '../button';\nimport type { NoticeAction, NoticeProps } from './types';\nimport type { DeprecatedButtonProps } from '../button/types';\nimport { VisuallyHidden } from '../visually-hidden';\n\nconst noop = () => {};\n\n/**\n * Custom hook which announces the message with the given politeness, if a\n * valid message is provided.\n */\nfunction useSpokenMessage(\n\tmessage: NoticeProps[ 'spokenMessage' ],\n\tpoliteness: NoticeProps[ 'politeness' ]\n) {\n\tconst spokenMessage =\n\t\ttypeof message === 'string' ? message : renderToString( message );\n\n\tuseEffect( () => {\n\t\tif ( spokenMessage ) {\n\t\t\tspeak( spokenMessage, politeness );\n\t\t}\n\t}, [ spokenMessage, politeness ] );\n}\n\nfunction getDefaultPoliteness( status: NoticeProps[ 'status' ] ) {\n\tswitch ( status ) {\n\t\tcase 'success':\n\t\tcase 'warning':\n\t\tcase 'info':\n\t\t\treturn 'polite';\n\t\t// The default will also catch the 'error' status.\n\t\tdefault:\n\t\t\treturn 'assertive';\n\t}\n}\n\nfunction getStatusLabel( status: NoticeProps[ 'status' ] ) {\n\tswitch ( status ) {\n\t\tcase 'warning':\n\t\t\treturn __( 'Warning notice' );\n\t\tcase 'info':\n\t\t\treturn __( 'Information notice' );\n\t\tcase 'error':\n\t\t\treturn __( 'Error notice' );\n\t\t// The default will also catch the 'success' status.\n\t\tdefault:\n\t\t\treturn __( 'Notice' );\n\t}\n}\n\n/**\n * `Notice` is a component used to communicate feedback to the user.\n *\n *```jsx\n * import { Notice } from `@wordpress/components`;\n *\n * const MyNotice = () => (\n * <Notice status=\"error\">An unknown error occurred.</Notice>\n * );\n * ```\n */\nfunction Notice( {\n\tclassName,\n\tstatus = 'info',\n\tchildren,\n\tspokenMessage = children,\n\tonRemove = noop,\n\tisDismissible = true,\n\tactions = [],\n\tpoliteness = getDefaultPoliteness( status ),\n\t__unstableHTML,\n\t// onDismiss is a callback executed when the notice is dismissed.\n\t// It is distinct from onRemove, which _looks_ like a callback but is\n\t// actually the function to call to remove the notice from the UI.\n\tonDismiss = noop,\n}: NoticeProps ) {\n\tuseSpokenMessage( spokenMessage, politeness );\n\n\tconst classes = clsx( className, 'components-notice', 'is-' + status, {\n\t\t'is-dismissible': isDismissible,\n\t} );\n\n\tif ( __unstableHTML && typeof children === 'string' ) {\n\t\tchildren = <RawHTML>{ children }</RawHTML>;\n\t}\n\n\tconst onDismissNotice = () => {\n\t\tonDismiss();\n\t\tonRemove();\n\t};\n\n\treturn (\n\t\t<div className={ classes }>\n\t\t\t<VisuallyHidden>{ getStatusLabel( status ) }</VisuallyHidden>\n\t\t\t<div className=\"components-notice__content\">\n\t\t\t\t{ children }\n\t\t\t\t<div className=\"components-notice__actions\">\n\t\t\t\t\t{ actions.map(\n\t\t\t\t\t\t(\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tclassName: buttonCustomClasses,\n\t\t\t\t\t\t\t\tlabel,\n\t\t\t\t\t\t\t\tisPrimary,\n\t\t\t\t\t\t\t\tvariant,\n\t\t\t\t\t\t\t\tnoDefaultClasses = false,\n\t\t\t\t\t\t\t\tonClick,\n\t\t\t\t\t\t\t\turl,\n\t\t\t\t\t\t\t}: NoticeAction &\n\t\t\t\t\t\t\t\t// `isPrimary` is a legacy prop included for\n\t\t\t\t\t\t\t\t// backcompat, but `variant` should be used\n\t\t\t\t\t\t\t\t// instead.\n\t\t\t\t\t\t\t\tPick< DeprecatedButtonProps, 'isPrimary' >,\n\t\t\t\t\t\t\tindex\n\t\t\t\t\t\t) => {\n\t\t\t\t\t\t\tlet computedVariant = variant;\n\t\t\t\t\t\t\tif ( variant !== 'primary' && ! noDefaultClasses ) {\n\t\t\t\t\t\t\t\tcomputedVariant = ! url ? 'secondary' : 'link';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\ttypeof computedVariant === 'undefined' &&\n\t\t\t\t\t\t\t\tisPrimary\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tcomputedVariant = 'primary';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\tkey={ index }\n\t\t\t\t\t\t\t\t\thref={ url }\n\t\t\t\t\t\t\t\t\tvariant={ computedVariant }\n\t\t\t\t\t\t\t\t\tonClick={ url ? undefined : onClick }\n\t\t\t\t\t\t\t\t\tclassName={ clsx(\n\t\t\t\t\t\t\t\t\t\t'components-notice__action',\n\t\t\t\t\t\t\t\t\t\tbuttonCustomClasses\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\t\t{ label }\n\t\t\t\t\t\t\t\t</Button>\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</div>\n\t\t\t</div>\n\t\t\t{ isDismissible && (\n\t\t\t\t<Button\n\t\t\t\t\tclassName=\"components-notice__dismiss\"\n\t\t\t\t\ticon={ close }\n\t\t\t\t\tlabel={ __( 'Close' ) }\n\t\t\t\t\tonClick={ onDismissNotice }\n\t\t\t\t/>\n\t\t\t) }\n\t\t</div>\n\t);\n}\n\nexport default Notice;\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,OAAO,EAAEC,SAAS,EAAEC,cAAc,QAAQ,oBAAoB;AACvE,SAASC,KAAK,QAAQ,iBAAiB;AACvC,SAASC,KAAK,QAAQ,kBAAkB;;AAExC;AACA;AACA;AACA,OAAOC,M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C,IAAI,EAAGH,GAAK;YACZH,OAAO,EAAGK,eAAiB;YAC3BH,OAAO,EAAGC,GAAG,GAAGI,SAAS,GAAGL,OAAS;YACrCf,SAAS,EAAGtB,IAAI,CACf,2BAA2B,EAC3BgC,mBACD,CAAG;YAAAT,QAAA,EAEDU;UAAK,GATDM,KAUC,CAAC;QAEX,CACD;MAAC,CACG,CAAC;IAAA,CACF,CAAC,EACJd,aAAa,iBACdf,IAAA,CAACH,MAAM;MACNe,SAAS,EAAC,4BAA4B;MACtCqB,IAAI,EAAGrC,KAAO;MACd2B,KAAK,EAAGhC,EAAE,CAAE,OAAQ,CAAG;MACvBoC,OAAO,EAAGP;IAAiB,CAC3B,CACD;EAAA,CACG,CAAC;AAER;AAEA,eAAeT,MAAM","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement, Fragment } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
@@ -15,6 +14,9 @@ import { usePreferredColorSchemeStyle } from '@wordpress/compose';
15
14
  * Internal dependencies
16
15
  */
17
16
  import styles from './style.scss';
17
+ import { jsx as _jsx } from "react/jsx-runtime";
18
+ import { jsxs as _jsxs } from "react/jsx-runtime";
19
+ import { Fragment as _Fragment } from "react/jsx-runtime";
18
20
  const HIDE_TIMER = 3000;
19
21
  const Notice = ({
20
22
  onNoticeHidden,
@@ -74,20 +76,26 @@ const Notice = ({
74
76
  })
75
77
  }]
76
78
  }];
77
- return createElement(Fragment, null, createElement(Animated.View, {
78
- style: containerStyles
79
- }, createElement(TouchableWithoutFeedback, {
80
- onPress: onHide
81
- }, createElement(View, {
82
- style: styles.noticeContent
83
- }, createElement(Text, {
84
- numberOfLines: 3,
85
- style: textStyles
86
- }, content))), Platform.isIOS && createElement(BlurView, {
87
- style: styles.blurBackground,
88
- blurType: "prominent",
89
- blurAmount: 10
90
- })));
79
+ return /*#__PURE__*/_jsx(_Fragment, {
80
+ children: /*#__PURE__*/_jsxs(Animated.View, {
81
+ style: containerStyles,
82
+ children: [/*#__PURE__*/_jsx(TouchableWithoutFeedback, {
83
+ onPress: onHide,
84
+ children: /*#__PURE__*/_jsx(View, {
85
+ style: styles.noticeContent,
86
+ children: /*#__PURE__*/_jsx(Text, {
87
+ numberOfLines: 3,
88
+ style: textStyles,
89
+ children: content
90
+ })
91
+ })
92
+ }), Platform.isIOS && /*#__PURE__*/_jsx(BlurView, {
93
+ style: styles.blurBackground,
94
+ blurType: "prominent",
95
+ blurAmount: 10
96
+ })]
97
+ })
98
+ });
91
99
  };
92
100
  export default Notice;
93
101
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Animated","Easing","Text","TouchableWithoutFeedback","View","useWindowDimensions","BlurView","useEffect","useRef","useCallback","Platform","usePreferredColorSchemeStyle","styles","HIDE_TIMER","Notice","onNoticeHidden","content","id","status","width","animationValue","Value","current","timer","timing","toValue","duration","useNativeDriver","easing","out","quad","start","finished","setTimeout","onHide","clearTimeout","noticeSolidStyles","noticeSolid","noticeSolidDark","successTextStyles","successText","successTextDark","errorTextStyles","errorText","errorTextDark","textStyles","containerStyles","notice","isIOS","transform","translateY","interpolate","inputRange","outputRange","createElement","Fragment","style","onPress","noticeContent","numberOfLines","blurBackground","blurType","blurAmount"],"sources":["@wordpress/components/src/notice/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport {\n\tAnimated,\n\tEasing,\n\tText,\n\tTouchableWithoutFeedback,\n\tView,\n\tuseWindowDimensions,\n} from 'react-native';\nimport { BlurView } from '@react-native-community/blur';\n\n/**\n * WordPress dependencies\n */\nimport { useEffect, useRef, useCallback, Platform } from '@wordpress/element';\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\n\nconst HIDE_TIMER = 3000;\n\nconst Notice = ( { onNoticeHidden, content, id, status } ) => {\n\tconst { width } = useWindowDimensions();\n\tconst animationValue = useRef( new Animated.Value( 0 ) ).current;\n\tconst timer = useRef( null );\n\n\tuseEffect( () => {\n\t\t// start animation\n\t\tAnimated.timing( animationValue, {\n\t\t\ttoValue: 1,\n\t\t\tduration: 300,\n\t\t\tuseNativeDriver: true,\n\t\t\teasing: Easing.out( Easing.quad ),\n\t\t} ).start( ( { finished } ) => {\n\t\t\tif ( finished && onNoticeHidden ) {\n\t\t\t\ttimer.current = setTimeout( () => {\n\t\t\t\t\tonHide();\n\t\t\t\t}, HIDE_TIMER );\n\t\t\t}\n\t\t} );\n\n\t\treturn () => {\n\t\t\tclearTimeout( timer?.current );\n\t\t};\n\t}, [ animationValue, onHide, onNoticeHidden ] );\n\n\tconst onHide = useCallback( () => {\n\t\tAnimated.timing( animationValue, {\n\t\t\ttoValue: 0,\n\t\t\tduration: 150,\n\t\t\tuseNativeDriver: true,\n\t\t\teasing: Easing.out( Easing.quad ),\n\t\t} ).start( ( { finished } ) => {\n\t\t\tif ( finished && onNoticeHidden ) {\n\t\t\t\tonNoticeHidden( id );\n\t\t\t}\n\t\t} );\n\t}, [ animationValue, onNoticeHidden, id ] );\n\n\tconst noticeSolidStyles = usePreferredColorSchemeStyle(\n\t\tstyles.noticeSolid,\n\t\tstyles.noticeSolidDark\n\t);\n\n\tconst successTextStyles = usePreferredColorSchemeStyle(\n\t\tstyles.successText,\n\t\tstyles.successTextDark\n\t);\n\n\tconst errorTextStyles = usePreferredColorSchemeStyle(\n\t\tstyles.errorText,\n\t\tstyles.errorTextDark\n\t);\n\n\tconst textStyles = [\n\t\tstatus === 'success' && successTextStyles,\n\t\tstatus === 'error' && errorTextStyles,\n\t];\n\n\tconst containerStyles = [\n\t\tstyles.notice,\n\t\t! Platform.isIOS && noticeSolidStyles,\n\t\t{\n\t\t\twidth,\n\t\t\ttransform: [\n\t\t\t\t{\n\t\t\t\t\ttranslateY: animationValue.interpolate( {\n\t\t\t\t\t\tinputRange: [ 0, 1 ],\n\t\t\t\t\t\toutputRange: [ -24, 0 ],\n\t\t\t\t\t} ),\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t];\n\n\treturn (\n\t\t<>\n\t\t\t<Animated.View style={ containerStyles }>\n\t\t\t\t<TouchableWithoutFeedback onPress={ onHide }>\n\t\t\t\t\t<View style={ styles.noticeContent }>\n\t\t\t\t\t\t<Text numberOfLines={ 3 } style={ textStyles }>\n\t\t\t\t\t\t\t{ content }\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t</View>\n\t\t\t\t</TouchableWithoutFeedback>\n\t\t\t\t{ Platform.isIOS && (\n\t\t\t\t\t<BlurView\n\t\t\t\t\t\tstyle={ styles.blurBackground }\n\t\t\t\t\t\tblurType=\"prominent\"\n\t\t\t\t\t\tblurAmount={ 10 }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t</Animated.View>\n\t\t</>\n\t);\n};\n\nexport default Notice;\n"],"mappings":";AAAA;AACA;AACA;AACA,SACCA,QAAQ,EACRC,MAAM,EACNC,IAAI,EACJC,wBAAwB,EACxBC,IAAI,EACJC,mBAAmB,QACb,cAAc;AACrB,SAASC,QAAQ,QAAQ,8BAA8B;;AAEvD;AACA;AACA;AACA,SAASC,SAAS,EAAEC,MAAM,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,oBAAoB;AAC7E,SAASC,4BAA4B,QAAQ,oBAAoB;;AAEjE;AACA;AACA;AACA,OAAOC,MAAM,MAAM,cAAc;AAEjC,MAAMC,UAAU,GAAG,IAAI;AAEvB,MAAMC,MAAM,GAAGA,CAAE;EAAEC,cAAc;EAAEC,OAAO;EAAEC,EAAE;EAAEC;AAAO,CAAC,KAAM;EAC7D,MAAM;IAAEC;EAAM,CAAC,GAAGd,mBAAmB,CAAC,CAAC;EACvC,MAAMe,cAAc,GAAGZ,MAAM,CAAE,IAAIR,QAAQ,CAACqB,KAAK,CAAE,CAAE,CAAE,CAAC,CAACC,OAAO;EAChE,MAAMC,KAAK,GAAGf,MAAM,CAAE,IAAK,CAAC;EAE5BD,SAAS,CAAE,MAAM;IAChB;IACAP,QAAQ,CAACwB,MAAM,CAAEJ,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,eAAe,GAAG/B,4BAA4B,CACnDC,MAAM,CAAC+B,SAAS,EAChB/B,MAAM,CAACgC,aACR,CAAC;EAED,MAAMC,UAAU,GAAG,CAClB3B,MAAM,KAAK,SAAS,IAAIqB,iBAAiB,EACzCrB,MAAM,KAAK,OAAO,IAAIwB,eAAe,CACrC;EAED,MAAMI,eAAe,GAAG,CACvBlC,MAAM,CAACmC,MAAM,EACb,CAAErC,QAAQ,CAACsC,KAAK,IAAIZ,iBAAiB,EACrC;IACCjB,KAAK;IACL8B,SAAS,EAAE,CACV;MACCC,UAAU,EAAE9B,cAAc,CAAC+B,WAAW,CAAE;QACvCC,UAAU,EAAE,CAAE,CAAC,EAAE,CAAC,CAAE;QACpBC,WAAW,EAAE,CAAE,CAAC,EAAE,EAAE,CAAC;MACtB,CAAE;IACH,CAAC;EAEH,CAAC,CACD;EAED,OACCC,aAAA,CAAAC,QAAA,QACCD,aAAA,CAACtD,QAAQ,CAACI,IAAI;IAACoD,KAAK,EAAGV;EAAiB,GACvCQ,aAAA,CAACnD,wBAAwB;IAACsD,OAAO,EAAGvB;EAAQ,GAC3CoB,aAAA,CAAClD,IAAI;IAACoD,KAAK,EAAG5C,MAAM,CAAC8C;EAAe,GACnCJ,aAAA,CAACpD,IAAI;IAACyD,aAAa,EAAG,CAAG;IAACH,KAAK,EAAGX;EAAY,GAC3C7B,OACG,CACD,CACmB,CAAC,EACzBN,QAAQ,CAACsC,KAAK,IACfM,aAAA,CAAChD,QAAQ;IACRkD,KAAK,EAAG5C,MAAM,CAACgD,cAAgB;IAC/BC,QAAQ,EAAC,WAAW;IACpBC,UAAU,EAAG;EAAI,CACjB,CAEY,CACd,CAAC;AAEL,CAAC;AAED,eAAehD,MAAM","ignoreList":[]}
1
+ {"version":3,"names":["Animated","Easing","Text","TouchableWithoutFeedback","View","useWindowDimensions","BlurView","useEffect","useRef","useCallback","Platform","usePreferredColorSchemeStyle","styles","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","HIDE_TIMER","Notice","onNoticeHidden","content","id","status","width","animationValue","Value","current","timer","timing","toValue","duration","useNativeDriver","easing","out","quad","start","finished","setTimeout","onHide","clearTimeout","noticeSolidStyles","noticeSolid","noticeSolidDark","successTextStyles","successText","successTextDark","errorTextStyles","errorText","errorTextDark","textStyles","containerStyles","notice","isIOS","transform","translateY","interpolate","inputRange","outputRange","children","style","onPress","noticeContent","numberOfLines","blurBackground","blurType","blurAmount"],"sources":["@wordpress/components/src/notice/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport {\n\tAnimated,\n\tEasing,\n\tText,\n\tTouchableWithoutFeedback,\n\tView,\n\tuseWindowDimensions,\n} from 'react-native';\nimport { BlurView } from '@react-native-community/blur';\n\n/**\n * WordPress dependencies\n */\nimport { useEffect, useRef, useCallback, Platform } from '@wordpress/element';\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\n\nconst HIDE_TIMER = 3000;\n\nconst Notice = ( { onNoticeHidden, content, id, status } ) => {\n\tconst { width } = useWindowDimensions();\n\tconst animationValue = useRef( new Animated.Value( 0 ) ).current;\n\tconst timer = useRef( null );\n\n\tuseEffect( () => {\n\t\t// start animation\n\t\tAnimated.timing( animationValue, {\n\t\t\ttoValue: 1,\n\t\t\tduration: 300,\n\t\t\tuseNativeDriver: true,\n\t\t\teasing: Easing.out( Easing.quad ),\n\t\t} ).start( ( { finished } ) => {\n\t\t\tif ( finished && onNoticeHidden ) {\n\t\t\t\ttimer.current = setTimeout( () => {\n\t\t\t\t\tonHide();\n\t\t\t\t}, HIDE_TIMER );\n\t\t\t}\n\t\t} );\n\n\t\treturn () => {\n\t\t\tclearTimeout( timer?.current );\n\t\t};\n\t}, [ animationValue, onHide, onNoticeHidden ] );\n\n\tconst onHide = useCallback( () => {\n\t\tAnimated.timing( animationValue, {\n\t\t\ttoValue: 0,\n\t\t\tduration: 150,\n\t\t\tuseNativeDriver: true,\n\t\t\teasing: Easing.out( Easing.quad ),\n\t\t} ).start( ( { finished } ) => {\n\t\t\tif ( finished && onNoticeHidden ) {\n\t\t\t\tonNoticeHidden( id );\n\t\t\t}\n\t\t} );\n\t}, [ animationValue, onNoticeHidden, id ] );\n\n\tconst noticeSolidStyles = usePreferredColorSchemeStyle(\n\t\tstyles.noticeSolid,\n\t\tstyles.noticeSolidDark\n\t);\n\n\tconst successTextStyles = usePreferredColorSchemeStyle(\n\t\tstyles.successText,\n\t\tstyles.successTextDark\n\t);\n\n\tconst errorTextStyles = usePreferredColorSchemeStyle(\n\t\tstyles.errorText,\n\t\tstyles.errorTextDark\n\t);\n\n\tconst textStyles = [\n\t\tstatus === 'success' && successTextStyles,\n\t\tstatus === 'error' && errorTextStyles,\n\t];\n\n\tconst containerStyles = [\n\t\tstyles.notice,\n\t\t! Platform.isIOS && noticeSolidStyles,\n\t\t{\n\t\t\twidth,\n\t\t\ttransform: [\n\t\t\t\t{\n\t\t\t\t\ttranslateY: animationValue.interpolate( {\n\t\t\t\t\t\tinputRange: [ 0, 1 ],\n\t\t\t\t\t\toutputRange: [ -24, 0 ],\n\t\t\t\t\t} ),\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t];\n\n\treturn (\n\t\t<>\n\t\t\t<Animated.View style={ containerStyles }>\n\t\t\t\t<TouchableWithoutFeedback onPress={ onHide }>\n\t\t\t\t\t<View style={ styles.noticeContent }>\n\t\t\t\t\t\t<Text numberOfLines={ 3 } style={ textStyles }>\n\t\t\t\t\t\t\t{ content }\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t</View>\n\t\t\t\t</TouchableWithoutFeedback>\n\t\t\t\t{ Platform.isIOS && (\n\t\t\t\t\t<BlurView\n\t\t\t\t\t\tstyle={ styles.blurBackground }\n\t\t\t\t\t\tblurType=\"prominent\"\n\t\t\t\t\t\tblurAmount={ 10 }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t</Animated.View>\n\t\t</>\n\t);\n};\n\nexport default Notice;\n"],"mappings":"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,EAAE,CAAE,CAAC,EAAE,CAAC,CAAE;QACpBC,WAAW,EAAE,CAAE,CAAC,EAAE,EAAE,CAAC;MACtB,CAAE;IACH,CAAC;EAEH,CAAC,CACD;EAED,oBACC7C,IAAA,CAAAI,SAAA;IAAA0C,QAAA,eACC5C,KAAA,CAAChB,QAAQ,CAACI,IAAI;MAACyD,KAAK,EAAGT,eAAiB;MAAAQ,QAAA,gBACvC9C,IAAA,CAACX,wBAAwB;QAAC2D,OAAO,EAAGtB,MAAQ;QAAAoB,QAAA,eAC3C9C,IAAA,CAACV,IAAI;UAACyD,KAAK,EAAGjD,MAAM,CAACmD,aAAe;UAAAH,QAAA,eACnC9C,IAAA,CAACZ,IAAI;YAAC8D,aAAa,EAAG,CAAG;YAACH,KAAK,EAAGV,UAAY;YAAAS,QAAA,EAC3CtC;UAAO,CACJ;QAAC,CACF;MAAC,CACkB,CAAC,EACzBZ,QAAQ,CAAC4C,KAAK,iBACfxC,IAAA,CAACR,QAAQ;QACRuD,KAAK,EAAGjD,MAAM,CAACqD,cAAgB;QAC/BC,QAAQ,EAAC,WAAW;QACpBC,UAAU,EAAG;MAAI,CACjB,CACD;IAAA,CACa;EAAC,CACf,CAAC;AAEL,CAAC;AAED,eAAe/C,MAAM","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
@@ -8,6 +7,8 @@ import clsx from 'clsx';
8
7
  * Internal dependencies
9
8
  */
10
9
  import Notice from '.';
10
+ import { createElement as _createElement } from "react";
11
+ import { jsxs as _jsxs } from "react/jsx-runtime";
11
12
  const noop = () => {};
12
13
 
13
14
  /**
@@ -44,19 +45,20 @@ function NoticeList({
44
45
  }) {
45
46
  const removeNotice = id => () => onRemove(id);
46
47
  className = clsx('components-notice-list', className);
47
- return createElement("div", {
48
- className: className
49
- }, children, [...notices].reverse().map(notice => {
50
- const {
51
- content,
52
- ...restNotice
53
- } = notice;
54
- return createElement(Notice, {
55
- ...restNotice,
56
- key: notice.id,
57
- onRemove: removeNotice(notice.id)
58
- }, notice.content);
59
- }));
48
+ return /*#__PURE__*/_jsxs("div", {
49
+ className: className,
50
+ children: [children, [...notices].reverse().map(notice => {
51
+ const {
52
+ content,
53
+ ...restNotice
54
+ } = notice;
55
+ return /*#__PURE__*/_createElement(Notice, {
56
+ ...restNotice,
57
+ key: notice.id,
58
+ onRemove: removeNotice(notice.id)
59
+ }, notice.content);
60
+ })]
61
+ });
60
62
  }
61
63
  export default NoticeList;
62
64
  //# sourceMappingURL=list.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["clsx","Notice","noop","NoticeList","notices","onRemove","className","children","removeNotice","id","createElement","reverse","map","notice","content","restNotice","key"],"sources":["@wordpress/components/src/notice/list.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * Internal dependencies\n */\nimport Notice from '.';\nimport type { WordPressComponentProps } from '../context';\nimport type { NoticeListProps } from './types';\n\nconst noop = () => {};\n\n/**\n * `NoticeList` is a component used to render a collection of notices.\n *\n *```jsx\n * import { Notice, NoticeList } from `@wordpress/components`;\n *\n * const MyNoticeList = () => {\n *\tconst [ notices, setNotices ] = useState( [\n *\t\t{\n *\t\t\tid: 'second-notice',\n *\t\t\tcontent: 'second notice content',\n *\t\t},\n *\t\t{\n *\t\t\tid: 'fist-notice',\n *\t\t\tcontent: 'first notice content',\n *\t\t},\n *\t] );\n *\n *\tconst removeNotice = ( id ) => {\n *\t\tsetNotices( notices.filter( ( notice ) => notice.id !== id ) );\n *\t};\n *\n *\treturn <NoticeList notices={ notices } onRemove={ removeNotice } />;\n *};\n *```\n */\nfunction NoticeList( {\n\tnotices,\n\tonRemove = noop,\n\tclassName,\n\tchildren,\n}: WordPressComponentProps< NoticeListProps, 'div', false > ) {\n\tconst removeNotice =\n\t\t( id: NoticeListProps[ 'notices' ][ number ][ 'id' ] ) => () =>\n\t\t\tonRemove( id );\n\n\tclassName = clsx( 'components-notice-list', className );\n\n\treturn (\n\t\t<div className={ className }>\n\t\t\t{ children }\n\t\t\t{ [ ...notices ].reverse().map( ( notice ) => {\n\t\t\t\tconst { content, ...restNotice } = notice;\n\t\t\t\treturn (\n\t\t\t\t\t<Notice\n\t\t\t\t\t\t{ ...restNotice }\n\t\t\t\t\t\tkey={ notice.id }\n\t\t\t\t\t\tonRemove={ removeNotice( notice.id ) }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ notice.content }\n\t\t\t\t\t</Notice>\n\t\t\t\t);\n\t\t\t} ) }\n\t\t</div>\n\t);\n}\n\nexport default NoticeList;\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,OAAOC,MAAM,MAAM,GAAG;AAItB,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;;AAErB;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,SAASC,UAAUA,CAAE;EACpBC,OAAO;EACPC,QAAQ,GAAGH,IAAI;EACfI,SAAS;EACTC;AACyD,CAAC,EAAG;EAC7D,MAAMC,YAAY,GACfC,EAAkD,IAAM,MACzDJ,QAAQ,CAAEI,EAAG,CAAC;EAEhBH,SAAS,GAAGN,IAAI,CAAE,wBAAwB,EAAEM,SAAU,CAAC;EAEvD,OACCI,aAAA;IAAKJ,SAAS,EAAGA;EAAW,GACzBC,QAAQ,EACR,CAAE,GAAGH,OAAO,CAAE,CAACO,OAAO,CAAC,CAAC,CAACC,GAAG,CAAIC,MAAM,IAAM;IAC7C,MAAM;MAAEC,OAAO;MAAE,GAAGC;IAAW,CAAC,GAAGF,MAAM;IACzC,OACCH,aAAA,CAACT,MAAM;MAAA,GACDc,UAAU;MACfC,GAAG,EAAGH,MAAM,CAACJ,EAAI;MACjBJ,QAAQ,EAAGG,YAAY,CAAEK,MAAM,CAACJ,EAAG;IAAG,GAEpCI,MAAM,CAACC,OACF,CAAC;EAEX,CAAE,CACE,CAAC;AAER;AAEA,eAAeX,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["clsx","Notice","createElement","_createElement","jsxs","_jsxs","noop","NoticeList","notices","onRemove","className","children","removeNotice","id","reverse","map","notice","content","restNotice","key"],"sources":["@wordpress/components/src/notice/list.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * Internal dependencies\n */\nimport Notice from '.';\nimport type { WordPressComponentProps } from '../context';\nimport type { NoticeListProps } from './types';\n\nconst noop = () => {};\n\n/**\n * `NoticeList` is a component used to render a collection of notices.\n *\n *```jsx\n * import { Notice, NoticeList } from `@wordpress/components`;\n *\n * const MyNoticeList = () => {\n *\tconst [ notices, setNotices ] = useState( [\n *\t\t{\n *\t\t\tid: 'second-notice',\n *\t\t\tcontent: 'second notice content',\n *\t\t},\n *\t\t{\n *\t\t\tid: 'fist-notice',\n *\t\t\tcontent: 'first notice content',\n *\t\t},\n *\t] );\n *\n *\tconst removeNotice = ( id ) => {\n *\t\tsetNotices( notices.filter( ( notice ) => notice.id !== id ) );\n *\t};\n *\n *\treturn <NoticeList notices={ notices } onRemove={ removeNotice } />;\n *};\n *```\n */\nfunction NoticeList( {\n\tnotices,\n\tonRemove = noop,\n\tclassName,\n\tchildren,\n}: WordPressComponentProps< NoticeListProps, 'div', false > ) {\n\tconst removeNotice =\n\t\t( id: NoticeListProps[ 'notices' ][ number ][ 'id' ] ) => () =>\n\t\t\tonRemove( id );\n\n\tclassName = clsx( 'components-notice-list', className );\n\n\treturn (\n\t\t<div className={ className }>\n\t\t\t{ children }\n\t\t\t{ [ ...notices ].reverse().map( ( notice ) => {\n\t\t\t\tconst { content, ...restNotice } = notice;\n\t\t\t\treturn (\n\t\t\t\t\t<Notice\n\t\t\t\t\t\t{ ...restNotice }\n\t\t\t\t\t\tkey={ notice.id }\n\t\t\t\t\t\tonRemove={ removeNotice( notice.id ) }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ notice.content }\n\t\t\t\t\t</Notice>\n\t\t\t\t);\n\t\t\t} ) }\n\t\t</div>\n\t);\n}\n\nexport default NoticeList;\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,OAAOC,MAAM,MAAM,GAAG;AAAC,SAAAC,aAAA,IAAAC,cAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAIvB,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;;AAErB;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,SAASC,UAAUA,CAAE;EACpBC,OAAO;EACPC,QAAQ,GAAGH,IAAI;EACfI,SAAS;EACTC;AACyD,CAAC,EAAG;EAC7D,MAAMC,YAAY,GACfC,EAAkD,IAAM,MACzDJ,QAAQ,CAAEI,EAAG,CAAC;EAEhBH,SAAS,GAAGV,IAAI,CAAE,wBAAwB,EAAEU,SAAU,CAAC;EAEvD,oBACCL,KAAA;IAAKK,SAAS,EAAGA,SAAW;IAAAC,QAAA,GACzBA,QAAQ,EACR,CAAE,GAAGH,OAAO,CAAE,CAACM,OAAO,CAAC,CAAC,CAACC,GAAG,CAAIC,MAAM,IAAM;MAC7C,MAAM;QAAEC,OAAO;QAAE,GAAGC;MAAW,CAAC,GAAGF,MAAM;MACzC,oBACCb,cAAA,CAACF,MAAM;QAAA,GACDiB,UAAU;QACfC,GAAG,EAAGH,MAAM,CAACH,EAAI;QACjBJ,QAAQ,EAAGG,YAAY,CAAEI,MAAM,CAACH,EAAG;MAAG,GAEpCG,MAAM,CAACC,OACF,CAAC;IAEX,CAAE,CAAC;EAAA,CACC,CAAC;AAER;AAEA,eAAeV,UAAU","ignoreList":[]}