@wordpress/components 27.3.0 → 27.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2222) hide show
  1. package/CHANGELOG.md +65 -4
  2. package/build/alignment-matrix-control/cell.js.map +1 -1
  3. package/build/alignment-matrix-control/icon.js.map +1 -1
  4. package/build/alignment-matrix-control/index.js +3 -1
  5. package/build/alignment-matrix-control/index.js.map +1 -1
  6. package/build/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js +8 -4
  7. package/build/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js.map +1 -1
  8. package/build/alignment-matrix-control/styles/alignment-matrix-control-styles.js +17 -13
  9. package/build/alignment-matrix-control/styles/alignment-matrix-control-styles.js.map +1 -1
  10. package/build/alignment-matrix-control/types.js.map +1 -1
  11. package/build/alignment-matrix-control/utils.js +10 -2
  12. package/build/alignment-matrix-control/utils.js.map +1 -1
  13. package/build/angle-picker-control/angle-circle.js.map +1 -1
  14. package/build/angle-picker-control/index.js.map +1 -1
  15. package/build/angle-picker-control/styles/angle-picker-control-styles.js +9 -5
  16. package/build/angle-picker-control/styles/angle-picker-control-styles.js.map +1 -1
  17. package/build/angle-picker-control/types.js.map +1 -1
  18. package/build/animate/index.js +4 -0
  19. package/build/animate/index.js.map +1 -1
  20. package/build/animate/types.js.map +1 -1
  21. package/build/animation/index.js.map +1 -1
  22. package/build/autocomplete/autocompleter-ui.js +3 -1
  23. package/build/autocomplete/autocompleter-ui.js.map +1 -1
  24. package/build/autocomplete/autocompleter-ui.native.js.map +1 -1
  25. package/build/autocomplete/background-view.android.js.map +1 -1
  26. package/build/autocomplete/background-view.ios.js.map +1 -1
  27. package/build/autocomplete/get-default-use-items.js.map +1 -1
  28. package/build/autocomplete/index.js +21 -7
  29. package/build/autocomplete/index.js.map +1 -1
  30. package/build/autocomplete/types.js.map +1 -1
  31. package/build/base-control/hooks.js.map +1 -1
  32. package/build/base-control/index.js.map +1 -1
  33. package/build/base-control/index.native.js.map +1 -1
  34. package/build/base-control/styles/base-control-styles.js +10 -6
  35. package/build/base-control/styles/base-control-styles.js.map +1 -1
  36. package/build/base-control/types.js.map +1 -1
  37. package/build/border-box-control/border-box-control/component.js.map +1 -1
  38. package/build/border-box-control/border-box-control/hook.js +1 -1
  39. package/build/border-box-control/border-box-control/hook.js.map +1 -1
  40. package/build/border-box-control/border-box-control/index.js.map +1 -1
  41. package/build/border-box-control/border-box-control-linked-button/component.js.map +1 -1
  42. package/build/border-box-control/border-box-control-linked-button/hook.js +1 -1
  43. package/build/border-box-control/border-box-control-linked-button/hook.js.map +1 -1
  44. package/build/border-box-control/border-box-control-linked-button/index.js.map +1 -1
  45. package/build/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  46. package/build/border-box-control/border-box-control-split-controls/hook.js +1 -1
  47. package/build/border-box-control/border-box-control-split-controls/hook.js.map +1 -1
  48. package/build/border-box-control/border-box-control-split-controls/index.js.map +1 -1
  49. package/build/border-box-control/border-box-control-visualizer/component.js.map +1 -1
  50. package/build/border-box-control/border-box-control-visualizer/hook.js +1 -1
  51. package/build/border-box-control/border-box-control-visualizer/hook.js.map +1 -1
  52. package/build/border-box-control/border-box-control-visualizer/index.js.map +1 -1
  53. package/build/border-box-control/index.js.map +1 -1
  54. package/build/border-box-control/styles.js +5 -1
  55. package/build/border-box-control/styles.js.map +1 -1
  56. package/build/border-box-control/types.js.map +1 -1
  57. package/build/border-box-control/utils.js.map +1 -1
  58. package/build/border-control/border-control/component.js.map +1 -1
  59. package/build/border-control/border-control/hook.js +1 -1
  60. package/build/border-control/border-control/hook.js.map +1 -1
  61. package/build/border-control/border-control/index.js.map +1 -1
  62. package/build/border-control/border-control-dropdown/component.js.map +1 -1
  63. package/build/border-control/border-control-dropdown/hook.js +1 -1
  64. package/build/border-control/border-control-dropdown/hook.js.map +1 -1
  65. package/build/border-control/border-control-dropdown/index.js.map +1 -1
  66. package/build/border-control/border-control-style-picker/component.js.map +1 -1
  67. package/build/border-control/border-control-style-picker/index.js.map +1 -1
  68. package/build/border-control/index.js.map +1 -1
  69. package/build/border-control/styles.js +5 -1
  70. package/build/border-control/styles.js.map +1 -1
  71. package/build/border-control/types.js.map +1 -1
  72. package/build/box-control/all-input-control.js +4 -0
  73. package/build/box-control/all-input-control.js.map +1 -1
  74. package/build/box-control/axial-input-controls.js.map +1 -1
  75. package/build/box-control/icon.js.map +1 -1
  76. package/build/box-control/index.js.map +1 -1
  77. package/build/box-control/input-controls.js.map +1 -1
  78. package/build/box-control/linked-button.js.map +1 -1
  79. package/build/box-control/styles/box-control-icon-styles.js +12 -10
  80. package/build/box-control/styles/box-control-icon-styles.js.map +1 -1
  81. package/build/box-control/styles/box-control-styles.js +11 -7
  82. package/build/box-control/styles/box-control-styles.js.map +1 -1
  83. package/build/box-control/types.js.map +1 -1
  84. package/build/box-control/utils.js.map +1 -1
  85. package/build/button/deprecated.js.map +1 -1
  86. package/build/button/index.js.map +1 -1
  87. package/build/button/index.native.js.map +1 -1
  88. package/build/button/types.js.map +1 -1
  89. package/build/button-group/index.js +4 -0
  90. package/build/button-group/index.js.map +1 -1
  91. package/build/button-group/types.js.map +1 -1
  92. package/build/card/card/component.js +5 -1
  93. package/build/card/card/component.js.map +1 -1
  94. package/build/card/card/hook.js +5 -1
  95. package/build/card/card/hook.js.map +1 -1
  96. package/build/card/card/index.js.map +1 -1
  97. package/build/card/card-body/component.js.map +1 -1
  98. package/build/card/card-body/hook.js +5 -1
  99. package/build/card/card-body/hook.js.map +1 -1
  100. package/build/card/card-body/index.js.map +1 -1
  101. package/build/card/card-divider/component.js.map +1 -1
  102. package/build/card/card-divider/hook.js +5 -1
  103. package/build/card/card-divider/hook.js.map +1 -1
  104. package/build/card/card-divider/index.js.map +1 -1
  105. package/build/card/card-footer/component.js.map +1 -1
  106. package/build/card/card-footer/hook.js +5 -1
  107. package/build/card/card-footer/hook.js.map +1 -1
  108. package/build/card/card-footer/index.js.map +1 -1
  109. package/build/card/card-header/component.js.map +1 -1
  110. package/build/card/card-header/hook.js +5 -1
  111. package/build/card/card-header/hook.js.map +1 -1
  112. package/build/card/card-header/index.js.map +1 -1
  113. package/build/card/card-media/component.js.map +1 -1
  114. package/build/card/card-media/hook.js +5 -1
  115. package/build/card/card-media/hook.js.map +1 -1
  116. package/build/card/card-media/index.js.map +1 -1
  117. package/build/card/context.js.map +1 -1
  118. package/build/card/index.js +1 -1
  119. package/build/card/index.js.map +1 -1
  120. package/build/card/styles.js +5 -1
  121. package/build/card/styles.js.map +1 -1
  122. package/build/card/types.js.map +1 -1
  123. package/build/checkbox-control/index.js +9 -2
  124. package/build/checkbox-control/index.js.map +1 -1
  125. package/build/checkbox-control/types.js.map +1 -1
  126. package/build/circular-option-picker/circular-option-picker-actions.js.map +1 -1
  127. package/build/circular-option-picker/circular-option-picker-context.js +4 -0
  128. package/build/circular-option-picker/circular-option-picker-context.js.map +1 -1
  129. package/build/circular-option-picker/circular-option-picker-option-group.js +4 -0
  130. package/build/circular-option-picker/circular-option-picker-option-group.js.map +1 -1
  131. package/build/circular-option-picker/circular-option-picker-option.js.map +1 -1
  132. package/build/circular-option-picker/circular-option-picker.js.map +1 -1
  133. package/build/circular-option-picker/index.js.map +1 -1
  134. package/build/circular-option-picker/types.js.map +1 -1
  135. package/build/clipboard-button/index.js.map +1 -1
  136. package/build/clipboard-button/types.js.map +1 -1
  137. package/build/color-control/index.native.js.map +1 -1
  138. package/build/color-indicator/index.js +4 -0
  139. package/build/color-indicator/index.js.map +1 -1
  140. package/build/color-indicator/index.native.js.map +1 -1
  141. package/build/color-indicator/types.js.map +1 -1
  142. package/build/color-palette/index.js.map +1 -1
  143. package/build/color-palette/index.native.js +4 -3
  144. package/build/color-palette/index.native.js.map +1 -1
  145. package/build/color-palette/styles.js +6 -2
  146. package/build/color-palette/styles.js.map +1 -1
  147. package/build/color-palette/types.js.map +1 -1
  148. package/build/color-palette/utils.js +4 -0
  149. package/build/color-palette/utils.js.map +1 -1
  150. package/build/color-picker/color-copy-button.js.map +1 -1
  151. package/build/color-picker/color-input.js.map +1 -1
  152. package/build/color-picker/component.js.map +1 -1
  153. package/build/color-picker/hex-input.js +3 -1
  154. package/build/color-picker/hex-input.js.map +1 -1
  155. package/build/color-picker/hsl-input.js.map +1 -1
  156. package/build/color-picker/hsv-color-picker.native.js.map +1 -1
  157. package/build/color-picker/hue-picker.native.js +7 -3
  158. package/build/color-picker/hue-picker.native.js.map +1 -1
  159. package/build/color-picker/index.js.map +1 -1
  160. package/build/color-picker/index.native.js +9 -3
  161. package/build/color-picker/index.native.js.map +1 -1
  162. package/build/color-picker/input-with-slider.js.map +1 -1
  163. package/build/color-picker/legacy-adapter.js.map +1 -1
  164. package/build/color-picker/picker.js +4 -0
  165. package/build/color-picker/picker.js.map +1 -1
  166. package/build/color-picker/rgb-input.js.map +1 -1
  167. package/build/color-picker/saturation-picker.native.js +7 -3
  168. package/build/color-picker/saturation-picker.native.js.map +1 -1
  169. package/build/color-picker/styles.js +8 -8
  170. package/build/color-picker/styles.js.map +1 -1
  171. package/build/color-picker/types.js.map +1 -1
  172. package/build/color-picker/use-deprecated-props.js +13 -3
  173. package/build/color-picker/use-deprecated-props.js.map +1 -1
  174. package/build/combobox-control/index.js.map +1 -1
  175. package/build/combobox-control/styles.js +1 -1
  176. package/build/combobox-control/styles.js.map +1 -1
  177. package/build/combobox-control/types.js.map +1 -1
  178. package/build/composite/current/index.js.map +1 -1
  179. package/build/composite/index.js.map +1 -1
  180. package/build/composite/legacy/index.js +6 -1
  181. package/build/composite/legacy/index.js.map +1 -1
  182. package/build/composite/v2.js.map +1 -1
  183. package/build/confirm-dialog/component.js +1 -1
  184. package/build/confirm-dialog/component.js.map +1 -1
  185. package/build/confirm-dialog/index.js.map +1 -1
  186. package/build/confirm-dialog/styles.js +3 -1
  187. package/build/confirm-dialog/styles.js.map +1 -1
  188. package/build/confirm-dialog/types.js.map +1 -1
  189. package/build/context/constants.js.map +1 -1
  190. package/build/context/context-connect.js +6 -2
  191. package/build/context/context-connect.js.map +1 -1
  192. package/build/context/context-system-provider.js.map +1 -1
  193. package/build/context/get-styled-class-name-from-key.js.map +1 -1
  194. package/build/context/index.js.map +1 -1
  195. package/build/context/use-context-system.js.map +1 -1
  196. package/build/context/utils.js.map +1 -1
  197. package/build/context/wordpress-component.js.map +1 -1
  198. package/build/custom-gradient-picker/constants.js.map +1 -1
  199. package/build/custom-gradient-picker/gradient-bar/constants.js.map +1 -1
  200. package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  201. package/build/custom-gradient-picker/gradient-bar/index.js.map +1 -1
  202. package/build/custom-gradient-picker/gradient-bar/utils.js.map +1 -1
  203. package/build/custom-gradient-picker/index.js.map +1 -1
  204. package/build/custom-gradient-picker/index.native.js.map +1 -1
  205. package/build/custom-gradient-picker/serializer.js.map +1 -1
  206. package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.js +7 -3
  207. package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.js.map +1 -1
  208. package/build/custom-gradient-picker/types.js.map +1 -1
  209. package/build/custom-gradient-picker/utils.js.map +1 -1
  210. package/build/custom-select-control/index.js +6 -14
  211. package/build/custom-select-control/index.js.map +1 -1
  212. package/build/custom-select-control-v2/custom-select.js +1 -1
  213. package/build/custom-select-control-v2/custom-select.js.map +1 -1
  214. package/build/custom-select-control-v2/default-component/index.js +1 -1
  215. package/build/custom-select-control-v2/default-component/index.js.map +1 -1
  216. package/build/custom-select-control-v2/index.js.map +1 -1
  217. package/build/custom-select-control-v2/item.js +5 -1
  218. package/build/custom-select-control-v2/item.js.map +1 -1
  219. package/build/custom-select-control-v2/legacy-component/index.js +4 -2
  220. package/build/custom-select-control-v2/legacy-component/index.js.map +1 -1
  221. package/build/custom-select-control-v2/styles.js +15 -10
  222. package/build/custom-select-control-v2/styles.js.map +1 -1
  223. package/build/custom-select-control-v2/types.js.map +1 -1
  224. package/build/dashicon/index.js.map +1 -1
  225. package/build/dashicon/index.native.js +1 -1
  226. package/build/dashicon/index.native.js.map +1 -1
  227. package/build/dashicon/types.js.map +1 -1
  228. package/build/date-time/constants.js.map +1 -1
  229. package/build/date-time/date/index.js +4 -0
  230. package/build/date-time/date/index.js.map +1 -1
  231. package/build/date-time/date/styles.js +11 -7
  232. package/build/date-time/date/styles.js.map +1 -1
  233. package/build/date-time/date-time/index.js.map +1 -1
  234. package/build/date-time/date-time/styles.js +6 -2
  235. package/build/date-time/date-time/styles.js.map +1 -1
  236. package/build/date-time/index.js.map +1 -1
  237. package/build/date-time/time/index.js.map +1 -1
  238. package/build/date-time/time/styles.js +15 -11
  239. package/build/date-time/time/styles.js.map +1 -1
  240. package/build/date-time/time/timezone.js.map +1 -1
  241. package/build/date-time/types.js.map +1 -1
  242. package/build/date-time/utils.js.map +1 -1
  243. package/build/dimension-control/index.js +1 -1
  244. package/build/dimension-control/index.js.map +1 -1
  245. package/build/dimension-control/sizes.js +4 -0
  246. package/build/dimension-control/sizes.js.map +1 -1
  247. package/build/dimension-control/types.js.map +1 -1
  248. package/build/disabled/index.js.map +1 -1
  249. package/build/disabled/index.native.js.map +1 -1
  250. package/build/disabled/styles/disabled-styles.js +3 -1
  251. package/build/disabled/styles/disabled-styles.js.map +1 -1
  252. package/build/disabled/types.js.map +1 -1
  253. package/build/disclosure/index.js +5 -1
  254. package/build/disclosure/index.js.map +1 -1
  255. package/build/disclosure/types.js.map +1 -1
  256. package/build/divider/component.js +5 -1
  257. package/build/divider/component.js.map +1 -1
  258. package/build/divider/index.js.map +1 -1
  259. package/build/divider/styles.js +6 -2
  260. package/build/divider/styles.js.map +1 -1
  261. package/build/divider/types.js.map +1 -1
  262. package/build/draggable/index.js +4 -0
  263. package/build/draggable/index.js.map +1 -1
  264. package/build/draggable/index.native.js +1 -1
  265. package/build/draggable/index.native.js.map +1 -1
  266. package/build/draggable/types.js.map +1 -1
  267. package/build/drop-zone/index.js +72 -64
  268. package/build/drop-zone/index.js.map +1 -1
  269. package/build/drop-zone/provider.js.map +1 -1
  270. package/build/drop-zone/types.js.map +1 -1
  271. package/build/dropdown/dropdown-content-wrapper.js.map +1 -1
  272. package/build/dropdown/index.js.map +1 -1
  273. package/build/dropdown/index.native.js.map +1 -1
  274. package/build/dropdown/styles.js +6 -4
  275. package/build/dropdown/styles.js.map +1 -1
  276. package/build/dropdown/types.js.map +1 -1
  277. package/build/dropdown-menu/index.js.map +1 -1
  278. package/build/dropdown-menu/index.native.js.map +1 -1
  279. package/build/dropdown-menu/types.js.map +1 -1
  280. package/build/dropdown-menu-v2/index.js +1 -1
  281. package/build/dropdown-menu-v2/index.js.map +1 -1
  282. package/build/dropdown-menu-v2/styles.js +20 -15
  283. package/build/dropdown-menu-v2/styles.js.map +1 -1
  284. package/build/dropdown-menu-v2/types.js.map +1 -1
  285. package/build/duotone-picker/color-list-picker/index.js.map +1 -1
  286. package/build/duotone-picker/color-list-picker/types.js.map +1 -1
  287. package/build/duotone-picker/custom-duotone-bar.js.map +1 -1
  288. package/build/duotone-picker/duotone-picker.js.map +1 -1
  289. package/build/duotone-picker/duotone-swatch.js.map +1 -1
  290. package/build/duotone-picker/index.js.map +1 -1
  291. package/build/duotone-picker/types.js.map +1 -1
  292. package/build/duotone-picker/utils.js +7 -1
  293. package/build/duotone-picker/utils.js.map +1 -1
  294. package/build/elevation/component.js.map +1 -1
  295. package/build/elevation/hook.js +10 -7
  296. package/build/elevation/hook.js.map +1 -1
  297. package/build/elevation/index.js.map +1 -1
  298. package/build/elevation/styles.js +3 -1
  299. package/build/elevation/styles.js.map +1 -1
  300. package/build/elevation/types.js.map +1 -1
  301. package/build/external-link/index.js +7 -10
  302. package/build/external-link/index.js.map +1 -1
  303. package/build/external-link/index.native.js.map +1 -1
  304. package/build/external-link/types.js.map +1 -1
  305. package/build/flex/context.js.map +1 -1
  306. package/build/flex/flex/component.js.map +1 -1
  307. package/build/flex/flex/hook.js +5 -1
  308. package/build/flex/flex/hook.js.map +1 -1
  309. package/build/flex/flex/index.js.map +1 -1
  310. package/build/flex/flex-block/component.js.map +1 -1
  311. package/build/flex/flex-block/hook.js.map +1 -1
  312. package/build/flex/flex-block/index.js.map +1 -1
  313. package/build/flex/flex-item/component.js.map +1 -1
  314. package/build/flex/flex-item/hook.js +5 -1
  315. package/build/flex/flex-item/hook.js.map +1 -1
  316. package/build/flex/flex-item/index.js.map +1 -1
  317. package/build/flex/index.js +1 -1
  318. package/build/flex/index.js.map +1 -1
  319. package/build/flex/styles.js +3 -1
  320. package/build/flex/styles.js.map +1 -1
  321. package/build/flex/types.js.map +1 -1
  322. package/build/focal-point-picker/controls.js +3 -1
  323. package/build/focal-point-picker/controls.js.map +1 -1
  324. package/build/focal-point-picker/focal-point.js.map +1 -1
  325. package/build/focal-point-picker/focal-point.native.js.map +1 -1
  326. package/build/focal-point-picker/grid.js.map +1 -1
  327. package/build/focal-point-picker/index.js +21 -7
  328. package/build/focal-point-picker/index.js.map +1 -1
  329. package/build/focal-point-picker/index.native.js.map +1 -1
  330. package/build/focal-point-picker/media.js.map +1 -1
  331. package/build/focal-point-picker/styles/focal-point-picker-style.js +26 -22
  332. package/build/focal-point-picker/styles/focal-point-picker-style.js.map +1 -1
  333. package/build/focal-point-picker/styles/focal-point-style.js +1 -1
  334. package/build/focal-point-picker/styles/focal-point-style.js.map +1 -1
  335. package/build/focal-point-picker/tooltip/index.native.js +3 -8
  336. package/build/focal-point-picker/tooltip/index.native.js.map +1 -1
  337. package/build/focal-point-picker/types.js.map +1 -1
  338. package/build/focal-point-picker/utils.js +3 -1
  339. package/build/focal-point-picker/utils.js.map +1 -1
  340. package/build/focusable-iframe/index.js +4 -0
  341. package/build/focusable-iframe/index.js.map +1 -1
  342. package/build/focusable-iframe/types.js.map +1 -1
  343. package/build/font-size-picker/constants.js.map +1 -1
  344. package/build/font-size-picker/font-size-picker-select.js.map +1 -1
  345. package/build/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  346. package/build/font-size-picker/index.js +4 -3
  347. package/build/font-size-picker/index.js.map +1 -1
  348. package/build/font-size-picker/index.native.js +1 -1
  349. package/build/font-size-picker/index.native.js.map +1 -1
  350. package/build/font-size-picker/styles.js +10 -6
  351. package/build/font-size-picker/styles.js.map +1 -1
  352. package/build/font-size-picker/types.js.map +1 -1
  353. package/build/font-size-picker/utils.js.map +1 -1
  354. package/build/footer-message-control/index.native.js.map +1 -1
  355. package/build/form-file-upload/index.js.map +1 -1
  356. package/build/form-file-upload/types.js.map +1 -1
  357. package/build/form-toggle/index.js +13 -3
  358. package/build/form-toggle/index.js.map +1 -1
  359. package/build/form-toggle/types.js.map +1 -1
  360. package/build/form-token-field/index.js.map +1 -1
  361. package/build/form-token-field/styles.js +1 -1
  362. package/build/form-token-field/styles.js.map +1 -1
  363. package/build/form-token-field/suggestions-list.js +4 -0
  364. package/build/form-token-field/suggestions-list.js.map +1 -1
  365. package/build/form-token-field/token-input.js +4 -0
  366. package/build/form-token-field/token-input.js.map +1 -1
  367. package/build/form-token-field/token.js.map +1 -1
  368. package/build/form-token-field/types.js.map +1 -1
  369. package/build/gradient-picker/index.js.map +1 -1
  370. package/build/gradient-picker/types.js.map +1 -1
  371. package/build/grid/component.js.map +1 -1
  372. package/build/grid/hook.js +4 -0
  373. package/build/grid/hook.js.map +1 -1
  374. package/build/grid/index.js.map +1 -1
  375. package/build/grid/types.js.map +1 -1
  376. package/build/grid/utils.js.map +1 -1
  377. package/build/guide/icons.js.map +1 -1
  378. package/build/guide/index.js.map +1 -1
  379. package/build/guide/page-control.js.map +1 -1
  380. package/build/guide/page.js +4 -0
  381. package/build/guide/page.js.map +1 -1
  382. package/build/guide/types.js.map +1 -1
  383. package/build/h-stack/component.js.map +1 -1
  384. package/build/h-stack/hook.js.map +1 -1
  385. package/build/h-stack/index.js.map +1 -1
  386. package/build/h-stack/types.js.map +1 -1
  387. package/build/h-stack/utils.js.map +1 -1
  388. package/build/heading/component.js.map +1 -1
  389. package/build/heading/hook.js.map +1 -1
  390. package/build/heading/index.js.map +1 -1
  391. package/build/heading/types.js.map +1 -1
  392. package/build/higher-order/navigate-regions/index.js.map +1 -1
  393. package/build/higher-order/with-constrained-tabbing/index.js.map +1 -1
  394. package/build/higher-order/with-fallback-styles/index.js.map +1 -1
  395. package/build/higher-order/with-filters/index.js.map +1 -1
  396. package/build/higher-order/with-focus-outside/index.js.map +1 -1
  397. package/build/higher-order/with-focus-outside/index.native.js.map +1 -1
  398. package/build/higher-order/with-focus-return/index.js.map +1 -1
  399. package/build/higher-order/with-notices/index.js.map +1 -1
  400. package/build/higher-order/with-notices/types.js.map +1 -1
  401. package/build/higher-order/with-spoken-messages/index.js.map +1 -1
  402. package/build/icon/index.js.map +1 -1
  403. package/build/index.js +1 -1
  404. package/build/index.js.map +1 -1
  405. package/build/index.native.js +1 -1
  406. package/build/index.native.js.map +1 -1
  407. package/build/input-control/backdrop.js +2 -4
  408. package/build/input-control/backdrop.js.map +1 -1
  409. package/build/input-control/index.js +0 -4
  410. package/build/input-control/index.js.map +1 -1
  411. package/build/input-control/input-base.js +1 -5
  412. package/build/input-control/input-base.js.map +1 -1
  413. package/build/input-control/input-field.js +7 -10
  414. package/build/input-control/input-field.js.map +1 -1
  415. package/build/input-control/input-prefix-wrapper.js.map +1 -1
  416. package/build/input-control/input-suffix-wrapper.js.map +1 -1
  417. package/build/input-control/label.js +3 -1
  418. package/build/input-control/label.js.map +1 -1
  419. package/build/input-control/reducer/actions.js.map +1 -1
  420. package/build/input-control/reducer/reducer.js +5 -1
  421. package/build/input-control/reducer/reducer.js.map +1 -1
  422. package/build/input-control/reducer/state.js.map +1 -1
  423. package/build/input-control/styles/input-control-styles.js +92 -111
  424. package/build/input-control/styles/input-control-styles.js.map +1 -1
  425. package/build/input-control/types.js.map +1 -1
  426. package/build/input-control/utils.js +12 -4
  427. package/build/input-control/utils.js.map +1 -1
  428. package/build/isolated-event-container/index.js.map +1 -1
  429. package/build/item-group/context.js +4 -0
  430. package/build/item-group/context.js.map +1 -1
  431. package/build/item-group/index.js.map +1 -1
  432. package/build/item-group/item/component.js.map +1 -1
  433. package/build/item-group/item/hook.js +3 -3
  434. package/build/item-group/item/hook.js.map +1 -1
  435. package/build/item-group/item/index.js.map +1 -1
  436. package/build/item-group/item-group/component.js.map +1 -1
  437. package/build/item-group/item-group/hook.js +1 -1
  438. package/build/item-group/item-group/hook.js.map +1 -1
  439. package/build/item-group/item-group/index.js.map +1 -1
  440. package/build/item-group/styles.js +5 -1
  441. package/build/item-group/styles.js.map +1 -1
  442. package/build/item-group/types.js.map +1 -1
  443. package/build/keyboard-shortcuts/index.js +4 -0
  444. package/build/keyboard-shortcuts/index.js.map +1 -1
  445. package/build/keyboard-shortcuts/index.native.js.map +1 -1
  446. package/build/keyboard-shortcuts/types.js.map +1 -1
  447. package/build/lock-unlock.js.map +1 -1
  448. package/build/menu-group/index.js +4 -0
  449. package/build/menu-group/index.js.map +1 -1
  450. package/build/menu-group/types.js.map +1 -1
  451. package/build/menu-item/index.js.map +1 -1
  452. package/build/menu-item/types.js.map +1 -1
  453. package/build/menu-items-choice/index.js.map +1 -1
  454. package/build/menu-items-choice/types.js.map +1 -1
  455. package/build/mobile/audio-player/audio-url-parser.native.js.map +1 -1
  456. package/build/mobile/audio-player/index.native.js.map +1 -1
  457. package/build/mobile/autocompletion-items.native.js.map +1 -1
  458. package/build/mobile/badge/index.native.js.map +1 -1
  459. package/build/mobile/bottom-sheet/bottom-sheet-context.native.js.map +1 -1
  460. package/build/mobile/bottom-sheet/bottom-sheet-navigation/bottom-sheet-navigation-context.native.js.map +1 -1
  461. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +1 -1
  462. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
  463. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
  464. package/build/mobile/bottom-sheet/button.native.js.map +1 -1
  465. package/build/mobile/bottom-sheet/cell.native.js.map +1 -1
  466. package/build/mobile/bottom-sheet/chevron-back.native.js.map +1 -1
  467. package/build/mobile/bottom-sheet/color-cell.native.js.map +1 -1
  468. package/build/mobile/bottom-sheet/cycle-picker-cell.native.js.map +1 -1
  469. package/build/mobile/bottom-sheet/footer-message-cell.native.js.map +1 -1
  470. package/build/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js.map +1 -1
  471. package/build/mobile/bottom-sheet/index.native.js.map +1 -1
  472. package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
  473. package/build/mobile/bottom-sheet/link-cell.native.js.map +1 -1
  474. package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
  475. package/build/mobile/bottom-sheet/lock-icon/index.native.js.map +1 -1
  476. package/build/mobile/bottom-sheet/nav-bar/action-button.native.js.map +1 -1
  477. package/build/mobile/bottom-sheet/nav-bar/apply-button.native.js.map +1 -1
  478. package/build/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
  479. package/build/mobile/bottom-sheet/nav-bar/heading.native.js.map +1 -1
  480. package/build/mobile/bottom-sheet/nav-bar/index.native.js.map +1 -1
  481. package/build/mobile/bottom-sheet/picker-cell.native.js.map +1 -1
  482. package/build/mobile/bottom-sheet/radio-cell.native.js.map +1 -1
  483. package/build/mobile/bottom-sheet/range-cell.native.js.map +1 -1
  484. package/build/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
  485. package/build/mobile/bottom-sheet/ripple.native.js.map +1 -1
  486. package/build/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
  487. package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js.map +1 -1
  488. package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js.map +1 -1
  489. package/build/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
  490. package/build/mobile/bottom-sheet/switch-cell.native.js.map +1 -1
  491. package/build/mobile/bottom-sheet-select-control/index.native.js +5 -1
  492. package/build/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
  493. package/build/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
  494. package/build/mobile/clipboard/index.native.js.map +1 -1
  495. package/build/mobile/color-settings/gradient-picker-screen.native.js.map +1 -1
  496. package/build/mobile/color-settings/index.native.js.map +1 -1
  497. package/build/mobile/color-settings/palette.screen.native.js.map +1 -1
  498. package/build/mobile/color-settings/picker-screen.native.js.map +1 -1
  499. package/build/mobile/color-settings/utils.native.js.map +1 -1
  500. package/build/mobile/cycle-select-control/index.native.js.map +1 -1
  501. package/build/mobile/dashicons/index.native.js.map +1 -1
  502. package/build/mobile/focal-point-settings-panel/index.native.js.map +1 -1
  503. package/build/mobile/global-styles-context/index.native.js.map +1 -1
  504. package/build/mobile/global-styles-context/utils.native.js.map +1 -1
  505. package/build/mobile/gradient/index.native.js +3 -1
  506. package/build/mobile/gradient/index.native.js.map +1 -1
  507. package/build/mobile/gridicons/index.native.js.map +1 -1
  508. package/build/mobile/html-text-input/index.native.js.map +1 -1
  509. package/build/mobile/image/constants.js.map +1 -1
  510. package/build/mobile/image/icon-customize.native.js.map +1 -1
  511. package/build/mobile/image/icon-retry.native.js.map +1 -1
  512. package/build/mobile/image/image-editing-button.native.js.map +1 -1
  513. package/build/mobile/image/index.native.js.map +1 -1
  514. package/build/mobile/image/utils/index.native.js.map +1 -1
  515. package/build/mobile/keyboard-avoiding-view/index.android.js.map +1 -1
  516. package/build/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
  517. package/build/mobile/keyboard-aware-flat-list/index.android.js +9 -3
  518. package/build/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
  519. package/build/mobile/keyboard-aware-flat-list/index.ios.js +15 -13
  520. package/build/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
  521. package/build/mobile/keyboard-aware-flat-list/shared.native.js +33 -0
  522. package/build/mobile/keyboard-aware-flat-list/shared.native.js.map +1 -0
  523. package/build/mobile/keyboard-aware-flat-list/use-keyboard-offset.native.js.map +1 -1
  524. package/build/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js.map +1 -1
  525. package/build/mobile/keyboard-aware-flat-list/use-scroll-to-section.native.js.map +1 -1
  526. package/build/mobile/keyboard-aware-flat-list/use-scroll.native.js.map +1 -1
  527. package/build/mobile/keyboard-aware-flat-list/use-text-input-caret-position.native.js.map +1 -1
  528. package/build/mobile/keyboard-aware-flat-list/use-text-input-offset.native.js.map +1 -1
  529. package/build/mobile/layout-animation/index.native.js.map +1 -1
  530. package/build/mobile/link-picker/index.native.js.map +1 -1
  531. package/build/mobile/link-picker/link-picker-results.native.js.map +1 -1
  532. package/build/mobile/link-picker/link-picker-screen.native.js.map +1 -1
  533. package/build/mobile/link-settings/index.native.js.map +1 -1
  534. package/build/mobile/link-settings/link-rel.native.js.map +1 -1
  535. package/build/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
  536. package/build/mobile/link-settings/link-settings-screen.native.js.map +1 -1
  537. package/build/mobile/media-edit/index.native.js.map +1 -1
  538. package/build/mobile/picker/index.android.js.map +1 -1
  539. package/build/mobile/picker/index.ios.js.map +1 -1
  540. package/build/mobile/segmented-control/index.native.js.map +1 -1
  541. package/build/mobile/utils/alignments.native.js.map +1 -1
  542. package/build/mobile/utils/get-px-from-css-unit.native.js.map +1 -1
  543. package/build/mobile/utils/index.native.js.map +1 -1
  544. package/build/mobile/utils/use-is-floating-keyboard.native.js.map +1 -1
  545. package/build/mobile/utils/use-unit-converter-to-mobile.native.js.map +1 -1
  546. package/build/modal/aria-helper.js +9 -3
  547. package/build/modal/aria-helper.js.map +1 -1
  548. package/build/modal/index.js +7 -3
  549. package/build/modal/index.js.map +1 -1
  550. package/build/modal/types.js.map +1 -1
  551. package/build/navigable-container/container.js +4 -0
  552. package/build/navigable-container/container.js.map +1 -1
  553. package/build/navigable-container/index.js.map +1 -1
  554. package/build/navigable-container/menu.js.map +1 -1
  555. package/build/navigable-container/tabbable.js.map +1 -1
  556. package/build/navigable-container/types.js.map +1 -1
  557. package/build/navigation/back-button/index.js +4 -0
  558. package/build/navigation/back-button/index.js.map +1 -1
  559. package/build/navigation/constants.js.map +1 -1
  560. package/build/navigation/context.js.map +1 -1
  561. package/build/navigation/group/context.js +4 -0
  562. package/build/navigation/group/context.js.map +1 -1
  563. package/build/navigation/group/index.js +4 -0
  564. package/build/navigation/group/index.js.map +1 -1
  565. package/build/navigation/index.js +2 -0
  566. package/build/navigation/index.js.map +1 -1
  567. package/build/navigation/item/base-content.js.map +1 -1
  568. package/build/navigation/item/base.js.map +1 -1
  569. package/build/navigation/item/index.js +4 -0
  570. package/build/navigation/item/index.js.map +1 -1
  571. package/build/navigation/item/use-navigation-tree-item.js.map +1 -1
  572. package/build/navigation/menu/context.js +4 -0
  573. package/build/navigation/menu/context.js.map +1 -1
  574. package/build/navigation/menu/index.js +3 -0
  575. package/build/navigation/menu/index.js.map +1 -1
  576. package/build/navigation/menu/menu-title-search.js.map +1 -1
  577. package/build/navigation/menu/menu-title.js.map +1 -1
  578. package/build/navigation/menu/search-no-results-found.js.map +1 -1
  579. package/build/navigation/menu/use-navigation-tree-menu.js.map +1 -1
  580. package/build/navigation/styles/navigation-styles.js +31 -25
  581. package/build/navigation/styles/navigation-styles.js.map +1 -1
  582. package/build/navigation/types.js.map +1 -1
  583. package/build/navigation/use-create-navigation-tree.js.map +1 -1
  584. package/build/navigation/use-navigation-tree-nodes.js.map +1 -1
  585. package/build/navigation/utils.js.map +1 -1
  586. package/build/navigator/context.js +4 -0
  587. package/build/navigator/context.js.map +1 -1
  588. package/build/navigator/index.js.map +1 -1
  589. package/build/navigator/navigator-back-button/component.js.map +1 -1
  590. package/build/navigator/navigator-back-button/hook.js +4 -0
  591. package/build/navigator/navigator-back-button/hook.js.map +1 -1
  592. package/build/navigator/navigator-back-button/index.js.map +1 -1
  593. package/build/navigator/navigator-button/component.js.map +1 -1
  594. package/build/navigator/navigator-button/hook.js +4 -0
  595. package/build/navigator/navigator-button/hook.js.map +1 -1
  596. package/build/navigator/navigator-button/index.js.map +1 -1
  597. package/build/navigator/navigator-provider/component.js +9 -1
  598. package/build/navigator/navigator-provider/component.js.map +1 -1
  599. package/build/navigator/navigator-provider/index.js.map +1 -1
  600. package/build/navigator/navigator-screen/component.js +5 -1
  601. package/build/navigator/navigator-screen/component.js.map +1 -1
  602. package/build/navigator/navigator-screen/index.js.map +1 -1
  603. package/build/navigator/navigator-to-parent-button/component.js.map +1 -1
  604. package/build/navigator/navigator-to-parent-button/index.js.map +1 -1
  605. package/build/navigator/styles.js +3 -1
  606. package/build/navigator/styles.js.map +1 -1
  607. package/build/navigator/types.js.map +1 -1
  608. package/build/navigator/use-navigator.js.map +1 -1
  609. package/build/navigator/utils/router.js +4 -0
  610. package/build/navigator/utils/router.js.map +1 -1
  611. package/build/notice/index.js.map +1 -1
  612. package/build/notice/index.native.js.map +1 -1
  613. package/build/notice/list.js.map +1 -1
  614. package/build/notice/list.native.js.map +1 -1
  615. package/build/notice/types.js.map +1 -1
  616. package/build/number-control/index.js +1 -1
  617. package/build/number-control/index.js.map +1 -1
  618. package/build/number-control/styles/number-control-styles.js +7 -3
  619. package/build/number-control/styles/number-control-styles.js.map +1 -1
  620. package/build/number-control/types.js.map +1 -1
  621. package/build/palette-edit/index.js.map +1 -1
  622. package/build/palette-edit/styles.js +15 -11
  623. package/build/palette-edit/styles.js.map +1 -1
  624. package/build/palette-edit/types.js.map +1 -1
  625. package/build/panel/actions.native.js.map +1 -1
  626. package/build/panel/body.js +7 -1
  627. package/build/panel/body.js.map +1 -1
  628. package/build/panel/body.native.js.map +1 -1
  629. package/build/panel/bottom-separator-cover.native.js.map +1 -1
  630. package/build/panel/header.js.map +1 -1
  631. package/build/panel/index.js.map +1 -1
  632. package/build/panel/row.js +4 -0
  633. package/build/panel/row.js.map +1 -1
  634. package/build/panel/types.js.map +1 -1
  635. package/build/placeholder/index.js.map +1 -1
  636. package/build/placeholder/types.js.map +1 -1
  637. package/build/popover/index.js +5 -1
  638. package/build/popover/index.js.map +1 -1
  639. package/build/popover/overlay-middlewares.js +3 -1
  640. package/build/popover/overlay-middlewares.js.map +1 -1
  641. package/build/popover/types.js.map +1 -1
  642. package/build/popover/utils.js.map +1 -1
  643. package/build/private-apis.js.map +1 -1
  644. package/build/private-apis.native.js.map +1 -1
  645. package/build/progress-bar/index.js +5 -3
  646. package/build/progress-bar/index.js.map +1 -1
  647. package/build/progress-bar/styles.js +21 -12
  648. package/build/progress-bar/styles.js.map +1 -1
  649. package/build/progress-bar/types.js.map +1 -1
  650. package/build/query-controls/author-select.js +3 -1
  651. package/build/query-controls/author-select.js.map +1 -1
  652. package/build/query-controls/category-select.js.map +1 -1
  653. package/build/query-controls/index.js.map +1 -1
  654. package/build/query-controls/index.native.js.map +1 -1
  655. package/build/query-controls/terms.js.map +1 -1
  656. package/build/query-controls/types.js.map +1 -1
  657. package/build/radio-control/index.js.map +1 -1
  658. package/build/radio-control/index.native.js.map +1 -1
  659. package/build/radio-control/types.js.map +1 -1
  660. package/build/radio-group/context.js.map +1 -1
  661. package/build/radio-group/index.js +1 -1
  662. package/build/radio-group/index.js.map +1 -1
  663. package/build/radio-group/radio.js +1 -1
  664. package/build/radio-group/radio.js.map +1 -1
  665. package/build/radio-group/types.js.map +1 -1
  666. package/build/range-control/index.js.map +1 -1
  667. package/build/range-control/index.native.js.map +1 -1
  668. package/build/range-control/input-range.js.map +1 -1
  669. package/build/range-control/mark.js.map +1 -1
  670. package/build/range-control/rail.js +1 -1
  671. package/build/range-control/rail.js.map +1 -1
  672. package/build/range-control/styles/range-control-styles.js +49 -45
  673. package/build/range-control/styles/range-control-styles.js.map +1 -1
  674. package/build/range-control/tooltip.js.map +1 -1
  675. package/build/range-control/types.js.map +1 -1
  676. package/build/range-control/utils.js.map +1 -1
  677. package/build/resizable-box/index.js.map +1 -1
  678. package/build/resizable-box/index.native.js.map +1 -1
  679. package/build/resizable-box/resize-tooltip/index.js +3 -1
  680. package/build/resizable-box/resize-tooltip/index.js.map +1 -1
  681. package/build/resizable-box/resize-tooltip/label.js +7 -1
  682. package/build/resizable-box/resize-tooltip/label.js.map +1 -1
  683. package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js +9 -5
  684. package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js.map +1 -1
  685. package/build/resizable-box/resize-tooltip/utils.js +12 -4
  686. package/build/resizable-box/resize-tooltip/utils.js.map +1 -1
  687. package/build/responsive-wrapper/index.js +4 -0
  688. package/build/responsive-wrapper/index.js.map +1 -1
  689. package/build/responsive-wrapper/types.js.map +1 -1
  690. package/build/sandbox/index.js +4 -0
  691. package/build/sandbox/index.js.map +1 -1
  692. package/build/sandbox/index.native.js.map +1 -1
  693. package/build/sandbox/types.js.map +1 -1
  694. package/build/scroll-lock/index.js.map +1 -1
  695. package/build/scrollable/component.js.map +1 -1
  696. package/build/scrollable/hook.js +5 -1
  697. package/build/scrollable/hook.js.map +1 -1
  698. package/build/scrollable/index.js.map +1 -1
  699. package/build/scrollable/styles.js +5 -1
  700. package/build/scrollable/styles.js.map +1 -1
  701. package/build/scrollable/types.js.map +1 -1
  702. package/build/search-control/index.js.map +1 -1
  703. package/build/search-control/index.native.js.map +1 -1
  704. package/build/search-control/styles.js +2 -2
  705. package/build/search-control/styles.js.map +1 -1
  706. package/build/search-control/types.js.map +1 -1
  707. package/build/select-control/chevron-down.js.map +1 -1
  708. package/build/select-control/index.js +3 -16
  709. package/build/select-control/index.js.map +1 -1
  710. package/build/select-control/index.native.js.map +1 -1
  711. package/build/select-control/styles/select-control-styles.js +11 -9
  712. package/build/select-control/styles/select-control-styles.js.map +1 -1
  713. package/build/select-control/types.js.map +1 -1
  714. package/build/shortcut/index.js.map +1 -1
  715. package/build/shortcut/types.js.map +1 -1
  716. package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
  717. package/build/slot-fill/bubbles-virtually/slot-fill-context.js +5 -5
  718. package/build/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
  719. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js +7 -12
  720. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  721. package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
  722. package/build/slot-fill/bubbles-virtually/use-slot-fills.js +2 -12
  723. package/build/slot-fill/bubbles-virtually/use-slot-fills.js.map +1 -1
  724. package/build/slot-fill/bubbles-virtually/use-slot.js +2 -12
  725. package/build/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
  726. package/build/slot-fill/context.js +4 -0
  727. package/build/slot-fill/context.js.map +1 -1
  728. package/build/slot-fill/fill.js.map +1 -1
  729. package/build/slot-fill/index.js.map +1 -1
  730. package/build/slot-fill/index.native.js.map +1 -1
  731. package/build/slot-fill/provider.js.map +1 -1
  732. package/build/slot-fill/slot.js.map +1 -1
  733. package/build/slot-fill/types.js.map +1 -1
  734. package/build/slot-fill/use-slot.js.map +1 -1
  735. package/build/snackbar/index.js +1 -1
  736. package/build/snackbar/index.js.map +1 -1
  737. package/build/snackbar/list.js.map +1 -1
  738. package/build/snackbar/types.js.map +1 -1
  739. package/build/spacer/component.js.map +1 -1
  740. package/build/spacer/hook.js +4 -0
  741. package/build/spacer/hook.js.map +1 -1
  742. package/build/spacer/index.js.map +1 -1
  743. package/build/spacer/types.js.map +1 -1
  744. package/build/spinner/index.js.map +1 -1
  745. package/build/spinner/index.native.js.map +1 -1
  746. package/build/spinner/styles.js +8 -4
  747. package/build/spinner/styles.js.map +1 -1
  748. package/build/style-provider/index.js +5 -1
  749. package/build/style-provider/index.js.map +1 -1
  750. package/build/style-provider/index.native.js.map +1 -1
  751. package/build/style-provider/types.js.map +1 -1
  752. package/build/surface/component.js.map +1 -1
  753. package/build/surface/hook.js +1 -1
  754. package/build/surface/hook.js.map +1 -1
  755. package/build/surface/index.js.map +1 -1
  756. package/build/surface/styles.js.map +1 -1
  757. package/build/surface/types.js.map +1 -1
  758. package/build/tab-panel/index.js +1 -1
  759. package/build/tab-panel/index.js.map +1 -1
  760. package/build/tab-panel/types.js.map +1 -1
  761. package/build/tabs/context.js +4 -0
  762. package/build/tabs/context.js.map +1 -1
  763. package/build/tabs/index.js +12 -1
  764. package/build/tabs/index.js.map +1 -1
  765. package/build/tabs/styles.js +10 -5
  766. package/build/tabs/styles.js.map +1 -1
  767. package/build/tabs/tab.js +4 -0
  768. package/build/tabs/tab.js.map +1 -1
  769. package/build/tabs/tablist.js +5 -1
  770. package/build/tabs/tablist.js.map +1 -1
  771. package/build/tabs/tabpanel.js +4 -0
  772. package/build/tabs/tabpanel.js.map +1 -1
  773. package/build/tabs/types.js.map +1 -1
  774. package/build/text/component.js.map +1 -1
  775. package/build/text/get-line-height.js +6 -2
  776. package/build/text/get-line-height.js.map +1 -1
  777. package/build/text/hook.js +8 -2
  778. package/build/text/hook.js.map +1 -1
  779. package/build/text/index.js.map +1 -1
  780. package/build/text/index.native.js.map +1 -1
  781. package/build/text/styles/emotion-css.native.js.map +1 -1
  782. package/build/text/styles/font-family.native.js.map +1 -1
  783. package/build/text/styles/text-mixins.native.js.map +1 -1
  784. package/build/text/styles.js +12 -8
  785. package/build/text/styles.js.map +1 -1
  786. package/build/text/types.js.map +1 -1
  787. package/build/text/utils.js +29 -2
  788. package/build/text/utils.js.map +1 -1
  789. package/build/text-control/index.js.map +1 -1
  790. package/build/text-control/index.native.js.map +1 -1
  791. package/build/text-control/types.js.map +1 -1
  792. package/build/text-highlight/index.js.map +1 -1
  793. package/build/text-highlight/types.js.map +1 -1
  794. package/build/textarea-control/index.js.map +1 -1
  795. package/build/textarea-control/index.native.js.map +1 -1
  796. package/build/textarea-control/styles/textarea-control-styles.js +1 -1
  797. package/build/textarea-control/styles/textarea-control-styles.js.map +1 -1
  798. package/build/textarea-control/types.js.map +1 -1
  799. package/build/theme/color-algorithms.js +10 -2
  800. package/build/theme/color-algorithms.js.map +1 -1
  801. package/build/theme/index.js +4 -0
  802. package/build/theme/index.js.map +1 -1
  803. package/build/theme/styles.js +8 -2
  804. package/build/theme/styles.js.map +1 -1
  805. package/build/theme/types.js.map +1 -1
  806. package/build/tip/index.js +4 -0
  807. package/build/tip/index.js.map +1 -1
  808. package/build/tip/types.js.map +1 -1
  809. package/build/toggle-control/index.js +6 -4
  810. package/build/toggle-control/index.js.map +1 -1
  811. package/build/toggle-control/index.native.js.map +1 -1
  812. package/build/toggle-control/types.js.map +1 -1
  813. package/build/toggle-group-control/context.js +4 -0
  814. package/build/toggle-group-control/context.js.map +1 -1
  815. package/build/toggle-group-control/index.js.map +1 -1
  816. package/build/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -1
  817. package/build/toggle-group-control/toggle-group-control/as-radio-group.js +1 -1
  818. package/build/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
  819. package/build/toggle-group-control/toggle-group-control/component.js +5 -1
  820. package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
  821. package/build/toggle-group-control/toggle-group-control/index.js.map +1 -1
  822. package/build/toggle-group-control/toggle-group-control/styles.js +6 -2
  823. package/build/toggle-group-control/toggle-group-control/styles.js.map +1 -1
  824. package/build/toggle-group-control/toggle-group-control/utils.js +4 -0
  825. package/build/toggle-group-control/toggle-group-control/utils.js.map +1 -1
  826. package/build/toggle-group-control/toggle-group-control-option/component.js +4 -0
  827. package/build/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  828. package/build/toggle-group-control/toggle-group-control-option/index.js.map +1 -1
  829. package/build/toggle-group-control/toggle-group-control-option-base/component.js +8 -2
  830. package/build/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  831. package/build/toggle-group-control/toggle-group-control-option-base/index.js.map +1 -1
  832. package/build/toggle-group-control/toggle-group-control-option-base/styles.js +16 -12
  833. package/build/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
  834. package/build/toggle-group-control/toggle-group-control-option-icon/component.js +4 -0
  835. package/build/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  836. package/build/toggle-group-control/toggle-group-control-option-icon/index.js.map +1 -1
  837. package/build/toggle-group-control/types.js.map +1 -1
  838. package/build/toolbar/index.js.map +1 -1
  839. package/build/toolbar/toolbar/index.js.map +1 -1
  840. package/build/toolbar/toolbar/toolbar-container.js +1 -1
  841. package/build/toolbar/toolbar/toolbar-container.js.map +1 -1
  842. package/build/toolbar/toolbar/toolbar-container.native.js.map +1 -1
  843. package/build/toolbar/toolbar/types.js.map +1 -1
  844. package/build/toolbar/toolbar-button/index.js.map +1 -1
  845. package/build/toolbar/toolbar-button/toolbar-button-container.js.map +1 -1
  846. package/build/toolbar/toolbar-button/toolbar-button-container.native.js.map +1 -1
  847. package/build/toolbar/toolbar-button/types.js.map +1 -1
  848. package/build/toolbar/toolbar-context/index.js.map +1 -1
  849. package/build/toolbar/toolbar-dropdown-menu/index.js +4 -0
  850. package/build/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
  851. package/build/toolbar/toolbar-group/index.js.map +1 -1
  852. package/build/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
  853. package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js.map +1 -1
  854. package/build/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
  855. package/build/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
  856. package/build/toolbar/toolbar-group/types.js.map +1 -1
  857. package/build/toolbar/toolbar-item/index.js +1 -1
  858. package/build/toolbar/toolbar-item/index.js.map +1 -1
  859. package/build/toolbar/toolbar-item/index.native.js.map +1 -1
  860. package/build/toolbar/toolbar-item/types.js.map +1 -1
  861. package/build/tools-panel/context.js +4 -0
  862. package/build/tools-panel/context.js.map +1 -1
  863. package/build/tools-panel/index.js.map +1 -1
  864. package/build/tools-panel/styles.js +7 -3
  865. package/build/tools-panel/styles.js.map +1 -1
  866. package/build/tools-panel/tools-panel/component.js.map +1 -1
  867. package/build/tools-panel/tools-panel/hook.js +1 -1
  868. package/build/tools-panel/tools-panel/hook.js.map +1 -1
  869. package/build/tools-panel/tools-panel/index.js.map +1 -1
  870. package/build/tools-panel/tools-panel-header/component.js.map +1 -1
  871. package/build/tools-panel/tools-panel-header/hook.js +1 -1
  872. package/build/tools-panel/tools-panel-header/hook.js.map +1 -1
  873. package/build/tools-panel/tools-panel-header/index.js.map +1 -1
  874. package/build/tools-panel/tools-panel-item/component.js.map +1 -1
  875. package/build/tools-panel/tools-panel-item/hook.js +1 -1
  876. package/build/tools-panel/tools-panel-item/hook.js.map +1 -1
  877. package/build/tools-panel/tools-panel-item/index.js.map +1 -1
  878. package/build/tools-panel/types.js.map +1 -1
  879. package/build/tooltip/index.js +5 -1
  880. package/build/tooltip/index.js.map +1 -1
  881. package/build/tooltip/index.native.js.map +1 -1
  882. package/build/tooltip/types.js.map +1 -1
  883. package/build/tree-grid/cell.js.map +1 -1
  884. package/build/tree-grid/index.js.map +1 -1
  885. package/build/tree-grid/item.js.map +1 -1
  886. package/build/tree-grid/roving-tab-index-context.js.map +1 -1
  887. package/build/tree-grid/roving-tab-index-item.js +3 -1
  888. package/build/tree-grid/roving-tab-index-item.js.map +1 -1
  889. package/build/tree-grid/roving-tab-index.js.map +1 -1
  890. package/build/tree-grid/row.js +4 -0
  891. package/build/tree-grid/row.js.map +1 -1
  892. package/build/tree-grid/types.js.map +1 -1
  893. package/build/tree-select/index.js.map +1 -1
  894. package/build/tree-select/types.js.map +1 -1
  895. package/build/truncate/component.js.map +1 -1
  896. package/build/truncate/hook.js +9 -2
  897. package/build/truncate/hook.js.map +1 -1
  898. package/build/truncate/index.js.map +1 -1
  899. package/build/truncate/styles.js +3 -1
  900. package/build/truncate/styles.js.map +1 -1
  901. package/build/truncate/types.js.map +1 -1
  902. package/build/truncate/utils.js.map +1 -1
  903. package/build/unit-control/index.js +7 -1
  904. package/build/unit-control/index.js.map +1 -1
  905. package/build/unit-control/index.native.js.map +1 -1
  906. package/build/unit-control/styles/unit-control-styles.js +6 -3
  907. package/build/unit-control/styles/unit-control-styles.js.map +1 -1
  908. package/build/unit-control/types.js.map +1 -1
  909. package/build/unit-control/unit-select-control.js +4 -0
  910. package/build/unit-control/unit-select-control.js.map +1 -1
  911. package/build/unit-control/utils.js +4 -0
  912. package/build/unit-control/utils.js.map +1 -1
  913. package/build/utils/base-label.js +3 -1
  914. package/build/utils/base-label.js.map +1 -1
  915. package/build/utils/box-sizing.js +3 -1
  916. package/build/utils/box-sizing.js.map +1 -1
  917. package/build/utils/breakpoint-values.js.map +1 -1
  918. package/build/utils/breakpoint.js.map +1 -1
  919. package/build/utils/colors-values.js.map +1 -1
  920. package/build/utils/colors.js +21 -7
  921. package/build/utils/colors.js.map +1 -1
  922. package/build/utils/config-values.js.map +1 -1
  923. package/build/utils/font-size.js +3 -1
  924. package/build/utils/font-size.js.map +1 -1
  925. package/build/utils/font-values.js.map +1 -1
  926. package/build/utils/font.js.map +1 -1
  927. package/build/utils/get-valid-children.js +3 -1
  928. package/build/utils/get-valid-children.js.map +1 -1
  929. package/build/utils/hooks/emotion.d.js.map +1 -1
  930. package/build/utils/hooks/index.js.map +1 -1
  931. package/build/utils/hooks/use-controlled-state.js.map +1 -1
  932. package/build/utils/hooks/use-controlled-value.js.map +1 -1
  933. package/build/utils/hooks/use-cx.js +2 -0
  934. package/build/utils/hooks/use-cx.js.map +1 -1
  935. package/build/utils/hooks/use-update-effect.js.map +1 -1
  936. package/build/utils/index.js.map +1 -1
  937. package/build/utils/input/base.js +2 -3
  938. package/build/utils/input/base.js.map +1 -1
  939. package/build/utils/input/index.js.map +1 -1
  940. package/build/utils/input/input-control.js.map +1 -1
  941. package/build/utils/math.js.map +1 -1
  942. package/build/utils/reduce-motion.js +4 -0
  943. package/build/utils/reduce-motion.js.map +1 -1
  944. package/build/utils/rtl.js +2 -2
  945. package/build/utils/rtl.js.map +1 -1
  946. package/build/utils/space.js.map +1 -1
  947. package/build/utils/strings.js +11 -57
  948. package/build/utils/strings.js.map +1 -1
  949. package/build/utils/style-mixins.js.map +1 -1
  950. package/build/utils/types.js.map +1 -1
  951. package/build/utils/unit-values.js.map +1 -1
  952. package/build/utils/use-deprecated-props.js.map +1 -1
  953. package/build/utils/use-responsive-value.js +3 -1
  954. package/build/utils/use-responsive-value.js.map +1 -1
  955. package/build/utils/values.js.map +1 -1
  956. package/build/utils/with-ignore-ime-events.js.map +1 -1
  957. package/build/v-stack/component.js.map +1 -1
  958. package/build/v-stack/hook.js.map +1 -1
  959. package/build/v-stack/index.js.map +1 -1
  960. package/build/v-stack/types.js.map +1 -1
  961. package/build/view/component.js +30 -8
  962. package/build/view/component.js.map +1 -1
  963. package/build/view/index.js.map +1 -1
  964. package/build/visually-hidden/component.js.map +1 -1
  965. package/build/visually-hidden/index.js.map +1 -1
  966. package/build/visually-hidden/styles.js.map +1 -1
  967. package/build/visually-hidden/types.js.map +1 -1
  968. package/build/z-stack/component.js.map +1 -1
  969. package/build/z-stack/index.js.map +1 -1
  970. package/build/z-stack/styles.js +5 -3
  971. package/build/z-stack/styles.js.map +1 -1
  972. package/build/z-stack/types.js.map +1 -1
  973. package/build-module/alignment-matrix-control/cell.js.map +1 -1
  974. package/build-module/alignment-matrix-control/icon.js.map +1 -1
  975. package/build-module/alignment-matrix-control/index.js +3 -1
  976. package/build-module/alignment-matrix-control/index.js.map +1 -1
  977. package/build-module/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js +3 -3
  978. package/build-module/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js.map +1 -1
  979. package/build-module/alignment-matrix-control/styles/alignment-matrix-control-styles.js +13 -13
  980. package/build-module/alignment-matrix-control/styles/alignment-matrix-control-styles.js.map +1 -1
  981. package/build-module/alignment-matrix-control/types.js.map +1 -1
  982. package/build-module/alignment-matrix-control/utils.js +6 -2
  983. package/build-module/alignment-matrix-control/utils.js.map +1 -1
  984. package/build-module/angle-picker-control/angle-circle.js.map +1 -1
  985. package/build-module/angle-picker-control/index.js.map +1 -1
  986. package/build-module/angle-picker-control/styles/angle-picker-control-styles.js +3 -3
  987. package/build-module/angle-picker-control/styles/angle-picker-control-styles.js.map +1 -1
  988. package/build-module/angle-picker-control/types.js.map +1 -1
  989. package/build-module/animate/index.js.map +1 -1
  990. package/build-module/animate/types.js.map +1 -1
  991. package/build-module/animation/index.js.map +1 -1
  992. package/build-module/autocomplete/autocompleter-ui.js +3 -1
  993. package/build-module/autocomplete/autocompleter-ui.js.map +1 -1
  994. package/build-module/autocomplete/autocompleter-ui.native.js.map +1 -1
  995. package/build-module/autocomplete/background-view.android.js.map +1 -1
  996. package/build-module/autocomplete/background-view.ios.js.map +1 -1
  997. package/build-module/autocomplete/get-default-use-items.js.map +1 -1
  998. package/build-module/autocomplete/index.js +21 -7
  999. package/build-module/autocomplete/index.js.map +1 -1
  1000. package/build-module/autocomplete/types.js.map +1 -1
  1001. package/build-module/base-control/hooks.js.map +1 -1
  1002. package/build-module/base-control/index.js.map +1 -1
  1003. package/build-module/base-control/index.native.js.map +1 -1
  1004. package/build-module/base-control/styles/base-control-styles.js +5 -5
  1005. package/build-module/base-control/styles/base-control-styles.js.map +1 -1
  1006. package/build-module/base-control/types.js.map +1 -1
  1007. package/build-module/border-box-control/border-box-control/component.js.map +1 -1
  1008. package/build-module/border-box-control/border-box-control/hook.js.map +1 -1
  1009. package/build-module/border-box-control/border-box-control/index.js.map +1 -1
  1010. package/build-module/border-box-control/border-box-control-linked-button/component.js.map +1 -1
  1011. package/build-module/border-box-control/border-box-control-linked-button/hook.js.map +1 -1
  1012. package/build-module/border-box-control/border-box-control-linked-button/index.js.map +1 -1
  1013. package/build-module/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  1014. package/build-module/border-box-control/border-box-control-split-controls/hook.js.map +1 -1
  1015. package/build-module/border-box-control/border-box-control-split-controls/index.js.map +1 -1
  1016. package/build-module/border-box-control/border-box-control-visualizer/component.js.map +1 -1
  1017. package/build-module/border-box-control/border-box-control-visualizer/hook.js.map +1 -1
  1018. package/build-module/border-box-control/border-box-control-visualizer/index.js.map +1 -1
  1019. package/build-module/border-box-control/index.js.map +1 -1
  1020. package/build-module/border-box-control/styles.js.map +1 -1
  1021. package/build-module/border-box-control/types.js.map +1 -1
  1022. package/build-module/border-box-control/utils.js.map +1 -1
  1023. package/build-module/border-control/border-control/component.js.map +1 -1
  1024. package/build-module/border-control/border-control/hook.js.map +1 -1
  1025. package/build-module/border-control/border-control/index.js.map +1 -1
  1026. package/build-module/border-control/border-control-dropdown/component.js.map +1 -1
  1027. package/build-module/border-control/border-control-dropdown/hook.js.map +1 -1
  1028. package/build-module/border-control/border-control-dropdown/index.js.map +1 -1
  1029. package/build-module/border-control/border-control-style-picker/component.js.map +1 -1
  1030. package/build-module/border-control/border-control-style-picker/index.js.map +1 -1
  1031. package/build-module/border-control/index.js.map +1 -1
  1032. package/build-module/border-control/styles.js.map +1 -1
  1033. package/build-module/border-control/types.js.map +1 -1
  1034. package/build-module/box-control/all-input-control.js.map +1 -1
  1035. package/build-module/box-control/axial-input-controls.js.map +1 -1
  1036. package/build-module/box-control/icon.js.map +1 -1
  1037. package/build-module/box-control/index.js.map +1 -1
  1038. package/build-module/box-control/input-controls.js.map +1 -1
  1039. package/build-module/box-control/linked-button.js.map +1 -1
  1040. package/build-module/box-control/styles/box-control-icon-styles.js +3 -3
  1041. package/build-module/box-control/styles/box-control-icon-styles.js.map +1 -1
  1042. package/build-module/box-control/styles/box-control-styles.js +1 -1
  1043. package/build-module/box-control/styles/box-control-styles.js.map +1 -1
  1044. package/build-module/box-control/types.js.map +1 -1
  1045. package/build-module/box-control/utils.js.map +1 -1
  1046. package/build-module/button/deprecated.js.map +1 -1
  1047. package/build-module/button/index.js.map +1 -1
  1048. package/build-module/button/index.native.js.map +1 -1
  1049. package/build-module/button/types.js.map +1 -1
  1050. package/build-module/button-group/index.js.map +1 -1
  1051. package/build-module/button-group/types.js.map +1 -1
  1052. package/build-module/card/card/component.js.map +1 -1
  1053. package/build-module/card/card/hook.js.map +1 -1
  1054. package/build-module/card/card/index.js.map +1 -1
  1055. package/build-module/card/card-body/component.js.map +1 -1
  1056. package/build-module/card/card-body/hook.js.map +1 -1
  1057. package/build-module/card/card-body/index.js.map +1 -1
  1058. package/build-module/card/card-divider/component.js.map +1 -1
  1059. package/build-module/card/card-divider/hook.js.map +1 -1
  1060. package/build-module/card/card-divider/index.js.map +1 -1
  1061. package/build-module/card/card-footer/component.js.map +1 -1
  1062. package/build-module/card/card-footer/hook.js.map +1 -1
  1063. package/build-module/card/card-footer/index.js.map +1 -1
  1064. package/build-module/card/card-header/component.js.map +1 -1
  1065. package/build-module/card/card-header/hook.js.map +1 -1
  1066. package/build-module/card/card-header/index.js.map +1 -1
  1067. package/build-module/card/card-media/component.js.map +1 -1
  1068. package/build-module/card/card-media/hook.js.map +1 -1
  1069. package/build-module/card/card-media/index.js.map +1 -1
  1070. package/build-module/card/context.js.map +1 -1
  1071. package/build-module/card/index.js.map +1 -1
  1072. package/build-module/card/styles.js.map +1 -1
  1073. package/build-module/card/types.js.map +1 -1
  1074. package/build-module/checkbox-control/index.js +9 -2
  1075. package/build-module/checkbox-control/index.js.map +1 -1
  1076. package/build-module/checkbox-control/types.js.map +1 -1
  1077. package/build-module/circular-option-picker/circular-option-picker-actions.js.map +1 -1
  1078. package/build-module/circular-option-picker/circular-option-picker-context.js.map +1 -1
  1079. package/build-module/circular-option-picker/circular-option-picker-option-group.js.map +1 -1
  1080. package/build-module/circular-option-picker/circular-option-picker-option.js.map +1 -1
  1081. package/build-module/circular-option-picker/circular-option-picker.js.map +1 -1
  1082. package/build-module/circular-option-picker/index.js.map +1 -1
  1083. package/build-module/circular-option-picker/types.js.map +1 -1
  1084. package/build-module/clipboard-button/index.js.map +1 -1
  1085. package/build-module/clipboard-button/types.js.map +1 -1
  1086. package/build-module/color-control/index.native.js.map +1 -1
  1087. package/build-module/color-indicator/index.js.map +1 -1
  1088. package/build-module/color-indicator/index.native.js.map +1 -1
  1089. package/build-module/color-indicator/types.js.map +1 -1
  1090. package/build-module/color-palette/index.js.map +1 -1
  1091. package/build-module/color-palette/index.native.js +4 -3
  1092. package/build-module/color-palette/index.native.js.map +1 -1
  1093. package/build-module/color-palette/styles.js.map +1 -1
  1094. package/build-module/color-palette/types.js.map +1 -1
  1095. package/build-module/color-palette/utils.js.map +1 -1
  1096. package/build-module/color-picker/color-copy-button.js.map +1 -1
  1097. package/build-module/color-picker/color-input.js.map +1 -1
  1098. package/build-module/color-picker/component.js.map +1 -1
  1099. package/build-module/color-picker/hex-input.js +3 -1
  1100. package/build-module/color-picker/hex-input.js.map +1 -1
  1101. package/build-module/color-picker/hsl-input.js.map +1 -1
  1102. package/build-module/color-picker/hsv-color-picker.native.js.map +1 -1
  1103. package/build-module/color-picker/hue-picker.native.js +6 -2
  1104. package/build-module/color-picker/hue-picker.native.js.map +1 -1
  1105. package/build-module/color-picker/index.js.map +1 -1
  1106. package/build-module/color-picker/index.native.js +9 -3
  1107. package/build-module/color-picker/index.native.js.map +1 -1
  1108. package/build-module/color-picker/input-with-slider.js.map +1 -1
  1109. package/build-module/color-picker/legacy-adapter.js.map +1 -1
  1110. package/build-module/color-picker/picker.js.map +1 -1
  1111. package/build-module/color-picker/rgb-input.js.map +1 -1
  1112. package/build-module/color-picker/saturation-picker.native.js +6 -2
  1113. package/build-module/color-picker/saturation-picker.native.js.map +1 -1
  1114. package/build-module/color-picker/styles.js +2 -2
  1115. package/build-module/color-picker/styles.js.map +1 -1
  1116. package/build-module/color-picker/types.js.map +1 -1
  1117. package/build-module/color-picker/use-deprecated-props.js +9 -3
  1118. package/build-module/color-picker/use-deprecated-props.js.map +1 -1
  1119. package/build-module/combobox-control/index.js.map +1 -1
  1120. package/build-module/combobox-control/styles.js.map +1 -1
  1121. package/build-module/combobox-control/types.js.map +1 -1
  1122. package/build-module/composite/current/index.js.map +1 -1
  1123. package/build-module/composite/index.js.map +1 -1
  1124. package/build-module/composite/legacy/index.js +6 -0
  1125. package/build-module/composite/legacy/index.js.map +1 -1
  1126. package/build-module/composite/v2.js.map +1 -1
  1127. package/build-module/confirm-dialog/component.js.map +1 -1
  1128. package/build-module/confirm-dialog/index.js.map +1 -1
  1129. package/build-module/confirm-dialog/styles.js.map +1 -1
  1130. package/build-module/confirm-dialog/types.js.map +1 -1
  1131. package/build-module/context/constants.js.map +1 -1
  1132. package/build-module/context/context-connect.js +6 -2
  1133. package/build-module/context/context-connect.js.map +1 -1
  1134. package/build-module/context/context-system-provider.js.map +1 -1
  1135. package/build-module/context/get-styled-class-name-from-key.js.map +1 -1
  1136. package/build-module/context/index.js.map +1 -1
  1137. package/build-module/context/use-context-system.js.map +1 -1
  1138. package/build-module/context/utils.js.map +1 -1
  1139. package/build-module/context/wordpress-component.js.map +1 -1
  1140. package/build-module/custom-gradient-picker/constants.js.map +1 -1
  1141. package/build-module/custom-gradient-picker/gradient-bar/constants.js.map +1 -1
  1142. package/build-module/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  1143. package/build-module/custom-gradient-picker/gradient-bar/index.js.map +1 -1
  1144. package/build-module/custom-gradient-picker/gradient-bar/utils.js.map +1 -1
  1145. package/build-module/custom-gradient-picker/index.js.map +1 -1
  1146. package/build-module/custom-gradient-picker/index.native.js.map +1 -1
  1147. package/build-module/custom-gradient-picker/serializer.js.map +1 -1
  1148. package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.js.map +1 -1
  1149. package/build-module/custom-gradient-picker/types.js.map +1 -1
  1150. package/build-module/custom-gradient-picker/utils.js.map +1 -1
  1151. package/build-module/custom-select-control/index.js +7 -15
  1152. package/build-module/custom-select-control/index.js.map +1 -1
  1153. package/build-module/custom-select-control-v2/custom-select.js.map +1 -1
  1154. package/build-module/custom-select-control-v2/default-component/index.js.map +1 -1
  1155. package/build-module/custom-select-control-v2/index.js.map +1 -1
  1156. package/build-module/custom-select-control-v2/item.js.map +1 -1
  1157. package/build-module/custom-select-control-v2/legacy-component/index.js +3 -1
  1158. package/build-module/custom-select-control-v2/legacy-component/index.js.map +1 -1
  1159. package/build-module/custom-select-control-v2/styles.js +3 -3
  1160. package/build-module/custom-select-control-v2/styles.js.map +1 -1
  1161. package/build-module/custom-select-control-v2/types.js.map +1 -1
  1162. package/build-module/dashicon/index.js.map +1 -1
  1163. package/build-module/dashicon/index.native.js.map +1 -1
  1164. package/build-module/dashicon/types.js.map +1 -1
  1165. package/build-module/date-time/constants.js.map +1 -1
  1166. package/build-module/date-time/date/index.js.map +1 -1
  1167. package/build-module/date-time/date/styles.js +3 -3
  1168. package/build-module/date-time/date/styles.js.map +1 -1
  1169. package/build-module/date-time/date-time/index.js.map +1 -1
  1170. package/build-module/date-time/date-time/styles.js.map +1 -1
  1171. package/build-module/date-time/index.js.map +1 -1
  1172. package/build-module/date-time/time/index.js.map +1 -1
  1173. package/build-module/date-time/time/styles.js +6 -6
  1174. package/build-module/date-time/time/styles.js.map +1 -1
  1175. package/build-module/date-time/time/timezone.js.map +1 -1
  1176. package/build-module/date-time/types.js.map +1 -1
  1177. package/build-module/date-time/utils.js.map +1 -1
  1178. package/build-module/dimension-control/index.js.map +1 -1
  1179. package/build-module/dimension-control/sizes.js.map +1 -1
  1180. package/build-module/dimension-control/types.js.map +1 -1
  1181. package/build-module/disabled/index.js.map +1 -1
  1182. package/build-module/disabled/index.native.js.map +1 -1
  1183. package/build-module/disabled/styles/disabled-styles.js.map +1 -1
  1184. package/build-module/disabled/types.js.map +1 -1
  1185. package/build-module/disclosure/index.js.map +1 -1
  1186. package/build-module/disclosure/types.js.map +1 -1
  1187. package/build-module/divider/component.js +5 -0
  1188. package/build-module/divider/component.js.map +1 -1
  1189. package/build-module/divider/index.js.map +1 -1
  1190. package/build-module/divider/styles.js +1 -1
  1191. package/build-module/divider/styles.js.map +1 -1
  1192. package/build-module/divider/types.js.map +1 -1
  1193. package/build-module/draggable/index.js.map +1 -1
  1194. package/build-module/draggable/index.native.js.map +1 -1
  1195. package/build-module/draggable/types.js.map +1 -1
  1196. package/build-module/drop-zone/index.js +72 -64
  1197. package/build-module/drop-zone/index.js.map +1 -1
  1198. package/build-module/drop-zone/provider.js.map +1 -1
  1199. package/build-module/drop-zone/types.js.map +1 -1
  1200. package/build-module/dropdown/dropdown-content-wrapper.js.map +1 -1
  1201. package/build-module/dropdown/index.js.map +1 -1
  1202. package/build-module/dropdown/index.native.js.map +1 -1
  1203. package/build-module/dropdown/styles.js +6 -4
  1204. package/build-module/dropdown/styles.js.map +1 -1
  1205. package/build-module/dropdown/types.js.map +1 -1
  1206. package/build-module/dropdown-menu/index.js.map +1 -1
  1207. package/build-module/dropdown-menu/index.native.js.map +1 -1
  1208. package/build-module/dropdown-menu/types.js.map +1 -1
  1209. package/build-module/dropdown-menu-v2/index.js.map +1 -1
  1210. package/build-module/dropdown-menu-v2/styles.js +4 -4
  1211. package/build-module/dropdown-menu-v2/styles.js.map +1 -1
  1212. package/build-module/dropdown-menu-v2/types.js.map +1 -1
  1213. package/build-module/duotone-picker/color-list-picker/index.js.map +1 -1
  1214. package/build-module/duotone-picker/color-list-picker/types.js.map +1 -1
  1215. package/build-module/duotone-picker/custom-duotone-bar.js.map +1 -1
  1216. package/build-module/duotone-picker/duotone-picker.js.map +1 -1
  1217. package/build-module/duotone-picker/duotone-swatch.js.map +1 -1
  1218. package/build-module/duotone-picker/index.js.map +1 -1
  1219. package/build-module/duotone-picker/types.js.map +1 -1
  1220. package/build-module/duotone-picker/utils.js +3 -1
  1221. package/build-module/duotone-picker/utils.js.map +1 -1
  1222. package/build-module/elevation/component.js.map +1 -1
  1223. package/build-module/elevation/hook.js +6 -7
  1224. package/build-module/elevation/hook.js.map +1 -1
  1225. package/build-module/elevation/index.js.map +1 -1
  1226. package/build-module/elevation/styles.js.map +1 -1
  1227. package/build-module/elevation/types.js.map +1 -1
  1228. package/build-module/external-link/index.js +8 -10
  1229. package/build-module/external-link/index.js.map +1 -1
  1230. package/build-module/external-link/index.native.js.map +1 -1
  1231. package/build-module/external-link/types.js.map +1 -1
  1232. package/build-module/flex/context.js.map +1 -1
  1233. package/build-module/flex/flex/component.js.map +1 -1
  1234. package/build-module/flex/flex/hook.js.map +1 -1
  1235. package/build-module/flex/flex/index.js.map +1 -1
  1236. package/build-module/flex/flex-block/component.js.map +1 -1
  1237. package/build-module/flex/flex-block/hook.js.map +1 -1
  1238. package/build-module/flex/flex-block/index.js.map +1 -1
  1239. package/build-module/flex/flex-item/component.js.map +1 -1
  1240. package/build-module/flex/flex-item/hook.js.map +1 -1
  1241. package/build-module/flex/flex-item/index.js.map +1 -1
  1242. package/build-module/flex/index.js.map +1 -1
  1243. package/build-module/flex/styles.js.map +1 -1
  1244. package/build-module/flex/types.js.map +1 -1
  1245. package/build-module/focal-point-picker/controls.js +3 -1
  1246. package/build-module/focal-point-picker/controls.js.map +1 -1
  1247. package/build-module/focal-point-picker/focal-point.js.map +1 -1
  1248. package/build-module/focal-point-picker/focal-point.native.js.map +1 -1
  1249. package/build-module/focal-point-picker/grid.js.map +1 -1
  1250. package/build-module/focal-point-picker/index.js +21 -7
  1251. package/build-module/focal-point-picker/index.js.map +1 -1
  1252. package/build-module/focal-point-picker/index.native.js.map +1 -1
  1253. package/build-module/focal-point-picker/media.js.map +1 -1
  1254. package/build-module/focal-point-picker/styles/focal-point-picker-style.js +18 -18
  1255. package/build-module/focal-point-picker/styles/focal-point-picker-style.js.map +1 -1
  1256. package/build-module/focal-point-picker/styles/focal-point-style.js +1 -1
  1257. package/build-module/focal-point-picker/styles/focal-point-style.js.map +1 -1
  1258. package/build-module/focal-point-picker/tooltip/index.native.js +3 -8
  1259. package/build-module/focal-point-picker/tooltip/index.native.js.map +1 -1
  1260. package/build-module/focal-point-picker/types.js.map +1 -1
  1261. package/build-module/focal-point-picker/utils.js +3 -1
  1262. package/build-module/focal-point-picker/utils.js.map +1 -1
  1263. package/build-module/focusable-iframe/index.js.map +1 -1
  1264. package/build-module/focusable-iframe/types.js.map +1 -1
  1265. package/build-module/font-size-picker/constants.js.map +1 -1
  1266. package/build-module/font-size-picker/font-size-picker-select.js.map +1 -1
  1267. package/build-module/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  1268. package/build-module/font-size-picker/index.js +3 -2
  1269. package/build-module/font-size-picker/index.js.map +1 -1
  1270. package/build-module/font-size-picker/index.native.js.map +1 -1
  1271. package/build-module/font-size-picker/styles.js +2 -2
  1272. package/build-module/font-size-picker/styles.js.map +1 -1
  1273. package/build-module/font-size-picker/types.js.map +1 -1
  1274. package/build-module/font-size-picker/utils.js.map +1 -1
  1275. package/build-module/footer-message-control/index.native.js.map +1 -1
  1276. package/build-module/form-file-upload/index.js.map +1 -1
  1277. package/build-module/form-file-upload/types.js.map +1 -1
  1278. package/build-module/form-toggle/index.js +8 -3
  1279. package/build-module/form-toggle/index.js.map +1 -1
  1280. package/build-module/form-toggle/types.js.map +1 -1
  1281. package/build-module/form-token-field/index.js.map +1 -1
  1282. package/build-module/form-token-field/styles.js.map +1 -1
  1283. package/build-module/form-token-field/suggestions-list.js.map +1 -1
  1284. package/build-module/form-token-field/token-input.js.map +1 -1
  1285. package/build-module/form-token-field/token.js.map +1 -1
  1286. package/build-module/form-token-field/types.js.map +1 -1
  1287. package/build-module/gradient-picker/index.js.map +1 -1
  1288. package/build-module/gradient-picker/types.js.map +1 -1
  1289. package/build-module/grid/component.js.map +1 -1
  1290. package/build-module/grid/hook.js.map +1 -1
  1291. package/build-module/grid/index.js.map +1 -1
  1292. package/build-module/grid/types.js.map +1 -1
  1293. package/build-module/grid/utils.js.map +1 -1
  1294. package/build-module/guide/icons.js.map +1 -1
  1295. package/build-module/guide/index.js.map +1 -1
  1296. package/build-module/guide/page-control.js.map +1 -1
  1297. package/build-module/guide/page.js.map +1 -1
  1298. package/build-module/guide/types.js.map +1 -1
  1299. package/build-module/h-stack/component.js.map +1 -1
  1300. package/build-module/h-stack/hook.js.map +1 -1
  1301. package/build-module/h-stack/index.js.map +1 -1
  1302. package/build-module/h-stack/types.js.map +1 -1
  1303. package/build-module/h-stack/utils.js.map +1 -1
  1304. package/build-module/heading/component.js.map +1 -1
  1305. package/build-module/heading/hook.js.map +1 -1
  1306. package/build-module/heading/index.js.map +1 -1
  1307. package/build-module/heading/types.js.map +1 -1
  1308. package/build-module/higher-order/navigate-regions/index.js.map +1 -1
  1309. package/build-module/higher-order/with-constrained-tabbing/index.js.map +1 -1
  1310. package/build-module/higher-order/with-fallback-styles/index.js.map +1 -1
  1311. package/build-module/higher-order/with-filters/index.js.map +1 -1
  1312. package/build-module/higher-order/with-focus-outside/index.js.map +1 -1
  1313. package/build-module/higher-order/with-focus-outside/index.native.js.map +1 -1
  1314. package/build-module/higher-order/with-focus-return/index.js.map +1 -1
  1315. package/build-module/higher-order/with-notices/index.js.map +1 -1
  1316. package/build-module/higher-order/with-notices/types.js.map +1 -1
  1317. package/build-module/higher-order/with-spoken-messages/index.js.map +1 -1
  1318. package/build-module/icon/index.js.map +1 -1
  1319. package/build-module/index.js.map +1 -1
  1320. package/build-module/index.native.js.map +1 -1
  1321. package/build-module/input-control/backdrop.js +2 -4
  1322. package/build-module/input-control/backdrop.js.map +1 -1
  1323. package/build-module/input-control/index.js +1 -5
  1324. package/build-module/input-control/index.js.map +1 -1
  1325. package/build-module/input-control/input-base.js +1 -5
  1326. package/build-module/input-control/input-base.js.map +1 -1
  1327. package/build-module/input-control/input-field.js +3 -10
  1328. package/build-module/input-control/input-field.js.map +1 -1
  1329. package/build-module/input-control/input-prefix-wrapper.js.map +1 -1
  1330. package/build-module/input-control/input-suffix-wrapper.js.map +1 -1
  1331. package/build-module/input-control/label.js +3 -1
  1332. package/build-module/input-control/label.js.map +1 -1
  1333. package/build-module/input-control/reducer/actions.js.map +1 -1
  1334. package/build-module/input-control/reducer/reducer.js.map +1 -1
  1335. package/build-module/input-control/reducer/state.js.map +1 -1
  1336. package/build-module/input-control/styles/input-control-styles.js +88 -107
  1337. package/build-module/input-control/styles/input-control-styles.js.map +1 -1
  1338. package/build-module/input-control/types.js.map +1 -1
  1339. package/build-module/input-control/utils.js +8 -4
  1340. package/build-module/input-control/utils.js.map +1 -1
  1341. package/build-module/isolated-event-container/index.js.map +1 -1
  1342. package/build-module/item-group/context.js.map +1 -1
  1343. package/build-module/item-group/index.js.map +1 -1
  1344. package/build-module/item-group/item/component.js.map +1 -1
  1345. package/build-module/item-group/item/hook.js +0 -4
  1346. package/build-module/item-group/item/hook.js.map +1 -1
  1347. package/build-module/item-group/item/index.js.map +1 -1
  1348. package/build-module/item-group/item-group/component.js.map +1 -1
  1349. package/build-module/item-group/item-group/hook.js.map +1 -1
  1350. package/build-module/item-group/item-group/index.js.map +1 -1
  1351. package/build-module/item-group/styles.js.map +1 -1
  1352. package/build-module/item-group/types.js.map +1 -1
  1353. package/build-module/keyboard-shortcuts/index.js.map +1 -1
  1354. package/build-module/keyboard-shortcuts/index.native.js.map +1 -1
  1355. package/build-module/keyboard-shortcuts/types.js.map +1 -1
  1356. package/build-module/lock-unlock.js.map +1 -1
  1357. package/build-module/menu-group/index.js.map +1 -1
  1358. package/build-module/menu-group/types.js.map +1 -1
  1359. package/build-module/menu-item/index.js.map +1 -1
  1360. package/build-module/menu-item/types.js.map +1 -1
  1361. package/build-module/menu-items-choice/index.js.map +1 -1
  1362. package/build-module/menu-items-choice/types.js.map +1 -1
  1363. package/build-module/mobile/audio-player/audio-url-parser.native.js.map +1 -1
  1364. package/build-module/mobile/audio-player/index.native.js.map +1 -1
  1365. package/build-module/mobile/autocompletion-items.native.js.map +1 -1
  1366. package/build-module/mobile/badge/index.native.js.map +1 -1
  1367. package/build-module/mobile/bottom-sheet/bottom-sheet-context.native.js.map +1 -1
  1368. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/bottom-sheet-navigation-context.native.js.map +1 -1
  1369. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
  1370. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
  1371. package/build-module/mobile/bottom-sheet/button.native.js.map +1 -1
  1372. package/build-module/mobile/bottom-sheet/cell.native.js.map +1 -1
  1373. package/build-module/mobile/bottom-sheet/chevron-back.native.js.map +1 -1
  1374. package/build-module/mobile/bottom-sheet/color-cell.native.js.map +1 -1
  1375. package/build-module/mobile/bottom-sheet/cycle-picker-cell.native.js.map +1 -1
  1376. package/build-module/mobile/bottom-sheet/footer-message-cell.native.js.map +1 -1
  1377. package/build-module/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js.map +1 -1
  1378. package/build-module/mobile/bottom-sheet/index.native.js.map +1 -1
  1379. package/build-module/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
  1380. package/build-module/mobile/bottom-sheet/link-cell.native.js.map +1 -1
  1381. package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
  1382. package/build-module/mobile/bottom-sheet/lock-icon/index.native.js.map +1 -1
  1383. package/build-module/mobile/bottom-sheet/nav-bar/action-button.native.js.map +1 -1
  1384. package/build-module/mobile/bottom-sheet/nav-bar/apply-button.native.js.map +1 -1
  1385. package/build-module/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
  1386. package/build-module/mobile/bottom-sheet/nav-bar/heading.native.js.map +1 -1
  1387. package/build-module/mobile/bottom-sheet/nav-bar/index.native.js.map +1 -1
  1388. package/build-module/mobile/bottom-sheet/picker-cell.native.js.map +1 -1
  1389. package/build-module/mobile/bottom-sheet/radio-cell.native.js.map +1 -1
  1390. package/build-module/mobile/bottom-sheet/range-cell.native.js.map +1 -1
  1391. package/build-module/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
  1392. package/build-module/mobile/bottom-sheet/ripple.native.js.map +1 -1
  1393. package/build-module/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
  1394. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.android.js.map +1 -1
  1395. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.ios.js.map +1 -1
  1396. package/build-module/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
  1397. package/build-module/mobile/bottom-sheet/switch-cell.native.js.map +1 -1
  1398. package/build-module/mobile/bottom-sheet-select-control/index.native.js +5 -1
  1399. package/build-module/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
  1400. package/build-module/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
  1401. package/build-module/mobile/clipboard/index.native.js.map +1 -1
  1402. package/build-module/mobile/color-settings/gradient-picker-screen.native.js.map +1 -1
  1403. package/build-module/mobile/color-settings/index.native.js.map +1 -1
  1404. package/build-module/mobile/color-settings/palette.screen.native.js.map +1 -1
  1405. package/build-module/mobile/color-settings/picker-screen.native.js.map +1 -1
  1406. package/build-module/mobile/color-settings/utils.native.js.map +1 -1
  1407. package/build-module/mobile/cycle-select-control/index.native.js.map +1 -1
  1408. package/build-module/mobile/dashicons/index.native.js.map +1 -1
  1409. package/build-module/mobile/focal-point-settings-panel/index.native.js.map +1 -1
  1410. package/build-module/mobile/global-styles-context/index.native.js.map +1 -1
  1411. package/build-module/mobile/global-styles-context/utils.native.js.map +1 -1
  1412. package/build-module/mobile/gradient/index.native.js +3 -1
  1413. package/build-module/mobile/gradient/index.native.js.map +1 -1
  1414. package/build-module/mobile/gridicons/index.native.js.map +1 -1
  1415. package/build-module/mobile/html-text-input/index.native.js.map +1 -1
  1416. package/build-module/mobile/image/constants.js.map +1 -1
  1417. package/build-module/mobile/image/icon-customize.native.js.map +1 -1
  1418. package/build-module/mobile/image/icon-retry.native.js.map +1 -1
  1419. package/build-module/mobile/image/image-editing-button.native.js.map +1 -1
  1420. package/build-module/mobile/image/index.native.js.map +1 -1
  1421. package/build-module/mobile/image/utils/index.native.js.map +1 -1
  1422. package/build-module/mobile/keyboard-avoiding-view/index.android.js.map +1 -1
  1423. package/build-module/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
  1424. package/build-module/mobile/keyboard-aware-flat-list/index.android.js +9 -3
  1425. package/build-module/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
  1426. package/build-module/mobile/keyboard-aware-flat-list/index.ios.js +16 -15
  1427. package/build-module/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
  1428. package/build-module/mobile/keyboard-aware-flat-list/shared.native.js +27 -0
  1429. package/build-module/mobile/keyboard-aware-flat-list/shared.native.js.map +1 -0
  1430. package/build-module/mobile/keyboard-aware-flat-list/use-keyboard-offset.native.js.map +1 -1
  1431. package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js.map +1 -1
  1432. package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-section.native.js.map +1 -1
  1433. package/build-module/mobile/keyboard-aware-flat-list/use-scroll.native.js.map +1 -1
  1434. package/build-module/mobile/keyboard-aware-flat-list/use-text-input-caret-position.native.js.map +1 -1
  1435. package/build-module/mobile/keyboard-aware-flat-list/use-text-input-offset.native.js.map +1 -1
  1436. package/build-module/mobile/layout-animation/index.native.js.map +1 -1
  1437. package/build-module/mobile/link-picker/index.native.js.map +1 -1
  1438. package/build-module/mobile/link-picker/link-picker-results.native.js.map +1 -1
  1439. package/build-module/mobile/link-picker/link-picker-screen.native.js.map +1 -1
  1440. package/build-module/mobile/link-settings/index.native.js.map +1 -1
  1441. package/build-module/mobile/link-settings/link-rel.native.js.map +1 -1
  1442. package/build-module/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
  1443. package/build-module/mobile/link-settings/link-settings-screen.native.js.map +1 -1
  1444. package/build-module/mobile/media-edit/index.native.js.map +1 -1
  1445. package/build-module/mobile/picker/index.android.js.map +1 -1
  1446. package/build-module/mobile/picker/index.ios.js.map +1 -1
  1447. package/build-module/mobile/segmented-control/index.native.js.map +1 -1
  1448. package/build-module/mobile/utils/alignments.native.js.map +1 -1
  1449. package/build-module/mobile/utils/get-px-from-css-unit.native.js.map +1 -1
  1450. package/build-module/mobile/utils/index.native.js.map +1 -1
  1451. package/build-module/mobile/utils/use-is-floating-keyboard.native.js.map +1 -1
  1452. package/build-module/mobile/utils/use-unit-converter-to-mobile.native.js.map +1 -1
  1453. package/build-module/modal/aria-helper.js +9 -3
  1454. package/build-module/modal/aria-helper.js.map +1 -1
  1455. package/build-module/modal/index.js +6 -2
  1456. package/build-module/modal/index.js.map +1 -1
  1457. package/build-module/modal/types.js.map +1 -1
  1458. package/build-module/navigable-container/container.js.map +1 -1
  1459. package/build-module/navigable-container/index.js.map +1 -1
  1460. package/build-module/navigable-container/menu.js.map +1 -1
  1461. package/build-module/navigable-container/tabbable.js.map +1 -1
  1462. package/build-module/navigable-container/types.js.map +1 -1
  1463. package/build-module/navigation/back-button/index.js +4 -0
  1464. package/build-module/navigation/back-button/index.js.map +1 -1
  1465. package/build-module/navigation/constants.js.map +1 -1
  1466. package/build-module/navigation/context.js.map +1 -1
  1467. package/build-module/navigation/group/context.js.map +1 -1
  1468. package/build-module/navigation/group/index.js +4 -0
  1469. package/build-module/navigation/group/index.js.map +1 -1
  1470. package/build-module/navigation/index.js +2 -0
  1471. package/build-module/navigation/index.js.map +1 -1
  1472. package/build-module/navigation/item/base-content.js.map +1 -1
  1473. package/build-module/navigation/item/base.js.map +1 -1
  1474. package/build-module/navigation/item/index.js +4 -0
  1475. package/build-module/navigation/item/index.js.map +1 -1
  1476. package/build-module/navigation/item/use-navigation-tree-item.js.map +1 -1
  1477. package/build-module/navigation/menu/context.js.map +1 -1
  1478. package/build-module/navigation/menu/index.js +3 -0
  1479. package/build-module/navigation/menu/index.js.map +1 -1
  1480. package/build-module/navigation/menu/menu-title-search.js.map +1 -1
  1481. package/build-module/navigation/menu/menu-title.js.map +1 -1
  1482. package/build-module/navigation/menu/search-no-results-found.js.map +1 -1
  1483. package/build-module/navigation/menu/use-navigation-tree-menu.js.map +1 -1
  1484. package/build-module/navigation/styles/navigation-styles.js +22 -22
  1485. package/build-module/navigation/styles/navigation-styles.js.map +1 -1
  1486. package/build-module/navigation/types.js.map +1 -1
  1487. package/build-module/navigation/use-create-navigation-tree.js.map +1 -1
  1488. package/build-module/navigation/use-navigation-tree-nodes.js.map +1 -1
  1489. package/build-module/navigation/utils.js.map +1 -1
  1490. package/build-module/navigator/context.js.map +1 -1
  1491. package/build-module/navigator/index.js.map +1 -1
  1492. package/build-module/navigator/navigator-back-button/component.js.map +1 -1
  1493. package/build-module/navigator/navigator-back-button/hook.js.map +1 -1
  1494. package/build-module/navigator/navigator-back-button/index.js.map +1 -1
  1495. package/build-module/navigator/navigator-button/component.js.map +1 -1
  1496. package/build-module/navigator/navigator-button/hook.js.map +1 -1
  1497. package/build-module/navigator/navigator-button/index.js.map +1 -1
  1498. package/build-module/navigator/navigator-provider/component.js +4 -0
  1499. package/build-module/navigator/navigator-provider/component.js.map +1 -1
  1500. package/build-module/navigator/navigator-provider/index.js.map +1 -1
  1501. package/build-module/navigator/navigator-screen/component.js.map +1 -1
  1502. package/build-module/navigator/navigator-screen/index.js.map +1 -1
  1503. package/build-module/navigator/navigator-to-parent-button/component.js.map +1 -1
  1504. package/build-module/navigator/navigator-to-parent-button/index.js.map +1 -1
  1505. package/build-module/navigator/styles.js.map +1 -1
  1506. package/build-module/navigator/types.js.map +1 -1
  1507. package/build-module/navigator/use-navigator.js.map +1 -1
  1508. package/build-module/navigator/utils/router.js.map +1 -1
  1509. package/build-module/notice/index.js.map +1 -1
  1510. package/build-module/notice/index.native.js.map +1 -1
  1511. package/build-module/notice/list.js.map +1 -1
  1512. package/build-module/notice/list.native.js.map +1 -1
  1513. package/build-module/notice/types.js.map +1 -1
  1514. package/build-module/number-control/index.js.map +1 -1
  1515. package/build-module/number-control/styles/number-control-styles.js.map +1 -1
  1516. package/build-module/number-control/types.js.map +1 -1
  1517. package/build-module/palette-edit/index.js.map +1 -1
  1518. package/build-module/palette-edit/styles.js +1 -1
  1519. package/build-module/palette-edit/styles.js.map +1 -1
  1520. package/build-module/palette-edit/types.js.map +1 -1
  1521. package/build-module/panel/actions.native.js.map +1 -1
  1522. package/build-module/panel/body.js +3 -1
  1523. package/build-module/panel/body.js.map +1 -1
  1524. package/build-module/panel/body.native.js.map +1 -1
  1525. package/build-module/panel/bottom-separator-cover.native.js.map +1 -1
  1526. package/build-module/panel/header.js.map +1 -1
  1527. package/build-module/panel/index.js.map +1 -1
  1528. package/build-module/panel/row.js +5 -0
  1529. package/build-module/panel/row.js.map +1 -1
  1530. package/build-module/panel/types.js.map +1 -1
  1531. package/build-module/placeholder/index.js.map +1 -1
  1532. package/build-module/placeholder/types.js.map +1 -1
  1533. package/build-module/popover/index.js +3 -1
  1534. package/build-module/popover/index.js.map +1 -1
  1535. package/build-module/popover/overlay-middlewares.js +3 -1
  1536. package/build-module/popover/overlay-middlewares.js.map +1 -1
  1537. package/build-module/popover/types.js.map +1 -1
  1538. package/build-module/popover/utils.js.map +1 -1
  1539. package/build-module/private-apis.js.map +1 -1
  1540. package/build-module/private-apis.native.js.map +1 -1
  1541. package/build-module/progress-bar/index.js +4 -2
  1542. package/build-module/progress-bar/index.js.map +1 -1
  1543. package/build-module/progress-bar/styles.js +16 -11
  1544. package/build-module/progress-bar/styles.js.map +1 -1
  1545. package/build-module/progress-bar/types.js.map +1 -1
  1546. package/build-module/query-controls/author-select.js +3 -1
  1547. package/build-module/query-controls/author-select.js.map +1 -1
  1548. package/build-module/query-controls/category-select.js.map +1 -1
  1549. package/build-module/query-controls/index.js.map +1 -1
  1550. package/build-module/query-controls/index.native.js.map +1 -1
  1551. package/build-module/query-controls/terms.js.map +1 -1
  1552. package/build-module/query-controls/types.js.map +1 -1
  1553. package/build-module/radio-control/index.js.map +1 -1
  1554. package/build-module/radio-control/index.native.js.map +1 -1
  1555. package/build-module/radio-control/types.js.map +1 -1
  1556. package/build-module/radio-group/context.js.map +1 -1
  1557. package/build-module/radio-group/index.js.map +1 -1
  1558. package/build-module/radio-group/radio.js.map +1 -1
  1559. package/build-module/radio-group/types.js.map +1 -1
  1560. package/build-module/range-control/index.js.map +1 -1
  1561. package/build-module/range-control/index.native.js.map +1 -1
  1562. package/build-module/range-control/input-range.js.map +1 -1
  1563. package/build-module/range-control/mark.js.map +1 -1
  1564. package/build-module/range-control/rail.js +1 -1
  1565. package/build-module/range-control/rail.js.map +1 -1
  1566. package/build-module/range-control/styles/range-control-styles.js +44 -44
  1567. package/build-module/range-control/styles/range-control-styles.js.map +1 -1
  1568. package/build-module/range-control/tooltip.js.map +1 -1
  1569. package/build-module/range-control/types.js.map +1 -1
  1570. package/build-module/range-control/utils.js.map +1 -1
  1571. package/build-module/resizable-box/index.js.map +1 -1
  1572. package/build-module/resizable-box/index.native.js.map +1 -1
  1573. package/build-module/resizable-box/resize-tooltip/index.js +3 -1
  1574. package/build-module/resizable-box/resize-tooltip/index.js.map +1 -1
  1575. package/build-module/resizable-box/resize-tooltip/label.js +3 -1
  1576. package/build-module/resizable-box/resize-tooltip/label.js.map +1 -1
  1577. package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js +3 -3
  1578. package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js.map +1 -1
  1579. package/build-module/resizable-box/resize-tooltip/utils.js +12 -4
  1580. package/build-module/resizable-box/resize-tooltip/utils.js.map +1 -1
  1581. package/build-module/responsive-wrapper/index.js.map +1 -1
  1582. package/build-module/responsive-wrapper/types.js.map +1 -1
  1583. package/build-module/sandbox/index.js.map +1 -1
  1584. package/build-module/sandbox/index.native.js.map +1 -1
  1585. package/build-module/sandbox/types.js.map +1 -1
  1586. package/build-module/scroll-lock/index.js.map +1 -1
  1587. package/build-module/scrollable/component.js.map +1 -1
  1588. package/build-module/scrollable/hook.js.map +1 -1
  1589. package/build-module/scrollable/index.js.map +1 -1
  1590. package/build-module/scrollable/styles.js.map +1 -1
  1591. package/build-module/scrollable/types.js.map +1 -1
  1592. package/build-module/search-control/index.js.map +1 -1
  1593. package/build-module/search-control/index.native.js.map +1 -1
  1594. package/build-module/search-control/styles.js +1 -1
  1595. package/build-module/search-control/styles.js.map +1 -1
  1596. package/build-module/search-control/types.js.map +1 -1
  1597. package/build-module/select-control/chevron-down.js.map +1 -1
  1598. package/build-module/select-control/index.js +4 -17
  1599. package/build-module/select-control/index.js.map +1 -1
  1600. package/build-module/select-control/index.native.js.map +1 -1
  1601. package/build-module/select-control/styles/select-control-styles.js +10 -8
  1602. package/build-module/select-control/styles/select-control-styles.js.map +1 -1
  1603. package/build-module/select-control/types.js.map +1 -1
  1604. package/build-module/shortcut/index.js.map +1 -1
  1605. package/build-module/shortcut/types.js.map +1 -1
  1606. package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
  1607. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js +4 -6
  1608. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
  1609. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js +7 -12
  1610. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  1611. package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
  1612. package/build-module/slot-fill/bubbles-virtually/use-slot-fills.js +2 -12
  1613. package/build-module/slot-fill/bubbles-virtually/use-slot-fills.js.map +1 -1
  1614. package/build-module/slot-fill/bubbles-virtually/use-slot.js +2 -12
  1615. package/build-module/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
  1616. package/build-module/slot-fill/context.js.map +1 -1
  1617. package/build-module/slot-fill/fill.js.map +1 -1
  1618. package/build-module/slot-fill/index.js.map +1 -1
  1619. package/build-module/slot-fill/index.native.js.map +1 -1
  1620. package/build-module/slot-fill/provider.js.map +1 -1
  1621. package/build-module/slot-fill/slot.js.map +1 -1
  1622. package/build-module/slot-fill/types.js.map +1 -1
  1623. package/build-module/slot-fill/use-slot.js.map +1 -1
  1624. package/build-module/snackbar/index.js +1 -1
  1625. package/build-module/snackbar/index.js.map +1 -1
  1626. package/build-module/snackbar/list.js.map +1 -1
  1627. package/build-module/snackbar/types.js.map +1 -1
  1628. package/build-module/spacer/component.js.map +1 -1
  1629. package/build-module/spacer/hook.js.map +1 -1
  1630. package/build-module/spacer/index.js.map +1 -1
  1631. package/build-module/spacer/types.js.map +1 -1
  1632. package/build-module/spinner/index.js.map +1 -1
  1633. package/build-module/spinner/index.native.js.map +1 -1
  1634. package/build-module/spinner/styles.js +3 -3
  1635. package/build-module/spinner/styles.js.map +1 -1
  1636. package/build-module/style-provider/index.js.map +1 -1
  1637. package/build-module/style-provider/index.native.js.map +1 -1
  1638. package/build-module/style-provider/types.js.map +1 -1
  1639. package/build-module/surface/component.js.map +1 -1
  1640. package/build-module/surface/hook.js.map +1 -1
  1641. package/build-module/surface/index.js.map +1 -1
  1642. package/build-module/surface/styles.js.map +1 -1
  1643. package/build-module/surface/types.js.map +1 -1
  1644. package/build-module/tab-panel/index.js.map +1 -1
  1645. package/build-module/tab-panel/types.js.map +1 -1
  1646. package/build-module/tabs/context.js.map +1 -1
  1647. package/build-module/tabs/index.js +7 -0
  1648. package/build-module/tabs/index.js.map +1 -1
  1649. package/build-module/tabs/styles.js +1 -1
  1650. package/build-module/tabs/styles.js.map +1 -1
  1651. package/build-module/tabs/tab.js.map +1 -1
  1652. package/build-module/tabs/tablist.js.map +1 -1
  1653. package/build-module/tabs/tabpanel.js.map +1 -1
  1654. package/build-module/tabs/types.js.map +1 -1
  1655. package/build-module/text/component.js.map +1 -1
  1656. package/build-module/text/get-line-height.js +6 -2
  1657. package/build-module/text/get-line-height.js.map +1 -1
  1658. package/build-module/text/hook.js.map +1 -1
  1659. package/build-module/text/index.js.map +1 -1
  1660. package/build-module/text/index.native.js.map +1 -1
  1661. package/build-module/text/styles/emotion-css.native.js.map +1 -1
  1662. package/build-module/text/styles/font-family.native.js.map +1 -1
  1663. package/build-module/text/styles/text-mixins.native.js.map +1 -1
  1664. package/build-module/text/styles.js +7 -7
  1665. package/build-module/text/styles.js.map +1 -1
  1666. package/build-module/text/types.js.map +1 -1
  1667. package/build-module/text/utils.js +6 -2
  1668. package/build-module/text/utils.js.map +1 -1
  1669. package/build-module/text-control/index.js.map +1 -1
  1670. package/build-module/text-control/index.native.js.map +1 -1
  1671. package/build-module/text-control/types.js.map +1 -1
  1672. package/build-module/text-highlight/index.js.map +1 -1
  1673. package/build-module/text-highlight/types.js.map +1 -1
  1674. package/build-module/textarea-control/index.js.map +1 -1
  1675. package/build-module/textarea-control/index.native.js.map +1 -1
  1676. package/build-module/textarea-control/styles/textarea-control-styles.js +1 -1
  1677. package/build-module/textarea-control/styles/textarea-control-styles.js.map +1 -1
  1678. package/build-module/textarea-control/types.js.map +1 -1
  1679. package/build-module/theme/color-algorithms.js +6 -2
  1680. package/build-module/theme/color-algorithms.js.map +1 -1
  1681. package/build-module/theme/index.js.map +1 -1
  1682. package/build-module/theme/styles.js +1 -1
  1683. package/build-module/theme/styles.js.map +1 -1
  1684. package/build-module/theme/types.js.map +1 -1
  1685. package/build-module/tip/index.js.map +1 -1
  1686. package/build-module/tip/types.js.map +1 -1
  1687. package/build-module/toggle-control/index.js +6 -4
  1688. package/build-module/toggle-control/index.js.map +1 -1
  1689. package/build-module/toggle-control/index.native.js.map +1 -1
  1690. package/build-module/toggle-control/types.js.map +1 -1
  1691. package/build-module/toggle-group-control/context.js.map +1 -1
  1692. package/build-module/toggle-group-control/index.js.map +1 -1
  1693. package/build-module/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -1
  1694. package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
  1695. package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
  1696. package/build-module/toggle-group-control/toggle-group-control/index.js.map +1 -1
  1697. package/build-module/toggle-group-control/toggle-group-control/styles.js +1 -1
  1698. package/build-module/toggle-group-control/toggle-group-control/styles.js.map +1 -1
  1699. package/build-module/toggle-group-control/toggle-group-control/utils.js.map +1 -1
  1700. package/build-module/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  1701. package/build-module/toggle-group-control/toggle-group-control-option/index.js.map +1 -1
  1702. package/build-module/toggle-group-control/toggle-group-control-option-base/component.js +3 -1
  1703. package/build-module/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  1704. package/build-module/toggle-group-control/toggle-group-control-option-base/index.js.map +1 -1
  1705. package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js +12 -12
  1706. package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
  1707. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  1708. package/build-module/toggle-group-control/toggle-group-control-option-icon/index.js.map +1 -1
  1709. package/build-module/toggle-group-control/types.js.map +1 -1
  1710. package/build-module/toolbar/index.js.map +1 -1
  1711. package/build-module/toolbar/toolbar/index.js.map +1 -1
  1712. package/build-module/toolbar/toolbar/toolbar-container.js.map +1 -1
  1713. package/build-module/toolbar/toolbar/toolbar-container.native.js.map +1 -1
  1714. package/build-module/toolbar/toolbar/types.js.map +1 -1
  1715. package/build-module/toolbar/toolbar-button/index.js.map +1 -1
  1716. package/build-module/toolbar/toolbar-button/toolbar-button-container.js.map +1 -1
  1717. package/build-module/toolbar/toolbar-button/toolbar-button-container.native.js.map +1 -1
  1718. package/build-module/toolbar/toolbar-button/types.js.map +1 -1
  1719. package/build-module/toolbar/toolbar-context/index.js.map +1 -1
  1720. package/build-module/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
  1721. package/build-module/toolbar/toolbar-group/index.js.map +1 -1
  1722. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
  1723. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.native.js.map +1 -1
  1724. package/build-module/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
  1725. package/build-module/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
  1726. package/build-module/toolbar/toolbar-group/types.js.map +1 -1
  1727. package/build-module/toolbar/toolbar-item/index.js.map +1 -1
  1728. package/build-module/toolbar/toolbar-item/index.native.js.map +1 -1
  1729. package/build-module/toolbar/toolbar-item/types.js.map +1 -1
  1730. package/build-module/tools-panel/context.js.map +1 -1
  1731. package/build-module/tools-panel/index.js.map +1 -1
  1732. package/build-module/tools-panel/styles.js +2 -2
  1733. package/build-module/tools-panel/styles.js.map +1 -1
  1734. package/build-module/tools-panel/tools-panel/component.js.map +1 -1
  1735. package/build-module/tools-panel/tools-panel/hook.js.map +1 -1
  1736. package/build-module/tools-panel/tools-panel/index.js.map +1 -1
  1737. package/build-module/tools-panel/tools-panel-header/component.js.map +1 -1
  1738. package/build-module/tools-panel/tools-panel-header/hook.js.map +1 -1
  1739. package/build-module/tools-panel/tools-panel-header/index.js.map +1 -1
  1740. package/build-module/tools-panel/tools-panel-item/component.js.map +1 -1
  1741. package/build-module/tools-panel/tools-panel-item/hook.js.map +1 -1
  1742. package/build-module/tools-panel/tools-panel-item/index.js.map +1 -1
  1743. package/build-module/tools-panel/types.js.map +1 -1
  1744. package/build-module/tooltip/index.js.map +1 -1
  1745. package/build-module/tooltip/index.native.js.map +1 -1
  1746. package/build-module/tooltip/types.js.map +1 -1
  1747. package/build-module/tree-grid/cell.js.map +1 -1
  1748. package/build-module/tree-grid/index.js.map +1 -1
  1749. package/build-module/tree-grid/item.js.map +1 -1
  1750. package/build-module/tree-grid/roving-tab-index-context.js.map +1 -1
  1751. package/build-module/tree-grid/roving-tab-index-item.js +3 -1
  1752. package/build-module/tree-grid/roving-tab-index-item.js.map +1 -1
  1753. package/build-module/tree-grid/roving-tab-index.js.map +1 -1
  1754. package/build-module/tree-grid/row.js.map +1 -1
  1755. package/build-module/tree-grid/types.js.map +1 -1
  1756. package/build-module/tree-select/index.js.map +1 -1
  1757. package/build-module/tree-select/types.js.map +1 -1
  1758. package/build-module/truncate/component.js.map +1 -1
  1759. package/build-module/truncate/hook.js +4 -1
  1760. package/build-module/truncate/hook.js.map +1 -1
  1761. package/build-module/truncate/index.js.map +1 -1
  1762. package/build-module/truncate/styles.js.map +1 -1
  1763. package/build-module/truncate/types.js.map +1 -1
  1764. package/build-module/truncate/utils.js.map +1 -1
  1765. package/build-module/unit-control/index.js +3 -1
  1766. package/build-module/unit-control/index.js.map +1 -1
  1767. package/build-module/unit-control/index.native.js.map +1 -1
  1768. package/build-module/unit-control/styles/unit-control-styles.js +2 -2
  1769. package/build-module/unit-control/styles/unit-control-styles.js.map +1 -1
  1770. package/build-module/unit-control/types.js.map +1 -1
  1771. package/build-module/unit-control/unit-select-control.js.map +1 -1
  1772. package/build-module/unit-control/utils.js.map +1 -1
  1773. package/build-module/utils/base-label.js.map +1 -1
  1774. package/build-module/utils/box-sizing.js.map +1 -1
  1775. package/build-module/utils/breakpoint-values.js.map +1 -1
  1776. package/build-module/utils/breakpoint.js.map +1 -1
  1777. package/build-module/utils/colors-values.js.map +1 -1
  1778. package/build-module/utils/colors.js +21 -7
  1779. package/build-module/utils/colors.js.map +1 -1
  1780. package/build-module/utils/config-values.js.map +1 -1
  1781. package/build-module/utils/font-size.js +3 -1
  1782. package/build-module/utils/font-size.js.map +1 -1
  1783. package/build-module/utils/font-values.js.map +1 -1
  1784. package/build-module/utils/font.js.map +1 -1
  1785. package/build-module/utils/get-valid-children.js +3 -1
  1786. package/build-module/utils/get-valid-children.js.map +1 -1
  1787. package/build-module/utils/hooks/emotion.d.js.map +1 -1
  1788. package/build-module/utils/hooks/index.js.map +1 -1
  1789. package/build-module/utils/hooks/use-controlled-state.js.map +1 -1
  1790. package/build-module/utils/hooks/use-controlled-value.js.map +1 -1
  1791. package/build-module/utils/hooks/use-cx.js.map +1 -1
  1792. package/build-module/utils/hooks/use-update-effect.js.map +1 -1
  1793. package/build-module/utils/index.js.map +1 -1
  1794. package/build-module/utils/input/base.js +2 -3
  1795. package/build-module/utils/input/base.js.map +1 -1
  1796. package/build-module/utils/input/index.js.map +1 -1
  1797. package/build-module/utils/input/input-control.js.map +1 -1
  1798. package/build-module/utils/math.js.map +1 -1
  1799. package/build-module/utils/reduce-motion.js +4 -0
  1800. package/build-module/utils/reduce-motion.js.map +1 -1
  1801. package/build-module/utils/rtl.js +2 -2
  1802. package/build-module/utils/rtl.js.map +1 -1
  1803. package/build-module/utils/space.js.map +1 -1
  1804. package/build-module/utils/strings.js +12 -57
  1805. package/build-module/utils/strings.js.map +1 -1
  1806. package/build-module/utils/style-mixins.js.map +1 -1
  1807. package/build-module/utils/types.js.map +1 -1
  1808. package/build-module/utils/unit-values.js.map +1 -1
  1809. package/build-module/utils/use-deprecated-props.js.map +1 -1
  1810. package/build-module/utils/use-responsive-value.js +3 -1
  1811. package/build-module/utils/use-responsive-value.js.map +1 -1
  1812. package/build-module/utils/values.js.map +1 -1
  1813. package/build-module/utils/with-ignore-ime-events.js.map +1 -1
  1814. package/build-module/v-stack/component.js.map +1 -1
  1815. package/build-module/v-stack/hook.js.map +1 -1
  1816. package/build-module/v-stack/index.js.map +1 -1
  1817. package/build-module/v-stack/types.js.map +1 -1
  1818. package/build-module/view/component.js +30 -8
  1819. package/build-module/view/component.js.map +1 -1
  1820. package/build-module/view/index.js.map +1 -1
  1821. package/build-module/visually-hidden/component.js.map +1 -1
  1822. package/build-module/visually-hidden/index.js.map +1 -1
  1823. package/build-module/visually-hidden/styles.js.map +1 -1
  1824. package/build-module/visually-hidden/types.js.map +1 -1
  1825. package/build-module/z-stack/component.js.map +1 -1
  1826. package/build-module/z-stack/index.js.map +1 -1
  1827. package/build-module/z-stack/styles.js +2 -2
  1828. package/build-module/z-stack/styles.js.map +1 -1
  1829. package/build-module/z-stack/types.js.map +1 -1
  1830. package/build-style/style-rtl.css +82 -72
  1831. package/build-style/style.css +82 -72
  1832. package/build-types/alignment-matrix-control/index.d.ts.map +1 -1
  1833. package/build-types/alignment-matrix-control/stories/index.story.d.ts +1 -1
  1834. package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -1
  1835. package/build-types/alignment-matrix-control/styles/alignment-matrix-control-styles.d.ts.map +1 -1
  1836. package/build-types/alignment-matrix-control/utils.d.ts.map +1 -1
  1837. package/build-types/angle-picker-control/stories/index.story.d.ts +1 -1
  1838. package/build-types/animate/stories/index.story.d.ts +7 -7
  1839. package/build-types/animate/stories/index.story.d.ts.map +1 -1
  1840. package/build-types/autocomplete/autocompleter-ui.d.ts.map +1 -1
  1841. package/build-types/autocomplete/index.d.ts.map +1 -1
  1842. package/build-types/base-control/stories/index.story.d.ts +1 -1
  1843. package/build-types/border-box-control/border-box-control/hook.d.ts +4 -4
  1844. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +4 -4
  1845. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +4 -4
  1846. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +4 -4
  1847. package/build-types/border-box-control/stories/index.story.d.ts +1 -1
  1848. package/build-types/border-control/border-control/hook.d.ts +4 -4
  1849. package/build-types/border-control/border-control-dropdown/hook.d.ts +4 -4
  1850. package/build-types/border-control/stories/index.story.d.ts +6 -6
  1851. package/build-types/box-control/stories/index.story.d.ts +30 -30
  1852. package/build-types/button/stories/e2e/index.story.d.ts +1 -1
  1853. package/build-types/button/stories/e2e/index.story.d.ts.map +1 -1
  1854. package/build-types/button/stories/index.story.d.ts +7 -7
  1855. package/build-types/button/stories/index.story.d.ts.map +1 -1
  1856. package/build-types/card/card/hook.d.ts +4 -4
  1857. package/build-types/card/card-body/hook.d.ts +4 -4
  1858. package/build-types/card/card-divider/hook.d.ts +4 -4
  1859. package/build-types/card/card-footer/hook.d.ts +4 -4
  1860. package/build-types/card/card-header/hook.d.ts +4 -4
  1861. package/build-types/card/card-media/hook.d.ts +4 -4
  1862. package/build-types/card/stories/index.story.d.ts +2 -2
  1863. package/build-types/checkbox-control/index.d.ts.map +1 -1
  1864. package/build-types/circular-option-picker/stories/index.story.d.ts +5 -5
  1865. package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
  1866. package/build-types/color-palette/stories/index.story.d.ts +3 -3
  1867. package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
  1868. package/build-types/color-picker/hex-input.d.ts.map +1 -1
  1869. package/build-types/color-picker/stories/index.story.d.ts +1 -1
  1870. package/build-types/color-picker/styles.d.ts +1 -1
  1871. package/build-types/color-picker/use-deprecated-props.d.ts.map +1 -1
  1872. package/build-types/combobox-control/stories/index.story.d.ts +2 -2
  1873. package/build-types/confirm-dialog/stories/index.story.d.ts +2 -2
  1874. package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -1
  1875. package/build-types/context/context-connect.d.ts.map +1 -1
  1876. package/build-types/custom-gradient-picker/stories/index.story.d.ts +1 -1
  1877. package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
  1878. package/build-types/custom-select-control/index.d.ts.map +1 -1
  1879. package/build-types/custom-select-control-v2/legacy-component/index.d.ts.map +1 -1
  1880. package/build-types/custom-select-control-v2/stories/default.story.d.ts +3 -3
  1881. package/build-types/custom-select-control-v2/stories/legacy.story.d.ts +3 -3
  1882. package/build-types/custom-select-control-v2/stories/legacy.story.d.ts.map +1 -1
  1883. package/build-types/custom-select-control-v2/types.d.ts +7 -0
  1884. package/build-types/custom-select-control-v2/types.d.ts.map +1 -1
  1885. package/build-types/date-time/time/styles.d.ts +4 -4
  1886. package/build-types/dimension-control/stories/index.story.d.ts +2 -2
  1887. package/build-types/dimension-control/stories/index.story.d.ts.map +1 -1
  1888. package/build-types/drop-zone/index.d.ts.map +1 -1
  1889. package/build-types/drop-zone/stories/index.story.d.ts +1 -1
  1890. package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
  1891. package/build-types/dropdown/stories/index.story.d.ts +4 -4
  1892. package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
  1893. package/build-types/dropdown/styles.d.ts.map +1 -1
  1894. package/build-types/dropdown-menu/stories/index.story.d.ts +2 -2
  1895. package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
  1896. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts +1 -1
  1897. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts.map +1 -1
  1898. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts +3 -3
  1899. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts.map +1 -1
  1900. package/build-types/duotone-picker/utils.d.ts.map +1 -1
  1901. package/build-types/elevation/hook.d.ts +4 -4
  1902. package/build-types/elevation/hook.d.ts.map +1 -1
  1903. package/build-types/external-link/index.d.ts +3 -0
  1904. package/build-types/external-link/index.d.ts.map +1 -1
  1905. package/build-types/flex/flex/hook.d.ts +4 -4
  1906. package/build-types/flex/flex-block/hook.d.ts +4 -4
  1907. package/build-types/flex/flex-item/hook.d.ts +4 -4
  1908. package/build-types/focal-point-picker/controls.d.ts.map +1 -1
  1909. package/build-types/focal-point-picker/index.d.ts.map +1 -1
  1910. package/build-types/focal-point-picker/stories/index.story.d.ts +4 -4
  1911. package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts.map +1 -1
  1912. package/build-types/focal-point-picker/utils.d.ts.map +1 -1
  1913. package/build-types/font-size-picker/index.d.ts.map +1 -1
  1914. package/build-types/font-size-picker/stories/index.story.d.ts.map +1 -1
  1915. package/build-types/font-size-picker/types.d.ts +2 -0
  1916. package/build-types/font-size-picker/types.d.ts.map +1 -1
  1917. package/build-types/form-file-upload/stories/index.story.d.ts +5 -5
  1918. package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
  1919. package/build-types/form-toggle/index.d.ts +4 -3
  1920. package/build-types/form-toggle/index.d.ts.map +1 -1
  1921. package/build-types/form-toggle/stories/index.story.d.ts +1 -1
  1922. package/build-types/form-toggle/stories/index.story.d.ts.map +1 -1
  1923. package/build-types/gradient-picker/stories/index.story.d.ts +3 -3
  1924. package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
  1925. package/build-types/grid/hook.d.ts +4 -4
  1926. package/build-types/guide/stories/index.story.d.ts +1 -1
  1927. package/build-types/guide/stories/index.story.d.ts.map +1 -1
  1928. package/build-types/h-stack/hook.d.ts +4 -4
  1929. package/build-types/heading/hook.d.ts +4 -4
  1930. package/build-types/higher-order/with-fallback-styles/index.d.ts.map +1 -1
  1931. package/build-types/higher-order/with-filters/index.d.ts.map +1 -1
  1932. package/build-types/higher-order/with-focus-return/index.d.ts.map +1 -1
  1933. package/build-types/higher-order/with-notices/index.d.ts.map +1 -1
  1934. package/build-types/icon/stories/index.story.d.ts +4 -4
  1935. package/build-types/icon/stories/index.story.d.ts.map +1 -1
  1936. package/build-types/input-control/backdrop.d.ts +1 -2
  1937. package/build-types/input-control/backdrop.d.ts.map +1 -1
  1938. package/build-types/input-control/index.d.ts.map +1 -1
  1939. package/build-types/input-control/input-base.d.ts.map +1 -1
  1940. package/build-types/input-control/input-field.d.ts.map +1 -1
  1941. package/build-types/input-control/label.d.ts.map +1 -1
  1942. package/build-types/input-control/stories/index.story.d.ts +8 -7
  1943. package/build-types/input-control/stories/index.story.d.ts.map +1 -1
  1944. package/build-types/input-control/styles/input-control-styles.d.ts +16 -21
  1945. package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
  1946. package/build-types/input-control/types.d.ts +3 -12
  1947. package/build-types/input-control/types.d.ts.map +1 -1
  1948. package/build-types/input-control/utils.d.ts.map +1 -1
  1949. package/build-types/item-group/item/hook.d.ts +5 -5
  1950. package/build-types/item-group/item/hook.d.ts.map +1 -1
  1951. package/build-types/item-group/item-group/hook.d.ts +4 -4
  1952. package/build-types/keyboard-shortcuts/stories/index.story.d.ts +1 -1
  1953. package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +1 -1
  1954. package/build-types/menu-group/stories/index.story.d.ts +1 -1
  1955. package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
  1956. package/build-types/menu-item/stories/index.story.d.ts +4 -4
  1957. package/build-types/modal/aria-helper.d.ts.map +1 -1
  1958. package/build-types/modal/index.d.ts.map +1 -1
  1959. package/build-types/navigation/back-button/index.d.ts +3 -0
  1960. package/build-types/navigation/back-button/index.d.ts.map +1 -1
  1961. package/build-types/navigation/group/index.d.ts +3 -0
  1962. package/build-types/navigation/group/index.d.ts.map +1 -1
  1963. package/build-types/navigation/index.d.ts +2 -0
  1964. package/build-types/navigation/index.d.ts.map +1 -1
  1965. package/build-types/navigation/item/index.d.ts +3 -0
  1966. package/build-types/navigation/item/index.d.ts.map +1 -1
  1967. package/build-types/navigation/menu/index.d.ts +3 -0
  1968. package/build-types/navigation/menu/index.d.ts.map +1 -1
  1969. package/build-types/navigation/stories/index.story.d.ts +11 -6
  1970. package/build-types/navigation/stories/index.story.d.ts.map +1 -1
  1971. package/build-types/navigation/styles/navigation-styles.d.ts.map +1 -1
  1972. package/build-types/navigator/navigator-back-button/hook.d.ts +4 -4
  1973. package/build-types/navigator/navigator-button/hook.d.ts +4 -4
  1974. package/build-types/navigator/navigator-provider/component.d.ts.map +1 -1
  1975. package/build-types/notice/stories/index.story.d.ts +4 -4
  1976. package/build-types/notice/stories/index.story.d.ts.map +1 -1
  1977. package/build-types/number-control/index.d.ts +1 -1
  1978. package/build-types/number-control/stories/index.story.d.ts +2 -2
  1979. package/build-types/palette-edit/stories/index.story.d.ts +2 -2
  1980. package/build-types/palette-edit/stories/index.story.d.ts.map +1 -1
  1981. package/build-types/palette-edit/styles.d.ts +749 -10
  1982. package/build-types/palette-edit/styles.d.ts.map +1 -1
  1983. package/build-types/panel/body.d.ts.map +1 -1
  1984. package/build-types/popover/index.d.ts.map +1 -1
  1985. package/build-types/popover/overlay-middlewares.d.ts.map +1 -1
  1986. package/build-types/popover/stories/index.story.d.ts.map +1 -1
  1987. package/build-types/popover/utils.d.ts +1 -1
  1988. package/build-types/popover/utils.d.ts.map +1 -1
  1989. package/build-types/progress-bar/index.d.ts.map +1 -1
  1990. package/build-types/progress-bar/styles.d.ts +0 -1
  1991. package/build-types/progress-bar/styles.d.ts.map +1 -1
  1992. package/build-types/query-controls/author-select.d.ts.map +1 -1
  1993. package/build-types/query-controls/stories/index.story.d.ts +1 -1
  1994. package/build-types/query-controls/stories/index.story.d.ts.map +1 -1
  1995. package/build-types/range-control/styles/range-control-styles.d.ts +1 -1
  1996. package/build-types/range-control/styles/range-control-styles.d.ts.map +1 -1
  1997. package/build-types/resizable-box/resize-tooltip/index.d.ts.map +1 -1
  1998. package/build-types/resizable-box/resize-tooltip/label.d.ts.map +1 -1
  1999. package/build-types/resizable-box/resize-tooltip/utils.d.ts.map +1 -1
  2000. package/build-types/resizable-box/stories/index.story.d.ts +2 -2
  2001. package/build-types/responsive-wrapper/stories/index.story.d.ts +1 -1
  2002. package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -1
  2003. package/build-types/sandbox/stories/index.story.d.ts +1 -1
  2004. package/build-types/sandbox/stories/index.story.d.ts.map +1 -1
  2005. package/build-types/scrollable/hook.d.ts +4 -4
  2006. package/build-types/search-control/stories/index.story.d.ts +2 -2
  2007. package/build-types/search-control/stories/index.story.d.ts.map +1 -1
  2008. package/build-types/select-control/index.d.ts.map +1 -1
  2009. package/build-types/select-control/stories/index.story.d.ts +2 -2
  2010. package/build-types/select-control/stories/index.story.d.ts.map +1 -1
  2011. package/build-types/select-control/styles/select-control-styles.d.ts.map +1 -1
  2012. package/build-types/shortcut/stories/index.story.d.ts +1 -1
  2013. package/build-types/shortcut/stories/index.story.d.ts.map +1 -1
  2014. package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts.map +1 -1
  2015. package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts.map +1 -1
  2016. package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts.map +1 -1
  2017. package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts.map +1 -1
  2018. package/build-types/slot-fill/types.d.ts +6 -2
  2019. package/build-types/slot-fill/types.d.ts.map +1 -1
  2020. package/build-types/spacer/hook.d.ts +4 -4
  2021. package/build-types/surface/hook.d.ts +4 -4
  2022. package/build-types/tab-panel/stories/index.story.d.ts +4 -4
  2023. package/build-types/tab-panel/stories/index.story.d.ts.map +1 -1
  2024. package/build-types/tabs/index.d.ts.map +1 -1
  2025. package/build-types/tabs/stories/index.story.d.ts +9 -9
  2026. package/build-types/tabs/stories/index.story.d.ts.map +1 -1
  2027. package/build-types/text/get-line-height.d.ts.map +1 -1
  2028. package/build-types/text/hook.d.ts +4 -4
  2029. package/build-types/text/stories/index.story.d.ts +3 -3
  2030. package/build-types/text/styles.d.ts.map +1 -1
  2031. package/build-types/text/utils.d.ts.map +1 -1
  2032. package/build-types/text-control/index.d.ts +1 -1
  2033. package/build-types/theme/color-algorithms.d.ts.map +1 -1
  2034. package/build-types/theme/stories/index.story.d.ts +1 -1
  2035. package/build-types/toggle-control/index.d.ts +11 -3
  2036. package/build-types/toggle-control/index.d.ts.map +1 -1
  2037. package/build-types/toggle-control/stories/index.story.d.ts +4 -4
  2038. package/build-types/toggle-control/stories/index.story.d.ts.map +1 -1
  2039. package/build-types/toggle-group-control/toggle-group-control/styles.d.ts +1 -1
  2040. package/build-types/toggle-group-control/toggle-group-control/styles.d.ts.map +1 -1
  2041. package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts.map +1 -1
  2042. package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts +2 -2
  2043. package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts.map +1 -1
  2044. package/build-types/toolbar/stories/index.story.d.ts +3 -3
  2045. package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
  2046. package/build-types/tools-panel/tools-panel/hook.d.ts +4 -4
  2047. package/build-types/tools-panel/tools-panel-header/hook.d.ts +4 -4
  2048. package/build-types/tools-panel/tools-panel-item/hook.d.ts +4 -4
  2049. package/build-types/tooltip/stories/index.story.d.ts +1 -1
  2050. package/build-types/tooltip/stories/index.story.d.ts.map +1 -1
  2051. package/build-types/tree-grid/roving-tab-index-item.d.ts.map +1 -1
  2052. package/build-types/tree-grid/stories/index.story.d.ts +1 -1
  2053. package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
  2054. package/build-types/tree-select/stories/index.story.d.ts +1 -1
  2055. package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
  2056. package/build-types/truncate/hook.d.ts +4 -4
  2057. package/build-types/truncate/hook.d.ts.map +1 -1
  2058. package/build-types/unit-control/index.d.ts.map +1 -1
  2059. package/build-types/unit-control/styles/unit-control-styles.d.ts +1 -1
  2060. package/build-types/unit-control/utils.d.ts +3 -3
  2061. package/build-types/unit-control/utils.d.ts.map +1 -1
  2062. package/build-types/utils/colors.d.ts.map +1 -1
  2063. package/build-types/utils/font-size.d.ts.map +1 -1
  2064. package/build-types/utils/get-valid-children.d.ts.map +1 -1
  2065. package/build-types/utils/input/base.d.ts.map +1 -1
  2066. package/build-types/utils/reduce-motion.d.ts +4 -0
  2067. package/build-types/utils/reduce-motion.d.ts.map +1 -1
  2068. package/build-types/utils/strings.d.ts.map +1 -1
  2069. package/build-types/utils/use-responsive-value.d.ts.map +1 -1
  2070. package/build-types/v-stack/hook.d.ts +4 -4
  2071. package/build-types/v-stack/stories/index.story.d.ts +1 -1
  2072. package/build-types/view/component.d.ts +253 -7
  2073. package/build-types/view/component.d.ts.map +1 -1
  2074. package/package.json +20 -21
  2075. package/src/alignment-matrix-control/index.tsx +3 -1
  2076. package/src/alignment-matrix-control/styles/alignment-matrix-control-styles.ts +4 -3
  2077. package/src/alignment-matrix-control/utils.tsx +6 -2
  2078. package/src/autocomplete/autocompleter-ui.tsx +3 -1
  2079. package/src/autocomplete/index.tsx +21 -7
  2080. package/src/autocomplete/style.scss +10 -4
  2081. package/src/box-control/test/index.tsx +22 -0
  2082. package/src/card/test/__snapshots__/index.tsx.snap +44 -47
  2083. package/src/checkbox-control/index.tsx +44 -35
  2084. package/src/checkbox-control/style.scss +34 -25
  2085. package/src/checkbox-control/test/__snapshots__/index.tsx.snap +27 -26
  2086. package/src/checkbox-control/test/index.tsx +5 -0
  2087. package/src/color-palette/index.native.js +4 -3
  2088. package/src/color-picker/hex-input.tsx +3 -1
  2089. package/src/color-picker/hue-picker.native.js +6 -2
  2090. package/src/color-picker/index.native.js +9 -3
  2091. package/src/color-picker/saturation-picker.native.js +6 -2
  2092. package/src/color-picker/use-deprecated-props.ts +9 -3
  2093. package/src/combobox-control/README.md +4 -4
  2094. package/src/context/context-connect.ts +6 -2
  2095. package/src/custom-select-control/index.js +45 -55
  2096. package/src/custom-select-control/style.scss +6 -0
  2097. package/src/custom-select-control-v2/README.md +0 -4
  2098. package/src/custom-select-control-v2/legacy-component/index.tsx +3 -1
  2099. package/src/custom-select-control-v2/stories/default.story.tsx +1 -1
  2100. package/src/custom-select-control-v2/stories/legacy.story.tsx +1 -1
  2101. package/src/custom-select-control-v2/types.ts +7 -0
  2102. package/src/dimension-control/stories/index.story.tsx +4 -4
  2103. package/src/dimension-control/test/__snapshots__/index.test.js.snap +60 -12
  2104. package/src/drop-zone/index.tsx +66 -66
  2105. package/src/dropdown/styles.ts +3 -1
  2106. package/src/duotone-picker/utils.ts +3 -1
  2107. package/src/elevation/hook.ts +6 -3
  2108. package/src/elevation/test/__snapshots__/index.tsx.snap +18 -24
  2109. package/src/external-link/index.tsx +9 -11
  2110. package/src/external-link/style.scss +12 -0
  2111. package/src/flex/test/__snapshots__/index.tsx.snap +4 -4
  2112. package/src/focal-point-picker/controls.tsx +3 -1
  2113. package/src/focal-point-picker/index.tsx +20 -7
  2114. package/src/focal-point-picker/styles/focal-point-picker-style.ts +4 -3
  2115. package/src/focal-point-picker/tooltip/index.native.js +1 -7
  2116. package/src/focal-point-picker/utils.ts +3 -1
  2117. package/src/font-size-picker/README.md +1 -0
  2118. package/src/font-size-picker/index.tsx +4 -2
  2119. package/src/font-size-picker/stories/index.story.tsx +0 -1
  2120. package/src/font-size-picker/types.ts +2 -0
  2121. package/src/form-toggle/index.tsx +10 -2
  2122. package/src/form-toggle/stories/index.story.tsx +1 -1
  2123. package/src/heading/test/__snapshots__/index.tsx.snap +5 -2
  2124. package/src/higher-order/navigate-regions/style.scss +3 -3
  2125. package/src/input-control/backdrop.tsx +1 -6
  2126. package/src/input-control/index.tsx +1 -6
  2127. package/src/input-control/input-base.tsx +1 -8
  2128. package/src/input-control/input-field.tsx +3 -11
  2129. package/src/input-control/label.tsx +3 -1
  2130. package/src/input-control/stories/index.story.tsx +31 -1
  2131. package/src/input-control/styles/input-control-styles.tsx +73 -81
  2132. package/src/input-control/test/index.js +8 -4
  2133. package/src/input-control/types.ts +2 -13
  2134. package/src/input-control/utils.ts +3 -2
  2135. package/src/item-group/item/hook.ts +1 -10
  2136. package/src/item-group/test/__snapshots__/index.js.snap +16 -16
  2137. package/src/mobile/bottom-sheet-select-control/index.native.js +7 -3
  2138. package/src/mobile/gradient/index.native.js +3 -1
  2139. package/src/mobile/keyboard-aware-flat-list/index.android.js +11 -2
  2140. package/src/mobile/keyboard-aware-flat-list/index.ios.js +30 -19
  2141. package/src/mobile/keyboard-aware-flat-list/shared.native.js +26 -0
  2142. package/src/mobile/keyboard-aware-flat-list/styles.native.scss +8 -0
  2143. package/src/modal/aria-helper.ts +8 -3
  2144. package/src/modal/index.tsx +6 -2
  2145. package/src/modal/test/index.tsx +11 -4
  2146. package/src/navigation/README.md +4 -0
  2147. package/src/navigation/back-button/index.tsx +3 -0
  2148. package/src/navigation/group/index.tsx +3 -0
  2149. package/src/navigation/index.tsx +2 -0
  2150. package/src/navigation/item/index.tsx +3 -0
  2151. package/src/navigation/menu/index.tsx +3 -0
  2152. package/src/navigation/stories/index.story.tsx +7 -1
  2153. package/src/navigation/styles/navigation-styles.tsx +4 -3
  2154. package/src/navigator/navigator-provider/component.tsx +7 -1
  2155. package/src/panel/body.tsx +3 -1
  2156. package/src/panel/style.scss +1 -0
  2157. package/src/placeholder/style.scss +15 -41
  2158. package/src/popover/index.tsx +2 -1
  2159. package/src/popover/overlay-middlewares.tsx +3 -1
  2160. package/src/popover/stories/index.story.tsx +0 -2
  2161. package/src/progress-bar/index.tsx +8 -2
  2162. package/src/progress-bar/styles.ts +2 -3
  2163. package/src/progress-bar/test/index.tsx +4 -1
  2164. package/src/query-controls/author-select.tsx +3 -1
  2165. package/src/range-control/rail.tsx +1 -1
  2166. package/src/range-control/styles/range-control-styles.ts +5 -3
  2167. package/src/resizable-box/resize-tooltip/index.tsx +3 -1
  2168. package/src/resizable-box/resize-tooltip/label.tsx +3 -1
  2169. package/src/resizable-box/resize-tooltip/utils.ts +12 -4
  2170. package/src/select-control/index.tsx +4 -20
  2171. package/src/select-control/styles/select-control-styles.ts +3 -1
  2172. package/src/slot-fill/bubbles-virtually/slot-fill-context.ts +4 -6
  2173. package/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx +10 -18
  2174. package/src/slot-fill/bubbles-virtually/use-slot-fills.ts +2 -10
  2175. package/src/slot-fill/bubbles-virtually/use-slot.ts +2 -10
  2176. package/src/slot-fill/types.ts +7 -2
  2177. package/src/snackbar/index.tsx +1 -1
  2178. package/src/style.scss +1 -0
  2179. package/src/surface/test/__snapshots__/index.tsx.snap +10 -10
  2180. package/src/tabs/index.tsx +8 -0
  2181. package/src/tabs/test/index.tsx +38 -0
  2182. package/src/text/get-line-height.ts +6 -2
  2183. package/src/text/styles.ts +1 -0
  2184. package/src/text/test/__snapshots__/index.tsx.snap +4 -1
  2185. package/src/text/utils.ts +6 -2
  2186. package/src/theme/color-algorithms.ts +6 -2
  2187. package/src/toggle-control/index.tsx +16 -11
  2188. package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +18 -24
  2189. package/src/toggle-group-control/toggle-group-control-option-base/component.tsx +3 -1
  2190. package/src/toggle-group-control/toggle-group-control-option-base/styles.ts +7 -6
  2191. package/src/toolbar/toolbar/style.scss +2 -2
  2192. package/src/toolbar/toolbar-group/style.scss +1 -6
  2193. package/src/tooltip/test/index.tsx +5 -8
  2194. package/src/tree-grid/roving-tab-index-item.tsx +3 -1
  2195. package/src/truncate/hook.ts +4 -0
  2196. package/src/unit-control/index.tsx +5 -1
  2197. package/src/utils/colors.js +21 -7
  2198. package/src/utils/font-size.ts +3 -1
  2199. package/src/utils/get-valid-children.ts +3 -1
  2200. package/src/utils/input/base.js +4 -3
  2201. package/src/utils/reduce-motion.js +4 -0
  2202. package/src/utils/strings.ts +11 -59
  2203. package/src/utils/test/strings.js +62 -0
  2204. package/src/utils/use-responsive-value.ts +2 -1
  2205. package/src/view/component.tsx +18 -11
  2206. package/tsconfig.json +1 -2
  2207. package/tsconfig.tsbuildinfo +1 -1
  2208. package/build/external-link/styles/external-link-styles.js +0 -25
  2209. package/build/external-link/styles/external-link-styles.js.map +0 -1
  2210. package/build/view/types.js +0 -6
  2211. package/build/view/types.js.map +0 -1
  2212. package/build-module/external-link/styles/external-link-styles.js +0 -25
  2213. package/build-module/external-link/styles/external-link-styles.js.map +0 -1
  2214. package/build-module/view/types.js +0 -2
  2215. package/build-module/view/types.js.map +0 -1
  2216. package/build-types/external-link/styles/external-link-styles.d.ts +0 -10
  2217. package/build-types/external-link/styles/external-link-styles.d.ts.map +0 -1
  2218. package/build-types/view/types.d.ts +0 -8
  2219. package/build-types/view/types.d.ts.map +0 -1
  2220. package/src/external-link/styles/external-link-styles.ts +0 -17
  2221. package/src/utils/hooks/stories/use-cx.js +0 -157
  2222. package/src/view/types.ts +0 -6
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","_useNavigationTreeNodes","useCreateNavigationTree","nodes","items","getNode","getItem","addNode","addItem","removeNode","removeItem","useNavigationTreeNodes","menus","getMenu","addMenu","removeMenu","childMenu","setChildMenu","useState","getChildMenu","menu","traverseMenu","startMenu","callback","visited","queue","current","length","shift","includes","push","isMenuEmpty","menuToCheck","isEmpty","undefined","key","value","state","newState","parentMenu","exports"],"sources":["@wordpress/components/src/navigation/use-create-navigation-tree.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useState } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { useNavigationTreeNodes } from './use-navigation-tree-nodes';\n\nimport type { NavigationContext, Item, Menu } from './types';\n\nexport const useCreateNavigationTree = () => {\n\tconst {\n\t\tnodes: items,\n\t\tgetNode: getItem,\n\t\taddNode: addItem,\n\t\tremoveNode: removeItem,\n\t} = useNavigationTreeNodes< Item >();\n\n\tconst {\n\t\tnodes: menus,\n\t\tgetNode: getMenu,\n\t\taddNode: addMenu,\n\t\tremoveNode: removeMenu,\n\t} = useNavigationTreeNodes< Menu >();\n\n\t/**\n\t * Stores direct nested menus of menus\n\t * This makes it easy to traverse menu tree\n\t *\n\t * Key is the menu prop of the menu\n\t * Value is an array of menu keys\n\t */\n\tconst [ childMenu, setChildMenu ] = useState< Record< string, string[] > >(\n\t\t{}\n\t);\n\tconst getChildMenu = ( menu: string ) => childMenu[ menu ] || [];\n\n\tconst traverseMenu: NavigationContext[ 'navigationTree' ][ 'traverseMenu' ] =\n\t\t( startMenu, callback ) => {\n\t\t\tconst visited: string[] = [];\n\t\t\tlet queue = [ startMenu ];\n\t\t\tlet current: Menu;\n\n\t\t\twhile ( queue.length > 0 ) {\n\t\t\t\t// Type cast to string is safe because of the `length > 0` check above.\n\t\t\t\tcurrent = getMenu( queue.shift() as string );\n\n\t\t\t\tif ( ! current || visited.includes( current.menu ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tvisited.push( current.menu );\n\t\t\t\tqueue = [ ...queue, ...getChildMenu( current.menu ) ];\n\n\t\t\t\tif ( callback( current ) === false ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\tconst isMenuEmpty = ( menuToCheck: string ) => {\n\t\tlet isEmpty = true;\n\n\t\ttraverseMenu( menuToCheck, ( current: Menu ) => {\n\t\t\tif ( ! current.isEmpty ) {\n\t\t\t\tisEmpty = false;\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn undefined;\n\t\t} );\n\n\t\treturn isEmpty;\n\t};\n\n\treturn {\n\t\titems,\n\t\tgetItem,\n\t\taddItem,\n\t\tremoveItem,\n\n\t\tmenus,\n\t\tgetMenu,\n\t\taddMenu: ( key: string, value: Menu ) => {\n\t\t\tsetChildMenu( ( state ) => {\n\t\t\t\tconst newState = { ...state };\n\n\t\t\t\tif ( ! value.parentMenu ) {\n\t\t\t\t\treturn newState;\n\t\t\t\t}\n\n\t\t\t\tif ( ! newState[ value.parentMenu ] ) {\n\t\t\t\t\tnewState[ value.parentMenu ] = [];\n\t\t\t\t}\n\n\t\t\t\tnewState[ value.parentMenu ].push( key );\n\n\t\t\t\treturn newState;\n\t\t\t} );\n\n\t\t\taddMenu( key, value );\n\t\t},\n\t\tremoveMenu,\n\t\tchildMenu,\n\t\ttraverseMenu,\n\t\tisMenuEmpty,\n\t};\n};\n"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AAKA,IAAAC,uBAAA,GAAAD,OAAA;AARA;AACA;AACA;;AAGA;AACA;AACA;;AAK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,OAAO,GAAG,IAAI;IAElBZ,YAAY,CAAEW,WAAW,EAAIN,OAAa,IAAM;MAC/C,IAAK,CAAEA,OAAO,CAACO,OAAO,EAAG;QACxBA,OAAO,GAAG,KAAK;QACf,OAAO,KAAK;MACb;MAEA,OAAOC,SAAS;IACjB,CAAE,CAAC;IAEH,OAAOD,OAAO;EACf,CAAC;EAED,OAAO;IACN7B,KAAK;IACLE,OAAO;IACPE,OAAO;IACPE,UAAU;IAEVE,KAAK;IACLC,OAAO;IACPC,OAAO,EAAEA,CAAEqB,GAAW,EAAEC,KAAW,KAAM;MACxCnB,YAAY,CAAIoB,KAAK,IAAM;QAC1B,MAAMC,QAAQ,GAAG;UAAE,GAAGD;QAAM,CAAC;QAE7B,IAAK,CAAED,KAAK,CAACG,UAAU,EAAG;UACzB,OAAOD,QAAQ;QAChB;QAEA,IAAK,CAAEA,QAAQ,CAAEF,KAAK,CAACG,UAAU,CAAE,EAAG;UACrCD,QAAQ,CAAEF,KAAK,CAACG,UAAU,CAAE,GAAG,EAAE;QAClC;QAEAD,QAAQ,CAAEF,KAAK,CAACG,UAAU,CAAE,CAACT,IAAI,CAAEK,GAAI,CAAC;QAExC,OAAOG,QAAQ;MAChB,CAAE,CAAC;MAEHxB,OAAO,CAAEqB,GAAG,EAAEC,KAAM,CAAC;IACtB,CAAC;IACDrB,UAAU;IACVC,SAAS;IACTK,YAAY;IACZU;EACD,CAAC;AACF,CAAC;AAACS,OAAA,CAAAtC,uBAAA,GAAAA,uBAAA"}
1
+ {"version":3,"names":["_element","require","_useNavigationTreeNodes","useCreateNavigationTree","nodes","items","getNode","getItem","addNode","addItem","removeNode","removeItem","useNavigationTreeNodes","menus","getMenu","addMenu","removeMenu","childMenu","setChildMenu","useState","getChildMenu","menu","traverseMenu","startMenu","callback","visited","queue","current","length","shift","includes","push","isMenuEmpty","menuToCheck","isEmpty","undefined","key","value","state","newState","parentMenu","exports"],"sources":["@wordpress/components/src/navigation/use-create-navigation-tree.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useState } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { useNavigationTreeNodes } from './use-navigation-tree-nodes';\n\nimport type { NavigationContext, Item, Menu } from './types';\n\nexport const useCreateNavigationTree = () => {\n\tconst {\n\t\tnodes: items,\n\t\tgetNode: getItem,\n\t\taddNode: addItem,\n\t\tremoveNode: removeItem,\n\t} = useNavigationTreeNodes< Item >();\n\n\tconst {\n\t\tnodes: menus,\n\t\tgetNode: getMenu,\n\t\taddNode: addMenu,\n\t\tremoveNode: removeMenu,\n\t} = useNavigationTreeNodes< Menu >();\n\n\t/**\n\t * Stores direct nested menus of menus\n\t * This makes it easy to traverse menu tree\n\t *\n\t * Key is the menu prop of the menu\n\t * Value is an array of menu keys\n\t */\n\tconst [ childMenu, setChildMenu ] = useState< Record< string, string[] > >(\n\t\t{}\n\t);\n\tconst getChildMenu = ( menu: string ) => childMenu[ menu ] || [];\n\n\tconst traverseMenu: NavigationContext[ 'navigationTree' ][ 'traverseMenu' ] =\n\t\t( startMenu, callback ) => {\n\t\t\tconst visited: string[] = [];\n\t\t\tlet queue = [ startMenu ];\n\t\t\tlet current: Menu;\n\n\t\t\twhile ( queue.length > 0 ) {\n\t\t\t\t// Type cast to string is safe because of the `length > 0` check above.\n\t\t\t\tcurrent = getMenu( queue.shift() as string );\n\n\t\t\t\tif ( ! current || visited.includes( current.menu ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tvisited.push( current.menu );\n\t\t\t\tqueue = [ ...queue, ...getChildMenu( current.menu ) ];\n\n\t\t\t\tif ( callback( current ) === false ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\tconst isMenuEmpty = ( menuToCheck: string ) => {\n\t\tlet isEmpty = true;\n\n\t\ttraverseMenu( menuToCheck, ( current: Menu ) => {\n\t\t\tif ( ! current.isEmpty ) {\n\t\t\t\tisEmpty = false;\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn undefined;\n\t\t} );\n\n\t\treturn isEmpty;\n\t};\n\n\treturn {\n\t\titems,\n\t\tgetItem,\n\t\taddItem,\n\t\tremoveItem,\n\n\t\tmenus,\n\t\tgetMenu,\n\t\taddMenu: ( key: string, value: Menu ) => {\n\t\t\tsetChildMenu( ( state ) => {\n\t\t\t\tconst newState = { ...state };\n\n\t\t\t\tif ( ! value.parentMenu ) {\n\t\t\t\t\treturn newState;\n\t\t\t\t}\n\n\t\t\t\tif ( ! newState[ value.parentMenu ] ) {\n\t\t\t\t\tnewState[ value.parentMenu ] = [];\n\t\t\t\t}\n\n\t\t\t\tnewState[ value.parentMenu ].push( key );\n\n\t\t\t\treturn newState;\n\t\t\t} );\n\n\t\t\taddMenu( key, value );\n\t\t},\n\t\tremoveMenu,\n\t\tchildMenu,\n\t\ttraverseMenu,\n\t\tisMenuEmpty,\n\t};\n};\n"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AAKA,IAAAC,uBAAA,GAAAD,OAAA;AARA;AACA;AACA;;AAGA;AACA;AACA;;AAKO,MAAME,uBAAuB,GAAGA,CAAA,KAAM;EAC5C,MAAM;IACLC,KAAK,EAAEC,KAAK;IACZC,OAAO,EAAEC,OAAO;IAChBC,OAAO,EAAEC,OAAO;IAChBC,UAAU,EAAEC;EACb,CAAC,GAAG,IAAAC,8CAAsB,EAAS,CAAC;EAEpC,MAAM;IACLR,KAAK,EAAES,KAAK;IACZP,OAAO,EAAEQ,OAAO;IAChBN,OAAO,EAAEO,OAAO;IAChBL,UAAU,EAAEM;EACb,CAAC,GAAG,IAAAJ,8CAAsB,EAAS,CAAC;;EAEpC;AACD;AACA;AACA;AACA;AACA;AACA;EACC,MAAM,CAAEK,SAAS,EAAEC,YAAY,CAAE,GAAG,IAAAC,iBAAQ,EAC3C,CAAC,CACF,CAAC;EACD,MAAMC,YAAY,GAAKC,IAAY,IAAMJ,SAAS,CAAEI,IAAI,CAAE,IAAI,EAA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AAEF,KAAK,CAACG,UAAU,CAAE,EAAG;UACrCD,QAAQ,CAAEF,KAAK,CAACG,UAAU,CAAE,GAAG,EAAE;QAClC;QAEAD,QAAQ,CAAEF,KAAK,CAACG,UAAU,CAAE,CAACT,IAAI,CAAEK,GAAI,CAAC;QAExC,OAAOG,QAAQ;MAChB,CAAE,CAAC;MAEHxB,OAAO,CAAEqB,GAAG,EAAEC,KAAM,CAAC;IACtB,CAAC;IACDrB,UAAU;IACVC,SAAS;IACTK,YAAY;IACZU;EACD,CAAC;AACF,CAAC;AAACS,OAAA,CAAAtC,uBAAA,GAAAA,uBAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","useNavigationTreeNodes","nodes","setNodes","useState","getNode","key","addNode","value","children","newNode","original","removeNode","removedNode","remainingNodes"],"sources":["@wordpress/components/src/navigation/use-navigation-tree-nodes.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useState } from '@wordpress/element';\n\nexport function useNavigationTreeNodes<\n\tTNode extends { children?: React.ReactNode; [ key: string ]: unknown },\n>() {\n\tconst [ nodes, setNodes ] = useState<\n\t\tRecord< string, Omit< TNode, 'children' > >\n\t>( {} );\n\n\tconst getNode = ( key: string ) => nodes[ key ];\n\n\tconst addNode = ( key: string, value: TNode ) => {\n\t\tconst { children, ...newNode } = value;\n\t\treturn setNodes( ( original ) => ( {\n\t\t\t...original,\n\t\t\t[ key ]: newNode,\n\t\t} ) );\n\t};\n\n\tconst removeNode = ( key: keyof typeof nodes ) => {\n\t\treturn setNodes( ( original ) => {\n\t\t\tconst { [ key ]: removedNode, ...remainingNodes } = original;\n\t\t\treturn remainingNodes;\n\t\t} );\n\t};\n\n\treturn { nodes, getNode, addNode, removeNode };\n}\n"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAGO,SAASC,sBAAsBA,CAAA,EAElC;EACH,MAAM,CAAEC,KAAK,EAAEC,QAAQ,CAAE,GAAG,IAAAC,iBAAQ,EAEjC,CAAC,CAAE,CAAC;EAEP,MAAMC,OAAO,GAAKC,GAAW,IAAMJ,KAAK,CAAEI,GAAG,CAAE;EAE/C,MAAMC,OAAO,GAAGA,CAAED,GAAW,EAAEE,KAAY,KAAM;IAChD,MAAM;MAAEC,QAAQ;MAAE,GAAGC;IAAQ,CAAC,GAAGF,KAAK;IACtC,OAAOL,QAAQ,CAAIQ,QAAQ,KAAQ;MAClC,GAAGA,QAAQ;MACX,CAAEL,GAAG,GAAII;IACV,CAAC,CAAG,CAAC;EACN,CAAC;EAED,MAAME,UAAU,GAAKN,GAAuB,IAAM;IACjD,OAAOH,QAAQ,CAAIQ,QAAQ,IAAM;MAChC,MAAM;QAAE,CAAEL,GAAG,GAAIO,WAAW;QAAE,GAAGC;MAAe,CAAC,GAAGH,QAAQ;MAC5D,OAAOG,cAAc;IACtB,CAAE,CAAC;EACJ,CAAC;EAED,OAAO;IAAEZ,KAAK;IAAEG,OAAO;IAAEE,OAAO;IAAEK;EAAW,CAAC;AAC/C"}
1
+ {"version":3,"names":["_element","require","useNavigationTreeNodes","nodes","setNodes","useState","getNode","key","addNode","value","children","newNode","original","removeNode","removedNode","remainingNodes"],"sources":["@wordpress/components/src/navigation/use-navigation-tree-nodes.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useState } from '@wordpress/element';\n\nexport function useNavigationTreeNodes<\n\tTNode extends { children?: React.ReactNode; [ key: string ]: unknown },\n>() {\n\tconst [ nodes, setNodes ] = useState<\n\t\tRecord< string, Omit< TNode, 'children' > >\n\t>( {} );\n\n\tconst getNode = ( key: string ) => nodes[ key ];\n\n\tconst addNode = ( key: string, value: TNode ) => {\n\t\tconst { children, ...newNode } = value;\n\t\treturn setNodes( ( original ) => ( {\n\t\t\t...original,\n\t\t\t[ key ]: newNode,\n\t\t} ) );\n\t};\n\n\tconst removeNode = ( key: keyof typeof nodes ) => {\n\t\treturn setNodes( ( original ) => {\n\t\t\tconst { [ key ]: removedNode, ...remainingNodes } = original;\n\t\t\treturn remainingNodes;\n\t\t} );\n\t};\n\n\treturn { nodes, getNode, addNode, removeNode };\n}\n"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAGO,SAASC,sBAAsBA,CAAA,EAElC;EACH,MAAM,CAAEC,KAAK,EAAEC,QAAQ,CAAE,GAAG,IAAAC,iBAAQ,EAEjC,CAAC,CAAE,CAAC;EAEP,MAAMC,OAAO,GAAKC,GAAW,IAAMJ,KAAK,CAAEI,GAAG,CAAE;EAE/C,MAAMC,OAAO,GAAGA,CAAED,GAAW,EAAEE,KAAY,KAAM;IAChD,MAAM;MAAEC,QAAQ;MAAE,GAAGC;IAAQ,CAAC,GAAGF,KAAK;IACtC,OAAOL,QAAQ,CAAIQ,QAAQ,KAAQ;MAClC,GAAGA,QAAQ;MACX,CAAEL,GAAG,GAAII;IACV,CAAC,CAAG,CAAC;EACN,CAAC;EAED,MAAME,UAAU,GAAKN,GAAuB,IAAM;IACjD,OAAOH,QAAQ,CAAIQ,QAAQ,IAAM;MAChC,MAAM;QAAE,CAAEL,GAAG,GAAIO,WAAW;QAAE,GAAGC;MAAe,CAAC,GAAGH,QAAQ;MAC5D,OAAOG,cAAc;IACtB,CAAE,CAAC;EACJ,CAAC;EAED,OAAO;IAAEZ,KAAK;IAAEG,OAAO;IAAEE,OAAO;IAAEK;EAAW,CAAC;AAC/C","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_removeAccents","_interopRequireDefault","require","normalizeInput","input","removeAccents","replace","toLowerCase","exports","normalizedSearch","title","search","indexOf"],"sources":["@wordpress/components/src/navigation/utils.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport removeAccents from 'remove-accents';\n\n// @see packages/block-editor/src/components/inserter/search-items.js\nexport const normalizeInput = ( input: string ) =>\n\tremoveAccents( input ).replace( /^\\//, '' ).toLowerCase();\n\nexport const normalizedSearch = ( title: string, search: string ) =>\n\t-1 !== normalizeInput( title ).indexOf( normalizeInput( search ) );\n"],"mappings":";;;;;;;AAGA,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AAHA;AACA;AACA;;AAGA;AACO,MAAMC,cAAc,GAAKC,KAAa,IAC5C,IAAAC,sBAAa,EAAED,KAAM,CAAC,CAACE,OAAO,CAAE,KAAK,EAAE,EAAG,CAAC,CAACC,WAAW,CAAC,CAAC;AAACC,OAAA,CAAAL,cAAA,GAAAA,cAAA;AAEpD,MAAMM,gBAAgB,GAAGA,CAAEC,KAAa,EAAEC,MAAc,KAC9D,CAAC,CAAC,KAAKR,cAAc,CAAEO,KAAM,CAAC,CAACE,OAAO,CAAET,cAAc,CAAEQ,MAAO,CAAE,CAAC;AAACH,OAAA,CAAAC,gBAAA,GAAAA,gBAAA"}
1
+ {"version":3,"names":["_removeAccents","_interopRequireDefault","require","normalizeInput","input","removeAccents","replace","toLowerCase","exports","normalizedSearch","title","search","indexOf"],"sources":["@wordpress/components/src/navigation/utils.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport removeAccents from 'remove-accents';\n\n// @see packages/block-editor/src/components/inserter/search-items.js\nexport const normalizeInput = ( input: string ) =>\n\tremoveAccents( input ).replace( /^\\//, '' ).toLowerCase();\n\nexport const normalizedSearch = ( title: string, search: string ) =>\n\t-1 !== normalizeInput( title ).indexOf( normalizeInput( search ) );\n"],"mappings":";;;;;;;AAGA,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AAHA;AACA;AACA;;AAGA;AACO,MAAMC,cAAc,GAAKC,KAAa,IAC5C,IAAAC,sBAAa,EAAED,KAAM,CAAC,CAACE,OAAO,CAAE,KAAK,EAAE,EAAG,CAAC,CAACC,WAAW,CAAC,CAAC;AAACC,OAAA,CAAAL,cAAA,GAAAA,cAAA;AAEpD,MAAMM,gBAAgB,GAAGA,CAAEC,KAAa,EAAEC,MAAc,KAC9D,CAAC,CAAC,KAAKR,cAAc,CAAEO,KAAM,CAAC,CAACE,OAAO,CAAET,cAAc,CAAEQ,MAAO,CAAE,CAAC;AAACH,OAAA,CAAAC,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -9,6 +9,10 @@ var _element = require("@wordpress/element");
9
9
  * WordPress dependencies
10
10
  */
11
11
 
12
+ /**
13
+ * Internal dependencies
14
+ */
15
+
12
16
  const initialContextValue = {
13
17
  location: {},
14
18
  goTo: () => {},
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","initialContextValue","location","goTo","goBack","goToParent","addScreen","removeScreen","params","NavigatorContext","exports","createContext"],"sources":["@wordpress/components/src/navigator/context.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { createContext } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport type { NavigatorContext as NavigatorContextType } from './types';\n\nconst initialContextValue: NavigatorContextType = {\n\tlocation: {},\n\tgoTo: () => {},\n\tgoBack: () => {},\n\tgoToParent: () => {},\n\taddScreen: () => {},\n\tremoveScreen: () => {},\n\tparams: {},\n};\nexport const NavigatorContext = createContext( initialContextValue );\n"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAQA,MAAMC,mBAAyC,GAAG;EACjDC,QAAQ,EAAE,CAAC,CAAC;EACZC,IAAI,EAAEA,CAAA,KAAM,CAAC,CAAC;EACdC,MAAM,EAAEA,CAAA,KAAM,CAAC,CAAC;EAChBC,UAAU,EAAEA,CAAA,KAAM,CAAC,CAAC;EACpBC,SAAS,EAAEA,CAAA,KAAM,CAAC,CAAC;EACnBC,YAAY,EAAEA,CAAA,KAAM,CAAC,CAAC;EACtBC,MAAM,EAAE,CAAC;AACV,CAAC;AACM,MAAMC,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,IAAAE,sBAAa,EAAEV,mBAAoB,CAAC"}
1
+ {"version":3,"names":["_element","require","initialContextValue","location","goTo","goBack","goToParent","addScreen","removeScreen","params","NavigatorContext","exports","createContext"],"sources":["@wordpress/components/src/navigator/context.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { createContext } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport type { NavigatorContext as NavigatorContextType } from './types';\n\nconst initialContextValue: NavigatorContextType = {\n\tlocation: {},\n\tgoTo: () => {},\n\tgoBack: () => {},\n\tgoToParent: () => {},\n\taddScreen: () => {},\n\tremoveScreen: () => {},\n\tparams: {},\n};\nexport const NavigatorContext = createContext( initialContextValue );\n"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAGA;AACA;AACA;;AAGA,MAAMC,mBAAyC,GAAG;EACjDC,QAAQ,EAAE,CAAC,CAAC;EACZC,IAAI,EAAEA,CAAA,KAAM,CAAC,CAAC;EACdC,MAAM,EAAEA,CAAA,KAAM,CAAC,CAAC;EAChBC,UAAU,EAAEA,CAAA,KAAM,CAAC,CAAC;EACpBC,SAAS,EAAEA,CAAA,KAAM,CAAC,CAAC;EACnBC,YAAY,EAAEA,CAAA,KAAM,CAAC,CAAC;EACtBC,MAAM,EAAE,CAAC;AACV,CAAC;AACM,MAAMC,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,IAAAE,sBAAa,EAAEV,mBAAoB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_navigatorProvider","require","_navigatorScreen","_navigatorButton","_navigatorBackButton","_navigatorToParentButton","_useNavigator","_interopRequireDefault"],"sources":["@wordpress/components/src/navigator/index.ts"],"sourcesContent":["export { NavigatorProvider } from './navigator-provider';\nexport { NavigatorScreen } from './navigator-screen';\nexport { NavigatorButton } from './navigator-button';\nexport { NavigatorBackButton } from './navigator-back-button';\nexport { NavigatorToParentButton } from './navigator-to-parent-button';\nexport { default as useNavigator } from './use-navigator';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,wBAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAC,sBAAA,CAAAN,OAAA"}
1
+ {"version":3,"names":["_navigatorProvider","require","_navigatorScreen","_navigatorButton","_navigatorBackButton","_navigatorToParentButton","_useNavigator","_interopRequireDefault"],"sources":["@wordpress/components/src/navigator/index.ts"],"sourcesContent":["export { NavigatorProvider } from './navigator-provider';\nexport { NavigatorScreen } from './navigator-screen';\nexport { NavigatorButton } from './navigator-button';\nexport { NavigatorBackButton } from './navigator-back-button';\nexport { NavigatorToParentButton } from './navigator-to-parent-button';\nexport { default as useNavigator } from './use-navigator';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,wBAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAC,sBAAA,CAAAN,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_context","require","_view","_hook","UnconnectedNavigatorBackButton","props","forwardedRef","navigatorBackButtonProps","useNavigatorBackButton","_react","createElement","View","ref","NavigatorBackButton","exports","contextConnect","_default","default"],"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":";;;;;;;AASA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAXA;AACA;AACA;;AAGA;AACA;AACA;;AAOA,SAASG,8BAA8BA,CACtCC,KAAoE,EACpEC,YAAiC,EAChC;EACD,MAAMC,wBAAwB,GAAG,IAAAC,4BAAsB,EAAEH,KAAM,CAAC;EAEhE,OAAO,IAAAI,MAAA,CAAAC,aAAA,EAACR,KAAA,CAAAS,IAAI;IAACC,GAAG,EAAGN,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;AACO,MAAMM,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAG,IAAAE,uBAAc,EAChDX,8BAA8B,EAC9B,qBACD,CAAC;AAAC,IAAAY,QAAA,GAAAF,OAAA,CAAAG,OAAA,GAEaJ,mBAAmB"}
1
+ {"version":3,"names":["_context","require","_view","_hook","UnconnectedNavigatorBackButton","props","forwardedRef","navigatorBackButtonProps","useNavigatorBackButton","_react","createElement","View","ref","NavigatorBackButton","exports","contextConnect","_default","default"],"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":";;;;;;;AASA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAXA;AACA;AACA;;AAGA;AACA;AACA;;AAOA,SAASG,8BAA8BA,CACtCC,KAAoE,EACpEC,YAAiC,EAChC;EACD,MAAMC,wBAAwB,GAAG,IAAAC,4BAAsB,EAAEH,KAAM,CAAC;EAEhE,OAAO,IAAAI,MAAA,CAAAC,aAAA,EAACR,KAAA,CAAAS,IAAI;IAACC,GAAG,EAAGN,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;AACO,MAAMM,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAG,IAAAE,uBAAc,EAChDX,8BAA8B,EAC9B,qBACD,CAAC;AAAC,IAAAY,QAAA,GAAAF,OAAA,CAAAG,OAAA,GAEaJ,mBAAmB","ignoreList":[]}
@@ -13,6 +13,10 @@ var _useNavigator = _interopRequireDefault(require("../use-navigator"));
13
13
  * WordPress dependencies
14
14
  */
15
15
 
16
+ /**
17
+ * Internal dependencies
18
+ */
19
+
16
20
  function useNavigatorBackButton(props) {
17
21
  const {
18
22
  onClick,
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","_context","_button","_interopRequireDefault","_useNavigator","useNavigatorBackButton","props","onClick","as","Button","goToParent","goToParentProp","otherProps","useContextSystem","goBack","useNavigator","handleClick","useCallback","e","preventDefault"],"sources":["@wordpress/components/src/navigator/navigator-back-button/hook.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useCallback } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../../context';\nimport { useContextSystem } from '../../context';\nimport Button from '../../button';\nimport useNavigator from '../use-navigator';\nimport type { NavigatorBackButtonHookProps } from '../types';\n\nexport function useNavigatorBackButton(\n\tprops: WordPressComponentProps< NavigatorBackButtonHookProps, 'button' >\n) {\n\tconst {\n\t\tonClick,\n\t\tas = Button,\n\t\tgoToParent: goToParentProp = false,\n\t\t...otherProps\n\t} = useContextSystem( props, 'NavigatorBackButton' );\n\n\tconst { goBack, goToParent } = useNavigator();\n\tconst handleClick: React.MouseEventHandler< HTMLButtonElement > =\n\t\tuseCallback(\n\t\t\t( e ) => {\n\t\t\t\te.preventDefault();\n\t\t\t\tif ( goToParentProp ) {\n\t\t\t\t\tgoToParent();\n\t\t\t\t} else {\n\t\t\t\t\tgoBack();\n\t\t\t\t}\n\t\t\t\tonClick?.( e );\n\t\t\t},\n\t\t\t[ goToParentProp, goToParent, goBack, onClick ]\n\t\t);\n\n\treturn {\n\t\tas,\n\t\tonClick: handleClick,\n\t\t...otherProps,\n\t};\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AAMA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,aAAA,GAAAD,sBAAA,CAAAH,OAAA;AAXA;AACA;AACA;;AAYO,SAASK,sBAAsBA,CACrCC,KAAwE,EACvE;EACD,MAAM;IACLC,OAAO;IACPC,EAAE,GAAGC,eAAM;IACXC,UAAU,EAAEC,cAAc,GAAG,KAAK;IAClC,GAAGC;EACJ,CAAC,GAAG,IAAAC,yBAAgB,EAAEP,KAAK,EAAE,qBAAsB,CAAC;EAEpD,MAAM;IAAEQ,MAAM;IAAEJ;EAAW,CAAC,GAAG,IAAAK,qBAAY,EAAC,CAAC;EAC7C,MAAMC,WAAyD,GAC9D,IAAAC,oBAAW,EACRC,CAAC,IAAM;IACRA,CAAC,CAACC,cAAc,CAAC,CAAC;IAClB,IAAKR,cAAc,EAAG;MACrBD,UAAU,CAAC,CAAC;IACb,CAAC,MAAM;MACNI,MAAM,CAAC,CAAC;IACT;IACAP,OAAO,GAAIW,CAAE,CAAC;EACf,CAAC,EACD,CAAEP,cAAc,EAAED,UAAU,EAAEI,MAAM,EAAEP,OAAO,CAC9C,CAAC;EAEF,OAAO;IACNC,EAAE;IACFD,OAAO,EAAES,WAAW;IACpB,GAAGJ;EACJ,CAAC;AACF"}
1
+ {"version":3,"names":["_element","require","_context","_button","_interopRequireDefault","_useNavigator","useNavigatorBackButton","props","onClick","as","Button","goToParent","goToParentProp","otherProps","useContextSystem","goBack","useNavigator","handleClick","useCallback","e","preventDefault"],"sources":["@wordpress/components/src/navigator/navigator-back-button/hook.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useCallback } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../../context';\nimport { useContextSystem } from '../../context';\nimport Button from '../../button';\nimport useNavigator from '../use-navigator';\nimport type { NavigatorBackButtonHookProps } from '../types';\n\nexport function useNavigatorBackButton(\n\tprops: WordPressComponentProps< NavigatorBackButtonHookProps, 'button' >\n) {\n\tconst {\n\t\tonClick,\n\t\tas = Button,\n\t\tgoToParent: goToParentProp = false,\n\t\t...otherProps\n\t} = useContextSystem( props, 'NavigatorBackButton' );\n\n\tconst { goBack, goToParent } = useNavigator();\n\tconst handleClick: React.MouseEventHandler< HTMLButtonElement > =\n\t\tuseCallback(\n\t\t\t( e ) => {\n\t\t\t\te.preventDefault();\n\t\t\t\tif ( goToParentProp ) {\n\t\t\t\t\tgoToParent();\n\t\t\t\t} else {\n\t\t\t\t\tgoBack();\n\t\t\t\t}\n\t\t\t\tonClick?.( e );\n\t\t\t},\n\t\t\t[ goToParentProp, goToParent, goBack, onClick ]\n\t\t);\n\n\treturn {\n\t\tas,\n\t\tonClick: handleClick,\n\t\t...otherProps,\n\t};\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AAMA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,aAAA,GAAAD,sBAAA,CAAAH,OAAA;AAXA;AACA;AACA;;AAGA;AACA;AACA;;AAOO,SAASK,sBAAsBA,CACrCC,KAAwE,EACvE;EACD,MAAM;IACLC,OAAO;IACPC,EAAE,GAAGC,eAAM;IACXC,UAAU,EAAEC,cAAc,GAAG,KAAK;IAClC,GAAGC;EACJ,CAAC,GAAG,IAAAC,yBAAgB,EAAEP,KAAK,EAAE,qBAAsB,CAAC;EAEpD,MAAM;IAAEQ,MAAM;IAAEJ;EAAW,CAAC,GAAG,IAAAK,qBAAY,EAAC,CAAC;EAC7C,MAAMC,WAAyD,GAC9D,IAAAC,oBAAW,EACRC,CAAC,IAAM;IACRA,CAAC,CAACC,cAAc,CAAC,CAAC;IAClB,IAAKR,cAAc,EAAG;MACrBD,UAAU,CAAC,CAAC;IACb,CAAC,MAAM;MACNI,MAAM,CAAC,CAAC;IACT;IACAP,OAAO,GAAIW,CAAE,CAAC;EACf,CAAC,EACD,CAAEP,cAAc,EAAED,UAAU,EAAEI,MAAM,EAAEP,OAAO,CAC9C,CAAC;EAEF,OAAO;IACNC,EAAE;IACFD,OAAO,EAAES,WAAW;IACpB,GAAGJ;EACJ,CAAC;AACF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_component","_interopRequireDefault","require"],"sources":["@wordpress/components/src/navigator/navigator-back-button/index.ts"],"sourcesContent":["export { default as NavigatorBackButton } from './component';\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA"}
1
+ {"version":3,"names":["_component","_interopRequireDefault","require"],"sources":["@wordpress/components/src/navigator/navigator-back-button/index.ts"],"sourcesContent":["export { default as NavigatorBackButton } from './component';\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_context","require","_view","_hook","UnconnectedNavigatorButton","props","forwardedRef","navigatorButtonProps","useNavigatorButton","_react","createElement","View","ref","NavigatorButton","exports","contextConnect","_default","default"],"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":";;;;;;;AASA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAXA;AACA;AACA;;AAGA;AACA;AACA;;AAOA,SAASG,0BAA0BA,CAClCC,KAAgE,EAChEC,YAAiC,EAChC;EACD,MAAMC,oBAAoB,GAAG,IAAAC,wBAAkB,EAAEH,KAAM,CAAC;EAExD,OAAO,IAAAI,MAAA,CAAAC,aAAA,EAACR,KAAA,CAAAS,IAAI;IAACC,GAAG,EAAGN,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;AACO,MAAMM,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,IAAAE,uBAAc,EAC5CX,0BAA0B,EAC1B,iBACD,CAAC;AAAC,IAAAY,QAAA,GAAAF,OAAA,CAAAG,OAAA,GAEaJ,eAAe"}
1
+ {"version":3,"names":["_context","require","_view","_hook","UnconnectedNavigatorButton","props","forwardedRef","navigatorButtonProps","useNavigatorButton","_react","createElement","View","ref","NavigatorButton","exports","contextConnect","_default","default"],"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":";;;;;;;AASA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAXA;AACA;AACA;;AAGA;AACA;AACA;;AAOA,SAASG,0BAA0BA,CAClCC,KAAgE,EAChEC,YAAiC,EAChC;EACD,MAAMC,oBAAoB,GAAG,IAAAC,wBAAkB,EAAEH,KAAM,CAAC;EAExD,OAAO,IAAAI,MAAA,CAAAC,aAAA,EAACR,KAAA,CAAAS,IAAI;IAACC,GAAG,EAAGN,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;AACO,MAAMM,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,IAAAE,uBAAc,EAC5CX,0BAA0B,EAC1B,iBACD,CAAC;AAAC,IAAAY,QAAA,GAAAF,OAAA,CAAAG,OAAA,GAEaJ,eAAe","ignoreList":[]}
@@ -14,6 +14,10 @@ var _useNavigator = _interopRequireDefault(require("../use-navigator"));
14
14
  * WordPress dependencies
15
15
  */
16
16
 
17
+ /**
18
+ * Internal dependencies
19
+ */
20
+
17
21
  const cssSelectorForAttribute = (attrName, attrValue) => `[${attrName}="${attrValue}"]`;
18
22
  function useNavigatorButton(props) {
19
23
  const {
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","_escapeHtml","_context","_button","_interopRequireDefault","_useNavigator","cssSelectorForAttribute","attrName","attrValue","useNavigatorButton","props","path","onClick","as","Button","attributeName","otherProps","useContextSystem","escapedPath","escapeAttribute","goTo","useNavigator","handleClick","useCallback","e","preventDefault","focusTargetSelector"],"sources":["@wordpress/components/src/navigator/navigator-button/hook.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useCallback } from '@wordpress/element';\nimport { escapeAttribute } from '@wordpress/escape-html';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../../context';\nimport { useContextSystem } from '../../context';\nimport Button from '../../button';\nimport useNavigator from '../use-navigator';\nimport type { NavigatorButtonProps } from '../types';\n\nconst cssSelectorForAttribute = ( attrName: string, attrValue: string ) =>\n\t`[${ attrName }=\"${ attrValue }\"]`;\n\nexport function useNavigatorButton(\n\tprops: WordPressComponentProps< NavigatorButtonProps, 'button' >\n) {\n\tconst {\n\t\tpath,\n\t\tonClick,\n\t\tas = Button,\n\t\tattributeName = 'id',\n\t\t...otherProps\n\t} = useContextSystem( props, 'NavigatorButton' );\n\n\tconst escapedPath = escapeAttribute( path );\n\n\tconst { goTo } = useNavigator();\n\tconst handleClick: React.MouseEventHandler< HTMLButtonElement > =\n\t\tuseCallback(\n\t\t\t( e ) => {\n\t\t\t\te.preventDefault();\n\t\t\t\tgoTo( escapedPath, {\n\t\t\t\t\tfocusTargetSelector: cssSelectorForAttribute(\n\t\t\t\t\t\tattributeName,\n\t\t\t\t\t\tescapedPath\n\t\t\t\t\t),\n\t\t\t\t} );\n\t\t\t\tonClick?.( e );\n\t\t\t},\n\t\t\t[ goTo, onClick, attributeName, escapedPath ]\n\t\t);\n\n\treturn {\n\t\tas,\n\t\tonClick: handleClick,\n\t\t...otherProps,\n\t\t[ attributeName ]: escapedPath,\n\t};\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAMA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAD,sBAAA,CAAAJ,OAAA;AAZA;AACA;AACA;;AAaA,MAAMM,uBAAuB,GAAGA,CAAEC,QAAgB,EAAEC,SAAiB,KACnE,IAAID,QAAU,KAAKC,SAAW,IAAG;AAE5B,SAASC,kBAAkBA,CACjCC,KAAgE,EAC/D;EACD,MAAM;IACLC,IAAI;IACJC,OAAO;IACPC,EAAE,GAAGC,eAAM;IACXC,aAAa,GAAG,IAAI;IACpB,GAAGC;EACJ,CAAC,GAAG,IAAAC,yBAAgB,EAAEP,KAAK,EAAE,iBAAkB,CAAC;EAEhD,MAAMQ,WAAW,GAAG,IAAAC,2BAAe,EAAER,IAAK,CAAC;EAE3C,MAAM;IAAES;EAAK,CAAC,GAAG,IAAAC,qBAAY,EAAC,CAAC;EAC/B,MAAMC,WAAyD,GAC9D,IAAAC,oBAAW,EACRC,CAAC,IAAM;IACRA,CAAC,CAACC,cAAc,CAAC,CAAC;IAClBL,IAAI,CAAEF,WAAW,EAAE;MAClBQ,mBAAmB,EAAEpB,uBAAuB,CAC3CS,aAAa,EACbG,WACD;IACD,CAAE,CAAC;IACHN,OAAO,GAAIY,CAAE,CAAC;EACf,CAAC,EACD,CAAEJ,IAAI,EAAER,OAAO,EAAEG,aAAa,EAAEG,WAAW,CAC5C,CAAC;EAEF,OAAO;IACNL,EAAE;IACFD,OAAO,EAAEU,WAAW;IACpB,GAAGN,UAAU;IACb,CAAED,aAAa,GAAIG;EACpB,CAAC;AACF"}
1
+ {"version":3,"names":["_element","require","_escapeHtml","_context","_button","_interopRequireDefault","_useNavigator","cssSelectorForAttribute","attrName","attrValue","useNavigatorButton","props","path","onClick","as","Button","attributeName","otherProps","useContextSystem","escapedPath","escapeAttribute","goTo","useNavigator","handleClick","useCallback","e","preventDefault","focusTargetSelector"],"sources":["@wordpress/components/src/navigator/navigator-button/hook.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useCallback } from '@wordpress/element';\nimport { escapeAttribute } from '@wordpress/escape-html';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../../context';\nimport { useContextSystem } from '../../context';\nimport Button from '../../button';\nimport useNavigator from '../use-navigator';\nimport type { NavigatorButtonProps } from '../types';\n\nconst cssSelectorForAttribute = ( attrName: string, attrValue: string ) =>\n\t`[${ attrName }=\"${ attrValue }\"]`;\n\nexport function useNavigatorButton(\n\tprops: WordPressComponentProps< NavigatorButtonProps, 'button' >\n) {\n\tconst {\n\t\tpath,\n\t\tonClick,\n\t\tas = Button,\n\t\tattributeName = 'id',\n\t\t...otherProps\n\t} = useContextSystem( props, 'NavigatorButton' );\n\n\tconst escapedPath = escapeAttribute( path );\n\n\tconst { goTo } = useNavigator();\n\tconst handleClick: React.MouseEventHandler< HTMLButtonElement > =\n\t\tuseCallback(\n\t\t\t( e ) => {\n\t\t\t\te.preventDefault();\n\t\t\t\tgoTo( escapedPath, {\n\t\t\t\t\tfocusTargetSelector: cssSelectorForAttribute(\n\t\t\t\t\t\tattributeName,\n\t\t\t\t\t\tescapedPath\n\t\t\t\t\t),\n\t\t\t\t} );\n\t\t\t\tonClick?.( e );\n\t\t\t},\n\t\t\t[ goTo, onClick, attributeName, escapedPath ]\n\t\t);\n\n\treturn {\n\t\tas,\n\t\tonClick: handleClick,\n\t\t...otherProps,\n\t\t[ attributeName ]: escapedPath,\n\t};\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAMA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAD,sBAAA,CAAAJ,OAAA;AAZA;AACA;AACA;;AAIA;AACA;AACA;;AAOA,MAAMM,uBAAuB,GAAGA,CAAEC,QAAgB,EAAEC,SAAiB,KACnE,IAAID,QAAU,KAAKC,SAAW,IAAG;AAE5B,SAASC,kBAAkBA,CACjCC,KAAgE,EAC/D;EACD,MAAM;IACLC,IAAI;IACJC,OAAO;IACPC,EAAE,GAAGC,eAAM;IACXC,aAAa,GAAG,IAAI;IACpB,GAAGC;EACJ,CAAC,GAAG,IAAAC,yBAAgB,EAAEP,KAAK,EAAE,iBAAkB,CAAC;EAEhD,MAAMQ,WAAW,GAAG,IAAAC,2BAAe,EAAER,IAAK,CAAC;EAE3C,MAAM;IAAES;EAAK,CAAC,GAAG,IAAAC,qBAAY,EAAC,CAAC;EAC/B,MAAMC,WAAyD,GAC9D,IAAAC,oBAAW,EACRC,CAAC,IAAM;IACRA,CAAC,CAACC,cAAc,CAAC,CAAC;IAClBL,IAAI,CAAEF,WAAW,EAAE;MAClBQ,mBAAmB,EAAEpB,uBAAuB,CAC3CS,aAAa,EACbG,WACD;IACD,CAAE,CAAC;IACHN,OAAO,GAAIY,CAAE,CAAC;EACf,CAAC,EACD,CAAEJ,IAAI,EAAER,OAAO,EAAEG,aAAa,EAAEG,WAAW,CAC5C,CAAC;EAEF,OAAO;IACNL,EAAE;IACFD,OAAO,EAAEU,WAAW;IACpB,GAAGN,UAAU;IACb,CAAED,aAAa,GAAIG;EACpB,CAAC;AACF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_component","_interopRequireDefault","require"],"sources":["@wordpress/components/src/navigator/navigator-button/index.ts"],"sourcesContent":["export { default as NavigatorButton } from './component';\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA"}
1
+ {"version":3,"names":["_component","_interopRequireDefault","require"],"sources":["@wordpress/components/src/navigator/navigator-button/index.ts"],"sourcesContent":["export { default as NavigatorButton } from './component';\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA","ignoreList":[]}
@@ -15,7 +15,7 @@ var _view = require("../../view");
15
15
  var _context2 = require("../context");
16
16
  var styles = _interopRequireWildcard(require("../styles"));
17
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
18
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
19
  /**
20
20
  * External dependencies
21
21
  */
@@ -24,6 +24,10 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
24
24
  * WordPress dependencies
25
25
  */
26
26
 
27
+ /**
28
+ * Internal dependencies
29
+ */
30
+
27
31
  const MAX_HISTORY_LENGTH = 50;
28
32
  function addScreen({
29
33
  screens
@@ -58,6 +62,10 @@ function goTo(state, path, options = {}) {
58
62
  replace = false,
59
63
  ...restOptions
60
64
  } = options;
65
+ const isNavigatingToSamePath = locationHistory.length > 0 && locationHistory[locationHistory.length - 1].path === path;
66
+ if (isNavigatingToSamePath) {
67
+ return locationHistory;
68
+ }
61
69
  const isNavigatingToPreviousPath = isBack && locationHistory.length > 1 && locationHistory[locationHistory.length - 2].path === path;
62
70
  if (isNavigatingToPreviousPath) {
63
71
  return goBack(state);
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","_isShallowEqual","_interopRequireDefault","_context","_useCx","_router","_view","_context2","styles","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","MAX_HISTORY_LENGTH","addScreen","screens","screen","removeScreen","filter","s","id","goBack","locationHistory","length","slice","isBack","hasRestoredFocus","goTo","state","path","options","focusTargetSelector","skipFocus","replace","restOptions","isNavigatingToPreviousPath","newLocation","newLocationHistory","push","goToParent","currentPath","undefined","parentPath","findParent","routerReducer","action","matchedPath","type","patternMatch","isShallowEqual","params","UnconnectedNavigatorProvider","props","forwardedRef","initialPath","children","className","otherProps","useContextSystem","routerState","dispatch","useReducer","methods","useMemo","navigatorContextValue","_matchedPath$params","location","isInitial","match","cx","useCx","classes","navigatorProviderWrapper","_react","createElement","View","ref","NavigatorContext","Provider","value","NavigatorProvider","exports","contextConnect","_default"],"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 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\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":";;;;;;;;AAQA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAC,sBAAA,CAAAF,OAAA;AAMA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AACA,IAAAO,SAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAC,uBAAA,CAAAT,OAAA;AAAoC,SAAAU,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAF,wBAAAE,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAC,MAAA,CAAAE,wBAA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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMyB,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,IAAAE,uBAAc,EAC9C/B,4BAA4B,EAC5B,mBACD,CAAC;AAAC,IAAAgC,QAAA,GAAAF,OAAA,CAAAnF,OAAA,GAEakF,iBAAiB"}
1
+ {"version":3,"names":["_element","require","_isShallowEqual","_interopRequireDefault","_context","_useCx","_router","_view","_context2","styles","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","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","findParent","routerReducer","action","matchedPath","type","patternMatch","isShallowEqual","params","UnconnectedNavigatorProvider","props","forwardedRef","initialPath","children","className","otherProps","useContextSystem","routerState","dispatch","useReducer","methods","useMemo","navigatorContextValue","_matchedPath$params","location","isInitial","match","cx","useCx","classes","navigatorProviderWrapper","_react","createElement","View","ref","NavigatorContext","Provider","value","NavigatorProvider","exports","contextConnect","_default"],"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":";;;;;;;;AAQA,IAAAA,QAAA,GAAAC,OAAA;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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMyB,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,IAAAE,uBAAc,EAC9C/B,4BAA4B,EAC5B,mBACD,CAAC;AAAC,IAAAgC,QAAA,GAAAF,OAAA,CAAAnF,OAAA,GAEakF,iBAAiB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_component","_interopRequireDefault","require"],"sources":["@wordpress/components/src/navigator/navigator-provider/index.ts"],"sourcesContent":["export { default as NavigatorProvider } from './component';\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA"}
1
+ {"version":3,"names":["_component","_interopRequireDefault","require"],"sources":["@wordpress/components/src/navigator/navigator-provider/index.ts"],"sourcesContent":["export { default as NavigatorProvider } from './component';\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA","ignoreList":[]}
@@ -16,7 +16,7 @@ var _view = require("../../view");
16
16
  var _context2 = require("../context");
17
17
  var styles = _interopRequireWildcard(require("../styles"));
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
19
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
20
  /**
21
21
  * External dependencies
22
22
  */
@@ -25,6 +25,10 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
25
25
  * WordPress dependencies
26
26
  */
27
27
 
28
+ /**
29
+ * Internal dependencies
30
+ */
31
+
28
32
  function UnconnectedNavigatorScreen(props, forwardedRef) {
29
33
  const screenId = (0, _element.useId)();
30
34
  const {
@@ -1 +1 @@
1
- {"version":3,"names":["_dom","require","_element","_compose","_i18n","_escapeHtml","_context","_useCx","_view","_context2","styles","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","UnconnectedNavigatorScreen","props","forwardedRef","screenId","useId","children","className","path","otherProps","useContextSystem","location","match","addScreen","removeScreen","useContext","NavigatorContext","isMatch","wrapperRef","useRef","useEffect","screen","id","escapeAttribute","isRTL","isRTLFn","isInitial","isBack","cx","useCx","classes","useMemo","navigatorScreen","locationRef","current","isInitialLocation","hasRestoredFocus","skipFocus","activeElement","ownerDocument","contains","elementToFocus","focusTargetSelector","querySelector","firstTabbable","focus","tabbable","find","mergedWrapperRef","useMergeRefs","_react","createElement","View","ref","NavigatorScreen","exports","contextConnect","_default"],"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":";;;;;;;AAQA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAOA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAMA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAC,uBAAA,CAAAV,OAAA;AAAoC,SAAAW,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAF,wBAAAE,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,C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;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;AACO,MAAMgD,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,IAAAE,uBAAc,EAC5CvD,0BAA0B,EAC1B,iBACD,CAAC;AAAC,IAAAwD,QAAA,GAAAF,OAAA,CAAArE,OAAA,GAEaoE,eAAe"}
1
+ {"version":3,"names":["_dom","require","_element","_compose","_i18n","_escapeHtml","_context","_useCx","_view","_context2","styles","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","UnconnectedNavigatorScreen","props","forwardedRef","screenId","useId","children","className","path","otherProps","useContextSystem","location","match","addScreen","removeScreen","useContext","NavigatorContext","isMatch","wrapperRef","useRef","useEffect","screen","id","escapeAttribute","isRTL","isRTLFn","isInitial","isBack","cx","useCx","classes","useMemo","navigatorScreen","locationRef","current","isInitialLocation","hasRestoredFocus","skipFocus","activeElement","ownerDocument","contains","elementToFocus","focusTargetSelector","querySelector","firstTabbable","focus","tabbable","find","mergedWrapperRef","useMergeRefs","_react","createElement","View","ref","NavigatorScreen","exports","contextConnect","_default"],"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":";;;;;;;AAQA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAOA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAMA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAC,uBAAA,CAAAV,OAAA;AAAoC,SAAAW,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAF,wBAAAE,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,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A,GAAAF,OAAA,CAAApE,OAAA,GAEamE,eAAe","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_component","_interopRequireDefault","require"],"sources":["@wordpress/components/src/navigator/navigator-screen/index.ts"],"sourcesContent":["export { default as NavigatorScreen } from './component';\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA"}
1
+ {"version":3,"names":["_component","_interopRequireDefault","require"],"sources":["@wordpress/components/src/navigator/navigator-screen/index.ts"],"sourcesContent":["export { default as NavigatorScreen } from './component';\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_context","require","_view","_hook","UnconnectedNavigatorToParentButton","props","forwardedRef","navigatorToParentButtonProps","useNavigatorBackButton","goToParent","_react","createElement","View","ref","NavigatorToParentButton","exports","contextConnect","_default","default"],"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":";;;;;;;AASA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAXA;AACA;AACA;;AAGA;AACA;AACA;;AAOA,SAASG,kCAAkCA,CAC1CC,KAAwE,EACxEC,YAAiC,EAChC;EACD,MAAMC,4BAA4B,GAAG,IAAAC,4BAAsB,EAAE;IAC5D,GAAGH,KAAK;IACRI,UAAU,EAAE;EACb,CAAE,CAAC;EAEH,OAAO,IAAAC,MAAA,CAAAC,aAAA,EAACT,KAAA,CAAAU,IAAI;IAACC,GAAG,EAAGP,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;AACO,MAAMO,uBAAuB,GAAAC,OAAA,CAAAD,uBAAA,GAAG,IAAAE,uBAAc,EACpDZ,kCAAkC,EAClC,yBACD,CAAC;AAAC,IAAAa,QAAA,GAAAF,OAAA,CAAAG,OAAA,GAEaJ,uBAAuB"}
1
+ {"version":3,"names":["_context","require","_view","_hook","UnconnectedNavigatorToParentButton","props","forwardedRef","navigatorToParentButtonProps","useNavigatorBackButton","goToParent","_react","createElement","View","ref","NavigatorToParentButton","exports","contextConnect","_default","default"],"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":";;;;;;;AASA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAXA;AACA;AACA;;AAGA;AACA;AACA;;AAOA,SAASG,kCAAkCA,CAC1CC,KAAwE,EACxEC,YAAiC,EAChC;EACD,MAAMC,4BAA4B,GAAG,IAAAC,4BAAsB,EAAE;IAC5D,GAAGH,KAAK;IACRI,UAAU,EAAE;EACb,CAAE,CAAC;EAEH,OAAO,IAAAC,MAAA,CAAAC,aAAA,EAACT,KAAA,CAAAU,IAAI;IAACC,GAAG,EAAGP,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;AACO,MAAMO,uBAAuB,GAAAC,OAAA,CAAAD,uBAAA,GAAG,IAAAE,uBAAc,EACpDZ,kCAAkC,EAClC,yBACD,CAAC;AAAC,IAAAa,QAAA,GAAAF,OAAA,CAAAG,OAAA,GAEaJ,uBAAuB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_component","_interopRequireDefault","require"],"sources":["@wordpress/components/src/navigator/navigator-to-parent-button/index.ts"],"sourcesContent":["export { default as NavigatorToParentButton } from './component';\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA"}
1
+ {"version":3,"names":["_component","_interopRequireDefault","require"],"sources":["@wordpress/components/src/navigator/navigator-to-parent-button/index.ts"],"sourcesContent":["export { default as NavigatorToParentButton } from './component';\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA","ignoreList":[]}
@@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.navigatorScreen = exports.navigatorProviderWrapper = void 0;
7
7
  var _react = require("@emotion/react");
8
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
8
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
9
+ * External dependencies
10
+ */
9
11
  const navigatorProviderWrapper = exports.navigatorProviderWrapper = process.env.NODE_ENV === "production" ? {
10
12
  name: "xpkswc",
11
13
  styles: "overflow-x:hidden;contain:content"
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_EMOTION_STRINGIFIED_CSS_ERROR__","navigatorProviderWrapper","exports","process","env","NODE_ENV","name","styles","map","toString","fadeInFromRight","keyframes","opacity","transform","fadeInFromLeft","navigatorScreenAnimation","isInitial","isBack","isRTL","animationName","css","navigatorScreen","props"],"sources":["@wordpress/components/src/navigator/styles.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport { css, keyframes } from '@emotion/react';\n\nexport const navigatorProviderWrapper = css`\n\t/* Prevents horizontal overflow while animating screen transitions */\n\toverflow-x: hidden;\n\t/* Mark this subsection of the DOM as isolated, providing performance benefits\n\t * by limiting calculations of layout, style and paint to a DOM subtree rather\n\t * than the entire page.\n\t */\n\tcontain: content;\n`;\n\nconst fadeInFromRight = keyframes( {\n\t'0%': {\n\t\topacity: 0,\n\t\ttransform: `translateX( 50px )`,\n\t},\n\t'100%': { opacity: 1, transform: 'none' },\n} );\n\nconst fadeInFromLeft = keyframes( {\n\t'0%': {\n\t\topacity: 0,\n\t\ttransform: `translateX( -50px )`,\n\t},\n\t'100%': { opacity: 1, transform: 'none' },\n} );\n\ntype NavigatorScreenAnimationProps = {\n\tisInitial?: boolean;\n\tisBack?: boolean;\n\tisRTL: boolean;\n};\n\nconst navigatorScreenAnimation = ( {\n\tisInitial,\n\tisBack,\n\tisRTL,\n}: NavigatorScreenAnimationProps ) => {\n\tif ( isInitial && ! isBack ) {\n\t\treturn;\n\t}\n\n\tconst animationName =\n\t\t( isRTL && isBack ) || ( ! isRTL && ! isBack )\n\t\t\t? fadeInFromRight\n\t\t\t: fadeInFromLeft;\n\n\treturn css`\n\t\tanimation-duration: 0.14s;\n\t\tanimation-timing-function: ease-in-out;\n\t\twill-change: transform, opacity;\n\t\tanimation-name: ${ animationName };\n\n\t\t@media ( prefers-reduced-motion ) {\n\t\t\tanimation-duration: 0s;\n\t\t}\n\t`;\n};\n\nexport const navigatorScreen = ( props: NavigatorScreenAnimationProps ) => css`\n\t/* Ensures horizontal overflow is visually accessible */\n\toverflow-x: auto;\n\t/* In case the root has a height, it should not be exceeded */\n\tmax-height: 100%;\n\n\t${ navigatorScreenAnimation( props ) }\n`;\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,OAAA;AAAgD,SAAAC,iCAAA;AAEzC,MAAMC,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,GAAAE,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAT;AAAA,CAQpC;AAED,MAAMU,eAAe,GAAG,IAAAC,gBAAS,EAAE;EAClC,IAAI,EAAE;IACLC,OAAO,EAAE,CAAC;IACVC,SAAS,EAAG;EACb,CAAC;EACD,MAAM,EAAE;IAAED,OAAO,EAAE,CAAC;IAAEC,SAAS,EAAE;EAAO;AACzC,CAAE,CAAC;AAEH,MAAMC,cAAc,GAAG,IAAAH,gBAAS,EAAE;EACjC,IAAI,EAAE;IACLC,OAAO,EAAE,CAAC;IACVC,SAAS,EAAG;EACb,CAAC;EACD,MAAM,EAAE;IAAED,OAAO,EAAE,CAAC;IAAEC,SAAS,EAAE;EAAO;AACzC,CAAE,CAAC;AAQH,MAAME,wBAAwB,GAAGA,CAAE;EAClCC,SAAS;EACTC,MAAM;EACNC;AAC8B,CAAC,KAAM;EACrC,IAAKF,SAAS,IAAI,CAAEC,MAAM,EAAG;IAC5B;EACD;EAEA,MAAME,aAAa,GAChBD,KAAK,IAAID,MAAM,IAAQ,CAAEC,KAAK,IAAI,CAAED,MAAQ,GAC3CP,eAAe,GACfI,cAAc;EAElB,wBAAOM,UAAG,kHAIUD,aAAa,kEAAAhB,OAAA,CAAAC,GAAA,CAAAC,QAAA,8DAAAF,OAAA,CAAAC,GAAA,CAAAC,QAAA;AAMlC,CAAC;AAEM,MAAMgB,eAAe,GAAKC,KAAoC,qBAAMF,UAAG,sCAM1EL,wBAAwB,CAAEO,KAAM,CAAC,SAAAnB,OAAA,CAAAC,GAAA,CAAAC,QAAA,qDAAAF,OAAA,CAAAC,GAAA,CAAAC,QAAA,mnFACpC;AAACH,OAAA,CAAAmB,eAAA,GAAAA,eAAA"}
1
+ {"version":3,"names":["_react","require","_EMOTION_STRINGIFIED_CSS_ERROR__","navigatorProviderWrapper","exports","process","env","NODE_ENV","name","styles","map","toString","fadeInFromRight","keyframes","opacity","transform","fadeInFromLeft","navigatorScreenAnimation","isInitial","isBack","isRTL","animationName","css","navigatorScreen","props"],"sources":["@wordpress/components/src/navigator/styles.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport { css, keyframes } from '@emotion/react';\n\nexport const navigatorProviderWrapper = css`\n\t/* Prevents horizontal overflow while animating screen transitions */\n\toverflow-x: hidden;\n\t/* Mark this subsection of the DOM as isolated, providing performance benefits\n\t * by limiting calculations of layout, style and paint to a DOM subtree rather\n\t * than the entire page.\n\t */\n\tcontain: content;\n`;\n\nconst fadeInFromRight = keyframes( {\n\t'0%': {\n\t\topacity: 0,\n\t\ttransform: `translateX( 50px )`,\n\t},\n\t'100%': { opacity: 1, transform: 'none' },\n} );\n\nconst fadeInFromLeft = keyframes( {\n\t'0%': {\n\t\topacity: 0,\n\t\ttransform: `translateX( -50px )`,\n\t},\n\t'100%': { opacity: 1, transform: 'none' },\n} );\n\ntype NavigatorScreenAnimationProps = {\n\tisInitial?: boolean;\n\tisBack?: boolean;\n\tisRTL: boolean;\n};\n\nconst navigatorScreenAnimation = ( {\n\tisInitial,\n\tisBack,\n\tisRTL,\n}: NavigatorScreenAnimationProps ) => {\n\tif ( isInitial && ! isBack ) {\n\t\treturn;\n\t}\n\n\tconst animationName =\n\t\t( isRTL && isBack ) || ( ! isRTL && ! isBack )\n\t\t\t? fadeInFromRight\n\t\t\t: fadeInFromLeft;\n\n\treturn css`\n\t\tanimation-duration: 0.14s;\n\t\tanimation-timing-function: ease-in-out;\n\t\twill-change: transform, opacity;\n\t\tanimation-name: ${ animationName };\n\n\t\t@media ( prefers-reduced-motion ) {\n\t\t\tanimation-duration: 0s;\n\t\t}\n\t`;\n};\n\nexport const navigatorScreen = ( props: NavigatorScreenAnimationProps ) => css`\n\t/* Ensures horizontal overflow is visually accessible */\n\toverflow-x: auto;\n\t/* In case the root has a height, it should not be exceeded */\n\tmax-height: 100%;\n\n\t${ navigatorScreenAnimation( props ) }\n`;\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,OAAA;AAAgD,SAAAC,iCAAA,gPAHhD;AACA;AACA;AAGO,MAAMC,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,GAAAE,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAT;AAAA,CAQpC;AAED,MAAMU,eAAe,GAAG,IAAAC,gBAAS,EAAE;EAClC,IAAI,EAAE;IACLC,OAAO,EAAE,CAAC;IACVC,SAAS,EAAG;EACb,CAAC;EACD,MAAM,EAAE;IAAED,OAAO,EAAE,CAAC;IAAEC,SAAS,EAAE;EAAO;AACzC,CAAE,CAAC;AAEH,MAAMC,cAAc,GAAG,IAAAH,gBAAS,EAAE;EACjC,IAAI,EAAE;IACLC,OAAO,EAAE,CAAC;IACVC,SAAS,EAAG;EACb,CAAC;EACD,MAAM,EAAE;IAAED,OAAO,EAAE,CAAC;IAAEC,SAAS,EAAE;EAAO;AACzC,CAAE,CAAC;AAQH,MAAME,wBAAwB,GAAGA,CAAE;EAClCC,SAAS;EACTC,MAAM;EACNC;AAC8B,CAAC,KAAM;EACrC,IAAKF,SAAS,IAAI,CAAEC,MAAM,EAAG;IAC5B;EACD;EAEA,MAAME,aAAa,GAChBD,KAAK,IAAID,MAAM,IAAQ,CAAEC,KAAK,IAAI,CAAED,MAAQ,GAC3CP,eAAe,GACfI,cAAc;EAElB,wBAAOM,UAAG,kHAIUD,aAAa,kEAAAhB,OAAA,CAAAC,GAAA,CAAAC,QAAA,8DAAAF,OAAA,CAAAC,GAAA,CAAAC,QAAA;AAMlC,CAAC;AAEM,MAAMgB,eAAe,GAAKC,KAAoC,qBAAMF,UAAG,sCAM1EL,wBAAwB,CAAEO,KAAM,CAAC,SAAAnB,OAAA,CAAAC,GAAA,CAAAC,QAAA,qDAAAF,OAAA,CAAAC,GAAA,CAAAC,QAAA,mnFACpC;AAACH,OAAA,CAAAmB,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["@wordpress/components/src/navigator/types.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ReactNode } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { ButtonAsButtonProps } from '../button/types';\n\nexport type MatchParams = Record< string, string | string[] >;\n\nexport type NavigateOptions = {\n\tfocusTargetSelector?: string;\n\tisBack?: boolean;\n\tskipFocus?: boolean;\n\treplace?: boolean;\n};\n\nexport type NavigateToParentOptions = Omit< NavigateOptions, 'isBack' >;\n\nexport type NavigatorLocation = NavigateOptions & {\n\tisInitial?: boolean;\n\tpath?: string;\n\thasRestoredFocus?: boolean;\n};\n\n// Returned by the `useNavigator` hook.\nexport type Navigator = {\n\tlocation: NavigatorLocation;\n\tparams: MatchParams;\n\tgoTo: ( path: string, options?: NavigateOptions ) => void;\n\tgoBack: () => void;\n\tgoToParent: ( options?: NavigateToParentOptions ) => void;\n};\n\nexport type NavigatorContext = Navigator & {\n\taddScreen: ( screen: Screen ) => void;\n\tremoveScreen: ( screen: Screen ) => void;\n\tmatch?: string;\n};\n\nexport type NavigatorProviderProps = {\n\t/**\n\t * The initial active path.\n\t */\n\tinitialPath: string;\n\t/**\n\t * The children elements.\n\t */\n\tchildren: ReactNode;\n};\n\nexport type NavigatorScreenProps = {\n\t/**\n\t * The screen's path, matched against the current path stored in the navigator.\n\t */\n\tpath: string;\n\t/**\n\t * The children elements.\n\t */\n\tchildren: ReactNode;\n};\n\nexport type NavigatorBackButtonProps = ButtonAsButtonProps;\n\nexport type NavigatorBackButtonHookProps = NavigatorBackButtonProps & {\n\t/**\n\t * Whether we should navigate to the parent screen.\n\t *\n\t * @default 'false'\n\t */\n\tgoToParent?: boolean;\n};\n\nexport type NavigatorToParentButtonProps = NavigatorBackButtonProps;\n\nexport type NavigatorButtonProps = NavigatorBackButtonProps & {\n\t/**\n\t * The path of the screen to navigate to. The value of this prop needs to be\n\t * a valid value for an HTML attribute.\n\t */\n\tpath: string;\n\t/**\n\t * The HTML attribute used to identify the `NavigatorButton`, which is used\n\t * by `Navigator` to restore focus.\n\t *\n\t * @default 'id'\n\t */\n\tattributeName?: string;\n};\n\nexport type Screen = {\n\tid: string;\n\tpath: string;\n};\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["@wordpress/components/src/navigator/types.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ReactNode } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { ButtonAsButtonProps } from '../button/types';\n\nexport type MatchParams = Record< string, string | string[] >;\n\nexport type NavigateOptions = {\n\tfocusTargetSelector?: string;\n\tisBack?: boolean;\n\tskipFocus?: boolean;\n\treplace?: boolean;\n};\n\nexport type NavigateToParentOptions = Omit< NavigateOptions, 'isBack' >;\n\nexport type NavigatorLocation = NavigateOptions & {\n\tisInitial?: boolean;\n\tpath?: string;\n\thasRestoredFocus?: boolean;\n};\n\n// Returned by the `useNavigator` hook.\nexport type Navigator = {\n\tlocation: NavigatorLocation;\n\tparams: MatchParams;\n\tgoTo: ( path: string, options?: NavigateOptions ) => void;\n\tgoBack: () => void;\n\tgoToParent: ( options?: NavigateToParentOptions ) => void;\n};\n\nexport type NavigatorContext = Navigator & {\n\taddScreen: ( screen: Screen ) => void;\n\tremoveScreen: ( screen: Screen ) => void;\n\tmatch?: string;\n};\n\nexport type NavigatorProviderProps = {\n\t/**\n\t * The initial active path.\n\t */\n\tinitialPath: string;\n\t/**\n\t * The children elements.\n\t */\n\tchildren: ReactNode;\n};\n\nexport type NavigatorScreenProps = {\n\t/**\n\t * The screen's path, matched against the current path stored in the navigator.\n\t */\n\tpath: string;\n\t/**\n\t * The children elements.\n\t */\n\tchildren: ReactNode;\n};\n\nexport type NavigatorBackButtonProps = ButtonAsButtonProps;\n\nexport type NavigatorBackButtonHookProps = NavigatorBackButtonProps & {\n\t/**\n\t * Whether we should navigate to the parent screen.\n\t *\n\t * @default 'false'\n\t */\n\tgoToParent?: boolean;\n};\n\nexport type NavigatorToParentButtonProps = NavigatorBackButtonProps;\n\nexport type NavigatorButtonProps = NavigatorBackButtonProps & {\n\t/**\n\t * The path of the screen to navigate to. The value of this prop needs to be\n\t * a valid value for an HTML attribute.\n\t */\n\tpath: string;\n\t/**\n\t * The HTML attribute used to identify the `NavigatorButton`, which is used\n\t * by `Navigator` to restore focus.\n\t *\n\t * @default 'id'\n\t */\n\tattributeName?: string;\n};\n\nexport type Screen = {\n\tid: string;\n\tpath: string;\n};\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","_context","useNavigator","location","params","goTo","goBack","goToParent","useContext","NavigatorContext","_default","exports","default"],"sources":["@wordpress/components/src/navigator/use-navigator.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useContext } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { NavigatorContext } from './context';\nimport type { Navigator } from './types';\n\n/**\n * Retrieves a `navigator` instance.\n */\nfunction useNavigator(): Navigator {\n\tconst { location, params, goTo, goBack, goToParent } =\n\t\tuseContext( NavigatorContext );\n\n\treturn {\n\t\tlocation,\n\t\tgoTo,\n\t\tgoBack,\n\t\tgoToParent,\n\t\tparams,\n\t};\n}\n\nexport default useNavigator;\n"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AARA;AACA;AACA;;AAGA;AACA;AACA;;AAIA;AACA;AACA;AACA,SAASE,YAAYA,CAAA,EAAc;EAClC,MAAM;IAAEC,QAAQ;IAAEC,MAAM;IAAEC,IAAI;IAAEC,MAAM;IAAEC;EAAW,CAAC,GACnD,IAAAC,mBAAU,EAAEC,yBAAiB,CAAC;EAE/B,OAAO;IACNN,QAAQ;IACRE,IAAI;IACJC,MAAM;IACNC,UAAU;IACVH;EACD,CAAC;AACF;AAAC,IAAAM,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEcV,YAAY"}
1
+ {"version":3,"names":["_element","require","_context","useNavigator","location","params","goTo","goBack","goToParent","useContext","NavigatorContext","_default","exports","default"],"sources":["@wordpress/components/src/navigator/use-navigator.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useContext } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { NavigatorContext } from './context';\nimport type { Navigator } from './types';\n\n/**\n * Retrieves a `navigator` instance.\n */\nfunction useNavigator(): Navigator {\n\tconst { location, params, goTo, goBack, goToParent } =\n\t\tuseContext( NavigatorContext );\n\n\treturn {\n\t\tlocation,\n\t\tgoTo,\n\t\tgoBack,\n\t\tgoToParent,\n\t\tparams,\n\t};\n}\n\nexport default useNavigator;\n"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AARA;AACA;AACA;;AAGA;AACA;AACA;;AAIA;AACA;AACA;AACA,SAASE,YAAYA,CAAA,EAAc;EAClC,MAAM;IAAEC,QAAQ;IAAEC,MAAM;IAAEC,IAAI;IAAEC,MAAM;IAAEC;EAAW,CAAC,GACnD,IAAAC,mBAAU,EAAEC,yBAAiB,CAAC;EAE/B,OAAO;IACNN,QAAQ;IACRE,IAAI;IACJC,MAAM;IACNC,UAAU;IACVH;EACD,CAAC;AACF;AAAC,IAAAM,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEcV,YAAY","ignoreList":[]}
@@ -10,6 +10,10 @@ var _pathToRegexp = require("path-to-regexp");
10
10
  * External dependencies
11
11
  */
12
12
 
13
+ /**
14
+ * Internal dependencies
15
+ */
16
+
13
17
  function matchPath(path, pattern) {
14
18
  const matchingFunction = (0, _pathToRegexp.match)(pattern, {
15
19
  decode: decodeURIComponent
@@ -1 +1 @@
1
- {"version":3,"names":["_pathToRegexp","require","matchPath","path","pattern","matchingFunction","match","decode","decodeURIComponent","patternMatch","screens","screen","matched","params","id","undefined","findParent","startsWith","pathParts","split","parentPath","length","pop","potentialParentPath","join","find"],"sources":["@wordpress/components/src/navigator/utils/router.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport { match } from 'path-to-regexp';\n\n/**\n * Internal dependencies\n */\nimport type { Screen, MatchParams } from '../types';\n\nfunction matchPath( path: string, pattern: string ) {\n\tconst matchingFunction = match< MatchParams >( pattern, {\n\t\tdecode: decodeURIComponent,\n\t} );\n\treturn matchingFunction( path );\n}\n\nexport function patternMatch( path: string, screens: Screen[] ) {\n\tfor ( const screen of screens ) {\n\t\tconst matched = matchPath( path, screen.path );\n\t\tif ( matched ) {\n\t\t\treturn { params: matched.params, id: screen.id };\n\t\t}\n\t}\n\n\treturn undefined;\n}\n\nexport function findParent( path: string, screens: Screen[] ) {\n\tif ( ! path.startsWith( '/' ) ) {\n\t\treturn undefined;\n\t}\n\tconst pathParts = path.split( '/' );\n\tlet parentPath;\n\twhile ( pathParts.length > 1 && parentPath === undefined ) {\n\t\tpathParts.pop();\n\t\tconst potentialParentPath =\n\t\t\tpathParts.join( '/' ) === '' ? '/' : pathParts.join( '/' );\n\t\tif (\n\t\t\tscreens.find( ( screen ) => {\n\t\t\t\treturn matchPath( potentialParentPath, screen.path ) !== false;\n\t\t\t} )\n\t\t) {\n\t\t\tparentPath = potentialParentPath;\n\t\t}\n\t}\n\n\treturn parentPath;\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,aAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAQA,SAASC,SAASA,CAAEC,IAAY,EAAEC,OAAe,EAAG;EACnD,MAAMC,gBAAgB,GAAG,IAAAC,mBAAK,EAAiBF,OAAO,EAAE;IACvDG,MAAM,EAAEC;EACT,CAAE,CAAC;EACH,OAAOH,gBAAgB,CAAEF,IAAK,CAAC;AAChC;AAEO,SAASM,YAAYA,CAAEN,IAAY,EAAEO,OAAiB,EAAG;EAC/D,KAAM,MAAMC,MAAM,IAAID,OAAO,EAAG;IAC/B,MAAME,OAAO,GAAGV,SAAS,CAAEC,IAAI,EAAEQ,MAAM,CAACR,IAAK,CAAC;IAC9C,IAAKS,OAAO,EAAG;MACd,OAAO;QAAEC,MAAM,EAAED,OAAO,CAACC,MAAM;QAAEC,EAAE,EAAEH,MAAM,CAACG;MAAG,CAAC;IACjD;EACD;EAEA,OAAOC,SAAS;AACjB;AAEO,SAASC,UAAUA,CAAEb,IAAY,EAAEO,OAAiB,EAAG;EAC7D,IAAK,CAAEP,IAAI,CAACc,UAAU,CAAE,GAAI,CAAC,EAAG;IAC/B,OAAOF,SAAS;EACjB;EACA,MAAMG,SAAS,GAAGf,IAAI,CAACgB,KAAK,CAAE,GAAI,CAAC;EACnC,IAAIC,UAAU;EACd,OAAQF,SAAS,CAACG,MAAM,GAAG,CAAC,IAAID,UAAU,KAAKL,SAAS,EAAG;IAC1DG,SAAS,CAACI,GAAG,CAAC,CAAC;IACf,MAAMC,mBAAmB,GACxBL,SAAS,CAACM,IAAI,CAAE,GAAI,CAAC,KAAK,EAAE,GAAG,GAAG,GAAGN,SAAS,CAACM,IAAI,CAAE,GAAI,CAAC;IAC3D,IACCd,OAAO,CAACe,IAAI,CAAId,MAAM,IAAM;MAC3B,OAAOT,SAAS,CAAEqB,mBAAmB,EAAEZ,MAAM,CAACR,IAAK,CAAC,KAAK,KAAK;IAC/D,CAAE,CAAC,EACF;MACDiB,UAAU,GAAGG,mBAAmB;IACjC;EACD;EAEA,OAAOH,UAAU;AAClB"}
1
+ {"version":3,"names":["_pathToRegexp","require","matchPath","path","pattern","matchingFunction","match","decode","decodeURIComponent","patternMatch","screens","screen","matched","params","id","undefined","findParent","startsWith","pathParts","split","parentPath","length","pop","potentialParentPath","join","find"],"sources":["@wordpress/components/src/navigator/utils/router.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport { match } from 'path-to-regexp';\n\n/**\n * Internal dependencies\n */\nimport type { Screen, MatchParams } from '../types';\n\nfunction matchPath( path: string, pattern: string ) {\n\tconst matchingFunction = match< MatchParams >( pattern, {\n\t\tdecode: decodeURIComponent,\n\t} );\n\treturn matchingFunction( path );\n}\n\nexport function patternMatch( path: string, screens: Screen[] ) {\n\tfor ( const screen of screens ) {\n\t\tconst matched = matchPath( path, screen.path );\n\t\tif ( matched ) {\n\t\t\treturn { params: matched.params, id: screen.id };\n\t\t}\n\t}\n\n\treturn undefined;\n}\n\nexport function findParent( path: string, screens: Screen[] ) {\n\tif ( ! path.startsWith( '/' ) ) {\n\t\treturn undefined;\n\t}\n\tconst pathParts = path.split( '/' );\n\tlet parentPath;\n\twhile ( pathParts.length > 1 && parentPath === undefined ) {\n\t\tpathParts.pop();\n\t\tconst potentialParentPath =\n\t\t\tpathParts.join( '/' ) === '' ? '/' : pathParts.join( '/' );\n\t\tif (\n\t\t\tscreens.find( ( screen ) => {\n\t\t\t\treturn matchPath( potentialParentPath, screen.path ) !== false;\n\t\t\t} )\n\t\t) {\n\t\t\tparentPath = potentialParentPath;\n\t\t}\n\t}\n\n\treturn parentPath;\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,aAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAGA;AACA;AACA;;AAGA,SAASC,SAASA,CAAEC,IAAY,EAAEC,OAAe,EAAG;EACnD,MAAMC,gBAAgB,GAAG,IAAAC,mBAAK,EAAiBF,OAAO,EAAE;IACvDG,MAAM,EAAEC;EACT,CAAE,CAAC;EACH,OAAOH,gBAAgB,CAAEF,IAAK,CAAC;AAChC;AAEO,SAASM,YAAYA,CAAEN,IAAY,EAAEO,OAAiB,EAAG;EAC/D,KAAM,MAAMC,MAAM,IAAID,OAAO,EAAG;IAC/B,MAAME,OAAO,GAAGV,SAAS,CAAEC,IAAI,EAAEQ,MAAM,CAACR,IAAK,CAAC;IAC9C,IAAKS,OAAO,EAAG;MACd,OAAO;QAAEC,MAAM,EAAED,OAAO,CAACC,MAAM;QAAEC,EAAE,EAAEH,MAAM,CAACG;MAAG,CAAC;IACjD;EACD;EAEA,OAAOC,SAAS;AACjB;AAEO,SAASC,UAAUA,CAAEb,IAAY,EAAEO,OAAiB,EAAG;EAC7D,IAAK,CAAEP,IAAI,CAACc,UAAU,CAAE,GAAI,CAAC,EAAG;IAC/B,OAAOF,SAAS;EACjB;EACA,MAAMG,SAAS,GAAGf,IAAI,CAACgB,KAAK,CAAE,GAAI,CAAC;EACnC,IAAIC,UAAU;EACd,OAAQF,SAAS,CAACG,MAAM,GAAG,CAAC,IAAID,UAAU,KAAKL,SAAS,EAAG;IAC1DG,SAAS,CAACI,GAAG,CAAC,CAAC;IACf,MAAMC,mBAAmB,GACxBL,SAAS,CAACM,IAAI,CAAE,GAAI,CAAC,KAAK,EAAE,GAAG,GAAG,GAAGN,SAAS,CAACM,IAAI,CAAE,GAAI,CAAC;IAC3D,IACCd,OAAO,CAACe,IAAI,CAAId,MAAM,IAAM;MAC3B,OAAOT,SAAS,CAAEqB,mBAAmB,EAAEZ,MAAM,CAACR,IAAK,CAAC,KAAK,KAAK;IAC/D,CAAE,CAAC,EACF;MACDiB,UAAU,GAAGG,mBAAmB;IACjC;EACD;EAEA,OAAOH,UAAU;AAClB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_classnames","_interopRequireDefault","require","_i18n","_element","_a11y","_icons","_button","_visuallyHidden","noop","useSpokenMessage","message","politeness","spokenMessage","renderToString","useEffect","speak","getDefaultPoliteness","status","getStatusLabel","__","Notice","className","children","onRemove","isDismissible","actions","__unstableHTML","onDismiss","classes","classnames","_react","createElement","RawHTML","onDismissNotice","VisuallyHidden","map","buttonCustomClasses","label","isPrimary","variant","noDefaultClasses","onClick","url","index","computedVariant","default","key","href","undefined","icon","close","_default","exports"],"sources":["@wordpress/components/src/notice/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\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 = classnames(\n\t\tclassName,\n\t\t'components-notice',\n\t\t'is-' + status,\n\t\t{\n\t\t\t'is-dismissible': isDismissible,\n\t\t}\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={ classnames(\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":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAKA,IAAAK,OAAA,GAAAN,sBAAA,CAAAC,OAAA;AAGA,IAAAM,eAAA,GAAAN,OAAA;AAnBA;AACA;AACA;;AAGA;AACA;AACA;;AAMA;AACA;AACA;;AAMA,MAAMO,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,GAAG,IAAAG,uBAAc,EAAEH,OAAQ,CAAC;EAElE,IAAAI,kBAAS,EAAE,MAAM;IAChB,IAAKF,aAAa,EAAG;MACpB,IAAAG,WAAK,EAAEH,aAAa,EAAED,UAAW,CAAC;IACnC;EACD,CAAC,EAAE,CAAEC,aAAa,EAAED,UAAU,CAAG,CAAC;AACnC;AAEA,SAASK,oBAAoBA,CAAEC,MAA+B,EAAG;EAChE,QAASA,MAAM;IACd,KAAK,SAAS;IACd,KAAK,SAAS;IACd,KAAK,MAAM;MACV,OAAO,QAAQ;IAChB;IACA;MACC,OAAO,WAAW;EACpB;AACD;AAEA,SAASC,cAAcA,CAAED,MAA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B,CAAC,EAC7D,IAAAa,MAAA,CAAAC,aAAA;IAAKV,SAAS,EAAC;EAA4B,GACxCC,QAAQ,EACV,IAAAQ,MAAA,CAAAC,aAAA;IAAKV,SAAS,EAAC;EAA4B,GACxCI,OAAO,CAACU,GAAG,CACZ,CACC;IACCd,SAAS,EAAEe,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,OACC,IAAAd,MAAA,CAAAC,aAAA,EAACzB,OAAA,CAAAuC,OAAM;MACNC,GAAG,EAAGH,KAAO;MACbI,IAAI,EAAGL,GAAK;MACZH,OAAO,EAAGK,eAAiB;MAC3BH,OAAO,EAAGC,GAAG,GAAGM,SAAS,GAAGP,OAAS;MACrCpB,SAAS,EAAG,IAAAQ,mBAAU,EACrB,2BAA2B,EAC3BO,mBACD;IAAG,GAEDC,KACK,CAAC;EAEX,CACD,CACI,CACD,CAAC,EACJb,aAAa,IACd,IAAAM,MAAA,CAAAC,aAAA,EAACzB,OAAA,CAAAuC,OAAM;IACNxB,SAAS,EAAC,4BAA4B;IACtC4B,IAAI,EAAGC,YAAO;IACdb,KAAK,EAAG,IAAAlB,QAAE,EAAE,OAAQ,CAAG;IACvBsB,OAAO,EAAGR;EAAiB,CAC3B,CAEE,CAAC;AAER;AAAC,IAAAkB,QAAA,GAAAC,OAAA,CAAAP,OAAA,GAEczB,MAAM"}
1
+ {"version":3,"names":["_classnames","_interopRequireDefault","require","_i18n","_element","_a11y","_icons","_button","_visuallyHidden","noop","useSpokenMessage","message","politeness","spokenMessage","renderToString","useEffect","speak","getDefaultPoliteness","status","getStatusLabel","__","Notice","className","children","onRemove","isDismissible","actions","__unstableHTML","onDismiss","classes","classnames","_react","createElement","RawHTML","onDismissNotice","VisuallyHidden","map","buttonCustomClasses","label","isPrimary","variant","noDefaultClasses","onClick","url","index","computedVariant","default","key","href","undefined","icon","close","_default","exports"],"sources":["@wordpress/components/src/notice/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\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 = classnames(\n\t\tclassName,\n\t\t'components-notice',\n\t\t'is-' + status,\n\t\t{\n\t\t\t'is-dismissible': isDismissible,\n\t\t}\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={ classnames(\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":";;;;;;;;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