@wordpress/components 25.5.0 → 25.6.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 (3389) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/build/alignment-matrix-control/cell.js +1 -8
  3. package/build/alignment-matrix-control/cell.js.map +1 -1
  4. package/build/alignment-matrix-control/icon.js +5 -10
  5. package/build/alignment-matrix-control/icon.js.map +1 -1
  6. package/build/alignment-matrix-control/index.js +8 -20
  7. package/build/alignment-matrix-control/index.js.map +1 -1
  8. package/build/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js +0 -10
  9. package/build/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js.map +1 -1
  10. package/build/alignment-matrix-control/styles/alignment-matrix-control-styles.js +9 -22
  11. package/build/alignment-matrix-control/styles/alignment-matrix-control-styles.js.map +1 -1
  12. package/build/alignment-matrix-control/types.js.map +1 -1
  13. package/build/alignment-matrix-control/utils.js +8 -10
  14. package/build/alignment-matrix-control/utils.js.map +1 -1
  15. package/build/angle-picker-control/angle-circle.js +6 -19
  16. package/build/angle-picker-control/angle-circle.js.map +1 -1
  17. package/build/angle-picker-control/index.js +4 -18
  18. package/build/angle-picker-control/index.js.map +1 -1
  19. package/build/angle-picker-control/styles/angle-picker-control-styles.js +6 -18
  20. package/build/angle-picker-control/styles/angle-picker-control-styles.js.map +1 -1
  21. package/build/angle-picker-control/types.js.map +1 -1
  22. package/build/animate/index.js +2 -12
  23. package/build/animate/index.js.map +1 -1
  24. package/build/animate/types.js.map +1 -1
  25. package/build/animation/index.js +0 -1
  26. package/build/animation/index.js.map +1 -1
  27. package/build/autocomplete/autocompleter-ui.js +10 -32
  28. package/build/autocomplete/autocompleter-ui.js.map +1 -1
  29. package/build/autocomplete/autocompleter-ui.native.js +9 -22
  30. package/build/autocomplete/autocompleter-ui.native.js.map +1 -1
  31. package/build/autocomplete/background-view.android.js +1 -7
  32. package/build/autocomplete/background-view.android.js.map +1 -1
  33. package/build/autocomplete/background-view.ios.js +1 -6
  34. package/build/autocomplete/background-view.ios.js.map +1 -1
  35. package/build/autocomplete/get-default-use-items.js +7 -19
  36. package/build/autocomplete/get-default-use-items.js.map +1 -1
  37. package/build/autocomplete/index.js +29 -70
  38. package/build/autocomplete/index.js.map +1 -1
  39. package/build/autocomplete/types.js.map +1 -1
  40. package/build/base-control/hooks.js +2 -5
  41. package/build/base-control/hooks.js.map +1 -1
  42. package/build/base-control/index.js +5 -13
  43. package/build/base-control/index.js.map +1 -1
  44. package/build/base-control/index.native.js +1 -3
  45. package/build/base-control/index.native.js.map +1 -1
  46. package/build/base-control/styles/base-control-styles.js +0 -12
  47. package/build/base-control/styles/base-control-styles.js.map +1 -1
  48. package/build/base-control/types.js.map +1 -1
  49. package/build/border-box-control/border-box-control/component.js +7 -21
  50. package/build/border-box-control/border-box-control/component.js.map +1 -1
  51. package/build/border-box-control/border-box-control/hook.js +20 -27
  52. package/build/border-box-control/border-box-control/hook.js.map +1 -1
  53. package/build/border-box-control/border-box-control/index.js +0 -3
  54. package/build/border-box-control/border-box-control/index.js.map +1 -1
  55. package/build/border-box-control/border-box-control-linked-button/component.js +3 -12
  56. package/build/border-box-control/border-box-control-linked-button/component.js.map +1 -1
  57. package/build/border-box-control/border-box-control-linked-button/hook.js +5 -9
  58. package/build/border-box-control/border-box-control-linked-button/hook.js.map +1 -1
  59. package/build/border-box-control/border-box-control-linked-button/index.js +0 -2
  60. package/build/border-box-control/border-box-control-linked-button/index.js.map +1 -1
  61. package/build/border-box-control/border-box-control-split-controls/component.js +8 -15
  62. package/build/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  63. package/build/border-box-control/border-box-control-split-controls/hook.js +5 -9
  64. package/build/border-box-control/border-box-control-split-controls/hook.js.map +1 -1
  65. package/build/border-box-control/border-box-control-split-controls/index.js +0 -2
  66. package/build/border-box-control/border-box-control-split-controls/index.js.map +1 -1
  67. package/build/border-box-control/border-box-control-visualizer/component.js +3 -7
  68. package/build/border-box-control/border-box-control-visualizer/component.js.map +1 -1
  69. package/build/border-box-control/border-box-control-visualizer/hook.js +5 -9
  70. package/build/border-box-control/border-box-control-visualizer/hook.js.map +1 -1
  71. package/build/border-box-control/border-box-control-visualizer/index.js +0 -2
  72. package/build/border-box-control/border-box-control-visualizer/index.js.map +1 -1
  73. package/build/border-box-control/index.js +0 -4
  74. package/build/border-box-control/index.js.map +1 -1
  75. package/build/border-box-control/styles.js +0 -15
  76. package/build/border-box-control/styles.js.map +1 -1
  77. package/build/border-box-control/types.js.map +1 -1
  78. package/build/border-box-control/utils.js +10 -43
  79. package/build/border-box-control/utils.js.map +1 -1
  80. package/build/border-control/border-control/component.js +2 -18
  81. package/build/border-control/border-control/component.js.map +1 -1
  82. package/build/border-control/border-control/hook.js +16 -24
  83. package/build/border-control/border-control/hook.js.map +1 -1
  84. package/build/border-control/border-control/index.js +0 -3
  85. package/build/border-control/border-control/index.js.map +1 -1
  86. package/build/border-control/border-control-dropdown/component.js +17 -40
  87. package/build/border-control/border-control-dropdown/component.js.map +1 -1
  88. package/build/border-control/border-control-dropdown/hook.js +9 -16
  89. package/build/border-control/border-control-dropdown/hook.js.map +1 -1
  90. package/build/border-control/border-control-dropdown/index.js +0 -2
  91. package/build/border-control/border-control-dropdown/index.js.map +1 -1
  92. package/build/border-control/border-control-style-picker/component.js +3 -18
  93. package/build/border-control/border-control-style-picker/component.js.map +1 -1
  94. package/build/border-control/border-control-style-picker/hook.js +5 -9
  95. package/build/border-control/border-control-style-picker/hook.js.map +1 -1
  96. package/build/border-control/border-control-style-picker/index.js +0 -2
  97. package/build/border-control/border-control-style-picker/index.js.map +1 -1
  98. package/build/border-control/index.js +0 -3
  99. package/build/border-control/index.js.map +1 -1
  100. package/build/border-control/styles.js +4 -22
  101. package/build/border-control/styles.js.map +1 -1
  102. package/build/border-control/types.js.map +1 -1
  103. package/build/box-control/all-input-control.js +6 -15
  104. package/build/box-control/all-input-control.js.map +1 -1
  105. package/build/box-control/axial-input-controls.js +9 -29
  106. package/build/box-control/axial-input-controls.js.map +1 -1
  107. package/build/box-control/icon.js +3 -8
  108. package/build/box-control/icon.js.map +1 -1
  109. package/build/box-control/index.js +11 -32
  110. package/build/box-control/index.js.map +1 -1
  111. package/build/box-control/input-controls.js +10 -23
  112. package/build/box-control/input-controls.js.map +1 -1
  113. package/build/box-control/linked-button.js +3 -8
  114. package/build/box-control/linked-button.js.map +1 -1
  115. package/build/box-control/styles/box-control-icon-styles.js +0 -7
  116. package/build/box-control/styles/box-control-icon-styles.js.map +1 -1
  117. package/build/box-control/styles/box-control-styles.js +0 -16
  118. package/build/box-control/styles/box-control-styles.js.map +1 -1
  119. package/build/box-control/styles/box-control-visualizer-styles.js +8 -16
  120. package/build/box-control/styles/box-control-visualizer-styles.js.map +1 -1
  121. package/build/box-control/types.js.map +1 -1
  122. package/build/box-control/unit-control.js +4 -10
  123. package/build/box-control/unit-control.js.map +1 -1
  124. package/build/box-control/utils.js +14 -34
  125. package/build/box-control/utils.js.map +1 -1
  126. package/build/button/deprecated.js +3 -8
  127. package/build/button/deprecated.js.map +1 -1
  128. package/build/button/index.js +22 -41
  129. package/build/button/index.js.map +1 -1
  130. package/build/button/index.native.js +17 -28
  131. package/build/button/index.native.js.map +1 -1
  132. package/build/button/types.js.map +1 -1
  133. package/build/button-group/index.js +2 -6
  134. package/build/button-group/index.js.map +1 -1
  135. package/build/button-group/types.js.map +1 -1
  136. package/build/card/card/component.js +7 -23
  137. package/build/card/card/component.js.map +1 -1
  138. package/build/card/card/hook.js +9 -23
  139. package/build/card/card/hook.js.map +1 -1
  140. package/build/card/card/index.js +0 -3
  141. package/build/card/card/index.js.map +1 -1
  142. package/build/card/card-body/component.js +6 -12
  143. package/build/card/card-body/component.js.map +1 -1
  144. package/build/card/card-body/hook.js +4 -12
  145. package/build/card/card-body/hook.js.map +1 -1
  146. package/build/card/card-body/index.js +0 -3
  147. package/build/card/card-body/index.js.map +1 -1
  148. package/build/card/card-divider/component.js +4 -8
  149. package/build/card/card-divider/component.js.map +1 -1
  150. package/build/card/card-divider/hook.js +4 -12
  151. package/build/card/card-divider/hook.js.map +1 -1
  152. package/build/card/card-divider/index.js +0 -3
  153. package/build/card/card-divider/index.js.map +1 -1
  154. package/build/card/card-footer/component.js +4 -8
  155. package/build/card/card-footer/component.js.map +1 -1
  156. package/build/card/card-footer/hook.js +4 -12
  157. package/build/card/card-footer/hook.js.map +1 -1
  158. package/build/card/card-footer/index.js +0 -3
  159. package/build/card/card-footer/index.js.map +1 -1
  160. package/build/card/card-header/component.js +4 -8
  161. package/build/card/card-header/component.js.map +1 -1
  162. package/build/card/card-header/hook.js +4 -12
  163. package/build/card/card-header/hook.js.map +1 -1
  164. package/build/card/card-header/index.js +0 -3
  165. package/build/card/card-header/index.js.map +1 -1
  166. package/build/card/card-media/component.js +4 -8
  167. package/build/card/card-media/component.js.map +1 -1
  168. package/build/card/card-media/hook.js +4 -12
  169. package/build/card/card-media/hook.js.map +1 -1
  170. package/build/card/card-media/index.js +0 -3
  171. package/build/card/card-media/index.js.map +1 -1
  172. package/build/card/context.js +1 -4
  173. package/build/card/context.js.map +1 -1
  174. package/build/card/index.js +0 -8
  175. package/build/card/index.js.map +1 -1
  176. package/build/card/styles.js +0 -4
  177. package/build/card/styles.js.map +1 -1
  178. package/build/card/types.js.map +1 -1
  179. package/build/checkbox-control/index.js +5 -17
  180. package/build/checkbox-control/index.js.map +1 -1
  181. package/build/checkbox-control/types.js.map +1 -1
  182. package/build/circular-option-picker/index.js +2 -12
  183. package/build/circular-option-picker/index.js.map +1 -1
  184. package/build/circular-option-picker/types.js.map +1 -1
  185. package/build/clipboard-button/index.js +6 -14
  186. package/build/clipboard-button/index.js.map +1 -1
  187. package/build/clipboard-button/types.js.map +1 -1
  188. package/build/color-control/index.native.js +1 -5
  189. package/build/color-control/index.native.js.map +1 -1
  190. package/build/color-indicator/index.js +2 -6
  191. package/build/color-indicator/index.js.map +1 -1
  192. package/build/color-indicator/index.native.js +1 -13
  193. package/build/color-indicator/index.native.js.map +1 -1
  194. package/build/color-indicator/types.js.map +1 -1
  195. package/build/color-palette/index.js +16 -32
  196. package/build/color-palette/index.js.map +1 -1
  197. package/build/color-palette/index.native.js +4 -37
  198. package/build/color-palette/index.native.js.map +1 -1
  199. package/build/color-palette/styles.js +0 -5
  200. package/build/color-palette/styles.js.map +1 -1
  201. package/build/color-palette/types.js.map +1 -1
  202. package/build/color-palette/utils.js +10 -28
  203. package/build/color-palette/utils.js.map +1 -1
  204. package/build/color-picker/color-copy-button.js +1 -12
  205. package/build/color-picker/color-copy-button.js.map +1 -1
  206. package/build/color-picker/color-input.js +7 -12
  207. package/build/color-picker/color-input.js.map +1 -1
  208. package/build/color-picker/component.js +3 -16
  209. package/build/color-picker/component.js.map +1 -1
  210. package/build/color-picker/hex-input.js +6 -17
  211. package/build/color-picker/hex-input.js.map +1 -1
  212. package/build/color-picker/hsl-input.js +1 -5
  213. package/build/color-picker/hsl-input.js.map +1 -1
  214. package/build/color-picker/index.js +0 -1
  215. package/build/color-picker/index.js.map +1 -1
  216. package/build/color-picker/index.native.js +3 -24
  217. package/build/color-picker/index.native.js.map +1 -1
  218. package/build/color-picker/input-with-slider.js +4 -14
  219. package/build/color-picker/input-with-slider.js.map +1 -1
  220. package/build/color-picker/legacy-adapter.js +3 -7
  221. package/build/color-picker/legacy-adapter.js.map +1 -1
  222. package/build/color-picker/picker.js +1 -5
  223. package/build/color-picker/picker.js.map +1 -1
  224. package/build/color-picker/rgb-input.js +1 -5
  225. package/build/color-picker/rgb-input.js.map +1 -1
  226. package/build/color-picker/styles.js +3 -14
  227. package/build/color-picker/styles.js.map +1 -1
  228. package/build/color-picker/types.js.map +1 -1
  229. package/build/color-picker/use-deprecated-props.js +3 -11
  230. package/build/color-picker/use-deprecated-props.js.map +1 -1
  231. package/build/combobox-control/index.js +18 -61
  232. package/build/combobox-control/index.js.map +1 -1
  233. package/build/combobox-control/styles.js +1 -7
  234. package/build/combobox-control/styles.js.map +1 -1
  235. package/build/combobox-control/types.js.map +1 -1
  236. package/build/composite/index.js +0 -1
  237. package/build/composite/index.js.map +1 -1
  238. package/build/confirm-dialog/component.js +1 -18
  239. package/build/confirm-dialog/component.js.map +1 -1
  240. package/build/confirm-dialog/index.js +0 -2
  241. package/build/confirm-dialog/index.js.map +1 -1
  242. package/build/confirm-dialog/styles.js +0 -3
  243. package/build/confirm-dialog/styles.js.map +1 -1
  244. package/build/confirm-dialog/types.js.map +1 -1
  245. package/build/custom-gradient-picker/constants.js +1 -2
  246. package/build/custom-gradient-picker/constants.js.map +1 -1
  247. package/build/custom-gradient-picker/gradient-bar/constants.js.map +1 -1
  248. package/build/custom-gradient-picker/gradient-bar/control-points.js +6 -31
  249. package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  250. package/build/custom-gradient-picker/gradient-bar/index.js +3 -28
  251. package/build/custom-gradient-picker/gradient-bar/index.js.map +1 -1
  252. package/build/custom-gradient-picker/gradient-bar/utils.js +11 -21
  253. package/build/custom-gradient-picker/gradient-bar/utils.js.map +1 -1
  254. package/build/custom-gradient-picker/index.js +13 -35
  255. package/build/custom-gradient-picker/index.js.map +1 -1
  256. package/build/custom-gradient-picker/index.native.js +7 -24
  257. package/build/custom-gradient-picker/index.native.js.map +1 -1
  258. package/build/custom-gradient-picker/serializer.js +1 -10
  259. package/build/custom-gradient-picker/serializer.js.map +1 -1
  260. package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.js +0 -5
  261. package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.js.map +1 -1
  262. package/build/custom-gradient-picker/types.js.map +1 -1
  263. package/build/custom-gradient-picker/utils.js +3 -20
  264. package/build/custom-gradient-picker/utils.js.map +1 -1
  265. package/build/custom-select-control/index.js +18 -40
  266. package/build/custom-select-control/index.js.map +1 -1
  267. package/build/custom-select-control/styles.js +1 -7
  268. package/build/custom-select-control/styles.js.map +1 -1
  269. package/build/dashicon/index.js +7 -6
  270. package/build/dashicon/index.js.map +1 -1
  271. package/build/dashicon/index.native.js +1 -7
  272. package/build/dashicon/index.native.js.map +1 -1
  273. package/build/dashicon/types.js.map +1 -1
  274. package/build/date-time/constants.js.map +1 -1
  275. package/build/date-time/date/index.js +20 -42
  276. package/build/date-time/date/index.js.map +1 -1
  277. package/build/date-time/date/styles.js +8 -17
  278. package/build/date-time/date/styles.js.map +1 -1
  279. package/build/date-time/date-time/index.js +2 -9
  280. package/build/date-time/date-time/index.js.map +1 -1
  281. package/build/date-time/date-time/styles.js +0 -5
  282. package/build/date-time/date-time/styles.js.map +1 -1
  283. package/build/date-time/index.js +0 -5
  284. package/build/date-time/index.js.map +1 -1
  285. package/build/date-time/time/index.js +14 -43
  286. package/build/date-time/time/index.js.map +1 -1
  287. package/build/date-time/time/styles.js +3 -13
  288. package/build/date-time/time/styles.js.map +1 -1
  289. package/build/date-time/time/timezone.js +5 -12
  290. package/build/date-time/time/timezone.js.map +1 -1
  291. package/build/date-time/types.js.map +1 -1
  292. package/build/date-time/utils.js +0 -3
  293. package/build/date-time/utils.js.map +1 -1
  294. package/build/dimension-control/index.js +0 -15
  295. package/build/dimension-control/index.js.map +1 -1
  296. package/build/dimension-control/sizes.js +0 -3
  297. package/build/dimension-control/sizes.js.map +1 -1
  298. package/build/dimension-control/types.js.map +1 -1
  299. package/build/disabled/index.js +2 -6
  300. package/build/disabled/index.js.map +1 -1
  301. package/build/disabled/index.native.js +1 -4
  302. package/build/disabled/index.native.js.map +1 -1
  303. package/build/disabled/styles/disabled-styles.js +0 -3
  304. package/build/disabled/styles/disabled-styles.js.map +1 -1
  305. package/build/disabled/types.js.map +1 -1
  306. package/build/disclosure/index.js +0 -1
  307. package/build/disclosure/index.js.map +1 -1
  308. package/build/divider/component.js +1 -10
  309. package/build/divider/component.js.map +1 -1
  310. package/build/divider/index.js +0 -2
  311. package/build/divider/index.js.map +1 -1
  312. package/build/divider/styles.js +3 -14
  313. package/build/divider/styles.js.map +1 -1
  314. package/build/divider/types.js.map +1 -1
  315. package/build/draggable/index.js +30 -38
  316. package/build/draggable/index.js.map +1 -1
  317. package/build/draggable/index.native.js +5 -24
  318. package/build/draggable/index.native.js.map +1 -1
  319. package/build/draggable/types.js.map +1 -1
  320. package/build/drop-zone/index.js +8 -23
  321. package/build/drop-zone/index.js.map +1 -1
  322. package/build/drop-zone/provider.js +1 -3
  323. package/build/drop-zone/provider.js.map +1 -1
  324. package/build/drop-zone/types.js.map +1 -1
  325. package/build/dropdown/dropdown-content-wrapper.js +4 -7
  326. package/build/dropdown/dropdown-content-wrapper.js.map +1 -1
  327. package/build/dropdown/index.js +12 -27
  328. package/build/dropdown/index.js.map +1 -1
  329. package/build/dropdown/index.native.js +1 -11
  330. package/build/dropdown/index.native.js.map +1 -1
  331. package/build/dropdown/styles.js +1 -6
  332. package/build/dropdown/styles.js.map +1 -1
  333. package/build/dropdown/types.js.map +1 -1
  334. package/build/dropdown-menu/index.js +10 -30
  335. package/build/dropdown-menu/index.js.map +1 -1
  336. package/build/dropdown-menu/index.native.js +8 -26
  337. package/build/dropdown-menu/index.native.js.map +1 -1
  338. package/build/dropdown-menu/types.js.map +1 -1
  339. package/build/dropdown-menu-v2/index.js +20 -43
  340. package/build/dropdown-menu-v2/index.js.map +1 -1
  341. package/build/dropdown-menu-v2/styles.js +2 -14
  342. package/build/dropdown-menu-v2/styles.js.map +1 -1
  343. package/build/dropdown-menu-v2/types.js.map +1 -1
  344. package/build/duotone-picker/color-list-picker/index.js +1 -11
  345. package/build/duotone-picker/color-list-picker/index.js.map +1 -1
  346. package/build/duotone-picker/color-list-picker/types.js.map +1 -1
  347. package/build/duotone-picker/custom-duotone-bar.js +1 -6
  348. package/build/duotone-picker/custom-duotone-bar.js.map +1 -1
  349. package/build/duotone-picker/duotone-picker.js +6 -18
  350. package/build/duotone-picker/duotone-picker.js.map +1 -1
  351. package/build/duotone-picker/duotone-swatch.js +1 -8
  352. package/build/duotone-picker/duotone-swatch.js.map +1 -1
  353. package/build/duotone-picker/index.js +0 -3
  354. package/build/duotone-picker/index.js.map +1 -1
  355. package/build/duotone-picker/types.js.map +1 -1
  356. package/build/duotone-picker/utils.js +5 -11
  357. package/build/duotone-picker/utils.js.map +1 -1
  358. package/build/elevation/component.js +4 -8
  359. package/build/elevation/component.js.map +1 -1
  360. package/build/elevation/hook.js +6 -25
  361. package/build/elevation/hook.js.map +1 -1
  362. package/build/elevation/index.js +0 -4
  363. package/build/elevation/index.js.map +1 -1
  364. package/build/elevation/styles.js +0 -3
  365. package/build/elevation/styles.js.map +1 -1
  366. package/build/elevation/types.js.map +1 -1
  367. package/build/external-link/index.js +6 -20
  368. package/build/external-link/index.js.map +1 -1
  369. package/build/external-link/index.native.js +1 -6
  370. package/build/external-link/index.native.js.map +1 -1
  371. package/build/external-link/styles/external-link-styles.js +0 -5
  372. package/build/external-link/styles/external-link-styles.js.map +1 -1
  373. package/build/external-link/types.js.map +1 -1
  374. package/build/flex/context.js +1 -4
  375. package/build/flex/context.js.map +1 -1
  376. package/build/flex/flex/component.js +4 -9
  377. package/build/flex/flex/component.js.map +1 -1
  378. package/build/flex/flex/hook.js +5 -21
  379. package/build/flex/flex/hook.js.map +1 -1
  380. package/build/flex/flex/index.js +0 -3
  381. package/build/flex/flex/index.js.map +1 -1
  382. package/build/flex/flex-block/component.js +4 -8
  383. package/build/flex/flex-block/component.js.map +1 -1
  384. package/build/flex/flex-block/hook.js +1 -3
  385. package/build/flex/flex-block/hook.js.map +1 -1
  386. package/build/flex/flex-block/index.js +0 -3
  387. package/build/flex/flex-block/index.js.map +1 -1
  388. package/build/flex/flex-item/component.js +4 -8
  389. package/build/flex/flex-item/component.js.map +1 -1
  390. package/build/flex/flex-item/hook.js +3 -13
  391. package/build/flex/flex-item/hook.js.map +1 -1
  392. package/build/flex/flex-item/index.js +0 -3
  393. package/build/flex/flex-item/index.js.map +1 -1
  394. package/build/flex/index.js +0 -5
  395. package/build/flex/index.js.map +1 -1
  396. package/build/flex/styles.js +1 -4
  397. package/build/flex/styles.js.map +1 -1
  398. package/build/flex/types.js.map +1 -1
  399. package/build/focal-point-picker/controls.js +3 -12
  400. package/build/focal-point-picker/controls.js.map +1 -1
  401. package/build/focal-point-picker/focal-point.js +3 -6
  402. package/build/focal-point-picker/focal-point.js.map +1 -1
  403. package/build/focal-point-picker/focal-point.native.js +1 -5
  404. package/build/focal-point-picker/focal-point.native.js.map +1 -1
  405. package/build/focal-point-picker/grid.js +3 -4
  406. package/build/focal-point-picker/grid.js.map +1 -1
  407. package/build/focal-point-picker/index.js +22 -36
  408. package/build/focal-point-picker/index.js.map +1 -1
  409. package/build/focal-point-picker/index.native.js +15 -37
  410. package/build/focal-point-picker/index.native.js.map +1 -1
  411. package/build/focal-point-picker/media.js +5 -7
  412. package/build/focal-point-picker/media.js.map +1 -1
  413. package/build/focal-point-picker/styles/focal-point-picker-style.js +0 -14
  414. package/build/focal-point-picker/styles/focal-point-picker-style.js.map +1 -1
  415. package/build/focal-point-picker/styles/focal-point-style.js +1 -3
  416. package/build/focal-point-picker/styles/focal-point-style.js.map +1 -1
  417. package/build/focal-point-picker/tooltip/index.native.js +5 -16
  418. package/build/focal-point-picker/tooltip/index.native.js.map +1 -1
  419. package/build/focal-point-picker/types.js.map +1 -1
  420. package/build/focal-point-picker/utils.js +3 -5
  421. package/build/focal-point-picker/utils.js.map +1 -1
  422. package/build/focusable-iframe/index.js +2 -7
  423. package/build/focusable-iframe/index.js.map +1 -1
  424. package/build/font-size-picker/constants.js +6 -13
  425. package/build/font-size-picker/constants.js.map +1 -1
  426. package/build/font-size-picker/font-size-picker-select.js +3 -14
  427. package/build/font-size-picker/font-size-picker-select.js.map +1 -1
  428. package/build/font-size-picker/font-size-picker-toggle-group.js +1 -6
  429. package/build/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  430. package/build/font-size-picker/index.js +4 -31
  431. package/build/font-size-picker/index.js.map +1 -1
  432. package/build/font-size-picker/index.native.js +9 -27
  433. package/build/font-size-picker/index.native.js.map +1 -1
  434. package/build/font-size-picker/styles.js +0 -9
  435. package/build/font-size-picker/styles.js.map +1 -1
  436. package/build/font-size-picker/types.js.map +1 -1
  437. package/build/font-size-picker/utils.js +1 -6
  438. package/build/font-size-picker/utils.js.map +1 -1
  439. package/build/footer-message-control/index.native.js +5 -8
  440. package/build/footer-message-control/index.native.js.map +1 -1
  441. package/build/form-file-upload/index.js +0 -7
  442. package/build/form-file-upload/index.js.map +1 -1
  443. package/build/form-file-upload/types.js.map +1 -1
  444. package/build/form-toggle/index.js +2 -8
  445. package/build/form-toggle/index.js.map +1 -1
  446. package/build/form-toggle/types.js.map +1 -1
  447. package/build/form-token-field/index.js +25 -125
  448. package/build/form-token-field/index.js.map +1 -1
  449. package/build/form-token-field/styles.js +1 -8
  450. package/build/form-token-field/styles.js.map +1 -1
  451. package/build/form-token-field/suggestions-list.js +2 -19
  452. package/build/form-token-field/suggestions-list.js.map +1 -1
  453. package/build/form-token-field/token-input.js +3 -10
  454. package/build/form-token-field/token-input.js.map +1 -1
  455. package/build/form-token-field/token.js +2 -14
  456. package/build/form-token-field/token.js.map +1 -1
  457. package/build/form-token-field/types.js.map +1 -1
  458. package/build/gradient-picker/index.js +14 -26
  459. package/build/gradient-picker/index.js.map +1 -1
  460. package/build/gradient-picker/types.js.map +1 -1
  461. package/build/grid/component.js +4 -9
  462. package/build/grid/component.js.map +1 -1
  463. package/build/grid/hook.js +3 -14
  464. package/build/grid/hook.js.map +1 -1
  465. package/build/grid/index.js +0 -3
  466. package/build/grid/index.js.map +1 -1
  467. package/build/grid/types.js.map +1 -1
  468. package/build/grid/utils.js +1 -2
  469. package/build/grid/utils.js.map +1 -1
  470. package/build/guide/icons.js +1 -4
  471. package/build/guide/icons.js.map +1 -1
  472. package/build/guide/index.js +4 -22
  473. package/build/guide/index.js.map +1 -1
  474. package/build/guide/page-control.js +4 -9
  475. package/build/guide/page-control.js.map +1 -1
  476. package/build/guide/page.js +3 -5
  477. package/build/guide/page.js.map +1 -1
  478. package/build/guide/types.js.map +1 -1
  479. package/build/h-stack/component.js +4 -8
  480. package/build/h-stack/component.js.map +1 -1
  481. package/build/h-stack/hook.js +1 -10
  482. package/build/h-stack/hook.js.map +1 -1
  483. package/build/h-stack/index.js +0 -3
  484. package/build/h-stack/index.js.map +1 -1
  485. package/build/h-stack/types.js.map +1 -1
  486. package/build/h-stack/utils.js +1 -4
  487. package/build/h-stack/utils.js.map +1 -1
  488. package/build/heading/component.js +4 -8
  489. package/build/heading/component.js.map +1 -1
  490. package/build/heading/hook.js +3 -8
  491. package/build/heading/hook.js.map +1 -1
  492. package/build/heading/index.js +0 -3
  493. package/build/heading/index.js.map +1 -1
  494. package/build/heading/types.js.map +1 -1
  495. package/build/higher-order/navigate-regions/index.js +8 -22
  496. package/build/higher-order/navigate-regions/index.js.map +1 -1
  497. package/build/higher-order/with-constrained-tabbing/index.js +2 -4
  498. package/build/higher-order/with-constrained-tabbing/index.js.map +1 -1
  499. package/build/higher-order/with-fallback-styles/index.js +2 -17
  500. package/build/higher-order/with-fallback-styles/index.js.map +1 -1
  501. package/build/higher-order/with-filters/index.js +16 -22
  502. package/build/higher-order/with-filters/index.js.map +1 -1
  503. package/build/higher-order/with-focus-outside/index.js +2 -6
  504. package/build/higher-order/with-focus-outside/index.js.map +1 -1
  505. package/build/higher-order/with-focus-outside/index.native.js +2 -7
  506. package/build/higher-order/with-focus-outside/index.native.js.map +1 -1
  507. package/build/higher-order/with-focus-return/index.js +4 -14
  508. package/build/higher-order/with-focus-return/index.js.map +1 -1
  509. package/build/higher-order/with-notices/index.js +12 -21
  510. package/build/higher-order/with-notices/index.js.map +1 -1
  511. package/build/higher-order/with-notices/types.js.map +1 -1
  512. package/build/higher-order/with-spoken-messages/index.js +2 -8
  513. package/build/higher-order/with-spoken-messages/index.js.map +1 -1
  514. package/build/icon/index.js +7 -14
  515. package/build/icon/index.js.map +1 -1
  516. package/build/index.js +0 -130
  517. package/build/index.js.map +1 -1
  518. package/build/index.native.js +0 -85
  519. package/build/index.native.js.map +1 -1
  520. package/build/input-control/backdrop.js +1 -4
  521. package/build/input-control/backdrop.js.map +1 -1
  522. package/build/input-control/index.js +6 -16
  523. package/build/input-control/index.js.map +1 -1
  524. package/build/input-control/input-base.js +7 -19
  525. package/build/input-control/input-base.js.map +1 -1
  526. package/build/input-control/input-field.js +12 -35
  527. package/build/input-control/input-field.js.map +1 -1
  528. package/build/input-control/input-prefix-wrapper.js +2 -6
  529. package/build/input-control/input-prefix-wrapper.js.map +1 -1
  530. package/build/input-control/input-suffix-wrapper.js +2 -6
  531. package/build/input-control/input-suffix-wrapper.js.map +1 -1
  532. package/build/input-control/label.js +1 -6
  533. package/build/input-control/label.js.map +1 -1
  534. package/build/input-control/reducer/actions.js +1 -1
  535. package/build/input-control/reducer/actions.js.map +1 -1
  536. package/build/input-control/reducer/reducer.js +17 -44
  537. package/build/input-control/reducer/reducer.js.map +1 -1
  538. package/build/input-control/reducer/state.js +1 -2
  539. package/build/input-control/reducer/state.js.map +1 -1
  540. package/build/input-control/styles/input-control-styles.js +27 -62
  541. package/build/input-control/styles/input-control-styles.js.map +1 -1
  542. package/build/input-control/types.js.map +1 -1
  543. package/build/input-control/utils.js +6 -14
  544. package/build/input-control/utils.js.map +1 -1
  545. package/build/isolated-event-container/index.js +6 -9
  546. package/build/isolated-event-container/index.js.map +1 -1
  547. package/build/item-group/context.js +1 -4
  548. package/build/item-group/context.js.map +1 -1
  549. package/build/item-group/index.js +0 -3
  550. package/build/item-group/index.js.map +1 -1
  551. package/build/item-group/item/component.js +4 -8
  552. package/build/item-group/item/component.js.map +1 -1
  553. package/build/item-group/item/hook.js +0 -11
  554. package/build/item-group/item/hook.js.map +1 -1
  555. package/build/item-group/item/index.js +0 -3
  556. package/build/item-group/item/index.js.map +1 -1
  557. package/build/item-group/item-group/component.js +4 -9
  558. package/build/item-group/item-group/component.js.map +1 -1
  559. package/build/item-group/item-group/hook.js +1 -6
  560. package/build/item-group/item-group/hook.js.map +1 -1
  561. package/build/item-group/item-group/index.js +0 -3
  562. package/build/item-group/item-group/index.js.map +1 -1
  563. package/build/item-group/styles.js +11 -16
  564. package/build/item-group/styles.js.map +1 -1
  565. package/build/item-group/types.js.map +1 -1
  566. package/build/keyboard-shortcuts/index.js +5 -9
  567. package/build/keyboard-shortcuts/index.js.map +1 -1
  568. package/build/keyboard-shortcuts/index.native.js +0 -2
  569. package/build/keyboard-shortcuts/index.native.js.map +1 -1
  570. package/build/keyboard-shortcuts/types.js.map +1 -1
  571. package/build/menu-group/index.js +0 -8
  572. package/build/menu-group/index.js.map +1 -1
  573. package/build/menu-group/types.js.map +1 -1
  574. package/build/menu-item/index.js +25 -14
  575. package/build/menu-item/index.js.map +1 -1
  576. package/build/menu-item/types.js.map +1 -0
  577. package/build/menu-items-choice/index.js +3 -9
  578. package/build/menu-items-choice/index.js.map +1 -1
  579. package/build/menu-items-choice/types.js.map +1 -1
  580. package/build/mobile/audio-player/audio-url-parser.native.js +1 -3
  581. package/build/mobile/audio-player/audio-url-parser.native.js.map +1 -1
  582. package/build/mobile/audio-player/index.native.js +11 -31
  583. package/build/mobile/audio-player/index.native.js.map +1 -1
  584. package/build/mobile/autocompletion-items.native.js +1 -2
  585. package/build/mobile/autocompletion-items.native.js.map +1 -1
  586. package/build/mobile/badge/index.native.js +1 -8
  587. package/build/mobile/badge/index.native.js.map +1 -1
  588. package/build/mobile/bottom-sheet/bottom-sheet-context.native.js +4 -6
  589. package/build/mobile/bottom-sheet/bottom-sheet-context.native.js.map +1 -1
  590. package/build/mobile/bottom-sheet/bottom-sheet-navigation/bottom-sheet-navigation-context.native.js +1 -2
  591. package/build/mobile/bottom-sheet/bottom-sheet-navigation/bottom-sheet-navigation-context.native.js.map +1 -1
  592. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +9 -25
  593. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
  594. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +5 -17
  595. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
  596. package/build/mobile/bottom-sheet/button.native.js +3 -7
  597. package/build/mobile/bottom-sheet/button.native.js.map +1 -1
  598. package/build/mobile/bottom-sheet/cell.native.js +17 -56
  599. package/build/mobile/bottom-sheet/cell.native.js.map +1 -1
  600. package/build/mobile/bottom-sheet/chevron-back.native.js +1 -3
  601. package/build/mobile/bottom-sheet/chevron-back.native.js.map +1 -1
  602. package/build/mobile/bottom-sheet/color-cell.native.js +4 -11
  603. package/build/mobile/bottom-sheet/color-cell.native.js.map +1 -1
  604. package/build/mobile/bottom-sheet/cycle-picker-cell.native.js +1 -6
  605. package/build/mobile/bottom-sheet/cycle-picker-cell.native.js.map +1 -1
  606. package/build/mobile/bottom-sheet/footer-message-cell.native.js +3 -9
  607. package/build/mobile/bottom-sheet/footer-message-cell.native.js.map +1 -1
  608. package/build/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js +1 -7
  609. package/build/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js.map +1 -1
  610. package/build/mobile/bottom-sheet/index.native.js +26 -101
  611. package/build/mobile/bottom-sheet/index.native.js.map +1 -1
  612. package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js +1 -23
  613. package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
  614. package/build/mobile/bottom-sheet/link-cell.native.js +3 -9
  615. package/build/mobile/bottom-sheet/link-cell.native.js.map +1 -1
  616. package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js +5 -21
  617. package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
  618. package/build/mobile/bottom-sheet/lock-icon/index.native.js +1 -6
  619. package/build/mobile/bottom-sheet/lock-icon/index.native.js.map +1 -1
  620. package/build/mobile/bottom-sheet/nav-bar/action-button.native.js +1 -6
  621. package/build/mobile/bottom-sheet/nav-bar/action-button.native.js.map +1 -1
  622. package/build/mobile/bottom-sheet/nav-bar/apply-button.native.js +1 -10
  623. package/build/mobile/bottom-sheet/nav-bar/apply-button.native.js.map +1 -1
  624. package/build/mobile/bottom-sheet/nav-bar/back-button.native.js +1 -18
  625. package/build/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
  626. package/build/mobile/bottom-sheet/nav-bar/heading.native.js +1 -7
  627. package/build/mobile/bottom-sheet/nav-bar/heading.native.js.map +1 -1
  628. package/build/mobile/bottom-sheet/nav-bar/index.native.js +1 -9
  629. package/build/mobile/bottom-sheet/nav-bar/index.native.js.map +1 -1
  630. package/build/mobile/bottom-sheet/picker-cell.native.js +1 -8
  631. package/build/mobile/bottom-sheet/picker-cell.native.js.map +1 -1
  632. package/build/mobile/bottom-sheet/radio-cell.native.js +4 -11
  633. package/build/mobile/bottom-sheet/radio-cell.native.js.map +1 -1
  634. package/build/mobile/bottom-sheet/range-cell.native.js +7 -44
  635. package/build/mobile/bottom-sheet/range-cell.native.js.map +1 -1
  636. package/build/mobile/bottom-sheet/range-text-input.native.js +1 -35
  637. package/build/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
  638. package/build/mobile/bottom-sheet/ripple.native.js +5 -13
  639. package/build/mobile/bottom-sheet/ripple.native.js.map +1 -1
  640. package/build/mobile/bottom-sheet/stepper-cell/index.native.js +2 -36
  641. package/build/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
  642. package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js +1 -9
  643. package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js.map +1 -1
  644. package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js +1 -9
  645. package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js.map +1 -1
  646. package/build/mobile/bottom-sheet/sub-sheet/index.native.js +3 -8
  647. package/build/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
  648. package/build/mobile/bottom-sheet/switch-cell.native.js +8 -22
  649. package/build/mobile/bottom-sheet/switch-cell.native.js.map +1 -1
  650. package/build/mobile/bottom-sheet-select-control/index.native.js +7 -18
  651. package/build/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
  652. package/build/mobile/bottom-sheet-text-control/index.native.js +1 -13
  653. package/build/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
  654. package/build/mobile/clipboard/index.native.js +0 -5
  655. package/build/mobile/clipboard/index.native.js.map +1 -1
  656. package/build/mobile/color-settings/gradient-picker-screen.native.js +1 -9
  657. package/build/mobile/color-settings/gradient-picker-screen.native.js.map +1 -1
  658. package/build/mobile/color-settings/index.native.js +3 -12
  659. package/build/mobile/color-settings/index.native.js.map +1 -1
  660. package/build/mobile/color-settings/palette.screen.native.js +1 -25
  661. package/build/mobile/color-settings/palette.screen.native.js.map +1 -1
  662. package/build/mobile/color-settings/picker-screen.native.js +3 -7
  663. package/build/mobile/color-settings/picker-screen.native.js.map +1 -1
  664. package/build/mobile/color-settings/utils.native.js +1 -5
  665. package/build/mobile/color-settings/utils.native.js.map +1 -1
  666. package/build/mobile/cycle-select-control/index.native.js +1 -6
  667. package/build/mobile/cycle-select-control/index.native.js.map +1 -1
  668. package/build/mobile/dashicons/index.native.js +1 -4
  669. package/build/mobile/dashicons/index.native.js.map +1 -1
  670. package/build/mobile/focal-point-settings-panel/index.native.js +3 -17
  671. package/build/mobile/focal-point-settings-panel/index.native.js.map +1 -1
  672. package/build/mobile/global-styles-context/index.native.js +10 -14
  673. package/build/mobile/global-styles-context/index.native.js.map +1 -1
  674. package/build/mobile/global-styles-context/utils.native.js +27 -67
  675. package/build/mobile/global-styles-context/utils.native.js.map +1 -1
  676. package/build/mobile/gradient/index.native.js +6 -32
  677. package/build/mobile/gradient/index.native.js.map +1 -1
  678. package/build/mobile/gridicons/index.native.js +1 -4
  679. package/build/mobile/gridicons/index.native.js.map +1 -1
  680. package/build/mobile/html-text-input/index.native.js +7 -29
  681. package/build/mobile/html-text-input/index.native.js.map +1 -1
  682. package/build/mobile/image/icon-customize.native.js +0 -4
  683. package/build/mobile/image/icon-customize.native.js.map +1 -1
  684. package/build/mobile/image/icon-retry.native.js +0 -4
  685. package/build/mobile/image/icon-retry.native.js.map +1 -1
  686. package/build/mobile/image/image-editing-button.native.js +1 -11
  687. package/build/mobile/image/image-editing-button.native.js.map +1 -1
  688. package/build/mobile/image/index.native.js +7 -30
  689. package/build/mobile/image/index.native.js.map +1 -1
  690. package/build/mobile/image/utils/index.native.js +0 -9
  691. package/build/mobile/image/utils/index.native.js.map +1 -1
  692. package/build/mobile/inserter-button/index.native.js +5 -16
  693. package/build/mobile/inserter-button/index.native.js.map +1 -1
  694. package/build/mobile/inserter-button/sparkles.js +1 -3
  695. package/build/mobile/inserter-button/sparkles.js.map +1 -1
  696. package/build/mobile/keyboard-avoiding-view/index.android.js +1 -2
  697. package/build/mobile/keyboard-avoiding-view/index.android.js.map +1 -1
  698. package/build/mobile/keyboard-avoiding-view/index.ios.js +5 -24
  699. package/build/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
  700. package/build/mobile/keyboard-aware-flat-list/index.android.js +1 -10
  701. package/build/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
  702. package/build/mobile/keyboard-aware-flat-list/index.ios.js +13 -22
  703. package/build/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
  704. package/build/mobile/keyboard-aware-flat-list/use-keyboard-offset.native.js +3 -8
  705. package/build/mobile/keyboard-aware-flat-list/use-keyboard-offset.native.js.map +1 -1
  706. package/build/mobile/keyboard-aware-flat-list/use-scroll-to-text-input.native.js +7 -12
  707. package/build/mobile/keyboard-aware-flat-list/use-scroll-to-text-input.native.js.map +1 -1
  708. package/build/mobile/keyboard-aware-flat-list/use-text-input-caret-position.native.js +0 -5
  709. package/build/mobile/keyboard-aware-flat-list/use-text-input-caret-position.native.js.map +1 -1
  710. package/build/mobile/keyboard-aware-flat-list/use-text-input-offset.native.js +2 -8
  711. package/build/mobile/keyboard-aware-flat-list/use-text-input-offset.native.js.map +1 -1
  712. package/build/mobile/layout-animation/index.native.js +1 -3
  713. package/build/mobile/layout-animation/index.native.js.map +1 -1
  714. package/build/mobile/link-picker/index.native.js +15 -58
  715. package/build/mobile/link-picker/index.native.js.map +1 -1
  716. package/build/mobile/link-picker/link-picker-results.native.js +13 -26
  717. package/build/mobile/link-picker/link-picker-results.native.js.map +1 -1
  718. package/build/mobile/link-picker/link-picker-screen.native.js +3 -12
  719. package/build/mobile/link-picker/link-picker-screen.native.js.map +1 -1
  720. package/build/mobile/link-settings/image-link-destinations-screen.native.js +1 -22
  721. package/build/mobile/link-settings/image-link-destinations-screen.native.js.map +1 -1
  722. package/build/mobile/link-settings/index.native.js +17 -52
  723. package/build/mobile/link-settings/index.native.js.map +1 -1
  724. package/build/mobile/link-settings/link-rel.native.js +0 -4
  725. package/build/mobile/link-settings/link-rel.native.js.map +1 -1
  726. package/build/mobile/link-settings/link-settings-navigation.native.js +5 -12
  727. package/build/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
  728. package/build/mobile/link-settings/link-settings-screen.native.js +5 -10
  729. package/build/mobile/link-settings/link-settings-screen.native.js.map +1 -1
  730. package/build/mobile/media-edit/index.native.js +3 -20
  731. package/build/mobile/media-edit/index.native.js.map +1 -1
  732. package/build/mobile/picker/index.android.js +1 -17
  733. package/build/mobile/picker/index.android.js.map +1 -1
  734. package/build/mobile/picker/index.ios.js +1 -15
  735. package/build/mobile/picker/index.ios.js.map +1 -1
  736. package/build/mobile/segmented-control/index.native.js +7 -18
  737. package/build/mobile/segmented-control/index.native.js.map +1 -1
  738. package/build/mobile/utils/alignments.native.js +2 -13
  739. package/build/mobile/utils/alignments.native.js.map +1 -1
  740. package/build/mobile/utils/index.native.js +0 -2
  741. package/build/mobile/utils/index.native.js.map +1 -1
  742. package/build/mobile/utils/use-is-floating-keyboard.native.js +1 -6
  743. package/build/mobile/utils/use-is-floating-keyboard.native.js.map +1 -1
  744. package/build/mobile/utils/use-unit-converter-to-mobile.native.js +5 -22
  745. package/build/mobile/utils/use-unit-converter-to-mobile.native.js.map +1 -1
  746. package/build/modal/aria-helper.js +4 -9
  747. package/build/modal/aria-helper.js.map +1 -1
  748. package/build/modal/index.js +41 -47
  749. package/build/modal/index.js.map +1 -1
  750. package/build/modal/types.js.map +1 -1
  751. package/build/navigable-container/container.js +14 -43
  752. package/build/navigable-container/container.js.map +1 -1
  753. package/build/navigable-container/index.js +0 -3
  754. package/build/navigable-container/index.js.map +1 -1
  755. package/build/navigable-container/menu.js +2 -11
  756. package/build/navigable-container/menu.js.map +1 -1
  757. package/build/navigable-container/tabbable.js +5 -12
  758. package/build/navigable-container/tabbable.js.map +1 -1
  759. package/build/navigable-container/types.js.map +1 -1
  760. package/build/navigation/back-button/index.js +1 -13
  761. package/build/navigation/back-button/index.js.map +1 -1
  762. package/build/navigation/constants.js.map +1 -1
  763. package/build/navigation/context.js +1 -8
  764. package/build/navigation/context.js.map +1 -1
  765. package/build/navigation/group/context.js +1 -4
  766. package/build/navigation/group/context.js.map +1 -1
  767. package/build/navigation/group/index.js +3 -11
  768. package/build/navigation/group/index.js.map +1 -1
  769. package/build/navigation/index.js +6 -19
  770. package/build/navigation/index.js.map +1 -1
  771. package/build/navigation/item/base-content.js +1 -3
  772. package/build/navigation/item/base-content.js.map +1 -1
  773. package/build/navigation/item/base.js +1 -10
  774. package/build/navigation/item/base.js.map +1 -1
  775. package/build/navigation/item/index.js +10 -22
  776. package/build/navigation/item/index.js.map +1 -1
  777. package/build/navigation/item/use-navigation-tree-item.js +5 -9
  778. package/build/navigation/item/use-navigation-tree-item.js.map +1 -1
  779. package/build/navigation/menu/context.js +1 -4
  780. package/build/navigation/menu/context.js.map +1 -1
  781. package/build/navigation/menu/index.js +3 -16
  782. package/build/navigation/menu/index.js.map +1 -1
  783. package/build/navigation/menu/menu-title-search.js +8 -22
  784. package/build/navigation/menu/menu-title-search.js.map +1 -1
  785. package/build/navigation/menu/menu-title.js +4 -17
  786. package/build/navigation/menu/menu-title.js.map +1 -1
  787. package/build/navigation/menu/search-no-results-found.js +1 -7
  788. package/build/navigation/menu/search-no-results-found.js.map +1 -1
  789. package/build/navigation/menu/use-navigation-tree-menu.js +5 -7
  790. package/build/navigation/menu/use-navigation-tree-menu.js.map +1 -1
  791. package/build/navigation/styles/navigation-styles.js +12 -24
  792. package/build/navigation/styles/navigation-styles.js.map +1 -1
  793. package/build/navigation/types.js.map +1 -1
  794. package/build/navigation/use-create-navigation-tree.js +4 -18
  795. package/build/navigation/use-create-navigation-tree.js.map +1 -1
  796. package/build/navigation/use-navigation-tree-nodes.js +3 -7
  797. package/build/navigation/use-navigation-tree-nodes.js.map +1 -1
  798. package/build/navigation/utils.js +1 -6
  799. package/build/navigation/utils.js.map +1 -1
  800. package/build/navigator/context.js +1 -2
  801. package/build/navigator/context.js.map +1 -1
  802. package/build/navigator/index.js +0 -7
  803. package/build/navigator/index.js.map +1 -1
  804. package/build/navigator/navigator-back-button/component.js +2 -7
  805. package/build/navigator/navigator-back-button/component.js.map +1 -1
  806. package/build/navigator/navigator-back-button/hook.js +0 -11
  807. package/build/navigator/navigator-back-button/hook.js.map +1 -1
  808. package/build/navigator/navigator-back-button/index.js +0 -2
  809. package/build/navigator/navigator-back-button/index.js.map +1 -1
  810. package/build/navigator/navigator-button/component.js +2 -7
  811. package/build/navigator/navigator-button/component.js.map +1 -1
  812. package/build/navigator/navigator-button/hook.js +0 -11
  813. package/build/navigator/navigator-button/hook.js.map +1 -1
  814. package/build/navigator/navigator-button/index.js +0 -2
  815. package/build/navigator/navigator-button/index.js.map +1 -1
  816. package/build/navigator/navigator-provider/component.js +19 -43
  817. package/build/navigator/navigator-provider/component.js.map +1 -1
  818. package/build/navigator/navigator-provider/index.js +0 -2
  819. package/build/navigator/navigator-provider/index.js.map +1 -1
  820. package/build/navigator/navigator-screen/component.js +16 -34
  821. package/build/navigator/navigator-screen/component.js.map +1 -1
  822. package/build/navigator/navigator-screen/index.js +0 -2
  823. package/build/navigator/navigator-screen/index.js.map +1 -1
  824. package/build/navigator/navigator-to-parent-button/component.js +4 -8
  825. package/build/navigator/navigator-to-parent-button/component.js.map +1 -1
  826. package/build/navigator/navigator-to-parent-button/index.js +0 -2
  827. package/build/navigator/navigator-to-parent-button/index.js.map +1 -1
  828. package/build/navigator/types.js.map +1 -1
  829. package/build/navigator/use-navigator.js +0 -4
  830. package/build/navigator/use-navigator.js.map +1 -1
  831. package/build/navigator/utils/router.js +1 -10
  832. package/build/navigator/utils/router.js.map +1 -1
  833. package/build/notice/index.js +3 -21
  834. package/build/notice/index.js.map +1 -1
  835. package/build/notice/index.native.js +1 -10
  836. package/build/notice/index.native.js.map +1 -1
  837. package/build/notice/list.js +4 -10
  838. package/build/notice/list.js.map +1 -1
  839. package/build/notice/list.native.js +3 -12
  840. package/build/notice/list.native.js.map +1 -1
  841. package/build/notice/types.js.map +1 -1
  842. package/build/number-control/index.js +23 -54
  843. package/build/number-control/index.js.map +1 -1
  844. package/build/number-control/styles/number-control-styles.js +4 -16
  845. package/build/number-control/styles/number-control-styles.js.map +1 -1
  846. package/build/number-control/types.js.map +1 -1
  847. package/build/palette-edit/index.js +27 -55
  848. package/build/palette-edit/index.js.map +1 -1
  849. package/build/palette-edit/styles.js +10 -23
  850. package/build/palette-edit/styles.js.map +1 -1
  851. package/build/palette-edit/types.js.map +1 -1
  852. package/build/panel/actions.native.js +1 -10
  853. package/build/panel/actions.native.js.map +1 -1
  854. package/build/panel/body.js +8 -18
  855. package/build/panel/body.js.map +1 -1
  856. package/build/panel/body.native.js +1 -7
  857. package/build/panel/body.native.js.map +1 -1
  858. package/build/panel/bottom-separator-cover.native.js +1 -8
  859. package/build/panel/bottom-separator-cover.native.js.map +1 -1
  860. package/build/panel/header.js +0 -3
  861. package/build/panel/header.js.map +1 -1
  862. package/build/panel/index.js +2 -7
  863. package/build/panel/index.js.map +1 -1
  864. package/build/panel/row.js +2 -6
  865. package/build/panel/row.js.map +1 -1
  866. package/build/panel/types.js.map +1 -1
  867. package/build/placeholder/index.js +7 -14
  868. package/build/placeholder/index.js.map +1 -1
  869. package/build/placeholder/types.js.map +1 -1
  870. package/build/popover/index.js +42 -70
  871. package/build/popover/index.js.map +1 -1
  872. package/build/popover/limit-shift.js +4 -15
  873. package/build/popover/limit-shift.js.map +1 -1
  874. package/build/popover/overlay-middlewares.js +5 -8
  875. package/build/popover/overlay-middlewares.js.map +1 -1
  876. package/build/popover/types.js.map +1 -1
  877. package/build/popover/utils.js +8 -37
  878. package/build/popover/utils.js.map +1 -1
  879. package/build/private-apis.js +4 -10
  880. package/build/private-apis.js.map +1 -1
  881. package/build/progress-bar/index.js +1 -7
  882. package/build/progress-bar/index.js.map +1 -1
  883. package/build/progress-bar/styles.js +7 -12
  884. package/build/progress-bar/styles.js.map +1 -1
  885. package/build/progress-bar/types.js.map +1 -1
  886. package/build/query-controls/author-select.js +1 -5
  887. package/build/query-controls/author-select.js.map +1 -1
  888. package/build/query-controls/category-select.js +1 -5
  889. package/build/query-controls/category-select.js.map +1 -1
  890. package/build/query-controls/index.js +2 -18
  891. package/build/query-controls/index.js.map +1 -1
  892. package/build/query-controls/index.native.js +1 -8
  893. package/build/query-controls/index.native.js.map +1 -1
  894. package/build/query-controls/terms.js +6 -11
  895. package/build/query-controls/terms.js.map +1 -1
  896. package/build/query-controls/types.js.map +1 -1
  897. package/build/radio-control/index.js +0 -11
  898. package/build/radio-control/index.js.map +1 -1
  899. package/build/radio-control/index.native.js +1 -5
  900. package/build/radio-control/index.native.js.map +1 -1
  901. package/build/radio-control/types.js.map +1 -1
  902. package/build/radio-group/index.js +4 -10
  903. package/build/radio-group/index.js.map +1 -1
  904. package/build/radio-group/radio/index.js +2 -9
  905. package/build/radio-group/radio/index.js.map +1 -1
  906. package/build/radio-group/radio-context/index.js +1 -2
  907. package/build/radio-group/radio-context/index.js.map +1 -1
  908. package/build/range-control/index.js +9 -39
  909. package/build/range-control/index.js.map +1 -1
  910. package/build/range-control/index.native.js +1 -6
  911. package/build/range-control/index.native.js.map +1 -1
  912. package/build/range-control/input-range.js +3 -5
  913. package/build/range-control/input-range.js.map +1 -1
  914. package/build/range-control/mark.js +3 -6
  915. package/build/range-control/mark.js.map +1 -1
  916. package/build/range-control/rail.js +5 -15
  917. package/build/range-control/rail.js.map +1 -1
  918. package/build/range-control/styles/range-control-styles.js +30 -70
  919. package/build/range-control/styles/range-control-styles.js.map +1 -1
  920. package/build/range-control/tooltip.js +5 -8
  921. package/build/range-control/tooltip.js.map +1 -1
  922. package/build/range-control/types.js.map +1 -1
  923. package/build/range-control/utils.js +4 -9
  924. package/build/range-control/utils.js.map +1 -1
  925. package/build/resizable-box/index.js +5 -10
  926. package/build/resizable-box/index.js.map +1 -1
  927. package/build/resizable-box/index.native.js +1 -8
  928. package/build/resizable-box/index.native.js.map +1 -1
  929. package/build/resizable-box/resize-tooltip/index.js +1 -9
  930. package/build/resizable-box/resize-tooltip/index.js.map +1 -1
  931. package/build/resizable-box/resize-tooltip/label.js +4 -15
  932. package/build/resizable-box/resize-tooltip/label.js.map +1 -1
  933. package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js +3 -8
  934. package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js.map +1 -1
  935. package/build/resizable-box/resize-tooltip/utils.js +9 -26
  936. package/build/resizable-box/resize-tooltip/utils.js.map +1 -1
  937. package/build/responsive-wrapper/index.js +2 -9
  938. package/build/responsive-wrapper/index.js.map +1 -1
  939. package/build/responsive-wrapper/types.js.map +1 -1
  940. package/build/sandbox/index.js +32 -41
  941. package/build/sandbox/index.js.map +1 -1
  942. package/build/sandbox/index.native.js +14 -31
  943. package/build/sandbox/index.native.js.map +1 -1
  944. package/build/sandbox/types.js.map +1 -1
  945. package/build/scroll-lock/index.js +3 -12
  946. package/build/scroll-lock/index.js.map +1 -1
  947. package/build/scrollable/component.js +4 -8
  948. package/build/scrollable/component.js.map +1 -1
  949. package/build/scrollable/hook.js +2 -11
  950. package/build/scrollable/hook.js.map +1 -1
  951. package/build/scrollable/index.js +0 -4
  952. package/build/scrollable/index.js.map +1 -1
  953. package/build/scrollable/styles.js +0 -4
  954. package/build/scrollable/styles.js.map +1 -1
  955. package/build/scrollable/types.js.map +1 -1
  956. package/build/search-control/index.js +4 -16
  957. package/build/search-control/index.js.map +1 -1
  958. package/build/search-control/index.native.js +15 -33
  959. package/build/search-control/index.native.js.map +1 -1
  960. package/build/search-control/types.js.map +1 -1
  961. package/build/select-control/chevron-down.js +1 -5
  962. package/build/select-control/chevron-down.js.map +1 -1
  963. package/build/select-control/index.js +8 -21
  964. package/build/select-control/index.js.map +1 -1
  965. package/build/select-control/index.native.js +1 -4
  966. package/build/select-control/index.native.js.map +1 -1
  967. package/build/select-control/styles/select-control-styles.js +4 -19
  968. package/build/select-control/styles/select-control-styles.js.map +1 -1
  969. package/build/select-control/types.js.map +1 -1
  970. package/build/shortcut/index.js +1 -8
  971. package/build/shortcut/index.js.map +1 -1
  972. package/build/shortcut/types.js.map +1 -1
  973. package/build/slot-fill/bubbles-virtually/fill.js +4 -12
  974. package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
  975. package/build/slot-fill/bubbles-virtually/slot-fill-context.js +1 -6
  976. package/build/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
  977. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js +3 -22
  978. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  979. package/build/slot-fill/bubbles-virtually/slot.js +5 -11
  980. package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
  981. package/build/slot-fill/bubbles-virtually/use-slot-fills.js +3 -8
  982. package/build/slot-fill/bubbles-virtually/use-slot-fills.js.map +1 -1
  983. package/build/slot-fill/bubbles-virtually/use-slot.js +5 -9
  984. package/build/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
  985. package/build/slot-fill/context.js +1 -3
  986. package/build/slot-fill/context.js.map +1 -1
  987. package/build/slot-fill/fill.js +7 -11
  988. package/build/slot-fill/fill.js.map +1 -1
  989. package/build/slot-fill/index.js +11 -27
  990. package/build/slot-fill/index.js.map +1 -1
  991. package/build/slot-fill/index.native.js +3 -11
  992. package/build/slot-fill/index.native.js.map +1 -1
  993. package/build/slot-fill/provider.js +6 -24
  994. package/build/slot-fill/provider.js.map +1 -1
  995. package/build/slot-fill/slot.js +4 -20
  996. package/build/slot-fill/slot.js.map +1 -1
  997. package/build/slot-fill/use-slot.js +0 -6
  998. package/build/slot-fill/use-slot.js.map +1 -1
  999. package/build/snackbar/index.js +9 -22
  1000. package/build/snackbar/index.js.map +1 -1
  1001. package/build/snackbar/list.js +16 -15
  1002. package/build/snackbar/list.js.map +1 -1
  1003. package/build/snackbar/types.js.map +1 -1
  1004. package/build/spacer/component.js +4 -8
  1005. package/build/spacer/component.js.map +1 -1
  1006. package/build/spacer/hook.js +4 -12
  1007. package/build/spacer/hook.js.map +1 -1
  1008. package/build/spacer/index.js +0 -3
  1009. package/build/spacer/index.js.map +1 -1
  1010. package/build/spacer/types.js.map +1 -1
  1011. package/build/spinner/index.js +1 -7
  1012. package/build/spinner/index.js.map +1 -1
  1013. package/build/spinner/index.native.js +1 -5
  1014. package/build/spinner/index.native.js.map +1 -1
  1015. package/build/spinner/styles.js +4 -10
  1016. package/build/spinner/styles.js.map +1 -1
  1017. package/build/style-provider/index.js +13 -19
  1018. package/build/style-provider/index.js.map +1 -1
  1019. package/build/style-provider/index.native.js +0 -1
  1020. package/build/style-provider/index.native.js.map +1 -1
  1021. package/build/style-provider/types.js.map +1 -1
  1022. package/build/surface/component.js +4 -8
  1023. package/build/surface/component.js.map +1 -1
  1024. package/build/surface/hook.js +3 -8
  1025. package/build/surface/hook.js.map +1 -1
  1026. package/build/surface/index.js +0 -4
  1027. package/build/surface/index.js.map +1 -1
  1028. package/build/surface/styles.js +1 -19
  1029. package/build/surface/styles.js.map +1 -1
  1030. package/build/surface/types.js.map +1 -1
  1031. package/build/tab-panel/index.js +12 -30
  1032. package/build/tab-panel/index.js.map +1 -1
  1033. package/build/tab-panel/types.js.map +1 -1
  1034. package/build/text/component.js +1 -8
  1035. package/build/text/component.js.map +1 -1
  1036. package/build/text/get-line-height.js +1 -8
  1037. package/build/text/get-line-height.js.map +1 -1
  1038. package/build/text/hook.js +9 -40
  1039. package/build/text/hook.js.map +1 -1
  1040. package/build/text/index.js +0 -3
  1041. package/build/text/index.js.map +1 -1
  1042. package/build/text/index.native.js +1 -5
  1043. package/build/text/index.native.js.map +1 -1
  1044. package/build/text/styles/emotion-css.native.js +0 -2
  1045. package/build/text/styles/emotion-css.native.js.map +1 -1
  1046. package/build/text/styles/font-family.native.js.map +1 -1
  1047. package/build/text/styles/text-mixins.native.js +3 -20
  1048. package/build/text/styles/text-mixins.native.js.map +1 -1
  1049. package/build/text/styles.js +0 -4
  1050. package/build/text/styles.js.map +1 -1
  1051. package/build/text/types.js.map +1 -1
  1052. package/build/text/utils.js +5 -19
  1053. package/build/text/utils.js.map +1 -1
  1054. package/build/text-control/index.js +2 -9
  1055. package/build/text-control/index.js.map +1 -1
  1056. package/build/text-control/index.native.js +1 -6
  1057. package/build/text-control/index.native.js.map +1 -1
  1058. package/build/text-control/types.js.map +1 -1
  1059. package/build/text-highlight/index.js +0 -6
  1060. package/build/text-highlight/index.js.map +1 -1
  1061. package/build/text-highlight/types.js.map +1 -1
  1062. package/build/textarea-control/index.js +0 -9
  1063. package/build/textarea-control/index.js.map +1 -1
  1064. package/build/textarea-control/index.native.js +1 -6
  1065. package/build/textarea-control/index.native.js.map +1 -1
  1066. package/build/textarea-control/styles/textarea-control-styles.js +1 -4
  1067. package/build/textarea-control/styles/textarea-control-styles.js.map +1 -1
  1068. package/build/textarea-control/types.js.map +1 -1
  1069. package/build/theme/color-algorithms.js +7 -18
  1070. package/build/theme/color-algorithms.js.map +1 -1
  1071. package/build/theme/index.js +0 -8
  1072. package/build/theme/index.js.map +1 -1
  1073. package/build/theme/styles.js +1 -5
  1074. package/build/theme/styles.js.map +1 -1
  1075. package/build/theme/types.js.map +1 -1
  1076. package/build/tip/index.js +1 -4
  1077. package/build/tip/index.js.map +1 -1
  1078. package/build/tip/types.js.map +1 -1
  1079. package/build/toggle-control/index.js +0 -16
  1080. package/build/toggle-control/index.js.map +1 -1
  1081. package/build/toggle-control/index.native.js +1 -4
  1082. package/build/toggle-control/index.native.js.map +1 -1
  1083. package/build/toggle-control/types.js.map +1 -1
  1084. package/build/toggle-group-control/context.js +1 -4
  1085. package/build/toggle-group-control/context.js.map +1 -1
  1086. package/build/toggle-group-control/index.js +0 -3
  1087. package/build/toggle-group-control/index.js.map +1 -1
  1088. package/build/toggle-group-control/toggle-group-control/as-button-group.js +7 -12
  1089. package/build/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -1
  1090. package/build/toggle-group-control/toggle-group-control/as-radio-group.js +10 -14
  1091. package/build/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
  1092. package/build/toggle-group-control/toggle-group-control/component.js +3 -18
  1093. package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
  1094. package/build/toggle-group-control/toggle-group-control/index.js +0 -2
  1095. package/build/toggle-group-control/toggle-group-control/index.js.map +1 -1
  1096. package/build/toggle-group-control/toggle-group-control/styles.js +0 -10
  1097. package/build/toggle-group-control/toggle-group-control/styles.js.map +1 -1
  1098. package/build/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js +4 -15
  1099. package/build/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js.map +1 -1
  1100. package/build/toggle-group-control/toggle-group-control-option/component.js +4 -6
  1101. package/build/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  1102. package/build/toggle-group-control/toggle-group-control-option/index.js +0 -2
  1103. package/build/toggle-group-control/toggle-group-control-option/index.js.map +1 -1
  1104. package/build/toggle-group-control/toggle-group-control-option-base/component.js +13 -32
  1105. package/build/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  1106. package/build/toggle-group-control/toggle-group-control-option-base/index.js +0 -2
  1107. package/build/toggle-group-control/toggle-group-control-option-base/index.js.map +1 -1
  1108. package/build/toggle-group-control/toggle-group-control-option-base/styles.js +7 -16
  1109. package/build/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
  1110. package/build/toggle-group-control/toggle-group-control-option-icon/component.js +4 -8
  1111. package/build/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  1112. package/build/toggle-group-control/toggle-group-control-option-icon/index.js +0 -2
  1113. package/build/toggle-group-control/toggle-group-control-option-icon/index.js.map +1 -1
  1114. package/build/toggle-group-control/types.js.map +1 -1
  1115. package/build/toolbar/index.js +0 -7
  1116. package/build/toolbar/index.js.map +1 -1
  1117. package/build/toolbar/toolbar/index.js +6 -15
  1118. package/build/toolbar/toolbar/index.js.map +1 -1
  1119. package/build/toolbar/toolbar/toolbar-container.js +3 -8
  1120. package/build/toolbar/toolbar/toolbar-container.js.map +1 -1
  1121. package/build/toolbar/toolbar/toolbar-container.native.js +1 -4
  1122. package/build/toolbar/toolbar/toolbar-container.native.js.map +1 -1
  1123. package/build/toolbar/toolbar/types.js.map +1 -1
  1124. package/build/toolbar/toolbar-button/index.js +7 -16
  1125. package/build/toolbar/toolbar-button/index.js.map +1 -1
  1126. package/build/toolbar/toolbar-button/toolbar-button-container.js +1 -3
  1127. package/build/toolbar/toolbar-button/toolbar-button-container.js.map +1 -1
  1128. package/build/toolbar/toolbar-button/toolbar-button-container.native.js +0 -4
  1129. package/build/toolbar/toolbar-button/toolbar-button-container.native.js.map +1 -1
  1130. package/build/toolbar/toolbar-button/types.js.map +1 -1
  1131. package/build/toolbar/toolbar-context/index.js +1 -2
  1132. package/build/toolbar/toolbar-context/index.js.map +1 -1
  1133. package/build/toolbar/toolbar-dropdown-menu/index.js +10 -15
  1134. package/build/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
  1135. package/build/toolbar/toolbar-group/index.js +4 -16
  1136. package/build/toolbar/toolbar-group/index.js.map +1 -1
  1137. package/build/toolbar/toolbar-group/toolbar-group-collapsed.js +5 -12
  1138. package/build/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
  1139. package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js +1 -9
  1140. package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js.map +1 -1
  1141. package/build/toolbar/toolbar-group/toolbar-group-container.js +1 -3
  1142. package/build/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
  1143. package/build/toolbar/toolbar-group/toolbar-group-container.native.js +1 -7
  1144. package/build/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
  1145. package/build/toolbar/toolbar-item/index.js +7 -17
  1146. package/build/toolbar/toolbar-item/index.js.map +1 -1
  1147. package/build/toolbar/toolbar-item/index.native.js +3 -8
  1148. package/build/toolbar/toolbar-item/index.native.js.map +1 -1
  1149. package/build/toolbar/toolbar-item/types.js.map +1 -1
  1150. package/build/tools-panel/context.js +1 -5
  1151. package/build/tools-panel/context.js.map +1 -1
  1152. package/build/tools-panel/index.js +0 -4
  1153. package/build/tools-panel/index.js.map +1 -1
  1154. package/build/tools-panel/styles.js +14 -27
  1155. package/build/tools-panel/styles.js.map +1 -1
  1156. package/build/tools-panel/tools-panel/component.js +4 -11
  1157. package/build/tools-panel/tools-panel/component.js.map +1 -1
  1158. package/build/tools-panel/tools-panel/hook.js +51 -50
  1159. package/build/tools-panel/tools-panel/hook.js.map +1 -1
  1160. package/build/tools-panel/tools-panel/index.js +0 -3
  1161. package/build/tools-panel/tools-panel/index.js.map +1 -1
  1162. package/build/tools-panel/tools-panel-header/component.js +18 -32
  1163. package/build/tools-panel/tools-panel-header/component.js.map +1 -1
  1164. package/build/tools-panel/tools-panel-header/hook.js +3 -9
  1165. package/build/tools-panel/tools-panel-header/hook.js.map +1 -1
  1166. package/build/tools-panel/tools-panel-header/index.js +0 -2
  1167. package/build/tools-panel/tools-panel-header/index.js.map +1 -1
  1168. package/build/tools-panel/tools-panel-item/component.js +5 -10
  1169. package/build/tools-panel/tools-panel-item/component.js.map +1 -1
  1170. package/build/tools-panel/tools-panel-item/hook.js +18 -26
  1171. package/build/tools-panel/tools-panel-item/hook.js.map +1 -1
  1172. package/build/tools-panel/tools-panel-item/index.js +0 -3
  1173. package/build/tools-panel/tools-panel-item/index.js.map +1 -1
  1174. package/build/tools-panel/types.js.map +1 -1
  1175. package/build/tooltip/index.js +27 -53
  1176. package/build/tooltip/index.js.map +1 -1
  1177. package/build/tooltip/index.native.js +29 -45
  1178. package/build/tooltip/index.native.js.map +1 -1
  1179. package/build/tree-grid/cell.js +4 -7
  1180. package/build/tree-grid/cell.js.map +1 -1
  1181. package/build/tree-grid/index.js +51 -75
  1182. package/build/tree-grid/index.js.map +1 -1
  1183. package/build/tree-grid/item.js +2 -6
  1184. package/build/tree-grid/item.js.map +1 -1
  1185. package/build/tree-grid/roving-tab-index-context.js +1 -4
  1186. package/build/tree-grid/roving-tab-index-context.js.map +1 -1
  1187. package/build/tree-grid/roving-tab-index-item.js +7 -12
  1188. package/build/tree-grid/roving-tab-index-item.js.map +1 -1
  1189. package/build/tree-grid/roving-tab-index.js +3 -5
  1190. package/build/tree-grid/roving-tab-index.js.map +1 -1
  1191. package/build/tree-grid/row.js +4 -5
  1192. package/build/tree-grid/row.js.map +1 -1
  1193. package/build/tree-grid/types.js.map +1 -1
  1194. package/build/tree-select/index.js +2 -6
  1195. package/build/tree-select/index.js.map +1 -1
  1196. package/build/tree-select/types.js.map +1 -1
  1197. package/build/truncate/component.js +2 -8
  1198. package/build/truncate/component.js.map +1 -1
  1199. package/build/truncate/hook.js +3 -14
  1200. package/build/truncate/hook.js.map +1 -1
  1201. package/build/truncate/index.js +0 -3
  1202. package/build/truncate/index.js.map +1 -1
  1203. package/build/truncate/styles.js +0 -3
  1204. package/build/truncate/styles.js.map +1 -1
  1205. package/build/truncate/types.js.map +1 -1
  1206. package/build/truncate/utils.js +8 -20
  1207. package/build/truncate/utils.js.map +1 -1
  1208. package/build/ui/context/constants.js +1 -1
  1209. package/build/ui/context/constants.js.map +1 -1
  1210. package/build/ui/context/context-connect.js +16 -30
  1211. package/build/ui/context/context-connect.js.map +1 -1
  1212. package/build/ui/context/context-system-provider.js +11 -22
  1213. package/build/ui/context/context-system-provider.js.map +1 -1
  1214. package/build/ui/context/get-styled-class-name-from-key.js +0 -5
  1215. package/build/ui/context/get-styled-class-name-from-key.js.map +1 -1
  1216. package/build/ui/context/index.js +0 -5
  1217. package/build/ui/context/index.js.map +1 -1
  1218. package/build/ui/context/use-context-system.js +8 -19
  1219. package/build/ui/context/use-context-system.js.map +1 -1
  1220. package/build/ui/context/utils.js +1 -4
  1221. package/build/ui/context/utils.js.map +1 -1
  1222. package/build/ui/context/wordpress-component.js.map +1 -1
  1223. package/build/ui/shortcut/component.js +1 -9
  1224. package/build/ui/shortcut/component.js.map +1 -1
  1225. package/build/ui/shortcut/index.js +0 -2
  1226. package/build/ui/shortcut/index.js.map +1 -1
  1227. package/build/ui/tooltip/component.js +3 -12
  1228. package/build/ui/tooltip/component.js.map +1 -1
  1229. package/build/ui/tooltip/content.js +2 -13
  1230. package/build/ui/tooltip/content.js.map +1 -1
  1231. package/build/ui/tooltip/context.js +0 -4
  1232. package/build/ui/tooltip/context.js.map +1 -1
  1233. package/build/ui/tooltip/index.js +0 -4
  1234. package/build/ui/tooltip/index.js.map +1 -1
  1235. package/build/ui/tooltip/styles.js +0 -12
  1236. package/build/ui/tooltip/styles.js.map +1 -1
  1237. package/build/ui/tooltip/types.js.map +1 -1
  1238. package/build/ui/utils/colors.js +13 -23
  1239. package/build/ui/utils/colors.js.map +1 -1
  1240. package/build/ui/utils/font-size.js +1 -8
  1241. package/build/ui/utils/font-size.js.map +1 -1
  1242. package/build/ui/utils/get-high-dpi.js +1 -2
  1243. package/build/ui/utils/get-high-dpi.js.map +1 -1
  1244. package/build/ui/utils/get-valid-children.js +0 -2
  1245. package/build/ui/utils/get-valid-children.js.map +1 -1
  1246. package/build/ui/utils/index.js +0 -1
  1247. package/build/ui/utils/index.js.map +1 -1
  1248. package/build/ui/utils/space.js +6 -7
  1249. package/build/ui/utils/space.js.map +1 -1
  1250. package/build/ui/utils/types.js.map +1 -1
  1251. package/build/ui/utils/use-responsive-value.js +5 -18
  1252. package/build/ui/utils/use-responsive-value.js.map +1 -1
  1253. package/build/unit-control/index.js +13 -33
  1254. package/build/unit-control/index.js.map +1 -1
  1255. package/build/unit-control/index.native.js +7 -25
  1256. package/build/unit-control/index.native.js.map +1 -1
  1257. package/build/unit-control/styles/unit-control-styles.js +9 -19
  1258. package/build/unit-control/styles/unit-control-styles.js.map +1 -1
  1259. package/build/unit-control/types.js.map +1 -1
  1260. package/build/unit-control/unit-select-control.js +1 -10
  1261. package/build/unit-control/unit-select-control.js.map +1 -1
  1262. package/build/unit-control/utils.js +16 -35
  1263. package/build/unit-control/utils.js.map +1 -1
  1264. package/build/utils/base-label.js +0 -3
  1265. package/build/utils/base-label.js.map +1 -1
  1266. package/build/utils/box-sizing.js +0 -3
  1267. package/build/utils/box-sizing.js.map +1 -1
  1268. package/build/utils/breakpoint-values.js.map +1 -1
  1269. package/build/utils/breakpoint.js +0 -4
  1270. package/build/utils/breakpoint.js.map +1 -1
  1271. package/build/utils/browsers.js +1 -5
  1272. package/build/utils/browsers.js.map +1 -1
  1273. package/build/utils/colors-values.js +12 -12
  1274. package/build/utils/colors-values.js.map +1 -1
  1275. package/build/utils/colors.js +2 -5
  1276. package/build/utils/colors.js.map +1 -1
  1277. package/build/utils/config-values.js +6 -8
  1278. package/build/utils/config-values.js.map +1 -1
  1279. package/build/utils/events.js +3 -7
  1280. package/build/utils/events.js.map +1 -1
  1281. package/build/utils/font-values.js.map +1 -1
  1282. package/build/utils/font.js +0 -4
  1283. package/build/utils/font.js.map +1 -1
  1284. package/build/utils/hooks/emotion.d.js.map +1 -1
  1285. package/build/utils/hooks/index.js +0 -6
  1286. package/build/utils/hooks/index.js.map +1 -1
  1287. package/build/utils/hooks/use-controlled-state.js +5 -10
  1288. package/build/utils/hooks/use-controlled-state.js.map +1 -1
  1289. package/build/utils/hooks/use-controlled-value.js +0 -4
  1290. package/build/utils/hooks/use-controlled-value.js.map +1 -1
  1291. package/build/utils/hooks/use-cx.js +3 -10
  1292. package/build/utils/hooks/use-cx.js.map +1 -1
  1293. package/build/utils/hooks/use-latest-ref.js +0 -3
  1294. package/build/utils/hooks/use-latest-ref.js.map +1 -1
  1295. package/build/utils/hooks/use-update-effect.js +2 -5
  1296. package/build/utils/hooks/use-update-effect.js.map +1 -1
  1297. package/build/utils/index.js +0 -4
  1298. package/build/utils/index.js.map +1 -1
  1299. package/build/utils/input/base.js +3 -7
  1300. package/build/utils/input/base.js.map +1 -1
  1301. package/build/utils/input/index.js +0 -2
  1302. package/build/utils/input/index.js.map +1 -1
  1303. package/build/utils/input/input-control.js +1 -6
  1304. package/build/utils/input/input-control.js.map +1 -1
  1305. package/build/utils/math.js +8 -17
  1306. package/build/utils/math.js.map +1 -1
  1307. package/build/utils/reduce-motion.js +0 -5
  1308. package/build/utils/reduce-motion.js.map +1 -1
  1309. package/build/utils/rtl.js +7 -19
  1310. package/build/utils/rtl.js.map +1 -1
  1311. package/build/utils/strings.js +58 -35
  1312. package/build/utils/strings.js.map +1 -1
  1313. package/build/utils/style-mixins.js +0 -10
  1314. package/build/utils/style-mixins.js.map +1 -1
  1315. package/build/utils/types.js.map +1 -1
  1316. package/build/utils/unit-values.js +2 -5
  1317. package/build/utils/unit-values.js.map +1 -1
  1318. package/build/utils/use-deprecated-props.js +4 -8
  1319. package/build/utils/use-deprecated-props.js.map +1 -1
  1320. package/build/utils/values.js +9 -32
  1321. package/build/utils/values.js.map +1 -1
  1322. package/build/utils/z-index.js.map +1 -1
  1323. package/build/v-stack/component.js +4 -8
  1324. package/build/v-stack/component.js.map +1 -1
  1325. package/build/v-stack/hook.js +1 -3
  1326. package/build/v-stack/hook.js.map +1 -1
  1327. package/build/v-stack/index.js +0 -3
  1328. package/build/v-stack/index.js.map +1 -1
  1329. package/build/v-stack/types.js.map +1 -1
  1330. package/build/view/component.js +0 -3
  1331. package/build/view/component.js.map +1 -1
  1332. package/build/view/index.js +0 -2
  1333. package/build/view/index.js.map +1 -1
  1334. package/build/view/types.js.map +1 -1
  1335. package/build/visually-hidden/component.js +4 -8
  1336. package/build/visually-hidden/component.js.map +1 -1
  1337. package/build/visually-hidden/index.js +0 -2
  1338. package/build/visually-hidden/index.js.map +1 -1
  1339. package/build/visually-hidden/styles.js +1 -1
  1340. package/build/visually-hidden/styles.js.map +1 -1
  1341. package/build/visually-hidden/types.js.map +1 -1
  1342. package/build/z-stack/component.js +6 -10
  1343. package/build/z-stack/component.js.map +1 -1
  1344. package/build/z-stack/index.js +0 -2
  1345. package/build/z-stack/index.js.map +1 -1
  1346. package/build/z-stack/styles.js +0 -7
  1347. package/build/z-stack/styles.js.map +1 -1
  1348. package/build/z-stack/types.js.map +1 -1
  1349. package/build-module/alignment-matrix-control/cell.js +1 -2
  1350. package/build-module/alignment-matrix-control/cell.js.map +1 -1
  1351. package/build-module/alignment-matrix-control/icon.js +5 -6
  1352. package/build-module/alignment-matrix-control/icon.js.map +1 -1
  1353. package/build-module/alignment-matrix-control/index.js +9 -12
  1354. package/build-module/alignment-matrix-control/index.js.map +1 -1
  1355. package/build-module/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js +2 -8
  1356. package/build-module/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js.map +1 -1
  1357. package/build-module/alignment-matrix-control/styles/alignment-matrix-control-styles.js +11 -18
  1358. package/build-module/alignment-matrix-control/styles/alignment-matrix-control-styles.js.map +1 -1
  1359. package/build-module/alignment-matrix-control/types.js.map +1 -1
  1360. package/build-module/alignment-matrix-control/utils.js +7 -5
  1361. package/build-module/alignment-matrix-control/utils.js.map +1 -1
  1362. package/build-module/angle-picker-control/angle-circle.js +6 -18
  1363. package/build-module/angle-picker-control/angle-circle.js.map +1 -1
  1364. package/build-module/angle-picker-control/index.js +6 -11
  1365. package/build-module/angle-picker-control/index.js.map +1 -1
  1366. package/build-module/angle-picker-control/styles/angle-picker-control-styles.js +6 -11
  1367. package/build-module/angle-picker-control/styles/angle-picker-control-styles.js.map +1 -1
  1368. package/build-module/angle-picker-control/types.js.map +1 -1
  1369. package/build-module/animate/index.js +3 -7
  1370. package/build-module/animate/index.js.map +1 -1
  1371. package/build-module/animate/types.js.map +1 -1
  1372. package/build-module/animation/index.js +1 -0
  1373. package/build-module/animation/index.js.map +1 -1
  1374. package/build-module/autocomplete/autocompleter-ui.js +11 -22
  1375. package/build-module/autocomplete/autocompleter-ui.js.map +1 -1
  1376. package/build-module/autocomplete/autocompleter-ui.native.js +10 -13
  1377. package/build-module/autocomplete/autocompleter-ui.native.js.map +1 -1
  1378. package/build-module/autocomplete/background-view.android.js +2 -5
  1379. package/build-module/autocomplete/background-view.android.js.map +1 -1
  1380. package/build-module/autocomplete/background-view.ios.js +1 -4
  1381. package/build-module/autocomplete/background-view.ios.js.map +1 -1
  1382. package/build-module/autocomplete/get-default-use-items.js +8 -16
  1383. package/build-module/autocomplete/get-default-use-items.js.map +1 -1
  1384. package/build-module/autocomplete/index.js +30 -63
  1385. package/build-module/autocomplete/index.js.map +1 -1
  1386. package/build-module/autocomplete/types.js.map +1 -1
  1387. package/build-module/base-control/hooks.js +3 -3
  1388. package/build-module/base-control/hooks.js.map +1 -1
  1389. package/build-module/base-control/index.js +7 -6
  1390. package/build-module/base-control/index.js.map +1 -1
  1391. package/build-module/base-control/index.native.js +0 -1
  1392. package/build-module/base-control/index.native.js.map +1 -1
  1393. package/build-module/base-control/styles/base-control-styles.js +2 -8
  1394. package/build-module/base-control/styles/base-control-styles.js.map +1 -1
  1395. package/build-module/base-control/types.js.map +1 -1
  1396. package/build-module/border-box-control/border-box-control/component.js +7 -11
  1397. package/build-module/border-box-control/border-box-control/component.js.map +1 -1
  1398. package/build-module/border-box-control/border-box-control/hook.js +20 -20
  1399. package/build-module/border-box-control/border-box-control/hook.js.map +1 -1
  1400. package/build-module/border-box-control/border-box-control/index.js.map +1 -1
  1401. package/build-module/border-box-control/border-box-control-linked-button/component.js +3 -5
  1402. package/build-module/border-box-control/border-box-control-linked-button/component.js.map +1 -1
  1403. package/build-module/border-box-control/border-box-control-linked-button/hook.js +5 -3
  1404. package/build-module/border-box-control/border-box-control-linked-button/hook.js.map +1 -1
  1405. package/build-module/border-box-control/border-box-control-linked-button/index.js.map +1 -1
  1406. package/build-module/border-box-control/border-box-control-split-controls/component.js +8 -8
  1407. package/build-module/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  1408. package/build-module/border-box-control/border-box-control-split-controls/hook.js +5 -3
  1409. package/build-module/border-box-control/border-box-control-split-controls/hook.js.map +1 -1
  1410. package/build-module/border-box-control/border-box-control-split-controls/index.js.map +1 -1
  1411. package/build-module/border-box-control/border-box-control-visualizer/component.js +2 -4
  1412. package/build-module/border-box-control/border-box-control-visualizer/component.js.map +1 -1
  1413. package/build-module/border-box-control/border-box-control-visualizer/hook.js +5 -3
  1414. package/build-module/border-box-control/border-box-control-visualizer/hook.js.map +1 -1
  1415. package/build-module/border-box-control/border-box-control-visualizer/index.js.map +1 -1
  1416. package/build-module/border-box-control/index.js.map +1 -1
  1417. package/build-module/border-box-control/styles.js +1 -4
  1418. package/build-module/border-box-control/styles.js.map +1 -1
  1419. package/build-module/border-box-control/types.js.map +1 -1
  1420. package/build-module/border-box-control/utils.js +9 -20
  1421. package/build-module/border-box-control/utils.js.map +1 -1
  1422. package/build-module/border-control/border-control/component.js +2 -8
  1423. package/build-module/border-control/border-control/component.js.map +1 -1
  1424. package/build-module/border-control/border-control/hook.js +16 -18
  1425. package/build-module/border-control/border-control/hook.js.map +1 -1
  1426. package/build-module/border-control/border-control/index.js.map +1 -1
  1427. package/build-module/border-control/border-control-dropdown/component.js +17 -26
  1428. package/build-module/border-control/border-control-dropdown/component.js.map +1 -1
  1429. package/build-module/border-control/border-control-dropdown/hook.js +9 -9
  1430. package/build-module/border-control/border-control-dropdown/hook.js.map +1 -1
  1431. package/build-module/border-control/border-control-dropdown/index.js.map +1 -1
  1432. package/build-module/border-control/border-control-style-picker/component.js +3 -8
  1433. package/build-module/border-control/border-control-style-picker/component.js.map +1 -1
  1434. package/build-module/border-control/border-control-style-picker/hook.js +5 -3
  1435. package/build-module/border-control/border-control-style-picker/hook.js.map +1 -1
  1436. package/build-module/border-control/border-control-style-picker/index.js.map +1 -1
  1437. package/build-module/border-control/index.js.map +1 -1
  1438. package/build-module/border-control/styles.js +5 -5
  1439. package/build-module/border-control/styles.js.map +1 -1
  1440. package/build-module/border-control/types.js.map +1 -1
  1441. package/build-module/box-control/all-input-control.js +6 -12
  1442. package/build-module/box-control/all-input-control.js.map +1 -1
  1443. package/build-module/box-control/axial-input-controls.js +8 -22
  1444. package/build-module/box-control/axial-input-controls.js.map +1 -1
  1445. package/build-module/box-control/icon.js +3 -5
  1446. package/build-module/box-control/icon.js.map +1 -1
  1447. package/build-module/box-control/index.js +11 -17
  1448. package/build-module/box-control/index.js.map +1 -1
  1449. package/build-module/box-control/input-controls.js +9 -18
  1450. package/build-module/box-control/input-controls.js.map +1 -1
  1451. package/build-module/box-control/linked-button.js +3 -3
  1452. package/build-module/box-control/linked-button.js.map +1 -1
  1453. package/build-module/box-control/styles/box-control-icon-styles.js +0 -7
  1454. package/build-module/box-control/styles/box-control-icon-styles.js.map +1 -1
  1455. package/build-module/box-control/styles/box-control-styles.js +0 -11
  1456. package/build-module/box-control/styles/box-control-styles.js.map +1 -1
  1457. package/build-module/box-control/styles/box-control-visualizer-styles.js +8 -14
  1458. package/build-module/box-control/styles/box-control-visualizer-styles.js.map +1 -1
  1459. package/build-module/box-control/types.js.map +1 -1
  1460. package/build-module/box-control/unit-control.js +4 -7
  1461. package/build-module/box-control/unit-control.js.map +1 -1
  1462. package/build-module/box-control/utils.js +14 -25
  1463. package/build-module/box-control/utils.js.map +1 -1
  1464. package/build-module/button/deprecated.js +3 -5
  1465. package/build-module/button/deprecated.js.map +1 -1
  1466. package/build-module/button/index.js +22 -34
  1467. package/build-module/button/index.js.map +1 -1
  1468. package/build-module/button/index.native.js +17 -16
  1469. package/build-module/button/index.native.js.map +1 -1
  1470. package/build-module/button/types.js.map +1 -1
  1471. package/build-module/button-group/index.js +2 -4
  1472. package/build-module/button-group/index.js.map +1 -1
  1473. package/build-module/button-group/types.js.map +1 -1
  1474. package/build-module/card/card/component.js +8 -10
  1475. package/build-module/card/card/component.js.map +1 -1
  1476. package/build-module/card/card/hook.js +10 -11
  1477. package/build-module/card/card/hook.js.map +1 -1
  1478. package/build-module/card/card/index.js.map +1 -1
  1479. package/build-module/card/card-body/component.js +6 -8
  1480. package/build-module/card/card-body/component.js.map +1 -1
  1481. package/build-module/card/card-body/hook.js +5 -2
  1482. package/build-module/card/card-body/hook.js.map +1 -1
  1483. package/build-module/card/card-body/index.js.map +1 -1
  1484. package/build-module/card/card-divider/component.js +4 -5
  1485. package/build-module/card/card-divider/component.js.map +1 -1
  1486. package/build-module/card/card-divider/hook.js +5 -2
  1487. package/build-module/card/card-divider/hook.js.map +1 -1
  1488. package/build-module/card/card-divider/index.js.map +1 -1
  1489. package/build-module/card/card-footer/component.js +4 -5
  1490. package/build-module/card/card-footer/component.js.map +1 -1
  1491. package/build-module/card/card-footer/hook.js +5 -2
  1492. package/build-module/card/card-footer/hook.js.map +1 -1
  1493. package/build-module/card/card-footer/index.js.map +1 -1
  1494. package/build-module/card/card-header/component.js +4 -5
  1495. package/build-module/card/card-header/component.js.map +1 -1
  1496. package/build-module/card/card-header/hook.js +5 -2
  1497. package/build-module/card/card-header/hook.js.map +1 -1
  1498. package/build-module/card/card-header/index.js.map +1 -1
  1499. package/build-module/card/card-media/component.js +4 -5
  1500. package/build-module/card/card-media/component.js.map +1 -1
  1501. package/build-module/card/card-media/hook.js +5 -2
  1502. package/build-module/card/card-media/hook.js.map +1 -1
  1503. package/build-module/card/card-media/index.js.map +1 -1
  1504. package/build-module/card/context.js.map +1 -1
  1505. package/build-module/card/index.js.map +1 -1
  1506. package/build-module/card/styles.js +3 -3
  1507. package/build-module/card/styles.js.map +1 -1
  1508. package/build-module/card/types.js.map +1 -1
  1509. package/build-module/checkbox-control/index.js +6 -12
  1510. package/build-module/checkbox-control/index.js.map +1 -1
  1511. package/build-module/checkbox-control/types.js.map +1 -1
  1512. package/build-module/circular-option-picker/index.js +3 -4
  1513. package/build-module/circular-option-picker/index.js.map +1 -1
  1514. package/build-module/circular-option-picker/types.js.map +1 -1
  1515. package/build-module/clipboard-button/index.js +7 -9
  1516. package/build-module/clipboard-button/index.js.map +1 -1
  1517. package/build-module/clipboard-button/types.js.map +1 -1
  1518. package/build-module/color-control/index.native.js +0 -3
  1519. package/build-module/color-control/index.native.js.map +1 -1
  1520. package/build-module/color-indicator/index.js +2 -4
  1521. package/build-module/color-indicator/index.js.map +1 -1
  1522. package/build-module/color-indicator/index.native.js +0 -8
  1523. package/build-module/color-indicator/index.native.js.map +1 -1
  1524. package/build-module/color-indicator/types.js.map +1 -1
  1525. package/build-module/color-palette/index.js +18 -19
  1526. package/build-module/color-palette/index.js.map +1 -1
  1527. package/build-module/color-palette/index.native.js +5 -32
  1528. package/build-module/color-palette/index.native.js.map +1 -1
  1529. package/build-module/color-palette/styles.js +0 -2
  1530. package/build-module/color-palette/styles.js.map +1 -1
  1531. package/build-module/color-palette/types.js.map +1 -1
  1532. package/build-module/color-palette/utils.js +11 -13
  1533. package/build-module/color-palette/utils.js.map +1 -1
  1534. package/build-module/color-picker/color-copy-button.js +1 -5
  1535. package/build-module/color-picker/color-copy-button.js.map +1 -1
  1536. package/build-module/color-picker/color-input.js +6 -7
  1537. package/build-module/color-picker/color-input.js.map +1 -1
  1538. package/build-module/color-picker/component.js +5 -6
  1539. package/build-module/color-picker/component.js.map +1 -1
  1540. package/build-module/color-picker/hex-input.js +7 -10
  1541. package/build-module/color-picker/hex-input.js.map +1 -1
  1542. package/build-module/color-picker/hsl-input.js +1 -2
  1543. package/build-module/color-picker/hsl-input.js.map +1 -1
  1544. package/build-module/color-picker/index.js.map +1 -1
  1545. package/build-module/color-picker/index.native.js +2 -16
  1546. package/build-module/color-picker/index.native.js.map +1 -1
  1547. package/build-module/color-picker/input-with-slider.js +3 -6
  1548. package/build-module/color-picker/input-with-slider.js.map +1 -1
  1549. package/build-module/color-picker/legacy-adapter.js +2 -2
  1550. package/build-module/color-picker/legacy-adapter.js.map +1 -1
  1551. package/build-module/color-picker/picker.js +1 -2
  1552. package/build-module/color-picker/picker.js.map +1 -1
  1553. package/build-module/color-picker/rgb-input.js +1 -2
  1554. package/build-module/color-picker/rgb-input.js.map +1 -1
  1555. package/build-module/color-picker/styles.js +2 -2
  1556. package/build-module/color-picker/styles.js.map +1 -1
  1557. package/build-module/color-picker/types.js.map +1 -1
  1558. package/build-module/color-picker/use-deprecated-props.js +4 -6
  1559. package/build-module/color-picker/use-deprecated-props.js.map +1 -1
  1560. package/build-module/combobox-control/index.js +19 -46
  1561. package/build-module/combobox-control/index.js.map +1 -1
  1562. package/build-module/combobox-control/styles.js +2 -4
  1563. package/build-module/combobox-control/styles.js.map +1 -1
  1564. package/build-module/combobox-control/types.js.map +1 -1
  1565. package/build-module/composite/index.js +0 -1
  1566. package/build-module/composite/index.js.map +1 -1
  1567. package/build-module/confirm-dialog/component.js +1 -6
  1568. package/build-module/confirm-dialog/component.js.map +1 -1
  1569. package/build-module/confirm-dialog/index.js.map +1 -1
  1570. package/build-module/confirm-dialog/styles.js +1 -2
  1571. package/build-module/confirm-dialog/styles.js.map +1 -1
  1572. package/build-module/confirm-dialog/types.js.map +1 -1
  1573. package/build-module/custom-gradient-picker/constants.js.map +1 -1
  1574. package/build-module/custom-gradient-picker/gradient-bar/constants.js.map +1 -1
  1575. package/build-module/custom-gradient-picker/gradient-bar/control-points.js +7 -20
  1576. package/build-module/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  1577. package/build-module/custom-gradient-picker/gradient-bar/index.js +4 -24
  1578. package/build-module/custom-gradient-picker/gradient-bar/index.js.map +1 -1
  1579. package/build-module/custom-gradient-picker/gradient-bar/utils.js +11 -12
  1580. package/build-module/custom-gradient-picker/gradient-bar/utils.js.map +1 -1
  1581. package/build-module/custom-gradient-picker/index.js +13 -23
  1582. package/build-module/custom-gradient-picker/index.js.map +1 -1
  1583. package/build-module/custom-gradient-picker/index.native.js +7 -17
  1584. package/build-module/custom-gradient-picker/index.native.js.map +1 -1
  1585. package/build-module/custom-gradient-picker/serializer.js +1 -5
  1586. package/build-module/custom-gradient-picker/serializer.js.map +1 -1
  1587. package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.js +0 -2
  1588. package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.js.map +1 -1
  1589. package/build-module/custom-gradient-picker/types.js.map +1 -1
  1590. package/build-module/custom-gradient-picker/utils.js +3 -11
  1591. package/build-module/custom-gradient-picker/utils.js.map +1 -1
  1592. package/build-module/custom-select-control/index.js +19 -29
  1593. package/build-module/custom-select-control/index.js.map +1 -1
  1594. package/build-module/custom-select-control/styles.js +0 -4
  1595. package/build-module/custom-select-control/styles.js.map +1 -1
  1596. package/build-module/dashicon/index.js +7 -5
  1597. package/build-module/dashicon/index.js.map +1 -1
  1598. package/build-module/dashicon/index.native.js +3 -4
  1599. package/build-module/dashicon/index.native.js.map +1 -1
  1600. package/build-module/dashicon/types.js.map +1 -1
  1601. package/build-module/date-time/constants.js.map +1 -1
  1602. package/build-module/date-time/date/index.js +22 -33
  1603. package/build-module/date-time/date/index.js.map +1 -1
  1604. package/build-module/date-time/date/styles.js +8 -10
  1605. package/build-module/date-time/date/styles.js.map +1 -1
  1606. package/build-module/date-time/date-time/index.js +1 -6
  1607. package/build-module/date-time/date-time/index.js.map +1 -1
  1608. package/build-module/date-time/date-time/styles.js +0 -2
  1609. package/build-module/date-time/date-time/styles.js.map +1 -1
  1610. package/build-module/date-time/index.js.map +1 -1
  1611. package/build-module/date-time/time/index.js +15 -31
  1612. package/build-module/date-time/time/index.js.map +1 -1
  1613. package/build-module/date-time/time/styles.js +5 -5
  1614. package/build-module/date-time/time/styles.js.map +1 -1
  1615. package/build-module/date-time/time/timezone.js +7 -8
  1616. package/build-module/date-time/time/timezone.js.map +1 -1
  1617. package/build-module/date-time/types.js.map +1 -1
  1618. package/build-module/date-time/utils.js +1 -2
  1619. package/build-module/date-time/utils.js.map +1 -1
  1620. package/build-module/dimension-control/index.js +2 -8
  1621. package/build-module/dimension-control/index.js.map +1 -1
  1622. package/build-module/dimension-control/sizes.js +1 -0
  1623. package/build-module/dimension-control/sizes.js.map +1 -1
  1624. package/build-module/dimension-control/types.js.map +1 -1
  1625. package/build-module/disabled/index.js +2 -4
  1626. package/build-module/disabled/index.js.map +1 -1
  1627. package/build-module/disabled/index.native.js +0 -3
  1628. package/build-module/disabled/index.native.js.map +1 -1
  1629. package/build-module/disabled/styles/disabled-styles.js +0 -1
  1630. package/build-module/disabled/styles/disabled-styles.js.map +1 -1
  1631. package/build-module/disabled/types.js.map +1 -1
  1632. package/build-module/disclosure/index.js +0 -1
  1633. package/build-module/disclosure/index.js.map +1 -1
  1634. package/build-module/divider/component.js +1 -8
  1635. package/build-module/divider/component.js.map +1 -1
  1636. package/build-module/divider/index.js.map +1 -1
  1637. package/build-module/divider/styles.js +5 -10
  1638. package/build-module/divider/styles.js.map +1 -1
  1639. package/build-module/divider/types.js.map +1 -1
  1640. package/build-module/draggable/index.js +30 -35
  1641. package/build-module/draggable/index.js.map +1 -1
  1642. package/build-module/draggable/index.native.js +6 -18
  1643. package/build-module/draggable/index.native.js.map +1 -1
  1644. package/build-module/draggable/types.js.map +1 -1
  1645. package/build-module/drop-zone/index.js +10 -17
  1646. package/build-module/drop-zone/index.js.map +1 -1
  1647. package/build-module/drop-zone/provider.js.map +1 -1
  1648. package/build-module/drop-zone/types.js.map +1 -1
  1649. package/build-module/dropdown/dropdown-content-wrapper.js +4 -5
  1650. package/build-module/dropdown/dropdown-content-wrapper.js.map +1 -1
  1651. package/build-module/dropdown/index.js +12 -23
  1652. package/build-module/dropdown/index.js.map +1 -1
  1653. package/build-module/dropdown/index.native.js +0 -11
  1654. package/build-module/dropdown/index.native.js.map +1 -1
  1655. package/build-module/dropdown/styles.js +0 -4
  1656. package/build-module/dropdown/styles.js.map +1 -1
  1657. package/build-module/dropdown/types.js.map +1 -1
  1658. package/build-module/dropdown-menu/index.js +11 -25
  1659. package/build-module/dropdown-menu/index.js.map +1 -1
  1660. package/build-module/dropdown-menu/index.native.js +8 -19
  1661. package/build-module/dropdown-menu/index.native.js.map +1 -1
  1662. package/build-module/dropdown-menu/types.js.map +1 -1
  1663. package/build-module/dropdown-menu-v2/index.js +21 -16
  1664. package/build-module/dropdown-menu-v2/index.js.map +1 -1
  1665. package/build-module/dropdown-menu-v2/styles.js +4 -6
  1666. package/build-module/dropdown-menu-v2/styles.js.map +1 -1
  1667. package/build-module/dropdown-menu-v2/types.js.map +1 -1
  1668. package/build-module/duotone-picker/color-list-picker/index.js +1 -5
  1669. package/build-module/duotone-picker/color-list-picker/index.js.map +1 -1
  1670. package/build-module/duotone-picker/color-list-picker/types.js.map +1 -1
  1671. package/build-module/duotone-picker/custom-duotone-bar.js +0 -1
  1672. package/build-module/duotone-picker/custom-duotone-bar.js.map +1 -1
  1673. package/build-module/duotone-picker/duotone-picker.js +8 -11
  1674. package/build-module/duotone-picker/duotone-picker.js.map +1 -1
  1675. package/build-module/duotone-picker/duotone-swatch.js +1 -4
  1676. package/build-module/duotone-picker/duotone-swatch.js.map +1 -1
  1677. package/build-module/duotone-picker/index.js.map +1 -1
  1678. package/build-module/duotone-picker/types.js.map +1 -1
  1679. package/build-module/duotone-picker/utils.js +5 -4
  1680. package/build-module/duotone-picker/utils.js.map +1 -1
  1681. package/build-module/elevation/component.js +4 -5
  1682. package/build-module/elevation/component.js.map +1 -1
  1683. package/build-module/elevation/hook.js +9 -12
  1684. package/build-module/elevation/hook.js.map +1 -1
  1685. package/build-module/elevation/index.js.map +1 -1
  1686. package/build-module/elevation/styles.js +0 -1
  1687. package/build-module/elevation/styles.js.map +1 -1
  1688. package/build-module/elevation/types.js.map +1 -1
  1689. package/build-module/external-link/index.js +6 -16
  1690. package/build-module/external-link/index.js.map +1 -1
  1691. package/build-module/external-link/index.native.js +2 -2
  1692. package/build-module/external-link/index.native.js.map +1 -1
  1693. package/build-module/external-link/styles/external-link-styles.js +0 -2
  1694. package/build-module/external-link/styles/external-link-styles.js.map +1 -1
  1695. package/build-module/external-link/types.js.map +1 -1
  1696. package/build-module/flex/context.js.map +1 -1
  1697. package/build-module/flex/flex/component.js +4 -5
  1698. package/build-module/flex/flex/component.js.map +1 -1
  1699. package/build-module/flex/flex/hook.js +7 -8
  1700. package/build-module/flex/flex/hook.js.map +1 -1
  1701. package/build-module/flex/flex/index.js.map +1 -1
  1702. package/build-module/flex/flex-block/component.js +4 -5
  1703. package/build-module/flex/flex-block/component.js.map +1 -1
  1704. package/build-module/flex/flex-block/hook.js +1 -0
  1705. package/build-module/flex/flex-block/hook.js.map +1 -1
  1706. package/build-module/flex/flex-block/index.js.map +1 -1
  1707. package/build-module/flex/flex-item/component.js +4 -5
  1708. package/build-module/flex/flex-item/component.js.map +1 -1
  1709. package/build-module/flex/flex-item/hook.js +5 -2
  1710. package/build-module/flex/flex-item/hook.js.map +1 -1
  1711. package/build-module/flex/flex-item/index.js.map +1 -1
  1712. package/build-module/flex/index.js.map +1 -1
  1713. package/build-module/flex/styles.js +1 -2
  1714. package/build-module/flex/styles.js.map +1 -1
  1715. package/build-module/flex/types.js.map +1 -1
  1716. package/build-module/focal-point-picker/controls.js +3 -9
  1717. package/build-module/focal-point-picker/controls.js.map +1 -1
  1718. package/build-module/focal-point-picker/focal-point.js +3 -3
  1719. package/build-module/focal-point-picker/focal-point.js.map +1 -1
  1720. package/build-module/focal-point-picker/focal-point.native.js +1 -2
  1721. package/build-module/focal-point-picker/focal-point.native.js.map +1 -1
  1722. package/build-module/focal-point-picker/grid.js +2 -2
  1723. package/build-module/focal-point-picker/grid.js.map +1 -1
  1724. package/build-module/focal-point-picker/index.js +23 -24
  1725. package/build-module/focal-point-picker/index.js.map +1 -1
  1726. package/build-module/focal-point-picker/index.native.js +16 -25
  1727. package/build-module/focal-point-picker/index.native.js.map +1 -1
  1728. package/build-module/focal-point-picker/media.js +4 -4
  1729. package/build-module/focal-point-picker/media.js.map +1 -1
  1730. package/build-module/focal-point-picker/styles/focal-point-picker-style.js +0 -8
  1731. package/build-module/focal-point-picker/styles/focal-point-picker-style.js.map +1 -1
  1732. package/build-module/focal-point-picker/styles/focal-point-style.js +1 -1
  1733. package/build-module/focal-point-picker/styles/focal-point-style.js.map +1 -1
  1734. package/build-module/focal-point-picker/tooltip/index.native.js +6 -14
  1735. package/build-module/focal-point-picker/tooltip/index.native.js.map +1 -1
  1736. package/build-module/focal-point-picker/types.js.map +1 -1
  1737. package/build-module/focal-point-picker/utils.js +3 -3
  1738. package/build-module/focal-point-picker/utils.js.map +1 -1
  1739. package/build-module/focusable-iframe/index.js +3 -4
  1740. package/build-module/focusable-iframe/index.js.map +1 -1
  1741. package/build-module/font-size-picker/constants.js +7 -12
  1742. package/build-module/font-size-picker/constants.js.map +1 -1
  1743. package/build-module/font-size-picker/font-size-picker-select.js +3 -9
  1744. package/build-module/font-size-picker/font-size-picker-select.js.map +1 -1
  1745. package/build-module/font-size-picker/font-size-picker-toggle-group.js +1 -4
  1746. package/build-module/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  1747. package/build-module/font-size-picker/index.js +4 -15
  1748. package/build-module/font-size-picker/index.js.map +1 -1
  1749. package/build-module/font-size-picker/index.native.js +10 -18
  1750. package/build-module/font-size-picker/index.native.js.map +1 -1
  1751. package/build-module/font-size-picker/styles.js +0 -2
  1752. package/build-module/font-size-picker/styles.js.map +1 -1
  1753. package/build-module/font-size-picker/types.js.map +1 -1
  1754. package/build-module/font-size-picker/utils.js +3 -4
  1755. package/build-module/font-size-picker/utils.js.map +1 -1
  1756. package/build-module/footer-message-control/index.native.js +4 -6
  1757. package/build-module/footer-message-control/index.native.js.map +1 -1
  1758. package/build-module/form-file-upload/index.js +1 -5
  1759. package/build-module/form-file-upload/index.js.map +1 -1
  1760. package/build-module/form-file-upload/types.js.map +1 -1
  1761. package/build-module/form-toggle/index.js +2 -2
  1762. package/build-module/form-toggle/index.js.map +1 -1
  1763. package/build-module/form-toggle/types.js.map +1 -1
  1764. package/build-module/form-token-field/index.js +26 -112
  1765. package/build-module/form-token-field/index.js.map +1 -1
  1766. package/build-module/form-token-field/styles.js +2 -4
  1767. package/build-module/form-token-field/styles.js.map +1 -1
  1768. package/build-module/form-token-field/suggestions-list.js +3 -14
  1769. package/build-module/form-token-field/suggestions-list.js.map +1 -1
  1770. package/build-module/form-token-field/token-input.js +3 -7
  1771. package/build-module/form-token-field/token-input.js.map +1 -1
  1772. package/build-module/form-token-field/token.js +3 -9
  1773. package/build-module/form-token-field/token.js.map +1 -1
  1774. package/build-module/form-token-field/types.js.map +1 -1
  1775. package/build-module/gradient-picker/index.js +14 -18
  1776. package/build-module/gradient-picker/index.js.map +1 -1
  1777. package/build-module/gradient-picker/types.js.map +1 -1
  1778. package/build-module/grid/component.js +4 -5
  1779. package/build-module/grid/component.js.map +1 -1
  1780. package/build-module/grid/hook.js +5 -3
  1781. package/build-module/grid/hook.js.map +1 -1
  1782. package/build-module/grid/index.js.map +1 -1
  1783. package/build-module/grid/types.js.map +1 -1
  1784. package/build-module/grid/utils.js +1 -0
  1785. package/build-module/grid/utils.js.map +1 -1
  1786. package/build-module/guide/icons.js +0 -1
  1787. package/build-module/guide/icons.js.map +1 -1
  1788. package/build-module/guide/index.js +6 -17
  1789. package/build-module/guide/index.js.map +1 -1
  1790. package/build-module/guide/page-control.js +4 -5
  1791. package/build-module/guide/page-control.js.map +1 -1
  1792. package/build-module/guide/page.js +3 -2
  1793. package/build-module/guide/page.js.map +1 -1
  1794. package/build-module/guide/types.js.map +1 -1
  1795. package/build-module/h-stack/component.js +4 -5
  1796. package/build-module/h-stack/component.js.map +1 -1
  1797. package/build-module/h-stack/hook.js +1 -5
  1798. package/build-module/h-stack/hook.js.map +1 -1
  1799. package/build-module/h-stack/index.js.map +1 -1
  1800. package/build-module/h-stack/types.js.map +1 -1
  1801. package/build-module/h-stack/utils.js +1 -1
  1802. package/build-module/h-stack/utils.js.map +1 -1
  1803. package/build-module/heading/component.js +4 -5
  1804. package/build-module/heading/component.js.map +1 -1
  1805. package/build-module/heading/hook.js +3 -3
  1806. package/build-module/heading/hook.js.map +1 -1
  1807. package/build-module/heading/index.js.map +1 -1
  1808. package/build-module/heading/types.js.map +1 -1
  1809. package/build-module/higher-order/navigate-regions/index.js +7 -16
  1810. package/build-module/higher-order/navigate-regions/index.js.map +1 -1
  1811. package/build-module/higher-order/with-constrained-tabbing/index.js +3 -3
  1812. package/build-module/higher-order/with-constrained-tabbing/index.js.map +1 -1
  1813. package/build-module/higher-order/with-fallback-styles/index.js +3 -12
  1814. package/build-module/higher-order/with-fallback-styles/index.js.map +1 -1
  1815. package/build-module/higher-order/with-filters/index.js +15 -19
  1816. package/build-module/higher-order/with-filters/index.js.map +1 -1
  1817. package/build-module/higher-order/with-focus-outside/index.js +2 -1
  1818. package/build-module/higher-order/with-focus-outside/index.js.map +1 -1
  1819. package/build-module/higher-order/with-focus-outside/index.native.js +2 -3
  1820. package/build-module/higher-order/with-focus-outside/index.native.js.map +1 -1
  1821. package/build-module/higher-order/with-focus-return/index.js +5 -8
  1822. package/build-module/higher-order/with-focus-return/index.js.map +1 -1
  1823. package/build-module/higher-order/with-notices/index.js +14 -15
  1824. package/build-module/higher-order/with-notices/index.js.map +1 -1
  1825. package/build-module/higher-order/with-notices/types.js.map +1 -1
  1826. package/build-module/higher-order/with-spoken-messages/index.js +3 -3
  1827. package/build-module/higher-order/with-spoken-messages/index.js.map +1 -1
  1828. package/build-module/icon/index.js +7 -11
  1829. package/build-module/icon/index.js.map +1 -1
  1830. package/build-module/index.js +6 -3
  1831. package/build-module/index.js.map +1 -1
  1832. package/build-module/index.native.js +8 -5
  1833. package/build-module/index.native.js.map +1 -1
  1834. package/build-module/input-control/backdrop.js +0 -4
  1835. package/build-module/input-control/backdrop.js.map +1 -1
  1836. package/build-module/input-control/index.js +6 -9
  1837. package/build-module/input-control/index.js.map +1 -1
  1838. package/build-module/input-control/input-base.js +7 -12
  1839. package/build-module/input-control/input-base.js.map +1 -1
  1840. package/build-module/input-control/input-field.js +11 -32
  1841. package/build-module/input-control/input-field.js.map +1 -1
  1842. package/build-module/input-control/input-prefix-wrapper.js +1 -4
  1843. package/build-module/input-control/input-prefix-wrapper.js.map +1 -1
  1844. package/build-module/input-control/input-suffix-wrapper.js +1 -4
  1845. package/build-module/input-control/input-suffix-wrapper.js.map +1 -1
  1846. package/build-module/input-control/label.js +0 -3
  1847. package/build-module/input-control/label.js.map +1 -1
  1848. package/build-module/input-control/reducer/actions.js +1 -0
  1849. package/build-module/input-control/reducer/actions.js.map +1 -1
  1850. package/build-module/input-control/reducer/reducer.js +18 -35
  1851. package/build-module/input-control/reducer/reducer.js.map +1 -1
  1852. package/build-module/input-control/reducer/state.js +1 -0
  1853. package/build-module/input-control/reducer/state.js.map +1 -1
  1854. package/build-module/input-control/styles/input-control-styles.js +28 -54
  1855. package/build-module/input-control/styles/input-control-styles.js.map +1 -1
  1856. package/build-module/input-control/types.js.map +1 -1
  1857. package/build-module/input-control/utils.js +7 -10
  1858. package/build-module/input-control/utils.js.map +1 -1
  1859. package/build-module/isolated-event-container/index.js +6 -7
  1860. package/build-module/isolated-event-container/index.js.map +1 -1
  1861. package/build-module/item-group/context.js +1 -0
  1862. package/build-module/item-group/context.js.map +1 -1
  1863. package/build-module/item-group/index.js.map +1 -1
  1864. package/build-module/item-group/item/component.js +4 -5
  1865. package/build-module/item-group/item/component.js.map +1 -1
  1866. package/build-module/item-group/item/hook.js +1 -0
  1867. package/build-module/item-group/item/hook.js.map +1 -1
  1868. package/build-module/item-group/item/index.js.map +1 -1
  1869. package/build-module/item-group/item-group/component.js +4 -5
  1870. package/build-module/item-group/item-group/component.js.map +1 -1
  1871. package/build-module/item-group/item-group/hook.js +2 -1
  1872. package/build-module/item-group/item-group/hook.js.map +1 -1
  1873. package/build-module/item-group/item-group/index.js.map +1 -1
  1874. package/build-module/item-group/styles.js +12 -13
  1875. package/build-module/item-group/styles.js.map +1 -1
  1876. package/build-module/item-group/types.js.map +1 -1
  1877. package/build-module/keyboard-shortcuts/index.js +5 -7
  1878. package/build-module/keyboard-shortcuts/index.js.map +1 -1
  1879. package/build-module/keyboard-shortcuts/index.native.js +0 -1
  1880. package/build-module/keyboard-shortcuts/index.native.js.map +1 -1
  1881. package/build-module/keyboard-shortcuts/types.js.map +1 -1
  1882. package/build-module/menu-group/index.js +2 -4
  1883. package/build-module/menu-group/index.js.map +1 -1
  1884. package/build-module/menu-group/types.js.map +1 -1
  1885. package/build-module/menu-item/index.js +28 -8
  1886. package/build-module/menu-item/index.js.map +1 -1
  1887. package/build-module/menu-item/types.js.map +1 -0
  1888. package/build-module/menu-items-choice/index.js +3 -7
  1889. package/build-module/menu-items-choice/index.js.map +1 -1
  1890. package/build-module/menu-items-choice/types.js.map +1 -1
  1891. package/build-module/mobile/audio-player/audio-url-parser.native.js.map +1 -1
  1892. package/build-module/mobile/audio-player/index.native.js +12 -19
  1893. package/build-module/mobile/audio-player/index.native.js.map +1 -1
  1894. package/build-module/mobile/autocompletion-items.native.js.map +1 -1
  1895. package/build-module/mobile/badge/index.native.js +2 -5
  1896. package/build-module/mobile/badge/index.native.js.map +1 -1
  1897. package/build-module/mobile/bottom-sheet/bottom-sheet-context.native.js +5 -5
  1898. package/build-module/mobile/bottom-sheet/bottom-sheet-context.native.js.map +1 -1
  1899. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/bottom-sheet-navigation-context.native.js +3 -2
  1900. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/bottom-sheet-navigation-context.native.js.map +1 -1
  1901. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +10 -16
  1902. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
  1903. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +6 -13
  1904. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
  1905. package/build-module/mobile/bottom-sheet/button.native.js +3 -5
  1906. package/build-module/mobile/bottom-sheet/button.native.js.map +1 -1
  1907. package/build-module/mobile/bottom-sheet/cell.native.js +18 -45
  1908. package/build-module/mobile/bottom-sheet/cell.native.js.map +1 -1
  1909. package/build-module/mobile/bottom-sheet/chevron-back.native.js +2 -2
  1910. package/build-module/mobile/bottom-sheet/chevron-back.native.js.map +1 -1
  1911. package/build-module/mobile/bottom-sheet/color-cell.native.js +3 -5
  1912. package/build-module/mobile/bottom-sheet/color-cell.native.js.map +1 -1
  1913. package/build-module/mobile/bottom-sheet/cycle-picker-cell.native.js +0 -3
  1914. package/build-module/mobile/bottom-sheet/cycle-picker-cell.native.js.map +1 -1
  1915. package/build-module/mobile/bottom-sheet/footer-message-cell.native.js +2 -5
  1916. package/build-module/mobile/bottom-sheet/footer-message-cell.native.js.map +1 -1
  1917. package/build-module/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js +0 -5
  1918. package/build-module/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js.map +1 -1
  1919. package/build-module/mobile/bottom-sheet/index.native.js +27 -72
  1920. package/build-module/mobile/bottom-sheet/index.native.js.map +1 -1
  1921. package/build-module/mobile/bottom-sheet/keyboard-avoiding-view.native.js +3 -21
  1922. package/build-module/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
  1923. package/build-module/mobile/bottom-sheet/link-cell.native.js +3 -3
  1924. package/build-module/mobile/bottom-sheet/link-cell.native.js.map +1 -1
  1925. package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js +6 -13
  1926. package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
  1927. package/build-module/mobile/bottom-sheet/lock-icon/index.native.js +1 -2
  1928. package/build-module/mobile/bottom-sheet/lock-icon/index.native.js.map +1 -1
  1929. package/build-module/mobile/bottom-sheet/nav-bar/action-button.native.js +3 -4
  1930. package/build-module/mobile/bottom-sheet/nav-bar/action-button.native.js.map +1 -1
  1931. package/build-module/mobile/bottom-sheet/nav-bar/apply-button.native.js +2 -5
  1932. package/build-module/mobile/bottom-sheet/nav-bar/apply-button.native.js.map +1 -1
  1933. package/build-module/mobile/bottom-sheet/nav-bar/back-button.native.js +2 -11
  1934. package/build-module/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
  1935. package/build-module/mobile/bottom-sheet/nav-bar/heading.native.js +2 -5
  1936. package/build-module/mobile/bottom-sheet/nav-bar/heading.native.js.map +1 -1
  1937. package/build-module/mobile/bottom-sheet/nav-bar/index.native.js +1 -4
  1938. package/build-module/mobile/bottom-sheet/nav-bar/index.native.js.map +1 -1
  1939. package/build-module/mobile/bottom-sheet/picker-cell.native.js +0 -4
  1940. package/build-module/mobile/bottom-sheet/picker-cell.native.js.map +1 -1
  1941. package/build-module/mobile/bottom-sheet/radio-cell.native.js +3 -5
  1942. package/build-module/mobile/bottom-sheet/radio-cell.native.js.map +1 -1
  1943. package/build-module/mobile/bottom-sheet/range-cell.native.js +8 -34
  1944. package/build-module/mobile/bottom-sheet/range-cell.native.js.map +1 -1
  1945. package/build-module/mobile/bottom-sheet/range-text-input.native.js +2 -27
  1946. package/build-module/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
  1947. package/build-module/mobile/bottom-sheet/ripple.native.js +6 -9
  1948. package/build-module/mobile/bottom-sheet/ripple.native.js.map +1 -1
  1949. package/build-module/mobile/bottom-sheet/stepper-cell/index.native.js +3 -26
  1950. package/build-module/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
  1951. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.android.js +2 -5
  1952. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.android.js.map +1 -1
  1953. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.ios.js +2 -5
  1954. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.ios.js.map +1 -1
  1955. package/build-module/mobile/bottom-sheet/sub-sheet/index.native.js +3 -6
  1956. package/build-module/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
  1957. package/build-module/mobile/bottom-sheet/switch-cell.native.js +8 -18
  1958. package/build-module/mobile/bottom-sheet/switch-cell.native.js.map +1 -1
  1959. package/build-module/mobile/bottom-sheet-select-control/index.native.js +7 -13
  1960. package/build-module/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
  1961. package/build-module/mobile/bottom-sheet-text-control/index.native.js +2 -8
  1962. package/build-module/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
  1963. package/build-module/mobile/clipboard/index.native.js +0 -4
  1964. package/build-module/mobile/clipboard/index.native.js.map +1 -1
  1965. package/build-module/mobile/color-settings/gradient-picker-screen.native.js +2 -5
  1966. package/build-module/mobile/color-settings/gradient-picker-screen.native.js.map +1 -1
  1967. package/build-module/mobile/color-settings/index.native.js +4 -6
  1968. package/build-module/mobile/color-settings/index.native.js.map +1 -1
  1969. package/build-module/mobile/color-settings/palette.screen.native.js +2 -14
  1970. package/build-module/mobile/color-settings/palette.screen.native.js.map +1 -1
  1971. package/build-module/mobile/color-settings/picker-screen.native.js +4 -6
  1972. package/build-module/mobile/color-settings/picker-screen.native.js.map +1 -1
  1973. package/build-module/mobile/color-settings/utils.native.js +0 -3
  1974. package/build-module/mobile/color-settings/utils.native.js.map +1 -1
  1975. package/build-module/mobile/cycle-select-control/index.native.js +0 -4
  1976. package/build-module/mobile/cycle-select-control/index.native.js.map +1 -1
  1977. package/build-module/mobile/dashicons/index.native.js +0 -3
  1978. package/build-module/mobile/dashicons/index.native.js.map +1 -1
  1979. package/build-module/mobile/focal-point-settings-panel/index.native.js +4 -11
  1980. package/build-module/mobile/focal-point-settings-panel/index.native.js.map +1 -1
  1981. package/build-module/mobile/global-styles-context/index.native.js +10 -7
  1982. package/build-module/mobile/global-styles-context/index.native.js.map +1 -1
  1983. package/build-module/mobile/global-styles-context/utils.native.js +27 -53
  1984. package/build-module/mobile/global-styles-context/utils.native.js.map +1 -1
  1985. package/build-module/mobile/gradient/index.native.js +6 -22
  1986. package/build-module/mobile/gradient/index.native.js.map +1 -1
  1987. package/build-module/mobile/gridicons/index.native.js +0 -3
  1988. package/build-module/mobile/gridicons/index.native.js.map +1 -1
  1989. package/build-module/mobile/html-text-input/index.native.js +8 -18
  1990. package/build-module/mobile/html-text-input/index.native.js.map +1 -1
  1991. package/build-module/mobile/image/icon-customize.native.js +0 -1
  1992. package/build-module/mobile/image/icon-customize.native.js.map +1 -1
  1993. package/build-module/mobile/image/icon-retry.native.js +0 -1
  1994. package/build-module/mobile/image/icon-retry.native.js.map +1 -1
  1995. package/build-module/mobile/image/image-editing-button.native.js +2 -5
  1996. package/build-module/mobile/image/image-editing-button.native.js.map +1 -1
  1997. package/build-module/mobile/image/index.native.js +8 -20
  1998. package/build-module/mobile/image/index.native.js.map +1 -1
  1999. package/build-module/mobile/image/utils/index.native.js +0 -8
  2000. package/build-module/mobile/image/utils/index.native.js.map +1 -1
  2001. package/build-module/mobile/inserter-button/index.native.js +6 -10
  2002. package/build-module/mobile/inserter-button/index.native.js.map +1 -1
  2003. package/build-module/mobile/inserter-button/sparkles.js +0 -1
  2004. package/build-module/mobile/inserter-button/sparkles.js.map +1 -1
  2005. package/build-module/mobile/keyboard-avoiding-view/index.android.js.map +1 -1
  2006. package/build-module/mobile/keyboard-avoiding-view/index.ios.js +6 -9
  2007. package/build-module/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
  2008. package/build-module/mobile/keyboard-aware-flat-list/index.android.js +1 -2
  2009. package/build-module/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
  2010. package/build-module/mobile/keyboard-aware-flat-list/index.ios.js +15 -11
  2011. package/build-module/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
  2012. package/build-module/mobile/keyboard-aware-flat-list/use-keyboard-offset.native.js +6 -7
  2013. package/build-module/mobile/keyboard-aware-flat-list/use-keyboard-offset.native.js.map +1 -1
  2014. package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-text-input.native.js +7 -10
  2015. package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-text-input.native.js.map +1 -1
  2016. package/build-module/mobile/keyboard-aware-flat-list/use-text-input-caret-position.native.js +1 -2
  2017. package/build-module/mobile/keyboard-aware-flat-list/use-text-input-caret-position.native.js.map +1 -1
  2018. package/build-module/mobile/keyboard-aware-flat-list/use-text-input-offset.native.js +3 -3
  2019. package/build-module/mobile/keyboard-aware-flat-list/use-text-input-offset.native.js.map +1 -1
  2020. package/build-module/mobile/layout-animation/index.native.js.map +1 -1
  2021. package/build-module/mobile/link-picker/index.native.js +18 -47
  2022. package/build-module/mobile/link-picker/index.native.js.map +1 -1
  2023. package/build-module/mobile/link-picker/link-picker-results.native.js +14 -21
  2024. package/build-module/mobile/link-picker/link-picker-results.native.js.map +1 -1
  2025. package/build-module/mobile/link-picker/link-picker-screen.native.js +4 -9
  2026. package/build-module/mobile/link-picker/link-picker-screen.native.js.map +1 -1
  2027. package/build-module/mobile/link-settings/image-link-destinations-screen.native.js +2 -13
  2028. package/build-module/mobile/link-settings/image-link-destinations-screen.native.js.map +1 -1
  2029. package/build-module/mobile/link-settings/index.native.js +17 -36
  2030. package/build-module/mobile/link-settings/index.native.js.map +1 -1
  2031. package/build-module/mobile/link-settings/link-rel.native.js +0 -1
  2032. package/build-module/mobile/link-settings/link-rel.native.js.map +1 -1
  2033. package/build-module/mobile/link-settings/link-settings-navigation.native.js +4 -7
  2034. package/build-module/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
  2035. package/build-module/mobile/link-settings/link-settings-screen.native.js +6 -9
  2036. package/build-module/mobile/link-settings/link-settings-screen.native.js.map +1 -1
  2037. package/build-module/mobile/media-edit/index.native.js +2 -14
  2038. package/build-module/mobile/media-edit/index.native.js.map +1 -1
  2039. package/build-module/mobile/picker/index.android.js +2 -11
  2040. package/build-module/mobile/picker/index.android.js.map +1 -1
  2041. package/build-module/mobile/picker/index.ios.js +2 -9
  2042. package/build-module/mobile/picker/index.ios.js.map +1 -1
  2043. package/build-module/mobile/segmented-control/index.native.js +7 -14
  2044. package/build-module/mobile/segmented-control/index.native.js.map +1 -1
  2045. package/build-module/mobile/utils/alignments.native.js +1 -11
  2046. package/build-module/mobile/utils/alignments.native.js.map +1 -1
  2047. package/build-module/mobile/utils/index.native.js.map +1 -1
  2048. package/build-module/mobile/utils/use-is-floating-keyboard.native.js +1 -2
  2049. package/build-module/mobile/utils/use-is-floating-keyboard.native.js.map +1 -1
  2050. package/build-module/mobile/utils/use-unit-converter-to-mobile.native.js +6 -17
  2051. package/build-module/mobile/utils/use-unit-converter-to-mobile.native.js.map +1 -1
  2052. package/build-module/modal/aria-helper.js +4 -7
  2053. package/build-module/modal/aria-helper.js.map +1 -1
  2054. package/build-module/modal/index.js +41 -37
  2055. package/build-module/modal/index.js.map +1 -1
  2056. package/build-module/modal/types.js.map +1 -1
  2057. package/build-module/navigable-container/container.js +14 -39
  2058. package/build-module/navigable-container/container.js.map +1 -1
  2059. package/build-module/navigable-container/index.js.map +1 -1
  2060. package/build-module/navigable-container/menu.js +2 -8
  2061. package/build-module/navigable-container/menu.js.map +1 -1
  2062. package/build-module/navigable-container/tabbable.js +5 -9
  2063. package/build-module/navigable-container/tabbable.js.map +1 -1
  2064. package/build-module/navigable-container/types.js.map +1 -1
  2065. package/build-module/navigation/back-button/index.js +1 -9
  2066. package/build-module/navigation/back-button/index.js.map +1 -1
  2067. package/build-module/navigation/constants.js.map +1 -1
  2068. package/build-module/navigation/context.js +1 -5
  2069. package/build-module/navigation/context.js.map +1 -1
  2070. package/build-module/navigation/group/context.js +1 -0
  2071. package/build-module/navigation/group/context.js.map +1 -1
  2072. package/build-module/navigation/group/index.js +4 -5
  2073. package/build-module/navigation/group/index.js.map +1 -1
  2074. package/build-module/navigation/index.js +7 -12
  2075. package/build-module/navigation/index.js.map +1 -1
  2076. package/build-module/navigation/item/base-content.js +0 -1
  2077. package/build-module/navigation/item/base-content.js.map +1 -1
  2078. package/build-module/navigation/item/base.js +2 -5
  2079. package/build-module/navigation/item/base.js.map +1 -1
  2080. package/build-module/navigation/item/index.js +11 -14
  2081. package/build-module/navigation/item/index.js.map +1 -1
  2082. package/build-module/navigation/item/use-navigation-tree-item.js +5 -3
  2083. package/build-module/navigation/item/use-navigation-tree-item.js.map +1 -1
  2084. package/build-module/navigation/menu/context.js +1 -0
  2085. package/build-module/navigation/menu/context.js.map +1 -1
  2086. package/build-module/navigation/menu/index.js +4 -5
  2087. package/build-module/navigation/menu/index.js.map +1 -1
  2088. package/build-module/navigation/menu/menu-title-search.js +8 -15
  2089. package/build-module/navigation/menu/menu-title-search.js.map +1 -1
  2090. package/build-module/navigation/menu/menu-title.js +4 -8
  2091. package/build-module/navigation/menu/menu-title.js.map +1 -1
  2092. package/build-module/navigation/menu/search-no-results-found.js +1 -4
  2093. package/build-module/navigation/menu/search-no-results-found.js.map +1 -1
  2094. package/build-module/navigation/menu/use-navigation-tree-menu.js +5 -3
  2095. package/build-module/navigation/menu/use-navigation-tree-menu.js.map +1 -1
  2096. package/build-module/navigation/styles/navigation-styles.js +13 -15
  2097. package/build-module/navigation/styles/navigation-styles.js.map +1 -1
  2098. package/build-module/navigation/types.js.map +1 -1
  2099. package/build-module/navigation/use-create-navigation-tree.js +4 -15
  2100. package/build-module/navigation/use-create-navigation-tree.js.map +1 -1
  2101. package/build-module/navigation/use-navigation-tree-nodes.js +2 -5
  2102. package/build-module/navigation/use-navigation-tree-nodes.js.map +1 -1
  2103. package/build-module/navigation/utils.js +2 -1
  2104. package/build-module/navigation/utils.js.map +1 -1
  2105. package/build-module/navigator/context.js +1 -0
  2106. package/build-module/navigator/context.js.map +1 -1
  2107. package/build-module/navigator/index.js.map +1 -1
  2108. package/build-module/navigator/navigator-back-button/component.js +2 -4
  2109. package/build-module/navigator/navigator-back-button/component.js.map +1 -1
  2110. package/build-module/navigator/navigator-back-button/hook.js +1 -2
  2111. package/build-module/navigator/navigator-back-button/hook.js.map +1 -1
  2112. package/build-module/navigator/navigator-back-button/index.js.map +1 -1
  2113. package/build-module/navigator/navigator-button/component.js +2 -4
  2114. package/build-module/navigator/navigator-button/component.js.map +1 -1
  2115. package/build-module/navigator/navigator-button/hook.js +1 -2
  2116. package/build-module/navigator/navigator-button/hook.js.map +1 -1
  2117. package/build-module/navigator/navigator-button/index.js.map +1 -1
  2118. package/build-module/navigator/navigator-provider/component.js +22 -35
  2119. package/build-module/navigator/navigator-provider/component.js.map +1 -1
  2120. package/build-module/navigator/navigator-provider/index.js.map +1 -1
  2121. package/build-module/navigator/navigator-screen/component.js +21 -23
  2122. package/build-module/navigator/navigator-screen/component.js.map +1 -1
  2123. package/build-module/navigator/navigator-screen/index.js.map +1 -1
  2124. package/build-module/navigator/navigator-to-parent-button/component.js +4 -5
  2125. package/build-module/navigator/navigator-to-parent-button/component.js.map +1 -1
  2126. package/build-module/navigator/navigator-to-parent-button/index.js.map +1 -1
  2127. package/build-module/navigator/types.js.map +1 -1
  2128. package/build-module/navigator/use-navigator.js +1 -3
  2129. package/build-module/navigator/use-navigator.js.map +1 -1
  2130. package/build-module/navigator/utils/router.js +1 -7
  2131. package/build-module/navigator/utils/router.js.map +1 -1
  2132. package/build-module/notice/index.js +4 -17
  2133. package/build-module/notice/index.js.map +1 -1
  2134. package/build-module/notice/index.native.js +2 -5
  2135. package/build-module/notice/index.native.js.map +1 -1
  2136. package/build-module/notice/list.js +4 -8
  2137. package/build-module/notice/list.js.map +1 -1
  2138. package/build-module/notice/list.native.js +4 -8
  2139. package/build-module/notice/list.native.js.map +1 -1
  2140. package/build-module/notice/types.js.map +1 -1
  2141. package/build-module/number-control/index.js +23 -41
  2142. package/build-module/number-control/index.js.map +1 -1
  2143. package/build-module/number-control/styles/number-control-styles.js +4 -11
  2144. package/build-module/number-control/styles/number-control-styles.js.map +1 -1
  2145. package/build-module/number-control/types.js.map +1 -1
  2146. package/build-module/palette-edit/index.js +28 -35
  2147. package/build-module/palette-edit/index.js.map +1 -1
  2148. package/build-module/palette-edit/styles.js +10 -12
  2149. package/build-module/palette-edit/styles.js.map +1 -1
  2150. package/build-module/palette-edit/types.js.map +1 -1
  2151. package/build-module/panel/actions.native.js +2 -5
  2152. package/build-module/panel/actions.native.js.map +1 -1
  2153. package/build-module/panel/body.js +9 -11
  2154. package/build-module/panel/body.js.map +1 -1
  2155. package/build-module/panel/body.native.js +1 -2
  2156. package/build-module/panel/body.native.js.map +1 -1
  2157. package/build-module/panel/bottom-separator-cover.native.js +2 -5
  2158. package/build-module/panel/bottom-separator-cover.native.js.map +1 -1
  2159. package/build-module/panel/header.js +0 -2
  2160. package/build-module/panel/header.js.map +1 -1
  2161. package/build-module/panel/index.js +3 -6
  2162. package/build-module/panel/index.js.map +1 -1
  2163. package/build-module/panel/row.js +2 -5
  2164. package/build-module/panel/row.js.map +1 -1
  2165. package/build-module/panel/types.js.map +1 -1
  2166. package/build-module/placeholder/index.js +8 -9
  2167. package/build-module/placeholder/index.js.map +1 -1
  2168. package/build-module/placeholder/types.js.map +1 -1
  2169. package/build-module/popover/index.js +47 -56
  2170. package/build-module/popover/index.js.map +1 -1
  2171. package/build-module/popover/limit-shift.js +4 -13
  2172. package/build-module/popover/limit-shift.js.map +1 -1
  2173. package/build-module/popover/overlay-middlewares.js +5 -6
  2174. package/build-module/popover/overlay-middlewares.js.map +1 -1
  2175. package/build-module/popover/types.js.map +1 -1
  2176. package/build-module/popover/utils.js +8 -23
  2177. package/build-module/popover/utils.js.map +1 -1
  2178. package/build-module/private-apis.js +4 -2
  2179. package/build-module/private-apis.js.map +1 -1
  2180. package/build-module/progress-bar/index.js +1 -4
  2181. package/build-module/progress-bar/index.js.map +1 -1
  2182. package/build-module/progress-bar/styles.js +9 -9
  2183. package/build-module/progress-bar/styles.js.map +1 -1
  2184. package/build-module/progress-bar/types.js.map +1 -1
  2185. package/build-module/query-controls/author-select.js +0 -1
  2186. package/build-module/query-controls/author-select.js.map +1 -1
  2187. package/build-module/query-controls/category-select.js +1 -2
  2188. package/build-module/query-controls/category-select.js.map +1 -1
  2189. package/build-module/query-controls/index.js +2 -9
  2190. package/build-module/query-controls/index.js.map +1 -1
  2191. package/build-module/query-controls/index.native.js +1 -4
  2192. package/build-module/query-controls/index.native.js.map +1 -1
  2193. package/build-module/query-controls/terms.js +6 -10
  2194. package/build-module/query-controls/terms.js.map +1 -1
  2195. package/build-module/query-controls/types.js.map +1 -1
  2196. package/build-module/radio-control/index.js +2 -7
  2197. package/build-module/radio-control/index.js.map +1 -1
  2198. package/build-module/radio-control/index.native.js +0 -3
  2199. package/build-module/radio-control/index.native.js.map +1 -1
  2200. package/build-module/radio-control/types.js.map +1 -1
  2201. package/build-module/radio-group/index.js +5 -6
  2202. package/build-module/radio-group/index.js.map +1 -1
  2203. package/build-module/radio-group/radio/index.js +3 -5
  2204. package/build-module/radio-group/radio/index.js.map +1 -1
  2205. package/build-module/radio-group/radio-context/index.js.map +1 -1
  2206. package/build-module/range-control/index.js +9 -26
  2207. package/build-module/range-control/index.js.map +1 -1
  2208. package/build-module/range-control/index.native.js +0 -3
  2209. package/build-module/range-control/index.native.js.map +1 -1
  2210. package/build-module/range-control/input-range.js +3 -5
  2211. package/build-module/range-control/input-range.js.map +1 -1
  2212. package/build-module/range-control/mark.js +3 -3
  2213. package/build-module/range-control/mark.js.map +1 -1
  2214. package/build-module/range-control/rail.js +5 -11
  2215. package/build-module/range-control/rail.js.map +1 -1
  2216. package/build-module/range-control/styles/range-control-styles.js +30 -65
  2217. package/build-module/range-control/styles/range-control-styles.js.map +1 -1
  2218. package/build-module/range-control/tooltip.js +6 -6
  2219. package/build-module/range-control/tooltip.js.map +1 -1
  2220. package/build-module/range-control/types.js.map +1 -1
  2221. package/build-module/range-control/utils.js +5 -6
  2222. package/build-module/range-control/utils.js.map +1 -1
  2223. package/build-module/resizable-box/index.js +5 -7
  2224. package/build-module/resizable-box/index.js.map +1 -1
  2225. package/build-module/resizable-box/index.native.js +0 -5
  2226. package/build-module/resizable-box/index.native.js.map +1 -1
  2227. package/build-module/resizable-box/resize-tooltip/index.js +1 -6
  2228. package/build-module/resizable-box/resize-tooltip/index.js.map +1 -1
  2229. package/build-module/resizable-box/resize-tooltip/label.js +5 -8
  2230. package/build-module/resizable-box/resize-tooltip/label.js.map +1 -1
  2231. package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js +3 -3
  2232. package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js.map +1 -1
  2233. package/build-module/resizable-box/resize-tooltip/utils.js +8 -24
  2234. package/build-module/resizable-box/resize-tooltip/utils.js.map +1 -1
  2235. package/build-module/responsive-wrapper/index.js +4 -7
  2236. package/build-module/responsive-wrapper/index.js.map +1 -1
  2237. package/build-module/responsive-wrapper/types.js.map +1 -1
  2238. package/build-module/sandbox/index.js +32 -39
  2239. package/build-module/sandbox/index.js.map +1 -1
  2240. package/build-module/sandbox/index.native.js +15 -21
  2241. package/build-module/sandbox/index.native.js.map +1 -1
  2242. package/build-module/sandbox/types.js.map +1 -1
  2243. package/build-module/scroll-lock/index.js +4 -10
  2244. package/build-module/scroll-lock/index.js.map +1 -1
  2245. package/build-module/scrollable/component.js +4 -5
  2246. package/build-module/scrollable/component.js.map +1 -1
  2247. package/build-module/scrollable/hook.js +3 -1
  2248. package/build-module/scrollable/hook.js.map +1 -1
  2249. package/build-module/scrollable/index.js.map +1 -1
  2250. package/build-module/scrollable/styles.js +1 -2
  2251. package/build-module/scrollable/styles.js.map +1 -1
  2252. package/build-module/scrollable/types.js.map +1 -1
  2253. package/build-module/search-control/index.js +5 -11
  2254. package/build-module/search-control/index.js.map +1 -1
  2255. package/build-module/search-control/index.native.js +18 -27
  2256. package/build-module/search-control/index.native.js.map +1 -1
  2257. package/build-module/search-control/types.js.map +1 -1
  2258. package/build-module/select-control/chevron-down.js +1 -4
  2259. package/build-module/select-control/chevron-down.js.map +1 -1
  2260. package/build-module/select-control/index.js +9 -16
  2261. package/build-module/select-control/index.js.map +1 -1
  2262. package/build-module/select-control/index.native.js +0 -2
  2263. package/build-module/select-control/index.native.js.map +1 -1
  2264. package/build-module/select-control/styles/select-control-styles.js +3 -15
  2265. package/build-module/select-control/styles/select-control-styles.js.map +1 -1
  2266. package/build-module/select-control/types.js.map +1 -1
  2267. package/build-module/shortcut/index.js +1 -7
  2268. package/build-module/shortcut/index.js.map +1 -1
  2269. package/build-module/shortcut/types.js.map +1 -1
  2270. package/build-module/slot-fill/bubbles-virtually/fill.js +4 -9
  2271. package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
  2272. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js +0 -2
  2273. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
  2274. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js +4 -18
  2275. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  2276. package/build-module/slot-fill/bubbles-virtually/slot.js +5 -7
  2277. package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
  2278. package/build-module/slot-fill/bubbles-virtually/use-slot-fills.js +4 -5
  2279. package/build-module/slot-fill/bubbles-virtually/use-slot-fills.js.map +1 -1
  2280. package/build-module/slot-fill/bubbles-virtually/use-slot.js +6 -6
  2281. package/build-module/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
  2282. package/build-module/slot-fill/context.js +0 -1
  2283. package/build-module/slot-fill/context.js.map +1 -1
  2284. package/build-module/slot-fill/fill.js +7 -7
  2285. package/build-module/slot-fill/fill.js.map +1 -1
  2286. package/build-module/slot-fill/index.js +11 -12
  2287. package/build-module/slot-fill/index.js.map +1 -1
  2288. package/build-module/slot-fill/index.native.js +2 -5
  2289. package/build-module/slot-fill/index.native.js.map +1 -1
  2290. package/build-module/slot-fill/provider.js +6 -20
  2291. package/build-module/slot-fill/provider.js.map +1 -1
  2292. package/build-module/slot-fill/slot.js +6 -18
  2293. package/build-module/slot-fill/slot.js.map +1 -1
  2294. package/build-module/slot-fill/use-slot.js +2 -4
  2295. package/build-module/slot-fill/use-slot.js.map +1 -1
  2296. package/build-module/snackbar/index.js +11 -17
  2297. package/build-module/snackbar/index.js.map +1 -1
  2298. package/build-module/snackbar/list.js +17 -10
  2299. package/build-module/snackbar/list.js.map +1 -1
  2300. package/build-module/snackbar/types.js.map +1 -1
  2301. package/build-module/spacer/component.js +4 -5
  2302. package/build-module/spacer/component.js.map +1 -1
  2303. package/build-module/spacer/hook.js +5 -5
  2304. package/build-module/spacer/hook.js.map +1 -1
  2305. package/build-module/spacer/index.js.map +1 -1
  2306. package/build-module/spacer/types.js.map +1 -1
  2307. package/build-module/spinner/index.js +0 -4
  2308. package/build-module/spinner/index.js.map +1 -1
  2309. package/build-module/spinner/index.native.js +1 -2
  2310. package/build-module/spinner/index.native.js.map +1 -1
  2311. package/build-module/spinner/styles.js +6 -7
  2312. package/build-module/spinner/styles.js.map +1 -1
  2313. package/build-module/style-provider/index.js +13 -9
  2314. package/build-module/style-provider/index.js.map +1 -1
  2315. package/build-module/style-provider/index.native.js.map +1 -1
  2316. package/build-module/style-provider/types.js.map +1 -1
  2317. package/build-module/surface/component.js +3 -5
  2318. package/build-module/surface/component.js.map +1 -1
  2319. package/build-module/surface/hook.js +3 -2
  2320. package/build-module/surface/hook.js.map +1 -1
  2321. package/build-module/surface/index.js.map +1 -1
  2322. package/build-module/surface/styles.js +1 -10
  2323. package/build-module/surface/styles.js.map +1 -1
  2324. package/build-module/surface/types.js.map +1 -1
  2325. package/build-module/tab-panel/index.js +12 -24
  2326. package/build-module/tab-panel/index.js.map +1 -1
  2327. package/build-module/tab-panel/types.js.map +1 -1
  2328. package/build-module/text/component.js +2 -4
  2329. package/build-module/text/component.js.map +1 -1
  2330. package/build-module/text/get-line-height.js +1 -5
  2331. package/build-module/text/get-line-height.js.map +1 -1
  2332. package/build-module/text/hook.js +12 -29
  2333. package/build-module/text/hook.js.map +1 -1
  2334. package/build-module/text/index.js.map +1 -1
  2335. package/build-module/text/index.native.js +1 -1
  2336. package/build-module/text/index.native.js.map +1 -1
  2337. package/build-module/text/styles/emotion-css.native.js.map +1 -1
  2338. package/build-module/text/styles/font-family.native.js.map +1 -1
  2339. package/build-module/text/styles/text-mixins.native.js +2 -14
  2340. package/build-module/text/styles/text-mixins.native.js.map +1 -1
  2341. package/build-module/text/styles.js +1 -2
  2342. package/build-module/text/styles.js.map +1 -1
  2343. package/build-module/text/types.js.map +1 -1
  2344. package/build-module/text/utils.js +7 -16
  2345. package/build-module/text/utils.js.map +1 -1
  2346. package/build-module/text-control/index.js +2 -7
  2347. package/build-module/text-control/index.js.map +1 -1
  2348. package/build-module/text-control/index.native.js +0 -4
  2349. package/build-module/text-control/index.native.js.map +1 -1
  2350. package/build-module/text-control/types.js.map +1 -1
  2351. package/build-module/text-highlight/index.js +1 -5
  2352. package/build-module/text-highlight/index.js.map +1 -1
  2353. package/build-module/text-highlight/types.js.map +1 -1
  2354. package/build-module/textarea-control/index.js +1 -5
  2355. package/build-module/textarea-control/index.js.map +1 -1
  2356. package/build-module/textarea-control/index.native.js +1 -4
  2357. package/build-module/textarea-control/index.native.js.map +1 -1
  2358. package/build-module/textarea-control/styles/textarea-control-styles.js +0 -1
  2359. package/build-module/textarea-control/styles/textarea-control-styles.js.map +1 -1
  2360. package/build-module/textarea-control/types.js.map +1 -1
  2361. package/build-module/theme/color-algorithms.js +8 -11
  2362. package/build-module/theme/color-algorithms.js.map +1 -1
  2363. package/build-module/theme/index.js +2 -5
  2364. package/build-module/theme/index.js.map +1 -1
  2365. package/build-module/theme/styles.js +2 -1
  2366. package/build-module/theme/styles.js.map +1 -1
  2367. package/build-module/theme/types.js.map +1 -1
  2368. package/build-module/tip/index.js +1 -1
  2369. package/build-module/tip/index.js.map +1 -1
  2370. package/build-module/tip/types.js.map +1 -1
  2371. package/build-module/toggle-control/index.js +4 -8
  2372. package/build-module/toggle-control/index.js.map +1 -1
  2373. package/build-module/toggle-control/index.native.js +0 -2
  2374. package/build-module/toggle-control/index.native.js.map +1 -1
  2375. package/build-module/toggle-control/types.js.map +1 -1
  2376. package/build-module/toggle-group-control/context.js +1 -0
  2377. package/build-module/toggle-group-control/context.js.map +1 -1
  2378. package/build-module/toggle-group-control/index.js.map +1 -1
  2379. package/build-module/toggle-group-control/toggle-group-control/as-button-group.js +7 -7
  2380. package/build-module/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -1
  2381. package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js +11 -9
  2382. package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
  2383. package/build-module/toggle-group-control/toggle-group-control/component.js +5 -6
  2384. package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
  2385. package/build-module/toggle-group-control/toggle-group-control/index.js.map +1 -1
  2386. package/build-module/toggle-group-control/toggle-group-control/styles.js +0 -5
  2387. package/build-module/toggle-group-control/toggle-group-control/styles.js.map +1 -1
  2388. package/build-module/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js +4 -13
  2389. package/build-module/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js.map +1 -1
  2390. package/build-module/toggle-group-control/toggle-group-control-option/component.js +4 -5
  2391. package/build-module/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  2392. package/build-module/toggle-group-control/toggle-group-control-option/index.js.map +1 -1
  2393. package/build-module/toggle-group-control/toggle-group-control-option-base/component.js +15 -19
  2394. package/build-module/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  2395. package/build-module/toggle-group-control/toggle-group-control-option-base/index.js.map +1 -1
  2396. package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js +7 -11
  2397. package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
  2398. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js +4 -5
  2399. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  2400. package/build-module/toggle-group-control/toggle-group-control-option-icon/index.js.map +1 -1
  2401. package/build-module/toggle-group-control/types.js.map +1 -1
  2402. package/build-module/toolbar/index.js.map +1 -1
  2403. package/build-module/toolbar/toolbar/index.js +6 -10
  2404. package/build-module/toolbar/toolbar/index.js.map +1 -1
  2405. package/build-module/toolbar/toolbar/toolbar-container.js +3 -6
  2406. package/build-module/toolbar/toolbar/toolbar-container.js.map +1 -1
  2407. package/build-module/toolbar/toolbar/toolbar-container.native.js +0 -3
  2408. package/build-module/toolbar/toolbar/toolbar-container.native.js.map +1 -1
  2409. package/build-module/toolbar/toolbar/types.js.map +1 -1
  2410. package/build-module/toolbar/toolbar-button/index.js +7 -12
  2411. package/build-module/toolbar/toolbar-button/index.js.map +1 -1
  2412. package/build-module/toolbar/toolbar-button/toolbar-button-container.js +1 -2
  2413. package/build-module/toolbar/toolbar-button/toolbar-button-container.js.map +1 -1
  2414. package/build-module/toolbar/toolbar-button/toolbar-button-container.native.js +0 -1
  2415. package/build-module/toolbar/toolbar-button/toolbar-button-container.native.js.map +1 -1
  2416. package/build-module/toolbar/toolbar-button/types.js.map +1 -1
  2417. package/build-module/toolbar/toolbar-context/index.js.map +1 -1
  2418. package/build-module/toolbar/toolbar-dropdown-menu/index.js +10 -10
  2419. package/build-module/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
  2420. package/build-module/toolbar/toolbar-group/index.js +7 -11
  2421. package/build-module/toolbar/toolbar-group/index.js.map +1 -1
  2422. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js +5 -8
  2423. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
  2424. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.native.js +0 -5
  2425. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.native.js.map +1 -1
  2426. package/build-module/toolbar/toolbar-group/toolbar-group-container.js +1 -2
  2427. package/build-module/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
  2428. package/build-module/toolbar/toolbar-group/toolbar-group-container.native.js +2 -5
  2429. package/build-module/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
  2430. package/build-module/toolbar/toolbar-item/index.js +7 -14
  2431. package/build-module/toolbar/toolbar-item/index.js.map +1 -1
  2432. package/build-module/toolbar/toolbar-item/index.native.js +2 -4
  2433. package/build-module/toolbar/toolbar-item/index.native.js.map +1 -1
  2434. package/build-module/toolbar/toolbar-item/types.js.map +1 -1
  2435. package/build-module/tools-panel/context.js +1 -1
  2436. package/build-module/tools-panel/context.js.map +1 -1
  2437. package/build-module/tools-panel/index.js.map +1 -1
  2438. package/build-module/tools-panel/styles.js +17 -17
  2439. package/build-module/tools-panel/styles.js.map +1 -1
  2440. package/build-module/tools-panel/tools-panel/component.js +3 -5
  2441. package/build-module/tools-panel/tools-panel/component.js.map +1 -1
  2442. package/build-module/tools-panel/tools-panel/hook.js +51 -44
  2443. package/build-module/tools-panel/tools-panel/hook.js.map +1 -1
  2444. package/build-module/tools-panel/tools-panel/index.js.map +1 -1
  2445. package/build-module/tools-panel/tools-panel-header/component.js +18 -21
  2446. package/build-module/tools-panel/tools-panel-header/component.js.map +1 -1
  2447. package/build-module/tools-panel/tools-panel-header/hook.js +3 -2
  2448. package/build-module/tools-panel/tools-panel-header/hook.js.map +1 -1
  2449. package/build-module/tools-panel/tools-panel-header/index.js.map +1 -1
  2450. package/build-module/tools-panel/tools-panel-item/component.js +4 -7
  2451. package/build-module/tools-panel/tools-panel-item/component.js.map +1 -1
  2452. package/build-module/tools-panel/tools-panel-item/hook.js +18 -19
  2453. package/build-module/tools-panel/tools-panel-item/hook.js.map +1 -1
  2454. package/build-module/tools-panel/tools-panel-item/index.js.map +1 -1
  2455. package/build-module/tools-panel/types.js.map +1 -1
  2456. package/build-module/tooltip/index.js +30 -46
  2457. package/build-module/tooltip/index.js.map +1 -1
  2458. package/build-module/tooltip/index.native.js +30 -37
  2459. package/build-module/tooltip/index.native.js.map +1 -1
  2460. package/build-module/tree-grid/cell.js +4 -6
  2461. package/build-module/tree-grid/cell.js.map +1 -1
  2462. package/build-module/tree-grid/index.js +52 -67
  2463. package/build-module/tree-grid/index.js.map +1 -1
  2464. package/build-module/tree-grid/item.js +2 -5
  2465. package/build-module/tree-grid/item.js.map +1 -1
  2466. package/build-module/tree-grid/roving-tab-index-context.js.map +1 -1
  2467. package/build-module/tree-grid/roving-tab-index-item.js +7 -11
  2468. package/build-module/tree-grid/roving-tab-index-item.js.map +1 -1
  2469. package/build-module/tree-grid/roving-tab-index.js +5 -5
  2470. package/build-module/tree-grid/roving-tab-index.js.map +1 -1
  2471. package/build-module/tree-grid/row.js +4 -4
  2472. package/build-module/tree-grid/row.js.map +1 -1
  2473. package/build-module/tree-grid/types.js.map +1 -1
  2474. package/build-module/tree-select/index.js +2 -4
  2475. package/build-module/tree-select/index.js.map +1 -1
  2476. package/build-module/tree-select/types.js.map +1 -1
  2477. package/build-module/truncate/component.js +2 -4
  2478. package/build-module/truncate/component.js.map +1 -1
  2479. package/build-module/truncate/hook.js +5 -3
  2480. package/build-module/truncate/hook.js.map +1 -1
  2481. package/build-module/truncate/index.js.map +1 -1
  2482. package/build-module/truncate/styles.js +0 -1
  2483. package/build-module/truncate/styles.js.map +1 -1
  2484. package/build-module/truncate/types.js.map +1 -1
  2485. package/build-module/truncate/utils.js +7 -16
  2486. package/build-module/truncate/utils.js.map +1 -1
  2487. package/build-module/ui/context/constants.js +1 -1
  2488. package/build-module/ui/context/constants.js.map +1 -1
  2489. package/build-module/ui/context/context-connect.js +17 -23
  2490. package/build-module/ui/context/context-connect.js.map +1 -1
  2491. package/build-module/ui/context/context-system-provider.js +12 -14
  2492. package/build-module/ui/context/context-system-provider.js.map +1 -1
  2493. package/build-module/ui/context/get-styled-class-name-from-key.js +1 -2
  2494. package/build-module/ui/context/get-styled-class-name-from-key.js.map +1 -1
  2495. package/build-module/ui/context/index.js.map +1 -1
  2496. package/build-module/ui/context/use-context-system.js +10 -14
  2497. package/build-module/ui/context/use-context-system.js.map +1 -1
  2498. package/build-module/ui/context/utils.js +2 -2
  2499. package/build-module/ui/context/utils.js.map +1 -1
  2500. package/build-module/ui/context/wordpress-component.js.map +1 -1
  2501. package/build-module/ui/shortcut/component.js +1 -7
  2502. package/build-module/ui/shortcut/component.js.map +1 -1
  2503. package/build-module/ui/shortcut/index.js.map +1 -1
  2504. package/build-module/ui/tooltip/component.js +6 -8
  2505. package/build-module/ui/tooltip/component.js.map +1 -1
  2506. package/build-module/ui/tooltip/content.js +2 -4
  2507. package/build-module/ui/tooltip/content.js.map +1 -1
  2508. package/build-module/ui/tooltip/context.js +1 -1
  2509. package/build-module/ui/tooltip/context.js.map +1 -1
  2510. package/build-module/ui/tooltip/index.js.map +1 -1
  2511. package/build-module/ui/tooltip/styles.js +0 -3
  2512. package/build-module/ui/tooltip/styles.js.map +1 -1
  2513. package/build-module/ui/tooltip/types.js.map +1 -1
  2514. package/build-module/ui/utils/colors.js +14 -18
  2515. package/build-module/ui/utils/colors.js.map +1 -1
  2516. package/build-module/ui/utils/font-size.js +0 -3
  2517. package/build-module/ui/utils/font-size.js.map +1 -1
  2518. package/build-module/ui/utils/get-high-dpi.js +2 -1
  2519. package/build-module/ui/utils/get-high-dpi.js.map +1 -1
  2520. package/build-module/ui/utils/get-valid-children.js +1 -1
  2521. package/build-module/ui/utils/get-valid-children.js.map +1 -1
  2522. package/build-module/ui/utils/index.js.map +1 -1
  2523. package/build-module/ui/utils/space.js +6 -6
  2524. package/build-module/ui/utils/space.js.map +1 -1
  2525. package/build-module/ui/utils/types.js.map +1 -1
  2526. package/build-module/ui/utils/use-responsive-value.js +4 -13
  2527. package/build-module/ui/utils/use-responsive-value.js.map +1 -1
  2528. package/build-module/unit-control/index.js +15 -25
  2529. package/build-module/unit-control/index.js.map +1 -1
  2530. package/build-module/unit-control/index.native.js +8 -17
  2531. package/build-module/unit-control/index.native.js.map +1 -1
  2532. package/build-module/unit-control/styles/unit-control-styles.js +11 -14
  2533. package/build-module/unit-control/styles/unit-control-styles.js.map +1 -1
  2534. package/build-module/unit-control/types.js.map +1 -1
  2535. package/build-module/unit-control/unit-select-control.js +1 -6
  2536. package/build-module/unit-control/unit-select-control.js.map +1 -1
  2537. package/build-module/unit-control/utils.js +16 -23
  2538. package/build-module/unit-control/utils.js.map +1 -1
  2539. package/build-module/utils/base-label.js +3 -3
  2540. package/build-module/utils/base-label.js.map +1 -1
  2541. package/build-module/utils/box-sizing.js +0 -1
  2542. package/build-module/utils/box-sizing.js.map +1 -1
  2543. package/build-module/utils/breakpoint-values.js.map +1 -1
  2544. package/build-module/utils/breakpoint.js +1 -1
  2545. package/build-module/utils/breakpoint.js.map +1 -1
  2546. package/build-module/utils/browsers.js +2 -3
  2547. package/build-module/utils/browsers.js.map +1 -1
  2548. package/build-module/utils/colors-values.js +11 -10
  2549. package/build-module/utils/colors-values.js.map +1 -1
  2550. package/build-module/utils/colors.js +1 -1
  2551. package/build-module/utils/colors.js.map +1 -1
  2552. package/build-module/utils/config-values.js +5 -4
  2553. package/build-module/utils/config-values.js.map +1 -1
  2554. package/build-module/utils/events.js +3 -6
  2555. package/build-module/utils/events.js.map +1 -1
  2556. package/build-module/utils/font-values.js.map +1 -1
  2557. package/build-module/utils/font.js +1 -2
  2558. package/build-module/utils/font.js.map +1 -1
  2559. package/build-module/utils/hooks/emotion.d.js.map +1 -1
  2560. package/build-module/utils/hooks/index.js.map +1 -1
  2561. package/build-module/utils/hooks/use-controlled-state.js +7 -9
  2562. package/build-module/utils/hooks/use-controlled-state.js.map +1 -1
  2563. package/build-module/utils/hooks/use-controlled-value.js +0 -3
  2564. package/build-module/utils/hooks/use-controlled-value.js.map +1 -1
  2565. package/build-module/utils/hooks/use-cx.js +5 -7
  2566. package/build-module/utils/hooks/use-cx.js.map +1 -1
  2567. package/build-module/utils/hooks/use-latest-ref.js +1 -1
  2568. package/build-module/utils/hooks/use-latest-ref.js.map +1 -1
  2569. package/build-module/utils/hooks/use-update-effect.js +3 -4
  2570. package/build-module/utils/hooks/use-update-effect.js.map +1 -1
  2571. package/build-module/utils/index.js.map +1 -1
  2572. package/build-module/utils/input/base.js +3 -3
  2573. package/build-module/utils/input/base.js.map +1 -1
  2574. package/build-module/utils/input/index.js.map +1 -1
  2575. package/build-module/utils/input/input-control.js +1 -1
  2576. package/build-module/utils/input/input-control.js.map +1 -1
  2577. package/build-module/utils/math.js +8 -11
  2578. package/build-module/utils/math.js.map +1 -1
  2579. package/build-module/utils/reduce-motion.js +0 -4
  2580. package/build-module/utils/reduce-motion.js.map +1 -1
  2581. package/build-module/utils/rtl.js +7 -14
  2582. package/build-module/utils/rtl.js.map +1 -1
  2583. package/build-module/utils/strings.js +57 -29
  2584. package/build-module/utils/strings.js.map +1 -1
  2585. package/build-module/utils/style-mixins.js.map +1 -1
  2586. package/build-module/utils/types.js.map +1 -1
  2587. package/build-module/utils/unit-values.js +2 -4
  2588. package/build-module/utils/unit-values.js.map +1 -1
  2589. package/build-module/utils/use-deprecated-props.js +3 -5
  2590. package/build-module/utils/use-deprecated-props.js.map +1 -1
  2591. package/build-module/utils/values.js +9 -20
  2592. package/build-module/utils/values.js.map +1 -1
  2593. package/build-module/utils/z-index.js.map +1 -1
  2594. package/build-module/v-stack/component.js +4 -5
  2595. package/build-module/v-stack/component.js.map +1 -1
  2596. package/build-module/v-stack/hook.js +1 -0
  2597. package/build-module/v-stack/hook.js.map +1 -1
  2598. package/build-module/v-stack/index.js.map +1 -1
  2599. package/build-module/v-stack/types.js.map +1 -1
  2600. package/build-module/view/component.js +0 -1
  2601. package/build-module/view/component.js.map +1 -1
  2602. package/build-module/view/index.js.map +1 -1
  2603. package/build-module/view/types.js.map +1 -1
  2604. package/build-module/visually-hidden/component.js +4 -5
  2605. package/build-module/visually-hidden/component.js.map +1 -1
  2606. package/build-module/visually-hidden/index.js.map +1 -1
  2607. package/build-module/visually-hidden/styles.js +1 -0
  2608. package/build-module/visually-hidden/styles.js.map +1 -1
  2609. package/build-module/visually-hidden/types.js.map +1 -1
  2610. package/build-module/z-stack/component.js +6 -8
  2611. package/build-module/z-stack/component.js.map +1 -1
  2612. package/build-module/z-stack/index.js.map +1 -1
  2613. package/build-module/z-stack/styles.js +0 -4
  2614. package/build-module/z-stack/styles.js.map +1 -1
  2615. package/build-module/z-stack/types.js.map +1 -1
  2616. package/build-style/style-rtl.css +8 -7
  2617. package/build-style/style.css +8 -7
  2618. package/build-types/alignment-matrix-control/stories/index.story.d.ts +15 -0
  2619. package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -0
  2620. package/build-types/angle-picker-control/stories/index.story.d.ts +15 -0
  2621. package/build-types/angle-picker-control/stories/index.story.d.ts.map +1 -0
  2622. package/build-types/animate/stories/index.story.d.ts +18 -0
  2623. package/build-types/animate/stories/index.story.d.ts.map +1 -0
  2624. package/build-types/base-control/stories/index.d.ts +1 -1
  2625. package/build-types/base-control/stories/index.story.d.ts +21 -0
  2626. package/build-types/base-control/stories/index.story.d.ts.map +1 -0
  2627. package/build-types/border-box-control/border-box-control/component.d.ts +1 -1
  2628. package/build-types/border-box-control/border-box-control/component.d.ts.map +1 -1
  2629. package/build-types/border-box-control/border-box-control/hook.d.ts +2 -2
  2630. package/build-types/border-box-control/border-box-control/hook.d.ts.map +1 -1
  2631. package/build-types/border-box-control/border-box-control-linked-button/component.d.ts.map +1 -1
  2632. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +1 -1
  2633. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts.map +1 -1
  2634. package/build-types/border-box-control/border-box-control-split-controls/component.d.ts +1 -1
  2635. package/build-types/border-box-control/border-box-control-split-controls/component.d.ts.map +1 -1
  2636. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +2 -2
  2637. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts.map +1 -1
  2638. package/build-types/border-box-control/border-box-control-visualizer/component.d.ts.map +1 -1
  2639. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +1 -1
  2640. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts.map +1 -1
  2641. package/build-types/border-box-control/stories/index.d.ts +1 -1
  2642. package/build-types/border-box-control/stories/index.story.d.ts +17 -0
  2643. package/build-types/border-box-control/stories/index.story.d.ts.map +1 -0
  2644. package/build-types/border-control/border-control/component.d.ts.map +1 -1
  2645. package/build-types/border-control/border-control/hook.d.ts +1 -1
  2646. package/build-types/border-control/border-control/hook.d.ts.map +1 -1
  2647. package/build-types/border-control/border-control-dropdown/component.d.ts.map +1 -1
  2648. package/build-types/border-control/border-control-dropdown/hook.d.ts +1 -1
  2649. package/build-types/border-control/border-control-dropdown/hook.d.ts.map +1 -1
  2650. package/build-types/border-control/border-control-style-picker/component.d.ts.map +1 -1
  2651. package/build-types/border-control/border-control-style-picker/hook.d.ts +1 -1
  2652. package/build-types/border-control/border-control-style-picker/hook.d.ts.map +1 -1
  2653. package/build-types/border-control/stories/index.story.d.ts +119 -0
  2654. package/build-types/border-control/stories/index.story.d.ts.map +1 -0
  2655. package/build-types/box-control/styles/box-control-styles.d.ts +1 -1
  2656. package/build-types/button/stories/e2e/index.story.d.ts +15 -0
  2657. package/build-types/button/stories/e2e/index.story.d.ts.map +1 -0
  2658. package/build-types/button/stories/index.story.d.ts +20 -0
  2659. package/build-types/button/stories/index.story.d.ts.map +1 -0
  2660. package/build-types/button-group/stories/index.story.d.ts +12 -0
  2661. package/build-types/button-group/stories/index.story.d.ts.map +1 -0
  2662. package/build-types/card/card/component.d.ts +3 -3
  2663. package/build-types/card/card/component.d.ts.map +1 -1
  2664. package/build-types/card/card/hook.d.ts +1 -1
  2665. package/build-types/card/card/hook.d.ts.map +1 -1
  2666. package/build-types/card/card-body/component.d.ts.map +1 -1
  2667. package/build-types/card/card-body/hook.d.ts +1 -1
  2668. package/build-types/card/card-body/hook.d.ts.map +1 -1
  2669. package/build-types/card/card-divider/component.d.ts +1 -1
  2670. package/build-types/card/card-divider/component.d.ts.map +1 -1
  2671. package/build-types/card/card-divider/hook.d.ts +1 -1
  2672. package/build-types/card/card-divider/hook.d.ts.map +1 -1
  2673. package/build-types/card/card-footer/component.d.ts.map +1 -1
  2674. package/build-types/card/card-footer/hook.d.ts +1 -1
  2675. package/build-types/card/card-footer/hook.d.ts.map +1 -1
  2676. package/build-types/card/card-header/component.d.ts.map +1 -1
  2677. package/build-types/card/card-header/hook.d.ts +1 -1
  2678. package/build-types/card/card-header/hook.d.ts.map +1 -1
  2679. package/build-types/card/card-media/component.d.ts.map +1 -1
  2680. package/build-types/card/card-media/hook.d.ts +1 -1
  2681. package/build-types/card/card-media/hook.d.ts.map +1 -1
  2682. package/build-types/card/stories/index.story.d.ts +36 -0
  2683. package/build-types/card/stories/index.story.d.ts.map +1 -0
  2684. package/build-types/checkbox-control/stories/index.story.d.ts +13 -0
  2685. package/build-types/checkbox-control/stories/index.story.d.ts.map +1 -0
  2686. package/build-types/circular-option-picker/stories/index.story.d.ts +14 -0
  2687. package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -0
  2688. package/build-types/color-indicator/stories/index.story.d.ts +12 -0
  2689. package/build-types/color-indicator/stories/index.story.d.ts.map +1 -0
  2690. package/build-types/color-palette/stories/index.story.d.ts +46 -0
  2691. package/build-types/color-palette/stories/index.story.d.ts.map +1 -0
  2692. package/build-types/color-picker/component.d.ts.map +1 -1
  2693. package/build-types/color-picker/stories/index.story.d.ts +19 -0
  2694. package/build-types/color-picker/stories/index.story.d.ts.map +1 -0
  2695. package/build-types/color-picker/styles.d.ts +3 -2
  2696. package/build-types/color-picker/styles.d.ts.map +1 -1
  2697. package/build-types/combobox-control/stories/index.story.d.ts +47 -0
  2698. package/build-types/combobox-control/stories/index.story.d.ts.map +1 -0
  2699. package/build-types/confirm-dialog/component.d.ts.map +1 -1
  2700. package/build-types/custom-gradient-picker/stories/index.story.d.ts +12 -0
  2701. package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -0
  2702. package/build-types/date-time/date/styles.d.ts +1 -1
  2703. package/build-types/date-time/date-time/styles.d.ts +1 -1
  2704. package/build-types/date-time/stories/date-time.story.d.ts +14 -0
  2705. package/build-types/date-time/stories/date-time.story.d.ts.map +1 -0
  2706. package/build-types/date-time/stories/date.story.d.ts +14 -0
  2707. package/build-types/date-time/stories/date.story.d.ts.map +1 -0
  2708. package/build-types/date-time/stories/time.story.d.ts +12 -0
  2709. package/build-types/date-time/stories/time.story.d.ts.map +1 -0
  2710. package/build-types/date-time/time/styles.d.ts +8 -4
  2711. package/build-types/date-time/time/styles.d.ts.map +1 -1
  2712. package/build-types/dimension-control/stories/index.story.d.ts +4 -0
  2713. package/build-types/dimension-control/stories/index.story.d.ts.map +1 -0
  2714. package/build-types/disabled/stories/index.story.d.ts +13 -0
  2715. package/build-types/disabled/stories/index.story.d.ts.map +1 -0
  2716. package/build-types/divider/component.d.ts.map +1 -1
  2717. package/build-types/divider/stories/index.story.d.ts +11 -0
  2718. package/build-types/divider/stories/index.story.d.ts.map +1 -0
  2719. package/build-types/divider/styles.d.ts +1 -1
  2720. package/build-types/draggable/stories/index.story.d.ts +20 -0
  2721. package/build-types/draggable/stories/index.story.d.ts.map +1 -0
  2722. package/build-types/drop-zone/stories/index.story.d.ts +13 -0
  2723. package/build-types/drop-zone/stories/index.story.d.ts.map +1 -0
  2724. package/build-types/dropdown/dropdown-content-wrapper.d.ts.map +1 -1
  2725. package/build-types/dropdown/stories/index.story.d.ts +23 -0
  2726. package/build-types/dropdown/stories/index.story.d.ts.map +1 -0
  2727. package/build-types/dropdown-menu/stories/index.story.d.ts +14 -0
  2728. package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -0
  2729. package/build-types/dropdown-menu-v2/stories/index.story.d.ts +11 -0
  2730. package/build-types/dropdown-menu-v2/stories/index.story.d.ts.map +1 -0
  2731. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts +13 -0
  2732. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts.map +1 -0
  2733. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts +14 -0
  2734. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts.map +1 -0
  2735. package/build-types/elevation/component.d.ts.map +1 -1
  2736. package/build-types/elevation/hook.d.ts +1 -1
  2737. package/build-types/elevation/hook.d.ts.map +1 -1
  2738. package/build-types/elevation/stories/index.story.d.ts +22 -0
  2739. package/build-types/elevation/stories/index.story.d.ts.map +1 -0
  2740. package/build-types/external-link/stories/index.story.d.ts +12 -0
  2741. package/build-types/external-link/stories/index.story.d.ts.map +1 -0
  2742. package/build-types/external-link/styles/external-link-styles.d.ts +1 -1
  2743. package/build-types/flex/flex/component.d.ts.map +1 -1
  2744. package/build-types/flex/flex/hook.d.ts +1 -1
  2745. package/build-types/flex/flex/hook.d.ts.map +1 -1
  2746. package/build-types/flex/flex-block/component.d.ts.map +1 -1
  2747. package/build-types/flex/flex-block/hook.d.ts +1 -1
  2748. package/build-types/flex/flex-block/hook.d.ts.map +1 -1
  2749. package/build-types/flex/flex-item/component.d.ts.map +1 -1
  2750. package/build-types/flex/flex-item/hook.d.ts +1 -1
  2751. package/build-types/flex/flex-item/hook.d.ts.map +1 -1
  2752. package/build-types/flex/stories/index.story.d.ts +13 -0
  2753. package/build-types/flex/stories/index.story.d.ts.map +1 -0
  2754. package/build-types/focal-point-picker/stories/index.story.d.ts +56 -0
  2755. package/build-types/focal-point-picker/stories/index.story.d.ts.map +1 -0
  2756. package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts +1 -1
  2757. package/build-types/font-size-picker/stories/e2e/index.story.d.ts +16 -0
  2758. package/build-types/font-size-picker/stories/e2e/index.story.d.ts.map +1 -0
  2759. package/build-types/font-size-picker/stories/index.story.d.ts +31 -0
  2760. package/build-types/font-size-picker/stories/index.story.d.ts.map +1 -0
  2761. package/build-types/font-size-picker/styles.d.ts +1 -1
  2762. package/build-types/form-file-upload/stories/index.story.d.ts +24 -0
  2763. package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -0
  2764. package/build-types/form-toggle/stories/index.story.d.ts +12 -0
  2765. package/build-types/form-toggle/stories/index.story.d.ts.map +1 -0
  2766. package/build-types/form-token-field/stories/index.story.d.ts +26 -0
  2767. package/build-types/form-token-field/stories/index.story.d.ts.map +1 -0
  2768. package/build-types/gradient-picker/stories/index.story.d.ts +47 -0
  2769. package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -0
  2770. package/build-types/grid/component.d.ts.map +1 -1
  2771. package/build-types/grid/hook.d.ts +1 -1
  2772. package/build-types/grid/hook.d.ts.map +1 -1
  2773. package/build-types/grid/stories/index.story.d.ts +9 -0
  2774. package/build-types/grid/stories/index.story.d.ts.map +1 -0
  2775. package/build-types/guide/stories/index.story.d.ts +9 -0
  2776. package/build-types/guide/stories/index.story.d.ts.map +1 -0
  2777. package/build-types/h-stack/component.d.ts +1 -1
  2778. package/build-types/h-stack/component.d.ts.map +1 -1
  2779. package/build-types/h-stack/hook.d.ts +1 -1
  2780. package/build-types/h-stack/hook.d.ts.map +1 -1
  2781. package/build-types/h-stack/stories/e2e/index.story.d.ts +9 -0
  2782. package/build-types/h-stack/stories/e2e/index.story.d.ts.map +1 -0
  2783. package/build-types/h-stack/stories/index.story.d.ts +9 -0
  2784. package/build-types/h-stack/stories/index.story.d.ts.map +1 -0
  2785. package/build-types/heading/component.d.ts.map +1 -1
  2786. package/build-types/heading/hook.d.ts +1 -1
  2787. package/build-types/heading/hook.d.ts.map +1 -1
  2788. package/build-types/heading/stories/index.story.d.ts +12 -0
  2789. package/build-types/heading/stories/index.story.d.ts.map +1 -0
  2790. package/build-types/icon/stories/index.story.d.ts +22 -0
  2791. package/build-types/icon/stories/index.story.d.ts.map +1 -0
  2792. package/build-types/input-control/input-base.d.ts +1 -1
  2793. package/build-types/input-control/input-base.d.ts.map +1 -1
  2794. package/build-types/input-control/input-prefix-wrapper.d.ts.map +1 -1
  2795. package/build-types/input-control/input-suffix-wrapper.d.ts.map +1 -1
  2796. package/build-types/input-control/reducer/reducer.d.ts +2 -2
  2797. package/build-types/input-control/reducer/reducer.d.ts.map +1 -1
  2798. package/build-types/input-control/stories/index.story.d.ts +28 -0
  2799. package/build-types/input-control/stories/index.story.d.ts.map +1 -0
  2800. package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
  2801. package/build-types/input-control/utils.d.ts +2 -2
  2802. package/build-types/item-group/item/component.d.ts.map +1 -1
  2803. package/build-types/item-group/item/hook.d.ts +2 -2
  2804. package/build-types/item-group/item/hook.d.ts.map +1 -1
  2805. package/build-types/item-group/item-group/component.d.ts.map +1 -1
  2806. package/build-types/item-group/item-group/hook.d.ts +1 -1
  2807. package/build-types/item-group/item-group/hook.d.ts.map +1 -1
  2808. package/build-types/item-group/stories/index.story.d.ts +15 -0
  2809. package/build-types/item-group/stories/index.story.d.ts.map +1 -0
  2810. package/build-types/keyboard-shortcuts/stories/index.story.d.ts +12 -0
  2811. package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +1 -0
  2812. package/build-types/menu-group/stories/index.d.ts +17 -0
  2813. package/build-types/menu-group/stories/index.d.ts.map +1 -0
  2814. package/build-types/menu-group/stories/index.story.d.ts +17 -0
  2815. package/build-types/menu-group/stories/index.story.d.ts.map +1 -0
  2816. package/build-types/menu-item/index.d.ts +92 -2
  2817. package/build-types/menu-item/index.d.ts.map +1 -1
  2818. package/build-types/menu-item/types.d.ts +62 -0
  2819. package/build-types/menu-item/types.d.ts.map +1 -0
  2820. package/build-types/menu-items-choice/stories/index.story.d.ts +12 -0
  2821. package/build-types/menu-items-choice/stories/index.story.d.ts.map +1 -0
  2822. package/build-types/modal/index.d.ts.map +1 -1
  2823. package/build-types/modal/stories/index.d.ts +1 -0
  2824. package/build-types/modal/stories/index.d.ts.map +1 -1
  2825. package/build-types/modal/stories/index.story.d.ts +10 -0
  2826. package/build-types/modal/stories/index.story.d.ts.map +1 -0
  2827. package/build-types/modal/types.d.ts +7 -0
  2828. package/build-types/modal/types.d.ts.map +1 -1
  2829. package/build-types/navigable-container/stories/navigable-menu.story.d.ts +12 -0
  2830. package/build-types/navigable-container/stories/navigable-menu.story.d.ts.map +1 -0
  2831. package/build-types/navigable-container/stories/tabbable-container.story.d.ts +12 -0
  2832. package/build-types/navigable-container/stories/tabbable-container.story.d.ts.map +1 -0
  2833. package/build-types/navigation/stories/index.story.d.ts +18 -0
  2834. package/build-types/navigation/stories/index.story.d.ts.map +1 -0
  2835. package/build-types/navigator/navigator-back-button/component.d.ts.map +1 -1
  2836. package/build-types/navigator/navigator-back-button/hook.d.ts +1 -1
  2837. package/build-types/navigator/navigator-back-button/hook.d.ts.map +1 -1
  2838. package/build-types/navigator/navigator-button/component.d.ts.map +1 -1
  2839. package/build-types/navigator/navigator-button/hook.d.ts +1 -1
  2840. package/build-types/navigator/navigator-button/hook.d.ts.map +1 -1
  2841. package/build-types/navigator/navigator-provider/component.d.ts.map +1 -1
  2842. package/build-types/navigator/navigator-screen/component.d.ts +2 -2
  2843. package/build-types/navigator/navigator-screen/component.d.ts.map +1 -1
  2844. package/build-types/navigator/navigator-to-parent-button/component.d.ts.map +1 -1
  2845. package/build-types/navigator/stories/index.story.d.ts +11 -0
  2846. package/build-types/navigator/stories/index.story.d.ts.map +1 -0
  2847. package/build-types/notice/stories/index.story.d.ts +17 -0
  2848. package/build-types/notice/stories/index.story.d.ts.map +1 -0
  2849. package/build-types/number-control/index.d.ts +2 -1
  2850. package/build-types/number-control/index.d.ts.map +1 -1
  2851. package/build-types/number-control/stories/index.story.d.ts +26 -0
  2852. package/build-types/number-control/stories/index.story.d.ts.map +1 -0
  2853. package/build-types/number-control/types.d.ts +7 -0
  2854. package/build-types/number-control/types.d.ts.map +1 -1
  2855. package/build-types/palette-edit/stories/index.story.d.ts +13 -0
  2856. package/build-types/palette-edit/stories/index.story.d.ts.map +1 -0
  2857. package/build-types/palette-edit/styles.d.ts +2 -2
  2858. package/build-types/panel/stories/index.story.d.ts +19 -0
  2859. package/build-types/panel/stories/index.story.d.ts.map +1 -0
  2860. package/build-types/placeholder/stories/index.story.d.ts +12 -0
  2861. package/build-types/placeholder/stories/index.story.d.ts.map +1 -0
  2862. package/build-types/popover/index.d.ts +1 -1
  2863. package/build-types/popover/index.d.ts.map +1 -1
  2864. package/build-types/popover/overlay-middlewares.d.ts +17 -3
  2865. package/build-types/popover/overlay-middlewares.d.ts.map +1 -1
  2866. package/build-types/popover/stories/e2e/index.d.ts +1 -1
  2867. package/build-types/popover/stories/e2e/index.story.d.ts +8 -0
  2868. package/build-types/popover/stories/e2e/index.story.d.ts.map +1 -0
  2869. package/build-types/popover/stories/index.d.ts.map +1 -1
  2870. package/build-types/popover/stories/index.story.d.ts +13 -0
  2871. package/build-types/popover/stories/index.story.d.ts.map +1 -0
  2872. package/build-types/popover/test/utils/index.d.ts +7 -0
  2873. package/build-types/popover/test/utils/index.d.ts.map +1 -0
  2874. package/build-types/private-apis.d.ts.map +1 -1
  2875. package/build-types/progress-bar/stories/index.story.d.ts +12 -0
  2876. package/build-types/progress-bar/stories/index.story.d.ts.map +1 -0
  2877. package/build-types/query-controls/stories/index.story.d.ts +13 -0
  2878. package/build-types/query-controls/stories/index.story.d.ts.map +1 -0
  2879. package/build-types/radio-control/stories/index.story.d.ts +12 -0
  2880. package/build-types/radio-control/stories/index.story.d.ts.map +1 -0
  2881. package/build-types/range-control/stories/index.story.d.ts +48 -0
  2882. package/build-types/range-control/stories/index.story.d.ts.map +1 -0
  2883. package/build-types/range-control/styles/range-control-styles.d.ts +2 -1
  2884. package/build-types/range-control/styles/range-control-styles.d.ts.map +1 -1
  2885. package/build-types/range-control/types.d.ts +1 -1
  2886. package/build-types/resizable-box/index.d.ts +1 -1
  2887. package/build-types/resizable-box/resize-tooltip/index.d.ts +3 -2
  2888. package/build-types/resizable-box/resize-tooltip/index.d.ts.map +1 -1
  2889. package/build-types/resizable-box/resize-tooltip/label.d.ts +1 -1
  2890. package/build-types/resizable-box/resize-tooltip/label.d.ts.map +1 -1
  2891. package/build-types/resizable-box/stories/index.story.d.ts +61 -0
  2892. package/build-types/resizable-box/stories/index.story.d.ts.map +1 -0
  2893. package/build-types/responsive-wrapper/stories/index.story.d.ts +22 -0
  2894. package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -0
  2895. package/build-types/sandbox/stories/index.story.d.ts +12 -0
  2896. package/build-types/sandbox/stories/index.story.d.ts.map +1 -0
  2897. package/build-types/scroll-lock/stories/index.story.d.ts +9 -0
  2898. package/build-types/scroll-lock/stories/index.story.d.ts.map +1 -0
  2899. package/build-types/scrollable/component.d.ts.map +1 -1
  2900. package/build-types/scrollable/hook.d.ts +1 -1
  2901. package/build-types/scrollable/hook.d.ts.map +1 -1
  2902. package/build-types/scrollable/stories/index.story.d.ts +9 -0
  2903. package/build-types/scrollable/stories/index.story.d.ts.map +1 -0
  2904. package/build-types/search-control/stories/index.story.d.ts +47 -0
  2905. package/build-types/search-control/stories/index.story.d.ts.map +1 -0
  2906. package/build-types/select-control/index.d.ts +2 -1
  2907. package/build-types/select-control/index.d.ts.map +1 -1
  2908. package/build-types/select-control/stories/index.story.d.ts +19 -0
  2909. package/build-types/select-control/stories/index.story.d.ts.map +1 -0
  2910. package/build-types/slot-fill/provider.d.ts +1 -1
  2911. package/build-types/slot-fill/provider.d.ts.map +1 -1
  2912. package/build-types/snackbar/list.d.ts.map +1 -1
  2913. package/build-types/snackbar/stories/index.story.d.ts +16 -0
  2914. package/build-types/snackbar/stories/index.story.d.ts.map +1 -0
  2915. package/build-types/snackbar/stories/list.story.d.ts +12 -0
  2916. package/build-types/snackbar/stories/list.story.d.ts.map +1 -0
  2917. package/build-types/spacer/component.d.ts.map +1 -1
  2918. package/build-types/spacer/hook.d.ts +1 -1
  2919. package/build-types/spacer/hook.d.ts.map +1 -1
  2920. package/build-types/spacer/stories/index.story.d.ts +12 -0
  2921. package/build-types/spacer/stories/index.story.d.ts.map +1 -0
  2922. package/build-types/spinner/index.d.ts +1 -1
  2923. package/build-types/spinner/stories/index.story.d.ts +13 -0
  2924. package/build-types/spinner/stories/index.story.d.ts.map +1 -0
  2925. package/build-types/style-provider/index.d.ts.map +1 -1
  2926. package/build-types/surface/stories/index.story.d.ts +12 -0
  2927. package/build-types/surface/stories/index.story.d.ts.map +1 -0
  2928. package/build-types/tab-panel/stories/index.story.d.ts +16 -0
  2929. package/build-types/tab-panel/stories/index.story.d.ts.map +1 -0
  2930. package/build-types/text/utils.d.ts +6 -1
  2931. package/build-types/text/utils.d.ts.map +1 -1
  2932. package/build-types/text-control/stories/index.story.d.ts +13 -0
  2933. package/build-types/text-control/stories/index.story.d.ts.map +1 -0
  2934. package/build-types/text-highlight/stories/index.story.d.ts +12 -0
  2935. package/build-types/text-highlight/stories/index.story.d.ts.map +1 -0
  2936. package/build-types/textarea-control/stories/index.story.d.ts +12 -0
  2937. package/build-types/textarea-control/stories/index.story.d.ts.map +1 -0
  2938. package/build-types/theme/index.d.ts +0 -2
  2939. package/build-types/theme/index.d.ts.map +1 -1
  2940. package/build-types/theme/stories/index.story.d.ts +22 -0
  2941. package/build-types/theme/stories/index.story.d.ts.map +1 -0
  2942. package/build-types/tip/stories/index.story.d.ts +12 -0
  2943. package/build-types/tip/stories/index.story.d.ts.map +1 -0
  2944. package/build-types/toggle-control/stories/index.story.d.ts +22 -0
  2945. package/build-types/toggle-control/stories/index.story.d.ts.map +1 -0
  2946. package/build-types/toggle-group-control/stories/index.story.d.ts +27 -0
  2947. package/build-types/toggle-group-control/stories/index.story.d.ts.map +1 -0
  2948. package/build-types/toggle-group-control/toggle-group-control/component.d.ts.map +1 -1
  2949. package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts.map +1 -1
  2950. package/build-types/toolbar/stories/index.story.d.ts +14 -0
  2951. package/build-types/toolbar/stories/index.story.d.ts.map +1 -0
  2952. package/build-types/toolbar/toolbar/index.d.ts.map +1 -1
  2953. package/build-types/toolbar/toolbar-button/index.d.ts +13 -13
  2954. package/build-types/toolbar/toolbar-button/index.d.ts.map +1 -1
  2955. package/build-types/toolbar/toolbar-item/index.d.ts +1 -1
  2956. package/build-types/tools-panel/stories/index.story.d.ts +17 -0
  2957. package/build-types/tools-panel/stories/index.story.d.ts.map +1 -0
  2958. package/build-types/tools-panel/tools-panel/component.d.ts.map +1 -1
  2959. package/build-types/tools-panel/tools-panel/hook.d.ts +1 -1
  2960. package/build-types/tools-panel/tools-panel/hook.d.ts.map +1 -1
  2961. package/build-types/tools-panel/tools-panel-header/component.d.ts.map +1 -1
  2962. package/build-types/tools-panel/tools-panel-header/hook.d.ts +1 -1
  2963. package/build-types/tools-panel/tools-panel-header/hook.d.ts.map +1 -1
  2964. package/build-types/tools-panel/tools-panel-item/component.d.ts.map +1 -1
  2965. package/build-types/tools-panel/tools-panel-item/hook.d.ts +1 -1
  2966. package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
  2967. package/build-types/tree-grid/stories/index.story.d.ts +13 -0
  2968. package/build-types/tree-grid/stories/index.story.d.ts.map +1 -0
  2969. package/build-types/tree-select/stories/index.story.d.ts +12 -0
  2970. package/build-types/tree-select/stories/index.story.d.ts.map +1 -0
  2971. package/build-types/truncate/component.d.ts.map +1 -1
  2972. package/build-types/truncate/hook.d.ts +1 -1
  2973. package/build-types/truncate/hook.d.ts.map +1 -1
  2974. package/build-types/truncate/stories/index.story.d.ts +13 -0
  2975. package/build-types/truncate/stories/index.story.d.ts.map +1 -0
  2976. package/build-types/ui/shortcut/component.d.ts.map +1 -1
  2977. package/build-types/ui/tooltip/component.d.ts +1 -1
  2978. package/build-types/unit-control/index.d.ts +1 -1
  2979. package/build-types/unit-control/index.d.ts.map +1 -1
  2980. package/build-types/unit-control/stories/index.story.d.ts +33 -0
  2981. package/build-types/unit-control/stories/index.story.d.ts.map +1 -0
  2982. package/build-types/unit-control/styles/unit-control-styles.d.ts +2 -1
  2983. package/build-types/unit-control/styles/unit-control-styles.d.ts.map +1 -1
  2984. package/build-types/utils/colors-values.d.ts +4 -2
  2985. package/build-types/utils/colors-values.d.ts.map +1 -1
  2986. package/build-types/utils/hooks/use-cx.d.ts +1 -1
  2987. package/build-types/utils/hooks/use-cx.d.ts.map +1 -1
  2988. package/build-types/v-stack/component.d.ts +1 -1
  2989. package/build-types/v-stack/component.d.ts.map +1 -1
  2990. package/build-types/v-stack/hook.d.ts +1 -1
  2991. package/build-types/v-stack/hook.d.ts.map +1 -1
  2992. package/build-types/v-stack/stories/e2e/index.story.d.ts +9 -0
  2993. package/build-types/v-stack/stories/e2e/index.story.d.ts.map +1 -0
  2994. package/build-types/v-stack/stories/index.d.ts +1 -1
  2995. package/build-types/v-stack/stories/index.story.d.ts +15 -0
  2996. package/build-types/v-stack/stories/index.story.d.ts.map +1 -0
  2997. package/build-types/view/stories/index.story.d.ts +12 -0
  2998. package/build-types/view/stories/index.story.d.ts.map +1 -0
  2999. package/build-types/visually-hidden/component.d.ts.map +1 -1
  3000. package/build-types/visually-hidden/stories/index.story.d.ts +14 -0
  3001. package/build-types/visually-hidden/stories/index.story.d.ts.map +1 -0
  3002. package/build-types/z-stack/stories/index.story.d.ts +6 -0
  3003. package/build-types/z-stack/stories/index.story.d.ts.map +1 -0
  3004. package/package.json +20 -20
  3005. package/src/alignment-matrix-control/stories/{index.tsx → index.story.tsx} +0 -3
  3006. package/src/alignment-matrix-control/styles/alignment-matrix-control-styles.ts +1 -1
  3007. package/src/angle-picker-control/styles/angle-picker-control-styles.tsx +2 -2
  3008. package/src/animate/stories/{index.tsx → index.story.tsx} +9 -18
  3009. package/src/border-box-control/border-box-control/component.tsx +2 -1
  3010. package/src/border-box-control/border-box-control/hook.ts +2 -1
  3011. package/src/border-box-control/border-box-control-linked-button/component.tsx +2 -1
  3012. package/src/border-box-control/border-box-control-linked-button/hook.ts +2 -1
  3013. package/src/border-box-control/border-box-control-split-controls/component.tsx +2 -1
  3014. package/src/border-box-control/border-box-control-split-controls/hook.ts +2 -1
  3015. package/src/border-box-control/border-box-control-visualizer/component.tsx +2 -1
  3016. package/src/border-box-control/border-box-control-visualizer/hook.ts +2 -1
  3017. package/src/border-control/border-control/component.tsx +2 -1
  3018. package/src/border-control/border-control/hook.ts +2 -1
  3019. package/src/border-control/border-control-dropdown/component.tsx +2 -1
  3020. package/src/border-control/border-control-dropdown/hook.ts +2 -1
  3021. package/src/border-control/border-control-style-picker/component.tsx +2 -1
  3022. package/src/border-control/border-control-style-picker/hook.ts +2 -1
  3023. package/src/box-control/stories/{index.js → index.story.js} +4 -4
  3024. package/src/box-control/styles/box-control-visualizer-styles.ts +1 -1
  3025. package/src/button/stories/e2e/{index.tsx → index.story.tsx} +4 -4
  3026. package/src/button/stories/{index.tsx → index.story.tsx} +11 -13
  3027. package/src/button/style.scss +1 -1
  3028. package/src/card/card/README.md +1 -1
  3029. package/src/card/card/component.tsx +5 -8
  3030. package/src/card/card/hook.ts +2 -1
  3031. package/src/card/card-body/component.tsx +2 -1
  3032. package/src/card/card-body/hook.ts +2 -1
  3033. package/src/card/card-divider/component.tsx +4 -2
  3034. package/src/card/card-divider/hook.ts +2 -1
  3035. package/src/card/card-footer/component.tsx +2 -1
  3036. package/src/card/card-footer/hook.ts +2 -1
  3037. package/src/card/card-header/component.tsx +2 -1
  3038. package/src/card/card-header/hook.ts +2 -1
  3039. package/src/card/card-media/component.tsx +2 -1
  3040. package/src/card/card-media/hook.ts +2 -1
  3041. package/src/card/stories/{index.tsx → index.story.tsx} +0 -1
  3042. package/src/circular-option-picker/stories/{index.tsx → index.story.tsx} +1 -11
  3043. package/src/color-picker/component.tsx +2 -1
  3044. package/src/color-picker/hex-input.tsx +1 -1
  3045. package/src/color-picker/input-with-slider.tsx +1 -1
  3046. package/src/color-picker/stories/{index.tsx → index.story.tsx} +2 -5
  3047. package/src/confirm-dialog/component.tsx +2 -5
  3048. package/src/confirm-dialog/stories/{index.js → index.story.js} +2 -2
  3049. package/src/date-time/date/styles.ts +2 -2
  3050. package/src/date-time/date/test/index.tsx +1 -1
  3051. package/src/date-time/time/index.tsx +1 -1
  3052. package/src/divider/component.tsx +2 -5
  3053. package/src/dropdown/dropdown-content-wrapper.tsx +2 -5
  3054. package/src/dropdown/stories/{index.tsx → index.story.tsx} +5 -10
  3055. package/src/dropdown-menu/stories/{index.tsx → index.story.tsx} +2 -2
  3056. package/src/dropdown-menu-v2/stories/{index.tsx → index.story.tsx} +4 -17
  3057. package/src/elevation/component.tsx +2 -1
  3058. package/src/elevation/hook.ts +4 -2
  3059. package/src/flex/flex/component.tsx +2 -1
  3060. package/src/flex/flex/hook.ts +2 -1
  3061. package/src/flex/flex-block/component.tsx +2 -1
  3062. package/src/flex/flex-block/hook.ts +2 -1
  3063. package/src/flex/flex-item/component.tsx +2 -1
  3064. package/src/flex/flex-item/hook.ts +4 -2
  3065. package/src/flex/stories/{index.tsx → index.story.tsx} +0 -1
  3066. package/src/grid/component.tsx +2 -1
  3067. package/src/grid/hook.ts +2 -1
  3068. package/src/h-stack/component.tsx +2 -1
  3069. package/src/h-stack/hook.tsx +2 -5
  3070. package/src/heading/component.tsx +2 -1
  3071. package/src/heading/hook.ts +2 -1
  3072. package/src/icon/stories/{index.tsx → index.story.tsx} +4 -6
  3073. package/src/input-control/input-base.tsx +2 -1
  3074. package/src/input-control/input-prefix-wrapper.tsx +2 -5
  3075. package/src/input-control/input-suffix-wrapper.tsx +2 -5
  3076. package/src/input-control/reducer/reducer.ts +2 -6
  3077. package/src/input-control/stories/{index.tsx → index.story.tsx} +0 -1
  3078. package/src/input-control/styles/input-control-styles.tsx +2 -1
  3079. package/src/item-group/item/component.tsx +2 -1
  3080. package/src/item-group/item/hook.ts +2 -1
  3081. package/src/item-group/item-group/component.tsx +2 -1
  3082. package/src/item-group/item-group/hook.ts +2 -1
  3083. package/src/item-group/stories/{index.tsx → index.story.tsx} +0 -1
  3084. package/src/item-group/styles.ts +2 -2
  3085. package/src/menu-group/stories/index.story.tsx +83 -0
  3086. package/src/menu-item/{index.js → index.tsx} +29 -2
  3087. package/src/menu-item/types.ts +60 -0
  3088. package/src/menu-items-choice/index.tsx +1 -1
  3089. package/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +1 -0
  3090. package/src/mobile/keyboard-aware-flat-list/index.ios.js +1 -1
  3091. package/src/mobile/link-picker/index.native.js +7 -13
  3092. package/src/mobile/link-picker/test/performance/index.native.js +35 -0
  3093. package/src/mobile/link-settings/test/edit.native.js +0 -1
  3094. package/src/modal/README.md +7 -0
  3095. package/src/modal/index.tsx +29 -14
  3096. package/src/modal/stories/{index.tsx → index.story.tsx} +27 -0
  3097. package/src/modal/test/index.tsx +14 -0
  3098. package/src/modal/types.ts +8 -0
  3099. package/src/navigation/stories/{index.tsx → index.story.tsx} +5 -15
  3100. package/src/navigation/styles/navigation-styles.tsx +1 -1
  3101. package/src/navigator/navigator-back-button/component.tsx +2 -1
  3102. package/src/navigator/navigator-back-button/hook.ts +2 -1
  3103. package/src/navigator/navigator-button/component.tsx +2 -1
  3104. package/src/navigator/navigator-button/hook.ts +2 -1
  3105. package/src/navigator/navigator-provider/component.tsx +2 -5
  3106. package/src/navigator/navigator-screen/component.tsx +5 -6
  3107. package/src/navigator/navigator-to-parent-button/component.tsx +2 -1
  3108. package/src/navigator/stories/{index.tsx → index.story.tsx} +0 -1
  3109. package/src/notice/stories/{index.tsx → index.story.tsx} +0 -1
  3110. package/src/number-control/index.tsx +8 -8
  3111. package/src/number-control/styles/number-control-styles.ts +1 -1
  3112. package/src/number-control/test/index.tsx +64 -2
  3113. package/src/number-control/types.ts +7 -0
  3114. package/src/palette-edit/stories/{index.tsx → index.story.tsx} +2 -2
  3115. package/src/palette-edit/styles.js +3 -3
  3116. package/src/panel/stories/{index.tsx → index.story.tsx} +0 -1
  3117. package/src/popover/index.tsx +4 -8
  3118. package/src/popover/overlay-middlewares.tsx +2 -1
  3119. package/src/popover/stories/{index.tsx → index.story.tsx} +2 -46
  3120. package/src/popover/test/index.tsx +14 -0
  3121. package/src/popover/test/utils/index.tsx +87 -0
  3122. package/src/private-apis.ts +2 -0
  3123. package/src/progress-bar/styles.ts +3 -3
  3124. package/src/query-controls/stories/{index.tsx → index.story.tsx} +4 -6
  3125. package/src/radio-group/stories/{index.js → index.story.js} +2 -3
  3126. package/src/range-control/index.tsx +1 -1
  3127. package/src/range-control/styles/range-control-styles.ts +2 -2
  3128. package/src/range-control/types.ts +1 -1
  3129. package/src/resizable-box/resize-tooltip/index.tsx +2 -1
  3130. package/src/resizable-box/resize-tooltip/label.tsx +2 -1
  3131. package/src/scrollable/component.tsx +2 -1
  3132. package/src/scrollable/hook.ts +2 -1
  3133. package/src/select-control/index.tsx +2 -1
  3134. package/src/select-control/stories/{index.tsx → index.story.tsx} +4 -8
  3135. package/src/slot-fill/stories/{index.js → index.story.js} +2 -3
  3136. package/src/snackbar/list.tsx +10 -2
  3137. package/src/snackbar/style.scss +8 -9
  3138. package/src/spacer/component.tsx +2 -1
  3139. package/src/spacer/hook.ts +2 -1
  3140. package/src/spinner/styles.ts +1 -1
  3141. package/src/style-provider/index.tsx +19 -12
  3142. package/src/text/stories/{index.js → index.story.js} +2 -2
  3143. package/src/theme/README.md +0 -17
  3144. package/src/theme/index.tsx +0 -2
  3145. package/src/toggle-group-control/stories/{index.tsx → index.story.tsx} +0 -1
  3146. package/src/toggle-group-control/toggle-group-control/component.tsx +2 -5
  3147. package/src/toggle-group-control/toggle-group-control-option-base/component.tsx +2 -5
  3148. package/src/toggle-group-control/toggle-group-control-option-base/styles.ts +1 -1
  3149. package/src/toolbar/stories/{index.tsx → index.story.tsx} +0 -6
  3150. package/src/toolbar/toolbar/index.tsx +2 -4
  3151. package/src/toolbar/toolbar-button/index.tsx +2 -3
  3152. package/src/tools-panel/stories/{index.tsx → index.story.tsx} +0 -3
  3153. package/src/tools-panel/styles.ts +1 -1
  3154. package/src/tools-panel/test/index.tsx +2 -2
  3155. package/src/tools-panel/tools-panel/component.tsx +2 -1
  3156. package/src/tools-panel/tools-panel/hook.ts +2 -1
  3157. package/src/tools-panel/tools-panel-header/component.tsx +3 -2
  3158. package/src/tools-panel/tools-panel-header/hook.ts +2 -1
  3159. package/src/tools-panel/tools-panel-item/component.tsx +2 -1
  3160. package/src/tools-panel/tools-panel-item/hook.ts +2 -1
  3161. package/src/tree-grid/stories/{index.tsx → index.story.tsx} +0 -1
  3162. package/src/truncate/component.tsx +2 -1
  3163. package/src/truncate/hook.ts +2 -1
  3164. package/src/ui/README.md +3 -20
  3165. package/src/ui/shortcut/component.tsx +2 -5
  3166. package/src/ui/tooltip/test/index.js +4 -4
  3167. package/src/unit-control/styles/unit-control-styles.ts +1 -1
  3168. package/src/utils/colors-values.js +6 -2
  3169. package/src/utils/config-values.js +2 -2
  3170. package/src/utils/hooks/use-cx.ts +3 -1
  3171. package/src/utils/input/base.js +2 -2
  3172. package/src/v-stack/component.tsx +2 -1
  3173. package/src/v-stack/hook.ts +2 -1
  3174. package/src/visually-hidden/component.tsx +2 -5
  3175. package/tsconfig.json +1 -3
  3176. package/tsconfig.tsbuildinfo +1 -1
  3177. package/build/ui/control-group/component.js +0 -81
  3178. package/build/ui/control-group/component.js.map +0 -1
  3179. package/build/ui/control-group/context.js +0 -21
  3180. package/build/ui/control-group/context.js.map +0 -1
  3181. package/build/ui/control-group/hook.js +0 -97
  3182. package/build/ui/control-group/hook.js.map +0 -1
  3183. package/build/ui/control-group/index.js +0 -47
  3184. package/build/ui/control-group/index.js.map +0 -1
  3185. package/build/ui/control-group/styles.js +0 -82
  3186. package/build/ui/control-group/styles.js.map +0 -1
  3187. package/build/ui/control-group/types.js.map +0 -1
  3188. package/build/ui/control-label/component.js +0 -54
  3189. package/build/ui/control-label/component.js.map +0 -1
  3190. package/build/ui/control-label/hook.js +0 -54
  3191. package/build/ui/control-label/hook.js.map +0 -1
  3192. package/build/ui/control-label/index.js +0 -33
  3193. package/build/ui/control-label/index.js.map +0 -1
  3194. package/build/ui/control-label/styles.js +0 -61
  3195. package/build/ui/control-label/styles.js.map +0 -1
  3196. package/build/ui/control-label/types.js +0 -6
  3197. package/build/ui/control-label/types.js.map +0 -1
  3198. package/build/ui/form-group/form-group-content.js +0 -65
  3199. package/build/ui/form-group/form-group-content.js.map +0 -1
  3200. package/build/ui/form-group/form-group-context.js +0 -47
  3201. package/build/ui/form-group/form-group-context.js.map +0 -1
  3202. package/build/ui/form-group/form-group-help.js +0 -46
  3203. package/build/ui/form-group/form-group-help.js.map +0 -1
  3204. package/build/ui/form-group/form-group-label.js +0 -48
  3205. package/build/ui/form-group/form-group-label.js.map +0 -1
  3206. package/build/ui/form-group/form-group-styles.js +0 -22
  3207. package/build/ui/form-group/form-group-styles.js.map +0 -1
  3208. package/build/ui/form-group/form-group.js +0 -72
  3209. package/build/ui/form-group/form-group.js.map +0 -1
  3210. package/build/ui/form-group/index.js +0 -47
  3211. package/build/ui/form-group/index.js.map +0 -1
  3212. package/build/ui/form-group/types.js +0 -6
  3213. package/build/ui/form-group/types.js.map +0 -1
  3214. package/build/ui/form-group/use-form-group.js +0 -63
  3215. package/build/ui/form-group/use-form-group.js.map +0 -1
  3216. package/build/ui/index.js +0 -71
  3217. package/build/ui/index.js.map +0 -1
  3218. package/build/ui/spinner/component.js +0 -108
  3219. package/build/ui/spinner/component.js.map +0 -1
  3220. package/build/ui/spinner/index.js +0 -16
  3221. package/build/ui/spinner/index.js.map +0 -1
  3222. package/build/ui/spinner/styles.js +0 -53
  3223. package/build/ui/spinner/styles.js.map +0 -1
  3224. package/build/ui/spinner/utils.js +0 -11
  3225. package/build/ui/spinner/utils.js.map +0 -1
  3226. package/build-module/ui/control-group/component.js +0 -69
  3227. package/build-module/ui/control-group/component.js.map +0 -1
  3228. package/build-module/ui/control-group/context.js +0 -9
  3229. package/build-module/ui/control-group/context.js.map +0 -1
  3230. package/build-module/ui/control-group/hook.js +0 -81
  3231. package/build-module/ui/control-group/hook.js.map +0 -1
  3232. package/build-module/ui/control-group/index.js +0 -4
  3233. package/build-module/ui/control-group/index.js.map +0 -1
  3234. package/build-module/ui/control-group/styles.js +0 -70
  3235. package/build-module/ui/control-group/styles.js.map +0 -1
  3236. package/build-module/ui/control-group/types.js.map +0 -1
  3237. package/build-module/ui/control-label/component.js +0 -43
  3238. package/build-module/ui/control-label/component.js.map +0 -1
  3239. package/build-module/ui/control-label/hook.js +0 -38
  3240. package/build-module/ui/control-label/hook.js.map +0 -1
  3241. package/build-module/ui/control-label/index.js +0 -3
  3242. package/build-module/ui/control-label/index.js.map +0 -1
  3243. package/build-module/ui/control-label/styles.js +0 -50
  3244. package/build-module/ui/control-label/styles.js.map +0 -1
  3245. package/build-module/ui/control-label/types.js +0 -2
  3246. package/build-module/ui/control-label/types.js.map +0 -1
  3247. package/build-module/ui/form-group/form-group-content.js +0 -51
  3248. package/build-module/ui/form-group/form-group-content.js.map +0 -1
  3249. package/build-module/ui/form-group/form-group-context.js +0 -32
  3250. package/build-module/ui/form-group/form-group-context.js.map +0 -1
  3251. package/build-module/ui/form-group/form-group-help.js +0 -37
  3252. package/build-module/ui/form-group/form-group-help.js.map +0 -1
  3253. package/build-module/ui/form-group/form-group-label.js +0 -38
  3254. package/build-module/ui/form-group/form-group-label.js.map +0 -1
  3255. package/build-module/ui/form-group/form-group-styles.js +0 -16
  3256. package/build-module/ui/form-group/form-group-styles.js.map +0 -1
  3257. package/build-module/ui/form-group/form-group.js +0 -57
  3258. package/build-module/ui/form-group/form-group.js.map +0 -1
  3259. package/build-module/ui/form-group/index.js +0 -4
  3260. package/build-module/ui/form-group/index.js.map +0 -1
  3261. package/build-module/ui/form-group/types.js +0 -2
  3262. package/build-module/ui/form-group/types.js.map +0 -1
  3263. package/build-module/ui/form-group/use-form-group.js +0 -48
  3264. package/build-module/ui/form-group/use-form-group.js.map +0 -1
  3265. package/build-module/ui/index.js +0 -6
  3266. package/build-module/ui/index.js.map +0 -1
  3267. package/build-module/ui/spinner/component.js +0 -95
  3268. package/build-module/ui/spinner/component.js.map +0 -1
  3269. package/build-module/ui/spinner/index.js +0 -2
  3270. package/build-module/ui/spinner/index.js.map +0 -1
  3271. package/build-module/ui/spinner/styles.js +0 -47
  3272. package/build-module/ui/spinner/styles.js.map +0 -1
  3273. package/build-module/ui/spinner/utils.js +0 -3
  3274. package/build-module/ui/spinner/utils.js.map +0 -1
  3275. package/src/ui/control-group/README.md +0 -23
  3276. package/src/ui/control-group/component.js +0 -75
  3277. package/src/ui/control-group/context.js +0 -8
  3278. package/src/ui/control-group/hook.js +0 -93
  3279. package/src/ui/control-group/index.js +0 -3
  3280. package/src/ui/control-group/styles.js +0 -43
  3281. package/src/ui/control-group/test/__snapshots__/index.js.snap +0 -51
  3282. package/src/ui/control-group/test/index.js +0 -22
  3283. package/src/ui/control-group/types.ts +0 -29
  3284. package/src/ui/control-label/README.md +0 -22
  3285. package/src/ui/control-label/component.js +0 -37
  3286. package/src/ui/control-label/hook.js +0 -43
  3287. package/src/ui/control-label/index.js +0 -2
  3288. package/src/ui/control-label/stories/index.js +0 -13
  3289. package/src/ui/control-label/styles.js +0 -65
  3290. package/src/ui/control-label/test/__snapshots__/index.js.snap +0 -141
  3291. package/src/ui/control-label/test/index.js +0 -39
  3292. package/src/ui/control-label/types.ts +0 -9
  3293. package/src/ui/form-group/README.md +0 -113
  3294. package/src/ui/form-group/form-group-content.js +0 -59
  3295. package/src/ui/form-group/form-group-context.js +0 -31
  3296. package/src/ui/form-group/form-group-help.js +0 -32
  3297. package/src/ui/form-group/form-group-label.js +0 -30
  3298. package/src/ui/form-group/form-group-styles.js +0 -8
  3299. package/src/ui/form-group/form-group.js +0 -54
  3300. package/src/ui/form-group/index.js +0 -4
  3301. package/src/ui/form-group/stories/index.js +0 -44
  3302. package/src/ui/form-group/test/__snapshots__/index.js.snap +0 -121
  3303. package/src/ui/form-group/test/index.js +0 -82
  3304. package/src/ui/form-group/types.ts +0 -32
  3305. package/src/ui/form-group/use-form-group.js +0 -53
  3306. package/src/ui/index.js +0 -5
  3307. package/src/ui/spinner/README.md +0 -31
  3308. package/src/ui/spinner/component.js +0 -75
  3309. package/src/ui/spinner/index.js +0 -1
  3310. package/src/ui/spinner/stories/index.js +0 -19
  3311. package/src/ui/spinner/styles.js +0 -109
  3312. package/src/ui/spinner/test/__snapshots__/index.js.snap +0 -265
  3313. package/src/ui/spinner/test/index.js +0 -32
  3314. package/src/ui/spinner/utils.js +0 -2
  3315. /package/build/{ui/control-group → menu-item}/types.js +0 -0
  3316. /package/build-module/{ui/control-group → menu-item}/types.js +0 -0
  3317. /package/src/angle-picker-control/stories/{index.tsx → index.story.tsx} +0 -0
  3318. /package/src/base-control/stories/{index.tsx → index.story.tsx} +0 -0
  3319. /package/src/border-box-control/stories/{index.tsx → index.story.tsx} +0 -0
  3320. /package/src/border-control/stories/{index.tsx → index.story.tsx} +0 -0
  3321. /package/src/button-group/stories/{index.tsx → index.story.tsx} +0 -0
  3322. /package/src/checkbox-control/stories/{index.tsx → index.story.tsx} +0 -0
  3323. /package/src/color-indicator/stories/{index.tsx → index.story.tsx} +0 -0
  3324. /package/src/color-palette/stories/{index.tsx → index.story.tsx} +0 -0
  3325. /package/src/combobox-control/stories/{index.tsx → index.story.tsx} +0 -0
  3326. /package/src/custom-gradient-picker/stories/{index.tsx → index.story.tsx} +0 -0
  3327. /package/src/custom-select-control/stories/{index.js → index.story.js} +0 -0
  3328. /package/src/date-time/stories/{date-time.tsx → date-time.story.tsx} +0 -0
  3329. /package/src/date-time/stories/{date.tsx → date.story.tsx} +0 -0
  3330. /package/src/date-time/stories/{time.tsx → time.story.tsx} +0 -0
  3331. /package/src/dimension-control/stories/{index.tsx → index.story.tsx} +0 -0
  3332. /package/src/disabled/stories/{index.tsx → index.story.tsx} +0 -0
  3333. /package/src/divider/stories/{index.tsx → index.story.tsx} +0 -0
  3334. /package/src/draggable/stories/{index.tsx → index.story.tsx} +0 -0
  3335. /package/src/drop-zone/stories/{index.tsx → index.story.tsx} +0 -0
  3336. /package/src/duotone-picker/stories/{duotone-picker.tsx → duotone-picker.story.tsx} +0 -0
  3337. /package/src/duotone-picker/stories/{duotone-swatch.tsx → duotone-swatch.story.tsx} +0 -0
  3338. /package/src/elevation/stories/{index.tsx → index.story.tsx} +0 -0
  3339. /package/src/external-link/stories/{index.tsx → index.story.tsx} +0 -0
  3340. /package/src/focal-point-picker/stories/{index.tsx → index.story.tsx} +0 -0
  3341. /package/src/font-size-picker/stories/e2e/{index.tsx → index.story.tsx} +0 -0
  3342. /package/src/font-size-picker/stories/{index.tsx → index.story.tsx} +0 -0
  3343. /package/src/form-file-upload/stories/{index.tsx → index.story.tsx} +0 -0
  3344. /package/src/form-toggle/stories/{index.tsx → index.story.tsx} +0 -0
  3345. /package/src/form-token-field/stories/{index.tsx → index.story.tsx} +0 -0
  3346. /package/src/gradient-picker/stories/{index.tsx → index.story.tsx} +0 -0
  3347. /package/src/grid/stories/{index.tsx → index.story.tsx} +0 -0
  3348. /package/src/guide/stories/{index.tsx → index.story.tsx} +0 -0
  3349. /package/src/h-stack/stories/e2e/{index.tsx → index.story.tsx} +0 -0
  3350. /package/src/h-stack/stories/{index.tsx → index.story.tsx} +0 -0
  3351. /package/src/heading/stories/{index.tsx → index.story.tsx} +0 -0
  3352. /package/src/keyboard-shortcuts/stories/{index.tsx → index.story.tsx} +0 -0
  3353. /package/src/menu-items-choice/stories/{index.tsx → index.story.tsx} +0 -0
  3354. /package/src/navigable-container/stories/{navigable-menu.tsx → navigable-menu.story.tsx} +0 -0
  3355. /package/src/navigable-container/stories/{tabbable-container.tsx → tabbable-container.story.tsx} +0 -0
  3356. /package/src/number-control/stories/{index.tsx → index.story.tsx} +0 -0
  3357. /package/src/placeholder/stories/{index.tsx → index.story.tsx} +0 -0
  3358. /package/src/popover/stories/e2e/{index.tsx → index.story.tsx} +0 -0
  3359. /package/src/progress-bar/stories/{index.tsx → index.story.tsx} +0 -0
  3360. /package/src/radio-control/stories/{index.tsx → index.story.tsx} +0 -0
  3361. /package/src/range-control/stories/{index.tsx → index.story.tsx} +0 -0
  3362. /package/src/resizable-box/stories/{index.tsx → index.story.tsx} +0 -0
  3363. /package/src/responsive-wrapper/stories/{index.tsx → index.story.tsx} +0 -0
  3364. /package/src/sandbox/stories/{index.tsx → index.story.tsx} +0 -0
  3365. /package/src/scroll-lock/stories/{index.tsx → index.story.tsx} +0 -0
  3366. /package/src/scrollable/stories/{index.tsx → index.story.tsx} +0 -0
  3367. /package/src/search-control/stories/{index.tsx → index.story.tsx} +0 -0
  3368. /package/src/snackbar/stories/{index.tsx → index.story.tsx} +0 -0
  3369. /package/src/snackbar/stories/{list.tsx → list.story.tsx} +0 -0
  3370. /package/src/spacer/stories/{index.tsx → index.story.tsx} +0 -0
  3371. /package/src/spinner/stories/{index.tsx → index.story.tsx} +0 -0
  3372. /package/src/surface/stories/{index.tsx → index.story.tsx} +0 -0
  3373. /package/src/tab-panel/stories/{index.tsx → index.story.tsx} +0 -0
  3374. /package/src/text-control/stories/{index.tsx → index.story.tsx} +0 -0
  3375. /package/src/text-highlight/stories/{index.tsx → index.story.tsx} +0 -0
  3376. /package/src/textarea-control/stories/{index.tsx → index.story.tsx} +0 -0
  3377. /package/src/theme/stories/{index.tsx → index.story.tsx} +0 -0
  3378. /package/src/tip/stories/{index.tsx → index.story.tsx} +0 -0
  3379. /package/src/toggle-control/stories/{index.tsx → index.story.tsx} +0 -0
  3380. /package/src/tooltip/stories/{index.js → index.story.js} +0 -0
  3381. /package/src/tree-select/stories/{index.tsx → index.story.tsx} +0 -0
  3382. /package/src/truncate/stories/{index.tsx → index.story.tsx} +0 -0
  3383. /package/src/ui/tooltip/stories/{index.js → index.story.js} +0 -0
  3384. /package/src/unit-control/stories/{index.tsx → index.story.tsx} +0 -0
  3385. /package/src/v-stack/stories/e2e/{index.tsx → index.story.tsx} +0 -0
  3386. /package/src/v-stack/stories/{index.tsx → index.story.tsx} +0 -0
  3387. /package/src/view/stories/{index.tsx → index.story.tsx} +0 -0
  3388. /package/src/visually-hidden/stories/{index.tsx → index.story.tsx} +0 -0
  3389. /package/src/z-stack/stories/{index.tsx → index.story.tsx} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/components/src/popover/index.tsx"],"names":["classnames","useFloating","flip","flipMiddleware","shift","shiftMiddleware","autoUpdate","arrow","offset","offsetMiddleware","size","motion","useReducedMotion","useRef","useLayoutEffect","forwardRef","createContext","useContext","useMemo","useState","useCallback","useViewportMatch","useMergeRefs","__experimentalUseDialog","useDialog","close","deprecated","Path","SVG","getScrollContainer","Button","ScrollLock","Slot","Fill","useSlot","computePopoverPosition","getFrameOffset","getFrameScale","positionToPlacement","placementToMotionAnimationProps","getReferenceOwnerDocument","getReferenceElement","limitShift","customLimitShift","overlayMiddlewares","SLOT_NAME","ArrowTriangle","AnimatedWrapper","style","receivedInlineStyles","placement","shouldAnimate","props","forwardedRef","shouldReduceMotion","motionInlineStyles","otherMotionProps","computedAnimationProps","animate","slotNameContext","undefined","UnforwardedPopover","headerTitle","onClose","children","className","noArrow","position","placementProp","offsetProp","focusOnMount","anchor","expandOnMobile","onFocusOutside","__unstableSlotName","resize","variant","__unstableForcePosition","anchorRef","anchorRect","getAnchorRect","isAlternate","contentProps","computedFlipProp","computedResizeProp","since","version","alternative","computedVariant","arrowRef","fallbackReferenceElement","setFallbackReferenceElement","referenceOwnerDocument","setReferenceOwnerDocument","anchorRefFallback","node","isMobileViewport","isExpanded","hasArrow","normalizedPlacementFromProps","frameOffsetRef","middleware","name","fn","x","y","current","data","amount","apply","sizeProps","firstElementChild","refs","floating","HTMLElement","Object","assign","maxHeight","availableHeight","overflow","crossAxis","limiter","padding","element","filter","m","slotName","slot","onDialogClose","type","event","dialogRef","dialogProps","__unstableOnClose","reference","referenceCallbackRef","strategy","update","computedPlacement","middlewareData","arrowData","whileElementsMounted","referenceParam","floatingParam","updateParam","animationFrame","arrowCallbackRef","anchorRefTop","top","anchorRefBottom","bottom","anchorRefStartContainer","startContainer","anchorRefCurrent","resultingReferenceOwnerDoc","fallbackDocument","document","scale","resultingReferenceElement","ownerDocument","defaultView","frameElement","scrollContainer","updateFrameOffset","addEventListener","removeEventListener","mergedFloatingRef","content","left","split","join","Number","isFinite","ref","Popover","PopoverSlot","__unstableSlotNameProvider","Provider"],"mappings":";;AAAA;AACA;AACA;AAEA,OAAOA,UAAP,MAAuB,YAAvB;AACA,SACCC,WADD,EAECC,IAAI,IAAIC,cAFT,EAGCC,KAAK,IAAIC,eAHV,EAICC,UAJD,EAKCC,KALD,EAMCC,MAAM,IAAIC,gBANX,EAOCC,IAPD,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AAC9I,IAAR,GAAejB,UAAU,CAAEgK,WAAF,CAAzB,C,CACA;;AACAD,OAAO,CAACE,0BAAR,GAAqCrH,eAAe,CAACsH,QAArD;AAEA,eAAeH,OAAf","sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef, SyntheticEvent, RefCallback } from 'react';\nimport classnames from 'classnames';\nimport {\n\tuseFloating,\n\tflip as flipMiddleware,\n\tshift as shiftMiddleware,\n\tautoUpdate,\n\tarrow,\n\toffset as offsetMiddleware,\n\tsize,\n\tMiddleware,\n\tMiddlewareArguments,\n} from '@floating-ui/react-dom';\n// eslint-disable-next-line no-restricted-imports\nimport {\n\tmotion,\n\tuseReducedMotion,\n\tHTMLMotionProps,\n\tMotionProps,\n} from 'framer-motion';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tuseRef,\n\tuseLayoutEffect,\n\tforwardRef,\n\tcreateContext,\n\tuseContext,\n\tuseMemo,\n\tuseState,\n\tuseCallback,\n} from '@wordpress/element';\nimport {\n\tuseViewportMatch,\n\tuseMergeRefs,\n\t__experimentalUseDialog as useDialog,\n} from '@wordpress/compose';\nimport { close } from '@wordpress/icons';\nimport deprecated from '@wordpress/deprecated';\nimport { Path, SVG } from '@wordpress/primitives';\nimport { getScrollContainer } from '@wordpress/dom';\n\n/**\n * Internal dependencies\n */\nimport Button from '../button';\nimport ScrollLock from '../scroll-lock';\nimport { Slot, Fill, useSlot } from '../slot-fill';\nimport {\n\tcomputePopoverPosition,\n\tgetFrameOffset,\n\tgetFrameScale,\n\tpositionToPlacement,\n\tplacementToMotionAnimationProps,\n\tgetReferenceOwnerDocument,\n\tgetReferenceElement,\n} from './utils';\nimport type { WordPressComponentProps } from '../ui/context';\nimport type {\n\tPopoverProps,\n\tAnimatedWrapperProps,\n\tPopoverAnchorRefReference,\n\tPopoverAnchorRefTopBottom,\n} from './types';\nimport { limitShift as customLimitShift } from './limit-shift';\nimport { overlayMiddlewares } from './overlay-middlewares';\n\n/**\n * Name of slot in which popover should fill.\n *\n * @type {string}\n */\nexport const SLOT_NAME = 'Popover';\n\n// An SVG displaying a triangle facing down, filled with a solid\n// color and bordered in such a way to create an arrow-like effect.\n// Keeping the SVG's viewbox squared simplify the arrow positioning\n// calculations.\nconst ArrowTriangle = () => (\n\t<SVG\n\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\tviewBox={ `0 0 100 100` }\n\t\tclassName=\"components-popover__triangle\"\n\t\trole=\"presentation\"\n\t>\n\t\t<Path\n\t\t\tclassName=\"components-popover__triangle-bg\"\n\t\t\td=\"M 0 0 L 50 50 L 100 0\"\n\t\t/>\n\t\t<Path\n\t\t\tclassName=\"components-popover__triangle-border\"\n\t\t\td=\"M 0 0 L 50 50 L 100 0\"\n\t\t\tvectorEffect=\"non-scaling-stroke\"\n\t\t/>\n\t</SVG>\n);\n\nconst AnimatedWrapper = forwardRef(\n\t(\n\t\t{\n\t\t\tstyle: receivedInlineStyles,\n\t\t\tplacement,\n\t\t\tshouldAnimate = false,\n\t\t\t...props\n\t\t}: HTMLMotionProps< 'div' > & AnimatedWrapperProps,\n\t\tforwardedRef: ForwardedRef< any >\n\t) => {\n\t\tconst shouldReduceMotion = useReducedMotion();\n\n\t\tconst { style: motionInlineStyles, ...otherMotionProps } = useMemo(\n\t\t\t() => placementToMotionAnimationProps( placement ),\n\t\t\t[ placement ]\n\t\t);\n\n\t\tconst computedAnimationProps: HTMLMotionProps< 'div' > =\n\t\t\tshouldAnimate && ! shouldReduceMotion\n\t\t\t\t? {\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t...motionInlineStyles,\n\t\t\t\t\t\t\t...receivedInlineStyles,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t...otherMotionProps,\n\t\t\t\t }\n\t\t\t\t: {\n\t\t\t\t\t\tanimate: false,\n\t\t\t\t\t\tstyle: receivedInlineStyles,\n\t\t\t\t };\n\n\t\treturn (\n\t\t\t<motion.div\n\t\t\t\t{ ...computedAnimationProps }\n\t\t\t\t{ ...props }\n\t\t\t\tref={ forwardedRef }\n\t\t\t/>\n\t\t);\n\t}\n);\n\nconst slotNameContext = createContext< string | undefined >( undefined );\n\nconst UnforwardedPopover = (\n\tprops: Omit<\n\t\tWordPressComponentProps< PopoverProps, 'div', false >,\n\t\t// To avoid overlaps between the standard HTML attributes and the props\n\t\t// expected by `framer-motion`, omit all framer motion props from popover\n\t\t// props (except for `animate` and `children`, which are re-defined in `PopoverProps`).\n\t\tkeyof Omit< MotionProps, 'animate' | 'children' >\n\t>,\n\tforwardedRef: ForwardedRef< any >\n) => {\n\tconst {\n\t\tanimate = true,\n\t\theaderTitle,\n\t\tonClose,\n\t\tchildren,\n\t\tclassName,\n\t\tnoArrow = true,\n\t\tposition,\n\t\tplacement: placementProp = 'bottom-start',\n\t\toffset: offsetProp = 0,\n\t\tfocusOnMount = 'firstElement',\n\t\tanchor,\n\t\texpandOnMobile,\n\t\tonFocusOutside,\n\t\t__unstableSlotName = SLOT_NAME,\n\t\tflip = true,\n\t\tresize = true,\n\t\tshift = false,\n\t\tvariant,\n\n\t\t// Deprecated props\n\t\t__unstableForcePosition,\n\t\tanchorRef,\n\t\tanchorRect,\n\t\tgetAnchorRect,\n\t\tisAlternate,\n\n\t\t// Rest\n\t\t...contentProps\n\t} = props;\n\n\tlet computedFlipProp = flip;\n\tlet computedResizeProp = resize;\n\tif ( __unstableForcePosition !== undefined ) {\n\t\tdeprecated( '`__unstableForcePosition` prop in wp.components.Popover', {\n\t\t\tsince: '6.1',\n\t\t\tversion: '6.3',\n\t\t\talternative: '`flip={ false }` and `resize={ false }`',\n\t\t} );\n\n\t\t// Back-compat, set the `flip` and `resize` props\n\t\t// to `false` to replicate `__unstableForcePosition`.\n\t\tcomputedFlipProp = ! __unstableForcePosition;\n\t\tcomputedResizeProp = ! __unstableForcePosition;\n\t}\n\n\tif ( anchorRef !== undefined ) {\n\t\tdeprecated( '`anchorRef` prop in wp.components.Popover', {\n\t\t\tsince: '6.1',\n\t\t\talternative: '`anchor` prop',\n\t\t} );\n\t}\n\n\tif ( anchorRect !== undefined ) {\n\t\tdeprecated( '`anchorRect` prop in wp.components.Popover', {\n\t\t\tsince: '6.1',\n\t\t\talternative: '`anchor` prop',\n\t\t} );\n\t}\n\n\tif ( getAnchorRect !== undefined ) {\n\t\tdeprecated( '`getAnchorRect` prop in wp.components.Popover', {\n\t\t\tsince: '6.1',\n\t\t\talternative: '`anchor` prop',\n\t\t} );\n\t}\n\n\tconst computedVariant = isAlternate ? 'toolbar' : variant;\n\tif ( isAlternate !== undefined ) {\n\t\tdeprecated( '`isAlternate` prop in wp.components.Popover', {\n\t\t\tsince: '6.2',\n\t\t\talternative: \"`variant` prop with the `'toolbar'` value\",\n\t\t} );\n\t}\n\n\tconst arrowRef = useRef< HTMLElement | null >( null );\n\n\tconst [ fallbackReferenceElement, setFallbackReferenceElement ] =\n\t\tuseState< HTMLSpanElement | null >( null );\n\tconst [ referenceOwnerDocument, setReferenceOwnerDocument ] = useState<\n\t\tDocument | undefined\n\t>();\n\n\tconst anchorRefFallback: RefCallback< HTMLSpanElement > = useCallback(\n\t\t( node ) => {\n\t\t\tsetFallbackReferenceElement( node );\n\t\t},\n\t\t[]\n\t);\n\n\tconst isMobileViewport = useViewportMatch( 'medium', '<' );\n\tconst isExpanded = expandOnMobile && isMobileViewport;\n\tconst hasArrow = ! isExpanded && ! noArrow;\n\tconst normalizedPlacementFromProps = position\n\t\t? positionToPlacement( position )\n\t\t: placementProp;\n\n\t/**\n\t * Offsets the position of the popover when the anchor is inside an iframe.\n\t *\n\t * Store the offset in a ref, due to constraints with floating-ui:\n\t * https://floating-ui.com/docs/react-dom#variables-inside-middleware-functions.\n\t */\n\tconst frameOffsetRef = useRef( getFrameOffset( referenceOwnerDocument ) );\n\n\tconst middleware = [\n\t\t...( placementProp === 'overlay' ? overlayMiddlewares() : [] ),\n\t\t// Custom middleware which adjusts the popover's position by taking into\n\t\t// account the offset of the anchor's iframe (if any) compared to the page.\n\t\t{\n\t\t\tname: 'frameOffset',\n\t\t\tfn( { x, y }: MiddlewareArguments ) {\n\t\t\t\tif ( ! frameOffsetRef.current ) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tx,\n\t\t\t\t\t\ty,\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\treturn {\n\t\t\t\t\tx: x + frameOffsetRef.current.x,\n\t\t\t\t\ty: y + frameOffsetRef.current.y,\n\t\t\t\t\tdata: {\n\t\t\t\t\t\t// This will be used in the customLimitShift() function.\n\t\t\t\t\t\tamount: frameOffsetRef.current,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t\t},\n\t\t},\n\t\toffsetMiddleware( offsetProp ),\n\t\tcomputedFlipProp ? flipMiddleware() : undefined,\n\t\tcomputedResizeProp\n\t\t\t? size( {\n\t\t\t\t\tapply( sizeProps ) {\n\t\t\t\t\t\tconst { firstElementChild } =\n\t\t\t\t\t\t\trefs.floating.current ?? {};\n\n\t\t\t\t\t\t// Only HTMLElement instances have the `style` property.\n\t\t\t\t\t\tif ( ! ( firstElementChild instanceof HTMLElement ) )\n\t\t\t\t\t\t\treturn;\n\n\t\t\t\t\t\t// Reduce the height of the popover to the available space.\n\t\t\t\t\t\tObject.assign( firstElementChild.style, {\n\t\t\t\t\t\t\tmaxHeight: `${ sizeProps.availableHeight }px`,\n\t\t\t\t\t\t\toverflow: 'auto',\n\t\t\t\t\t\t} );\n\t\t\t\t\t},\n\t\t\t } )\n\t\t\t: undefined,\n\t\tshift\n\t\t\t? shiftMiddleware( {\n\t\t\t\t\tcrossAxis: true,\n\t\t\t\t\tlimiter: customLimitShift(),\n\t\t\t\t\tpadding: 1, // Necessary to avoid flickering at the edge of the viewport.\n\t\t\t } )\n\t\t\t: undefined,\n\t\tarrow( { element: arrowRef } ),\n\t].filter(\n\t\t( m: Middleware | undefined ): m is Middleware => m !== undefined\n\t);\n\tconst slotName = useContext( slotNameContext ) || __unstableSlotName;\n\tconst slot = useSlot( slotName );\n\n\tlet onDialogClose;\n\n\tif ( onClose || onFocusOutside ) {\n\t\tonDialogClose = ( type: string | undefined, event: SyntheticEvent ) => {\n\t\t\t// Ideally the popover should have just a single onClose prop and\n\t\t\t// not three props that potentially do the same thing.\n\t\t\tif ( type === 'focus-outside' && onFocusOutside ) {\n\t\t\t\tonFocusOutside( event );\n\t\t\t} else if ( onClose ) {\n\t\t\t\tonClose();\n\t\t\t}\n\t\t};\n\t}\n\n\tconst [ dialogRef, dialogProps ] = useDialog( {\n\t\tfocusOnMount,\n\t\t__unstableOnClose: onDialogClose,\n\t\t// @ts-expect-error The __unstableOnClose property needs to be deprecated first (see https://github.com/WordPress/gutenberg/pull/27675)\n\t\tonClose: onDialogClose,\n\t} );\n\n\tconst {\n\t\t// Positioning coordinates\n\t\tx,\n\t\ty,\n\t\t// Callback refs (not regular refs). This allows the position to be updated.\n\t\t// when either elements change.\n\t\treference: referenceCallbackRef,\n\t\tfloating,\n\t\t// Object with \"regular\" refs to both \"reference\" and \"floating\"\n\t\trefs,\n\t\t// Type of CSS position property to use (absolute or fixed)\n\t\tstrategy,\n\t\tupdate,\n\t\tplacement: computedPlacement,\n\t\tmiddlewareData: { arrow: arrowData },\n\t} = useFloating( {\n\t\tplacement:\n\t\t\tnormalizedPlacementFromProps === 'overlay'\n\t\t\t\t? undefined\n\t\t\t\t: normalizedPlacementFromProps,\n\t\tmiddleware,\n\t\twhileElementsMounted: ( referenceParam, floatingParam, updateParam ) =>\n\t\t\tautoUpdate( referenceParam, floatingParam, updateParam, {\n\t\t\t\tanimationFrame: true,\n\t\t\t} ),\n\t} );\n\n\tconst arrowCallbackRef = useCallback(\n\t\t( node: HTMLElement | null ) => {\n\t\t\tarrowRef.current = node;\n\t\t\tupdate();\n\t\t},\n\t\t[ update ]\n\t);\n\n\t// When any of the possible anchor \"sources\" change,\n\t// recompute the reference element (real or virtual) and its owner document.\n\n\tconst anchorRefTop = ( anchorRef as PopoverAnchorRefTopBottom | undefined )\n\t\t?.top;\n\tconst anchorRefBottom = (\n\t\tanchorRef as PopoverAnchorRefTopBottom | undefined\n\t )?.bottom;\n\tconst anchorRefStartContainer = ( anchorRef as Range | undefined )\n\t\t?.startContainer;\n\tconst anchorRefCurrent = ( anchorRef as PopoverAnchorRefReference )\n\t\t?.current;\n\n\tuseLayoutEffect( () => {\n\t\tconst resultingReferenceOwnerDoc = getReferenceOwnerDocument( {\n\t\t\tanchor,\n\t\t\tanchorRef,\n\t\t\tanchorRect,\n\t\t\tgetAnchorRect,\n\t\t\tfallbackReferenceElement,\n\t\t\tfallbackDocument: document,\n\t\t} );\n\t\tconst scale = getFrameScale( resultingReferenceOwnerDoc );\n\t\tconst resultingReferenceElement = getReferenceElement( {\n\t\t\tanchor,\n\t\t\tanchorRef,\n\t\t\tanchorRect,\n\t\t\tgetAnchorRect,\n\t\t\tfallbackReferenceElement,\n\t\t\tscale,\n\t\t} );\n\n\t\treferenceCallbackRef( resultingReferenceElement );\n\n\t\tsetReferenceOwnerDocument( resultingReferenceOwnerDoc );\n\t}, [\n\t\tanchor,\n\t\tanchorRef,\n\t\tanchorRefTop,\n\t\tanchorRefBottom,\n\t\tanchorRefStartContainer,\n\t\tanchorRefCurrent,\n\t\tanchorRect,\n\t\tgetAnchorRect,\n\t\tfallbackReferenceElement,\n\t\treferenceCallbackRef,\n\t] );\n\n\t// If the reference element is in a different ownerDocument (e.g. iFrame),\n\t// we need to manually update the floating's position as the reference's owner\n\t// document scrolls. Also update the frame offset if the view resizes.\n\tuseLayoutEffect( () => {\n\t\tif (\n\t\t\t// Reference and root documents are the same.\n\t\t\treferenceOwnerDocument === document ||\n\t\t\t// Reference and floating are in the same document.\n\t\t\treferenceOwnerDocument === refs.floating.current?.ownerDocument ||\n\t\t\t// The reference's document has no view (i.e. window)\n\t\t\t// or frame element (ie. it's not an iframe).\n\t\t\t! referenceOwnerDocument?.defaultView?.frameElement\n\t\t) {\n\t\t\tframeOffsetRef.current = undefined;\n\t\t\treturn;\n\t\t}\n\n\t\tconst { defaultView } = referenceOwnerDocument;\n\t\tconst { frameElement } = defaultView;\n\n\t\tconst scrollContainer = frameElement\n\t\t\t? getScrollContainer( frameElement )\n\t\t\t: null;\n\n\t\tconst updateFrameOffset = () => {\n\t\t\tframeOffsetRef.current = getFrameOffset( referenceOwnerDocument );\n\t\t\tupdate();\n\t\t};\n\t\tdefaultView.addEventListener( 'resize', updateFrameOffset );\n\t\tscrollContainer?.addEventListener( 'scroll', updateFrameOffset );\n\n\t\tupdateFrameOffset();\n\n\t\treturn () => {\n\t\t\tdefaultView.removeEventListener( 'resize', updateFrameOffset );\n\t\t\tscrollContainer?.removeEventListener( 'scroll', updateFrameOffset );\n\t\t};\n\t}, [ referenceOwnerDocument, update, refs.floating ] );\n\n\tconst mergedFloatingRef = useMergeRefs( [\n\t\tfloating,\n\t\tdialogRef,\n\t\tforwardedRef,\n\t] );\n\n\t// Disable reason: We care to capture the _bubbled_ events from inputs\n\t// within popover as inferring close intent.\n\n\tlet content = (\n\t\t// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions\n\t\t// eslint-disable-next-line jsx-a11y/no-static-element-interactions\n\t\t<AnimatedWrapper\n\t\t\tshouldAnimate={ animate && ! isExpanded }\n\t\t\tplacement={ computedPlacement }\n\t\t\tclassName={ classnames( 'components-popover', className, {\n\t\t\t\t'is-expanded': isExpanded,\n\t\t\t\t'is-positioned': x !== null && y !== null,\n\t\t\t\t// Use the 'alternate' classname for 'toolbar' variant for back compat.\n\t\t\t\t[ `is-${\n\t\t\t\t\tcomputedVariant === 'toolbar'\n\t\t\t\t\t\t? 'alternate'\n\t\t\t\t\t\t: computedVariant\n\t\t\t\t}` ]: computedVariant,\n\t\t\t} ) }\n\t\t\t{ ...contentProps }\n\t\t\tref={ mergedFloatingRef }\n\t\t\t{ ...dialogProps }\n\t\t\ttabIndex={ -1 }\n\t\t\tstyle={\n\t\t\t\tisExpanded\n\t\t\t\t\t? undefined\n\t\t\t\t\t: {\n\t\t\t\t\t\t\tposition: strategy,\n\t\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\t\t// `x` and `y` are framer-motion specific props and are shorthands\n\t\t\t\t\t\t\t// for `translateX` and `translateY`. Currently it is not possible\n\t\t\t\t\t\t\t// to use `translateX` and `translateY` because those values would\n\t\t\t\t\t\t\t// be overridden by the return value of the\n\t\t\t\t\t\t\t// `placementToMotionAnimationProps` function in `AnimatedWrapper`\n\t\t\t\t\t\t\tx: computePopoverPosition( x ),\n\t\t\t\t\t\t\ty: computePopoverPosition( y ),\n\t\t\t\t\t }\n\t\t\t}\n\t\t>\n\t\t\t{ /* Prevents scroll on the document */ }\n\t\t\t{ isExpanded && <ScrollLock /> }\n\t\t\t{ isExpanded && (\n\t\t\t\t<div className=\"components-popover__header\">\n\t\t\t\t\t<span className=\"components-popover__header-title\">\n\t\t\t\t\t\t{ headerTitle }\n\t\t\t\t\t</span>\n\t\t\t\t\t<Button\n\t\t\t\t\t\tclassName=\"components-popover__close\"\n\t\t\t\t\t\ticon={ close }\n\t\t\t\t\t\tonClick={ onClose }\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t\t<div className=\"components-popover__content\">{ children }</div>\n\t\t\t{ hasArrow && (\n\t\t\t\t<div\n\t\t\t\t\tref={ arrowCallbackRef }\n\t\t\t\t\tclassName={ [\n\t\t\t\t\t\t'components-popover__arrow',\n\t\t\t\t\t\t`is-${ computedPlacement.split( '-' )[ 0 ] }`,\n\t\t\t\t\t].join( ' ' ) }\n\t\t\t\t\tstyle={ {\n\t\t\t\t\t\tleft:\n\t\t\t\t\t\t\ttypeof arrowData?.x !== 'undefined' &&\n\t\t\t\t\t\t\tNumber.isFinite( arrowData.x )\n\t\t\t\t\t\t\t\t? `${\n\t\t\t\t\t\t\t\t\t\tarrowData.x +\n\t\t\t\t\t\t\t\t\t\t( frameOffsetRef.current?.x ?? 0 )\n\t\t\t\t\t\t\t\t }px`\n\t\t\t\t\t\t\t\t: '',\n\t\t\t\t\t\ttop:\n\t\t\t\t\t\t\ttypeof arrowData?.y !== 'undefined' &&\n\t\t\t\t\t\t\tNumber.isFinite( arrowData.y )\n\t\t\t\t\t\t\t\t? `${\n\t\t\t\t\t\t\t\t\t\tarrowData.y +\n\t\t\t\t\t\t\t\t\t\t( frameOffsetRef.current?.y ?? 0 )\n\t\t\t\t\t\t\t\t }px`\n\t\t\t\t\t\t\t\t: '',\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t<ArrowTriangle />\n\t\t\t\t</div>\n\t\t\t) }\n\t\t</AnimatedWrapper>\n\t);\n\n\tif ( slot.ref ) {\n\t\tcontent = <Fill name={ slotName }>{ content }</Fill>;\n\t}\n\n\tif ( anchorRef || anchorRect || anchor ) {\n\t\treturn content;\n\t}\n\n\treturn <span ref={ anchorRefFallback }>{ content }</span>;\n};\n\n/**\n * `Popover` renders its content in a floating modal. If no explicit anchor is passed via props, it anchors to its parent element by default.\n *\n * ```jsx\n * import { Button, Popover } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const MyPopover = () => {\n * \tconst [ isVisible, setIsVisible ] = useState( false );\n * \tconst toggleVisible = () => {\n * \t\tsetIsVisible( ( state ) => ! state );\n * \t};\n *\n * \treturn (\n * \t\t<Button variant=\"secondary\" onClick={ toggleVisible }>\n * \t\t\tToggle Popover!\n * \t\t\t{ isVisible && <Popover>Popover is toggled!</Popover> }\n * \t\t</Button>\n * \t);\n * };\n * ```\n *\n */\nexport const Popover = forwardRef( UnforwardedPopover );\n\nfunction PopoverSlot(\n\t{ name = SLOT_NAME }: { name?: string },\n\tref: ForwardedRef< any >\n) {\n\treturn (\n\t\t<Slot\n\t\t\t// @ts-expect-error Need to type `SlotFill`\n\t\t\tbubblesVirtually\n\t\t\tname={ name }\n\t\t\tclassName=\"popover-slot\"\n\t\t\tref={ ref }\n\t\t/>\n\t);\n}\n\n// @ts-expect-error For Legacy Reasons\nPopover.Slot = forwardRef( PopoverSlot );\n// @ts-expect-error For Legacy Reasons\nPopover.__unstableSlotNameProvider = slotNameContext.Provider;\n\nexport default Popover;\n"]}
1
+ {"version":3,"names":["classnames","useFloating","flip","flipMiddleware","shift","shiftMiddleware","autoUpdate","arrow","offset","offsetMiddleware","size","motion","useReducedMotion","useRef","useLayoutEffect","forwardRef","createContext","useContext","useMemo","useState","useCallback","useViewportMatch","useMergeRefs","__experimentalUseDialog","useDialog","close","deprecated","Path","SVG","getScrollContainer","Button","ScrollLock","Slot","Fill","useSlot","computePopoverPosition","getFrameOffset","getFrameScale","positionToPlacement","placementToMotionAnimationProps","getReferenceOwnerDocument","getReferenceElement","limitShift","customLimitShift","overlayMiddlewares","SLOT_NAME","ArrowTriangle","createElement","xmlns","viewBox","className","role","d","vectorEffect","AnimatedWrapper","style","receivedInlineStyles","placement","shouldAnimate","props","forwardedRef","shouldReduceMotion","motionInlineStyles","otherMotionProps","computedAnimationProps","animate","div","ref","slotNameContext","undefined","UnforwardedPopover","_frameOffsetRef$curre","_frameOffsetRef$curre2","headerTitle","onClose","children","noArrow","position","placementProp","offsetProp","focusOnMount","anchor","expandOnMobile","onFocusOutside","__unstableSlotName","resize","variant","__unstableForcePosition","anchorRef","anchorRect","getAnchorRect","isAlternate","contentProps","computedFlipProp","computedResizeProp","since","version","alternative","computedVariant","arrowRef","fallbackReferenceElement","setFallbackReferenceElement","referenceOwnerDocument","setReferenceOwnerDocument","anchorRefFallback","node","isMobileViewport","isExpanded","hasArrow","normalizedPlacementFromProps","frameOffsetRef","middleware","name","fn","x","y","current","data","amount","apply","sizeProps","_refs$floating$curren","firstElementChild","refs","floating","HTMLElement","Object","assign","maxHeight","availableHeight","overflow","crossAxis","limiter","padding","element","filter","m","slotName","slot","onDialogClose","type","event","dialogRef","dialogProps","__unstableOnClose","reference","referenceCallbackRef","strategy","update","computedPlacement","middlewareData","arrowData","whileElementsMounted","referenceParam","floatingParam","updateParam","animationFrame","arrowCallbackRef","anchorRefTop","top","anchorRefBottom","bottom","anchorRefStartContainer","startContainer","anchorRefCurrent","resultingReferenceOwnerDoc","fallbackDocument","document","scale","resultingReferenceElement","ownerDocument","defaultView","frameElement","scrollContainer","updateFrameOffset","addEventListener","removeEventListener","mergedFloatingRef","content","tabIndex","left","icon","onClick","split","join","Number","isFinite","Popover","PopoverSlot","bubblesVirtually","__unstableSlotNameProvider","Provider"],"sources":["@wordpress/components/src/popover/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef, SyntheticEvent, RefCallback } from 'react';\nimport classnames from 'classnames';\nimport type { Middleware, MiddlewareArguments } from '@floating-ui/react-dom';\nimport {\n\tuseFloating,\n\tflip as flipMiddleware,\n\tshift as shiftMiddleware,\n\tautoUpdate,\n\tarrow,\n\toffset as offsetMiddleware,\n\tsize,\n} from '@floating-ui/react-dom';\n// eslint-disable-next-line no-restricted-imports\nimport type { HTMLMotionProps, MotionProps } from 'framer-motion';\n// eslint-disable-next-line no-restricted-imports\nimport { motion, useReducedMotion } from 'framer-motion';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tuseRef,\n\tuseLayoutEffect,\n\tforwardRef,\n\tcreateContext,\n\tuseContext,\n\tuseMemo,\n\tuseState,\n\tuseCallback,\n} from '@wordpress/element';\nimport {\n\tuseViewportMatch,\n\tuseMergeRefs,\n\t__experimentalUseDialog as useDialog,\n} from '@wordpress/compose';\nimport { close } from '@wordpress/icons';\nimport deprecated from '@wordpress/deprecated';\nimport { Path, SVG } from '@wordpress/primitives';\nimport { getScrollContainer } from '@wordpress/dom';\n\n/**\n * Internal dependencies\n */\nimport Button from '../button';\nimport ScrollLock from '../scroll-lock';\nimport { Slot, Fill, useSlot } from '../slot-fill';\nimport {\n\tcomputePopoverPosition,\n\tgetFrameOffset,\n\tgetFrameScale,\n\tpositionToPlacement,\n\tplacementToMotionAnimationProps,\n\tgetReferenceOwnerDocument,\n\tgetReferenceElement,\n} from './utils';\nimport type { WordPressComponentProps } from '../ui/context';\nimport type {\n\tPopoverProps,\n\tAnimatedWrapperProps,\n\tPopoverAnchorRefReference,\n\tPopoverAnchorRefTopBottom,\n} from './types';\nimport { limitShift as customLimitShift } from './limit-shift';\nimport { overlayMiddlewares } from './overlay-middlewares';\n\n/**\n * Name of slot in which popover should fill.\n *\n * @type {string}\n */\nexport const SLOT_NAME = 'Popover';\n\n// An SVG displaying a triangle facing down, filled with a solid\n// color and bordered in such a way to create an arrow-like effect.\n// Keeping the SVG's viewbox squared simplify the arrow positioning\n// calculations.\nconst ArrowTriangle = () => (\n\t<SVG\n\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\tviewBox={ `0 0 100 100` }\n\t\tclassName=\"components-popover__triangle\"\n\t\trole=\"presentation\"\n\t>\n\t\t<Path\n\t\t\tclassName=\"components-popover__triangle-bg\"\n\t\t\td=\"M 0 0 L 50 50 L 100 0\"\n\t\t/>\n\t\t<Path\n\t\t\tclassName=\"components-popover__triangle-border\"\n\t\t\td=\"M 0 0 L 50 50 L 100 0\"\n\t\t\tvectorEffect=\"non-scaling-stroke\"\n\t\t/>\n\t</SVG>\n);\n\nconst AnimatedWrapper = forwardRef(\n\t(\n\t\t{\n\t\t\tstyle: receivedInlineStyles,\n\t\t\tplacement,\n\t\t\tshouldAnimate = false,\n\t\t\t...props\n\t\t}: HTMLMotionProps< 'div' > & AnimatedWrapperProps,\n\t\tforwardedRef: ForwardedRef< any >\n\t) => {\n\t\tconst shouldReduceMotion = useReducedMotion();\n\n\t\tconst { style: motionInlineStyles, ...otherMotionProps } = useMemo(\n\t\t\t() => placementToMotionAnimationProps( placement ),\n\t\t\t[ placement ]\n\t\t);\n\n\t\tconst computedAnimationProps: HTMLMotionProps< 'div' > =\n\t\t\tshouldAnimate && ! shouldReduceMotion\n\t\t\t\t? {\n\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t...motionInlineStyles,\n\t\t\t\t\t\t\t...receivedInlineStyles,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t...otherMotionProps,\n\t\t\t\t }\n\t\t\t\t: {\n\t\t\t\t\t\tanimate: false,\n\t\t\t\t\t\tstyle: receivedInlineStyles,\n\t\t\t\t };\n\n\t\treturn (\n\t\t\t<motion.div\n\t\t\t\t{ ...computedAnimationProps }\n\t\t\t\t{ ...props }\n\t\t\t\tref={ forwardedRef }\n\t\t\t/>\n\t\t);\n\t}\n);\n\nconst slotNameContext = createContext< string | undefined >( undefined );\n\nconst UnforwardedPopover = (\n\tprops: Omit<\n\t\tWordPressComponentProps< PopoverProps, 'div', false >,\n\t\t// To avoid overlaps between the standard HTML attributes and the props\n\t\t// expected by `framer-motion`, omit all framer motion props from popover\n\t\t// props (except for `animate` and `children`, which are re-defined in `PopoverProps`).\n\t\tkeyof Omit< MotionProps, 'animate' | 'children' >\n\t>,\n\tforwardedRef: ForwardedRef< any >\n) => {\n\tconst {\n\t\tanimate = true,\n\t\theaderTitle,\n\t\tonClose,\n\t\tchildren,\n\t\tclassName,\n\t\tnoArrow = true,\n\t\tposition,\n\t\tplacement: placementProp = 'bottom-start',\n\t\toffset: offsetProp = 0,\n\t\tfocusOnMount = 'firstElement',\n\t\tanchor,\n\t\texpandOnMobile,\n\t\tonFocusOutside,\n\t\t__unstableSlotName = SLOT_NAME,\n\t\tflip = true,\n\t\tresize = true,\n\t\tshift = false,\n\t\tvariant,\n\n\t\t// Deprecated props\n\t\t__unstableForcePosition,\n\t\tanchorRef,\n\t\tanchorRect,\n\t\tgetAnchorRect,\n\t\tisAlternate,\n\n\t\t// Rest\n\t\t...contentProps\n\t} = props;\n\n\tlet computedFlipProp = flip;\n\tlet computedResizeProp = resize;\n\tif ( __unstableForcePosition !== undefined ) {\n\t\tdeprecated( '`__unstableForcePosition` prop in wp.components.Popover', {\n\t\t\tsince: '6.1',\n\t\t\tversion: '6.3',\n\t\t\talternative: '`flip={ false }` and `resize={ false }`',\n\t\t} );\n\n\t\t// Back-compat, set the `flip` and `resize` props\n\t\t// to `false` to replicate `__unstableForcePosition`.\n\t\tcomputedFlipProp = ! __unstableForcePosition;\n\t\tcomputedResizeProp = ! __unstableForcePosition;\n\t}\n\n\tif ( anchorRef !== undefined ) {\n\t\tdeprecated( '`anchorRef` prop in wp.components.Popover', {\n\t\t\tsince: '6.1',\n\t\t\talternative: '`anchor` prop',\n\t\t} );\n\t}\n\n\tif ( anchorRect !== undefined ) {\n\t\tdeprecated( '`anchorRect` prop in wp.components.Popover', {\n\t\t\tsince: '6.1',\n\t\t\talternative: '`anchor` prop',\n\t\t} );\n\t}\n\n\tif ( getAnchorRect !== undefined ) {\n\t\tdeprecated( '`getAnchorRect` prop in wp.components.Popover', {\n\t\t\tsince: '6.1',\n\t\t\talternative: '`anchor` prop',\n\t\t} );\n\t}\n\n\tconst computedVariant = isAlternate ? 'toolbar' : variant;\n\tif ( isAlternate !== undefined ) {\n\t\tdeprecated( '`isAlternate` prop in wp.components.Popover', {\n\t\t\tsince: '6.2',\n\t\t\talternative: \"`variant` prop with the `'toolbar'` value\",\n\t\t} );\n\t}\n\n\tconst arrowRef = useRef< HTMLElement | null >( null );\n\n\tconst [ fallbackReferenceElement, setFallbackReferenceElement ] =\n\t\tuseState< HTMLSpanElement | null >( null );\n\tconst [ referenceOwnerDocument, setReferenceOwnerDocument ] = useState<\n\t\tDocument | undefined\n\t>();\n\n\tconst anchorRefFallback: RefCallback< HTMLSpanElement > = useCallback(\n\t\t( node ) => {\n\t\t\tsetFallbackReferenceElement( node );\n\t\t},\n\t\t[]\n\t);\n\n\tconst isMobileViewport = useViewportMatch( 'medium', '<' );\n\tconst isExpanded = expandOnMobile && isMobileViewport;\n\tconst hasArrow = ! isExpanded && ! noArrow;\n\tconst normalizedPlacementFromProps = position\n\t\t? positionToPlacement( position )\n\t\t: placementProp;\n\n\t/**\n\t * Offsets the position of the popover when the anchor is inside an iframe.\n\t *\n\t * Store the offset in a ref, due to constraints with floating-ui:\n\t * https://floating-ui.com/docs/react-dom#variables-inside-middleware-functions.\n\t */\n\tconst frameOffsetRef = useRef( getFrameOffset( referenceOwnerDocument ) );\n\n\tconst middleware = [\n\t\t...( placementProp === 'overlay' ? overlayMiddlewares() : [] ),\n\t\t// Custom middleware which adjusts the popover's position by taking into\n\t\t// account the offset of the anchor's iframe (if any) compared to the page.\n\t\t{\n\t\t\tname: 'frameOffset',\n\t\t\tfn( { x, y }: MiddlewareArguments ) {\n\t\t\t\tif ( ! frameOffsetRef.current ) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tx,\n\t\t\t\t\t\ty,\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\treturn {\n\t\t\t\t\tx: x + frameOffsetRef.current.x,\n\t\t\t\t\ty: y + frameOffsetRef.current.y,\n\t\t\t\t\tdata: {\n\t\t\t\t\t\t// This will be used in the customLimitShift() function.\n\t\t\t\t\t\tamount: frameOffsetRef.current,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t\t},\n\t\t},\n\t\toffsetMiddleware( offsetProp ),\n\t\tcomputedFlipProp ? flipMiddleware() : undefined,\n\t\tcomputedResizeProp\n\t\t\t? size( {\n\t\t\t\t\tapply( sizeProps ) {\n\t\t\t\t\t\tconst { firstElementChild } =\n\t\t\t\t\t\t\trefs.floating.current ?? {};\n\n\t\t\t\t\t\t// Only HTMLElement instances have the `style` property.\n\t\t\t\t\t\tif ( ! ( firstElementChild instanceof HTMLElement ) )\n\t\t\t\t\t\t\treturn;\n\n\t\t\t\t\t\t// Reduce the height of the popover to the available space.\n\t\t\t\t\t\tObject.assign( firstElementChild.style, {\n\t\t\t\t\t\t\tmaxHeight: `${ sizeProps.availableHeight }px`,\n\t\t\t\t\t\t\toverflow: 'auto',\n\t\t\t\t\t\t} );\n\t\t\t\t\t},\n\t\t\t } )\n\t\t\t: undefined,\n\t\tshift\n\t\t\t? shiftMiddleware( {\n\t\t\t\t\tcrossAxis: true,\n\t\t\t\t\tlimiter: customLimitShift(),\n\t\t\t\t\tpadding: 1, // Necessary to avoid flickering at the edge of the viewport.\n\t\t\t } )\n\t\t\t: undefined,\n\t\tarrow( { element: arrowRef } ),\n\t].filter(\n\t\t( m: Middleware | undefined ): m is Middleware => m !== undefined\n\t);\n\tconst slotName = useContext( slotNameContext ) || __unstableSlotName;\n\tconst slot = useSlot( slotName );\n\n\tlet onDialogClose;\n\n\tif ( onClose || onFocusOutside ) {\n\t\tonDialogClose = ( type: string | undefined, event: SyntheticEvent ) => {\n\t\t\t// Ideally the popover should have just a single onClose prop and\n\t\t\t// not three props that potentially do the same thing.\n\t\t\tif ( type === 'focus-outside' && onFocusOutside ) {\n\t\t\t\tonFocusOutside( event );\n\t\t\t} else if ( onClose ) {\n\t\t\t\tonClose();\n\t\t\t}\n\t\t};\n\t}\n\n\tconst [ dialogRef, dialogProps ] = useDialog( {\n\t\tfocusOnMount,\n\t\t__unstableOnClose: onDialogClose,\n\t\t// @ts-expect-error The __unstableOnClose property needs to be deprecated first (see https://github.com/WordPress/gutenberg/pull/27675)\n\t\tonClose: onDialogClose,\n\t} );\n\n\tconst {\n\t\t// Positioning coordinates\n\t\tx,\n\t\ty,\n\t\t// Callback refs (not regular refs). This allows the position to be updated.\n\t\t// when either elements change.\n\t\treference: referenceCallbackRef,\n\t\tfloating,\n\t\t// Object with \"regular\" refs to both \"reference\" and \"floating\"\n\t\trefs,\n\t\t// Type of CSS position property to use (absolute or fixed)\n\t\tstrategy,\n\t\tupdate,\n\t\tplacement: computedPlacement,\n\t\tmiddlewareData: { arrow: arrowData },\n\t} = useFloating( {\n\t\tplacement:\n\t\t\tnormalizedPlacementFromProps === 'overlay'\n\t\t\t\t? undefined\n\t\t\t\t: normalizedPlacementFromProps,\n\t\tmiddleware,\n\t\twhileElementsMounted: ( referenceParam, floatingParam, updateParam ) =>\n\t\t\tautoUpdate( referenceParam, floatingParam, updateParam, {\n\t\t\t\tanimationFrame: true,\n\t\t\t} ),\n\t} );\n\n\tconst arrowCallbackRef = useCallback(\n\t\t( node: HTMLElement | null ) => {\n\t\t\tarrowRef.current = node;\n\t\t\tupdate();\n\t\t},\n\t\t[ update ]\n\t);\n\n\t// When any of the possible anchor \"sources\" change,\n\t// recompute the reference element (real or virtual) and its owner document.\n\n\tconst anchorRefTop = ( anchorRef as PopoverAnchorRefTopBottom | undefined )\n\t\t?.top;\n\tconst anchorRefBottom = (\n\t\tanchorRef as PopoverAnchorRefTopBottom | undefined\n\t )?.bottom;\n\tconst anchorRefStartContainer = ( anchorRef as Range | undefined )\n\t\t?.startContainer;\n\tconst anchorRefCurrent = ( anchorRef as PopoverAnchorRefReference )\n\t\t?.current;\n\n\tuseLayoutEffect( () => {\n\t\tconst resultingReferenceOwnerDoc = getReferenceOwnerDocument( {\n\t\t\tanchor,\n\t\t\tanchorRef,\n\t\t\tanchorRect,\n\t\t\tgetAnchorRect,\n\t\t\tfallbackReferenceElement,\n\t\t\tfallbackDocument: document,\n\t\t} );\n\t\tconst scale = getFrameScale( resultingReferenceOwnerDoc );\n\t\tconst resultingReferenceElement = getReferenceElement( {\n\t\t\tanchor,\n\t\t\tanchorRef,\n\t\t\tanchorRect,\n\t\t\tgetAnchorRect,\n\t\t\tfallbackReferenceElement,\n\t\t\tscale,\n\t\t} );\n\n\t\treferenceCallbackRef( resultingReferenceElement );\n\n\t\tsetReferenceOwnerDocument( resultingReferenceOwnerDoc );\n\t}, [\n\t\tanchor,\n\t\tanchorRef,\n\t\tanchorRefTop,\n\t\tanchorRefBottom,\n\t\tanchorRefStartContainer,\n\t\tanchorRefCurrent,\n\t\tanchorRect,\n\t\tgetAnchorRect,\n\t\tfallbackReferenceElement,\n\t\treferenceCallbackRef,\n\t] );\n\n\t// If the reference element is in a different ownerDocument (e.g. iFrame),\n\t// we need to manually update the floating's position as the reference's owner\n\t// document scrolls. Also update the frame offset if the view resizes.\n\tuseLayoutEffect( () => {\n\t\tif (\n\t\t\t// Reference and root documents are the same.\n\t\t\treferenceOwnerDocument === document ||\n\t\t\t// Reference and floating are in the same document.\n\t\t\treferenceOwnerDocument === refs.floating.current?.ownerDocument ||\n\t\t\t// The reference's document has no view (i.e. window)\n\t\t\t// or frame element (ie. it's not an iframe).\n\t\t\t! referenceOwnerDocument?.defaultView?.frameElement\n\t\t) {\n\t\t\tframeOffsetRef.current = undefined;\n\t\t\treturn;\n\t\t}\n\n\t\tconst { defaultView } = referenceOwnerDocument;\n\t\tconst { frameElement } = defaultView;\n\n\t\tconst scrollContainer = frameElement\n\t\t\t? getScrollContainer( frameElement )\n\t\t\t: null;\n\n\t\tconst updateFrameOffset = () => {\n\t\t\tframeOffsetRef.current = getFrameOffset( referenceOwnerDocument );\n\t\t\tupdate();\n\t\t};\n\t\tdefaultView.addEventListener( 'resize', updateFrameOffset );\n\t\tscrollContainer?.addEventListener( 'scroll', updateFrameOffset );\n\n\t\tupdateFrameOffset();\n\n\t\treturn () => {\n\t\t\tdefaultView.removeEventListener( 'resize', updateFrameOffset );\n\t\t\tscrollContainer?.removeEventListener( 'scroll', updateFrameOffset );\n\t\t};\n\t}, [ referenceOwnerDocument, update, refs.floating ] );\n\n\tconst mergedFloatingRef = useMergeRefs( [\n\t\tfloating,\n\t\tdialogRef,\n\t\tforwardedRef,\n\t] );\n\n\t// Disable reason: We care to capture the _bubbled_ events from inputs\n\t// within popover as inferring close intent.\n\n\tlet content = (\n\t\t// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions\n\t\t// eslint-disable-next-line jsx-a11y/no-static-element-interactions\n\t\t<AnimatedWrapper\n\t\t\tshouldAnimate={ animate && ! isExpanded }\n\t\t\tplacement={ computedPlacement }\n\t\t\tclassName={ classnames( 'components-popover', className, {\n\t\t\t\t'is-expanded': isExpanded,\n\t\t\t\t'is-positioned': x !== null && y !== null,\n\t\t\t\t// Use the 'alternate' classname for 'toolbar' variant for back compat.\n\t\t\t\t[ `is-${\n\t\t\t\t\tcomputedVariant === 'toolbar'\n\t\t\t\t\t\t? 'alternate'\n\t\t\t\t\t\t: computedVariant\n\t\t\t\t}` ]: computedVariant,\n\t\t\t} ) }\n\t\t\t{ ...contentProps }\n\t\t\tref={ mergedFloatingRef }\n\t\t\t{ ...dialogProps }\n\t\t\ttabIndex={ -1 }\n\t\t\tstyle={\n\t\t\t\tisExpanded\n\t\t\t\t\t? undefined\n\t\t\t\t\t: {\n\t\t\t\t\t\t\tposition: strategy,\n\t\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\t\t// `x` and `y` are framer-motion specific props and are shorthands\n\t\t\t\t\t\t\t// for `translateX` and `translateY`. Currently it is not possible\n\t\t\t\t\t\t\t// to use `translateX` and `translateY` because those values would\n\t\t\t\t\t\t\t// be overridden by the return value of the\n\t\t\t\t\t\t\t// `placementToMotionAnimationProps` function in `AnimatedWrapper`\n\t\t\t\t\t\t\tx: computePopoverPosition( x ),\n\t\t\t\t\t\t\ty: computePopoverPosition( y ),\n\t\t\t\t\t }\n\t\t\t}\n\t\t>\n\t\t\t{ /* Prevents scroll on the document */ }\n\t\t\t{ isExpanded && <ScrollLock /> }\n\t\t\t{ isExpanded && (\n\t\t\t\t<div className=\"components-popover__header\">\n\t\t\t\t\t<span className=\"components-popover__header-title\">\n\t\t\t\t\t\t{ headerTitle }\n\t\t\t\t\t</span>\n\t\t\t\t\t<Button\n\t\t\t\t\t\tclassName=\"components-popover__close\"\n\t\t\t\t\t\ticon={ close }\n\t\t\t\t\t\tonClick={ onClose }\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t\t<div className=\"components-popover__content\">{ children }</div>\n\t\t\t{ hasArrow && (\n\t\t\t\t<div\n\t\t\t\t\tref={ arrowCallbackRef }\n\t\t\t\t\tclassName={ [\n\t\t\t\t\t\t'components-popover__arrow',\n\t\t\t\t\t\t`is-${ computedPlacement.split( '-' )[ 0 ] }`,\n\t\t\t\t\t].join( ' ' ) }\n\t\t\t\t\tstyle={ {\n\t\t\t\t\t\tleft:\n\t\t\t\t\t\t\ttypeof arrowData?.x !== 'undefined' &&\n\t\t\t\t\t\t\tNumber.isFinite( arrowData.x )\n\t\t\t\t\t\t\t\t? `${\n\t\t\t\t\t\t\t\t\t\tarrowData.x +\n\t\t\t\t\t\t\t\t\t\t( frameOffsetRef.current?.x ?? 0 )\n\t\t\t\t\t\t\t\t }px`\n\t\t\t\t\t\t\t\t: '',\n\t\t\t\t\t\ttop:\n\t\t\t\t\t\t\ttypeof arrowData?.y !== 'undefined' &&\n\t\t\t\t\t\t\tNumber.isFinite( arrowData.y )\n\t\t\t\t\t\t\t\t? `${\n\t\t\t\t\t\t\t\t\t\tarrowData.y +\n\t\t\t\t\t\t\t\t\t\t( frameOffsetRef.current?.y ?? 0 )\n\t\t\t\t\t\t\t\t }px`\n\t\t\t\t\t\t\t\t: '',\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t<ArrowTriangle />\n\t\t\t\t</div>\n\t\t\t) }\n\t\t</AnimatedWrapper>\n\t);\n\n\tif ( slot.ref ) {\n\t\tcontent = <Fill name={ slotName }>{ content }</Fill>;\n\t}\n\n\tif ( anchorRef || anchorRect || anchor ) {\n\t\treturn content;\n\t}\n\n\treturn <span ref={ anchorRefFallback }>{ content }</span>;\n};\n\n/**\n * `Popover` renders its content in a floating modal. If no explicit anchor is passed via props, it anchors to its parent element by default.\n *\n * ```jsx\n * import { Button, Popover } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const MyPopover = () => {\n * \tconst [ isVisible, setIsVisible ] = useState( false );\n * \tconst toggleVisible = () => {\n * \t\tsetIsVisible( ( state ) => ! state );\n * \t};\n *\n * \treturn (\n * \t\t<Button variant=\"secondary\" onClick={ toggleVisible }>\n * \t\t\tToggle Popover!\n * \t\t\t{ isVisible && <Popover>Popover is toggled!</Popover> }\n * \t\t</Button>\n * \t);\n * };\n * ```\n *\n */\nexport const Popover = forwardRef( UnforwardedPopover );\n\nfunction PopoverSlot(\n\t{ name = SLOT_NAME }: { name?: string },\n\tref: ForwardedRef< any >\n) {\n\treturn (\n\t\t<Slot\n\t\t\t// @ts-expect-error Need to type `SlotFill`\n\t\t\tbubblesVirtually\n\t\t\tname={ name }\n\t\t\tclassName=\"popover-slot\"\n\t\t\tref={ ref }\n\t\t/>\n\t);\n}\n\n// @ts-expect-error For Legacy Reasons\nPopover.Slot = forwardRef( PopoverSlot );\n// @ts-expect-error For Legacy Reasons\nPopover.__unstableSlotNameProvider = slotNameContext.Provider;\n\nexport default Popover;\n"],"mappings":";AAAA;AACA;AACA;;AAEA,OAAOA,UAAU,MAAM,YAAY;AAEnC,SACCC,WAAW,EACXC,IAAI,IAAIC,cAAc,EACtBC,KAAK,IAAIC,eAAe,EACxBC,UAAU,EACVC,KAAK,EACLC,MAAM,IAAIC,gBAAgB,EAC1BC,IAAI,QACE,wBAAwB;AAC/B;;AAEA;AACA,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,eAAe;;AAExD;AACA;AACA;AACA,SACCC,MAAM,EACNC,eAAe,EACfC,UAAU,EACVC,aAAa,EACbC,UAAU,EACVC,OAAO,EACPC,QAAQ,EACRC,WAAW,QACL,oBAAoB;AAC3B,SACCC,gBAAgB,EAChBC,YAAY,EACZC,uBAAuB,IAAIC,SAAS,QAC9B,oBAAoB;AAC3B,SAASC,KAAK,QAAQ,kBAAkB;AACxC,OAAOC,UAAU,MAAM,uBAAuB;AAC9C,SAASC,IAAI,EAAEC,GAAG,QAAQ,uBAAuB;AACjD,SAASC,kBAAkB,QAAQ,gBAAgB;;AAEnD;AACA;AACA;AACA,OAAOC,MAAM,MAAM,WAAW;AAC9B,OAAOC,UAAU,MAAM,gBAAgB;AACvC,SAASC,IAAI,EAAEC,IAAI,EAAEC,OAAO,QAAQ,cAAc;AAClD,SACCC,sBAAsB,EACtBC,cAAc,EACdC,aAAa,EACbC,mBAAmB,EACnBC,+BAA+B,EAC/BC,yBAAyB,EACzBC,mBAAmB,QACb,SAAS;AAQhB,SAASC,UAAU,IAAIC,gBAAgB,QAAQ,eAAe;AAC9D,SAASC,kBAAkB,QAAQ,uBAAuB;;AAE1D;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,SAAS,GAAG,SAAS;;AAElC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CAAC,cAAA3C,sBAAA,cAAAA,sBAAA,GAAI,CAAC,CAC/B,IAAG,GACJ;IACL;EAAG,GAEHzB,aAAA,CAACD,aAAa,MAAE,CACZ,CAEU,CACjB;EAED,IAAK4F,IAAI,CAACvE,GAAG,EAAG;IACf+G,OAAO,GAAGnI,aAAA,CAACd,IAAI;MAAC+E,IAAI,EAAGyB;IAAU,GAAGyC,OAAe,CAAC;EACrD;EAEA,IAAK1F,SAAS,IAAIC,UAAU,IAAIR,MAAM,EAAG;IACxC,OAAOiG,OAAO;EACf;EAEA,OAAOnI,aAAA;IAAMoB,GAAG,EAAGqC;EAAmB,GAAG0E,OAAe,CAAC;AAC1D,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMS,OAAO,GAAG5K,UAAU,CAAEuD,kBAAmB,CAAC;AAEvD,SAASsH,WAAWA,CACnB;EAAE5E,IAAI,GAAGnE;AAA6B,CAAC,EACvCsB,GAAwB,EACvB;EACD,OACCpB,aAAA,CAACf;EACA;EAAA;IACA6J,gBAAgB;IAChB7E,IAAI,EAAGA,IAAM;IACb9D,SAAS,EAAC,cAAc;IACxBiB,GAAG,EAAGA;EAAK,CACX,CAAC;AAEJ;;AAEA;AACAwH,OAAO,CAAC3J,IAAI,GAAGjB,UAAU,CAAE6K,WAAY,CAAC;AACxC;AACAD,OAAO,CAACG,0BAA0B,GAAG1H,eAAe,CAAC2H,QAAQ;AAE7D,eAAeJ,OAAO"}
@@ -39,21 +39,18 @@
39
39
  * All unexported types and functions are also from the `@floating-ui` library,
40
40
  * and have been copied to this file for convenience.
41
41
  */
42
+
42
43
  function getSide(placement) {
43
44
  return placement.split('-')[0];
44
45
  }
45
-
46
46
  function getMainAxisFromPlacement(placement) {
47
47
  return ['top', 'bottom'].includes(getSide(placement)) ? 'x' : 'y';
48
48
  }
49
-
50
49
  function getCrossAxis(axis) {
51
50
  return axis === 'x' ? 'y' : 'x';
52
51
  }
53
-
54
52
  export const limitShift = (options = {}) => ({
55
53
  options,
56
-
57
54
  fn(middlewareArguments) {
58
55
  const {
59
56
  x,
@@ -83,49 +80,43 @@ export const limitShift = (options = {}) => ({
83
80
  mainAxis: 0,
84
81
  crossAxis: 0,
85
82
  ...rawOffset
86
- }; // At the moment of writing, this is the only difference
83
+ };
84
+
85
+ // At the moment of writing, this is the only difference
87
86
  // with the `limitShift` function from `@floating-ui`.
88
87
  // This offset needs to be added to all min/max limits
89
88
  // in order to make the shift-limiting work as expected.
90
-
91
89
  const additionalFrameOffset = {
92
90
  x: 0,
93
91
  y: 0,
94
92
  ...middlewareData.frameOffset?.amount
95
93
  };
96
-
97
94
  if (checkMainAxis) {
98
95
  const len = mainAxis === 'y' ? 'height' : 'width';
99
96
  const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis + additionalFrameOffset[mainAxis];
100
97
  const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis + additionalFrameOffset[mainAxis];
101
-
102
98
  if (mainAxisCoord < limitMin) {
103
99
  mainAxisCoord = limitMin;
104
100
  } else if (mainAxisCoord > limitMax) {
105
101
  mainAxisCoord = limitMax;
106
102
  }
107
103
  }
108
-
109
104
  if (checkCrossAxis) {
110
105
  var _middlewareData$offse, _middlewareData$offse2;
111
-
112
106
  const len = mainAxis === 'y' ? 'width' : 'height';
113
107
  const isOriginSide = ['top', 'left'].includes(getSide(placement));
114
108
  const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? (_middlewareData$offse = middlewareData.offset?.[crossAxis]) !== null && _middlewareData$offse !== void 0 ? _middlewareData$offse : 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis) + additionalFrameOffset[crossAxis];
115
109
  const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : (_middlewareData$offse2 = middlewareData.offset?.[crossAxis]) !== null && _middlewareData$offse2 !== void 0 ? _middlewareData$offse2 : 0) - (isOriginSide ? computedOffset.crossAxis : 0) + additionalFrameOffset[crossAxis];
116
-
117
110
  if (crossAxisCoord < limitMin) {
118
111
  crossAxisCoord = limitMin;
119
112
  } else if (crossAxisCoord > limitMax) {
120
113
  crossAxisCoord = limitMax;
121
114
  }
122
115
  }
123
-
124
116
  return {
125
117
  [mainAxis]: mainAxisCoord,
126
118
  [crossAxis]: crossAxisCoord
127
119
  };
128
120
  }
129
-
130
121
  });
131
122
  //# sourceMappingURL=limit-shift.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/components/src/popover/limit-shift.ts"],"names":["getSide","placement","split","getMainAxisFromPlacement","includes","getCrossAxis","axis","limitShift","options","fn","middlewareArguments","x","y","rects","middlewareData","offset","mainAxis","checkMainAxis","crossAxis","checkCrossAxis","coords","mainAxisCoord","crossAxisCoord","rawOffset","computedOffset","additionalFrameOffset","frameOffset","amount","len","limitMin","reference","floating","limitMax","isOriginSide"],"mappings":"AAAA;AACA;AACA;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAkDA,SAASA,OAAT,CAAkBC,SAAlB,EAA+C;AAC9C,SAAOA,SAAS,CAACC,KAAV,CAAiB,GAAjB,EAAwB,CAAxB,CAAP;AACA;;AAED,SAASC,wBAAT,CAAmCF,SAAnC,EAAgE;AAC/D,SAAO,CAAE,KAAF,EAAS,QAAT,EAAoBG,QAApB,CAA8BJ,OAAO,CAAEC,SAAF,CAArC,IAAuD,GAAvD,GAA6D,GAApE;AACA;;AAED,SAASI,YAAT,CAAuBC,IAAvB,EAA0C;AACzC,SAAOA,IAAI,KAAK,GAAT,GAAe,GAAf,GAAqB,GAA5B;AACA;;AAED,OAAO,MAAMC,UAAU,GAAG,C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SAAzB,CAFW,2EAE6B,CAJ3C,KAKEe,YAAY,GAAGT,cAAc,CAACN,SAAlB,GAA8B,CAL5C,IAMAO,qBAAqB,CAAEP,SAAF,CAPtB;;AASA,UAAKI,cAAc,GAAGO,QAAtB,EAAiC;AAChCP,QAAAA,cAAc,GAAGO,QAAjB;AACA,OAFD,MAEO,IAAKP,cAAc,GAAGU,QAAtB,EAAiC;AACvCV,QAAAA,cAAc,GAAGU,QAAjB;AACA;AACD;;AAED,WAAO;AACN,OAAEhB,QAAF,GAAcK,aADR;AAEN,OAAEH,SAAF,GAAeI;AAFT,KAAP;AAIA;;AAzFK,CALmB,CAAnB","sourcesContent":["/**\n * External dependencies\n */\nimport type {\n\tAxis,\n\tCoords,\n\tPlacement,\n\tSide,\n\tMiddlewareArguments,\n} from '@floating-ui/react-dom';\n\n/**\n * Parts of this source were derived and modified from `floating-ui`,\n * released under the MIT license.\n *\n * https://github.com/floating-ui/floating-ui\n *\n * Copyright (c) 2021 Floating UI contributors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\n/**\n * Custom limiter function for the `shift` middleware.\n * This function is mostly identical default `limitShift` from ``@floating-ui`;\n * the only difference is that, when computing the min/max shift limits, it\n * also takes into account the iframe offset that is added by the\n * custom \"frameOffset\" middleware.\n *\n * All unexported types and functions are also from the `@floating-ui` library,\n * and have been copied to this file for convenience.\n */\n\ntype LimitShiftOffset =\n\t| ( ( args: MiddlewareArguments ) =>\n\t\t\t| number\n\t\t\t| {\n\t\t\t\t\t/**\n\t\t\t\t\t * Offset the limiting of the axis that runs along the alignment of the\n\t\t\t\t\t * floating element.\n\t\t\t\t\t */\n\t\t\t\t\tmainAxis?: number;\n\t\t\t\t\t/**\n\t\t\t\t\t * Offset the limiting of the axis that runs along the side of the\n\t\t\t\t\t * floating element.\n\t\t\t\t\t */\n\t\t\t\t\tcrossAxis?: number;\n\t\t\t } )\n\t| number\n\t| {\n\t\t\t/**\n\t\t\t * Offset the limiting of the axis that runs along the alignment of the\n\t\t\t * floating element.\n\t\t\t */\n\t\t\tmainAxis?: number;\n\t\t\t/**\n\t\t\t * Offset the limiting of the axis that runs along the side of the\n\t\t\t * floating element.\n\t\t\t */\n\t\t\tcrossAxis?: number;\n\t };\n\ntype LimitShiftOptions = {\n\t/**\n\t * Offset when limiting starts. `0` will limit when the opposite edges of the\n\t * reference and floating elements are aligned.\n\t * - positive = start limiting earlier\n\t * - negative = start limiting later\n\t */\n\toffset: LimitShiftOffset;\n\t/**\n\t * Whether to limit the axis that runs along the alignment of the floating\n\t * element.\n\t */\n\tmainAxis: boolean;\n\t/**\n\t * Whether to limit the axis that runs along the side of the floating element.\n\t */\n\tcrossAxis: boolean;\n};\n\nfunction getSide( placement: Placement ): Side {\n\treturn placement.split( '-' )[ 0 ] as Side;\n}\n\nfunction getMainAxisFromPlacement( placement: Placement ): Axis {\n\treturn [ 'top', 'bottom' ].includes( getSide( placement ) ) ? 'x' : 'y';\n}\n\nfunction getCrossAxis( axis: Axis ): Axis {\n\treturn axis === 'x' ? 'y' : 'x';\n}\n\nexport const limitShift = (\n\toptions: Partial< LimitShiftOptions > = {}\n): {\n\toptions: Partial< LimitShiftOffset >;\n\tfn: ( middlewareArguments: MiddlewareArguments ) => Coords;\n} => ( {\n\toptions,\n\tfn( middlewareArguments ) {\n\t\tconst { x, y, placement, rects, middlewareData } = middlewareArguments;\n\t\tconst {\n\t\t\toffset = 0,\n\t\t\tmainAxis: checkMainAxis = true,\n\t\t\tcrossAxis: checkCrossAxis = true,\n\t\t} = options;\n\n\t\tconst coords = { x, y };\n\t\tconst mainAxis = getMainAxisFromPlacement( placement );\n\t\tconst crossAxis = getCrossAxis( mainAxis );\n\n\t\tlet mainAxisCoord = coords[ mainAxis ];\n\t\tlet crossAxisCoord = coords[ crossAxis ];\n\n\t\tconst rawOffset =\n\t\t\ttypeof offset === 'function'\n\t\t\t\t? offset( middlewareArguments )\n\t\t\t\t: offset;\n\t\tconst computedOffset =\n\t\t\ttypeof rawOffset === 'number'\n\t\t\t\t? { mainAxis: rawOffset, crossAxis: 0 }\n\t\t\t\t: { mainAxis: 0, crossAxis: 0, ...rawOffset };\n\n\t\t// At the moment of writing, this is the only difference\n\t\t// with the `limitShift` function from `@floating-ui`.\n\t\t// This offset needs to be added to all min/max limits\n\t\t// in order to make the shift-limiting work as expected.\n\t\tconst additionalFrameOffset = {\n\t\t\tx: 0,\n\t\t\ty: 0,\n\t\t\t...middlewareData.frameOffset?.amount,\n\t\t};\n\n\t\tif ( checkMainAxis ) {\n\t\t\tconst len = mainAxis === 'y' ? 'height' : 'width';\n\t\t\tconst limitMin =\n\t\t\t\trects.reference[ mainAxis ] -\n\t\t\t\trects.floating[ len ] +\n\t\t\t\tcomputedOffset.mainAxis +\n\t\t\t\tadditionalFrameOffset[ mainAxis ];\n\t\t\tconst limitMax =\n\t\t\t\trects.reference[ mainAxis ] +\n\t\t\t\trects.reference[ len ] -\n\t\t\t\tcomputedOffset.mainAxis +\n\t\t\t\tadditionalFrameOffset[ mainAxis ];\n\n\t\t\tif ( mainAxisCoord < limitMin ) {\n\t\t\t\tmainAxisCoord = limitMin;\n\t\t\t} else if ( mainAxisCoord > limitMax ) {\n\t\t\t\tmainAxisCoord = limitMax;\n\t\t\t}\n\t\t}\n\n\t\tif ( checkCrossAxis ) {\n\t\t\tconst len = mainAxis === 'y' ? 'width' : 'height';\n\t\t\tconst isOriginSide = [ 'top', 'left' ].includes(\n\t\t\t\tgetSide( placement )\n\t\t\t);\n\t\t\tconst limitMin =\n\t\t\t\trects.reference[ crossAxis ] -\n\t\t\t\trects.floating[ len ] +\n\t\t\t\t( isOriginSide\n\t\t\t\t\t? middlewareData.offset?.[ crossAxis ] ?? 0\n\t\t\t\t\t: 0 ) +\n\t\t\t\t( isOriginSide ? 0 : computedOffset.crossAxis ) +\n\t\t\t\tadditionalFrameOffset[ crossAxis ];\n\t\t\tconst limitMax =\n\t\t\t\trects.reference[ crossAxis ] +\n\t\t\t\trects.reference[ len ] +\n\t\t\t\t( isOriginSide\n\t\t\t\t\t? 0\n\t\t\t\t\t: middlewareData.offset?.[ crossAxis ] ?? 0 ) -\n\t\t\t\t( isOriginSide ? computedOffset.crossAxis : 0 ) +\n\t\t\t\tadditionalFrameOffset[ crossAxis ];\n\n\t\t\tif ( crossAxisCoord < limitMin ) {\n\t\t\t\tcrossAxisCoord = limitMin;\n\t\t\t} else if ( crossAxisCoord > limitMax ) {\n\t\t\t\tcrossAxisCoord = limitMax;\n\t\t\t}\n\t\t}\n\n\t\treturn {\n\t\t\t[ mainAxis ]: mainAxisCoord,\n\t\t\t[ crossAxis ]: crossAxisCoord,\n\t\t} as Coords;\n\t},\n} );\n"]}
1
+ {"version":3,"names":["getSide","placement","split","getMainAxisFromPlacement","includes","getCrossAxis","axis","limitShift","options","fn","middlewareArguments","x","y","rects","middlewareData","offset","mainAxis","checkMainAxis","crossAxis","checkCrossAxis","coords","mainAxisCoord","crossAxisCoord","rawOffset","computedOffset","additionalFrameOffset","frameOffset","amount","len","limitMin","reference","floating","limitMax","_middlewareData$offse","_middlewareData$offse2","isOriginSide"],"sources":["@wordpress/components/src/popover/limit-shift.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport type {\n\tAxis,\n\tCoords,\n\tPlacement,\n\tSide,\n\tMiddlewareArguments,\n} from '@floating-ui/react-dom';\n\n/**\n * Parts of this source were derived and modified from `floating-ui`,\n * released under the MIT license.\n *\n * https://github.com/floating-ui/floating-ui\n *\n * Copyright (c) 2021 Floating UI contributors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\n/**\n * Custom limiter function for the `shift` middleware.\n * This function is mostly identical default `limitShift` from ``@floating-ui`;\n * the only difference is that, when computing the min/max shift limits, it\n * also takes into account the iframe offset that is added by the\n * custom \"frameOffset\" middleware.\n *\n * All unexported types and functions are also from the `@floating-ui` library,\n * and have been copied to this file for convenience.\n */\n\ntype LimitShiftOffset =\n\t| ( ( args: MiddlewareArguments ) =>\n\t\t\t| number\n\t\t\t| {\n\t\t\t\t\t/**\n\t\t\t\t\t * Offset the limiting of the axis that runs along the alignment of the\n\t\t\t\t\t * floating element.\n\t\t\t\t\t */\n\t\t\t\t\tmainAxis?: number;\n\t\t\t\t\t/**\n\t\t\t\t\t * Offset the limiting of the axis that runs along the side of the\n\t\t\t\t\t * floating element.\n\t\t\t\t\t */\n\t\t\t\t\tcrossAxis?: number;\n\t\t\t } )\n\t| number\n\t| {\n\t\t\t/**\n\t\t\t * Offset the limiting of the axis that runs along the alignment of the\n\t\t\t * floating element.\n\t\t\t */\n\t\t\tmainAxis?: number;\n\t\t\t/**\n\t\t\t * Offset the limiting of the axis that runs along the side of the\n\t\t\t * floating element.\n\t\t\t */\n\t\t\tcrossAxis?: number;\n\t };\n\ntype LimitShiftOptions = {\n\t/**\n\t * Offset when limiting starts. `0` will limit when the opposite edges of the\n\t * reference and floating elements are aligned.\n\t * - positive = start limiting earlier\n\t * - negative = start limiting later\n\t */\n\toffset: LimitShiftOffset;\n\t/**\n\t * Whether to limit the axis that runs along the alignment of the floating\n\t * element.\n\t */\n\tmainAxis: boolean;\n\t/**\n\t * Whether to limit the axis that runs along the side of the floating element.\n\t */\n\tcrossAxis: boolean;\n};\n\nfunction getSide( placement: Placement ): Side {\n\treturn placement.split( '-' )[ 0 ] as Side;\n}\n\nfunction getMainAxisFromPlacement( placement: Placement ): Axis {\n\treturn [ 'top', 'bottom' ].includes( getSide( placement ) ) ? 'x' : 'y';\n}\n\nfunction getCrossAxis( axis: Axis ): Axis {\n\treturn axis === 'x' ? 'y' : 'x';\n}\n\nexport const limitShift = (\n\toptions: Partial< LimitShiftOptions > = {}\n): {\n\toptions: Partial< LimitShiftOffset >;\n\tfn: ( middlewareArguments: MiddlewareArguments ) => Coords;\n} => ( {\n\toptions,\n\tfn( middlewareArguments ) {\n\t\tconst { x, y, placement, rects, middlewareData } = middlewareArguments;\n\t\tconst {\n\t\t\toffset = 0,\n\t\t\tmainAxis: checkMainAxis = true,\n\t\t\tcrossAxis: checkCrossAxis = true,\n\t\t} = options;\n\n\t\tconst coords = { x, y };\n\t\tconst mainAxis = getMainAxisFromPlacement( placement );\n\t\tconst crossAxis = getCrossAxis( mainAxis );\n\n\t\tlet mainAxisCoord = coords[ mainAxis ];\n\t\tlet crossAxisCoord = coords[ crossAxis ];\n\n\t\tconst rawOffset =\n\t\t\ttypeof offset === 'function'\n\t\t\t\t? offset( middlewareArguments )\n\t\t\t\t: offset;\n\t\tconst computedOffset =\n\t\t\ttypeof rawOffset === 'number'\n\t\t\t\t? { mainAxis: rawOffset, crossAxis: 0 }\n\t\t\t\t: { mainAxis: 0, crossAxis: 0, ...rawOffset };\n\n\t\t// At the moment of writing, this is the only difference\n\t\t// with the `limitShift` function from `@floating-ui`.\n\t\t// This offset needs to be added to all min/max limits\n\t\t// in order to make the shift-limiting work as expected.\n\t\tconst additionalFrameOffset = {\n\t\t\tx: 0,\n\t\t\ty: 0,\n\t\t\t...middlewareData.frameOffset?.amount,\n\t\t};\n\n\t\tif ( checkMainAxis ) {\n\t\t\tconst len = mainAxis === 'y' ? 'height' : 'width';\n\t\t\tconst limitMin =\n\t\t\t\trects.reference[ mainAxis ] -\n\t\t\t\trects.floating[ len ] +\n\t\t\t\tcomputedOffset.mainAxis +\n\t\t\t\tadditionalFrameOffset[ mainAxis ];\n\t\t\tconst limitMax =\n\t\t\t\trects.reference[ mainAxis ] +\n\t\t\t\trects.reference[ len ] -\n\t\t\t\tcomputedOffset.mainAxis +\n\t\t\t\tadditionalFrameOffset[ mainAxis ];\n\n\t\t\tif ( mainAxisCoord < limitMin ) {\n\t\t\t\tmainAxisCoord = limitMin;\n\t\t\t} else if ( mainAxisCoord > limitMax ) {\n\t\t\t\tmainAxisCoord = limitMax;\n\t\t\t}\n\t\t}\n\n\t\tif ( checkCrossAxis ) {\n\t\t\tconst len = mainAxis === 'y' ? 'width' : 'height';\n\t\t\tconst isOriginSide = [ 'top', 'left' ].includes(\n\t\t\t\tgetSide( placement )\n\t\t\t);\n\t\t\tconst limitMin =\n\t\t\t\trects.reference[ crossAxis ] -\n\t\t\t\trects.floating[ len ] +\n\t\t\t\t( isOriginSide\n\t\t\t\t\t? middlewareData.offset?.[ crossAxis ] ?? 0\n\t\t\t\t\t: 0 ) +\n\t\t\t\t( isOriginSide ? 0 : computedOffset.crossAxis ) +\n\t\t\t\tadditionalFrameOffset[ crossAxis ];\n\t\t\tconst limitMax =\n\t\t\t\trects.reference[ crossAxis ] +\n\t\t\t\trects.reference[ len ] +\n\t\t\t\t( isOriginSide\n\t\t\t\t\t? 0\n\t\t\t\t\t: middlewareData.offset?.[ crossAxis ] ?? 0 ) -\n\t\t\t\t( isOriginSide ? computedOffset.crossAxis : 0 ) +\n\t\t\t\tadditionalFrameOffset[ crossAxis ];\n\n\t\t\tif ( crossAxisCoord < limitMin ) {\n\t\t\t\tcrossAxisCoord = limitMin;\n\t\t\t} else if ( crossAxisCoord > limitMax ) {\n\t\t\t\tcrossAxisCoord = limitMax;\n\t\t\t}\n\t\t}\n\n\t\treturn {\n\t\t\t[ mainAxis ]: mainAxisCoord,\n\t\t\t[ crossAxis ]: crossAxisCoord,\n\t\t} as Coords;\n\t},\n} );\n"],"mappings":"AAAA;AACA;AACA;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAkDA,SAASA,OAAOA,CAAEC,SAAoB,EAAS;EAC9C,OAAOA,SAAS,CAACC,KAAK,CAAE,GAAI,CAAC,CAAE,CAAC,CAAE;AACnC;AAEA,SAASC,wBAAwBA,CAAEF,SAAoB,EAAS;EAC/D,OAAO,CAAE,KAAK,EAAE,QAAQ,CAAE,CAACG,QAAQ,CAAEJ,OAAO,CAAEC,SAAU,CAAE,CAAC,GAAG,GAAG,GAAG,GAAG;AACxE;AAEA,SAASI,YAAYA,CAAEC,IAAU,EAAS;EACzC,OAAOA,IA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sBAAA,GACDpB,cAAc,CAACC,MAAM,GAAIG,SAAS,CAAE,cAAAgB,sBAAA,cAAAA,sBAAA,GAAI,CAAC,CAAE,IAC5CC,YAAY,GAAGX,cAAc,CAACN,SAAS,GAAG,CAAC,CAAE,GAC/CO,qBAAqB,CAAEP,SAAS,CAAE;MAEnC,IAAKI,cAAc,GAAGO,QAAQ,EAAG;QAChCP,cAAc,GAAGO,QAAQ;MAC1B,CAAC,MAAM,IAAKP,cAAc,GAAGU,QAAQ,EAAG;QACvCV,cAAc,GAAGU,QAAQ;MAC1B;IACD;IAEA,OAAO;MACN,CAAEhB,QAAQ,GAAIK,aAAa;MAC3B,CAAEH,SAAS,GAAII;IAChB,CAAC;EACF;AACD,CAAC,CAAE"}
@@ -1,36 +1,35 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
+
4
5
  import { size } from '@floating-ui/react-dom';
5
6
  export function overlayMiddlewares() {
6
7
  return [{
7
8
  name: 'overlay',
8
-
9
9
  fn({
10
10
  rects
11
11
  }) {
12
12
  return rects.reference;
13
13
  }
14
-
15
14
  }, size({
16
15
  apply({
17
16
  rects,
18
17
  elements
19
18
  }) {
20
19
  var _elements$floating;
21
-
22
20
  const {
23
21
  firstElementChild
24
- } = (_elements$floating = elements.floating) !== null && _elements$floating !== void 0 ? _elements$floating : {}; // Only HTMLElement instances have the `style` property.
22
+ } = (_elements$floating = elements.floating) !== null && _elements$floating !== void 0 ? _elements$floating : {};
25
23
 
26
- if (!(firstElementChild instanceof HTMLElement)) return; // Reduce the height of the popover to the available space.
24
+ // Only HTMLElement instances have the `style` property.
25
+ if (!(firstElementChild instanceof HTMLElement)) return;
27
26
 
27
+ // Reduce the height of the popover to the available space.
28
28
  Object.assign(firstElementChild.style, {
29
29
  width: `${rects.reference.width}px`,
30
30
  height: `${rects.reference.height}px`
31
31
  });
32
32
  }
33
-
34
33
  })];
35
34
  }
36
35
  //# sourceMappingURL=overlay-middlewares.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/components/src/popover/overlay-middlewares.tsx"],"names":["size","overlayMiddlewares","name","fn","rects","reference","apply","elements","firstElementChild","floating","HTMLElement","Object","assign","style","width","height"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,IAAT,QAA0C,wBAA1C;AAEA,OAAO,SAASC,kBAAT,GAA8B;AACpC,SAAO,CACN;AACCC,IAAAA,IAAI,EAAE,SADP;;AAECC,IAAAA,EAAE,CAAE;AAAEC,MAAAA;AAAF,KAAF,EAAmC;AACpC,aAAOA,KAAK,CAACC,SAAb;AACA;;AAJF,GADM,EAONL,IAAI,CAAE;AACLM,IAAAA,KAAK,CAAE;AAAEF,MAAAA,KAAF;AAASG,MAAAA;AAAT,KAAF,EAAwB;AAAA;;AAC5B,YAAM;AAAEC,QAAAA;AAAF,gCAAwBD,QAAQ,CAACE,QAAjC,mEAA6C,EAAnD,CAD4B,CAG5B;;AACA,UAAK,EAAID,iBAAiB,YAAYE,WAAjC,CAAL,EAAsD,OAJ1B,CAM5B;;AACAC,MAAAA,MAAM,CAACC,MAAP,CAAeJ,iBAAiB,CAACK,KAAjC,EAAwC;AACvCC,QAAAA,KAAK,EAAG,GAAGV,KAAK,CAACC,SAAN,CAAgBS,KAAO,IADK;AAEvCC,QAAAA,MAAM,EAAG,GAAGX,KAAK,CAACC,SAAN,CAAgBU,MAAQ;AAFG,OAAxC;AAIA;;AAZI,GAAF,CAPE,CAAP;AAsBA","sourcesContent":["/**\n * External dependencies\n */\nimport { size, MiddlewareArguments } from '@floating-ui/react-dom';\n\nexport function overlayMiddlewares() {\n\treturn [\n\t\t{\n\t\t\tname: 'overlay',\n\t\t\tfn( { rects }: MiddlewareArguments ) {\n\t\t\t\treturn rects.reference;\n\t\t\t},\n\t\t},\n\t\tsize( {\n\t\t\tapply( { rects, elements } ) {\n\t\t\t\tconst { firstElementChild } = elements.floating ?? {};\n\n\t\t\t\t// Only HTMLElement instances have the `style` property.\n\t\t\t\tif ( ! ( firstElementChild instanceof HTMLElement ) ) return;\n\n\t\t\t\t// Reduce the height of the popover to the available space.\n\t\t\t\tObject.assign( firstElementChild.style, {\n\t\t\t\t\twidth: `${ rects.reference.width }px`,\n\t\t\t\t\theight: `${ rects.reference.height }px`,\n\t\t\t\t} );\n\t\t\t},\n\t\t} ),\n\t];\n}\n"]}
1
+ {"version":3,"names":["size","overlayMiddlewares","name","fn","rects","reference","apply","elements","_elements$floating","firstElementChild","floating","HTMLElement","Object","assign","style","width","height"],"sources":["@wordpress/components/src/popover/overlay-middlewares.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { MiddlewareArguments } from '@floating-ui/react-dom';\nimport { size } from '@floating-ui/react-dom';\n\nexport function overlayMiddlewares() {\n\treturn [\n\t\t{\n\t\t\tname: 'overlay',\n\t\t\tfn( { rects }: MiddlewareArguments ) {\n\t\t\t\treturn rects.reference;\n\t\t\t},\n\t\t},\n\t\tsize( {\n\t\t\tapply( { rects, elements } ) {\n\t\t\t\tconst { firstElementChild } = elements.floating ?? {};\n\n\t\t\t\t// Only HTMLElement instances have the `style` property.\n\t\t\t\tif ( ! ( firstElementChild instanceof HTMLElement ) ) return;\n\n\t\t\t\t// Reduce the height of the popover to the available space.\n\t\t\t\tObject.assign( firstElementChild.style, {\n\t\t\t\t\twidth: `${ rects.reference.width }px`,\n\t\t\t\t\theight: `${ rects.reference.height }px`,\n\t\t\t\t} );\n\t\t\t},\n\t\t} ),\n\t];\n}\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,IAAI,QAAQ,wBAAwB;AAE7C,OAAO,SAASC,kBAAkBA,CAAA,EAAG;EACpC,OAAO,CACN;IACCC,IAAI,EAAE,SAAS;IACfC,EAAEA,CAAE;MAAEC;IAA2B,CAAC,EAAG;MACpC,OAAOA,KAAK,CAACC,SAAS;IACvB;EACD,CAAC,EACDL,IAAI,CAAE;IACLM,KAAKA,CAAE;MAAEF,KAAK;MAAEG;IAAS,CAAC,EAAG;MAAA,IAAAC,kBAAA;MAC5B,MAAM;QAAEC;MAAkB,CAAC,IAAAD,kBAAA,GAAGD,QAAQ,CAACG,QAAQ,cAAAF,kBAAA,cAAAA,kBAAA,GAAI,CAAC,CAAC;;MAErD;MACA,IAAK,EAAIC,iBAAiB,YAAYE,WAAW,CAAE,EAAG;;MAEtD;MACAC,MAAM,CAACC,MAAM,CAAEJ,iBAAiB,CAACK,KAAK,EAAE;QACvCC,KAAK,EAAG,GAAGX,KAAK,CAACC,SAAS,CAACU,KAAO,IAAG;QACrCC,MAAM,EAAG,GAAGZ,KAAK,CAACC,SAAS,CAACW,MAAQ;MACrC,CAAE,CAAC;IACJ;EACD,CAAE,CAAC,CACH;AACF"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["@wordpress/components/src/popover/types.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ReactNode, MutableRefObject, SyntheticEvent } from 'react';\nimport type { Placement } from '@floating-ui/react-dom';\n\ntype PositionYAxis = 'top' | 'middle' | 'bottom';\ntype PositionXAxis = 'left' | 'center' | 'right';\ntype PositionCorner = 'top' | 'right' | 'bottom' | 'left';\n\ntype DomRectWithOwnerDocument = DOMRect & {\n\townerDocument?: Document;\n};\n\ntype PopoverPlacement = Placement | 'overlay';\n\nexport type AnimatedWrapperProps = {\n\tplacement: PopoverPlacement;\n\tshouldAnimate?: boolean;\n};\n\nexport type PopoverAnchorRefReference = MutableRefObject<\n\tElement | null | undefined\n>;\nexport type PopoverAnchorRefTopBottom = { top: Element; bottom: Element };\n\nexport type VirtualElement = Pick< Element, 'getBoundingClientRect' > & {\n\townerDocument?: Document;\n};\n\nexport type PopoverProps = {\n\t/**\n\t * The name of the Slot in which the popover should be rendered. It should\n\t * be also passed to the corresponding `PopoverSlot` component.\n\t *\n\t * @default 'Popover'\n\t */\n\t__unstableSlotName?: string;\n\t/**\n\t * The element that should be used by the popover as its anchor. It can either\n\t * be an `Element` or, alternatively, a `VirtualElement` — ie. an object with\n\t * the `getBoundingClientRect()` and the `ownerDocument` properties defined.\n\t *\n\t * **The anchor element should be stored in local state** rather than a\n\t * plain React ref to ensure reactive updating when it changes.\n\t */\n\tanchor?: Element | VirtualElement | null;\n\t/**\n\t * Whether the popover should animate when opening.\n\t *\n\t * @default true\n\t */\n\tanimate?: boolean;\n\t/**\n\t * The `children` elements rendered as the popover's content.\n\t */\n\tchildren: ReactNode;\n\t/**\n\t * Show the popover fullscreen on mobile viewports.\n\t */\n\texpandOnMobile?: boolean;\n\t/**\n\t * Specifies whether the popover should flip across its axis if there isn't\n\t * space for it in the normal placement.\n\t * When the using a 'top' placement, the popover will switch to a 'bottom'\n\t * placement. When using a 'left' placement, the popover will switch to a\n\t * `right' placement.\n\t * The popover will retain its alignment of 'start' or 'end' when flipping.\n\t *\n\t * @default true\n\t */\n\tflip?: boolean;\n\t/**\n\t * By default, the _first tabbable element_ in the popover will receive focus\n\t * when it mounts. This is the same as setting this prop to `\"firstElement\"`.\n\t * Specifying a `false` value disables the focus handling entirely (this\n\t * should only be done when an appropriately accessible substitute behavior\n\t * exists).\n\t *\n\t * @default 'firstElement'\n\t */\n\tfocusOnMount?: 'firstElement' | boolean;\n\t/**\n\t * A callback invoked when the focus leaves the opened popover. This should\n\t * only be provided in advanced use-cases when a popover should close under\n\t * specific circumstances (for example, if the new `document.activeElement`\n\t * is content of or otherwise controlling popover visibility).\n\t *\n\t * When not provided, the `onClose` callback will be called instead.\n\t */\n\tonFocusOutside?: ( event: SyntheticEvent ) => void;\n\t/**\n\t * Used to customize the header text shown when the popover is toggled to\n\t * fullscreen on mobile viewports (see the `expandOnMobile` prop).\n\t */\n\theaderTitle?: string;\n\t/**\n\t * Used to show/hide the arrow that points at the popover's anchor.\n\t *\n\t * @default true\n\t */\n\tnoArrow?: boolean;\n\t/**\n\t * The distance (in px) between the anchor and the popover.\n\t */\n\toffset?: number;\n\t/**\n\t * A callback invoked when the popover should be closed.\n\t */\n\tonClose?: () => void;\n\t/**\n\t * Used to specify the popover's position with respect to its anchor.\n\t *\n\t * @default 'bottom-start'\n\t */\n\tplacement?: PopoverPlacement;\n\t/**\n\t * Legacy way to specify the popover's position with respect to its anchor.\n\t * _Note: this prop is deprecated. Use the `placement` prop instead._\n\t */\n\tposition?:\n\t\t| `${ PositionYAxis }`\n\t\t| `${ PositionYAxis } ${ PositionXAxis }`\n\t\t| `${ PositionYAxis } ${ PositionXAxis } ${ PositionCorner }`;\n\t/**\n\t * Adjusts the size of the popover to prevent its contents from going out of\n\t * view when meeting the viewport edges.\n\t *\n\t * @default true\n\t */\n\tresize?: boolean;\n\t/**\n\t * Enables the `Popover` to shift in order to stay in view when meeting the\n\t * viewport edges.\n\t *\n\t * @default false\n\t */\n\tshift?: boolean;\n\t/**\n\t * Specifies the popover's style.\n\t *\n\t * Leave undefined for the default style. Other values are:\n\t * - 'unstyled': The popover is essentially without any visible style, it\n\t * has no background, border, outline or drop shadow, but\n\t * the popover contents are still displayed.\n\t * - 'toolbar': A style that has no elevation, but a high contrast with\n\t * other elements. This is matches the style of the\n\t * `Toolbar` component.\n\t *\n\t * @default undefined\n\t */\n\tvariant?: 'unstyled' | 'toolbar';\n\t// Deprecated props\n\t/**\n\t * Prevent the popover from flipping and resizing when meeting the viewport\n\t * edges. _Note: this prop is deprecated. Instead, provide use the individual\n\t * `flip` and `resize` props._\n\t *\n\t * @deprecated\n\t */\n\t__unstableForcePosition?: boolean;\n\t/**\n\t * An object extending a `DOMRect` with an additional optional `ownerDocument`\n\t * property, used to specify a fixed popover position.\n\t *\n\t * @deprecated\n\t */\n\tanchorRect?: DomRectWithOwnerDocument;\n\t/**\n\t * Used to specify a fixed popover position. It can be an `Element`, a React\n\t * reference to an `element`, an object with a `top` and a `bottom` properties\n\t * (both pointing to elements), or a `range`.\n\t *\n\t * @deprecated\n\t */\n\tanchorRef?:\n\t\t| Element\n\t\t| PopoverAnchorRefReference\n\t\t| PopoverAnchorRefTopBottom\n\t\t| Range;\n\t/**\n\t * A function returning the same value as the one expected by the `anchorRect`\n\t * prop, used to specify a dynamic popover position.\n\t *\n\t * @deprecated\n\t */\n\tgetAnchorRect?: (\n\t\tfallbackReferenceElement: Element | null\n\t) => DomRectWithOwnerDocument;\n\t/**\n\t * Used to enable a different visual style for the popover.\n\t * _Note: this prop is deprecated. Use the `variant` prop with the\n\t * 'toolbar' value instead._\n\t *\n\t * @deprecated\n\t */\n\tisAlternate?: boolean;\n};\n"],"mappings":""}
@@ -6,6 +6,7 @@
6
6
  /**
7
7
  * Internal dependencies
8
8
  */
9
+
9
10
  const POSITION_TO_PLACEMENT = {
10
11
  bottom: 'bottom',
11
12
  top: 'top',
@@ -58,6 +59,7 @@ const POSITION_TO_PLACEMENT = {
58
59
  'middle center right': 'bottom',
59
60
  'middle center top': 'bottom'
60
61
  };
62
+
61
63
  /**
62
64
  * Converts the `Popover`'s legacy "position" prop to the new "placement" prop
63
65
  * (used by `floating-ui`).
@@ -65,12 +67,11 @@ const POSITION_TO_PLACEMENT = {
65
67
  * @param position The legacy position
66
68
  * @return The corresponding placement
67
69
  */
68
-
69
70
  export const positionToPlacement = position => {
70
71
  var _POSITION_TO_PLACEMEN;
71
-
72
72
  return (_POSITION_TO_PLACEMEN = POSITION_TO_PLACEMENT[position]) !== null && _POSITION_TO_PLACEMEN !== void 0 ? _POSITION_TO_PLACEMEN : 'bottom';
73
73
  };
74
+
74
75
  /**
75
76
  * @typedef AnimationOrigin
76
77
  * @type {Object}
@@ -143,8 +144,8 @@ const PLACEMENT_TO_ANIMATION_ORIGIN = {
143
144
  originX: 0.5,
144
145
  originY: 0.5
145
146
  } // open from center, center
146
-
147
147
  };
148
+
148
149
  /**
149
150
  * Given the floating-ui `placement`, compute the framer-motion props for the
150
151
  * popover's entry animation.
@@ -152,7 +153,6 @@ const PLACEMENT_TO_ANIMATION_ORIGIN = {
152
153
  * @param placement A placement string from floating ui
153
154
  * @return The object containing the motion props
154
155
  */
155
-
156
156
  export const placementToMotionAnimationProps = placement => {
157
157
  const translateProp = placement.startsWith('top') || placement.startsWith('bottom') ? 'translateY' : 'translateX';
158
158
  const translateDirection = placement.startsWith('top') || placement.startsWith('left') ? 1 : -1;
@@ -174,6 +174,7 @@ export const placementToMotionAnimationProps = placement => {
174
174
  }
175
175
  };
176
176
  };
177
+
177
178
  /**
178
179
  * Returns the offset of a document's frame element.
179
180
  *
@@ -182,14 +183,11 @@ export const placementToMotionAnimationProps = placement => {
182
183
  * @return The offset of the document's frame element, or undefined if the
183
184
  * document has no frame element.
184
185
  */
185
-
186
186
  export const getFrameOffset = document => {
187
187
  const frameElement = document?.defaultView?.frameElement;
188
-
189
188
  if (!frameElement) {
190
189
  return;
191
190
  }
192
-
193
191
  const iframeRect = frameElement.getBoundingClientRect();
194
192
  return {
195
193
  x: iframeRect.left,
@@ -198,14 +196,12 @@ export const getFrameOffset = document => {
198
196
  };
199
197
  export const getFrameScale = document => {
200
198
  const frameElement = document?.defaultView?.frameElement;
201
-
202
199
  if (!frameElement) {
203
200
  return {
204
201
  x: 1,
205
202
  y: 1
206
203
  };
207
204
  }
208
-
209
205
  const rect = frameElement.getBoundingClientRect();
210
206
  return {
211
207
  x: rect.width / frameElement.offsetWidth,
@@ -221,7 +217,6 @@ export const getReferenceOwnerDocument = ({
221
217
  fallbackDocument
222
218
  }) => {
223
219
  var _resultingReferenceOw;
224
-
225
220
  // In floating-ui's terms:
226
221
  // - "reference" refers to the popover's anchor element.
227
222
  // - "floating" refers the floating popover's element.
@@ -230,7 +225,6 @@ export const getReferenceOwnerDocument = ({
230
225
  // with the `getBoundingClientRect()` function (like real elements).
231
226
  // See https://floating-ui.com/docs/virtual-elements for more info.
232
227
  let resultingReferenceOwnerDoc;
233
-
234
228
  if (anchor) {
235
229
  resultingReferenceOwnerDoc = anchor.ownerDocument;
236
230
  } else if (anchorRef?.top) {
@@ -247,7 +241,6 @@ export const getReferenceOwnerDocument = ({
247
241
  } else if (getAnchorRect) {
248
242
  resultingReferenceOwnerDoc = getAnchorRect(fallbackReferenceElement)?.ownerDocument;
249
243
  }
250
-
251
244
  return (_resultingReferenceOw = resultingReferenceOwnerDoc) !== null && _resultingReferenceOw !== void 0 ? _resultingReferenceOw : fallbackDocument;
252
245
  };
253
246
  export const getReferenceElement = ({
@@ -259,9 +252,7 @@ export const getReferenceElement = ({
259
252
  scale
260
253
  }) => {
261
254
  var _referenceElement;
262
-
263
255
  let referenceElement = null;
264
-
265
256
  if (anchor) {
266
257
  referenceElement = anchor;
267
258
  } else if (anchorRef?.top) {
@@ -275,7 +266,6 @@ export const getReferenceElement = ({
275
266
  const bottomRect = anchorRef.bottom.getBoundingClientRect();
276
267
  return new window.DOMRect(topRect.x, topRect.y, topRect.width, bottomRect.bottom - topRect.top);
277
268
  }
278
-
279
269
  };
280
270
  } else if (anchorRef?.current) {
281
271
  // Standard React ref.
@@ -290,25 +280,21 @@ export const getReferenceElement = ({
290
280
  getBoundingClientRect() {
291
281
  return anchorRect;
292
282
  }
293
-
294
283
  };
295
284
  } else if (getAnchorRect) {
296
285
  // Create a virtual element for the ref.
297
286
  referenceElement = {
298
287
  getBoundingClientRect() {
299
288
  var _rect$x, _rect$y, _rect$width, _rect$height;
300
-
301
289
  const rect = getAnchorRect(fallbackReferenceElement);
302
290
  return new window.DOMRect((_rect$x = rect.x) !== null && _rect$x !== void 0 ? _rect$x : rect.left, (_rect$y = rect.y) !== null && _rect$y !== void 0 ? _rect$y : rect.top, (_rect$width = rect.width) !== null && _rect$width !== void 0 ? _rect$width : rect.right - rect.left, (_rect$height = rect.height) !== null && _rect$height !== void 0 ? _rect$height : rect.bottom - rect.top);
303
291
  }
304
-
305
292
  };
306
293
  } else if (fallbackReferenceElement) {
307
294
  // If no explicit ref is passed via props, fall back to
308
295
  // anchoring to the popover's parent node.
309
296
  referenceElement = fallbackReferenceElement.parentElement;
310
297
  }
311
-
312
298
  if (referenceElement && (scale.x !== 1 || scale.y !== 1)) {
313
299
  // If the popover is inside an iframe, the coordinates of the
314
300
  // reference element need to be scaled to match the iframe's scale.
@@ -317,13 +303,13 @@ export const getReferenceElement = ({
317
303
  getBoundingClientRect() {
318
304
  return new window.DOMRect(rect.x * scale.x, rect.y * scale.y, rect.width * scale.x, rect.height * scale.y);
319
305
  }
320
-
321
306
  };
322
- } // Convert any `undefined` value to `null`.
323
-
307
+ }
324
308
 
309
+ // Convert any `undefined` value to `null`.
325
310
  return (_referenceElement = referenceElement) !== null && _referenceElement !== void 0 ? _referenceElement : null;
326
311
  };
312
+
327
313
  /**
328
314
  * Computes the final coordinate that needs to be applied to the floating
329
315
  * element when applying transform inline styles, defaulting to `undefined`
@@ -333,6 +319,5 @@ export const getReferenceElement = ({
333
319
  * @return The coordinate's value to be used for inline styles. An `undefined`
334
320
  * return value means "no style set" for this coordinate.
335
321
  */
336
-
337
322
  export const computePopoverPosition = c => c === null || Number.isNaN(c) ? undefined : Math.round(c);
338
323
  //# sourceMappingURL=utils.js.map