@wordpress/components 26.0.1-next.5a1d1283.0 → 26.0.2

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 (3463) hide show
  1. package/.stylelintrc.js +23 -0
  2. package/CHANGELOG.md +359 -3
  3. package/CONTRIBUTING.md +60 -118
  4. package/LICENSE.md +1 -1
  5. package/README.md +2 -7
  6. package/build/alignment-matrix-control/cell.js +11 -8
  7. package/build/alignment-matrix-control/cell.js.map +1 -1
  8. package/build/alignment-matrix-control/icon.js +5 -6
  9. package/build/alignment-matrix-control/icon.js.map +1 -1
  10. package/build/alignment-matrix-control/index.js +30 -46
  11. package/build/alignment-matrix-control/index.js.map +1 -1
  12. package/build/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js +4 -8
  13. package/build/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js.map +1 -1
  14. package/build/alignment-matrix-control/styles/alignment-matrix-control-styles.js +4 -8
  15. package/build/alignment-matrix-control/styles/alignment-matrix-control-styles.js.map +1 -1
  16. package/build/alignment-matrix-control/utils.js +32 -15
  17. package/build/alignment-matrix-control/utils.js.map +1 -1
  18. package/build/angle-picker-control/angle-circle.js +5 -5
  19. package/build/angle-picker-control/angle-circle.js.map +1 -1
  20. package/build/angle-picker-control/index.js +9 -21
  21. package/build/angle-picker-control/index.js.map +1 -1
  22. package/build/angle-picker-control/styles/angle-picker-control-styles.js +10 -28
  23. package/build/angle-picker-control/styles/angle-picker-control-styles.js.map +1 -1
  24. package/build/angle-picker-control/types.js.map +1 -1
  25. package/build/animate/index.js +1 -2
  26. package/build/animate/index.js.map +1 -1
  27. package/build/animation/index.js +6 -0
  28. package/build/animation/index.js.map +1 -1
  29. package/build/autocomplete/autocompleter-ui.js +6 -5
  30. package/build/autocomplete/autocompleter-ui.js.map +1 -1
  31. package/build/autocomplete/autocompleter-ui.native.js +10 -10
  32. package/build/autocomplete/autocompleter-ui.native.js.map +1 -1
  33. package/build/autocomplete/background-view.android.js +3 -4
  34. package/build/autocomplete/background-view.android.js.map +1 -1
  35. package/build/autocomplete/background-view.ios.js +3 -4
  36. package/build/autocomplete/background-view.ios.js.map +1 -1
  37. package/build/autocomplete/index.js +108 -55
  38. package/build/autocomplete/index.js.map +1 -1
  39. package/build/autocomplete/types.js.map +1 -1
  40. package/build/base-control/index.js +24 -22
  41. package/build/base-control/index.js.map +1 -1
  42. package/build/base-control/index.native.js +3 -3
  43. package/build/base-control/index.native.js.map +1 -1
  44. package/build/base-control/styles/base-control-styles.js +14 -19
  45. package/build/base-control/styles/base-control-styles.js.map +1 -1
  46. package/build/border-box-control/border-box-control/component.js +13 -14
  47. package/build/border-box-control/border-box-control/component.js.map +1 -1
  48. package/build/border-box-control/border-box-control/hook.js +6 -4
  49. package/build/border-box-control/border-box-control/hook.js.map +1 -1
  50. package/build/border-box-control/border-box-control-linked-button/component.js +7 -8
  51. package/build/border-box-control/border-box-control-linked-button/component.js.map +1 -1
  52. package/build/border-box-control/border-box-control-linked-button/hook.js +3 -3
  53. package/build/border-box-control/border-box-control-linked-button/hook.js.map +1 -1
  54. package/build/border-box-control/border-box-control-split-controls/component.js +10 -10
  55. package/build/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  56. package/build/border-box-control/border-box-control-split-controls/hook.js +3 -3
  57. package/build/border-box-control/border-box-control-split-controls/hook.js.map +1 -1
  58. package/build/border-box-control/border-box-control-visualizer/component.js +4 -5
  59. package/build/border-box-control/border-box-control-visualizer/component.js.map +1 -1
  60. package/build/border-box-control/border-box-control-visualizer/hook.js +3 -3
  61. package/build/border-box-control/border-box-control-visualizer/hook.js.map +1 -1
  62. package/build/border-box-control/styles.js +3 -6
  63. package/build/border-box-control/styles.js.map +1 -1
  64. package/build/border-box-control/types.js.map +1 -1
  65. package/build/border-control/border-control/component.js +17 -15
  66. package/build/border-control/border-control/component.js.map +1 -1
  67. package/build/border-control/border-control/hook.js +21 -18
  68. package/build/border-control/border-control/hook.js.map +1 -1
  69. package/build/border-control/border-control-dropdown/component.js +20 -18
  70. package/build/border-control/border-control-dropdown/component.js.map +1 -1
  71. package/build/border-control/border-control-dropdown/hook.js +6 -5
  72. package/build/border-control/border-control-dropdown/hook.js.map +1 -1
  73. package/build/border-control/border-control-style-picker/component.js +23 -52
  74. package/build/border-control/border-control-style-picker/component.js.map +1 -1
  75. package/build/border-control/styles.js +17 -36
  76. package/build/border-control/styles.js.map +1 -1
  77. package/build/border-control/types.js.map +1 -1
  78. package/build/box-control/all-input-control.js +36 -30
  79. package/build/box-control/all-input-control.js.map +1 -1
  80. package/build/box-control/axial-input-controls.js +41 -55
  81. package/build/box-control/axial-input-controls.js.map +1 -1
  82. package/build/box-control/icon.js +6 -6
  83. package/build/box-control/icon.js.map +1 -1
  84. package/build/box-control/index.js +24 -27
  85. package/build/box-control/index.js.map +1 -1
  86. package/build/box-control/input-controls.js +46 -38
  87. package/build/box-control/input-controls.js.map +1 -1
  88. package/build/box-control/linked-button.js +4 -4
  89. package/build/box-control/linked-button.js.map +1 -1
  90. package/build/box-control/styles/box-control-icon-styles.js +6 -12
  91. package/build/box-control/styles/box-control-icon-styles.js.map +1 -1
  92. package/build/box-control/styles/box-control-styles.js +44 -112
  93. package/build/box-control/styles/box-control-styles.js.map +1 -1
  94. package/build/box-control/types.js.map +1 -1
  95. package/build/box-control/utils.js +125 -14
  96. package/build/box-control/utils.js.map +1 -1
  97. package/build/button/deprecated.js +4 -4
  98. package/build/button/deprecated.js.map +1 -1
  99. package/build/button/index.js +41 -24
  100. package/build/button/index.js.map +1 -1
  101. package/build/button/index.native.js +10 -11
  102. package/build/button/index.native.js.map +1 -1
  103. package/build/button/types.js.map +1 -1
  104. package/build/button-group/index.js +5 -6
  105. package/build/button-group/index.js.map +1 -1
  106. package/build/card/card/component.js +14 -15
  107. package/build/card/card/component.js.map +1 -1
  108. package/build/card/card/hook.js +3 -3
  109. package/build/card/card/hook.js.map +1 -1
  110. package/build/card/card-body/component.js +6 -8
  111. package/build/card/card-body/component.js.map +1 -1
  112. package/build/card/card-body/hook.js +3 -3
  113. package/build/card/card-body/hook.js.map +1 -1
  114. package/build/card/card-divider/component.js +5 -7
  115. package/build/card/card-divider/component.js.map +1 -1
  116. package/build/card/card-divider/hook.js +3 -3
  117. package/build/card/card-divider/hook.js.map +1 -1
  118. package/build/card/card-footer/component.js +5 -7
  119. package/build/card/card-footer/component.js.map +1 -1
  120. package/build/card/card-footer/hook.js +3 -3
  121. package/build/card/card-footer/hook.js.map +1 -1
  122. package/build/card/card-header/component.js +5 -7
  123. package/build/card/card-header/component.js.map +1 -1
  124. package/build/card/card-header/hook.js +3 -3
  125. package/build/card/card-header/hook.js.map +1 -1
  126. package/build/card/card-media/component.js +5 -7
  127. package/build/card/card-media/component.js.map +1 -1
  128. package/build/card/card-media/hook.js +3 -3
  129. package/build/card/card-media/hook.js.map +1 -1
  130. package/build/card/context.js +1 -2
  131. package/build/card/context.js.map +1 -1
  132. package/build/card/index.js +2 -2
  133. package/build/card/index.js.map +1 -1
  134. package/build/card/styles.js +14 -28
  135. package/build/card/styles.js.map +1 -1
  136. package/build/checkbox-control/index.js +9 -9
  137. package/build/checkbox-control/index.js.map +1 -1
  138. package/build/circular-option-picker/circular-option-picker-actions.js +53 -0
  139. package/build/circular-option-picker/circular-option-picker-actions.js.map +1 -0
  140. package/build/circular-option-picker/circular-option-picker-context.js +13 -0
  141. package/build/circular-option-picker/circular-option-picker-context.js.map +1 -0
  142. package/build/circular-option-picker/circular-option-picker-option-group.js +26 -0
  143. package/build/circular-option-picker/circular-option-picker-option-group.js.map +1 -0
  144. package/build/circular-option-picker/circular-option-picker-option.js +98 -0
  145. package/build/circular-option-picker/circular-option-picker-option.js.map +1 -0
  146. package/build/circular-option-picker/circular-option-picker.js +151 -0
  147. package/build/circular-option-picker/circular-option-picker.js.map +1 -0
  148. package/build/circular-option-picker/index.js +29 -138
  149. package/build/circular-option-picker/index.js.map +1 -1
  150. package/build/circular-option-picker/types.js.map +1 -1
  151. package/build/clipboard-button/index.js +3 -2
  152. package/build/clipboard-button/index.js.map +1 -1
  153. package/build/color-control/index.native.js +3 -4
  154. package/build/color-control/index.native.js.map +1 -1
  155. package/build/color-indicator/index.js +5 -6
  156. package/build/color-indicator/index.js.map +1 -1
  157. package/build/color-indicator/index.native.js +15 -16
  158. package/build/color-indicator/index.native.js.map +1 -1
  159. package/build/color-palette/index.js +83 -40
  160. package/build/color-palette/index.js.map +1 -1
  161. package/build/color-palette/index.native.js +26 -22
  162. package/build/color-palette/index.native.js.map +1 -1
  163. package/build/color-palette/styles.js +1 -2
  164. package/build/color-palette/styles.js.map +1 -1
  165. package/build/color-palette/types.js.map +1 -1
  166. package/build/color-picker/color-copy-button.js +10 -10
  167. package/build/color-picker/color-copy-button.js.map +1 -1
  168. package/build/color-picker/color-input.js +4 -4
  169. package/build/color-picker/color-input.js.map +1 -1
  170. package/build/color-picker/component.js +24 -15
  171. package/build/color-picker/component.js.map +1 -1
  172. package/build/color-picker/hex-input.js +4 -4
  173. package/build/color-picker/hex-input.js.map +1 -1
  174. package/build/color-picker/hsl-input.js +60 -38
  175. package/build/color-picker/hsl-input.js.map +1 -1
  176. package/build/color-picker/hsv-color-picker.native.js +6 -6
  177. package/build/color-picker/hsv-color-picker.native.js.map +1 -1
  178. package/build/color-picker/hue-picker.native.js +8 -7
  179. package/build/color-picker/hue-picker.native.js.map +1 -1
  180. package/build/color-picker/index.native.js +12 -11
  181. package/build/color-picker/index.native.js.map +1 -1
  182. package/build/color-picker/input-with-slider.js +6 -6
  183. package/build/color-picker/input-with-slider.js.map +1 -1
  184. package/build/color-picker/legacy-adapter.js +2 -2
  185. package/build/color-picker/legacy-adapter.js.map +1 -1
  186. package/build/color-picker/picker.js +80 -3
  187. package/build/color-picker/picker.js.map +1 -1
  188. package/build/color-picker/rgb-input.js +5 -5
  189. package/build/color-picker/rgb-input.js.map +1 -1
  190. package/build/color-picker/saturation-picker.native.js +9 -8
  191. package/build/color-picker/saturation-picker.native.js.map +1 -1
  192. package/build/color-picker/styles.js +17 -25
  193. package/build/color-picker/styles.js.map +1 -1
  194. package/build/color-picker/types.js.map +1 -1
  195. package/build/combobox-control/index.js +11 -14
  196. package/build/combobox-control/index.js.map +1 -1
  197. package/build/combobox-control/styles.js +4 -5
  198. package/build/combobox-control/styles.js.map +1 -1
  199. package/build/composite/current/index.js +43 -0
  200. package/build/composite/current/index.js.map +1 -0
  201. package/build/composite/index.js +10 -24
  202. package/build/composite/index.js.map +1 -1
  203. package/build/composite/legacy/index.js +127 -0
  204. package/build/composite/legacy/index.js.map +1 -0
  205. package/build/composite/v2.js +17 -0
  206. package/build/composite/v2.js.map +1 -0
  207. package/build/confirm-dialog/component.js +85 -18
  208. package/build/confirm-dialog/component.js.map +1 -1
  209. package/build/confirm-dialog/styles.js +1 -2
  210. package/build/confirm-dialog/styles.js.map +1 -1
  211. package/build/confirm-dialog/types.js.map +1 -1
  212. package/build/context/constants.js +15 -0
  213. package/build/context/constants.js.map +1 -0
  214. package/build/{ui/context → context}/context-connect.js +1 -1
  215. package/build/context/context-connect.js.map +1 -0
  216. package/build/{ui/context → context}/context-system-provider.js +6 -7
  217. package/build/context/context-system-provider.js.map +1 -0
  218. package/build/{ui/context → context}/get-styled-class-name-from-key.js +1 -2
  219. package/build/context/get-styled-class-name-from-key.js.map +1 -0
  220. package/build/context/index.js.map +1 -0
  221. package/build/{ui/context → context}/use-context-system.js +1 -1
  222. package/build/context/use-context-system.js.map +1 -0
  223. package/build/context/utils.js.map +1 -0
  224. package/build/context/wordpress-component.js.map +1 -0
  225. package/build/custom-gradient-picker/constants.js +5 -10
  226. package/build/custom-gradient-picker/constants.js.map +1 -1
  227. package/build/custom-gradient-picker/gradient-bar/constants.js +7 -14
  228. package/build/custom-gradient-picker/gradient-bar/constants.js.map +1 -1
  229. package/build/custom-gradient-picker/gradient-bar/control-points.js +26 -17
  230. package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  231. package/build/custom-gradient-picker/gradient-bar/index.js +7 -6
  232. package/build/custom-gradient-picker/gradient-bar/index.js.map +1 -1
  233. package/build/custom-gradient-picker/index.js +10 -25
  234. package/build/custom-gradient-picker/index.js.map +1 -1
  235. package/build/custom-gradient-picker/index.native.js +7 -7
  236. package/build/custom-gradient-picker/index.native.js.map +1 -1
  237. package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.js +2 -4
  238. package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.js.map +1 -1
  239. package/build/custom-gradient-picker/types.js.map +1 -1
  240. package/build/custom-select-control/index.js +20 -18
  241. package/build/custom-select-control/index.js.map +1 -1
  242. package/build/custom-select-control/styles.js +1 -2
  243. package/build/custom-select-control/styles.js.map +1 -1
  244. package/build/custom-select-control-v2/index.js +90 -0
  245. package/build/custom-select-control-v2/index.js.map +1 -0
  246. package/build/custom-select-control-v2/styles.js +81 -0
  247. package/build/custom-select-control-v2/styles.js.map +1 -0
  248. package/build/custom-select-control-v2/types.js.map +1 -0
  249. package/build/dashicon/index.js +3 -4
  250. package/build/dashicon/index.js.map +1 -1
  251. package/build/dashicon/index.native.js +5 -6
  252. package/build/dashicon/index.native.js.map +1 -1
  253. package/build/date-time/constants.js +1 -2
  254. package/build/date-time/constants.js.map +1 -1
  255. package/build/date-time/date/index.js +11 -11
  256. package/build/date-time/date/index.js.map +1 -1
  257. package/build/date-time/date/styles.js +15 -21
  258. package/build/date-time/date/styles.js.map +1 -1
  259. package/build/date-time/date-time/index.js +6 -7
  260. package/build/date-time/date-time/index.js.map +1 -1
  261. package/build/date-time/date-time/styles.js +1 -2
  262. package/build/date-time/date-time/styles.js.map +1 -1
  263. package/build/date-time/index.js +1 -2
  264. package/build/date-time/index.js.map +1 -1
  265. package/build/date-time/time/index.js +32 -23
  266. package/build/date-time/time/index.js.map +1 -1
  267. package/build/date-time/time/styles.js +35 -54
  268. package/build/date-time/time/styles.js.map +1 -1
  269. package/build/date-time/time/timezone.js +16 -8
  270. package/build/date-time/time/timezone.js.map +1 -1
  271. package/build/dimension-control/index.js +8 -7
  272. package/build/dimension-control/index.js.map +1 -1
  273. package/build/dimension-control/sizes.js +1 -2
  274. package/build/dimension-control/sizes.js.map +1 -1
  275. package/build/dimension-control/types.js.map +1 -1
  276. package/build/disabled/index.js +4 -4
  277. package/build/disabled/index.js.map +1 -1
  278. package/build/disabled/index.native.js +3 -4
  279. package/build/disabled/index.native.js.map +1 -1
  280. package/build/disabled/styles/disabled-styles.js +1 -2
  281. package/build/disabled/styles/disabled-styles.js.map +1 -1
  282. package/build/disclosure/index.js +35 -7
  283. package/build/disclosure/index.js.map +1 -1
  284. package/build/disclosure/types.js.map +1 -0
  285. package/build/divider/component.js +9 -9
  286. package/build/divider/component.js.map +1 -1
  287. package/build/divider/styles.js +7 -8
  288. package/build/divider/styles.js.map +1 -1
  289. package/build/divider/types.js.map +1 -1
  290. package/build/draggable/index.js +5 -5
  291. package/build/draggable/index.js.map +1 -1
  292. package/build/draggable/index.native.js +9 -9
  293. package/build/draggable/index.native.js.map +1 -1
  294. package/build/drop-zone/index.js +9 -9
  295. package/build/drop-zone/index.js.map +1 -1
  296. package/build/dropdown/dropdown-content-wrapper.js +5 -7
  297. package/build/dropdown/dropdown-content-wrapper.js.map +1 -1
  298. package/build/dropdown/index.js +18 -31
  299. package/build/dropdown/index.js.map +1 -1
  300. package/build/dropdown/index.native.js +3 -3
  301. package/build/dropdown/index.native.js.map +1 -1
  302. package/build/dropdown/styles.js +4 -5
  303. package/build/dropdown/styles.js.map +1 -1
  304. package/build/dropdown/types.js.map +1 -1
  305. package/build/dropdown-menu/index.js +15 -11
  306. package/build/dropdown-menu/index.js.map +1 -1
  307. package/build/dropdown-menu/index.native.js +7 -8
  308. package/build/dropdown-menu/index.native.js.map +1 -1
  309. package/build/dropdown-menu/types.js.map +1 -1
  310. package/build/dropdown-menu-v2/index.js +204 -166
  311. package/build/dropdown-menu-v2/index.js.map +1 -1
  312. package/build/dropdown-menu-v2/styles.js +76 -80
  313. package/build/dropdown-menu-v2/styles.js.map +1 -1
  314. package/build/dropdown-menu-v2/types.js.map +1 -1
  315. package/build/duotone-picker/color-list-picker/index.js +26 -11
  316. package/build/duotone-picker/color-list-picker/index.js.map +1 -1
  317. package/build/duotone-picker/custom-duotone-bar.js +2 -2
  318. package/build/duotone-picker/custom-duotone-bar.js.map +1 -1
  319. package/build/duotone-picker/duotone-picker.js +53 -16
  320. package/build/duotone-picker/duotone-picker.js.map +1 -1
  321. package/build/duotone-picker/duotone-swatch.js +4 -5
  322. package/build/duotone-picker/duotone-swatch.js.map +1 -1
  323. package/build/duotone-picker/types.js.map +1 -1
  324. package/build/elevation/component.js +5 -7
  325. package/build/elevation/component.js.map +1 -1
  326. package/build/elevation/hook.js +7 -7
  327. package/build/elevation/hook.js.map +1 -1
  328. package/build/elevation/styles.js +1 -2
  329. package/build/elevation/styles.js.map +1 -1
  330. package/build/external-link/index.js +8 -9
  331. package/build/external-link/index.js.map +1 -1
  332. package/build/external-link/index.native.js +4 -5
  333. package/build/external-link/index.native.js.map +1 -1
  334. package/build/external-link/styles/external-link-styles.js +1 -2
  335. package/build/external-link/styles/external-link-styles.js.map +1 -1
  336. package/build/flex/context.js +1 -2
  337. package/build/flex/context.js.map +1 -1
  338. package/build/flex/flex/component.js +6 -8
  339. package/build/flex/flex/component.js.map +1 -1
  340. package/build/flex/flex/hook.js +6 -6
  341. package/build/flex/flex/hook.js.map +1 -1
  342. package/build/flex/flex-block/component.js +5 -7
  343. package/build/flex/flex-block/component.js.map +1 -1
  344. package/build/flex/flex-block/hook.js +1 -1
  345. package/build/flex/flex-block/hook.js.map +1 -1
  346. package/build/flex/flex-item/component.js +5 -7
  347. package/build/flex/flex-item/component.js.map +1 -1
  348. package/build/flex/flex-item/hook.js +4 -4
  349. package/build/flex/flex-item/hook.js.map +1 -1
  350. package/build/flex/index.js +2 -2
  351. package/build/flex/index.js.map +1 -1
  352. package/build/flex/styles.js +5 -10
  353. package/build/flex/styles.js.map +1 -1
  354. package/build/flex/types.js.map +1 -1
  355. package/build/focal-point-picker/controls.js +10 -6
  356. package/build/focal-point-picker/controls.js.map +1 -1
  357. package/build/focal-point-picker/focal-point.js +2 -2
  358. package/build/focal-point-picker/focal-point.js.map +1 -1
  359. package/build/focal-point-picker/focal-point.native.js +4 -4
  360. package/build/focal-point-picker/focal-point.native.js.map +1 -1
  361. package/build/focal-point-picker/grid.js +6 -6
  362. package/build/focal-point-picker/grid.js.map +1 -1
  363. package/build/focal-point-picker/index.js +14 -12
  364. package/build/focal-point-picker/index.js.map +1 -1
  365. package/build/focal-point-picker/index.native.js +14 -15
  366. package/build/focal-point-picker/index.native.js.map +1 -1
  367. package/build/focal-point-picker/media.js +4 -4
  368. package/build/focal-point-picker/media.js.map +1 -1
  369. package/build/focal-point-picker/styles/focal-point-picker-style.js +41 -58
  370. package/build/focal-point-picker/styles/focal-point-picker-style.js.map +1 -1
  371. package/build/focal-point-picker/styles/focal-point-style.js +12 -4
  372. package/build/focal-point-picker/styles/focal-point-style.js.map +1 -1
  373. package/build/focal-point-picker/tooltip/index.native.js +9 -9
  374. package/build/focal-point-picker/tooltip/index.native.js.map +1 -1
  375. package/build/focal-point-picker/types.js.map +1 -1
  376. package/build/focal-point-picker/utils.js +1 -2
  377. package/build/focal-point-picker/utils.js.map +1 -1
  378. package/build/focusable-iframe/index.js +2 -6
  379. package/build/focusable-iframe/index.js.map +1 -1
  380. package/build/focusable-iframe/types.js +6 -0
  381. package/build/focusable-iframe/types.js.map +1 -0
  382. package/build/font-size-picker/constants.js +2 -4
  383. package/build/font-size-picker/constants.js.map +1 -1
  384. package/build/font-size-picker/font-size-picker-select.js +5 -4
  385. package/build/font-size-picker/font-size-picker-select.js.map +1 -1
  386. package/build/font-size-picker/font-size-picker-toggle-group.js +7 -7
  387. package/build/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  388. package/build/font-size-picker/index.js +32 -40
  389. package/build/font-size-picker/index.js.map +1 -1
  390. package/build/font-size-picker/index.native.js +21 -18
  391. package/build/font-size-picker/index.native.js.map +1 -1
  392. package/build/font-size-picker/styles.js +18 -30
  393. package/build/font-size-picker/styles.js.map +1 -1
  394. package/build/font-size-picker/types.js.map +1 -1
  395. package/build/font-size-picker/utils.js +1 -1
  396. package/build/font-size-picker/utils.js.map +1 -1
  397. package/build/footer-message-control/index.native.js +3 -3
  398. package/build/footer-message-control/index.native.js.map +1 -1
  399. package/build/form-file-upload/index.js +5 -5
  400. package/build/form-file-upload/index.js.map +1 -1
  401. package/build/form-toggle/index.js +6 -7
  402. package/build/form-toggle/index.js.map +1 -1
  403. package/build/form-token-field/index.js +31 -22
  404. package/build/form-token-field/index.js.map +1 -1
  405. package/build/form-token-field/styles.js +4 -5
  406. package/build/form-token-field/styles.js.map +1 -1
  407. package/build/form-token-field/suggestions-list.js +7 -7
  408. package/build/form-token-field/suggestions-list.js.map +1 -1
  409. package/build/form-token-field/token-input.js +5 -6
  410. package/build/form-token-field/token-input.js.map +1 -1
  411. package/build/form-token-field/token.js +7 -6
  412. package/build/form-token-field/token.js.map +1 -1
  413. package/build/form-token-field/types.js.map +1 -1
  414. package/build/gradient-picker/index.js +85 -65
  415. package/build/gradient-picker/index.js.map +1 -1
  416. package/build/gradient-picker/types.js.map +1 -1
  417. package/build/grid/component.js +5 -7
  418. package/build/grid/component.js.map +1 -1
  419. package/build/grid/hook.js +3 -3
  420. package/build/grid/hook.js.map +1 -1
  421. package/build/grid/types.js.map +1 -1
  422. package/build/guide/icons.js +3 -3
  423. package/build/guide/icons.js.map +1 -1
  424. package/build/guide/index.js +11 -11
  425. package/build/guide/index.js.map +1 -1
  426. package/build/guide/page-control.js +5 -5
  427. package/build/guide/page-control.js.map +1 -1
  428. package/build/guide/page.js +2 -1
  429. package/build/guide/page.js.map +1 -1
  430. package/build/h-stack/component.js +5 -7
  431. package/build/h-stack/component.js.map +1 -1
  432. package/build/h-stack/hook.js +4 -4
  433. package/build/h-stack/hook.js.map +1 -1
  434. package/build/heading/component.js +5 -7
  435. package/build/heading/component.js.map +1 -1
  436. package/build/heading/hook.js +8 -5
  437. package/build/heading/hook.js.map +1 -1
  438. package/build/heading/types.js.map +1 -1
  439. package/build/higher-order/navigate-regions/index.js +4 -4
  440. package/build/higher-order/navigate-regions/index.js.map +1 -1
  441. package/build/higher-order/with-constrained-tabbing/index.js +4 -5
  442. package/build/higher-order/with-constrained-tabbing/index.js.map +1 -1
  443. package/build/higher-order/with-fallback-styles/index.js +4 -3
  444. package/build/higher-order/with-fallback-styles/index.js.map +1 -1
  445. package/build/higher-order/with-filters/index.js +2 -1
  446. package/build/higher-order/with-filters/index.js.map +1 -1
  447. package/build/higher-order/with-focus-outside/index.js +5 -6
  448. package/build/higher-order/with-focus-outside/index.js.map +1 -1
  449. package/build/higher-order/with-focus-outside/index.native.js +5 -5
  450. package/build/higher-order/with-focus-outside/index.native.js.map +1 -1
  451. package/build/higher-order/with-focus-return/index.js +4 -4
  452. package/build/higher-order/with-focus-return/index.js.map +1 -1
  453. package/build/higher-order/with-notices/index.js +6 -6
  454. package/build/higher-order/with-notices/index.js.map +1 -1
  455. package/build/higher-order/with-spoken-messages/index.js +5 -6
  456. package/build/higher-order/with-spoken-messages/index.js.map +1 -1
  457. package/build/icon/index.js +1 -2
  458. package/build/icon/index.js.map +1 -1
  459. package/build/index.js +8 -2
  460. package/build/index.js.map +1 -1
  461. package/build/index.native.js +29 -21
  462. package/build/index.native.js.map +1 -1
  463. package/build/input-control/backdrop.js +5 -3
  464. package/build/input-control/backdrop.js.map +1 -1
  465. package/build/input-control/index.js +36 -35
  466. package/build/input-control/index.js.map +1 -1
  467. package/build/input-control/input-base.js +33 -29
  468. package/build/input-control/input-base.js.map +1 -1
  469. package/build/input-control/input-field.js +5 -5
  470. package/build/input-control/input-field.js.map +1 -1
  471. package/build/input-control/input-prefix-wrapper.js +5 -7
  472. package/build/input-control/input-prefix-wrapper.js.map +1 -1
  473. package/build/input-control/input-suffix-wrapper.js +5 -7
  474. package/build/input-control/input-suffix-wrapper.js.map +1 -1
  475. package/build/input-control/label.js +3 -3
  476. package/build/input-control/label.js.map +1 -1
  477. package/build/input-control/reducer/actions.js +11 -22
  478. package/build/input-control/reducer/actions.js.map +1 -1
  479. package/build/input-control/reducer/reducer.js +2 -2
  480. package/build/input-control/reducer/reducer.js.map +1 -1
  481. package/build/input-control/reducer/state.js +1 -2
  482. package/build/input-control/reducer/state.js.map +1 -1
  483. package/build/input-control/styles/input-control-styles.js +58 -60
  484. package/build/input-control/styles/input-control-styles.js.map +1 -1
  485. package/build/input-control/types.js.map +1 -1
  486. package/build/isolated-event-container/index.js +3 -3
  487. package/build/isolated-event-container/index.js.map +1 -1
  488. package/build/item-group/context.js +1 -2
  489. package/build/item-group/context.js.map +1 -1
  490. package/build/item-group/item/component.js +6 -8
  491. package/build/item-group/item/component.js.map +1 -1
  492. package/build/item-group/item/hook.js +3 -3
  493. package/build/item-group/item/hook.js.map +1 -1
  494. package/build/item-group/item-group/component.js +6 -8
  495. package/build/item-group/item-group/component.js.map +1 -1
  496. package/build/item-group/item-group/hook.js +3 -3
  497. package/build/item-group/item-group/hook.js.map +1 -1
  498. package/build/item-group/styles.js +13 -20
  499. package/build/item-group/styles.js.map +1 -1
  500. package/build/keyboard-shortcuts/index.js +5 -5
  501. package/build/keyboard-shortcuts/index.js.map +1 -1
  502. package/build/keyboard-shortcuts/index.native.js +1 -2
  503. package/build/keyboard-shortcuts/index.native.js.map +1 -1
  504. package/build/lock-unlock.js +18 -0
  505. package/build/lock-unlock.js.map +1 -0
  506. package/build/menu-group/index.js +6 -6
  507. package/build/menu-group/index.js.map +1 -1
  508. package/build/menu-item/index.js +11 -12
  509. package/build/menu-item/index.js.map +1 -1
  510. package/build/menu-items-choice/index.js +4 -5
  511. package/build/menu-items-choice/index.js.map +1 -1
  512. package/build/mobile/audio-player/index.native.js +24 -25
  513. package/build/mobile/audio-player/index.native.js.map +1 -1
  514. package/build/mobile/badge/index.native.js +4 -5
  515. package/build/mobile/badge/index.native.js.map +1 -1
  516. package/build/mobile/bottom-sheet/bottom-sheet-context.native.js +1 -2
  517. package/build/mobile/bottom-sheet/bottom-sheet-context.native.js.map +1 -1
  518. package/build/mobile/bottom-sheet/bottom-sheet-navigation/bottom-sheet-navigation-context.native.js +1 -2
  519. package/build/mobile/bottom-sheet/bottom-sheet-navigation/bottom-sheet-navigation-context.native.js.map +1 -1
  520. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +11 -11
  521. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
  522. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +8 -8
  523. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
  524. package/build/mobile/bottom-sheet/button.native.js +5 -6
  525. package/build/mobile/bottom-sheet/button.native.js.map +1 -1
  526. package/build/mobile/bottom-sheet/cell.native.js +23 -23
  527. package/build/mobile/bottom-sheet/cell.native.js.map +1 -1
  528. package/build/mobile/bottom-sheet/chevron-back.native.js +4 -5
  529. package/build/mobile/bottom-sheet/chevron-back.native.js.map +1 -1
  530. package/build/mobile/bottom-sheet/color-cell.native.js +4 -4
  531. package/build/mobile/bottom-sheet/color-cell.native.js.map +1 -1
  532. package/build/mobile/bottom-sheet/cycle-picker-cell.native.js +2 -2
  533. package/build/mobile/bottom-sheet/cycle-picker-cell.native.js.map +1 -1
  534. package/build/mobile/bottom-sheet/footer-message-cell.native.js +3 -4
  535. package/build/mobile/bottom-sheet/footer-message-cell.native.js.map +1 -1
  536. package/build/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js +3 -4
  537. package/build/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js.map +1 -1
  538. package/build/mobile/bottom-sheet/index.native.js +25 -16
  539. package/build/mobile/bottom-sheet/index.native.js.map +1 -1
  540. package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js +4 -4
  541. package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
  542. package/build/mobile/bottom-sheet/link-cell.native.js +3 -3
  543. package/build/mobile/bottom-sheet/link-cell.native.js.map +1 -1
  544. package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js +6 -7
  545. package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
  546. package/build/mobile/bottom-sheet/lock-icon/index.native.js +2 -2
  547. package/build/mobile/bottom-sheet/lock-icon/index.native.js.map +1 -1
  548. package/build/mobile/bottom-sheet/nav-bar/action-button.native.js +4 -5
  549. package/build/mobile/bottom-sheet/nav-bar/action-button.native.js.map +1 -1
  550. package/build/mobile/bottom-sheet/nav-bar/apply-button.native.js +6 -7
  551. package/build/mobile/bottom-sheet/nav-bar/apply-button.native.js.map +1 -1
  552. package/build/mobile/bottom-sheet/nav-bar/back-button.native.js +10 -11
  553. package/build/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
  554. package/build/mobile/bottom-sheet/nav-bar/heading.native.js +3 -4
  555. package/build/mobile/bottom-sheet/nav-bar/heading.native.js.map +1 -1
  556. package/build/mobile/bottom-sheet/nav-bar/index.native.js +3 -4
  557. package/build/mobile/bottom-sheet/nav-bar/index.native.js.map +1 -1
  558. package/build/mobile/bottom-sheet/picker-cell.native.js +3 -3
  559. package/build/mobile/bottom-sheet/picker-cell.native.js.map +1 -1
  560. package/build/mobile/bottom-sheet/radio-cell.native.js +3 -3
  561. package/build/mobile/bottom-sheet/radio-cell.native.js.map +1 -1
  562. package/build/mobile/bottom-sheet/range-cell.native.js +10 -10
  563. package/build/mobile/bottom-sheet/range-cell.native.js.map +1 -1
  564. package/build/mobile/bottom-sheet/range-text-input.native.js +7 -7
  565. package/build/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
  566. package/build/mobile/bottom-sheet/ripple.native.js +5 -6
  567. package/build/mobile/bottom-sheet/ripple.native.js.map +1 -1
  568. package/build/mobile/bottom-sheet/stepper-cell/index.native.js +9 -9
  569. package/build/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
  570. package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js +8 -9
  571. package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js.map +1 -1
  572. package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js +8 -9
  573. package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js.map +1 -1
  574. package/build/mobile/bottom-sheet/sub-sheet/index.native.js +4 -4
  575. package/build/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
  576. package/build/mobile/bottom-sheet/switch-cell.native.js +3 -3
  577. package/build/mobile/bottom-sheet/switch-cell.native.js.map +1 -1
  578. package/build/mobile/bottom-sheet-select-control/index.native.js +10 -10
  579. package/build/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
  580. package/build/mobile/bottom-sheet-text-control/index.native.js +11 -11
  581. package/build/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
  582. package/build/mobile/color-settings/gradient-picker-screen.native.js +4 -5
  583. package/build/mobile/color-settings/gradient-picker-screen.native.js.map +1 -1
  584. package/build/mobile/color-settings/index.native.js +8 -8
  585. package/build/mobile/color-settings/index.native.js.map +1 -1
  586. package/build/mobile/color-settings/palette.screen.native.js +28 -24
  587. package/build/mobile/color-settings/palette.screen.native.js.map +1 -1
  588. package/build/mobile/color-settings/picker-screen.native.js +4 -4
  589. package/build/mobile/color-settings/picker-screen.native.js.map +1 -1
  590. package/build/mobile/color-settings/utils.native.js +1 -2
  591. package/build/mobile/color-settings/utils.native.js.map +1 -1
  592. package/build/mobile/cycle-select-control/index.native.js +3 -3
  593. package/build/mobile/cycle-select-control/index.native.js.map +1 -1
  594. package/build/mobile/dashicons/index.native.js +6 -9
  595. package/build/mobile/dashicons/index.native.js.map +1 -1
  596. package/build/mobile/focal-point-settings-panel/index.native.js +8 -8
  597. package/build/mobile/focal-point-settings-panel/index.native.js.map +1 -1
  598. package/build/mobile/global-styles-context/index.native.js +3 -3
  599. package/build/mobile/global-styles-context/index.native.js.map +1 -1
  600. package/build/mobile/global-styles-context/utils.native.js +84 -18
  601. package/build/mobile/global-styles-context/utils.native.js.map +1 -1
  602. package/build/mobile/gradient/index.native.js +9 -9
  603. package/build/mobile/gradient/index.native.js.map +1 -1
  604. package/build/mobile/gridicons/index.native.js +11 -19
  605. package/build/mobile/gridicons/index.native.js.map +1 -1
  606. package/build/mobile/html-text-input/index.native.js +8 -8
  607. package/build/mobile/html-text-input/index.native.js.map +1 -1
  608. package/build/mobile/image/constants.js +11 -0
  609. package/build/mobile/image/constants.js.map +1 -0
  610. package/build/mobile/image/icon-customize.native.js +3 -4
  611. package/build/mobile/image/icon-customize.native.js.map +1 -1
  612. package/build/mobile/image/icon-retry.native.js +4 -5
  613. package/build/mobile/image/icon-retry.native.js.map +1 -1
  614. package/build/mobile/image/image-editing-button.native.js +7 -8
  615. package/build/mobile/image/image-editing-button.native.js.map +1 -1
  616. package/build/mobile/image/index.native.js +116 -33
  617. package/build/mobile/image/index.native.js.map +1 -1
  618. package/build/mobile/keyboard-avoiding-view/index.android.js +2 -4
  619. package/build/mobile/keyboard-avoiding-view/index.android.js.map +1 -1
  620. package/build/mobile/keyboard-avoiding-view/index.ios.js +5 -5
  621. package/build/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
  622. package/build/mobile/keyboard-aware-flat-list/index.android.js +43 -12
  623. package/build/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
  624. package/build/mobile/keyboard-aware-flat-list/index.ios.js +49 -73
  625. package/build/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
  626. package/build/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js +39 -0
  627. package/build/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js.map +1 -0
  628. package/build/mobile/keyboard-aware-flat-list/{use-scroll-to-text-input.native.js → use-scroll-to-section.native.js} +22 -29
  629. package/build/mobile/keyboard-aware-flat-list/use-scroll-to-section.native.js.map +1 -0
  630. package/build/mobile/keyboard-aware-flat-list/use-scroll.native.js +93 -0
  631. package/build/mobile/keyboard-aware-flat-list/use-scroll.native.js.map +1 -0
  632. package/build/mobile/link-picker/index.native.js +11 -10
  633. package/build/mobile/link-picker/index.native.js.map +1 -1
  634. package/build/mobile/link-picker/link-picker-results.native.js +7 -6
  635. package/build/mobile/link-picker/link-picker-results.native.js.map +1 -1
  636. package/build/mobile/link-picker/link-picker-screen.native.js +4 -4
  637. package/build/mobile/link-picker/link-picker-screen.native.js.map +1 -1
  638. package/build/mobile/link-settings/index.native.js +12 -12
  639. package/build/mobile/link-settings/index.native.js.map +1 -1
  640. package/build/mobile/link-settings/link-rel.native.js +3 -4
  641. package/build/mobile/link-settings/link-rel.native.js.map +1 -1
  642. package/build/mobile/link-settings/link-settings-navigation.native.js +9 -9
  643. package/build/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
  644. package/build/mobile/link-settings/link-settings-screen.native.js +4 -4
  645. package/build/mobile/link-settings/link-settings-screen.native.js.map +1 -1
  646. package/build/mobile/media-edit/index.native.js +5 -7
  647. package/build/mobile/media-edit/index.native.js.map +1 -1
  648. package/build/mobile/picker/index.android.js +8 -7
  649. package/build/mobile/picker/index.android.js.map +1 -1
  650. package/build/mobile/picker/index.ios.js +4 -4
  651. package/build/mobile/picker/index.ios.js.map +1 -1
  652. package/build/mobile/segmented-control/index.native.js +13 -13
  653. package/build/mobile/segmented-control/index.native.js.map +1 -1
  654. package/build/mobile/utils/alignments.native.js +4 -7
  655. package/build/mobile/utils/alignments.native.js.map +1 -1
  656. package/build/mobile/utils/get-px-from-css-unit.native.js +301 -0
  657. package/build/mobile/utils/get-px-from-css-unit.native.js.map +1 -0
  658. package/build/modal/aria-helper.js +17 -28
  659. package/build/modal/aria-helper.js.map +1 -1
  660. package/build/modal/index.js +93 -44
  661. package/build/modal/index.js.map +1 -1
  662. package/build/modal/types.js.map +1 -1
  663. package/build/navigable-container/container.js +4 -4
  664. package/build/navigable-container/container.js.map +1 -1
  665. package/build/navigable-container/menu.js +4 -5
  666. package/build/navigable-container/menu.js.map +1 -1
  667. package/build/navigable-container/tabbable.js +4 -5
  668. package/build/navigable-container/tabbable.js.map +1 -1
  669. package/build/navigable-container/types.js.map +1 -1
  670. package/build/navigation/back-button/index.js +6 -7
  671. package/build/navigation/back-button/index.js.map +1 -1
  672. package/build/navigation/constants.js +2 -4
  673. package/build/navigation/constants.js.map +1 -1
  674. package/build/navigation/context.js +1 -2
  675. package/build/navigation/context.js.map +1 -1
  676. package/build/navigation/group/context.js +1 -2
  677. package/build/navigation/group/context.js.map +1 -1
  678. package/build/navigation/group/index.js +8 -8
  679. package/build/navigation/group/index.js.map +1 -1
  680. package/build/navigation/index.js +6 -6
  681. package/build/navigation/index.js.map +1 -1
  682. package/build/navigation/item/base-content.js +3 -3
  683. package/build/navigation/item/base-content.js.map +1 -1
  684. package/build/navigation/item/base.js +3 -2
  685. package/build/navigation/item/base.js.map +1 -1
  686. package/build/navigation/item/index.js +7 -8
  687. package/build/navigation/item/index.js.map +1 -1
  688. package/build/navigation/menu/context.js +1 -2
  689. package/build/navigation/menu/context.js.map +1 -1
  690. package/build/navigation/menu/index.js +10 -10
  691. package/build/navigation/menu/index.js.map +1 -1
  692. package/build/navigation/menu/menu-title-search.js +6 -8
  693. package/build/navigation/menu/menu-title-search.js.map +1 -1
  694. package/build/navigation/menu/menu-title.js +9 -8
  695. package/build/navigation/menu/menu-title.js.map +1 -1
  696. package/build/navigation/menu/search-no-results-found.js +2 -2
  697. package/build/navigation/menu/search-no-results-found.js.map +1 -1
  698. package/build/navigation/styles/navigation-styles.js +35 -48
  699. package/build/navigation/styles/navigation-styles.js.map +1 -1
  700. package/build/navigation/use-navigation-tree-nodes.js.map +1 -1
  701. package/build/navigator/context.js +1 -2
  702. package/build/navigator/context.js.map +1 -1
  703. package/build/navigator/navigator-back-button/component.js +5 -7
  704. package/build/navigator/navigator-back-button/component.js.map +1 -1
  705. package/build/navigator/navigator-back-button/hook.js +1 -1
  706. package/build/navigator/navigator-back-button/hook.js.map +1 -1
  707. package/build/navigator/navigator-button/component.js +5 -7
  708. package/build/navigator/navigator-button/component.js.map +1 -1
  709. package/build/navigator/navigator-button/hook.js +1 -1
  710. package/build/navigator/navigator-button/hook.js.map +1 -1
  711. package/build/navigator/navigator-provider/component.js +19 -22
  712. package/build/navigator/navigator-provider/component.js.map +1 -1
  713. package/build/navigator/navigator-screen/component.js +28 -69
  714. package/build/navigator/navigator-screen/component.js.map +1 -1
  715. package/build/navigator/navigator-to-parent-button/component.js +5 -7
  716. package/build/navigator/navigator-to-parent-button/component.js.map +1 -1
  717. package/build/navigator/styles.js +51 -0
  718. package/build/navigator/styles.js.map +1 -0
  719. package/build/navigator/use-navigator.js +1 -2
  720. package/build/navigator/use-navigator.js.map +1 -1
  721. package/build/notice/index.js +27 -15
  722. package/build/notice/index.js.map +1 -1
  723. package/build/notice/index.native.js +8 -8
  724. package/build/notice/index.native.js.map +1 -1
  725. package/build/notice/list.js +4 -5
  726. package/build/notice/list.js.map +1 -1
  727. package/build/notice/list.native.js +5 -5
  728. package/build/notice/list.native.js.map +1 -1
  729. package/build/number-control/index.js +40 -44
  730. package/build/number-control/index.js.map +1 -1
  731. package/build/number-control/styles/number-control-styles.js +8 -11
  732. package/build/number-control/styles/number-control-styles.js.map +1 -1
  733. package/build/number-control/types.js.map +1 -1
  734. package/build/palette-edit/index.js +55 -75
  735. package/build/palette-edit/index.js.map +1 -1
  736. package/build/palette-edit/styles.js +51 -52
  737. package/build/palette-edit/styles.js.map +1 -1
  738. package/build/panel/actions.native.js +6 -6
  739. package/build/panel/actions.native.js.map +1 -1
  740. package/build/panel/body.js +11 -12
  741. package/build/panel/body.js.map +1 -1
  742. package/build/panel/body.native.js +5 -6
  743. package/build/panel/body.native.js.map +1 -1
  744. package/build/panel/bottom-separator-cover.native.js +3 -4
  745. package/build/panel/bottom-separator-cover.native.js.map +1 -1
  746. package/build/panel/header.js +4 -5
  747. package/build/panel/header.js.map +1 -1
  748. package/build/panel/index.js +6 -7
  749. package/build/panel/index.js.map +1 -1
  750. package/build/panel/row.js +5 -6
  751. package/build/panel/row.js.map +1 -1
  752. package/build/panel/types.js.map +1 -1
  753. package/build/placeholder/index.js +19 -13
  754. package/build/placeholder/index.js.map +1 -1
  755. package/build/popover/index.js +89 -106
  756. package/build/popover/index.js.map +1 -1
  757. package/build/popover/types.js.map +1 -1
  758. package/build/popover/utils.js +9 -41
  759. package/build/popover/utils.js.map +1 -1
  760. package/build/private-apis.js +20 -19
  761. package/build/private-apis.js.map +1 -1
  762. package/build/private-apis.native.js +20 -0
  763. package/build/private-apis.native.js.map +1 -0
  764. package/build/progress-bar/index.js +9 -10
  765. package/build/progress-bar/index.js.map +1 -1
  766. package/build/progress-bar/styles.js +9 -13
  767. package/build/progress-bar/styles.js.map +1 -1
  768. package/build/query-controls/author-select.js +5 -3
  769. package/build/query-controls/author-select.js.map +1 -1
  770. package/build/query-controls/category-select.js +6 -3
  771. package/build/query-controls/category-select.js.map +1 -1
  772. package/build/query-controls/index.js +18 -14
  773. package/build/query-controls/index.js.map +1 -1
  774. package/build/query-controls/index.native.js +9 -9
  775. package/build/query-controls/index.native.js.map +1 -1
  776. package/build/query-controls/types.js.map +1 -1
  777. package/build/radio-control/index.js +8 -8
  778. package/build/radio-control/index.js.map +1 -1
  779. package/build/radio-control/index.native.js +4 -5
  780. package/build/radio-control/index.native.js.map +1 -1
  781. package/build/radio-group/context.js +21 -0
  782. package/build/radio-group/context.js.map +1 -0
  783. package/build/radio-group/index.js +27 -24
  784. package/build/radio-group/index.js.map +1 -1
  785. package/build/radio-group/radio.js +56 -0
  786. package/build/radio-group/radio.js.map +1 -0
  787. package/build/radio-group/types.js +6 -0
  788. package/build/radio-group/types.js.map +1 -0
  789. package/build/range-control/index.js +19 -20
  790. package/build/range-control/index.js.map +1 -1
  791. package/build/range-control/index.native.js +4 -4
  792. package/build/range-control/index.native.js.map +1 -1
  793. package/build/range-control/input-range.js +3 -3
  794. package/build/range-control/input-range.js.map +1 -1
  795. package/build/range-control/mark.js +3 -3
  796. package/build/range-control/mark.js.map +1 -1
  797. package/build/range-control/rail.js +5 -5
  798. package/build/range-control/rail.js.map +1 -1
  799. package/build/range-control/styles/range-control-styles.js +45 -60
  800. package/build/range-control/styles/range-control-styles.js.map +1 -1
  801. package/build/range-control/tooltip.js +3 -2
  802. package/build/range-control/tooltip.js.map +1 -1
  803. package/build/resizable-box/index.js +5 -6
  804. package/build/resizable-box/index.js.map +1 -1
  805. package/build/resizable-box/index.native.js +3 -4
  806. package/build/resizable-box/index.native.js.map +1 -1
  807. package/build/resizable-box/resize-tooltip/index.js +5 -5
  808. package/build/resizable-box/resize-tooltip/index.js.map +1 -1
  809. package/build/resizable-box/resize-tooltip/label.js +5 -5
  810. package/build/resizable-box/resize-tooltip/label.js.map +1 -1
  811. package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js +9 -12
  812. package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js.map +1 -1
  813. package/build/resizable-box/resize-tooltip/utils.js +1 -2
  814. package/build/resizable-box/resize-tooltip/utils.js.map +1 -1
  815. package/build/responsive-wrapper/index.js +5 -5
  816. package/build/responsive-wrapper/index.js.map +1 -1
  817. package/build/sandbox/index.js +14 -12
  818. package/build/sandbox/index.js.map +1 -1
  819. package/build/sandbox/index.native.js +12 -12
  820. package/build/sandbox/index.native.js.map +1 -1
  821. package/build/sandbox/types.js.map +1 -1
  822. package/build/scroll-lock/index.js +1 -2
  823. package/build/scroll-lock/index.js.map +1 -1
  824. package/build/scrollable/component.js +5 -7
  825. package/build/scrollable/component.js.map +1 -1
  826. package/build/scrollable/hook.js +3 -3
  827. package/build/scrollable/hook.js.map +1 -1
  828. package/build/scrollable/styles.js +7 -14
  829. package/build/scrollable/styles.js.map +1 -1
  830. package/build/search-control/index.js +71 -53
  831. package/build/search-control/index.js.map +1 -1
  832. package/build/search-control/index.native.js +15 -15
  833. package/build/search-control/index.native.js.map +1 -1
  834. package/build/search-control/styles.js +37 -0
  835. package/build/search-control/styles.js.map +1 -0
  836. package/build/search-control/types.js.map +1 -1
  837. package/build/select-control/chevron-down.js +3 -4
  838. package/build/select-control/chevron-down.js.map +1 -1
  839. package/build/select-control/index.js +14 -14
  840. package/build/select-control/index.js.map +1 -1
  841. package/build/select-control/index.native.js +4 -5
  842. package/build/select-control/index.native.js.map +1 -1
  843. package/build/select-control/styles/select-control-styles.js +26 -40
  844. package/build/select-control/styles/select-control-styles.js.map +1 -1
  845. package/build/select-control/types.js.map +1 -1
  846. package/build/shortcut/index.js +3 -4
  847. package/build/shortcut/index.js.map +1 -1
  848. package/build/slot-fill/bubbles-virtually/fill.js +9 -10
  849. package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
  850. package/build/slot-fill/bubbles-virtually/slot-fill-context.js +4 -5
  851. package/build/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
  852. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js +18 -18
  853. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  854. package/build/slot-fill/bubbles-virtually/slot.js +9 -5
  855. package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
  856. package/build/slot-fill/bubbles-virtually/use-slot-fills.js +1 -2
  857. package/build/slot-fill/bubbles-virtually/use-slot-fills.js.map +1 -1
  858. package/build/slot-fill/bubbles-virtually/use-slot.js +0 -1
  859. package/build/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
  860. package/build/slot-fill/context.js +7 -9
  861. package/build/slot-fill/context.js.map +1 -1
  862. package/build/slot-fill/fill.js +0 -2
  863. package/build/slot-fill/fill.js.map +1 -1
  864. package/build/slot-fill/index.js +27 -22
  865. package/build/slot-fill/index.js.map +1 -1
  866. package/build/slot-fill/index.native.js +4 -4
  867. package/build/slot-fill/index.native.js.map +1 -1
  868. package/build/slot-fill/provider.js +52 -58
  869. package/build/slot-fill/provider.js.map +1 -1
  870. package/build/slot-fill/slot.js +18 -12
  871. package/build/slot-fill/slot.js.map +1 -1
  872. package/build/slot-fill/types.js +6 -0
  873. package/build/slot-fill/types.js.map +1 -0
  874. package/build/slot-fill/use-slot.js +3 -5
  875. package/build/slot-fill/use-slot.js.map +1 -1
  876. package/build/snackbar/index.js +26 -15
  877. package/build/snackbar/index.js.map +1 -1
  878. package/build/snackbar/list.js +8 -8
  879. package/build/snackbar/list.js.map +1 -1
  880. package/build/snackbar/types.js.map +1 -1
  881. package/build/spacer/component.js +5 -7
  882. package/build/spacer/component.js.map +1 -1
  883. package/build/spacer/hook.js +4 -4
  884. package/build/spacer/hook.js.map +1 -1
  885. package/build/spacer/types.js.map +1 -1
  886. package/build/spinner/index.js +7 -8
  887. package/build/spinner/index.js.map +1 -1
  888. package/build/spinner/index.native.js +2 -2
  889. package/build/spinner/index.native.js.map +1 -1
  890. package/build/spinner/styles.js +3 -6
  891. package/build/spinner/styles.js.map +1 -1
  892. package/build/style-provider/index.js +6 -7
  893. package/build/style-provider/index.js.map +1 -1
  894. package/build/surface/component.js +5 -7
  895. package/build/surface/component.js.map +1 -1
  896. package/build/surface/hook.js +3 -3
  897. package/build/surface/hook.js.map +1 -1
  898. package/build/surface/styles.js +5 -10
  899. package/build/surface/styles.js.map +1 -1
  900. package/build/tab-panel/index.js +12 -12
  901. package/build/tab-panel/index.js.map +1 -1
  902. package/build/tabs/context.js +15 -0
  903. package/build/tabs/context.js.map +1 -0
  904. package/build/tabs/index.js +169 -0
  905. package/build/tabs/index.js.map +1 -0
  906. package/build/tabs/styles.js +42 -0
  907. package/build/tabs/styles.js.map +1 -0
  908. package/build/tabs/tab.js +43 -0
  909. package/build/tabs/tab.js.map +1 -0
  910. package/build/tabs/tablist.js +66 -0
  911. package/build/tabs/tablist.js.map +1 -0
  912. package/build/tabs/tabpanel.js +47 -0
  913. package/build/tabs/tabpanel.js.map +1 -0
  914. package/build/tabs/types.js +6 -0
  915. package/build/tabs/types.js.map +1 -0
  916. package/build/text/component.js +9 -10
  917. package/build/text/component.js.map +1 -1
  918. package/build/text/get-line-height.js +1 -1
  919. package/build/text/get-line-height.js.map +1 -1
  920. package/build/text/hook.js +19 -28
  921. package/build/text/hook.js.map +1 -1
  922. package/build/text/index.js.map +1 -1
  923. package/build/text/index.native.js +1 -2
  924. package/build/text/index.native.js.map +1 -1
  925. package/build/text/styles/emotion-css.native.js +1 -2
  926. package/build/text/styles/emotion-css.native.js.map +1 -1
  927. package/build/text/styles/font-family.native.js +1 -2
  928. package/build/text/styles/font-family.native.js.map +1 -1
  929. package/build/text/styles.js +9 -16
  930. package/build/text/styles.js.map +1 -1
  931. package/build/text/types.js.map +1 -1
  932. package/build/text/utils.js +17 -33
  933. package/build/text/utils.js.map +1 -1
  934. package/build/text-control/index.js +11 -8
  935. package/build/text-control/index.js.map +1 -1
  936. package/build/text-control/index.native.js +3 -3
  937. package/build/text-control/index.native.js.map +1 -1
  938. package/build/text-control/types.js.map +1 -1
  939. package/build/text-highlight/index.js +4 -4
  940. package/build/text-highlight/index.js.map +1 -1
  941. package/build/textarea-control/index.js +33 -35
  942. package/build/textarea-control/index.js.map +1 -1
  943. package/build/textarea-control/index.native.js +4 -5
  944. package/build/textarea-control/index.native.js.map +1 -1
  945. package/build/textarea-control/styles/textarea-control-styles.js +1 -2
  946. package/build/textarea-control/styles/textarea-control-styles.js.map +1 -1
  947. package/build/theme/index.js +3 -3
  948. package/build/theme/index.js.map +1 -1
  949. package/build/theme/styles.js +12 -8
  950. package/build/theme/styles.js.map +1 -1
  951. package/build/tip/index.js +5 -6
  952. package/build/tip/index.js.map +1 -1
  953. package/build/toggle-control/index.js +10 -11
  954. package/build/toggle-control/index.js.map +1 -1
  955. package/build/toggle-control/index.native.js +3 -3
  956. package/build/toggle-control/index.native.js.map +1 -1
  957. package/build/toggle-group-control/context.js +1 -2
  958. package/build/toggle-group-control/context.js.map +1 -1
  959. package/build/toggle-group-control/toggle-group-control/as-button-group.js +35 -50
  960. package/build/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -1
  961. package/build/toggle-group-control/toggle-group-control/as-radio-group.js +47 -46
  962. package/build/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
  963. package/build/toggle-group-control/toggle-group-control/component.js +25 -18
  964. package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
  965. package/build/toggle-group-control/toggle-group-control/styles.js +32 -23
  966. package/build/toggle-group-control/toggle-group-control/styles.js.map +1 -1
  967. package/build/toggle-group-control/toggle-group-control/utils.js +50 -0
  968. package/build/toggle-group-control/toggle-group-control/utils.js.map +1 -0
  969. package/build/toggle-group-control/toggle-group-control-option/component.js +4 -5
  970. package/build/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  971. package/build/toggle-group-control/toggle-group-control-option-base/component.js +48 -28
  972. package/build/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  973. package/build/toggle-group-control/toggle-group-control-option-base/styles.js +13 -15
  974. package/build/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
  975. package/build/toggle-group-control/toggle-group-control-option-icon/component.js +5 -6
  976. package/build/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  977. package/build/toggle-group-control/types.js.map +1 -1
  978. package/build/toolbar/toolbar/index.js +32 -20
  979. package/build/toolbar/toolbar/index.js.map +1 -1
  980. package/build/toolbar/toolbar/toolbar-container.js +10 -8
  981. package/build/toolbar/toolbar/toolbar-container.js.map +1 -1
  982. package/build/toolbar/toolbar/toolbar-container.native.js +3 -4
  983. package/build/toolbar/toolbar/toolbar-container.native.js.map +1 -1
  984. package/build/toolbar/toolbar/types.js.map +1 -1
  985. package/build/toolbar/toolbar-button/index.js +8 -9
  986. package/build/toolbar/toolbar-button/index.js.map +1 -1
  987. package/build/toolbar/toolbar-button/toolbar-button-container.js +3 -4
  988. package/build/toolbar/toolbar-button/toolbar-button-container.js.map +1 -1
  989. package/build/toolbar/toolbar-button/toolbar-button-container.native.js +2 -2
  990. package/build/toolbar/toolbar-button/toolbar-button-container.native.js.map +1 -1
  991. package/build/toolbar/toolbar-context/index.js +2 -2
  992. package/build/toolbar/toolbar-context/index.js.map +1 -1
  993. package/build/toolbar/toolbar-dropdown-menu/index.js +6 -8
  994. package/build/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
  995. package/build/toolbar/toolbar-group/index.js +22 -18
  996. package/build/toolbar/toolbar-group/index.js.map +1 -1
  997. package/build/toolbar/toolbar-group/toolbar-group-collapsed.js +4 -6
  998. package/build/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
  999. package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js +4 -5
  1000. package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js.map +1 -1
  1001. package/build/toolbar/toolbar-group/toolbar-group-container.js +6 -5
  1002. package/build/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
  1003. package/build/toolbar/toolbar-group/toolbar-group-container.native.js +3 -4
  1004. package/build/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
  1005. package/build/toolbar/toolbar-group/types.js +6 -0
  1006. package/build/toolbar/toolbar-group/types.js.map +1 -0
  1007. package/build/toolbar/toolbar-item/index.js +9 -6
  1008. package/build/toolbar/toolbar-item/index.js.map +1 -1
  1009. package/build/toolbar/toolbar-item/index.native.js +1 -2
  1010. package/build/toolbar/toolbar-item/index.native.js.map +1 -1
  1011. package/build/tools-panel/context.js +1 -2
  1012. package/build/tools-panel/context.js.map +1 -1
  1013. package/build/tools-panel/styles.js +19 -27
  1014. package/build/tools-panel/styles.js.map +1 -1
  1015. package/build/tools-panel/tools-panel/component.js +10 -10
  1016. package/build/tools-panel/tools-panel/component.js.map +1 -1
  1017. package/build/tools-panel/tools-panel/hook.js +3 -3
  1018. package/build/tools-panel/tools-panel/hook.js.map +1 -1
  1019. package/build/tools-panel/tools-panel-header/component.js +20 -20
  1020. package/build/tools-panel/tools-panel-header/component.js.map +1 -1
  1021. package/build/tools-panel/tools-panel-header/hook.js +3 -3
  1022. package/build/tools-panel/tools-panel-header/hook.js.map +1 -1
  1023. package/build/tools-panel/tools-panel-item/component.js +6 -8
  1024. package/build/tools-panel/tools-panel-item/component.js.map +1 -1
  1025. package/build/tools-panel/tools-panel-item/hook.js +21 -17
  1026. package/build/tools-panel/tools-panel-item/hook.js.map +1 -1
  1027. package/build/tools-panel/types.js.map +1 -1
  1028. package/build/tooltip/index.js +82 -231
  1029. package/build/tooltip/index.js.map +1 -1
  1030. package/build/tooltip/index.native.js +11 -11
  1031. package/build/tooltip/index.native.js.map +1 -1
  1032. package/build/tooltip/types.js +6 -0
  1033. package/build/tooltip/types.js.map +1 -0
  1034. package/build/tree-grid/cell.js +5 -6
  1035. package/build/tree-grid/cell.js.map +1 -1
  1036. package/build/tree-grid/index.js +7 -8
  1037. package/build/tree-grid/index.js.map +1 -1
  1038. package/build/tree-grid/item.js +4 -5
  1039. package/build/tree-grid/item.js.map +1 -1
  1040. package/build/tree-grid/roving-tab-index-context.js +1 -2
  1041. package/build/tree-grid/roving-tab-index-context.js.map +1 -1
  1042. package/build/tree-grid/roving-tab-index-item.js +4 -5
  1043. package/build/tree-grid/roving-tab-index-item.js.map +1 -1
  1044. package/build/tree-grid/roving-tab-index.js +2 -1
  1045. package/build/tree-grid/roving-tab-index.js.map +1 -1
  1046. package/build/tree-grid/row.js +4 -5
  1047. package/build/tree-grid/row.js.map +1 -1
  1048. package/build/tree-select/index.js +14 -12
  1049. package/build/tree-select/index.js.map +1 -1
  1050. package/build/truncate/component.js +5 -7
  1051. package/build/truncate/component.js.map +1 -1
  1052. package/build/truncate/hook.js +13 -7
  1053. package/build/truncate/hook.js.map +1 -1
  1054. package/build/truncate/styles.js +1 -2
  1055. package/build/truncate/styles.js.map +1 -1
  1056. package/build/truncate/types.js.map +1 -1
  1057. package/build/truncate/utils.js +3 -6
  1058. package/build/truncate/utils.js.map +1 -1
  1059. package/build/unit-control/index.js +9 -9
  1060. package/build/unit-control/index.js.map +1 -1
  1061. package/build/unit-control/index.native.js +10 -10
  1062. package/build/unit-control/index.native.js.map +1 -1
  1063. package/build/unit-control/styles/unit-control-styles.js +14 -17
  1064. package/build/unit-control/styles/unit-control-styles.js.map +1 -1
  1065. package/build/unit-control/types.js.map +1 -1
  1066. package/build/unit-control/unit-select-control.js +6 -6
  1067. package/build/unit-control/unit-select-control.js.map +1 -1
  1068. package/build/unit-control/utils.js +111 -6
  1069. package/build/unit-control/utils.js.map +1 -1
  1070. package/build/utils/base-label.js +1 -2
  1071. package/build/utils/base-label.js.map +1 -1
  1072. package/build/utils/box-sizing.js +1 -2
  1073. package/build/utils/box-sizing.js.map +1 -1
  1074. package/build/utils/breakpoint-values.js +1 -2
  1075. package/build/utils/breakpoint-values.js.map +1 -1
  1076. package/build/utils/colors-values.js +44 -24
  1077. package/build/utils/colors-values.js.map +1 -1
  1078. package/build/utils/colors.js +82 -0
  1079. package/build/utils/colors.js.map +1 -1
  1080. package/build/utils/config-values.js +2 -3
  1081. package/build/utils/config-values.js.map +1 -1
  1082. package/build/{ui/utils → utils}/font-size.js +4 -7
  1083. package/build/utils/font-size.js.map +1 -0
  1084. package/build/utils/font-values.js +1 -2
  1085. package/build/utils/font-values.js.map +1 -1
  1086. package/build/utils/get-valid-children.js.map +1 -0
  1087. package/build/utils/hooks/use-controlled-state.js +1 -2
  1088. package/build/utils/hooks/use-controlled-state.js.map +1 -1
  1089. package/build/utils/hooks/use-update-effect.js +2 -3
  1090. package/build/utils/hooks/use-update-effect.js.map +1 -1
  1091. package/build/utils/input/base.js +2 -4
  1092. package/build/utils/input/base.js.map +1 -1
  1093. package/build/utils/input/input-control.js +1 -2
  1094. package/build/utils/input/input-control.js.map +1 -1
  1095. package/build/utils/space.js.map +1 -0
  1096. package/build/utils/strings.js +34 -3
  1097. package/build/utils/strings.js.map +1 -1
  1098. package/build/utils/types.js.map +1 -1
  1099. package/build/utils/unit-values.js +1 -1
  1100. package/build/utils/unit-values.js.map +1 -1
  1101. package/build/utils/use-deprecated-props.js +1 -14
  1102. package/build/utils/use-deprecated-props.js.map +1 -1
  1103. package/build/{ui/utils → utils}/use-responsive-value.js +2 -3
  1104. package/build/utils/use-responsive-value.js.map +1 -0
  1105. package/build/v-stack/component.js +5 -7
  1106. package/build/v-stack/component.js.map +1 -1
  1107. package/build/v-stack/hook.js +1 -1
  1108. package/build/v-stack/hook.js.map +1 -1
  1109. package/build/view/component.js +3 -5
  1110. package/build/view/component.js.map +1 -1
  1111. package/build/visually-hidden/component.js +5 -7
  1112. package/build/visually-hidden/component.js.map +1 -1
  1113. package/build/visually-hidden/styles.js +1 -2
  1114. package/build/visually-hidden/styles.js.map +1 -1
  1115. package/build/z-stack/component.js +7 -8
  1116. package/build/z-stack/component.js.map +1 -1
  1117. package/build/z-stack/styles.js +2 -4
  1118. package/build/z-stack/styles.js.map +1 -1
  1119. package/build-module/alignment-matrix-control/cell.js +8 -5
  1120. package/build-module/alignment-matrix-control/cell.js.map +1 -1
  1121. package/build-module/alignment-matrix-control/icon.js +1 -1
  1122. package/build-module/alignment-matrix-control/icon.js.map +1 -1
  1123. package/build-module/alignment-matrix-control/index.js +28 -44
  1124. package/build-module/alignment-matrix-control/index.js.map +1 -1
  1125. package/build-module/alignment-matrix-control/utils.js +29 -8
  1126. package/build-module/alignment-matrix-control/utils.js.map +1 -1
  1127. package/build-module/angle-picker-control/angle-circle.js +1 -1
  1128. package/build-module/angle-picker-control/angle-circle.js.map +1 -1
  1129. package/build-module/angle-picker-control/index.js +4 -15
  1130. package/build-module/angle-picker-control/index.js.map +1 -1
  1131. package/build-module/angle-picker-control/styles/angle-picker-control-styles.js +6 -18
  1132. package/build-module/angle-picker-control/styles/angle-picker-control-styles.js.map +1 -1
  1133. package/build-module/angle-picker-control/types.js.map +1 -1
  1134. package/build-module/animation/index.js +1 -1
  1135. package/build-module/animation/index.js.map +1 -1
  1136. package/build-module/autocomplete/autocompleter-ui.js +1 -1
  1137. package/build-module/autocomplete/autocompleter-ui.native.js +1 -1
  1138. package/build-module/autocomplete/background-view.android.js +1 -1
  1139. package/build-module/autocomplete/background-view.ios.js +1 -1
  1140. package/build-module/autocomplete/index.js +105 -53
  1141. package/build-module/autocomplete/index.js.map +1 -1
  1142. package/build-module/autocomplete/types.js.map +1 -1
  1143. package/build-module/base-control/index.js +17 -13
  1144. package/build-module/base-control/index.js.map +1 -1
  1145. package/build-module/base-control/index.native.js +1 -1
  1146. package/build-module/base-control/styles/base-control-styles.js +9 -9
  1147. package/build-module/base-control/styles/base-control-styles.js.map +1 -1
  1148. package/build-module/border-box-control/border-box-control/component.js +2 -2
  1149. package/build-module/border-box-control/border-box-control/component.js.map +1 -1
  1150. package/build-module/border-box-control/border-box-control/hook.js +4 -2
  1151. package/build-module/border-box-control/border-box-control/hook.js.map +1 -1
  1152. package/build-module/border-box-control/border-box-control-linked-button/component.js +3 -3
  1153. package/build-module/border-box-control/border-box-control-linked-button/component.js.map +1 -1
  1154. package/build-module/border-box-control/border-box-control-linked-button/hook.js +1 -1
  1155. package/build-module/border-box-control/border-box-control-linked-button/hook.js.map +1 -1
  1156. package/build-module/border-box-control/border-box-control-split-controls/component.js +2 -2
  1157. package/build-module/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  1158. package/build-module/border-box-control/border-box-control-split-controls/hook.js +1 -1
  1159. package/build-module/border-box-control/border-box-control-split-controls/hook.js.map +1 -1
  1160. package/build-module/border-box-control/border-box-control-visualizer/component.js +2 -2
  1161. package/build-module/border-box-control/border-box-control-visualizer/component.js.map +1 -1
  1162. package/build-module/border-box-control/border-box-control-visualizer/hook.js +1 -1
  1163. package/build-module/border-box-control/border-box-control-visualizer/hook.js.map +1 -1
  1164. package/build-module/border-box-control/types.js.map +1 -1
  1165. package/build-module/border-control/border-control/component.js +7 -3
  1166. package/build-module/border-control/border-control/component.js.map +1 -1
  1167. package/build-module/border-control/border-control/hook.js +19 -16
  1168. package/build-module/border-control/border-control/hook.js.map +1 -1
  1169. package/build-module/border-control/border-control-dropdown/component.js +9 -6
  1170. package/build-module/border-control/border-control-dropdown/component.js.map +1 -1
  1171. package/build-module/border-control/border-control-dropdown/hook.js +4 -3
  1172. package/build-module/border-control/border-control-dropdown/hook.js.map +1 -1
  1173. package/build-module/border-control/border-control-style-picker/component.js +23 -50
  1174. package/build-module/border-control/border-control-style-picker/component.js.map +1 -1
  1175. package/build-module/border-control/styles.js +16 -26
  1176. package/build-module/border-control/styles.js.map +1 -1
  1177. package/build-module/border-control/types.js.map +1 -1
  1178. package/build-module/box-control/all-input-control.js +39 -29
  1179. package/build-module/box-control/all-input-control.js.map +1 -1
  1180. package/build-module/box-control/axial-input-controls.js +42 -57
  1181. package/build-module/box-control/axial-input-controls.js.map +1 -1
  1182. package/build-module/box-control/icon.js +1 -1
  1183. package/build-module/box-control/icon.js.map +1 -1
  1184. package/build-module/box-control/index.js +23 -26
  1185. package/build-module/box-control/index.js.map +1 -1
  1186. package/build-module/box-control/input-controls.js +47 -40
  1187. package/build-module/box-control/input-controls.js.map +1 -1
  1188. package/build-module/box-control/linked-button.js +2 -2
  1189. package/build-module/box-control/linked-button.js.map +1 -1
  1190. package/build-module/box-control/styles/box-control-styles.js +45 -105
  1191. package/build-module/box-control/styles/box-control-styles.js.map +1 -1
  1192. package/build-module/box-control/types.js.map +1 -1
  1193. package/build-module/box-control/utils.js +121 -7
  1194. package/build-module/box-control/utils.js.map +1 -1
  1195. package/build-module/button/deprecated.js +1 -1
  1196. package/build-module/button/index.js +33 -15
  1197. package/build-module/button/index.js.map +1 -1
  1198. package/build-module/button/index.native.js +1 -2
  1199. package/build-module/button/index.native.js.map +1 -1
  1200. package/build-module/button/types.js.map +1 -1
  1201. package/build-module/button-group/index.js +1 -1
  1202. package/build-module/button-group/index.js.map +1 -1
  1203. package/build-module/card/card/component.js +3 -3
  1204. package/build-module/card/card/component.js.map +1 -1
  1205. package/build-module/card/card/hook.js +1 -1
  1206. package/build-module/card/card/hook.js.map +1 -1
  1207. package/build-module/card/card-body/component.js +2 -2
  1208. package/build-module/card/card-body/component.js.map +1 -1
  1209. package/build-module/card/card-body/hook.js +1 -1
  1210. package/build-module/card/card-body/hook.js.map +1 -1
  1211. package/build-module/card/card-divider/component.js +2 -2
  1212. package/build-module/card/card-divider/component.js.map +1 -1
  1213. package/build-module/card/card-divider/hook.js +1 -1
  1214. package/build-module/card/card-divider/hook.js.map +1 -1
  1215. package/build-module/card/card-footer/component.js +2 -2
  1216. package/build-module/card/card-footer/component.js.map +1 -1
  1217. package/build-module/card/card-footer/hook.js +1 -1
  1218. package/build-module/card/card-footer/hook.js.map +1 -1
  1219. package/build-module/card/card-header/component.js +2 -2
  1220. package/build-module/card/card-header/component.js.map +1 -1
  1221. package/build-module/card/card-header/hook.js +1 -1
  1222. package/build-module/card/card-header/hook.js.map +1 -1
  1223. package/build-module/card/card-media/component.js +2 -2
  1224. package/build-module/card/card-media/component.js.map +1 -1
  1225. package/build-module/card/card-media/hook.js +1 -1
  1226. package/build-module/card/card-media/hook.js.map +1 -1
  1227. package/build-module/checkbox-control/index.js +2 -2
  1228. package/build-module/checkbox-control/index.js.map +1 -1
  1229. package/build-module/circular-option-picker/circular-option-picker-actions.js +44 -0
  1230. package/build-module/circular-option-picker/circular-option-picker-actions.js.map +1 -0
  1231. package/build-module/circular-option-picker/circular-option-picker-context.js +11 -0
  1232. package/build-module/circular-option-picker/circular-option-picker-context.js.map +1 -0
  1233. package/build-module/circular-option-picker/circular-option-picker-option-group.js +23 -0
  1234. package/build-module/circular-option-picker/circular-option-picker-option-group.js.map +1 -0
  1235. package/build-module/circular-option-picker/circular-option-picker-option.js +89 -0
  1236. package/build-module/circular-option-picker/circular-option-picker-option.js.map +1 -0
  1237. package/build-module/circular-option-picker/circular-option-picker.js +144 -0
  1238. package/build-module/circular-option-picker/circular-option-picker.js.map +1 -0
  1239. package/build-module/circular-option-picker/index.js +4 -132
  1240. package/build-module/circular-option-picker/index.js.map +1 -1
  1241. package/build-module/circular-option-picker/types.js.map +1 -1
  1242. package/build-module/clipboard-button/index.js +1 -1
  1243. package/build-module/clipboard-button/index.js.map +1 -1
  1244. package/build-module/color-control/index.native.js +1 -1
  1245. package/build-module/color-indicator/index.js +1 -1
  1246. package/build-module/color-indicator/index.js.map +1 -1
  1247. package/build-module/color-indicator/index.native.js +1 -1
  1248. package/build-module/color-palette/index.js +66 -22
  1249. package/build-module/color-palette/index.js.map +1 -1
  1250. package/build-module/color-palette/index.native.js +12 -8
  1251. package/build-module/color-palette/index.native.js.map +1 -1
  1252. package/build-module/color-palette/types.js.map +1 -1
  1253. package/build-module/color-picker/color-copy-button.js +6 -8
  1254. package/build-module/color-picker/color-copy-button.js.map +1 -1
  1255. package/build-module/color-picker/color-input.js +1 -1
  1256. package/build-module/color-picker/component.js +15 -5
  1257. package/build-module/color-picker/component.js.map +1 -1
  1258. package/build-module/color-picker/hex-input.js +2 -2
  1259. package/build-module/color-picker/hex-input.js.map +1 -1
  1260. package/build-module/color-picker/hsl-input.js +56 -34
  1261. package/build-module/color-picker/hsl-input.js.map +1 -1
  1262. package/build-module/color-picker/hsv-color-picker.native.js +1 -1
  1263. package/build-module/color-picker/hue-picker.native.js +1 -1
  1264. package/build-module/color-picker/index.native.js +1 -1
  1265. package/build-module/color-picker/input-with-slider.js +2 -2
  1266. package/build-module/color-picker/input-with-slider.js.map +1 -1
  1267. package/build-module/color-picker/legacy-adapter.js +1 -1
  1268. package/build-module/color-picker/picker.js +79 -3
  1269. package/build-module/color-picker/picker.js.map +1 -1
  1270. package/build-module/color-picker/rgb-input.js +1 -1
  1271. package/build-module/color-picker/saturation-picker.native.js +1 -1
  1272. package/build-module/color-picker/styles.js +9 -9
  1273. package/build-module/color-picker/styles.js.map +1 -1
  1274. package/build-module/color-picker/types.js.map +1 -1
  1275. package/build-module/combobox-control/index.js +2 -6
  1276. package/build-module/combobox-control/index.js.map +1 -1
  1277. package/build-module/combobox-control/styles.js +3 -3
  1278. package/build-module/combobox-control/styles.js.map +1 -1
  1279. package/build-module/composite/current/index.js +15 -0
  1280. package/build-module/composite/current/index.js.map +1 -0
  1281. package/build-module/composite/index.js +7 -14
  1282. package/build-module/composite/index.js.map +1 -1
  1283. package/build-module/composite/legacy/index.js +117 -0
  1284. package/build-module/composite/legacy/index.js.map +1 -0
  1285. package/build-module/composite/v2.js +5 -0
  1286. package/build-module/composite/v2.js.map +1 -0
  1287. package/build-module/confirm-dialog/component.js +76 -9
  1288. package/build-module/confirm-dialog/component.js.map +1 -1
  1289. package/build-module/confirm-dialog/types.js.map +1 -1
  1290. package/build-module/context/constants.js.map +1 -0
  1291. package/build-module/{ui/context → context}/context-connect.js +1 -1
  1292. package/build-module/context/context-connect.js.map +1 -0
  1293. package/build-module/{ui/context → context}/context-system-provider.js +2 -2
  1294. package/build-module/context/context-system-provider.js.map +1 -0
  1295. package/build-module/context/get-styled-class-name-from-key.js.map +1 -0
  1296. package/build-module/context/index.js.map +1 -0
  1297. package/build-module/{ui/context → context}/use-context-system.js +1 -1
  1298. package/build-module/context/use-context-system.js.map +1 -0
  1299. package/build-module/context/utils.js.map +1 -0
  1300. package/build-module/context/wordpress-component.js.map +1 -0
  1301. package/build-module/custom-gradient-picker/gradient-bar/control-points.js +14 -5
  1302. package/build-module/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  1303. package/build-module/custom-gradient-picker/gradient-bar/index.js +1 -1
  1304. package/build-module/custom-gradient-picker/index.js +3 -16
  1305. package/build-module/custom-gradient-picker/index.js.map +1 -1
  1306. package/build-module/custom-gradient-picker/index.native.js +1 -1
  1307. package/build-module/custom-gradient-picker/types.js.map +1 -1
  1308. package/build-module/custom-select-control/index.js +7 -6
  1309. package/build-module/custom-select-control/index.js.map +1 -1
  1310. package/build-module/custom-select-control-v2/index.js +78 -0
  1311. package/build-module/custom-select-control-v2/index.js.map +1 -0
  1312. package/build-module/custom-select-control-v2/styles.js +71 -0
  1313. package/build-module/custom-select-control-v2/styles.js.map +1 -0
  1314. package/build-module/custom-select-control-v2/types.js.map +1 -0
  1315. package/build-module/dashicon/index.js +1 -1
  1316. package/build-module/dashicon/index.js.map +1 -1
  1317. package/build-module/dashicon/index.native.js +1 -1
  1318. package/build-module/date-time/date/index.js +1 -1
  1319. package/build-module/date-time/date/styles.js +9 -9
  1320. package/build-module/date-time/date/styles.js.map +1 -1
  1321. package/build-module/date-time/date-time/index.js +1 -1
  1322. package/build-module/date-time/time/index.js +17 -8
  1323. package/build-module/date-time/time/index.js.map +1 -1
  1324. package/build-module/date-time/time/styles.js +26 -34
  1325. package/build-module/date-time/time/styles.js.map +1 -1
  1326. package/build-module/date-time/time/timezone.js +14 -5
  1327. package/build-module/date-time/time/timezone.js.map +1 -1
  1328. package/build-module/dimension-control/index.js +3 -1
  1329. package/build-module/dimension-control/index.js.map +1 -1
  1330. package/build-module/dimension-control/types.js.map +1 -1
  1331. package/build-module/disabled/index.js +1 -1
  1332. package/build-module/disabled/index.js.map +1 -1
  1333. package/build-module/disabled/index.native.js +1 -1
  1334. package/build-module/disclosure/index.js +33 -8
  1335. package/build-module/disclosure/index.js.map +1 -1
  1336. package/build-module/disclosure/types.js.map +1 -0
  1337. package/build-module/divider/component.js +5 -5
  1338. package/build-module/divider/component.js.map +1 -1
  1339. package/build-module/divider/styles.js +6 -6
  1340. package/build-module/divider/styles.js.map +1 -1
  1341. package/build-module/divider/types.js.map +1 -1
  1342. package/build-module/draggable/index.js +1 -1
  1343. package/build-module/draggable/index.native.js +1 -1
  1344. package/build-module/drop-zone/index.js +1 -1
  1345. package/build-module/drop-zone/index.js.map +1 -1
  1346. package/build-module/dropdown/dropdown-content-wrapper.js +2 -2
  1347. package/build-module/dropdown/dropdown-content-wrapper.js.map +1 -1
  1348. package/build-module/dropdown/index.js +14 -26
  1349. package/build-module/dropdown/index.js.map +1 -1
  1350. package/build-module/dropdown/index.native.js +1 -1
  1351. package/build-module/dropdown/styles.js +3 -3
  1352. package/build-module/dropdown/styles.js.map +1 -1
  1353. package/build-module/dropdown/types.js.map +1 -1
  1354. package/build-module/dropdown-menu/index.js +9 -3
  1355. package/build-module/dropdown-menu/index.js.map +1 -1
  1356. package/build-module/dropdown-menu/index.native.js +1 -1
  1357. package/build-module/dropdown-menu/types.js.map +1 -1
  1358. package/build-module/dropdown-menu-v2/index.js +202 -155
  1359. package/build-module/dropdown-menu-v2/index.js.map +1 -1
  1360. package/build-module/dropdown-menu-v2/styles.js +69 -62
  1361. package/build-module/dropdown-menu-v2/styles.js.map +1 -1
  1362. package/build-module/dropdown-menu-v2/types.js.map +1 -1
  1363. package/build-module/duotone-picker/color-list-picker/index.js +19 -4
  1364. package/build-module/duotone-picker/color-list-picker/index.js.map +1 -1
  1365. package/build-module/duotone-picker/custom-duotone-bar.js +1 -1
  1366. package/build-module/duotone-picker/duotone-picker.js +43 -6
  1367. package/build-module/duotone-picker/duotone-picker.js.map +1 -1
  1368. package/build-module/duotone-picker/duotone-swatch.js +1 -1
  1369. package/build-module/duotone-picker/types.js.map +1 -1
  1370. package/build-module/elevation/component.js +2 -2
  1371. package/build-module/elevation/component.js.map +1 -1
  1372. package/build-module/elevation/hook.js +5 -5
  1373. package/build-module/elevation/hook.js.map +1 -1
  1374. package/build-module/external-link/index.js +2 -2
  1375. package/build-module/external-link/index.js.map +1 -1
  1376. package/build-module/external-link/index.native.js +1 -1
  1377. package/build-module/flex/flex/component.js +2 -2
  1378. package/build-module/flex/flex/component.js.map +1 -1
  1379. package/build-module/flex/flex/hook.js +4 -4
  1380. package/build-module/flex/flex/hook.js.map +1 -1
  1381. package/build-module/flex/flex-block/component.js +2 -2
  1382. package/build-module/flex/flex-block/component.js.map +1 -1
  1383. package/build-module/flex/flex-block/hook.js +1 -1
  1384. package/build-module/flex/flex-block/hook.js.map +1 -1
  1385. package/build-module/flex/flex-item/component.js +2 -2
  1386. package/build-module/flex/flex-item/component.js.map +1 -1
  1387. package/build-module/flex/flex-item/hook.js +2 -2
  1388. package/build-module/flex/flex-item/hook.js.map +1 -1
  1389. package/build-module/flex/types.js.map +1 -1
  1390. package/build-module/focal-point-picker/controls.js +6 -2
  1391. package/build-module/focal-point-picker/controls.js.map +1 -1
  1392. package/build-module/focal-point-picker/focal-point.js +1 -1
  1393. package/build-module/focal-point-picker/focal-point.js.map +1 -1
  1394. package/build-module/focal-point-picker/focal-point.native.js +1 -1
  1395. package/build-module/focal-point-picker/grid.js +1 -1
  1396. package/build-module/focal-point-picker/grid.js.map +1 -1
  1397. package/build-module/focal-point-picker/index.js +5 -3
  1398. package/build-module/focal-point-picker/index.js.map +1 -1
  1399. package/build-module/focal-point-picker/index.native.js +1 -2
  1400. package/build-module/focal-point-picker/index.native.js.map +1 -1
  1401. package/build-module/focal-point-picker/media.js +1 -1
  1402. package/build-module/focal-point-picker/styles/focal-point-picker-style.js +33 -41
  1403. package/build-module/focal-point-picker/styles/focal-point-picker-style.js.map +1 -1
  1404. package/build-module/focal-point-picker/styles/focal-point-style.js +10 -2
  1405. package/build-module/focal-point-picker/styles/focal-point-style.js.map +1 -1
  1406. package/build-module/focal-point-picker/tooltip/index.native.js +1 -1
  1407. package/build-module/focal-point-picker/types.js.map +1 -1
  1408. package/build-module/focusable-iframe/index.js +3 -4
  1409. package/build-module/focusable-iframe/index.js.map +1 -1
  1410. package/build-module/focusable-iframe/types.js +2 -0
  1411. package/build-module/focusable-iframe/types.js.map +1 -0
  1412. package/build-module/font-size-picker/font-size-picker-select.js +3 -1
  1413. package/build-module/font-size-picker/font-size-picker-select.js.map +1 -1
  1414. package/build-module/font-size-picker/font-size-picker-toggle-group.js +4 -3
  1415. package/build-module/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  1416. package/build-module/font-size-picker/index.js +14 -21
  1417. package/build-module/font-size-picker/index.js.map +1 -1
  1418. package/build-module/font-size-picker/index.native.js +6 -3
  1419. package/build-module/font-size-picker/index.native.js.map +1 -1
  1420. package/build-module/font-size-picker/styles.js +15 -21
  1421. package/build-module/font-size-picker/styles.js.map +1 -1
  1422. package/build-module/font-size-picker/types.js.map +1 -1
  1423. package/build-module/font-size-picker/utils.js +1 -1
  1424. package/build-module/font-size-picker/utils.js.map +1 -1
  1425. package/build-module/footer-message-control/index.native.js +1 -1
  1426. package/build-module/form-file-upload/index.js +1 -1
  1427. package/build-module/form-file-upload/index.js.map +1 -1
  1428. package/build-module/form-toggle/index.js +1 -1
  1429. package/build-module/form-toggle/index.js.map +1 -1
  1430. package/build-module/form-token-field/index.js +19 -11
  1431. package/build-module/form-token-field/index.js.map +1 -1
  1432. package/build-module/form-token-field/styles.js +3 -3
  1433. package/build-module/form-token-field/styles.js.map +1 -1
  1434. package/build-module/form-token-field/suggestions-list.js +1 -2
  1435. package/build-module/form-token-field/suggestions-list.js.map +1 -1
  1436. package/build-module/form-token-field/token-input.js +1 -1
  1437. package/build-module/form-token-field/token-input.js.map +1 -1
  1438. package/build-module/form-token-field/token.js +2 -1
  1439. package/build-module/form-token-field/token.js.map +1 -1
  1440. package/build-module/form-token-field/types.js.map +1 -1
  1441. package/build-module/gradient-picker/index.js +78 -58
  1442. package/build-module/gradient-picker/index.js.map +1 -1
  1443. package/build-module/gradient-picker/types.js.map +1 -1
  1444. package/build-module/grid/component.js +2 -2
  1445. package/build-module/grid/component.js.map +1 -1
  1446. package/build-module/grid/hook.js +3 -3
  1447. package/build-module/grid/hook.js.map +1 -1
  1448. package/build-module/grid/types.js.map +1 -1
  1449. package/build-module/guide/icons.js +1 -1
  1450. package/build-module/guide/index.js +1 -1
  1451. package/build-module/guide/page-control.js +1 -1
  1452. package/build-module/guide/page.js +1 -1
  1453. package/build-module/guide/page.js.map +1 -1
  1454. package/build-module/h-stack/component.js +2 -2
  1455. package/build-module/h-stack/component.js.map +1 -1
  1456. package/build-module/h-stack/hook.js +3 -3
  1457. package/build-module/h-stack/hook.js.map +1 -1
  1458. package/build-module/heading/component.js +2 -2
  1459. package/build-module/heading/component.js.map +1 -1
  1460. package/build-module/heading/hook.js +8 -5
  1461. package/build-module/heading/hook.js.map +1 -1
  1462. package/build-module/heading/types.js.map +1 -1
  1463. package/build-module/higher-order/navigate-regions/index.js +1 -1
  1464. package/build-module/higher-order/navigate-regions/index.js.map +1 -1
  1465. package/build-module/higher-order/with-constrained-tabbing/index.js +1 -1
  1466. package/build-module/higher-order/with-fallback-styles/index.js +1 -1
  1467. package/build-module/higher-order/with-filters/index.js +1 -1
  1468. package/build-module/higher-order/with-focus-outside/index.js +2 -4
  1469. package/build-module/higher-order/with-focus-outside/index.js.map +1 -1
  1470. package/build-module/higher-order/with-focus-outside/index.native.js +1 -1
  1471. package/build-module/higher-order/with-focus-return/index.js +1 -1
  1472. package/build-module/higher-order/with-focus-return/index.js.map +1 -1
  1473. package/build-module/higher-order/with-notices/index.js +1 -1
  1474. package/build-module/higher-order/with-spoken-messages/index.js +4 -4
  1475. package/build-module/higher-order/with-spoken-messages/index.js.map +1 -1
  1476. package/build-module/index.js +1 -1
  1477. package/build-module/index.js.map +1 -1
  1478. package/build-module/index.native.js +7 -4
  1479. package/build-module/index.native.js.map +1 -1
  1480. package/build-module/input-control/backdrop.js +3 -1
  1481. package/build-module/input-control/backdrop.js.map +1 -1
  1482. package/build-module/input-control/index.js +30 -28
  1483. package/build-module/input-control/index.js.map +1 -1
  1484. package/build-module/input-control/input-base.js +26 -22
  1485. package/build-module/input-control/input-base.js.map +1 -1
  1486. package/build-module/input-control/input-field.js +1 -1
  1487. package/build-module/input-control/input-field.js.map +1 -1
  1488. package/build-module/input-control/input-prefix-wrapper.js +2 -2
  1489. package/build-module/input-control/input-prefix-wrapper.js.map +1 -1
  1490. package/build-module/input-control/input-suffix-wrapper.js +2 -2
  1491. package/build-module/input-control/input-suffix-wrapper.js.map +1 -1
  1492. package/build-module/input-control/label.js +1 -1
  1493. package/build-module/input-control/label.js.map +1 -1
  1494. package/build-module/input-control/styles/input-control-styles.js +43 -39
  1495. package/build-module/input-control/styles/input-control-styles.js.map +1 -1
  1496. package/build-module/input-control/types.js.map +1 -1
  1497. package/build-module/isolated-event-container/index.js +1 -2
  1498. package/build-module/isolated-event-container/index.js.map +1 -1
  1499. package/build-module/item-group/item/component.js +2 -2
  1500. package/build-module/item-group/item/component.js.map +1 -1
  1501. package/build-module/item-group/item/hook.js +1 -1
  1502. package/build-module/item-group/item/hook.js.map +1 -1
  1503. package/build-module/item-group/item-group/component.js +2 -2
  1504. package/build-module/item-group/item-group/component.js.map +1 -1
  1505. package/build-module/item-group/item-group/hook.js +1 -1
  1506. package/build-module/item-group/item-group/hook.js.map +1 -1
  1507. package/build-module/item-group/styles.js +10 -10
  1508. package/build-module/item-group/styles.js.map +1 -1
  1509. package/build-module/keyboard-shortcuts/index.js +1 -1
  1510. package/build-module/lock-unlock.js +9 -0
  1511. package/build-module/lock-unlock.js.map +1 -0
  1512. package/build-module/menu-group/index.js +1 -1
  1513. package/build-module/menu-item/index.js +1 -1
  1514. package/build-module/menu-item/index.js.map +1 -1
  1515. package/build-module/menu-items-choice/index.js +1 -1
  1516. package/build-module/mobile/audio-player/index.native.js +10 -11
  1517. package/build-module/mobile/audio-player/index.native.js.map +1 -1
  1518. package/build-module/mobile/badge/index.native.js +1 -1
  1519. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +1 -1
  1520. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +1 -1
  1521. package/build-module/mobile/bottom-sheet/button.native.js +1 -1
  1522. package/build-module/mobile/bottom-sheet/cell.native.js +1 -1
  1523. package/build-module/mobile/bottom-sheet/chevron-back.native.js +1 -1
  1524. package/build-module/mobile/bottom-sheet/color-cell.native.js +1 -1
  1525. package/build-module/mobile/bottom-sheet/cycle-picker-cell.native.js +1 -1
  1526. package/build-module/mobile/bottom-sheet/footer-message-cell.native.js +1 -1
  1527. package/build-module/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js +1 -1
  1528. package/build-module/mobile/bottom-sheet/index.native.js +11 -2
  1529. package/build-module/mobile/bottom-sheet/index.native.js.map +1 -1
  1530. package/build-module/mobile/bottom-sheet/keyboard-avoiding-view.native.js +1 -1
  1531. package/build-module/mobile/bottom-sheet/link-cell.native.js +1 -1
  1532. package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js +1 -1
  1533. package/build-module/mobile/bottom-sheet/lock-icon/index.native.js +1 -1
  1534. package/build-module/mobile/bottom-sheet/nav-bar/action-button.native.js +1 -1
  1535. package/build-module/mobile/bottom-sheet/nav-bar/apply-button.native.js +1 -1
  1536. package/build-module/mobile/bottom-sheet/nav-bar/back-button.native.js +1 -1
  1537. package/build-module/mobile/bottom-sheet/nav-bar/heading.native.js +1 -1
  1538. package/build-module/mobile/bottom-sheet/nav-bar/index.native.js +1 -1
  1539. package/build-module/mobile/bottom-sheet/picker-cell.native.js +1 -1
  1540. package/build-module/mobile/bottom-sheet/radio-cell.native.js +1 -1
  1541. package/build-module/mobile/bottom-sheet/range-cell.native.js +1 -1
  1542. package/build-module/mobile/bottom-sheet/range-text-input.native.js +1 -1
  1543. package/build-module/mobile/bottom-sheet/ripple.native.js +1 -1
  1544. package/build-module/mobile/bottom-sheet/stepper-cell/index.native.js +1 -1
  1545. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.android.js +1 -1
  1546. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.ios.js +1 -1
  1547. package/build-module/mobile/bottom-sheet/sub-sheet/index.native.js +1 -1
  1548. package/build-module/mobile/bottom-sheet/switch-cell.native.js +1 -1
  1549. package/build-module/mobile/bottom-sheet-select-control/index.native.js +1 -1
  1550. package/build-module/mobile/bottom-sheet-text-control/index.native.js +1 -1
  1551. package/build-module/mobile/color-settings/gradient-picker-screen.native.js +1 -1
  1552. package/build-module/mobile/color-settings/index.native.js +1 -1
  1553. package/build-module/mobile/color-settings/palette.screen.native.js +9 -5
  1554. package/build-module/mobile/color-settings/palette.screen.native.js.map +1 -1
  1555. package/build-module/mobile/color-settings/picker-screen.native.js +1 -1
  1556. package/build-module/mobile/cycle-select-control/index.native.js +1 -1
  1557. package/build-module/mobile/dashicons/index.native.js +1 -1
  1558. package/build-module/mobile/focal-point-settings-panel/index.native.js +1 -1
  1559. package/build-module/mobile/global-styles-context/index.native.js +1 -1
  1560. package/build-module/mobile/global-styles-context/index.native.js.map +1 -1
  1561. package/build-module/mobile/global-styles-context/utils.native.js +80 -16
  1562. package/build-module/mobile/global-styles-context/utils.native.js.map +1 -1
  1563. package/build-module/mobile/gradient/index.native.js +1 -1
  1564. package/build-module/mobile/gridicons/index.native.js +1 -1
  1565. package/build-module/mobile/html-text-input/index.native.js +2 -2
  1566. package/build-module/mobile/html-text-input/index.native.js.map +1 -1
  1567. package/build-module/mobile/image/constants.js +5 -0
  1568. package/build-module/mobile/image/constants.js.map +1 -0
  1569. package/build-module/mobile/image/icon-customize.native.js +1 -1
  1570. package/build-module/mobile/image/icon-retry.native.js +1 -1
  1571. package/build-module/mobile/image/image-editing-button.native.js +1 -1
  1572. package/build-module/mobile/image/index.native.js +107 -23
  1573. package/build-module/mobile/image/index.native.js.map +1 -1
  1574. package/build-module/mobile/keyboard-avoiding-view/index.ios.js +1 -1
  1575. package/build-module/mobile/keyboard-aware-flat-list/index.android.js +41 -7
  1576. package/build-module/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
  1577. package/build-module/mobile/keyboard-aware-flat-list/index.ios.js +48 -70
  1578. package/build-module/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
  1579. package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js +33 -0
  1580. package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js.map +1 -0
  1581. package/build-module/mobile/keyboard-aware-flat-list/{use-scroll-to-text-input.native.js → use-scroll-to-section.native.js} +21 -27
  1582. package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-section.native.js.map +1 -0
  1583. package/build-module/mobile/keyboard-aware-flat-list/use-scroll.native.js +86 -0
  1584. package/build-module/mobile/keyboard-aware-flat-list/use-scroll.native.js.map +1 -0
  1585. package/build-module/mobile/link-picker/index.native.js +1 -1
  1586. package/build-module/mobile/link-picker/link-picker-results.native.js +1 -1
  1587. package/build-module/mobile/link-picker/link-picker-screen.native.js +1 -1
  1588. package/build-module/mobile/link-settings/index.native.js +1 -1
  1589. package/build-module/mobile/link-settings/link-rel.native.js +1 -1
  1590. package/build-module/mobile/link-settings/link-settings-navigation.native.js +1 -1
  1591. package/build-module/mobile/link-settings/link-settings-screen.native.js +1 -1
  1592. package/build-module/mobile/media-edit/index.native.js +1 -1
  1593. package/build-module/mobile/picker/index.android.js +1 -1
  1594. package/build-module/mobile/picker/index.ios.js +1 -1
  1595. package/build-module/mobile/segmented-control/index.native.js +1 -1
  1596. package/build-module/mobile/utils/alignments.native.js +1 -1
  1597. package/build-module/mobile/utils/alignments.native.js.map +1 -1
  1598. package/build-module/mobile/utils/get-px-from-css-unit.native.js +294 -0
  1599. package/build-module/mobile/utils/get-px-from-css-unit.native.js.map +1 -0
  1600. package/build-module/modal/aria-helper.js +15 -26
  1601. package/build-module/modal/aria-helper.js.map +1 -1
  1602. package/build-module/modal/index.js +80 -30
  1603. package/build-module/modal/index.js.map +1 -1
  1604. package/build-module/modal/types.js.map +1 -1
  1605. package/build-module/navigable-container/container.js +1 -1
  1606. package/build-module/navigable-container/menu.js +1 -1
  1607. package/build-module/navigable-container/tabbable.js +1 -1
  1608. package/build-module/navigable-container/types.js.map +1 -1
  1609. package/build-module/navigation/back-button/index.js +1 -1
  1610. package/build-module/navigation/group/index.js +1 -1
  1611. package/build-module/navigation/index.js +1 -1
  1612. package/build-module/navigation/item/base-content.js +1 -1
  1613. package/build-module/navigation/item/base.js +1 -1
  1614. package/build-module/navigation/item/index.js +1 -1
  1615. package/build-module/navigation/menu/index.js +1 -1
  1616. package/build-module/navigation/menu/menu-title-search.js +5 -7
  1617. package/build-module/navigation/menu/menu-title-search.js.map +1 -1
  1618. package/build-module/navigation/menu/menu-title.js +2 -2
  1619. package/build-module/navigation/menu/menu-title.js.map +1 -1
  1620. package/build-module/navigation/menu/search-no-results-found.js +1 -1
  1621. package/build-module/navigation/styles/navigation-styles.js +24 -25
  1622. package/build-module/navigation/styles/navigation-styles.js.map +1 -1
  1623. package/build-module/navigation/use-navigation-tree-nodes.js.map +1 -1
  1624. package/build-module/navigator/navigator-back-button/component.js +2 -2
  1625. package/build-module/navigator/navigator-back-button/component.js.map +1 -1
  1626. package/build-module/navigator/navigator-back-button/hook.js +1 -1
  1627. package/build-module/navigator/navigator-back-button/hook.js.map +1 -1
  1628. package/build-module/navigator/navigator-button/component.js +2 -2
  1629. package/build-module/navigator/navigator-button/component.js.map +1 -1
  1630. package/build-module/navigator/navigator-button/hook.js +1 -1
  1631. package/build-module/navigator/navigator-button/hook.js.map +1 -1
  1632. package/build-module/navigator/navigator-provider/component.js +5 -18
  1633. package/build-module/navigator/navigator-provider/component.js.map +1 -1
  1634. package/build-module/navigator/navigator-screen/component.js +18 -72
  1635. package/build-module/navigator/navigator-screen/component.js.map +1 -1
  1636. package/build-module/navigator/navigator-to-parent-button/component.js +2 -2
  1637. package/build-module/navigator/navigator-to-parent-button/component.js.map +1 -1
  1638. package/build-module/navigator/styles.js +47 -0
  1639. package/build-module/navigator/styles.js.map +1 -0
  1640. package/build-module/notice/index.js +20 -8
  1641. package/build-module/notice/index.js.map +1 -1
  1642. package/build-module/notice/index.native.js +1 -1
  1643. package/build-module/notice/list.js +1 -1
  1644. package/build-module/notice/list.js.map +1 -1
  1645. package/build-module/notice/list.native.js +1 -1
  1646. package/build-module/number-control/index.js +30 -33
  1647. package/build-module/number-control/index.js.map +1 -1
  1648. package/build-module/number-control/styles/number-control-styles.js +5 -5
  1649. package/build-module/number-control/styles/number-control-styles.js.map +1 -1
  1650. package/build-module/number-control/types.js.map +1 -1
  1651. package/build-module/palette-edit/index.js +29 -49
  1652. package/build-module/palette-edit/index.js.map +1 -1
  1653. package/build-module/palette-edit/styles.js +44 -34
  1654. package/build-module/palette-edit/styles.js.map +1 -1
  1655. package/build-module/panel/actions.native.js +1 -1
  1656. package/build-module/panel/body.js +1 -1
  1657. package/build-module/panel/body.js.map +1 -1
  1658. package/build-module/panel/body.native.js +1 -1
  1659. package/build-module/panel/bottom-separator-cover.native.js +1 -1
  1660. package/build-module/panel/header.js +1 -1
  1661. package/build-module/panel/index.js +1 -1
  1662. package/build-module/panel/row.js +1 -1
  1663. package/build-module/panel/types.js.map +1 -1
  1664. package/build-module/placeholder/index.js +12 -5
  1665. package/build-module/placeholder/index.js.map +1 -1
  1666. package/build-module/popover/index.js +78 -93
  1667. package/build-module/popover/index.js.map +1 -1
  1668. package/build-module/popover/types.js.map +1 -1
  1669. package/build-module/popover/utils.js +8 -39
  1670. package/build-module/popover/utils.js.map +1 -1
  1671. package/build-module/private-apis.js +18 -14
  1672. package/build-module/private-apis.js.map +1 -1
  1673. package/build-module/private-apis.native.js +14 -0
  1674. package/build-module/private-apis.native.js.map +1 -0
  1675. package/build-module/progress-bar/index.js +1 -1
  1676. package/build-module/progress-bar/index.js.map +1 -1
  1677. package/build-module/progress-bar/styles.js +5 -5
  1678. package/build-module/progress-bar/styles.js.map +1 -1
  1679. package/build-module/query-controls/author-select.js +4 -2
  1680. package/build-module/query-controls/author-select.js.map +1 -1
  1681. package/build-module/query-controls/category-select.js +4 -2
  1682. package/build-module/query-controls/category-select.js.map +1 -1
  1683. package/build-module/query-controls/index.js +12 -7
  1684. package/build-module/query-controls/index.js.map +1 -1
  1685. package/build-module/query-controls/index.native.js +5 -5
  1686. package/build-module/query-controls/index.native.js.map +1 -1
  1687. package/build-module/query-controls/types.js.map +1 -1
  1688. package/build-module/radio-control/index.js +2 -1
  1689. package/build-module/radio-control/index.js.map +1 -1
  1690. package/build-module/radio-control/index.native.js +1 -1
  1691. package/build-module/radio-group/context.js +14 -0
  1692. package/build-module/radio-group/context.js.map +1 -0
  1693. package/build-module/radio-group/index.js +25 -24
  1694. package/build-module/radio-group/index.js.map +1 -1
  1695. package/build-module/radio-group/radio.js +46 -0
  1696. package/build-module/radio-group/radio.js.map +1 -0
  1697. package/build-module/radio-group/types.js +2 -0
  1698. package/build-module/radio-group/types.js.map +1 -0
  1699. package/build-module/range-control/index.js +3 -3
  1700. package/build-module/range-control/index.js.map +1 -1
  1701. package/build-module/range-control/index.native.js +1 -1
  1702. package/build-module/range-control/input-range.js +1 -1
  1703. package/build-module/range-control/input-range.js.map +1 -1
  1704. package/build-module/range-control/mark.js +1 -1
  1705. package/build-module/range-control/mark.js.map +1 -1
  1706. package/build-module/range-control/rail.js +1 -1
  1707. package/build-module/range-control/rail.js.map +1 -1
  1708. package/build-module/range-control/styles/range-control-styles.js +30 -30
  1709. package/build-module/range-control/styles/range-control-styles.js.map +1 -1
  1710. package/build-module/range-control/tooltip.js +1 -1
  1711. package/build-module/range-control/tooltip.js.map +1 -1
  1712. package/build-module/resizable-box/index.js +1 -1
  1713. package/build-module/resizable-box/index.native.js +1 -1
  1714. package/build-module/resizable-box/resize-tooltip/index.js +1 -1
  1715. package/build-module/resizable-box/resize-tooltip/label.js +1 -1
  1716. package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js +4 -4
  1717. package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js.map +1 -1
  1718. package/build-module/responsive-wrapper/index.js +1 -1
  1719. package/build-module/sandbox/index.js +5 -3
  1720. package/build-module/sandbox/index.js.map +1 -1
  1721. package/build-module/sandbox/index.native.js +2 -2
  1722. package/build-module/sandbox/index.native.js.map +1 -1
  1723. package/build-module/sandbox/types.js.map +1 -1
  1724. package/build-module/scrollable/component.js +2 -2
  1725. package/build-module/scrollable/component.js.map +1 -1
  1726. package/build-module/scrollable/hook.js +1 -1
  1727. package/build-module/scrollable/hook.js.map +1 -1
  1728. package/build-module/search-control/index.js +69 -50
  1729. package/build-module/search-control/index.js.map +1 -1
  1730. package/build-module/search-control/index.native.js +1 -1
  1731. package/build-module/search-control/styles.js +29 -0
  1732. package/build-module/search-control/styles.js.map +1 -0
  1733. package/build-module/search-control/types.js.map +1 -1
  1734. package/build-module/select-control/chevron-down.js +1 -1
  1735. package/build-module/select-control/index.js +6 -5
  1736. package/build-module/select-control/index.js.map +1 -1
  1737. package/build-module/select-control/index.native.js +1 -1
  1738. package/build-module/select-control/styles/select-control-styles.js +22 -32
  1739. package/build-module/select-control/styles/select-control-styles.js.map +1 -1
  1740. package/build-module/select-control/types.js.map +1 -1
  1741. package/build-module/shortcut/index.js +1 -1
  1742. package/build-module/slot-fill/bubbles-virtually/fill.js +8 -10
  1743. package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
  1744. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js +7 -3
  1745. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
  1746. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js +17 -18
  1747. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  1748. package/build-module/slot-fill/bubbles-virtually/slot.js +7 -3
  1749. package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
  1750. package/build-module/slot-fill/bubbles-virtually/use-slot-fills.js +1 -2
  1751. package/build-module/slot-fill/bubbles-virtually/use-slot-fills.js.map +1 -1
  1752. package/build-module/slot-fill/bubbles-virtually/use-slot.js +0 -1
  1753. package/build-module/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
  1754. package/build-module/slot-fill/context.js +10 -6
  1755. package/build-module/slot-fill/context.js.map +1 -1
  1756. package/build-module/slot-fill/fill.js +0 -2
  1757. package/build-module/slot-fill/fill.js.map +1 -1
  1758. package/build-module/slot-fill/index.js +18 -15
  1759. package/build-module/slot-fill/index.js.map +1 -1
  1760. package/build-module/slot-fill/index.native.js +1 -1
  1761. package/build-module/slot-fill/provider.js +53 -59
  1762. package/build-module/slot-fill/provider.js.map +1 -1
  1763. package/build-module/slot-fill/slot.js +14 -9
  1764. package/build-module/slot-fill/slot.js.map +1 -1
  1765. package/build-module/slot-fill/types.js +2 -0
  1766. package/build-module/slot-fill/types.js.map +1 -0
  1767. package/build-module/slot-fill/use-slot.js +2 -4
  1768. package/build-module/slot-fill/use-slot.js.map +1 -1
  1769. package/build-module/snackbar/index.js +19 -7
  1770. package/build-module/snackbar/index.js.map +1 -1
  1771. package/build-module/snackbar/list.js +1 -1
  1772. package/build-module/snackbar/list.js.map +1 -1
  1773. package/build-module/snackbar/types.js.map +1 -1
  1774. package/build-module/spacer/component.js +2 -2
  1775. package/build-module/spacer/component.js.map +1 -1
  1776. package/build-module/spacer/hook.js +4 -4
  1777. package/build-module/spacer/hook.js.map +1 -1
  1778. package/build-module/spacer/types.js.map +1 -1
  1779. package/build-module/spinner/index.js +1 -1
  1780. package/build-module/spinner/index.js.map +1 -1
  1781. package/build-module/spinner/index.native.js +1 -1
  1782. package/build-module/style-provider/index.js +1 -1
  1783. package/build-module/surface/component.js +2 -2
  1784. package/build-module/surface/component.js.map +1 -1
  1785. package/build-module/surface/hook.js +1 -1
  1786. package/build-module/surface/hook.js.map +1 -1
  1787. package/build-module/tab-panel/index.js +2 -1
  1788. package/build-module/tab-panel/index.js.map +1 -1
  1789. package/build-module/tabs/context.js +12 -0
  1790. package/build-module/tabs/context.js.map +1 -0
  1791. package/build-module/tabs/index.js +165 -0
  1792. package/build-module/tabs/index.js.map +1 -0
  1793. package/build-module/tabs/styles.js +42 -0
  1794. package/build-module/tabs/styles.js.map +1 -0
  1795. package/build-module/tabs/tab.js +41 -0
  1796. package/build-module/tabs/tab.js.map +1 -0
  1797. package/build-module/tabs/tablist.js +61 -0
  1798. package/build-module/tabs/tablist.js.map +1 -0
  1799. package/build-module/tabs/tabpanel.js +45 -0
  1800. package/build-module/tabs/tabpanel.js.map +1 -0
  1801. package/build-module/tabs/types.js +2 -0
  1802. package/build-module/tabs/types.js.map +1 -0
  1803. package/build-module/text/component.js +8 -8
  1804. package/build-module/text/component.js.map +1 -1
  1805. package/build-module/text/get-line-height.js +1 -1
  1806. package/build-module/text/get-line-height.js.map +1 -1
  1807. package/build-module/text/hook.js +14 -22
  1808. package/build-module/text/hook.js.map +1 -1
  1809. package/build-module/text/index.js.map +1 -1
  1810. package/build-module/text/styles.js +7 -7
  1811. package/build-module/text/styles.js.map +1 -1
  1812. package/build-module/text/types.js.map +1 -1
  1813. package/build-module/text/utils.js +17 -10
  1814. package/build-module/text/utils.js.map +1 -1
  1815. package/build-module/text-control/index.js +7 -2
  1816. package/build-module/text-control/index.js.map +1 -1
  1817. package/build-module/text-control/index.native.js +1 -1
  1818. package/build-module/text-control/types.js.map +1 -1
  1819. package/build-module/text-highlight/index.js +1 -1
  1820. package/build-module/textarea-control/index.js +29 -29
  1821. package/build-module/textarea-control/index.js.map +1 -1
  1822. package/build-module/textarea-control/index.native.js +1 -1
  1823. package/build-module/theme/index.js +1 -1
  1824. package/build-module/theme/index.js.map +1 -1
  1825. package/build-module/theme/styles.js +11 -2
  1826. package/build-module/theme/styles.js.map +1 -1
  1827. package/build-module/tip/index.js +1 -1
  1828. package/build-module/toggle-control/index.js +3 -3
  1829. package/build-module/toggle-control/index.js.map +1 -1
  1830. package/build-module/toggle-control/index.native.js +1 -1
  1831. package/build-module/toggle-group-control/toggle-group-control/as-button-group.js +33 -48
  1832. package/build-module/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -1
  1833. package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js +44 -45
  1834. package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
  1835. package/build-module/toggle-group-control/toggle-group-control/component.js +17 -11
  1836. package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
  1837. package/build-module/toggle-group-control/toggle-group-control/styles.js +29 -17
  1838. package/build-module/toggle-group-control/toggle-group-control/styles.js.map +1 -1
  1839. package/build-module/toggle-group-control/toggle-group-control/utils.js +48 -0
  1840. package/build-module/toggle-group-control/toggle-group-control/utils.js.map +1 -0
  1841. package/build-module/toggle-group-control/toggle-group-control-option/component.js +1 -1
  1842. package/build-module/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  1843. package/build-module/toggle-group-control/toggle-group-control-option-base/component.js +39 -19
  1844. package/build-module/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  1845. package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js +9 -8
  1846. package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
  1847. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js +1 -1
  1848. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  1849. package/build-module/toggle-group-control/types.js.map +1 -1
  1850. package/build-module/toolbar/toolbar/index.js +27 -14
  1851. package/build-module/toolbar/toolbar/index.js.map +1 -1
  1852. package/build-module/toolbar/toolbar/toolbar-container.js +5 -4
  1853. package/build-module/toolbar/toolbar/toolbar-container.js.map +1 -1
  1854. package/build-module/toolbar/toolbar/toolbar-container.native.js +1 -1
  1855. package/build-module/toolbar/toolbar/types.js.map +1 -1
  1856. package/build-module/toolbar/toolbar-button/index.js +1 -1
  1857. package/build-module/toolbar/toolbar-button/index.js.map +1 -1
  1858. package/build-module/toolbar/toolbar-button/toolbar-button-container.js +1 -1
  1859. package/build-module/toolbar/toolbar-button/toolbar-button-container.native.js +1 -1
  1860. package/build-module/toolbar/toolbar-context/index.js +1 -0
  1861. package/build-module/toolbar/toolbar-context/index.js.map +1 -1
  1862. package/build-module/toolbar/toolbar-dropdown-menu/index.js +6 -4
  1863. package/build-module/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
  1864. package/build-module/toolbar/toolbar-group/index.js +16 -13
  1865. package/build-module/toolbar/toolbar-group/index.js.map +1 -1
  1866. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js +1 -3
  1867. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
  1868. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.native.js +1 -1
  1869. package/build-module/toolbar/toolbar-group/toolbar-group-container.js +4 -2
  1870. package/build-module/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
  1871. package/build-module/toolbar/toolbar-group/toolbar-group-container.native.js +1 -1
  1872. package/build-module/toolbar/toolbar-group/types.js +2 -0
  1873. package/build-module/toolbar/toolbar-group/types.js.map +1 -0
  1874. package/build-module/toolbar/toolbar-item/index.js +5 -4
  1875. package/build-module/toolbar/toolbar-item/index.js.map +1 -1
  1876. package/build-module/tools-panel/styles.js +14 -14
  1877. package/build-module/tools-panel/styles.js.map +1 -1
  1878. package/build-module/tools-panel/tools-panel/component.js +5 -3
  1879. package/build-module/tools-panel/tools-panel/component.js.map +1 -1
  1880. package/build-module/tools-panel/tools-panel/hook.js +1 -1
  1881. package/build-module/tools-panel/tools-panel/hook.js.map +1 -1
  1882. package/build-module/tools-panel/tools-panel-header/component.js +11 -10
  1883. package/build-module/tools-panel/tools-panel-header/component.js.map +1 -1
  1884. package/build-module/tools-panel/tools-panel-header/hook.js +1 -1
  1885. package/build-module/tools-panel/tools-panel-header/hook.js.map +1 -1
  1886. package/build-module/tools-panel/tools-panel-item/component.js +2 -2
  1887. package/build-module/tools-panel/tools-panel-item/component.js.map +1 -1
  1888. package/build-module/tools-panel/tools-panel-item/hook.js +20 -16
  1889. package/build-module/tools-panel/tools-panel-item/hook.js.map +1 -1
  1890. package/build-module/tools-panel/types.js.map +1 -1
  1891. package/build-module/tooltip/index.js +79 -225
  1892. package/build-module/tooltip/index.js.map +1 -1
  1893. package/build-module/tooltip/index.native.js +1 -1
  1894. package/build-module/tooltip/types.js +2 -0
  1895. package/build-module/tooltip/types.js.map +1 -0
  1896. package/build-module/tree-grid/cell.js +1 -1
  1897. package/build-module/tree-grid/cell.js.map +1 -1
  1898. package/build-module/tree-grid/index.js +1 -1
  1899. package/build-module/tree-grid/index.js.map +1 -1
  1900. package/build-module/tree-grid/item.js +1 -1
  1901. package/build-module/tree-grid/roving-tab-index-item.js +1 -1
  1902. package/build-module/tree-grid/roving-tab-index.js +1 -1
  1903. package/build-module/tree-grid/row.js +1 -1
  1904. package/build-module/tree-grid/row.js.map +1 -1
  1905. package/build-module/tree-select/index.js +12 -10
  1906. package/build-module/tree-select/index.js.map +1 -1
  1907. package/build-module/truncate/component.js +2 -2
  1908. package/build-module/truncate/component.js.map +1 -1
  1909. package/build-module/truncate/hook.js +11 -5
  1910. package/build-module/truncate/hook.js.map +1 -1
  1911. package/build-module/truncate/types.js.map +1 -1
  1912. package/build-module/unit-control/index.js +4 -3
  1913. package/build-module/unit-control/index.js.map +1 -1
  1914. package/build-module/unit-control/index.native.js +1 -1
  1915. package/build-module/unit-control/styles/unit-control-styles.js +11 -11
  1916. package/build-module/unit-control/styles/unit-control-styles.js.map +1 -1
  1917. package/build-module/unit-control/types.js.map +1 -1
  1918. package/build-module/unit-control/unit-select-control.js +1 -1
  1919. package/build-module/unit-control/unit-select-control.js.map +1 -1
  1920. package/build-module/unit-control/utils.js +108 -0
  1921. package/build-module/unit-control/utils.js.map +1 -1
  1922. package/build-module/utils/colors-values.js +42 -19
  1923. package/build-module/utils/colors-values.js.map +1 -1
  1924. package/build-module/utils/colors.js +81 -0
  1925. package/build-module/utils/colors.js.map +1 -1
  1926. package/build-module/utils/config-values.js +1 -1
  1927. package/build-module/utils/config-values.js.map +1 -1
  1928. package/build-module/{ui/utils → utils}/font-size.js +1 -1
  1929. package/build-module/utils/font-size.js.map +1 -0
  1930. package/build-module/utils/get-valid-children.js.map +1 -0
  1931. package/build-module/utils/hooks/use-update-effect.js +1 -1
  1932. package/build-module/utils/hooks/use-update-effect.js.map +1 -1
  1933. package/build-module/utils/space.js.map +1 -0
  1934. package/build-module/utils/strings.js +32 -2
  1935. package/build-module/utils/strings.js.map +1 -1
  1936. package/build-module/utils/types.js.map +1 -1
  1937. package/build-module/utils/unit-values.js +1 -1
  1938. package/build-module/utils/unit-values.js.map +1 -1
  1939. package/build-module/utils/use-deprecated-props.js +1 -12
  1940. package/build-module/utils/use-deprecated-props.js.map +1 -1
  1941. package/build-module/{ui/utils → utils}/use-responsive-value.js +2 -3
  1942. package/build-module/utils/use-responsive-value.js.map +1 -0
  1943. package/build-module/v-stack/component.js +2 -2
  1944. package/build-module/v-stack/component.js.map +1 -1
  1945. package/build-module/v-stack/hook.js +1 -1
  1946. package/build-module/v-stack/hook.js.map +1 -1
  1947. package/build-module/view/component.js +1 -1
  1948. package/build-module/view/component.js.map +1 -1
  1949. package/build-module/visually-hidden/component.js +2 -2
  1950. package/build-module/visually-hidden/component.js.map +1 -1
  1951. package/build-module/z-stack/component.js +3 -3
  1952. package/build-module/z-stack/component.js.map +1 -1
  1953. package/build-style/style-rtl.css +166 -183
  1954. package/build-style/style.css +166 -183
  1955. package/build-types/alignment-matrix-control/cell.d.ts +2 -2
  1956. package/build-types/alignment-matrix-control/cell.d.ts.map +1 -1
  1957. package/build-types/alignment-matrix-control/icon.d.ts +1 -1
  1958. package/build-types/alignment-matrix-control/icon.d.ts.map +1 -1
  1959. package/build-types/alignment-matrix-control/index.d.ts +1 -1
  1960. package/build-types/alignment-matrix-control/index.d.ts.map +1 -1
  1961. package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -1
  1962. package/build-types/alignment-matrix-control/utils.d.ts +9 -9
  1963. package/build-types/alignment-matrix-control/utils.d.ts.map +1 -1
  1964. package/build-types/angle-picker-control/angle-circle.d.ts +1 -1
  1965. package/build-types/angle-picker-control/angle-circle.d.ts.map +1 -1
  1966. package/build-types/angle-picker-control/index.d.ts +0 -1
  1967. package/build-types/angle-picker-control/index.d.ts.map +1 -1
  1968. package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts +0 -6
  1969. package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts.map +1 -1
  1970. package/build-types/angle-picker-control/types.d.ts +2 -0
  1971. package/build-types/angle-picker-control/types.d.ts.map +1 -1
  1972. package/build-types/animation/index.d.ts +1 -1
  1973. package/build-types/animation/index.d.ts.map +1 -1
  1974. package/build-types/autocomplete/index.d.ts.map +1 -1
  1975. package/build-types/autocomplete/types.d.ts +5 -3
  1976. package/build-types/autocomplete/types.d.ts.map +1 -1
  1977. package/build-types/base-control/hooks.d.ts +1 -1
  1978. package/build-types/base-control/index.d.ts +4 -28
  1979. package/build-types/base-control/index.d.ts.map +1 -1
  1980. package/build-types/base-control/stories/index.story.d.ts +4 -1
  1981. package/build-types/base-control/stories/index.story.d.ts.map +1 -1
  1982. package/build-types/border-box-control/border-box-control/component.d.ts +3 -2
  1983. package/build-types/border-box-control/border-box-control/component.d.ts.map +1 -1
  1984. package/build-types/border-box-control/border-box-control/hook.d.ts +47 -47
  1985. package/build-types/border-box-control/border-box-control/hook.d.ts.map +1 -1
  1986. package/build-types/border-box-control/border-box-control-linked-button/component.d.ts +1 -1
  1987. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +52 -52
  1988. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts.map +1 -1
  1989. package/build-types/border-box-control/border-box-control-split-controls/component.d.ts +2 -2
  1990. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +47 -47
  1991. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts.map +1 -1
  1992. package/build-types/border-box-control/border-box-control-visualizer/component.d.ts +1 -1
  1993. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +47 -47
  1994. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts.map +1 -1
  1995. package/build-types/border-box-control/stories/index.story.d.ts +3 -2
  1996. package/build-types/border-box-control/stories/index.story.d.ts.map +1 -1
  1997. package/build-types/border-box-control/types.d.ts +6 -0
  1998. package/build-types/border-box-control/types.d.ts.map +1 -1
  1999. package/build-types/border-control/border-control/component.d.ts +2 -1
  2000. package/build-types/border-control/border-control/component.d.ts.map +1 -1
  2001. package/build-types/border-control/border-control/hook.d.ts +48 -46
  2002. package/build-types/border-control/border-control/hook.d.ts.map +1 -1
  2003. package/build-types/border-control/border-control-dropdown/component.d.ts +2 -1
  2004. package/build-types/border-control/border-control-dropdown/component.d.ts.map +1 -1
  2005. package/build-types/border-control/border-control-dropdown/hook.d.ts +48 -46
  2006. package/build-types/border-control/border-control-dropdown/hook.d.ts.map +1 -1
  2007. package/build-types/border-control/border-control-style-picker/component.d.ts +3 -4
  2008. package/build-types/border-control/border-control-style-picker/component.d.ts.map +1 -1
  2009. package/build-types/border-control/stories/index.story.d.ts +12 -6
  2010. package/build-types/border-control/stories/index.story.d.ts.map +1 -1
  2011. package/build-types/border-control/styles.d.ts +1 -3
  2012. package/build-types/border-control/styles.d.ts.map +1 -1
  2013. package/build-types/border-control/types.d.ts +12 -1
  2014. package/build-types/border-control/types.d.ts.map +1 -1
  2015. package/build-types/box-control/all-input-control.d.ts +1 -1
  2016. package/build-types/box-control/all-input-control.d.ts.map +1 -1
  2017. package/build-types/box-control/axial-input-controls.d.ts +1 -1
  2018. package/build-types/box-control/axial-input-controls.d.ts.map +1 -1
  2019. package/build-types/box-control/icon.d.ts +1 -1
  2020. package/build-types/box-control/icon.d.ts.map +1 -1
  2021. package/build-types/box-control/index.d.ts +1 -1
  2022. package/build-types/box-control/index.d.ts.map +1 -1
  2023. package/build-types/box-control/input-controls.d.ts +1 -1
  2024. package/build-types/box-control/input-controls.d.ts.map +1 -1
  2025. package/build-types/box-control/stories/index.story.d.ts +1950 -0
  2026. package/build-types/box-control/stories/index.story.d.ts.map +1 -0
  2027. package/build-types/box-control/styles/box-control-styles.d.ts +49 -23
  2028. package/build-types/box-control/styles/box-control-styles.d.ts.map +1 -1
  2029. package/build-types/box-control/types.d.ts +12 -12
  2030. package/build-types/box-control/types.d.ts.map +1 -1
  2031. package/build-types/box-control/utils.d.ts +2 -1
  2032. package/build-types/box-control/utils.d.ts.map +1 -1
  2033. package/build-types/button/deprecated.d.ts +16 -22
  2034. package/build-types/button/deprecated.d.ts.map +1 -1
  2035. package/build-types/button/index.d.ts.map +1 -1
  2036. package/build-types/button/stories/e2e/index.story.d.ts.map +1 -1
  2037. package/build-types/button/stories/index.story.d.ts.map +1 -1
  2038. package/build-types/button/types.d.ts +8 -8
  2039. package/build-types/button/types.d.ts.map +1 -1
  2040. package/build-types/card/card/component.d.ts +1 -1
  2041. package/build-types/card/card/hook.d.ts +47 -47
  2042. package/build-types/card/card/hook.d.ts.map +1 -1
  2043. package/build-types/card/card-body/component.d.ts +1 -1
  2044. package/build-types/card/card-body/hook.d.ts +47 -47
  2045. package/build-types/card/card-body/hook.d.ts.map +1 -1
  2046. package/build-types/card/card-divider/component.d.ts +4 -4
  2047. package/build-types/card/card-divider/hook.d.ts +211 -211
  2048. package/build-types/card/card-divider/hook.d.ts.map +1 -1
  2049. package/build-types/card/card-footer/component.d.ts +1 -1
  2050. package/build-types/card/card-footer/hook.d.ts +47 -47
  2051. package/build-types/card/card-footer/hook.d.ts.map +1 -1
  2052. package/build-types/card/card-header/component.d.ts +1 -1
  2053. package/build-types/card/card-header/hook.d.ts +47 -47
  2054. package/build-types/card/card-header/hook.d.ts.map +1 -1
  2055. package/build-types/card/card-media/component.d.ts +1 -1
  2056. package/build-types/card/card-media/component.d.ts.map +1 -1
  2057. package/build-types/card/card-media/hook.d.ts +47 -47
  2058. package/build-types/card/card-media/hook.d.ts.map +1 -1
  2059. package/build-types/card/stories/index.story.d.ts +2 -2
  2060. package/build-types/checkbox-control/index.d.ts +1 -1
  2061. package/build-types/checkbox-control/index.d.ts.map +1 -1
  2062. package/build-types/checkbox-control/stories/index.story.d.ts +11 -0
  2063. package/build-types/checkbox-control/stories/index.story.d.ts.map +1 -1
  2064. package/build-types/circular-option-picker/circular-option-picker-actions.d.ts +7 -0
  2065. package/build-types/circular-option-picker/circular-option-picker-actions.d.ts.map +1 -0
  2066. package/build-types/circular-option-picker/circular-option-picker-context.d.ts +7 -0
  2067. package/build-types/circular-option-picker/circular-option-picker-context.d.ts.map +1 -0
  2068. package/build-types/circular-option-picker/circular-option-picker-option-group.d.ts +7 -0
  2069. package/build-types/circular-option-picker/circular-option-picker-option-group.d.ts.map +1 -0
  2070. package/build-types/circular-option-picker/circular-option-picker-option.d.ts +4 -0
  2071. package/build-types/circular-option-picker/circular-option-picker-option.d.ts.map +1 -0
  2072. package/build-types/circular-option-picker/circular-option-picker.d.ts +11 -0
  2073. package/build-types/circular-option-picker/circular-option-picker.d.ts.map +1 -0
  2074. package/build-types/circular-option-picker/index.d.ts +5 -56
  2075. package/build-types/circular-option-picker/index.d.ts.map +1 -1
  2076. package/build-types/circular-option-picker/stories/index.story.d.ts +3 -1
  2077. package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
  2078. package/build-types/circular-option-picker/test/index.d.ts +2 -0
  2079. package/build-types/circular-option-picker/test/index.d.ts.map +1 -0
  2080. package/build-types/circular-option-picker/types.d.ts +52 -2
  2081. package/build-types/circular-option-picker/types.d.ts.map +1 -1
  2082. package/build-types/clipboard-button/index.d.ts +1 -1
  2083. package/build-types/clipboard-button/index.d.ts.map +1 -1
  2084. package/build-types/color-palette/index.d.ts +3 -19
  2085. package/build-types/color-palette/index.d.ts.map +1 -1
  2086. package/build-types/color-palette/stories/index.story.d.ts +3 -36
  2087. package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
  2088. package/build-types/color-palette/styles.d.ts +5 -2
  2089. package/build-types/color-palette/styles.d.ts.map +1 -1
  2090. package/build-types/color-palette/types.d.ts +31 -1
  2091. package/build-types/color-palette/types.d.ts.map +1 -1
  2092. package/build-types/color-picker/color-copy-button.d.ts.map +1 -1
  2093. package/build-types/color-picker/component.d.ts +2 -2
  2094. package/build-types/color-picker/component.d.ts.map +1 -1
  2095. package/build-types/color-picker/hsl-input.d.ts.map +1 -1
  2096. package/build-types/color-picker/picker.d.ts +1 -1
  2097. package/build-types/color-picker/picker.d.ts.map +1 -1
  2098. package/build-types/color-picker/stories/index.story.d.ts +2 -2
  2099. package/build-types/color-picker/stories/index.story.d.ts.map +1 -1
  2100. package/build-types/color-picker/styles.d.ts +7 -7
  2101. package/build-types/color-picker/styles.d.ts.map +1 -1
  2102. package/build-types/color-picker/types.d.ts +4 -1
  2103. package/build-types/color-picker/types.d.ts.map +1 -1
  2104. package/build-types/combobox-control/index.d.ts.map +1 -1
  2105. package/build-types/combobox-control/stories/index.story.d.ts +2 -2
  2106. package/build-types/composite/current/index.d.ts +12 -0
  2107. package/build-types/composite/current/index.d.ts.map +1 -0
  2108. package/build-types/composite/current/stories/index.story.d.ts +13 -0
  2109. package/build-types/composite/current/stories/index.story.d.ts.map +1 -0
  2110. package/build-types/composite/current/stories/utils.d.ts +15 -0
  2111. package/build-types/composite/current/stories/utils.d.ts.map +1 -0
  2112. package/build-types/composite/index.d.ts +1 -1
  2113. package/build-types/composite/index.d.ts.map +1 -1
  2114. package/build-types/composite/legacy/index.d.ts +84 -0
  2115. package/build-types/composite/legacy/index.d.ts.map +1 -0
  2116. package/build-types/composite/legacy/stories/index.story.d.ts +12 -0
  2117. package/build-types/composite/legacy/stories/index.story.d.ts.map +1 -0
  2118. package/build-types/composite/legacy/stories/utils.d.ts +15 -0
  2119. package/build-types/composite/legacy/stories/utils.d.ts.map +1 -0
  2120. package/build-types/composite/legacy/test/index.d.ts +2 -0
  2121. package/build-types/composite/legacy/test/index.d.ts.map +1 -0
  2122. package/build-types/composite/v2.d.ts +2 -0
  2123. package/build-types/composite/v2.d.ts.map +1 -0
  2124. package/build-types/confirm-dialog/component.d.ts +70 -29
  2125. package/build-types/confirm-dialog/component.d.ts.map +1 -1
  2126. package/build-types/confirm-dialog/stories/index.story.d.ts +11 -0
  2127. package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -0
  2128. package/build-types/confirm-dialog/test/index.d.ts +2 -0
  2129. package/build-types/confirm-dialog/test/index.d.ts.map +1 -0
  2130. package/build-types/confirm-dialog/types.d.ts +32 -10
  2131. package/build-types/confirm-dialog/types.d.ts.map +1 -1
  2132. package/build-types/context/constants.d.ts.map +1 -0
  2133. package/build-types/context/context-connect.d.ts.map +1 -0
  2134. package/build-types/context/context-system-provider.d.ts.map +1 -0
  2135. package/build-types/context/get-styled-class-name-from-key.d.ts.map +1 -0
  2136. package/build-types/context/index.d.ts.map +1 -0
  2137. package/build-types/context/test/context-connect.d.ts.map +1 -0
  2138. package/build-types/context/test/wordpress-component.d.ts.map +1 -0
  2139. package/build-types/context/use-context-system.d.ts.map +1 -0
  2140. package/build-types/context/utils.d.ts.map +1 -0
  2141. package/build-types/{ui/context → context}/wordpress-component.d.ts +3 -3
  2142. package/build-types/context/wordpress-component.d.ts.map +1 -0
  2143. package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -1
  2144. package/build-types/custom-gradient-picker/index.d.ts +1 -3
  2145. package/build-types/custom-gradient-picker/index.d.ts.map +1 -1
  2146. package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts +2 -2
  2147. package/build-types/custom-gradient-picker/types.d.ts +2 -0
  2148. package/build-types/custom-gradient-picker/types.d.ts.map +1 -1
  2149. package/build-types/custom-select-control/index.d.ts.map +1 -1
  2150. package/build-types/custom-select-control/styles.d.ts +2 -2
  2151. package/build-types/custom-select-control-v2/index.d.ts +7 -0
  2152. package/build-types/custom-select-control-v2/index.d.ts.map +1 -0
  2153. package/build-types/custom-select-control-v2/stories/index.story.d.ts +20 -0
  2154. package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +1 -0
  2155. package/build-types/custom-select-control-v2/styles.d.ts +47 -0
  2156. package/build-types/custom-select-control-v2/styles.d.ts.map +1 -0
  2157. package/build-types/custom-select-control-v2/test/index.d.ts +2 -0
  2158. package/build-types/custom-select-control-v2/test/index.d.ts.map +1 -0
  2159. package/build-types/custom-select-control-v2/types.d.ts +57 -0
  2160. package/build-types/custom-select-control-v2/types.d.ts.map +1 -0
  2161. package/build-types/dashicon/index.d.ts +1 -1
  2162. package/build-types/dashicon/index.d.ts.map +1 -1
  2163. package/build-types/date-time/date/styles.d.ts +7 -4
  2164. package/build-types/date-time/date/styles.d.ts.map +1 -1
  2165. package/build-types/date-time/date-time/styles.d.ts +2 -2
  2166. package/build-types/date-time/time/index.d.ts.map +1 -1
  2167. package/build-types/date-time/time/styles.d.ts +12 -15
  2168. package/build-types/date-time/time/styles.d.ts.map +1 -1
  2169. package/build-types/date-time/time/timezone.d.ts.map +1 -1
  2170. package/build-types/dimension-control/index.d.ts.map +1 -1
  2171. package/build-types/dimension-control/types.d.ts +6 -0
  2172. package/build-types/dimension-control/types.d.ts.map +1 -1
  2173. package/build-types/disabled/index.d.ts +1 -1
  2174. package/build-types/disabled/index.d.ts.map +1 -1
  2175. package/build-types/disclosure/index.d.ts +7 -1
  2176. package/build-types/disclosure/index.d.ts.map +1 -1
  2177. package/build-types/disclosure/types.d.ts +12 -0
  2178. package/build-types/disclosure/types.d.ts.map +1 -0
  2179. package/build-types/divider/component.d.ts +8 -4
  2180. package/build-types/divider/component.d.ts.map +1 -1
  2181. package/build-types/divider/stories/index.story.d.ts.map +1 -1
  2182. package/build-types/divider/styles.d.ts +4 -4
  2183. package/build-types/divider/types.d.ts +3 -3
  2184. package/build-types/divider/types.d.ts.map +1 -1
  2185. package/build-types/drop-zone/index.d.ts +1 -1
  2186. package/build-types/drop-zone/index.d.ts.map +1 -1
  2187. package/build-types/dropdown/dropdown-content-wrapper.d.ts +1 -1
  2188. package/build-types/dropdown/dropdown-content-wrapper.d.ts.map +1 -1
  2189. package/build-types/dropdown/index.d.ts +1 -1
  2190. package/build-types/dropdown/index.d.ts.map +1 -1
  2191. package/build-types/dropdown/stories/index.story.d.ts +3 -3
  2192. package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
  2193. package/build-types/dropdown/types.d.ts +12 -4
  2194. package/build-types/dropdown/types.d.ts.map +1 -1
  2195. package/build-types/dropdown-menu/index.d.ts +1 -1
  2196. package/build-types/dropdown-menu/index.d.ts.map +1 -1
  2197. package/build-types/dropdown-menu/stories/index.story.d.ts +2 -2
  2198. package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
  2199. package/build-types/dropdown-menu/types.d.ts +23 -6
  2200. package/build-types/dropdown-menu/types.d.ts.map +1 -1
  2201. package/build-types/dropdown-menu-v2/index.d.ts +18 -15
  2202. package/build-types/dropdown-menu-v2/index.d.ts.map +1 -1
  2203. package/build-types/dropdown-menu-v2/stories/index.story.d.ts +7 -2
  2204. package/build-types/dropdown-menu-v2/stories/index.story.d.ts.map +1 -1
  2205. package/build-types/dropdown-menu-v2/styles.d.ts +77 -23
  2206. package/build-types/dropdown-menu-v2/styles.d.ts.map +1 -1
  2207. package/build-types/dropdown-menu-v2/types.d.ts +89 -173
  2208. package/build-types/dropdown-menu-v2/types.d.ts.map +1 -1
  2209. package/build-types/duotone-picker/color-list-picker/index.d.ts.map +1 -1
  2210. package/build-types/duotone-picker/duotone-picker.d.ts +1 -1
  2211. package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -1
  2212. package/build-types/duotone-picker/types.d.ts +31 -1
  2213. package/build-types/duotone-picker/types.d.ts.map +1 -1
  2214. package/build-types/elevation/component.d.ts +1 -1
  2215. package/build-types/elevation/component.d.ts.map +1 -1
  2216. package/build-types/elevation/hook.d.ts +47 -47
  2217. package/build-types/elevation/hook.d.ts.map +1 -1
  2218. package/build-types/external-link/index.d.ts +1 -1
  2219. package/build-types/external-link/index.d.ts.map +1 -1
  2220. package/build-types/external-link/styles/external-link-styles.d.ts +1 -1
  2221. package/build-types/flex/flex/component.d.ts +1 -1
  2222. package/build-types/flex/flex/component.d.ts.map +1 -1
  2223. package/build-types/flex/flex/hook.d.ts +47 -47
  2224. package/build-types/flex/flex/hook.d.ts.map +1 -1
  2225. package/build-types/flex/flex-block/component.d.ts +1 -1
  2226. package/build-types/flex/flex-block/component.d.ts.map +1 -1
  2227. package/build-types/flex/flex-block/hook.d.ts +47 -47
  2228. package/build-types/flex/flex-block/hook.d.ts.map +1 -1
  2229. package/build-types/flex/flex-item/component.d.ts +1 -1
  2230. package/build-types/flex/flex-item/component.d.ts.map +1 -1
  2231. package/build-types/flex/flex-item/hook.d.ts +47 -47
  2232. package/build-types/flex/flex-item/hook.d.ts.map +1 -1
  2233. package/build-types/flex/types.d.ts +2 -2
  2234. package/build-types/flex/types.d.ts.map +1 -1
  2235. package/build-types/focal-point-picker/controls.d.ts +1 -1
  2236. package/build-types/focal-point-picker/controls.d.ts.map +1 -1
  2237. package/build-types/focal-point-picker/focal-point.d.ts +1 -1
  2238. package/build-types/focal-point-picker/focal-point.d.ts.map +1 -1
  2239. package/build-types/focal-point-picker/grid.d.ts +1 -1
  2240. package/build-types/focal-point-picker/grid.d.ts.map +1 -1
  2241. package/build-types/focal-point-picker/index.d.ts +2 -2
  2242. package/build-types/focal-point-picker/index.d.ts.map +1 -1
  2243. package/build-types/focal-point-picker/stories/index.story.d.ts +12 -8
  2244. package/build-types/focal-point-picker/stories/index.story.d.ts.map +1 -1
  2245. package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts +2 -2
  2246. package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts.map +1 -1
  2247. package/build-types/focal-point-picker/styles/focal-point-style.d.ts.map +1 -1
  2248. package/build-types/focal-point-picker/types.d.ts +7 -0
  2249. package/build-types/focal-point-picker/types.d.ts.map +1 -1
  2250. package/build-types/focusable-iframe/index.d.ts +4 -5
  2251. package/build-types/focusable-iframe/index.d.ts.map +1 -1
  2252. package/build-types/focusable-iframe/types.d.ts +8 -0
  2253. package/build-types/focusable-iframe/types.d.ts.map +1 -0
  2254. package/build-types/font-size-picker/font-size-picker-select.d.ts.map +1 -1
  2255. package/build-types/font-size-picker/font-size-picker-toggle-group.d.ts.map +1 -1
  2256. package/build-types/font-size-picker/index.d.ts.map +1 -1
  2257. package/build-types/font-size-picker/stories/index.story.d.ts.map +1 -1
  2258. package/build-types/font-size-picker/styles.d.ts +2 -8
  2259. package/build-types/font-size-picker/styles.d.ts.map +1 -1
  2260. package/build-types/font-size-picker/types.d.ts +10 -1
  2261. package/build-types/font-size-picker/types.d.ts.map +1 -1
  2262. package/build-types/font-size-picker/utils.d.ts.map +1 -1
  2263. package/build-types/form-file-upload/index.d.ts +1 -1
  2264. package/build-types/form-file-upload/index.d.ts.map +1 -1
  2265. package/build-types/form-toggle/index.d.ts +1 -1
  2266. package/build-types/form-toggle/index.d.ts.map +1 -1
  2267. package/build-types/form-token-field/index.d.ts.map +1 -1
  2268. package/build-types/form-token-field/token-input.d.ts +1 -1
  2269. package/build-types/form-token-field/token-input.d.ts.map +1 -1
  2270. package/build-types/form-token-field/token.d.ts.map +1 -1
  2271. package/build-types/form-token-field/types.d.ts +7 -1
  2272. package/build-types/form-token-field/types.d.ts.map +1 -1
  2273. package/build-types/gradient-picker/index.d.ts +1 -4
  2274. package/build-types/gradient-picker/index.d.ts.map +1 -1
  2275. package/build-types/gradient-picker/stories/index.story.d.ts +3 -36
  2276. package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
  2277. package/build-types/gradient-picker/types.d.ts +33 -1
  2278. package/build-types/gradient-picker/types.d.ts.map +1 -1
  2279. package/build-types/grid/component.d.ts +1 -1
  2280. package/build-types/grid/component.d.ts.map +1 -1
  2281. package/build-types/grid/hook.d.ts +47 -47
  2282. package/build-types/grid/hook.d.ts.map +1 -1
  2283. package/build-types/grid/types.d.ts +1 -1
  2284. package/build-types/grid/types.d.ts.map +1 -1
  2285. package/build-types/guide/page.d.ts +1 -1
  2286. package/build-types/guide/page.d.ts.map +1 -1
  2287. package/build-types/h-stack/component.d.ts +2 -2
  2288. package/build-types/h-stack/hook.d.ts +47 -47
  2289. package/build-types/h-stack/hook.d.ts.map +1 -1
  2290. package/build-types/heading/component.d.ts +4 -1
  2291. package/build-types/heading/component.d.ts.map +1 -1
  2292. package/build-types/heading/hook.d.ts +46 -46
  2293. package/build-types/heading/hook.d.ts.map +1 -1
  2294. package/build-types/heading/stories/index.story.d.ts.map +1 -1
  2295. package/build-types/heading/types.d.ts +20 -1
  2296. package/build-types/heading/types.d.ts.map +1 -1
  2297. package/build-types/higher-order/navigate-regions/index.d.ts.map +1 -1
  2298. package/build-types/higher-order/with-focus-outside/index.d.ts +1 -0
  2299. package/build-types/higher-order/with-focus-outside/index.d.ts.map +1 -1
  2300. package/build-types/higher-order/with-focus-outside/test/index.d.ts +2 -0
  2301. package/build-types/higher-order/with-focus-outside/test/index.d.ts.map +1 -0
  2302. package/build-types/higher-order/with-focus-return/index.d.ts +1 -1
  2303. package/build-types/higher-order/with-spoken-messages/index.d.ts +3 -3
  2304. package/build-types/higher-order/with-spoken-messages/index.d.ts.map +1 -1
  2305. package/build-types/index.d.ts +1 -1
  2306. package/build-types/index.d.ts.map +1 -1
  2307. package/build-types/input-control/backdrop.d.ts +2 -1
  2308. package/build-types/input-control/backdrop.d.ts.map +1 -1
  2309. package/build-types/input-control/index.d.ts +1 -1
  2310. package/build-types/input-control/index.d.ts.map +1 -1
  2311. package/build-types/input-control/input-base.d.ts +3 -5
  2312. package/build-types/input-control/input-base.d.ts.map +1 -1
  2313. package/build-types/input-control/input-prefix-wrapper.d.ts +1 -1
  2314. package/build-types/input-control/input-prefix-wrapper.d.ts.map +1 -1
  2315. package/build-types/input-control/input-suffix-wrapper.d.ts +1 -1
  2316. package/build-types/input-control/input-suffix-wrapper.d.ts.map +1 -1
  2317. package/build-types/input-control/label.d.ts +1 -1
  2318. package/build-types/input-control/label.d.ts.map +1 -1
  2319. package/build-types/input-control/styles/input-control-styles.d.ts +15 -3
  2320. package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
  2321. package/build-types/input-control/types.d.ts +18 -5
  2322. package/build-types/input-control/types.d.ts.map +1 -1
  2323. package/build-types/isolated-event-container/test/index.d.ts +2 -0
  2324. package/build-types/isolated-event-container/test/index.d.ts.map +1 -0
  2325. package/build-types/item-group/item/component.d.ts +1 -1
  2326. package/build-types/item-group/item/component.d.ts.map +1 -1
  2327. package/build-types/item-group/item/hook.d.ts +47 -47
  2328. package/build-types/item-group/item/hook.d.ts.map +1 -1
  2329. package/build-types/item-group/item-group/component.d.ts +1 -1
  2330. package/build-types/item-group/item-group/component.d.ts.map +1 -1
  2331. package/build-types/item-group/item-group/hook.d.ts +47 -47
  2332. package/build-types/item-group/item-group/hook.d.ts.map +1 -1
  2333. package/build-types/item-group/styles.d.ts.map +1 -1
  2334. package/build-types/lock-unlock.d.ts +3 -0
  2335. package/build-types/lock-unlock.d.ts.map +1 -0
  2336. package/build-types/menu-item/index.d.ts +1 -1
  2337. package/build-types/menu-item/stories/index.story.d.ts +4 -4
  2338. package/build-types/mobile/image/constants.d.ts +5 -0
  2339. package/build-types/mobile/image/constants.d.ts.map +1 -0
  2340. package/build-types/modal/aria-helper.d.ts +6 -7
  2341. package/build-types/modal/aria-helper.d.ts.map +1 -1
  2342. package/build-types/modal/index.d.ts.map +1 -1
  2343. package/build-types/modal/stories/index.story.d.ts +1 -0
  2344. package/build-types/modal/stories/index.story.d.ts.map +1 -1
  2345. package/build-types/modal/types.d.ts +10 -1
  2346. package/build-types/modal/types.d.ts.map +1 -1
  2347. package/build-types/navigable-container/menu.d.ts +1 -1
  2348. package/build-types/navigable-container/types.d.ts +1 -1
  2349. package/build-types/navigable-container/types.d.ts.map +1 -1
  2350. package/build-types/navigation/back-button/index.d.ts +1 -1
  2351. package/build-types/navigation/styles/navigation-styles.d.ts +9 -11
  2352. package/build-types/navigation/styles/navigation-styles.d.ts.map +1 -1
  2353. package/build-types/navigator/navigator-back-button/component.d.ts +3 -4
  2354. package/build-types/navigator/navigator-back-button/component.d.ts.map +1 -1
  2355. package/build-types/navigator/navigator-back-button/hook.d.ts +54 -55
  2356. package/build-types/navigator/navigator-back-button/hook.d.ts.map +1 -1
  2357. package/build-types/navigator/navigator-button/component.d.ts +3 -4
  2358. package/build-types/navigator/navigator-button/component.d.ts.map +1 -1
  2359. package/build-types/navigator/navigator-button/hook.d.ts +54 -55
  2360. package/build-types/navigator/navigator-button/hook.d.ts.map +1 -1
  2361. package/build-types/navigator/navigator-provider/component.d.ts +1 -1
  2362. package/build-types/navigator/navigator-provider/component.d.ts.map +1 -1
  2363. package/build-types/navigator/navigator-screen/component.d.ts +1 -7
  2364. package/build-types/navigator/navigator-screen/component.d.ts.map +1 -1
  2365. package/build-types/navigator/navigator-to-parent-button/component.d.ts +3 -4
  2366. package/build-types/navigator/navigator-to-parent-button/component.d.ts.map +1 -1
  2367. package/build-types/navigator/styles.d.ts +9 -0
  2368. package/build-types/navigator/styles.d.ts.map +1 -0
  2369. package/build-types/notice/index.d.ts.map +1 -1
  2370. package/build-types/notice/list.d.ts +1 -1
  2371. package/build-types/notice/list.d.ts.map +1 -1
  2372. package/build-types/number-control/index.d.ts +3 -3
  2373. package/build-types/number-control/index.d.ts.map +1 -1
  2374. package/build-types/number-control/stories/index.story.d.ts +3 -3
  2375. package/build-types/number-control/stories/index.story.d.ts.map +1 -1
  2376. package/build-types/number-control/types.d.ts +1 -1
  2377. package/build-types/palette-edit/index.d.ts +2 -2
  2378. package/build-types/palette-edit/index.d.ts.map +1 -1
  2379. package/build-types/palette-edit/stories/index.story.d.ts.map +1 -1
  2380. package/build-types/palette-edit/styles.d.ts +20 -23
  2381. package/build-types/palette-edit/styles.d.ts.map +1 -1
  2382. package/build-types/panel/types.d.ts +1 -1
  2383. package/build-types/panel/types.d.ts.map +1 -1
  2384. package/build-types/placeholder/index.d.ts +1 -1
  2385. package/build-types/placeholder/index.d.ts.map +1 -1
  2386. package/build-types/popover/index.d.ts +2 -2
  2387. package/build-types/popover/index.d.ts.map +1 -1
  2388. package/build-types/popover/overlay-middlewares.d.ts +1 -1
  2389. package/build-types/popover/stories/e2e/index.story.d.ts +1 -1
  2390. package/build-types/popover/types.d.ts +9 -4
  2391. package/build-types/popover/types.d.ts.map +1 -1
  2392. package/build-types/popover/utils.d.ts +2 -6
  2393. package/build-types/popover/utils.d.ts.map +1 -1
  2394. package/build-types/private-apis.d.ts +0 -1
  2395. package/build-types/private-apis.d.ts.map +1 -1
  2396. package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
  2397. package/build-types/progress-bar/styles.d.ts.map +1 -1
  2398. package/build-types/query-controls/author-select.d.ts +1 -1
  2399. package/build-types/query-controls/author-select.d.ts.map +1 -1
  2400. package/build-types/query-controls/category-select.d.ts +1 -1
  2401. package/build-types/query-controls/category-select.d.ts.map +1 -1
  2402. package/build-types/query-controls/index.d.ts +1 -1
  2403. package/build-types/query-controls/index.d.ts.map +1 -1
  2404. package/build-types/query-controls/types.d.ts +9 -0
  2405. package/build-types/query-controls/types.d.ts.map +1 -1
  2406. package/build-types/radio-control/index.d.ts +1 -1
  2407. package/build-types/radio-control/index.d.ts.map +1 -1
  2408. package/build-types/radio-group/context.d.ts +10 -0
  2409. package/build-types/radio-group/context.d.ts.map +1 -0
  2410. package/build-types/radio-group/index.d.ts +7 -9
  2411. package/build-types/radio-group/index.d.ts.map +1 -1
  2412. package/build-types/radio-group/radio.d.ts +8 -0
  2413. package/build-types/radio-group/radio.d.ts.map +1 -0
  2414. package/build-types/radio-group/stories/index.story.d.ts +14 -0
  2415. package/build-types/radio-group/stories/index.story.d.ts.map +1 -0
  2416. package/build-types/radio-group/types.d.ts +40 -0
  2417. package/build-types/radio-group/types.d.ts.map +1 -0
  2418. package/build-types/range-control/index.d.ts +2 -14
  2419. package/build-types/range-control/index.d.ts.map +1 -1
  2420. package/build-types/range-control/mark.d.ts +1 -1
  2421. package/build-types/range-control/mark.d.ts.map +1 -1
  2422. package/build-types/range-control/rail.d.ts +1 -1
  2423. package/build-types/range-control/rail.d.ts.map +1 -1
  2424. package/build-types/range-control/styles/range-control-styles.d.ts +3 -3
  2425. package/build-types/range-control/tooltip.d.ts +1 -1
  2426. package/build-types/range-control/tooltip.d.ts.map +1 -1
  2427. package/build-types/resizable-box/index.d.ts +1 -1
  2428. package/build-types/resizable-box/resize-tooltip/index.d.ts +1 -1
  2429. package/build-types/resizable-box/resize-tooltip/label.d.ts +1 -1
  2430. package/build-types/resizable-box/stories/index.story.d.ts +2 -2
  2431. package/build-types/sandbox/index.d.ts +1 -1
  2432. package/build-types/sandbox/index.d.ts.map +1 -1
  2433. package/build-types/sandbox/types.d.ts +6 -0
  2434. package/build-types/sandbox/types.d.ts.map +1 -1
  2435. package/build-types/scrollable/component.d.ts +1 -1
  2436. package/build-types/scrollable/component.d.ts.map +1 -1
  2437. package/build-types/scrollable/hook.d.ts +47 -47
  2438. package/build-types/scrollable/hook.d.ts.map +1 -1
  2439. package/build-types/search-control/index.d.ts +4 -7
  2440. package/build-types/search-control/index.d.ts.map +1 -1
  2441. package/build-types/search-control/stories/index.story.d.ts +2 -14
  2442. package/build-types/search-control/stories/index.story.d.ts.map +1 -1
  2443. package/build-types/search-control/styles.d.ts +10 -0
  2444. package/build-types/search-control/styles.d.ts.map +1 -0
  2445. package/build-types/search-control/test/index.d.ts +2 -0
  2446. package/build-types/search-control/test/index.d.ts.map +1 -0
  2447. package/build-types/search-control/types.d.ts +38 -10
  2448. package/build-types/search-control/types.d.ts.map +1 -1
  2449. package/build-types/select-control/index.d.ts +1 -1
  2450. package/build-types/select-control/index.d.ts.map +1 -1
  2451. package/build-types/select-control/stories/index.story.d.ts +2 -2
  2452. package/build-types/select-control/stories/index.story.d.ts.map +1 -1
  2453. package/build-types/select-control/styles/select-control-styles.d.ts +1 -1
  2454. package/build-types/select-control/styles/select-control-styles.d.ts.map +1 -1
  2455. package/build-types/select-control/types.d.ts +1 -1
  2456. package/build-types/select-control/types.d.ts.map +1 -1
  2457. package/build-types/slot-fill/bubbles-virtually/fill.d.ts +3 -4
  2458. package/build-types/slot-fill/bubbles-virtually/fill.d.ts.map +1 -1
  2459. package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts +6 -10
  2460. package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts.map +1 -1
  2461. package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts +3 -3
  2462. package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts.map +1 -1
  2463. package/build-types/slot-fill/bubbles-virtually/slot.d.ts +8 -1
  2464. package/build-types/slot-fill/bubbles-virtually/slot.d.ts.map +1 -1
  2465. package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts +2 -1
  2466. package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts.map +1 -1
  2467. package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts +9 -1
  2468. package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts.map +1 -1
  2469. package/build-types/slot-fill/context.d.ts +6 -9
  2470. package/build-types/slot-fill/context.d.ts.map +1 -1
  2471. package/build-types/slot-fill/fill.d.ts +2 -4
  2472. package/build-types/slot-fill/fill.d.ts.map +1 -1
  2473. package/build-types/slot-fill/index.d.ts +20 -16
  2474. package/build-types/slot-fill/index.d.ts.map +1 -1
  2475. package/build-types/slot-fill/provider.d.ts +4 -26
  2476. package/build-types/slot-fill/provider.d.ts.map +1 -1
  2477. package/build-types/slot-fill/slot.d.ts +3 -1
  2478. package/build-types/slot-fill/slot.d.ts.map +1 -1
  2479. package/build-types/slot-fill/stories/index.story.d.ts +15 -0
  2480. package/build-types/slot-fill/stories/index.story.d.ts.map +1 -0
  2481. package/build-types/slot-fill/types.d.ts +118 -0
  2482. package/build-types/slot-fill/types.d.ts.map +1 -0
  2483. package/build-types/slot-fill/use-slot.d.ts +6 -4
  2484. package/build-types/slot-fill/use-slot.d.ts.map +1 -1
  2485. package/build-types/snackbar/index.d.ts +2 -2
  2486. package/build-types/snackbar/index.d.ts.map +1 -1
  2487. package/build-types/snackbar/list.d.ts +1 -1
  2488. package/build-types/snackbar/list.d.ts.map +1 -1
  2489. package/build-types/snackbar/stories/index.story.d.ts +0 -3
  2490. package/build-types/snackbar/stories/index.story.d.ts.map +1 -1
  2491. package/build-types/snackbar/types.d.ts +1 -1
  2492. package/build-types/snackbar/types.d.ts.map +1 -1
  2493. package/build-types/spacer/component.d.ts +1 -1
  2494. package/build-types/spacer/component.d.ts.map +1 -1
  2495. package/build-types/spacer/hook.d.ts +47 -47
  2496. package/build-types/spacer/hook.d.ts.map +1 -1
  2497. package/build-types/spacer/types.d.ts +1 -1
  2498. package/build-types/spacer/types.d.ts.map +1 -1
  2499. package/build-types/spinner/index.d.ts +2 -2
  2500. package/build-types/spinner/index.d.ts.map +1 -1
  2501. package/build-types/surface/component.d.ts +1 -1
  2502. package/build-types/surface/component.d.ts.map +1 -1
  2503. package/build-types/surface/hook.d.ts +47 -47
  2504. package/build-types/surface/hook.d.ts.map +1 -1
  2505. package/build-types/tab-panel/index.d.ts.map +1 -1
  2506. package/build-types/tabs/context.d.ts +8 -0
  2507. package/build-types/tabs/context.d.ts.map +1 -0
  2508. package/build-types/tabs/index.d.ts +14 -0
  2509. package/build-types/tabs/index.d.ts.map +1 -0
  2510. package/build-types/tabs/stories/index.story.d.ts +20 -0
  2511. package/build-types/tabs/stories/index.story.d.ts.map +1 -0
  2512. package/build-types/tabs/styles.d.ts +27 -0
  2513. package/build-types/tabs/styles.d.ts.map +1 -0
  2514. package/build-types/tabs/tab.d.ts +11 -0
  2515. package/build-types/tabs/tab.d.ts.map +1 -0
  2516. package/build-types/tabs/tablist.d.ts +7 -0
  2517. package/build-types/tabs/tablist.d.ts.map +1 -0
  2518. package/build-types/tabs/tabpanel.d.ts +11 -0
  2519. package/build-types/tabs/tabpanel.d.ts.map +1 -0
  2520. package/build-types/tabs/test/index.d.ts +2 -0
  2521. package/build-types/{ui/tooltip → tabs/test}/index.d.ts.map +1 -1
  2522. package/build-types/tabs/types.d.ts +115 -0
  2523. package/build-types/tabs/types.d.ts.map +1 -0
  2524. package/build-types/text/component.d.ts +4 -2
  2525. package/build-types/text/component.d.ts.map +1 -1
  2526. package/build-types/text/hook.d.ts +214 -208
  2527. package/build-types/text/hook.d.ts.map +1 -1
  2528. package/build-types/text/index.d.ts +2 -2
  2529. package/build-types/text/index.d.ts.map +1 -1
  2530. package/build-types/text/stories/index.story.d.ts +21 -0
  2531. package/build-types/text/stories/index.story.d.ts.map +1 -0
  2532. package/build-types/text/styles.d.ts +7 -7
  2533. package/build-types/text/styles.d.ts.map +1 -1
  2534. package/build-types/text/types.d.ts +18 -4
  2535. package/build-types/text/types.d.ts.map +1 -1
  2536. package/build-types/text/utils.d.ts +56 -61
  2537. package/build-types/text/utils.d.ts.map +1 -1
  2538. package/build-types/text-control/index.d.ts +4 -3
  2539. package/build-types/text-control/index.d.ts.map +1 -1
  2540. package/build-types/text-control/types.d.ts +6 -0
  2541. package/build-types/text-control/types.d.ts.map +1 -1
  2542. package/build-types/textarea-control/index.d.ts +5 -3
  2543. package/build-types/textarea-control/index.d.ts.map +1 -1
  2544. package/build-types/theme/index.d.ts +1 -1
  2545. package/build-types/theme/index.d.ts.map +1 -1
  2546. package/build-types/theme/stories/index.story.d.ts.map +1 -1
  2547. package/build-types/theme/styles.d.ts.map +1 -1
  2548. package/build-types/toggle-control/index.d.ts +1 -1
  2549. package/build-types/toggle-control/index.d.ts.map +1 -1
  2550. package/build-types/toggle-control/stories/index.story.d.ts +2 -2
  2551. package/build-types/toggle-group-control/toggle-group-control/as-button-group.d.ts +2 -4
  2552. package/build-types/toggle-group-control/toggle-group-control/as-button-group.d.ts.map +1 -1
  2553. package/build-types/toggle-group-control/toggle-group-control/as-radio-group.d.ts +2 -4
  2554. package/build-types/toggle-group-control/toggle-group-control/as-radio-group.d.ts.map +1 -1
  2555. package/build-types/toggle-group-control/toggle-group-control/component.d.ts +4 -3
  2556. package/build-types/toggle-group-control/toggle-group-control/component.d.ts.map +1 -1
  2557. package/build-types/toggle-group-control/toggle-group-control/styles.d.ts +1 -5
  2558. package/build-types/toggle-group-control/toggle-group-control/styles.d.ts.map +1 -1
  2559. package/build-types/toggle-group-control/toggle-group-control/utils.d.ts +18 -0
  2560. package/build-types/toggle-group-control/toggle-group-control/utils.d.ts.map +1 -0
  2561. package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts +1 -1
  2562. package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts +5 -1
  2563. package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts.map +1 -1
  2564. package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts +1 -0
  2565. package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts.map +1 -1
  2566. package/build-types/toggle-group-control/toggle-group-control-option-icon/component.d.ts +1 -1
  2567. package/build-types/toggle-group-control/types.d.ts +19 -24
  2568. package/build-types/toggle-group-control/types.d.ts.map +1 -1
  2569. package/build-types/toolbar/stories/index.story.d.ts +5 -0
  2570. package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
  2571. package/build-types/toolbar/toolbar/index.d.ts.map +1 -1
  2572. package/build-types/toolbar/toolbar/toolbar-container.d.ts.map +1 -1
  2573. package/build-types/toolbar/toolbar/types.d.ts +10 -0
  2574. package/build-types/toolbar/toolbar/types.d.ts.map +1 -1
  2575. package/build-types/toolbar/toolbar-button/index.d.ts +16 -22
  2576. package/build-types/toolbar/toolbar-button/index.d.ts.map +1 -1
  2577. package/build-types/toolbar/toolbar-context/index.d.ts +2 -2
  2578. package/build-types/toolbar/toolbar-context/index.d.ts.map +1 -1
  2579. package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts +3 -1
  2580. package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts.map +1 -1
  2581. package/build-types/toolbar/toolbar-group/index.d.ts +10 -14
  2582. package/build-types/toolbar/toolbar-group/index.d.ts.map +1 -1
  2583. package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts +3 -5
  2584. package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts.map +1 -1
  2585. package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts +7 -5
  2586. package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts.map +1 -1
  2587. package/build-types/toolbar/toolbar-group/types.d.ts +77 -0
  2588. package/build-types/toolbar/toolbar-group/types.d.ts.map +1 -0
  2589. package/build-types/toolbar/toolbar-item/index.d.ts +3 -1
  2590. package/build-types/toolbar/toolbar-item/index.d.ts.map +1 -1
  2591. package/build-types/tools-panel/tools-panel/component.d.ts +1 -1
  2592. package/build-types/tools-panel/tools-panel/component.d.ts.map +1 -1
  2593. package/build-types/tools-panel/tools-panel/hook.d.ts +48 -47
  2594. package/build-types/tools-panel/tools-panel/hook.d.ts.map +1 -1
  2595. package/build-types/tools-panel/tools-panel-header/component.d.ts +1 -1
  2596. package/build-types/tools-panel/tools-panel-header/component.d.ts.map +1 -1
  2597. package/build-types/tools-panel/tools-panel-header/hook.d.ts +48 -47
  2598. package/build-types/tools-panel/tools-panel-header/hook.d.ts.map +1 -1
  2599. package/build-types/tools-panel/tools-panel-item/component.d.ts +1 -1
  2600. package/build-types/tools-panel/tools-panel-item/hook.d.ts +47 -47
  2601. package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
  2602. package/build-types/tools-panel/types.d.ts +11 -0
  2603. package/build-types/tools-panel/types.d.ts.map +1 -1
  2604. package/build-types/tooltip/index.d.ts +8 -5
  2605. package/build-types/tooltip/index.d.ts.map +1 -1
  2606. package/build-types/tooltip/stories/index.story.d.ts +22 -0
  2607. package/build-types/tooltip/stories/index.story.d.ts.map +1 -0
  2608. package/build-types/tooltip/test/index.d.ts +2 -0
  2609. package/build-types/{ui/utils → tooltip/test}/index.d.ts.map +1 -1
  2610. package/build-types/tooltip/test/utils/index.d.ts +11 -0
  2611. package/build-types/tooltip/test/utils/index.d.ts.map +1 -0
  2612. package/build-types/tooltip/types.d.ts +64 -0
  2613. package/build-types/tooltip/types.d.ts.map +1 -0
  2614. package/build-types/tree-grid/cell.d.ts +1 -1
  2615. package/build-types/tree-grid/cell.d.ts.map +1 -1
  2616. package/build-types/tree-select/index.d.ts +1 -1
  2617. package/build-types/tree-select/index.d.ts.map +1 -1
  2618. package/build-types/truncate/component.d.ts +1 -1
  2619. package/build-types/truncate/component.d.ts.map +1 -1
  2620. package/build-types/truncate/hook.d.ts +48 -48
  2621. package/build-types/truncate/hook.d.ts.map +1 -1
  2622. package/build-types/truncate/types.d.ts +4 -0
  2623. package/build-types/truncate/types.d.ts.map +1 -1
  2624. package/build-types/unit-control/index.d.ts +2 -2
  2625. package/build-types/unit-control/index.d.ts.map +1 -1
  2626. package/build-types/unit-control/styles/unit-control-styles.d.ts +3 -3
  2627. package/build-types/unit-control/styles/unit-control-styles.d.ts.map +1 -1
  2628. package/build-types/unit-control/types.d.ts +8 -4
  2629. package/build-types/unit-control/types.d.ts.map +1 -1
  2630. package/build-types/unit-control/unit-select-control.d.ts +2 -6
  2631. package/build-types/unit-control/unit-select-control.d.ts.map +1 -1
  2632. package/build-types/unit-control/utils.d.ts.map +1 -1
  2633. package/build-types/utils/colors-values.d.ts +28 -1
  2634. package/build-types/utils/colors-values.d.ts.map +1 -1
  2635. package/build-types/utils/colors.d.ts +16 -0
  2636. package/build-types/utils/colors.d.ts.map +1 -1
  2637. package/build-types/utils/font-size.d.ts.map +1 -0
  2638. package/build-types/utils/get-valid-children.d.ts.map +1 -0
  2639. package/build-types/utils/hooks/use-update-effect.d.ts +1 -1
  2640. package/build-types/utils/space.d.ts.map +1 -0
  2641. package/build-types/utils/strings.d.ts +14 -2
  2642. package/build-types/utils/strings.d.ts.map +1 -1
  2643. package/build-types/utils/types.d.ts +1 -13
  2644. package/build-types/utils/types.d.ts.map +1 -1
  2645. package/build-types/utils/use-deprecated-props.d.ts +1 -3
  2646. package/build-types/utils/use-deprecated-props.d.ts.map +1 -1
  2647. package/build-types/utils/use-responsive-value.d.ts.map +1 -0
  2648. package/build-types/v-stack/component.d.ts +2 -2
  2649. package/build-types/v-stack/hook.d.ts +47 -47
  2650. package/build-types/v-stack/hook.d.ts.map +1 -1
  2651. package/build-types/v-stack/stories/index.story.d.ts +2 -2
  2652. package/build-types/view/component.d.ts +1 -1
  2653. package/build-types/view/component.d.ts.map +1 -1
  2654. package/build-types/visually-hidden/component.d.ts +1 -1
  2655. package/build-types/visually-hidden/component.d.ts.map +1 -1
  2656. package/build-types/z-stack/component.d.ts +1 -1
  2657. package/build-types/z-stack/component.d.ts.map +1 -1
  2658. package/package.json +24 -24
  2659. package/src/alignment-matrix-control/README.md +1 -1
  2660. package/src/alignment-matrix-control/cell.tsx +7 -3
  2661. package/src/alignment-matrix-control/icon.tsx +1 -1
  2662. package/src/alignment-matrix-control/index.tsx +32 -55
  2663. package/src/alignment-matrix-control/stories/index.story.tsx +3 -7
  2664. package/src/alignment-matrix-control/test/index.tsx +112 -19
  2665. package/src/alignment-matrix-control/utils.tsx +33 -9
  2666. package/src/angle-picker-control/README.md +1 -9
  2667. package/src/angle-picker-control/angle-circle.tsx +1 -1
  2668. package/src/angle-picker-control/index.tsx +5 -25
  2669. package/src/angle-picker-control/stories/index.story.tsx +0 -3
  2670. package/src/angle-picker-control/styles/angle-picker-control-styles.tsx +1 -19
  2671. package/src/angle-picker-control/types.ts +2 -0
  2672. package/src/animation/index.tsx +1 -0
  2673. package/src/autocomplete/index.tsx +136 -77
  2674. package/src/autocomplete/types.ts +6 -2
  2675. package/src/base-control/index.tsx +22 -17
  2676. package/src/base-control/styles/base-control-styles.ts +1 -1
  2677. package/src/border-box-control/border-box-control/README.md +1 -1
  2678. package/src/border-box-control/border-box-control/component.tsx +2 -3
  2679. package/src/border-box-control/border-box-control/hook.ts +7 -3
  2680. package/src/border-box-control/border-box-control-linked-button/component.tsx +3 -3
  2681. package/src/border-box-control/border-box-control-linked-button/hook.ts +2 -2
  2682. package/src/border-box-control/border-box-control-split-controls/component.tsx +2 -2
  2683. package/src/border-box-control/border-box-control-split-controls/hook.ts +2 -2
  2684. package/src/border-box-control/border-box-control-visualizer/component.tsx +2 -2
  2685. package/src/border-box-control/border-box-control-visualizer/hook.ts +2 -2
  2686. package/src/border-box-control/types.ts +6 -0
  2687. package/src/border-control/border-control/README.md +2 -2
  2688. package/src/border-control/border-control/component.tsx +6 -2
  2689. package/src/border-control/border-control/hook.ts +24 -18
  2690. package/src/border-control/border-control-dropdown/component.tsx +8 -5
  2691. package/src/border-control/border-control-dropdown/hook.ts +5 -4
  2692. package/src/border-control/border-control-style-picker/component.tsx +32 -67
  2693. package/src/border-control/styles.ts +6 -28
  2694. package/src/border-control/test/index.js +79 -69
  2695. package/src/border-control/types.ts +15 -1
  2696. package/src/box-control/README.md +1 -1
  2697. package/src/box-control/all-input-control.tsx +57 -34
  2698. package/src/box-control/axial-input-controls.tsx +79 -69
  2699. package/src/box-control/icon.tsx +1 -1
  2700. package/src/box-control/index.tsx +47 -54
  2701. package/src/box-control/input-controls.tsx +114 -83
  2702. package/src/box-control/linked-button.tsx +1 -1
  2703. package/src/box-control/stories/index.story.tsx +82 -0
  2704. package/src/box-control/styles/box-control-styles.ts +21 -61
  2705. package/src/box-control/test/index.tsx +126 -18
  2706. package/src/box-control/types.ts +10 -21
  2707. package/src/box-control/utils.ts +43 -8
  2708. package/src/button/README.md +35 -13
  2709. package/src/button/index.tsx +53 -34
  2710. package/src/button/stories/e2e/index.story.tsx +6 -0
  2711. package/src/button/stories/index.story.tsx +11 -0
  2712. package/src/button/style.scss +23 -3
  2713. package/src/button/test/index.tsx +208 -6
  2714. package/src/button/types.ts +8 -8
  2715. package/src/button-group/README.md +0 -6
  2716. package/src/button-group/index.tsx +1 -1
  2717. package/src/card/card/README.md +2 -2
  2718. package/src/card/card/component.tsx +2 -2
  2719. package/src/card/card/hook.ts +2 -2
  2720. package/src/card/card-body/component.tsx +2 -2
  2721. package/src/card/card-body/hook.ts +2 -2
  2722. package/src/card/card-divider/component.tsx +2 -2
  2723. package/src/card/card-divider/hook.ts +2 -2
  2724. package/src/card/card-footer/component.tsx +2 -2
  2725. package/src/card/card-footer/hook.ts +2 -2
  2726. package/src/card/card-header/component.tsx +2 -2
  2727. package/src/card/card-header/hook.ts +2 -2
  2728. package/src/card/card-media/component.tsx +2 -2
  2729. package/src/card/card-media/hook.ts +2 -2
  2730. package/src/card/test/__snapshots__/index.tsx.snap +3 -3
  2731. package/src/checkbox-control/README.md +3 -11
  2732. package/src/checkbox-control/index.tsx +9 -7
  2733. package/src/checkbox-control/stories/index.story.tsx +44 -0
  2734. package/src/checkbox-control/test/__snapshots__/index.tsx.snap +3 -8
  2735. package/src/checkbox-control/test/index.tsx +7 -0
  2736. package/src/circular-option-picker/README.md +15 -1
  2737. package/src/circular-option-picker/circular-option-picker-actions.tsx +60 -0
  2738. package/src/circular-option-picker/circular-option-picker-context.tsx +12 -0
  2739. package/src/circular-option-picker/circular-option-picker-option-group.tsx +34 -0
  2740. package/src/circular-option-picker/circular-option-picker-option.tsx +123 -0
  2741. package/src/circular-option-picker/circular-option-picker.tsx +185 -0
  2742. package/src/circular-option-picker/index.tsx +7 -174
  2743. package/src/circular-option-picker/stories/index.story.tsx +34 -9
  2744. package/src/circular-option-picker/style.scss +13 -8
  2745. package/src/circular-option-picker/test/index.tsx +127 -0
  2746. package/src/circular-option-picker/types.ts +66 -2
  2747. package/src/clipboard-button/README.md +1 -1
  2748. package/src/clipboard-button/index.tsx +1 -1
  2749. package/src/color-indicator/index.tsx +1 -1
  2750. package/src/color-palette/README.md +15 -1
  2751. package/src/color-palette/index.native.js +18 -7
  2752. package/src/color-palette/index.tsx +76 -30
  2753. package/src/color-palette/stories/index.story.tsx +16 -2
  2754. package/src/color-palette/test/index.tsx +32 -30
  2755. package/src/color-palette/types.ts +34 -1
  2756. package/src/color-picker/README.md +1 -1
  2757. package/src/color-picker/color-copy-button.tsx +6 -10
  2758. package/src/color-picker/component.tsx +26 -4
  2759. package/src/color-picker/hex-input.tsx +1 -1
  2760. package/src/color-picker/hsl-input.tsx +56 -30
  2761. package/src/color-picker/input-with-slider.tsx +1 -1
  2762. package/src/color-picker/picker.tsx +96 -2
  2763. package/src/color-picker/styles.ts +1 -2
  2764. package/src/color-picker/test/index.tsx +190 -16
  2765. package/src/color-picker/types.ts +4 -1
  2766. package/src/combobox-control/README.md +2 -10
  2767. package/src/combobox-control/index.tsx +8 -9
  2768. package/src/combobox-control/styles.ts +1 -1
  2769. package/src/combobox-control/test/index.tsx +6 -7
  2770. package/src/composite/{index.js → current/index.ts} +9 -6
  2771. package/src/composite/current/stories/index.story.tsx +86 -0
  2772. package/src/composite/current/stories/utils.tsx +61 -0
  2773. package/src/composite/index.ts +7 -0
  2774. package/src/composite/legacy/index.tsx +191 -0
  2775. package/src/composite/legacy/stories/index.story.tsx +205 -0
  2776. package/src/composite/legacy/stories/utils.tsx +67 -0
  2777. package/src/composite/legacy/test/index.tsx +579 -0
  2778. package/src/composite/v2.ts +4 -0
  2779. package/src/confirm-dialog/README.md +2 -2
  2780. package/src/confirm-dialog/component.tsx +83 -15
  2781. package/src/confirm-dialog/stories/{index.story.js → index.story.tsx} +41 -40
  2782. package/src/confirm-dialog/test/{index.js → index.tsx} +11 -19
  2783. package/src/confirm-dialog/types.ts +32 -12
  2784. package/src/{ui/context → context}/context-connect.ts +4 -4
  2785. package/src/{ui/context → context}/context-system-provider.js +1 -1
  2786. package/src/{ui/context → context}/use-context-system.js +1 -1
  2787. package/src/{ui/context → context}/wordpress-component.ts +15 -10
  2788. package/src/custom-gradient-picker/gradient-bar/control-points.tsx +34 -27
  2789. package/src/custom-gradient-picker/gradient-bar/test/utils.ts +5 -5
  2790. package/src/custom-gradient-picker/index.tsx +1 -22
  2791. package/src/custom-gradient-picker/stories/index.story.tsx +0 -3
  2792. package/src/custom-gradient-picker/style.scss +0 -7
  2793. package/src/custom-gradient-picker/types.ts +2 -0
  2794. package/src/custom-select-control/README.md +1 -10
  2795. package/src/custom-select-control/index.js +7 -6
  2796. package/src/custom-select-control/stories/index.story.js +1 -1
  2797. package/src/custom-select-control/style.scss +1 -1
  2798. package/src/custom-select-control/test/index.js +367 -35
  2799. package/src/custom-select-control-v2/README.md +73 -0
  2800. package/src/custom-select-control-v2/index.tsx +105 -0
  2801. package/src/custom-select-control-v2/stories/index.story.tsx +150 -0
  2802. package/src/custom-select-control-v2/styles.ts +76 -0
  2803. package/src/custom-select-control-v2/test/index.tsx +219 -0
  2804. package/src/custom-select-control-v2/types.ts +63 -0
  2805. package/src/dashicon/index.tsx +1 -1
  2806. package/src/date-time/README.md +1 -1
  2807. package/src/date-time/date/styles.ts +4 -4
  2808. package/src/date-time/time/index.tsx +17 -7
  2809. package/src/date-time/time/styles.ts +1 -11
  2810. package/src/date-time/time/timezone.tsx +17 -5
  2811. package/src/dimension-control/README.md +1 -1
  2812. package/src/dimension-control/index.tsx +2 -0
  2813. package/src/dimension-control/test/__snapshots__/index.test.js.snap +26 -26
  2814. package/src/dimension-control/types.ts +6 -0
  2815. package/src/disabled/README.md +1 -1
  2816. package/src/disabled/index.tsx +1 -1
  2817. package/src/disclosure/index.tsx +44 -0
  2818. package/src/disclosure/types.tsx +10 -0
  2819. package/src/divider/README.md +1 -1
  2820. package/src/divider/component.tsx +5 -5
  2821. package/src/divider/stories/index.story.tsx +8 -0
  2822. package/src/divider/styles.ts +1 -1
  2823. package/src/divider/types.ts +3 -3
  2824. package/src/drop-zone/README.md +1 -1
  2825. package/src/drop-zone/index.tsx +1 -1
  2826. package/src/dropdown/README.md +13 -3
  2827. package/src/dropdown/dropdown-content-wrapper.tsx +2 -2
  2828. package/src/dropdown/index.tsx +17 -35
  2829. package/src/dropdown/stories/index.story.tsx +10 -7
  2830. package/src/dropdown/styles.ts +1 -1
  2831. package/src/dropdown/types.ts +12 -4
  2832. package/src/dropdown-menu/README.md +18 -5
  2833. package/src/dropdown-menu/index.tsx +9 -2
  2834. package/src/dropdown-menu/stories/index.story.tsx +5 -0
  2835. package/src/dropdown-menu/style.scss +4 -0
  2836. package/src/dropdown-menu/types.ts +24 -7
  2837. package/src/dropdown-menu-v2/README.md +75 -136
  2838. package/src/dropdown-menu-v2/index.tsx +321 -231
  2839. package/src/dropdown-menu-v2/stories/index.story.tsx +524 -127
  2840. package/src/dropdown-menu-v2/styles.ts +227 -152
  2841. package/src/dropdown-menu-v2/test/index.tsx +480 -188
  2842. package/src/dropdown-menu-v2/types.ts +98 -184
  2843. package/src/duotone-picker/README.md +15 -1
  2844. package/src/duotone-picker/color-list-picker/index.tsx +28 -12
  2845. package/src/duotone-picker/duotone-picker.tsx +45 -4
  2846. package/src/duotone-picker/types.ts +34 -1
  2847. package/src/elevation/component.tsx +2 -2
  2848. package/src/elevation/hook.ts +2 -2
  2849. package/src/external-link/index.tsx +1 -1
  2850. package/src/external-link/test/index.tsx +4 -6
  2851. package/src/flex/flex/component.tsx +2 -2
  2852. package/src/flex/flex/hook.ts +4 -4
  2853. package/src/flex/flex-block/component.tsx +2 -2
  2854. package/src/flex/flex-block/hook.ts +2 -2
  2855. package/src/flex/flex-item/component.tsx +2 -2
  2856. package/src/flex/flex-item/hook.ts +2 -2
  2857. package/src/flex/types.ts +2 -2
  2858. package/src/focal-point-picker/README.md +1 -1
  2859. package/src/focal-point-picker/controls.tsx +4 -0
  2860. package/src/focal-point-picker/focal-point.tsx +1 -1
  2861. package/src/focal-point-picker/grid.tsx +1 -1
  2862. package/src/focal-point-picker/index.tsx +5 -3
  2863. package/src/focal-point-picker/styles/focal-point-picker-style.ts +27 -11
  2864. package/src/focal-point-picker/styles/focal-point-style.ts +21 -7
  2865. package/src/focal-point-picker/types.ts +7 -0
  2866. package/src/focusable-iframe/README.md +2 -2
  2867. package/src/focusable-iframe/{index.js → index.tsx} +7 -4
  2868. package/src/focusable-iframe/types.ts +9 -0
  2869. package/src/font-size-picker/README.md +1 -9
  2870. package/src/font-size-picker/font-size-picker-select.tsx +2 -0
  2871. package/src/font-size-picker/font-size-picker-toggle-group.tsx +3 -2
  2872. package/src/font-size-picker/index.native.js +8 -2
  2873. package/src/font-size-picker/index.tsx +17 -25
  2874. package/src/font-size-picker/stories/index.story.tsx +0 -1
  2875. package/src/font-size-picker/styles.ts +1 -8
  2876. package/src/font-size-picker/test/index.tsx +16 -99
  2877. package/src/font-size-picker/types.ts +10 -1
  2878. package/src/font-size-picker/utils.ts +2 -1
  2879. package/src/form-file-upload/README.md +2 -2
  2880. package/src/form-file-upload/index.tsx +1 -1
  2881. package/src/form-toggle/README.md +1 -7
  2882. package/src/form-toggle/index.tsx +1 -1
  2883. package/src/form-toggle/style.scss +40 -8
  2884. package/src/form-token-field/README.md +2 -1
  2885. package/src/form-token-field/index.tsx +21 -8
  2886. package/src/form-token-field/style.scss +6 -8
  2887. package/src/form-token-field/styles.ts +1 -1
  2888. package/src/form-token-field/test/index.tsx +133 -1
  2889. package/src/form-token-field/token-input.tsx +2 -4
  2890. package/src/form-token-field/token.tsx +1 -0
  2891. package/src/form-token-field/types.ts +8 -1
  2892. package/src/gradient-picker/README.md +15 -9
  2893. package/src/gradient-picker/index.tsx +93 -68
  2894. package/src/gradient-picker/stories/index.story.tsx +0 -1
  2895. package/src/gradient-picker/types.ts +36 -1
  2896. package/src/grid/component.tsx +2 -2
  2897. package/src/grid/hook.ts +3 -3
  2898. package/src/grid/types.ts +1 -1
  2899. package/src/guide/page.tsx +1 -1
  2900. package/src/guide/style.scss +1 -1
  2901. package/src/h-stack/component.tsx +2 -2
  2902. package/src/h-stack/hook.tsx +3 -3
  2903. package/src/heading/README.md +6 -1
  2904. package/src/heading/component.tsx +2 -2
  2905. package/src/heading/hook.ts +9 -6
  2906. package/src/heading/stories/index.story.tsx +2 -4
  2907. package/src/heading/types.ts +23 -1
  2908. package/src/higher-order/navigate-regions/index.tsx +5 -6
  2909. package/src/higher-order/with-constrained-tabbing/README.md +1 -1
  2910. package/src/higher-order/with-filters/test/index.tsx +36 -43
  2911. package/src/higher-order/with-focus-outside/{index.js → index.tsx} +8 -5
  2912. package/src/higher-order/with-focus-outside/test/{index.js → index.tsx} +13 -11
  2913. package/src/higher-order/with-focus-return/README.md +1 -1
  2914. package/src/higher-order/with-focus-return/index.tsx +1 -1
  2915. package/src/higher-order/with-notices/test/index.tsx +1 -1
  2916. package/src/higher-order/with-spoken-messages/index.tsx +10 -11
  2917. package/src/icon/README.md +2 -2
  2918. package/src/index.native.js +7 -3
  2919. package/src/index.ts +5 -1
  2920. package/src/input-control/backdrop.tsx +6 -1
  2921. package/src/input-control/index.tsx +14 -11
  2922. package/src/input-control/input-base.tsx +27 -13
  2923. package/src/input-control/input-field.tsx +1 -1
  2924. package/src/input-control/input-prefix-wrapper.tsx +2 -2
  2925. package/src/input-control/input-suffix-wrapper.tsx +2 -2
  2926. package/src/input-control/label.tsx +1 -1
  2927. package/src/input-control/styles/input-control-styles.tsx +25 -20
  2928. package/src/input-control/test/index.js +5 -7
  2929. package/src/input-control/types.ts +22 -5
  2930. package/src/isolated-event-container/test/{index.js → index.tsx} +1 -1
  2931. package/src/item-group/item/component.tsx +2 -2
  2932. package/src/item-group/item/hook.ts +2 -2
  2933. package/src/item-group/item-group/component.tsx +2 -2
  2934. package/src/item-group/item-group/hook.ts +2 -2
  2935. package/src/item-group/styles.ts +1 -4
  2936. package/src/keyboard-shortcuts/README.md +1 -1
  2937. package/src/lock-unlock.js +10 -0
  2938. package/src/menu-group/README.md +0 -8
  2939. package/src/menu-item/README.md +3 -3
  2940. package/src/menu-item/index.tsx +1 -1
  2941. package/src/menu-items-choice/README.md +1 -8
  2942. package/src/mobile/audio-player/index.native.js +9 -13
  2943. package/src/mobile/bottom-sheet/index.native.js +16 -1
  2944. package/src/mobile/bottom-sheet/sub-sheet/README.md +1 -1
  2945. package/src/mobile/color-settings/palette.screen.native.js +7 -5
  2946. package/src/mobile/global-styles-context/index.native.js +7 -8
  2947. package/src/mobile/global-styles-context/test/fixtures/theme.native.js +0 -20
  2948. package/src/mobile/global-styles-context/test/utils.native.js +22 -0
  2949. package/src/mobile/global-styles-context/utils.native.js +95 -23
  2950. package/src/mobile/html-text-input/index.native.js +4 -1
  2951. package/src/mobile/html-text-input/style.scss +4 -0
  2952. package/src/mobile/html-text-input/test/__snapshots__/index.native.js.snap +3 -1
  2953. package/src/mobile/image/constants.js +1 -0
  2954. package/src/mobile/image/index.native.js +172 -30
  2955. package/src/mobile/image/style.native.scss +41 -9
  2956. package/src/mobile/keyboard-aware-flat-list/index.android.js +50 -5
  2957. package/src/mobile/keyboard-aware-flat-list/index.ios.js +66 -92
  2958. package/src/mobile/keyboard-aware-flat-list/test/{use-scroll-to-text-input.native.js → use-scroll-to-section.native.js} +27 -25
  2959. package/src/mobile/keyboard-aware-flat-list/test/use-scroll.native.js +71 -0
  2960. package/src/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js +41 -0
  2961. package/src/mobile/keyboard-aware-flat-list/{use-scroll-to-text-input.native.js → use-scroll-to-section.native.js} +22 -27
  2962. package/src/mobile/keyboard-aware-flat-list/use-scroll.native.js +100 -0
  2963. package/src/mobile/link-settings/style.native.scss +0 -17
  2964. package/src/mobile/utils/alignments.native.js +1 -0
  2965. package/src/mobile/utils/get-px-from-css-unit.native.js +329 -0
  2966. package/src/mobile/utils/test/get-px-from-css-unit.native.js +172 -0
  2967. package/src/modal/README.md +16 -8
  2968. package/src/modal/aria-helper.ts +17 -25
  2969. package/src/modal/index.tsx +103 -32
  2970. package/src/modal/stories/index.story.tsx +9 -6
  2971. package/src/modal/style.scss +21 -1
  2972. package/src/modal/test/index.tsx +349 -1
  2973. package/src/modal/types.ts +12 -1
  2974. package/src/navigable-container/README.md +1 -1
  2975. package/src/navigable-container/types.ts +1 -1
  2976. package/src/navigation/menu/menu-title-search.tsx +6 -6
  2977. package/src/navigation/menu/menu-title.tsx +1 -1
  2978. package/src/navigation/styles/navigation-styles.tsx +6 -28
  2979. package/src/navigation/use-navigation-tree-nodes.tsx +1 -1
  2980. package/src/navigator/navigator-back-button/component.tsx +2 -2
  2981. package/src/navigator/navigator-back-button/hook.ts +2 -2
  2982. package/src/navigator/navigator-button/component.tsx +2 -2
  2983. package/src/navigator/navigator-button/hook.ts +2 -2
  2984. package/src/navigator/navigator-provider/component.tsx +5 -6
  2985. package/src/navigator/navigator-screen/component.tsx +17 -95
  2986. package/src/navigator/navigator-to-parent-button/component.tsx +2 -2
  2987. package/src/navigator/styles.ts +71 -0
  2988. package/src/navigator/test/index.tsx +0 -64
  2989. package/src/notice/README.md +0 -6
  2990. package/src/notice/index.tsx +18 -6
  2991. package/src/notice/list.tsx +1 -1
  2992. package/src/notice/style.scss +0 -2
  2993. package/src/notice/test/__snapshots__/index.tsx.snap +9 -1
  2994. package/src/number-control/README.md +2 -2
  2995. package/src/number-control/index.tsx +15 -17
  2996. package/src/number-control/styles/number-control-styles.ts +1 -1
  2997. package/src/number-control/types.ts +1 -1
  2998. package/src/palette-edit/index.tsx +36 -59
  2999. package/src/palette-edit/stories/index.story.tsx +1 -0
  3000. package/src/palette-edit/style.scss +2 -2
  3001. package/src/palette-edit/{styles.js → styles.ts} +59 -15
  3002. package/src/palette-edit/test/index.tsx +326 -10
  3003. package/src/panel/README.md +0 -6
  3004. package/src/panel/body.tsx +1 -1
  3005. package/src/panel/types.ts +1 -1
  3006. package/src/placeholder/README.md +1 -1
  3007. package/src/placeholder/index.tsx +17 -9
  3008. package/src/placeholder/style.scss +8 -21
  3009. package/src/placeholder/test/index.tsx +35 -16
  3010. package/src/popover/README.md +6 -7
  3011. package/src/popover/index.tsx +150 -166
  3012. package/src/popover/style.scss +10 -0
  3013. package/src/popover/test/index.tsx +253 -3
  3014. package/src/popover/test/utils/index.tsx +1 -1
  3015. package/src/popover/types.ts +9 -5
  3016. package/src/popover/utils.ts +19 -67
  3017. package/src/private-apis.native.js +13 -0
  3018. package/src/private-apis.ts +26 -19
  3019. package/src/progress-bar/index.tsx +1 -1
  3020. package/src/progress-bar/stories/index.story.tsx +1 -0
  3021. package/src/progress-bar/styles.ts +19 -4
  3022. package/src/query-controls/README.md +1 -1
  3023. package/src/query-controls/author-select.tsx +2 -0
  3024. package/src/query-controls/category-select.tsx +2 -0
  3025. package/src/query-controls/index.native.js +4 -4
  3026. package/src/query-controls/index.tsx +11 -6
  3027. package/src/query-controls/types.ts +9 -0
  3028. package/src/radio-control/README.md +2 -8
  3029. package/src/radio-control/index.tsx +5 -2
  3030. package/src/radio-control/style.scss +29 -2
  3031. package/src/radio-group/README.md +2 -8
  3032. package/src/radio-group/context.tsx +18 -0
  3033. package/src/radio-group/index.tsx +65 -0
  3034. package/src/radio-group/radio.tsx +55 -0
  3035. package/src/radio-group/stories/index.story.tsx +90 -0
  3036. package/src/radio-group/types.ts +39 -0
  3037. package/src/range-control/README.md +5 -13
  3038. package/src/range-control/index.tsx +3 -3
  3039. package/src/range-control/input-range.tsx +1 -1
  3040. package/src/range-control/mark.tsx +1 -1
  3041. package/src/range-control/rail.tsx +1 -1
  3042. package/src/range-control/styles/range-control-styles.ts +2 -2
  3043. package/src/range-control/tooltip.tsx +1 -1
  3044. package/src/resizable-box/resize-tooltip/styles/resize-tooltip.styles.ts +3 -3
  3045. package/src/sandbox/README.md +7 -1
  3046. package/src/sandbox/index.native.js +1 -1
  3047. package/src/sandbox/index.tsx +5 -1
  3048. package/src/sandbox/types.ts +6 -0
  3049. package/src/scroll-lock/README.md +1 -1
  3050. package/src/scrollable/component.tsx +2 -2
  3051. package/src/scrollable/hook.ts +2 -2
  3052. package/src/search-control/README.md +33 -10
  3053. package/src/search-control/index.tsx +90 -63
  3054. package/src/search-control/stories/index.story.tsx +1 -1
  3055. package/src/search-control/styles.ts +42 -0
  3056. package/src/search-control/test/index.tsx +107 -0
  3057. package/src/search-control/types.ts +41 -14
  3058. package/src/select-control/README.md +2 -8
  3059. package/src/select-control/index.tsx +6 -5
  3060. package/src/select-control/styles/select-control-styles.ts +18 -36
  3061. package/src/select-control/test/select-control.tsx +2 -4
  3062. package/src/select-control/types.ts +1 -0
  3063. package/src/slot-fill/README.md +1 -1
  3064. package/src/slot-fill/bubbles-virtually/{fill.js → fill.tsx} +6 -7
  3065. package/src/slot-fill/bubbles-virtually/{slot-fill-context.js → slot-fill-context.ts} +8 -3
  3066. package/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx +115 -0
  3067. package/src/slot-fill/bubbles-virtually/{slot.js → slot.tsx} +16 -3
  3068. package/src/slot-fill/bubbles-virtually/{use-slot-fills.js → use-slot-fills.ts} +3 -3
  3069. package/src/slot-fill/bubbles-virtually/{use-slot.js → use-slot.ts} +15 -6
  3070. package/src/slot-fill/context.ts +21 -0
  3071. package/src/slot-fill/{fill.js → fill.ts} +2 -3
  3072. package/src/slot-fill/{index.js → index.tsx} +41 -14
  3073. package/src/slot-fill/provider.tsx +129 -0
  3074. package/src/slot-fill/{slot.js → slot.tsx} +29 -15
  3075. package/src/slot-fill/stories/index.story.tsx +140 -0
  3076. package/src/slot-fill/types.ts +172 -0
  3077. package/src/slot-fill/{use-slot.js → use-slot.ts} +4 -4
  3078. package/src/snackbar/README.md +0 -6
  3079. package/src/snackbar/index.tsx +20 -7
  3080. package/src/snackbar/list.tsx +1 -1
  3081. package/src/snackbar/stories/index.story.tsx +7 -5
  3082. package/src/snackbar/style.scss +4 -3
  3083. package/src/snackbar/types.ts +2 -1
  3084. package/src/spacer/README.md +0 -2
  3085. package/src/spacer/component.tsx +2 -2
  3086. package/src/spacer/hook.ts +3 -3
  3087. package/src/spacer/types.ts +1 -1
  3088. package/src/spinner/README.md +2 -0
  3089. package/src/spinner/index.tsx +1 -1
  3090. package/src/spinner/stories/index.story.tsx +1 -1
  3091. package/src/style.scss +0 -1
  3092. package/src/surface/component.tsx +2 -2
  3093. package/src/surface/hook.ts +2 -2
  3094. package/src/tab-panel/README.md +0 -5
  3095. package/src/tab-panel/index.tsx +2 -1
  3096. package/src/tab-panel/test/index.tsx +39 -51
  3097. package/src/tabs/README.md +212 -0
  3098. package/src/tabs/context.ts +13 -0
  3099. package/src/tabs/index.tsx +202 -0
  3100. package/src/tabs/stories/index.story.tsx +369 -0
  3101. package/src/tabs/styles.ts +125 -0
  3102. package/src/tabs/tab.tsx +39 -0
  3103. package/src/tabs/tablist.tsx +60 -0
  3104. package/src/tabs/tabpanel.tsx +48 -0
  3105. package/src/tabs/test/index.tsx +1395 -0
  3106. package/src/tabs/types.ts +122 -0
  3107. package/src/text/README.md +7 -3
  3108. package/src/text/{component.js → component.tsx} +11 -7
  3109. package/src/text/get-line-height.ts +1 -1
  3110. package/src/text/{hook.js → hook.ts} +16 -19
  3111. package/src/text/stories/index.story.tsx +80 -0
  3112. package/src/text/{styles.js → styles.ts} +2 -1
  3113. package/src/text/test/index.tsx +1 -1
  3114. package/src/text/types.ts +18 -9
  3115. package/src/text/{utils.js → utils.ts} +40 -14
  3116. package/src/text-control/README.md +1 -7
  3117. package/src/text-control/index.tsx +6 -2
  3118. package/src/text-control/style.scss +5 -0
  3119. package/src/text-control/types.ts +6 -0
  3120. package/src/textarea-control/README.md +2 -8
  3121. package/src/textarea-control/index.tsx +32 -32
  3122. package/src/theme/README.md +5 -5
  3123. package/src/theme/index.tsx +1 -1
  3124. package/src/theme/stories/index.story.tsx +1 -0
  3125. package/src/theme/styles.ts +3 -1
  3126. package/src/toggle-control/README.md +4 -4
  3127. package/src/toggle-control/index.tsx +2 -2
  3128. package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +591 -71
  3129. package/src/toggle-group-control/test/index.tsx +244 -87
  3130. package/src/toggle-group-control/toggle-group-control/README.md +0 -1
  3131. package/src/toggle-group-control/toggle-group-control/as-button-group.tsx +39 -57
  3132. package/src/toggle-group-control/toggle-group-control/as-radio-group.tsx +55 -51
  3133. package/src/toggle-group-control/toggle-group-control/component.tsx +23 -10
  3134. package/src/toggle-group-control/toggle-group-control/styles.ts +12 -26
  3135. package/src/toggle-group-control/toggle-group-control/utils.ts +50 -0
  3136. package/src/toggle-group-control/toggle-group-control-option/README.md +1 -1
  3137. package/src/toggle-group-control/toggle-group-control-option/component.tsx +1 -1
  3138. package/src/toggle-group-control/toggle-group-control-option-base/README.md +1 -1
  3139. package/src/toggle-group-control/toggle-group-control-option-base/component.tsx +75 -24
  3140. package/src/toggle-group-control/toggle-group-control-option-base/styles.ts +20 -5
  3141. package/src/toggle-group-control/toggle-group-control-option-icon/README.md +2 -2
  3142. package/src/toggle-group-control/toggle-group-control-option-icon/component.tsx +1 -1
  3143. package/src/toggle-group-control/types.ts +20 -32
  3144. package/src/toolbar/stories/index.story.tsx +18 -5
  3145. package/src/toolbar/test/index.tsx +8 -0
  3146. package/src/toolbar/test/toolbar-group.tsx +13 -7
  3147. package/src/toolbar/toolbar/README.md +9 -6
  3148. package/src/toolbar/toolbar/index.tsx +32 -15
  3149. package/src/toolbar/toolbar/style.scss +9 -0
  3150. package/src/toolbar/toolbar/toolbar-container.tsx +5 -4
  3151. package/src/toolbar/toolbar/types.ts +10 -0
  3152. package/src/toolbar/toolbar-button/README.md +2 -2
  3153. package/src/toolbar/toolbar-button/index.tsx +1 -1
  3154. package/src/toolbar/toolbar-button/style.scss +0 -5
  3155. package/src/toolbar/toolbar-context/index.ts +5 -2
  3156. package/src/toolbar/toolbar-dropdown-menu/README.md +2 -2
  3157. package/src/toolbar/toolbar-dropdown-menu/{index.js → index.tsx} +11 -4
  3158. package/src/toolbar/toolbar-group/README.md +2 -2
  3159. package/src/toolbar/toolbar-group/{index.js → index.tsx} +19 -14
  3160. package/src/toolbar/toolbar-group/{toolbar-group-collapsed.js → toolbar-group-collapsed.tsx} +10 -4
  3161. package/src/toolbar/toolbar-group/toolbar-group-container.tsx +16 -0
  3162. package/src/toolbar/toolbar-group/types.ts +92 -0
  3163. package/src/toolbar/toolbar-item/README.md +2 -2
  3164. package/src/toolbar/toolbar-item/index.tsx +6 -3
  3165. package/src/tools-panel/styles.ts +1 -1
  3166. package/src/tools-panel/test/index.tsx +12 -20
  3167. package/src/tools-panel/tools-panel/README.md +10 -0
  3168. package/src/tools-panel/tools-panel/component.tsx +4 -2
  3169. package/src/tools-panel/tools-panel/hook.ts +2 -2
  3170. package/src/tools-panel/tools-panel-header/README.md +7 -0
  3171. package/src/tools-panel/tools-panel-header/component.tsx +22 -15
  3172. package/src/tools-panel/tools-panel-header/hook.ts +2 -2
  3173. package/src/tools-panel/tools-panel-item/component.tsx +2 -2
  3174. package/src/tools-panel/tools-panel-item/hook.ts +27 -31
  3175. package/src/tools-panel/types.ts +11 -0
  3176. package/src/tooltip/README.md +35 -28
  3177. package/src/tooltip/index.tsx +143 -0
  3178. package/src/tooltip/stories/index.story.tsx +76 -0
  3179. package/src/tooltip/style.scss +2 -27
  3180. package/src/tooltip/test/index.tsx +504 -0
  3181. package/src/tooltip/test/utils/index.tsx +20 -0
  3182. package/src/tooltip/types.ts +65 -0
  3183. package/src/tree-grid/README.md +0 -4
  3184. package/src/tree-grid/cell.tsx +1 -1
  3185. package/src/tree-grid/index.tsx +1 -1
  3186. package/src/tree-grid/row.tsx +1 -1
  3187. package/src/tree-select/README.md +1 -1
  3188. package/src/tree-select/index.tsx +12 -9
  3189. package/src/truncate/README.md +8 -0
  3190. package/src/truncate/component.tsx +2 -2
  3191. package/src/truncate/hook.ts +19 -12
  3192. package/src/truncate/test/index.tsx +54 -27
  3193. package/src/truncate/types.ts +4 -0
  3194. package/src/unit-control/README.md +2 -2
  3195. package/src/unit-control/index.tsx +18 -7
  3196. package/src/unit-control/styles/unit-control-styles.ts +10 -8
  3197. package/src/unit-control/test/utils.ts +1 -1
  3198. package/src/unit-control/types.ts +8 -4
  3199. package/src/unit-control/unit-select-control.tsx +1 -1
  3200. package/src/unit-control/utils.ts +124 -0
  3201. package/src/utils/colors-values.js +45 -23
  3202. package/src/utils/colors.js +91 -0
  3203. package/src/utils/config-values.js +1 -1
  3204. package/src/{ui/utils → utils}/font-size.ts +1 -1
  3205. package/src/utils/hooks/use-update-effect.js +1 -1
  3206. package/src/utils/strings.ts +30 -2
  3207. package/src/utils/test/colors.js +39 -1
  3208. package/src/utils/test/strings.js +96 -1
  3209. package/src/utils/types.ts +1 -36
  3210. package/src/utils/unit-values.ts +1 -1
  3211. package/src/utils/use-deprecated-props.ts +2 -17
  3212. package/src/v-stack/component.tsx +2 -2
  3213. package/src/v-stack/hook.ts +2 -2
  3214. package/src/view/component.tsx +1 -1
  3215. package/src/visually-hidden/component.tsx +2 -2
  3216. package/src/z-stack/component.tsx +3 -3
  3217. package/tsconfig.tsbuildinfo +1 -1
  3218. package/build/border-control/border-control-style-picker/hook.js +0 -41
  3219. package/build/border-control/border-control-style-picker/hook.js.map +0 -1
  3220. package/build/box-control/styles/box-control-visualizer-styles.js +0 -93
  3221. package/build/box-control/styles/box-control-visualizer-styles.js.map +0 -1
  3222. package/build/box-control/unit-control.js +0 -76
  3223. package/build/box-control/unit-control.js.map +0 -1
  3224. package/build/mobile/inserter-button/index.native.js +0 -97
  3225. package/build/mobile/inserter-button/index.native.js.map +0 -1
  3226. package/build/mobile/inserter-button/sparkles.js +0 -23
  3227. package/build/mobile/inserter-button/sparkles.js.map +0 -1
  3228. package/build/mobile/keyboard-aware-flat-list/use-scroll-to-text-input.native.js.map +0 -1
  3229. package/build/mobile/link-settings/image-link-destinations-screen.native.js +0 -119
  3230. package/build/mobile/link-settings/image-link-destinations-screen.native.js.map +0 -1
  3231. package/build/radio-group/radio/index.js +0 -48
  3232. package/build/radio-group/radio/index.js.map +0 -1
  3233. package/build/radio-group/radio-context/index.js +0 -18
  3234. package/build/radio-group/radio-context/index.js.map +0 -1
  3235. package/build/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js +0 -78
  3236. package/build/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js.map +0 -1
  3237. package/build/ui/context/constants.js +0 -18
  3238. package/build/ui/context/constants.js.map +0 -1
  3239. package/build/ui/context/context-connect.js.map +0 -1
  3240. package/build/ui/context/context-system-provider.js.map +0 -1
  3241. package/build/ui/context/get-styled-class-name-from-key.js.map +0 -1
  3242. package/build/ui/context/index.js.map +0 -1
  3243. package/build/ui/context/use-context-system.js.map +0 -1
  3244. package/build/ui/context/utils.js.map +0 -1
  3245. package/build/ui/context/wordpress-component.js.map +0 -1
  3246. package/build/ui/shortcut/component.js +0 -47
  3247. package/build/ui/shortcut/component.js.map +0 -1
  3248. package/build/ui/shortcut/index.js +0 -14
  3249. package/build/ui/shortcut/index.js.map +0 -1
  3250. package/build/ui/tooltip/component.js +0 -97
  3251. package/build/ui/tooltip/component.js.map +0 -1
  3252. package/build/ui/tooltip/content.js +0 -55
  3253. package/build/ui/tooltip/content.js.map +0 -1
  3254. package/build/ui/tooltip/context.js +0 -19
  3255. package/build/ui/tooltip/context.js.map +0 -1
  3256. package/build/ui/tooltip/index.js +0 -29
  3257. package/build/ui/tooltip/index.js.map +0 -1
  3258. package/build/ui/tooltip/styles.js +0 -44
  3259. package/build/ui/tooltip/styles.js.map +0 -1
  3260. package/build/ui/tooltip/types.js.map +0 -1
  3261. package/build/ui/utils/colors.js +0 -96
  3262. package/build/ui/utils/colors.js.map +0 -1
  3263. package/build/ui/utils/font-size.js.map +0 -1
  3264. package/build/ui/utils/get-valid-children.js.map +0 -1
  3265. package/build/ui/utils/index.js +0 -13
  3266. package/build/ui/utils/index.js.map +0 -1
  3267. package/build/ui/utils/space.js.map +0 -1
  3268. package/build/ui/utils/types.js.map +0 -1
  3269. package/build/ui/utils/use-responsive-value.js.map +0 -1
  3270. package/build/utils/z-index.js +0 -11
  3271. package/build/utils/z-index.js.map +0 -1
  3272. package/build-module/border-control/border-control-style-picker/hook.js +0 -32
  3273. package/build-module/border-control/border-control-style-picker/hook.js.map +0 -1
  3274. package/build-module/box-control/styles/box-control-visualizer-styles.js +0 -86
  3275. package/build-module/box-control/styles/box-control-visualizer-styles.js.map +0 -1
  3276. package/build-module/box-control/unit-control.js +0 -68
  3277. package/build-module/box-control/unit-control.js.map +0 -1
  3278. package/build-module/mobile/inserter-button/index.native.js +0 -89
  3279. package/build-module/mobile/inserter-button/index.native.js.map +0 -1
  3280. package/build-module/mobile/inserter-button/sparkles.js +0 -15
  3281. package/build-module/mobile/inserter-button/sparkles.js.map +0 -1
  3282. package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-text-input.native.js.map +0 -1
  3283. package/build-module/mobile/link-settings/image-link-destinations-screen.native.js +0 -110
  3284. package/build-module/mobile/link-settings/image-link-destinations-screen.native.js.map +0 -1
  3285. package/build-module/radio-group/radio/index.js +0 -40
  3286. package/build-module/radio-group/radio/index.js.map +0 -1
  3287. package/build-module/radio-group/radio-context/index.js +0 -10
  3288. package/build-module/radio-group/radio-context/index.js.map +0 -1
  3289. package/build-module/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js +0 -76
  3290. package/build-module/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js.map +0 -1
  3291. package/build-module/ui/context/constants.js.map +0 -1
  3292. package/build-module/ui/context/context-connect.js.map +0 -1
  3293. package/build-module/ui/context/context-system-provider.js.map +0 -1
  3294. package/build-module/ui/context/get-styled-class-name-from-key.js.map +0 -1
  3295. package/build-module/ui/context/index.js.map +0 -1
  3296. package/build-module/ui/context/use-context-system.js.map +0 -1
  3297. package/build-module/ui/context/utils.js.map +0 -1
  3298. package/build-module/ui/context/wordpress-component.js.map +0 -1
  3299. package/build-module/ui/shortcut/component.js +0 -40
  3300. package/build-module/ui/shortcut/component.js.map +0 -1
  3301. package/build-module/ui/shortcut/index.js +0 -2
  3302. package/build-module/ui/shortcut/index.js.map +0 -1
  3303. package/build-module/ui/tooltip/component.js +0 -90
  3304. package/build-module/ui/tooltip/component.js.map +0 -1
  3305. package/build-module/ui/tooltip/content.js +0 -45
  3306. package/build-module/ui/tooltip/content.js.map +0 -1
  3307. package/build-module/ui/tooltip/context.js +0 -11
  3308. package/build-module/ui/tooltip/context.js.map +0 -1
  3309. package/build-module/ui/tooltip/index.js +0 -3
  3310. package/build-module/ui/tooltip/index.js.map +0 -1
  3311. package/build-module/ui/tooltip/styles.js +0 -37
  3312. package/build-module/ui/tooltip/styles.js.map +0 -1
  3313. package/build-module/ui/tooltip/types.js.map +0 -1
  3314. package/build-module/ui/utils/colors.js +0 -88
  3315. package/build-module/ui/utils/colors.js.map +0 -1
  3316. package/build-module/ui/utils/font-size.js.map +0 -1
  3317. package/build-module/ui/utils/get-valid-children.js.map +0 -1
  3318. package/build-module/ui/utils/index.js +0 -2
  3319. package/build-module/ui/utils/index.js.map +0 -1
  3320. package/build-module/ui/utils/space.js.map +0 -1
  3321. package/build-module/ui/utils/types.js.map +0 -1
  3322. package/build-module/ui/utils/use-responsive-value.js.map +0 -1
  3323. package/build-module/utils/z-index.js +0 -3
  3324. package/build-module/utils/z-index.js.map +0 -1
  3325. package/build-types/border-control/border-control-style-picker/hook.d.ts +0 -267
  3326. package/build-types/border-control/border-control-style-picker/hook.d.ts.map +0 -1
  3327. package/build-types/box-control/styles/box-control-visualizer-styles.d.ts +0 -46
  3328. package/build-types/box-control/styles/box-control-visualizer-styles.d.ts.map +0 -1
  3329. package/build-types/box-control/unit-control.d.ts +0 -4
  3330. package/build-types/box-control/unit-control.d.ts.map +0 -1
  3331. package/build-types/mobile/inserter-button/sparkles.d.ts +0 -3
  3332. package/build-types/mobile/inserter-button/sparkles.d.ts.map +0 -1
  3333. package/build-types/radio-group/radio/index.d.ts +0 -7
  3334. package/build-types/radio-group/radio/index.d.ts.map +0 -1
  3335. package/build-types/radio-group/radio-context/index.d.ts +0 -6
  3336. package/build-types/radio-group/radio-context/index.d.ts.map +0 -1
  3337. package/build-types/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.d.ts +0 -9
  3338. package/build-types/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.d.ts.map +0 -1
  3339. package/build-types/ui/context/constants.d.ts.map +0 -1
  3340. package/build-types/ui/context/context-connect.d.ts.map +0 -1
  3341. package/build-types/ui/context/context-system-provider.d.ts.map +0 -1
  3342. package/build-types/ui/context/get-styled-class-name-from-key.d.ts.map +0 -1
  3343. package/build-types/ui/context/index.d.ts.map +0 -1
  3344. package/build-types/ui/context/test/context-connect.d.ts.map +0 -1
  3345. package/build-types/ui/context/test/wordpress-component.d.ts.map +0 -1
  3346. package/build-types/ui/context/use-context-system.d.ts.map +0 -1
  3347. package/build-types/ui/context/utils.d.ts.map +0 -1
  3348. package/build-types/ui/context/wordpress-component.d.ts.map +0 -1
  3349. package/build-types/ui/shortcut/component.d.ts +0 -12
  3350. package/build-types/ui/shortcut/component.d.ts.map +0 -1
  3351. package/build-types/ui/shortcut/index.d.ts +0 -3
  3352. package/build-types/ui/shortcut/index.d.ts.map +0 -1
  3353. package/build-types/ui/tooltip/component.d.ts +0 -29
  3354. package/build-types/ui/tooltip/component.d.ts.map +0 -1
  3355. package/build-types/ui/tooltip/content.d.ts +0 -9
  3356. package/build-types/ui/tooltip/content.d.ts.map +0 -1
  3357. package/build-types/ui/tooltip/context.d.ts +0 -10
  3358. package/build-types/ui/tooltip/context.d.ts.map +0 -1
  3359. package/build-types/ui/tooltip/index.d.ts +0 -3
  3360. package/build-types/ui/tooltip/styles.d.ts +0 -12
  3361. package/build-types/ui/tooltip/styles.d.ts.map +0 -1
  3362. package/build-types/ui/tooltip/types.d.ts +0 -62
  3363. package/build-types/ui/tooltip/types.d.ts.map +0 -1
  3364. package/build-types/ui/utils/colors.d.ts +0 -17
  3365. package/build-types/ui/utils/colors.d.ts.map +0 -1
  3366. package/build-types/ui/utils/font-size.d.ts.map +0 -1
  3367. package/build-types/ui/utils/get-valid-children.d.ts.map +0 -1
  3368. package/build-types/ui/utils/index.d.ts +0 -2
  3369. package/build-types/ui/utils/space.d.ts.map +0 -1
  3370. package/build-types/ui/utils/types.d.ts +0 -14
  3371. package/build-types/ui/utils/types.d.ts.map +0 -1
  3372. package/build-types/ui/utils/use-responsive-value.d.ts.map +0 -1
  3373. package/build-types/utils/z-index.d.ts +0 -3
  3374. package/build-types/utils/z-index.d.ts.map +0 -1
  3375. package/src/border-control/border-control-style-picker/hook.ts +0 -35
  3376. package/src/box-control/stories/index.story.js +0 -75
  3377. package/src/box-control/styles/box-control-visualizer-styles.ts +0 -75
  3378. package/src/box-control/unit-control.tsx +0 -74
  3379. package/src/color-palette/test/__snapshots__/index.tsx.snap +0 -288
  3380. package/src/disclosure/index.js +0 -11
  3381. package/src/mobile/inserter-button/README.md +0 -62
  3382. package/src/mobile/inserter-button/index.native.js +0 -116
  3383. package/src/mobile/inserter-button/sparkles.js +0 -15
  3384. package/src/mobile/inserter-button/style.native.scss +0 -72
  3385. package/src/mobile/link-settings/image-link-destinations-screen.native.js +0 -152
  3386. package/src/radio-group/index.js +0 -51
  3387. package/src/radio-group/radio/index.js +0 -40
  3388. package/src/radio-group/radio-context/index.js +0 -11
  3389. package/src/radio-group/stories/index.story.js +0 -83
  3390. package/src/search-control/style.scss +0 -58
  3391. package/src/slot-fill/bubbles-virtually/slot-fill-provider.js +0 -95
  3392. package/src/slot-fill/context.js +0 -17
  3393. package/src/slot-fill/provider.js +0 -119
  3394. package/src/slot-fill/stories/index.story.js +0 -89
  3395. package/src/text/stories/index.story.js +0 -53
  3396. package/src/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.tsx +0 -84
  3397. package/src/toolbar/toolbar-group/toolbar-group-container.js +0 -8
  3398. package/src/tooltip/index.js +0 -293
  3399. package/src/tooltip/stories/index.story.js +0 -85
  3400. package/src/tooltip/test/index.js +0 -323
  3401. package/src/ui/README.md +0 -5
  3402. package/src/ui/shortcut/component.tsx +0 -62
  3403. package/src/ui/shortcut/index.ts +0 -2
  3404. package/src/ui/shortcut/test/__snapshots__/index.js.snap +0 -13
  3405. package/src/ui/shortcut/test/index.js +0 -36
  3406. package/src/ui/tooltip/README.md +0 -21
  3407. package/src/ui/tooltip/component.js +0 -102
  3408. package/src/ui/tooltip/content.js +0 -45
  3409. package/src/ui/tooltip/context.js +0 -10
  3410. package/src/ui/tooltip/index.js +0 -2
  3411. package/src/ui/tooltip/stories/index.story.js +0 -26
  3412. package/src/ui/tooltip/styles.js +0 -45
  3413. package/src/ui/tooltip/test/__snapshots__/index.js.snap +0 -41
  3414. package/src/ui/tooltip/test/index.js +0 -80
  3415. package/src/ui/tooltip/types.ts +0 -67
  3416. package/src/ui/utils/colors.js +0 -98
  3417. package/src/ui/utils/index.js +0 -1
  3418. package/src/ui/utils/test/colors.js +0 -42
  3419. package/src/ui/utils/types.ts +0 -36
  3420. package/src/utils/z-index.js +0 -2
  3421. /package/build/{ui/context → context}/index.js +0 -0
  3422. /package/build/{ui/context → context}/utils.js +0 -0
  3423. /package/build/{ui/context → context}/wordpress-component.js +0 -0
  3424. /package/build/{ui/tooltip → custom-select-control-v2}/types.js +0 -0
  3425. /package/build/{ui/utils → disclosure}/types.js +0 -0
  3426. /package/build/{ui/utils → utils}/get-valid-children.js +0 -0
  3427. /package/build/{ui/utils → utils}/space.js +0 -0
  3428. /package/build-module/{ui/context → context}/constants.js +0 -0
  3429. /package/build-module/{ui/context → context}/get-styled-class-name-from-key.js +0 -0
  3430. /package/build-module/{ui/context → context}/index.js +0 -0
  3431. /package/build-module/{ui/context → context}/utils.js +0 -0
  3432. /package/build-module/{ui/context → context}/wordpress-component.js +0 -0
  3433. /package/build-module/{ui/tooltip → custom-select-control-v2}/types.js +0 -0
  3434. /package/build-module/{ui/utils → disclosure}/types.js +0 -0
  3435. /package/build-module/{ui/utils → utils}/get-valid-children.js +0 -0
  3436. /package/build-module/{ui/utils → utils}/space.js +0 -0
  3437. /package/build-types/{ui/context → context}/constants.d.ts +0 -0
  3438. /package/build-types/{ui/context → context}/context-connect.d.ts +0 -0
  3439. /package/build-types/{ui/context → context}/context-system-provider.d.ts +0 -0
  3440. /package/build-types/{ui/context → context}/get-styled-class-name-from-key.d.ts +0 -0
  3441. /package/build-types/{ui/context → context}/index.d.ts +0 -0
  3442. /package/build-types/{ui/context → context}/test/context-connect.d.ts +0 -0
  3443. /package/build-types/{ui/context → context}/test/wordpress-component.d.ts +0 -0
  3444. /package/build-types/{ui/context → context}/use-context-system.d.ts +0 -0
  3445. /package/build-types/{ui/context → context}/utils.d.ts +0 -0
  3446. /package/build-types/{ui/utils → utils}/font-size.d.ts +0 -0
  3447. /package/build-types/{ui/utils → utils}/get-valid-children.d.ts +0 -0
  3448. /package/build-types/{ui/utils → utils}/space.d.ts +0 -0
  3449. /package/build-types/{ui/utils → utils}/use-responsive-value.d.ts +0 -0
  3450. /package/src/{ui/context → context}/constants.js +0 -0
  3451. /package/src/{ui/context → context}/get-styled-class-name-from-key.ts +0 -0
  3452. /package/src/{ui/context → context}/index.ts +0 -0
  3453. /package/src/{ui/context → context}/stories/ComponentsProvider.stories.js +0 -0
  3454. /package/src/{ui/context → context}/test/__snapshots__/context-system-provider.js.snap +0 -0
  3455. /package/src/{ui/context → context}/test/context-connect.tsx +0 -0
  3456. /package/src/{ui/context → context}/test/context-system-provider.js +0 -0
  3457. /package/src/{ui/context → context}/test/wordpress-component.tsx +0 -0
  3458. /package/src/{ui/context → context}/utils.js +0 -0
  3459. /package/src/text/{index.js → index.ts} +0 -0
  3460. /package/src/{ui/utils → utils}/get-valid-children.ts +0 -0
  3461. /package/src/{ui/utils → utils}/space.ts +0 -0
  3462. /package/src/{ui/utils → utils}/test/space.js +0 -0
  3463. /package/src/{ui/utils → utils}/use-responsive-value.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["css","NumberControl","COLORS","reduceMotion","rtl","space","rangeHeightValue","railHeight","rangeHeight","height","minHeight","process","env","NODE_ENV","thumbSize","deprecatedHeight","__next40pxDefaultSize","Root","_styled","target","label","wrapperColor","color","ui","borderFocus","wrapperMargin","marks","__nextHasNoMarginBottom","marginBottom","undefined","Wrapper","BeforeIconWrapper","marginRight","AfterIconWrapper","marginLeft","railBackgroundColor","disabled","railColor","background","backgroundDisabled","Rail","gray","trackBackgroundColor","trackColor","Track","MarksWrapper","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","markFill","isFilled","backgroundColor","Mark","markLabelFill","MarkLabel","thumbColor","theme","accent","ThumbWrapper","transform","thumbFocus","isFocused","Thumb","InputRange","tooltipShow","show","opacity","_ref","_ref2","tooltipPosition","position","isBottom","Tooltip","InputNumber","ActionRightWrapper"],"sources":["@wordpress/components/src/range-control/styles/range-control-styles.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport { css } from '@emotion/react';\nimport styled from '@emotion/styled';\n\n/**\n * Internal dependencies\n */\nimport NumberControl from '../../number-control';\nimport { COLORS, reduceMotion, rtl } from '../../utils';\nimport { space } from '../../ui/utils/space';\n\nimport type {\n\tRangeMarkProps,\n\tRailProps,\n\tThumbProps,\n\tTooltipProps,\n\tTrackProps,\n\tWrapperProps,\n\tRangeControlProps,\n} from '../types';\n\nconst rangeHeightValue = 30;\nconst railHeight = 4;\nconst rangeHeight = () =>\n\tcss( { height: rangeHeightValue, minHeight: rangeHeightValue } );\nconst thumbSize = 12;\n\nconst deprecatedHeight = ( {\n\t__next40pxDefaultSize,\n}: Pick< RangeControlProps, '__next40pxDefaultSize' > ) =>\n\t! __next40pxDefaultSize && css( { minHeight: rangeHeightValue } );\n\ntype RootProps = Pick< RangeControlProps, '__next40pxDefaultSize' >;\nexport const Root = styled.div< RootProps >`\n\t-webkit-tap-highlight-color: transparent;\n\talign-items: center;\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\tpadding: 0;\n\tposition: relative;\n\ttouch-action: none;\n\twidth: 100%;\n\tmin-height: 40px;\n\t/* TODO: remove after removing the __next40pxDefaultSize prop */\n\t${ deprecatedHeight };\n`;\n\nconst wrapperColor = ( { color = COLORS.ui.borderFocus }: WrapperProps ) =>\n\tcss( { color } );\n\nconst wrapperMargin = ( { marks, __nextHasNoMarginBottom }: WrapperProps ) => {\n\tif ( ! __nextHasNoMarginBottom ) {\n\t\treturn css( { marginBottom: marks ? 16 : undefined } );\n\t}\n\treturn '';\n};\n\nexport const Wrapper = styled.div< WrapperProps >`\n\tdisplay: block;\n\tflex: 1;\n\tposition: relative;\n\twidth: 100%;\n\n\t${ wrapperColor };\n\t${ rangeHeight };\n\t${ wrapperMargin };\n`;\n\nexport const BeforeIconWrapper = styled.span`\n\tdisplay: flex; // ensures the height isn't affected by line-height\n\tmargin-top: ${ railHeight }px;\n\n\t${ rtl( { marginRight: 6 } ) }\n`;\n\nexport const AfterIconWrapper = styled.span`\n\tdisplay: flex; // ensures the height isn't affected by line-height\n\tmargin-top: ${ railHeight }px;\n\n\t${ rtl( { marginLeft: 6 } ) }\n`;\n\nconst railBackgroundColor = ( { disabled, railColor }: RailProps ) => {\n\tlet background = railColor || '';\n\n\tif ( disabled ) {\n\t\tbackground = COLORS.ui.backgroundDisabled;\n\t}\n\n\treturn css( { background } );\n};\n\nexport const Rail = styled.span`\n\tbackground-color: ${ COLORS.gray[ 300 ] };\n\tleft: 0;\n\tpointer-events: none;\n\tright: 0;\n\tdisplay: block;\n\theight: ${ railHeight }px;\n\tposition: absolute;\n\tmargin-top: ${ ( rangeHeightValue - railHeight ) / 2 }px;\n\ttop: 0;\n\tborder-radius: ${ railHeight }px;\n\n\t${ railBackgroundColor };\n`;\n\nconst trackBackgroundColor = ( { disabled, trackColor }: TrackProps ) => {\n\tlet background = trackColor || 'currentColor';\n\n\tif ( disabled ) {\n\t\tbackground = COLORS.gray[ 400 ];\n\t}\n\n\treturn css( { background } );\n};\n\nexport const Track = styled.span`\n\tbackground-color: currentColor;\n\tborder-radius: ${ railHeight }px;\n\theight: ${ railHeight }px;\n\tpointer-events: none;\n\tdisplay: block;\n\tposition: absolute;\n\tmargin-top: ${ ( rangeHeightValue - railHeight ) / 2 }px;\n\ttop: 0;\n\n\t${ trackBackgroundColor };\n`;\n\nexport const MarksWrapper = styled.span`\n\tdisplay: block;\n\tpointer-events: none;\n\tposition: relative;\n\twidth: 100%;\n\tuser-select: none;\n`;\n\nconst markFill = ( { disabled, isFilled }: RangeMarkProps ) => {\n\tlet backgroundColor = isFilled ? 'currentColor' : COLORS.gray[ 300 ];\n\n\tif ( disabled ) {\n\t\tbackgroundColor = COLORS.gray[ 400 ];\n\t}\n\n\treturn css( {\n\t\tbackgroundColor,\n\t} );\n};\n\nexport const Mark = styled.span`\n\theight: ${ thumbSize }px;\n\tleft: 0;\n\tposition: absolute;\n\ttop: -4px;\n\twidth: 1px;\n\n\t${ markFill };\n`;\n\nconst markLabelFill = ( { isFilled }: RangeMarkProps ) => {\n\treturn css( {\n\t\tcolor: isFilled ? COLORS.gray[ 700 ] : COLORS.gray[ 300 ],\n\t} );\n};\n\nexport const MarkLabel = styled.span`\n\tcolor: ${ COLORS.gray[ 300 ] };\n\tleft: 0;\n\tfont-size: 11px;\n\tposition: absolute;\n\ttop: 12px;\n\ttransform: translateX( -50% );\n\twhite-space: nowrap;\n\n\t${ markLabelFill };\n`;\n\nconst thumbColor = ( { disabled }: ThumbProps ) =>\n\tdisabled\n\t\t? css`\n\t\t\t\tbackground-color: ${ COLORS.gray[ 400 ] };\n\t\t `\n\t\t: css`\n\t\t\t\tbackground-color: ${ COLORS.theme.accent };\n\t\t `;\n\nexport const ThumbWrapper = styled.span`\n\talign-items: center;\n\tdisplay: flex;\n\theight: ${ thumbSize }px;\n\tjustify-content: center;\n\tmargin-top: ${ ( rangeHeightValue - thumbSize ) / 2 }px;\n\toutline: 0;\n\tpointer-events: none;\n\tposition: absolute;\n\ttop: 0;\n\tuser-select: none;\n\twidth: ${ thumbSize }px;\n\tborder-radius: 50%;\n\n\t${ thumbColor };\n\t${ rtl( { marginLeft: -10 } ) };\n\t${ rtl(\n\t\t{ transform: 'translateX( 4.5px )' },\n\t\t{ transform: 'translateX( -4.5px )' }\n\t) };\n`;\n\nconst thumbFocus = ( { isFocused }: ThumbProps ) => {\n\treturn isFocused\n\t\t? css`\n\t\t\t\t&::before {\n\t\t\t\t\tcontent: ' ';\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tbackground-color: ${ COLORS.theme.accent };\n\t\t\t\t\topacity: 0.4;\n\t\t\t\t\tborder-radius: 50%;\n\t\t\t\t\theight: ${ thumbSize + 8 }px;\n\t\t\t\t\twidth: ${ thumbSize + 8 }px;\n\t\t\t\t\ttop: -4px;\n\t\t\t\t\tleft: -4px;\n\t\t\t\t}\n\t\t `\n\t\t: '';\n};\n\nexport const Thumb = styled.span< ThumbProps >`\n\talign-items: center;\n\tborder-radius: 50%;\n\theight: 100%;\n\toutline: 0;\n\tposition: absolute;\n\tuser-select: none;\n\twidth: 100%;\n\n\t${ thumbColor };\n\t${ thumbFocus };\n`;\n\nexport const InputRange = styled.input`\n\tbox-sizing: border-box;\n\tcursor: pointer;\n\tdisplay: block;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0 -${ thumbSize / 2 }px;\n\topacity: 0;\n\toutline: none;\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n\twidth: calc( 100% + ${ thumbSize }px );\n`;\n\nconst tooltipShow = ( { show }: TooltipProps ) => {\n\treturn css( {\n\t\topacity: show ? 1 : 0,\n\t} );\n};\n\nconst tooltipPosition = ( { position }: TooltipProps ) => {\n\tconst isBottom = position === 'bottom';\n\n\tif ( isBottom ) {\n\t\treturn css`\n\t\t\tbottom: -80%;\n\t\t`;\n\t}\n\n\treturn css`\n\t\ttop: -80%;\n\t`;\n};\n\nexport const Tooltip = styled.span< TooltipProps >`\n\tbackground: rgba( 0, 0, 0, 0.8 );\n\tborder-radius: 2px;\n\tcolor: white;\n\tdisplay: inline-block;\n\tfont-size: 12px;\n\tmin-width: 32px;\n\topacity: 0;\n\tpadding: 4px 8px;\n\tpointer-events: none;\n\tposition: absolute;\n\ttext-align: center;\n\ttransition: opacity 120ms ease;\n\tuser-select: none;\n\tline-height: 1.4;\n\n\t${ tooltipShow };\n\t${ tooltipPosition };\n\t${ reduceMotion( 'transition' ) };\n\t${ rtl(\n\t\t{ transform: 'translateX(-50%)' },\n\t\t{ transform: 'translateX(50%)' }\n\t) }\n`;\n\n// @todo: Refactor RangeControl with latest HStack configuration\n// @wordpress/components/ui/hstack.\nexport const InputNumber = styled( NumberControl )`\n\tdisplay: inline-block;\n\tfont-size: 13px;\n\tmargin-top: 0;\n\n\tinput[type='number']& {\n\t\t${ rangeHeight };\n\t}\n\n\t${ rtl( { marginLeft: `${ space( 4 ) } !important` } ) }\n`;\n\nexport const ActionRightWrapper = styled.span`\n\tdisplay: block;\n\tmargin-top: 0;\n\n\tbutton,\n\tbutton.is-small {\n\t\tmargin-left: 0;\n\t\t${ rangeHeight };\n\t}\n\n\t${ rtl( { marginLeft: 8 } ) }\n`;\n"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,GAAG,QAAQ,gBAAgB;AAGpC;AACA;AACA;AACA,OAAOC,aAAa,MAAM,sBAAsB;AAChD,SAASC,MAAM,EAAEC,YAAY,EAAEC,GAAG,QAAQ,aAAa;AACvD,SAASC,KAAK,QAAQ,sBAAsB;AAY5C,MAAMC,gBAAgB,GAAG,EAAE;AAC3B,MAAMC,UAAU,GAAG,CAAC;AACpB,MAAMC,WAAW,GAAGA,CAAA,kBACnBR,GAAG,CAAE;EAAES,MAAM,EAAEH,gBAAgB;EAAEI,SAAS,EAAEJ;AAAiB,CAAC,EAAAK,OAAA,CAAAC,GAAA,CAAAC,QAAA,gDAAAF,OAAA,CAAAC,GAAA,CAAAC,QAAA,8gUAAC,CAAC;AACjE,MAAMC,SAAS,GAAG,EAAE;AAEpB,MAAMC,gBAAgB,GAAGA,CAAE;EAC1BC;AACmD,CAAC,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D;AAED,OAAO,MAAM+D,kBAAkB,GAAA1D,OAAA,SAAAP,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAM,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,uEAO1BZ,WAAW,QAGZJ,GAAG,CAAE;EAAE8B,UAAU,EAAE;AAAE,CAAE,CAAC,SAAAvB,OAAA,CAAAC,GAAA,CAAAC,QAAA,ohUAC3B"}
1
+ {"version":3,"names":["css","NumberControl","COLORS","reduceMotion","rtl","space","rangeHeightValue","railHeight","rangeHeight","height","minHeight","process","env","NODE_ENV","thumbSize","deprecatedHeight","__next40pxDefaultSize","Root","_styled","target","label","wrapperColor","color","ui","borderFocus","wrapperMargin","marks","__nextHasNoMarginBottom","marginBottom","undefined","Wrapper","BeforeIconWrapper","marginRight","AfterIconWrapper","marginLeft","railBackgroundColor","disabled","railColor","background","backgroundDisabled","Rail","gray","trackBackgroundColor","trackColor","Track","MarksWrapper","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","markFill","isFilled","backgroundColor","Mark","markLabelFill","MarkLabel","thumbColor","theme","accent","ThumbWrapper","transform","thumbFocus","isFocused","Thumb","InputRange","tooltipShow","show","opacity","_ref","_ref2","tooltipPosition","position","isBottom","Tooltip","InputNumber","ActionRightWrapper"],"sources":["@wordpress/components/src/range-control/styles/range-control-styles.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport { css } from '@emotion/react';\nimport styled from '@emotion/styled';\n\n/**\n * Internal dependencies\n */\nimport NumberControl from '../../number-control';\nimport { COLORS, reduceMotion, rtl } from '../../utils';\nimport { space } from '../../utils/space';\n\nimport type {\n\tRangeMarkProps,\n\tRailProps,\n\tThumbProps,\n\tTooltipProps,\n\tTrackProps,\n\tWrapperProps,\n\tRangeControlProps,\n} from '../types';\n\nconst rangeHeightValue = 30;\nconst railHeight = 4;\nconst rangeHeight = () =>\n\tcss( { height: rangeHeightValue, minHeight: rangeHeightValue } );\nconst thumbSize = 12;\n\nconst deprecatedHeight = ( {\n\t__next40pxDefaultSize,\n}: Pick< RangeControlProps, '__next40pxDefaultSize' > ) =>\n\t! __next40pxDefaultSize && css( { minHeight: rangeHeightValue } );\n\ntype RootProps = Pick< RangeControlProps, '__next40pxDefaultSize' >;\nexport const Root = styled.div< RootProps >`\n\t-webkit-tap-highlight-color: transparent;\n\talign-items: center;\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\tpadding: 0;\n\tposition: relative;\n\ttouch-action: none;\n\twidth: 100%;\n\tmin-height: 40px;\n\t/* TODO: remove after removing the __next40pxDefaultSize prop */\n\t${ deprecatedHeight };\n`;\n\nconst wrapperColor = ( { color = COLORS.ui.borderFocus }: WrapperProps ) =>\n\tcss( { color } );\n\nconst wrapperMargin = ( { marks, __nextHasNoMarginBottom }: WrapperProps ) => {\n\tif ( ! __nextHasNoMarginBottom ) {\n\t\treturn css( { marginBottom: marks ? 16 : undefined } );\n\t}\n\treturn '';\n};\n\nexport const Wrapper = styled.div< WrapperProps >`\n\tdisplay: block;\n\tflex: 1;\n\tposition: relative;\n\twidth: 100%;\n\n\t${ wrapperColor };\n\t${ rangeHeight };\n\t${ wrapperMargin };\n`;\n\nexport const BeforeIconWrapper = styled.span`\n\tdisplay: flex; // ensures the height isn't affected by line-height\n\tmargin-top: ${ railHeight }px;\n\n\t${ rtl( { marginRight: 6 } ) }\n`;\n\nexport const AfterIconWrapper = styled.span`\n\tdisplay: flex; // ensures the height isn't affected by line-height\n\tmargin-top: ${ railHeight }px;\n\n\t${ rtl( { marginLeft: 6 } ) }\n`;\n\nconst railBackgroundColor = ( { disabled, railColor }: RailProps ) => {\n\tlet background = railColor || '';\n\n\tif ( disabled ) {\n\t\tbackground = COLORS.ui.backgroundDisabled;\n\t}\n\n\treturn css( { background } );\n};\n\nexport const Rail = styled.span`\n\tbackground-color: ${ COLORS.gray[ 300 ] };\n\tleft: 0;\n\tpointer-events: none;\n\tright: 0;\n\tdisplay: block;\n\theight: ${ railHeight }px;\n\tposition: absolute;\n\tmargin-top: ${ ( rangeHeightValue - railHeight ) / 2 }px;\n\ttop: 0;\n\tborder-radius: ${ railHeight }px;\n\n\t${ railBackgroundColor };\n`;\n\nconst trackBackgroundColor = ( { disabled, trackColor }: TrackProps ) => {\n\tlet background = trackColor || 'currentColor';\n\n\tif ( disabled ) {\n\t\tbackground = COLORS.gray[ 400 ];\n\t}\n\n\treturn css( { background } );\n};\n\nexport const Track = styled.span`\n\tbackground-color: currentColor;\n\tborder-radius: ${ railHeight }px;\n\theight: ${ railHeight }px;\n\tpointer-events: none;\n\tdisplay: block;\n\tposition: absolute;\n\tmargin-top: ${ ( rangeHeightValue - railHeight ) / 2 }px;\n\ttop: 0;\n\n\t${ trackBackgroundColor };\n`;\n\nexport const MarksWrapper = styled.span`\n\tdisplay: block;\n\tpointer-events: none;\n\tposition: relative;\n\twidth: 100%;\n\tuser-select: none;\n`;\n\nconst markFill = ( { disabled, isFilled }: RangeMarkProps ) => {\n\tlet backgroundColor = isFilled ? 'currentColor' : COLORS.gray[ 300 ];\n\n\tif ( disabled ) {\n\t\tbackgroundColor = COLORS.gray[ 400 ];\n\t}\n\n\treturn css( {\n\t\tbackgroundColor,\n\t} );\n};\n\nexport const Mark = styled.span`\n\theight: ${ thumbSize }px;\n\tleft: 0;\n\tposition: absolute;\n\ttop: -4px;\n\twidth: 1px;\n\n\t${ markFill };\n`;\n\nconst markLabelFill = ( { isFilled }: RangeMarkProps ) => {\n\treturn css( {\n\t\tcolor: isFilled ? COLORS.gray[ 700 ] : COLORS.gray[ 300 ],\n\t} );\n};\n\nexport const MarkLabel = styled.span`\n\tcolor: ${ COLORS.gray[ 300 ] };\n\tleft: 0;\n\tfont-size: 11px;\n\tposition: absolute;\n\ttop: 12px;\n\ttransform: translateX( -50% );\n\twhite-space: nowrap;\n\n\t${ markLabelFill };\n`;\n\nconst thumbColor = ( { disabled }: ThumbProps ) =>\n\tdisabled\n\t\t? css`\n\t\t\t\tbackground-color: ${ COLORS.gray[ 400 ] };\n\t\t `\n\t\t: css`\n\t\t\t\tbackground-color: ${ COLORS.theme.accent };\n\t\t `;\n\nexport const ThumbWrapper = styled.span`\n\talign-items: center;\n\tdisplay: flex;\n\theight: ${ thumbSize }px;\n\tjustify-content: center;\n\tmargin-top: ${ ( rangeHeightValue - thumbSize ) / 2 }px;\n\toutline: 0;\n\tpointer-events: none;\n\tposition: absolute;\n\ttop: 0;\n\tuser-select: none;\n\twidth: ${ thumbSize }px;\n\tborder-radius: 50%;\n\n\t${ thumbColor };\n\t${ rtl( { marginLeft: -10 } ) };\n\t${ rtl(\n\t\t{ transform: 'translateX( 4.5px )' },\n\t\t{ transform: 'translateX( -4.5px )' }\n\t) };\n`;\n\nconst thumbFocus = ( { isFocused }: ThumbProps ) => {\n\treturn isFocused\n\t\t? css`\n\t\t\t\t&::before {\n\t\t\t\t\tcontent: ' ';\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tbackground-color: ${ COLORS.theme.accent };\n\t\t\t\t\topacity: 0.4;\n\t\t\t\t\tborder-radius: 50%;\n\t\t\t\t\theight: ${ thumbSize + 8 }px;\n\t\t\t\t\twidth: ${ thumbSize + 8 }px;\n\t\t\t\t\ttop: -4px;\n\t\t\t\t\tleft: -4px;\n\t\t\t\t}\n\t\t `\n\t\t: '';\n};\n\nexport const Thumb = styled.span< ThumbProps >`\n\talign-items: center;\n\tborder-radius: 50%;\n\theight: 100%;\n\toutline: 0;\n\tposition: absolute;\n\tuser-select: none;\n\twidth: 100%;\n\n\t${ thumbColor };\n\t${ thumbFocus };\n`;\n\nexport const InputRange = styled.input`\n\tbox-sizing: border-box;\n\tcursor: pointer;\n\tdisplay: block;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0 -${ thumbSize / 2 }px;\n\topacity: 0;\n\toutline: none;\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n\twidth: calc( 100% + ${ thumbSize }px );\n`;\n\nconst tooltipShow = ( { show }: TooltipProps ) => {\n\treturn css( {\n\t\topacity: show ? 1 : 0,\n\t} );\n};\n\nconst tooltipPosition = ( { position }: TooltipProps ) => {\n\tconst isBottom = position === 'bottom';\n\n\tif ( isBottom ) {\n\t\treturn css`\n\t\t\tbottom: -80%;\n\t\t`;\n\t}\n\n\treturn css`\n\t\ttop: -80%;\n\t`;\n};\n\nexport const Tooltip = styled.span< TooltipProps >`\n\tbackground: rgba( 0, 0, 0, 0.8 );\n\tborder-radius: 2px;\n\tcolor: white;\n\tdisplay: inline-block;\n\tfont-size: 12px;\n\tmin-width: 32px;\n\topacity: 0;\n\tpadding: 4px 8px;\n\tpointer-events: none;\n\tposition: absolute;\n\ttext-align: center;\n\ttransition: opacity 120ms ease;\n\tuser-select: none;\n\tline-height: 1.4;\n\n\t${ tooltipShow };\n\t${ tooltipPosition };\n\t${ reduceMotion( 'transition' ) };\n\t${ rtl(\n\t\t{ transform: 'translateX(-50%)' },\n\t\t{ transform: 'translateX(50%)' }\n\t) }\n`;\n\n// @todo: Refactor RangeControl with latest HStack configuration\n// @see: packages/components/src/h-stack\nexport const InputNumber = styled( NumberControl )`\n\tdisplay: inline-block;\n\tfont-size: 13px;\n\tmargin-top: 0;\n\n\tinput[type='number']& {\n\t\t${ rangeHeight };\n\t}\n\n\t${ rtl( { marginLeft: `${ space( 4 ) } !important` } ) }\n`;\n\nexport const ActionRightWrapper = styled.span`\n\tdisplay: block;\n\tmargin-top: 0;\n\n\tbutton,\n\tbutton.is-small {\n\t\tmargin-left: 0;\n\t\t${ rangeHeight };\n\t}\n\n\t${ rtl( { marginLeft: 8 } ) }\n`;\n"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,GAAG,QAAQ,gBAAgB;AAGpC;AACA;AACA;AACA,OAAOC,aAAa,MAAM,sBAAsB;AAChD,SAASC,MAAM,EAAEC,YAAY,EAAEC,GAAG,QAAQ,aAAa;AACvD,SAASC,KAAK,QAAQ,mBAAmB;AAYzC,MAAMC,gBAAgB,GAAG,EAAE;AAC3B,MAAMC,UAAU,GAAG,CAAC;A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aAAAzD,OAAA,CAAQjB,aAAa,EAAAU,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAM,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,CAAC,CAAC,4EAM7CZ,WAAW,QAGZJ,GAAG,CAAE;EAAE8B,UAAU,EAAG,GAAG7B,KAAK,CAAE,CAAE,CAAG;AAAa,CAAE,CAAC,SAAAM,OAAA,CAAAC,GAAA,CAAAC,QAAA,ohUACtD;AAED,OAAO,MAAM+D,kBAAkB,GAAA1D,OAAA,SAAAP,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAM,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,uEAO1BZ,WAAW,QAGZJ,GAAG,CAAE;EAAE8B,UAAU,EAAE;AAAE,CAAE,CAAC,SAAAvB,OAAA,CAAAC,GAAA,CAAAC,QAAA,ohUAC3B"}
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * External dependencies
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"names":["classnames","useCallback","useEffect","useState","Tooltip","SimpleTooltip","props","className","inputRef","tooltipPosition","show","style","value","renderTooltipContent","v","zIndex","restProps","position","useTooltipPosition","classes","styles","createElement","role","setPosition","setTooltipPosition","current","window","addEventListener","removeEventListener"],"sources":["@wordpress/components/src/range-control/tooltip.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { useCallback, useEffect, useState } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { Tooltip } from './styles/range-control-styles';\n\nimport type { TooltipProps } from './types';\nimport type { WordPressComponentProps } from '../ui/context';\n\nexport default function SimpleTooltip(\n\tprops: WordPressComponentProps< TooltipProps, 'span' >\n) {\n\tconst {\n\t\tclassName,\n\t\tinputRef,\n\t\ttooltipPosition,\n\t\tshow = false,\n\t\tstyle = {},\n\t\tvalue = 0,\n\t\trenderTooltipContent = ( v ) => v,\n\t\tzIndex = 100,\n\t\t...restProps\n\t} = props;\n\tconst position = useTooltipPosition( { inputRef, tooltipPosition } );\n\tconst classes = classnames( 'components-simple-tooltip', className );\n\tconst styles = {\n\t\t...style,\n\t\tzIndex,\n\t};\n\n\treturn (\n\t\t<Tooltip\n\t\t\t{ ...restProps }\n\t\t\taria-hidden={ show }\n\t\t\tclassName={ classes }\n\t\t\tposition={ position }\n\t\t\tshow={ show }\n\t\t\trole=\"tooltip\"\n\t\t\tstyle={ styles }\n\t\t>\n\t\t\t{ renderTooltipContent( value ) }\n\t\t</Tooltip>\n\t);\n}\n\nfunction useTooltipPosition( { inputRef, tooltipPosition }: TooltipProps ) {\n\tconst [ position, setPosition ] = useState< string >();\n\n\tconst setTooltipPosition = useCallback( () => {\n\t\tif ( inputRef && inputRef.current ) {\n\t\t\tsetPosition( tooltipPosition );\n\t\t}\n\t}, [ tooltipPosition, inputRef ] );\n\n\tuseEffect( () => {\n\t\tsetTooltipPosition();\n\t}, [ setTooltipPosition ] );\n\n\tuseEffect( () => {\n\t\twindow.addEventListener( 'resize', setTooltipPosition );\n\n\t\treturn () => {\n\t\t\twindow.removeEventListener( 'resize', setTooltipPosition );\n\t\t};\n\t} );\n\n\treturn position;\n}\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,UAAU,MAAM,YAAY;;AAEnC;AACA;AACA;AACA,SAASC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,oBAAoB;;AAErE;AACA;AACA;AACA,SAASC,OAAO,QAAQ,+BAA+B;AAKvD,eAAe,SAASC,aAAaA,CACpCC,KAAsD,EACrD;EACD,MAAM;IACLC,SAAS;IACTC,QAAQ;IACRC,eAAe;IACfC,IAAI,GAAG,KAAK;IACZC,KAAK,GAAG,CAAC,CAAC;IACVC,KAAK,GAAG,CAAC;IACTC,oBAAoB,GAAKC,CAAC,IAAMA,CAAC;IACjCC,MAAM,GAAG,GAAG;IACZ,GAAGC;EACJ,CAAC,GAAGV,KAAK;EACT,MAAMW,QAAQ,GAAGC,kBAAkB,CAAE;IAAEV,QAAQ;IAAEC;EAAgB,CAAE,CAAC;EACpE,MAAMU,OAAO,GAAGnB,UAAU,CAAE,2BAA2B,EAAEO,SAAU,CAAC;EACpE,MAAMa,MAAM,GAAG;IACd,GAAGT,KAAK;IACRI;EACD,CAAC;EAED,OACCM,aAAA,CAACjB,OAAO;IAAA,GACFY,SAAS;IACd,eAAcN,IAAM;IACpBH,SAAS,EAAGY,OAAS;IACrBF,QAAQ,EAAGA,QAAU;IACrBP,IAAI,EAAGA,IAAM;IACbY,IAAI,EAAC,SAAS;IACdX,KAAK,EAAGS;EAAQ,GAEdP,oBAAoB,CAAED,KAAM,CACtB,CAAC;AAEZ;AAEA,SAASM,kBAAkBA,CAAE;EAAEV,QAAQ;EAAEC;AAA8B,CAAC,EAAG;EAC1E,MAAM,CAAEQ,QAAQ,EAAEM,WAAW,CAAE,GAAGpB,QAAQ,CAAW,CAAC;EAEtD,MAAMqB,kBAAkB,GAAGvB,WAAW,CAAE,MAAM;IAC7C,IAAKO,QAAQ,IAAIA,QAAQ,CAACiB,OAAO,EAAG;MACnCF,WAAW,CAAEd,eAAgB,CAAC;IAC/B;EACD,CAAC,EAAE,CAAEA,eAAe,EAAED,QAAQ,CAAG,CAAC;EAElCN,SAAS,CAAE,MAAM;IAChBsB,kBAAkB,CAAC,CAAC;EACrB,CAAC,EAAE,CAAEA,kBAAkB,CAAG,CAAC;EAE3BtB,SAAS,CAAE,MAAM;IAChBwB,MAAM,CAACC,gBAAgB,CAAE,QAAQ,EAAEH,kBAAmB,CAAC;IAEvD,OAAO,MAAM;MACZE,MAAM,CAACE,mBAAmB,CAAE,QAAQ,EAAEJ,kBAAmB,CAAC;IAC3D,CAAC;EACF,CAAE,CAAC;EAEH,OAAOP,QAAQ;AAChB"}
1
+ {"version":3,"names":["classnames","useCallback","useEffect","useState","Tooltip","SimpleTooltip","props","className","inputRef","tooltipPosition","show","style","value","renderTooltipContent","v","zIndex","restProps","position","useTooltipPosition","classes","styles","createElement","role","setPosition","setTooltipPosition","current","window","addEventListener","removeEventListener"],"sources":["@wordpress/components/src/range-control/tooltip.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { useCallback, useEffect, useState } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { Tooltip } from './styles/range-control-styles';\n\nimport type { TooltipProps } from './types';\nimport type { WordPressComponentProps } from '../context';\n\nexport default function SimpleTooltip(\n\tprops: WordPressComponentProps< TooltipProps, 'span' >\n) {\n\tconst {\n\t\tclassName,\n\t\tinputRef,\n\t\ttooltipPosition,\n\t\tshow = false,\n\t\tstyle = {},\n\t\tvalue = 0,\n\t\trenderTooltipContent = ( v ) => v,\n\t\tzIndex = 100,\n\t\t...restProps\n\t} = props;\n\tconst position = useTooltipPosition( { inputRef, tooltipPosition } );\n\tconst classes = classnames( 'components-simple-tooltip', className );\n\tconst styles = {\n\t\t...style,\n\t\tzIndex,\n\t};\n\n\treturn (\n\t\t<Tooltip\n\t\t\t{ ...restProps }\n\t\t\taria-hidden={ show }\n\t\t\tclassName={ classes }\n\t\t\tposition={ position }\n\t\t\tshow={ show }\n\t\t\trole=\"tooltip\"\n\t\t\tstyle={ styles }\n\t\t>\n\t\t\t{ renderTooltipContent( value ) }\n\t\t</Tooltip>\n\t);\n}\n\nfunction useTooltipPosition( { inputRef, tooltipPosition }: TooltipProps ) {\n\tconst [ position, setPosition ] = useState< string >();\n\n\tconst setTooltipPosition = useCallback( () => {\n\t\tif ( inputRef && inputRef.current ) {\n\t\t\tsetPosition( tooltipPosition );\n\t\t}\n\t}, [ tooltipPosition, inputRef ] );\n\n\tuseEffect( () => {\n\t\tsetTooltipPosition();\n\t}, [ setTooltipPosition ] );\n\n\tuseEffect( () => {\n\t\twindow.addEventListener( 'resize', setTooltipPosition );\n\n\t\treturn () => {\n\t\t\twindow.removeEventListener( 'resize', set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gB,CAAC;IAC/B;EACD,CAAC,EAAE,CAAEA,eAAe,EAAED,QAAQ,CAAG,CAAC;EAElCN,SAAS,CAAE,MAAM;IAChBsB,kBAAkB,CAAC,CAAC;EACrB,CAAC,EAAE,CAAEA,kBAAkB,CAAG,CAAC;EAE3BtB,SAAS,CAAE,MAAM;IAChBwB,MAAM,CAACC,gBAAgB,CAAE,QAAQ,EAAEH,kBAAmB,CAAC;IAEvD,OAAO,MAAM;MACZE,MAAM,CAACE,mBAAmB,CAAE,QAAQ,EAAEJ,kBAAmB,CAAC;IAC3D,CAAC;EACF,CAAE,CAAC;EAEH,OAAOP,QAAQ;AAChB"}
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * External dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * External dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * External dependencies
4
4
  */
@@ -20,7 +20,7 @@ export const Root = _styled("div", process.env.NODE_ENV === "production" ? {
20
20
  } : {
21
21
  name: "1cd7zoc",
22
22
  styles: "bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0",
23
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvcmVzaXphYmxlLWJveC9yZXNpemUtdG9vbHRpcC9zdHlsZXMvcmVzaXplLXRvb2x0aXAuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVc4QiIsImZpbGUiOiJAd29yZHByZXNzL2NvbXB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WQgfTtcblx0cGFkZGluZzogNHB4IDhweDtcblx0cG9zaXRpb246IHJlbGF0aXZlO1xuYDtcblxuLy8gVE9ETzogUmVzb2x2ZSBuZWVkIHRvIHVzZSAmJiYgdG8gaW5jcmVhc2Ugc3BlY2lmaWNpdHlcbi8vIGh0dHBzOi8vZ2l0aHViLmNvbS9Xb3JkUHJlc3MvZ3V0ZW5iZXJnL2lzc3Vlcy8xODQ4M1xuXG5leHBvcnQgY29uc3QgTGFiZWxUZXh0ID0gc3R5bGVkKCBUZXh0IClgXG5cdCYmJiB7XG5cdFx0Y29sb3I6ICR7IENPTE9SUy50aGVtZS5mb3JlZ3JvdW5kSW52ZXJ0ZWQgfTtcblx0XHRkaXNwbGF5OiBibG9jaztcblx0XHRmb250LXNpemU6IDEzcHg7XG5cdFx0bGluZS1oZWlnaHQ6IDEuNDtcblx0XHR3aGl0ZS1zcGFjZTogbm93cmFwO1xuXHR9XG5gO1xuIl19 */",
24
24
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
25
25
  });
26
26
  export const TooltipWrapper = _styled("div", process.env.NODE_ENV === "production" ? {
@@ -34,7 +34,7 @@ export const TooltipWrapper = _styled("div", process.env.NODE_ENV === "productio
34
34
  } : {
35
35
  name: "ajymcs",
36
36
  styles: "align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear",
37
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvcmVzaXphYmxlLWJveC9yZXNpemUtdG9vbHRpcC9zdHlsZXMvcmVzaXplLXRvb2x0aXAuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFCd0MiLCJmaWxlIjoiQHdvcmRwcmVzcy9jb21wb25lbnRzL3NyYy9yZXNpemFibGUtYm94L3Jlc2l6ZS10b29sdGlwL3N0eWxlc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gJiYmIHRvIGluY3JlYXNlIHNwZWNpZmljaXR5XG4vLyBodHRwczovL2dpdGh1Yi5jb20vV29yZFByZXNzL2d1dGVuYmVyZy9pc3N1ZXMvMTg0ODNcblxuZXhwb3J0IGNvbnN0IExhYmVsVGV4dCA9IHN0eWxlZCggVGV4dCApYFxuXHQmJiYge1xuXHRcdGNvbG9yOiAkeyBDT0xPUlMudGhlbWUuZm9yZWdyb3VuZEludmVydGVkIH07XG5cdFx0ZGlzcGxheTogYmxvY2s7XG5cdFx0Zm9udC1zaXplOiAxM3B4O1xuXHRcdGxpbmUtaGVpZ2h0OiAxLjQ7XG5cdFx0d2hpdGUtc3BhY2U6IG5vd3JhcDtcblx0fVxuYDtcbiJdfQ== */",
38
38
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
39
39
  });
40
40
  export const Tooltip = _styled("div", process.env.NODE_ENV === "production" ? {
@@ -42,7 +42,7 @@ export const Tooltip = _styled("div", process.env.NODE_ENV === "production" ? {
42
42
  } : {
43
43
  target: "e1wq7y4k1",
44
44
  label: "Tooltip"
45
- })("background:", COLORS.gray[900], ";border-radius:2px;box-sizing:border-box;font-family:", font('default.fontFamily'), ";font-size:12px;color:", COLORS.ui.textDark, ";padding:4px 8px;position:relative;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvcmVzaXphYmxlLWJveC9yZXNpemUtdG9vbHRpcC9zdHlsZXMvcmVzaXplLXRvb2x0aXAuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQStCaUMiLCJmaWxlIjoiQHdvcmRwcmVzcy9jb21wb25lbnRzL3NyYy9yZXNpemFibGUtYm94L3Jlc2l6ZS10b29sdGlwL3N0eWxlcy9yZXNpemUtdG9vbHRpcC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI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VpLnRleHREYXJrIH07XG5cdHBhZGRpbmc6IDRweCA4cHg7XG5cdHBvc2l0aW9uOiByZWxhdGl2ZTtcbmA7XG5cbi8vIFRPRE86IFJlc29sdmUgbmVlZCB0byB1c2UgJiYmIHRvIGluY3JlYXNlIHNwZWNpZmljaXR5XG4vLyBodHRwczovL2dpdGh1Yi5jb20vV29yZFByZXNzL2d1dGVuYmVyZy9pc3N1ZXMvMTg0ODNcblxuZXhwb3J0IGNvbnN0IExhYmVsVGV4dCA9IHN0eWxlZCggVGV4dCApYFxuXHQmJiYge1xuXHRcdGNvbG9yOiAkeyBDT0xPUlMudWkudGV4dERhcmsgfTtcblx0XHRkaXNwbGF5OiBibG9jaztcblx0XHRmb250LXNpemU6IDEzcHg7XG5cdFx0bGluZS1oZWlnaHQ6IDEuNDtcblx0XHR3aGl0ZS1zcGFjZTogbm93cmFwO1xuXHR9XG5gO1xuIl19 */"));
45
+ })("background:", COLORS.theme.foreground, ";border-radius:2px;box-sizing:border-box;font-family:", font('default.fontFamily'), ";font-size:12px;color:", COLORS.theme.foregroundInverted, ";padding:4px 8px;position:relative;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvcmVzaXphYmxlLWJveC9yZXNpemUtdG9vbHRpcC9zdHlsZXMvcmVzaXplLXRvb2x0aXAuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQStCaUMiLCJmaWxlIjoiQHdvcmRwcmVzcy9jb21wb25lbnRzL3NyYy9yZXNpemFibGUtYm94L3Jlc2l6ZS10b29sdGlwL3N0eWxlcy9yZXNpemUtdG9vbHRpcC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEV4dGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgc3R5bGVkIGZyb20g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aW9uOiByZWxhdGl2ZTtcbmA7XG5cbi8vIFRPRE86IFJlc29sdmUgbmVlZCB0byB1c2UgJiYmIHRvIGluY3JlYXNlIHNwZWNpZmljaXR5XG4vLyBodHRwczovL2dpdGh1Yi5jb20vV29yZFByZXNzL2d1dGVuYmVyZy9pc3N1ZXMvMTg0ODNcblxuZXhwb3J0IGNvbnN0IExhYmVsVGV4dCA9IHN0eWxlZCggVGV4dCApYFxuXHQmJiYge1xuXHRcdGNvbG9yOiAkeyBDT0xPUlMudGhlbWUuZm9yZWdyb3VuZEludmVydGVkIH07XG5cdFx0ZGlzcGxheTogYmxvY2s7XG5cdFx0Zm9udC1zaXplOiAxM3B4O1xuXHRcdGxpbmUtaGVpZ2h0OiAxLjQ7XG5cdFx0d2hpdGUtc3BhY2U6IG5vd3JhcDtcblx0fVxuYDtcbiJdfQ== */"));
46
46
 
47
47
  // TODO: Resolve need to use &&& to increase specificity
48
48
  // https://github.com/WordPress/gutenberg/issues/18483
@@ -52,5 +52,5 @@ export const LabelText = /*#__PURE__*/_styled(Text, process.env.NODE_ENV === "pr
52
52
  } : {
53
53
  target: "e1wq7y4k0",
54
54
  label: "LabelText"
55
- })("&&&{color:", COLORS.ui.textDark, ";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvcmVzaXphYmxlLWJveC9yZXNpemUtdG9vbHRpcC9zdHlsZXMvcmVzaXplLXRvb2x0aXAuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZDdUMiLCJmaWxlIjoiQHdvcmRwcmVzcy9jb21wb25lbnRzL3NyYy9yZXNpemFibGUtYm94L3Jlc2l6ZS10b29sdGlwL3N0eWxlcy9yZXNpemUtdG9vbHRpcC5zdHlsZXMudHMiLCJzb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jogJHsgQ09MT1JTLnVpLnRleHREYXJrIH07XG5cdHBhZGRpbmc6IDRweCA4cHg7XG5cdHBvc2l0aW9uOiByZWxhdGl2ZTtcbmA7XG5cbi8vIFRPRE86IFJlc29sdmUgbmVlZCB0byB1c2UgJiYmIHRvIGluY3JlYXNlIHNwZWNpZmljaXR5XG4vLyBodHRwczovL2dpdGh1Yi5jb20vV29yZFByZXNzL2d1dGVuYmVyZy9pc3N1ZXMvMTg0ODNcblxuZXhwb3J0IGNvbnN0IExhYmVsVGV4dCA9IHN0eWxlZCggVGV4dCApYFxuXHQmJiYge1xuXHRcdGNvbG9yOiAkeyBDT0xPUlMudWkudGV4dERhcmsgfTtcblx0XHRkaXNwbGF5OiBibG9jaztcblx0XHRmb250LXNpemU6IDEzcHg7XG5cdFx0bGluZS1oZWlnaHQ6IDEuNDtcblx0XHR3aGl0ZS1zcGFjZTogbm93cmFwO1xuXHR9XG5gO1xuIl19 */"));
55
+ })("&&&{color:", COLORS.theme.foregroundInverted, ";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvcmVzaXphYmxlLWJveC9yZXNpemUtdG9vbHRpcC9zdHlsZXMvcmVzaXplLXRvb2x0aXAuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZDdUMiLCJmaWxlIjoiQHdvcmRwcmVzcy9jb21wb25lbnRzL3NyYy9yZXNpemFibGUtYm94L3Jlc2l6ZS10b29sdGlwL3N0eWxlcy9yZXNpemUtdG9vbHRpcC5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEV4dGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7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XG5cbi8vIFRPRE86IFJlc29sdmUgbmVlZCB0byB1c2UgJiYmIHRvIGluY3JlYXNlIHNwZWNpZmljaXR5XG4vLyBodHRwczovL2dpdGh1Yi5jb20vV29yZFByZXNzL2d1dGVuYmVyZy9pc3N1ZXMvMTg0ODNcblxuZXhwb3J0IGNvbnN0IExhYmVsVGV4dCA9IHN0eWxlZCggVGV4dCApYFxuXHQmJiYge1xuXHRcdGNvbG9yOiAkeyBDT0xPUlMudGhlbWUuZm9yZWdyb3VuZEludmVydGVkIH07XG5cdFx0ZGlzcGxheTogYmxvY2s7XG5cdFx0Zm9udC1zaXplOiAxM3B4O1xuXHRcdGxpbmUtaGVpZ2h0OiAxLjQ7XG5cdFx0d2hpdGUtc3BhY2U6IG5vd3JhcDtcblx0fVxuYDtcbiJdfQ== */"));
56
56
  //# sourceMappingURL=resize-tooltip.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Text","font","COLORS","Root","_styled","process","env","NODE_ENV","target","label","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","TooltipWrapper","Tooltip","gray","ui","textDark","LabelText"],"sources":["@wordpress/components/src/resizable-box/resize-tooltip/styles/resize-tooltip.styles.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport styled from '@emotion/styled';\n\n/**\n * Internal dependencies\n */\nimport { Text } from '../../../text';\nimport { font, COLORS } from '../../../utils';\n\nexport const Root = styled.div`\n\tbottom: 0;\n\tbox-sizing: border-box;\n\tleft: 0;\n\tpointer-events: none;\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n`;\n\nexport const TooltipWrapper = styled.div`\n\talign-items: center;\n\tbox-sizing: border-box;\n\tdisplay: inline-flex;\n\tjustify-content: center;\n\topacity: 0;\n\tpointer-events: none;\n\ttransition: opacity 120ms linear;\n`;\n\nexport const Tooltip = styled.div`\n\tbackground: ${ COLORS.gray[ 900 ] };\n\tborder-radius: 2px;\n\tbox-sizing: border-box;\n\tfont-family: ${ font( 'default.fontFamily' ) };\n\tfont-size: 12px;\n\tcolor: ${ COLORS.ui.textDark };\n\tpadding: 4px 8px;\n\tposition: relative;\n`;\n\n// TODO: Resolve need to use &&& to increase specificity\n// https://github.com/WordPress/gutenberg/issues/18483\n\nexport const LabelText = styled( Text )`\n\t&&& {\n\t\tcolor: ${ COLORS.ui.textDark };\n\t\tdisplay: block;\n\t\tfont-size: 13px;\n\t\tline-height: 1.4;\n\t\twhite-space: nowrap;\n\t}\n`;\n"],"mappings":";;AAAA;AACA;AACA;;AAGA;AACA;AACA;AACA,SAASA,IAAI,QAAQ,eAAe;AACpC,SAASC,IAAI,EAAEC,MAAM,QAAQ,gBAAgB;AAE7C,OAAO,MAAMC,IAAI,GAAAC,OAAA,QAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,GAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAC;AAAA,EAQhB;AAED,OAAO,MAAMC,cAAc,GAAAX,OAAA,QAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,GAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAC;AAAA,EAQ1B;AAED,OAAO,MAAME,OAAO,GAAAZ,OAAA,QAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,kBACJP,MAAM,CAACe,IAAI,CAAE,GAAG,CAAE,2DAGjBhB,IAAI,CAAE,oBAAqB,CAAC,4BAElCC,MAAM,CAACgB,EAAE,CAACC,QAAQ,2CAAAd,OAAA,CAAAC,GAAA,CAAAC,QAAA,w+DAG5B;;AAED;AACA;;AAEA,OAAO,MAAMa,SAAS,GAAG,aAAAhB,OAAA,CAAQJ,IAAI,EAAAK,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,CAAC,CAAC,eAE3BP,MAAM,CAACgB,EAAE,CAACC,QAAQ,0EAAAd,OAAA,CAAAC,GAAA,CAAAC,QAAA,w+DAM7B"}
1
+ {"version":3,"names":["Text","font","COLORS","Root","_styled","process","env","NODE_ENV","target","label","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","TooltipWrapper","Tooltip","theme","foreground","foregroundInverted","LabelText"],"sources":["@wordpress/components/src/resizable-box/resize-tooltip/styles/resize-tooltip.styles.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport styled from '@emotion/styled';\n\n/**\n * Internal dependencies\n */\nimport { Text } from '../../../text';\nimport { font, COLORS } from '../../../utils';\n\nexport const Root = styled.div`\n\tbottom: 0;\n\tbox-sizing: border-box;\n\tleft: 0;\n\tpointer-events: none;\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n`;\n\nexport const TooltipWrapper = styled.div`\n\talign-items: center;\n\tbox-sizing: border-box;\n\tdisplay: inline-flex;\n\tjustify-content: center;\n\topacity: 0;\n\tpointer-events: none;\n\ttransition: opacity 120ms linear;\n`;\n\nexport const Tooltip = styled.div`\n\tbackground: ${ COLORS.theme.foreground };\n\tborder-radius: 2px;\n\tbox-sizing: border-box;\n\tfont-family: ${ font( 'default.fontFamily' ) };\n\tfont-size: 12px;\n\tcolor: ${ COLORS.theme.foregroundInverted };\n\tpadding: 4px 8px;\n\tposition: relative;\n`;\n\n// TODO: Resolve need to use &&& to increase specificity\n// https://github.com/WordPress/gutenberg/issues/18483\n\nexport const LabelText = styled( Text )`\n\t&&& {\n\t\tcolor: ${ COLORS.theme.foregroundInverted };\n\t\tdisplay: block;\n\t\tfont-size: 13px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AAkB,0EAAAd,OAAA,CAAAC,GAAA,CAAAC,QAAA,ohEAM1C"}
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * External dependencies
4
4
  */
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * WordPress dependencies
4
4
  */
@@ -41,7 +41,7 @@ const observeAndResizeJS = function () {
41
41
  function removeViewportStyles(ruleOrNode) {
42
42
  if (ruleOrNode.style) {
43
43
  ['width', 'height', 'minHeight', 'maxHeight'].forEach(function (style) {
44
- if (/^\\d+(vmin|vmax|vh|vw)$/.test(ruleOrNode.style[style])) {
44
+ if (/^\\d+(vw|vh|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)$/.test(ruleOrNode.style[style])) {
45
45
  ruleOrNode.style[style] = '';
46
46
  }
47
47
  });
@@ -102,7 +102,8 @@ function SandBox({
102
102
  type,
103
103
  styles = [],
104
104
  scripts = [],
105
- onFocus
105
+ onFocus,
106
+ tabIndex
106
107
  }) {
107
108
  const ref = useRef();
108
109
  const [width, setWidth] = useState(0);
@@ -227,6 +228,7 @@ function SandBox({
227
228
  return createElement("iframe", {
228
229
  ref: useMergeRefs([ref, useFocusableIframe()]),
229
230
  title: title,
231
+ tabIndex: tabIndex,
230
232
  className: "components-sandbox",
231
233
  sandbox: "allow-scripts allow-same-origin allow-presentation",
232
234
  onFocus: onFocus,
@@ -1 +1 @@
1
- {"version":3,"names":["renderToString","useRef","useState","useEffect","useFocusableIframe","useMergeRefs","observeAndResizeJS","MutationObserver","window","document","body","parent","sendResize","clientBoundingRect","getBoundingClientRect","postMessage","action","width","height","observer","observe","attributes","attributeOldValue","characterData","characterDataOldValue","childList","subtree","addEventListener","removeViewportStyles","ruleOrNode","style","forEach","test","Array","prototype","call","querySelectorAll","styleSheets","stylesheet","cssRules","rules","position","setAttribute","SandBox","html","title","type","styles","scripts","onFocus","ref","setWidth","setHeight","isFrameAccessible","current","contentDocument","e","trySandBox","forceRerender","ownerDocument","getAttribute","htmlDoc","createElement","lang","documentElement","className","dangerouslySetInnerHTML","__html","map","i","key","toString","src","open","write","close","tryNoForceSandBox","checkMessageForResize","event","iframe","contentWindow","source","data","JSON","parse","defaultView","removeEventListener","sandbox","Math","ceil"],"sources":["@wordpress/components/src/sandbox/index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\trenderToString,\n\tuseRef,\n\tuseState,\n\tuseEffect,\n} from '@wordpress/element';\nimport { useFocusableIframe, useMergeRefs } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport type { SandBoxProps } from './types';\n\nconst observeAndResizeJS = function () {\n\tconst { MutationObserver } = window;\n\n\tif ( ! MutationObserver || ! document.body || ! window.parent ) {\n\t\treturn;\n\t}\n\n\tfunction sendResize() {\n\t\tconst clientBoundingRect = document.body.getBoundingClientRect();\n\n\t\twindow.parent.postMessage(\n\t\t\t{\n\t\t\t\taction: 'resize',\n\t\t\t\twidth: clientBoundingRect.width,\n\t\t\t\theight: clientBoundingRect.height,\n\t\t\t},\n\t\t\t'*'\n\t\t);\n\t}\n\n\tconst observer = new MutationObserver( sendResize );\n\tobserver.observe( document.body, {\n\t\tattributes: true,\n\t\tattributeOldValue: false,\n\t\tcharacterData: true,\n\t\tcharacterDataOldValue: false,\n\t\tchildList: true,\n\t\tsubtree: true,\n\t} );\n\n\twindow.addEventListener( 'load', sendResize, true );\n\n\t// Hack: Remove viewport unit styles, as these are relative\n\t// the iframe root and interfere with our mechanism for\n\t// determining the unconstrained page bounds.\n\tfunction removeViewportStyles( ruleOrNode: ElementCSSInlineStyle ) {\n\t\tif ( ruleOrNode.style ) {\n\t\t\t(\n\t\t\t\t[ 'width', 'height', 'minHeight', 'maxHeight' ] as const\n\t\t\t ).forEach( function ( style ) {\n\t\t\t\tif (\n\t\t\t\t\t/^\\\\d+(vmin|vmax|vh|vw)$/.test( ruleOrNode.style[ style ] )\n\t\t\t\t) {\n\t\t\t\t\truleOrNode.style[ style ] = '';\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\t}\n\n\tArray.prototype.forEach.call(\n\t\tdocument.querySelectorAll( '[style]' ),\n\t\tremoveViewportStyles\n\t);\n\tArray.prototype.forEach.call(\n\t\tdocument.styleSheets,\n\t\tfunction ( stylesheet ) {\n\t\t\tArray.prototype.forEach.call(\n\t\t\t\tstylesheet.cssRules || stylesheet.rules,\n\t\t\t\tremoveViewportStyles\n\t\t\t);\n\t\t}\n\t);\n\n\tdocument.body.style.position = 'absolute';\n\tdocument.body.style.width = '100%';\n\tdocument.body.setAttribute( 'data-resizable-iframe-connected', '' );\n\n\tsendResize();\n\n\t// Resize events can change the width of elements with 100% width, but we don't\n\t// get an DOM mutations for that, so do the resize when the window is resized, too.\n\twindow.addEventListener( 'resize', sendResize, true );\n};\n\n// TODO: These styles shouldn't be coupled with WordPress.\nconst style = `\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div {\n\t\twidth: 100%;\n\t}\n\thtml.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio > div,\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n`;\n\n/**\n * This component provides an isolated environment for arbitrary HTML via iframes.\n *\n * ```jsx\n * import { SandBox } from '@wordpress/components';\n *\n * const MySandBox = () => (\n * \t<SandBox html=\"<p>Content</p>\" title=\"SandBox\" type=\"embed\" />\n * );\n * ```\n */\nfunction SandBox( {\n\thtml = '',\n\ttitle = '',\n\ttype,\n\tstyles = [],\n\tscripts = [],\n\tonFocus,\n}: SandBoxProps ) {\n\tconst ref = useRef< HTMLIFrameElement >();\n\tconst [ width, setWidth ] = useState( 0 );\n\tconst [ height, setHeight ] = useState( 0 );\n\n\tfunction isFrameAccessible() {\n\t\ttry {\n\t\t\treturn !! ref.current?.contentDocument?.body;\n\t\t} catch ( e ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tfunction trySandBox( forceRerender = false ) {\n\t\tif ( ! isFrameAccessible() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst { contentDocument, ownerDocument } =\n\t\t\tref.current as HTMLIFrameElement & {\n\t\t\t\tcontentDocument: Document;\n\t\t\t};\n\n\t\tif (\n\t\t\t! forceRerender &&\n\t\t\tnull !==\n\t\t\t\tcontentDocument?.body.getAttribute(\n\t\t\t\t\t'data-resizable-iframe-connected'\n\t\t\t\t)\n\t\t) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Put the html snippet into a html document, and then write it to the iframe's document\n\t\t// we can use this in the future to inject custom styles or scripts.\n\t\t// Scripts go into the body rather than the head, to support embedded content such as Instagram\n\t\t// that expect the scripts to be part of the body.\n\t\tconst htmlDoc = (\n\t\t\t<html\n\t\t\t\tlang={ ownerDocument.documentElement.lang }\n\t\t\t\tclassName={ type }\n\t\t\t>\n\t\t\t\t<head>\n\t\t\t\t\t<title>{ title }</title>\n\t\t\t\t\t<style dangerouslySetInnerHTML={ { __html: style } } />\n\t\t\t\t\t{ styles.map( ( rules, i ) => (\n\t\t\t\t\t\t<style\n\t\t\t\t\t\t\tkey={ i }\n\t\t\t\t\t\t\tdangerouslySetInnerHTML={ { __html: rules } }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) ) }\n\t\t\t\t</head>\n\t\t\t\t<body\n\t\t\t\t\tdata-resizable-iframe-connected=\"data-resizable-iframe-connected\"\n\t\t\t\t\tclassName={ type }\n\t\t\t\t>\n\t\t\t\t\t<div dangerouslySetInnerHTML={ { __html: html } } />\n\t\t\t\t\t<script\n\t\t\t\t\t\ttype=\"text/javascript\"\n\t\t\t\t\t\tdangerouslySetInnerHTML={ {\n\t\t\t\t\t\t\t__html: `(${ observeAndResizeJS.toString() })();`,\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t\t{ scripts.map( ( src ) => (\n\t\t\t\t\t\t<script key={ src } src={ src } />\n\t\t\t\t\t) ) }\n\t\t\t\t</body>\n\t\t\t</html>\n\t\t);\n\n\t\t// Writing the document like this makes it act in the same way as if it was\n\t\t// loaded over the network, so DOM creation and mutation, script execution, etc.\n\t\t// all work as expected.\n\t\tcontentDocument.open();\n\t\tcontentDocument.write( '<!DOCTYPE html>' + renderToString( htmlDoc ) );\n\t\tcontentDocument.close();\n\t}\n\n\tuseEffect( () => {\n\t\ttrySandBox();\n\n\t\tfunction tryNoForceSandBox() {\n\t\t\ttrySandBox( false );\n\t\t}\n\n\t\tfunction checkMessageForResize( event: MessageEvent ) {\n\t\t\tconst iframe = ref.current;\n\n\t\t\t// Verify that the mounted element is the source of the message.\n\t\t\tif ( ! iframe || iframe.contentWindow !== event.source ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Attempt to parse the message data as JSON if passed as string.\n\t\t\tlet data = event.data || {};\n\n\t\t\tif ( 'string' === typeof data ) {\n\t\t\t\ttry {\n\t\t\t\t\tdata = JSON.parse( data );\n\t\t\t\t} catch ( e ) {}\n\t\t\t}\n\n\t\t\t// Update the state only if the message is formatted as we expect,\n\t\t\t// i.e. as an object with a 'resize' action.\n\t\t\tif ( 'resize' !== data.action ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tsetWidth( data.width );\n\t\t\tsetHeight( data.height );\n\t\t}\n\n\t\tconst iframe = ref.current;\n\t\tconst defaultView = iframe?.ownerDocument?.defaultView;\n\n\t\t// This used to be registered using <iframe onLoad={} />, but it made the iframe blank\n\t\t// after reordering the containing block. See these two issues for more details:\n\t\t// https://github.com/WordPress/gutenberg/issues/6146\n\t\t// https://github.com/facebook/react/issues/18752\n\t\tiframe?.addEventListener( 'load', tryNoForceSandBox, false );\n\t\tdefaultView?.addEventListener( 'message', checkMessageForResize );\n\n\t\treturn () => {\n\t\t\tiframe?.removeEventListener( 'load', tryNoForceSandBox, false );\n\t\t\tdefaultView?.removeEventListener(\n\t\t\t\t'message',\n\t\t\t\tcheckMessageForResize\n\t\t\t);\n\t\t};\n\t\t// Ignore reason: passing `exhaustive-deps` will likely involve a more detailed refactor.\n\t\t// See https://github.com/WordPress/gutenberg/pull/44378\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [] );\n\n\tuseEffect( () => {\n\t\ttrySandBox();\n\t\t// Ignore reason: passing `exhaustive-deps` will likely involve a more detailed refactor.\n\t\t// See https://github.com/WordPress/gutenberg/pull/44378\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [ title, styles, scripts ] );\n\n\tuseEffect( () => {\n\t\ttrySandBox( true );\n\t\t// Ignore reason: passing `exhaustive-deps` will likely involve a more detailed refactor.\n\t\t// See https://github.com/WordPress/gutenberg/pull/44378\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [ html, type ] );\n\n\treturn (\n\t\t<iframe\n\t\t\tref={ useMergeRefs( [ ref, useFocusableIframe() ] ) }\n\t\t\ttitle={ title }\n\t\t\tclassName=\"components-sandbox\"\n\t\t\tsandbox=\"allow-scripts allow-same-origin allow-presentation\"\n\t\t\tonFocus={ onFocus }\n\t\t\twidth={ Math.ceil( width ) }\n\t\t\theight={ Math.ceil( height ) }\n\t\t/>\n\t);\n}\n\nexport default SandBox;\n"],"mappings":";AAAA;AACA;AACA;AACA,SACCA,cAAc,EACdC,MAAM,EACNC,QAAQ,EACRC,SAAS,QACH,oBAAoB;AAC3B,SAASC,kBAAkB,EAAEC,YAAY,QAAQ,oBAAoB;;AAErE;AACA;AACA;;AAGA,MAAMC,kBAAkB,GAAG,SAAAA,CAAA,EAAY;EACtC,MAAM;IAAEC;EAAiB,CAAC,GAAGC,MAAM;E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AAO,MAAM;MACZE,MAAM,EAAEO,mBAAmB,CAAE,MAAM,EAAEV,iBAAiB,EAAE,KAAM,CAAC;MAC/DS,WAAW,EAAEC,mBAAmB,CAC/B,SAAS,EACTT,qBACD,CAAC;IACF,CAAC;IACD;IACA;IACA;EACD,CAAC,EAAE,EAAG,CAAC;EAEP1E,SAAS,CAAE,MAAM;IAChBsD,UAAU,CAAC,CAAC;IACZ;IACA;IACA;EACD,CAAC,EAAE,CAAEZ,KAAK,EAAEE,MAAM,EAAEC,OAAO,CAAG,CAAC;EAE/B7C,SAAS,CAAE,MAAM;IAChBsD,UAAU,CAAE,IAAK,CAAC;IAClB;IACA;IACA;EACD,CAAC,EAAE,CAAEb,IAAI,EAAEE,IAAI,CAAG,CAAC;EAEnB,OACCgB,aAAA;IACCZ,GAAG,EAAG7C,YAAY,CAAE,CAAE6C,GAAG,EAAE9C,kBAAkB,CAAC,CAAC,CAAG,CAAG;IACrDyC,KAAK,EAAGA,KAAO;IACfoB,SAAS,EAAC,oBAAoB;IAC9BsB,OAAO,EAAC,oDAAoD;IAC5DtC,OAAO,EAAGA,OAAS;IACnBhC,KAAK,EAAGuE,IAAI,CAACC,IAAI,CAAExE,KAAM,CAAG;IAC5BC,MAAM,EAAGsE,IAAI,CAACC,IAAI,CAAEvE,MAAO;EAAG,CAC9B,CAAC;AAEJ;AAEA,eAAeyB,OAAO"}
1
+ {"version":3,"names":["renderToString","useRef","useState","useEffect","useFocusableIframe","useMergeRefs","observeAndResizeJS","MutationObserver","window","document","body","parent","sendResize","clientBoundingRect","getBoundingClientRect","postMessage","action","width","height","observer","observe","attributes","attributeOldValue","characterData","characterDataOldValue","childList","subtree","addEventListener","removeViewportStyles","ruleOrNode","style","forEach","test","Array","prototype","call","querySelectorAll","styleSheets","stylesheet","cssRules","rules","position","setAttribute","SandBox","html","title","type","styles","scripts","onFocus","tabIndex","ref","setWidth","setHeight","isFrameAccessible","current","contentDocument","e","trySandBox","forceRerender","ownerDocument","getAttribute","htmlDoc","createElement","lang","documentElement","className","dangerouslySetInnerHTML","__html","map","i","key","toString","src","open","write","close","tryNoForceSandBox","checkMessageForResize","event","iframe","contentWindow","source","data","JSON","parse","defaultView","removeEventListener","sandbox","Math","ceil"],"sources":["@wordpress/components/src/sandbox/index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\trenderToString,\n\tuseRef,\n\tuseState,\n\tuseEffect,\n} from '@wordpress/element';\nimport { useFocusableIframe, useMergeRefs } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport type { SandBoxProps } from './types';\n\nconst observeAndResizeJS = function () {\n\tconst { MutationObserver } = window;\n\n\tif ( ! MutationObserver || ! document.body || ! window.parent ) {\n\t\treturn;\n\t}\n\n\tfunction sendResize() {\n\t\tconst clientBoundingRect = document.body.getBoundingClientRect();\n\n\t\twindow.parent.postMessage(\n\t\t\t{\n\t\t\t\taction: 'resize',\n\t\t\t\twidth: clientBoundingRect.width,\n\t\t\t\theight: clientBoundingRect.height,\n\t\t\t},\n\t\t\t'*'\n\t\t);\n\t}\n\n\tconst observer = new MutationObserver( sendResize );\n\tobserver.observe( document.body, {\n\t\tattributes: true,\n\t\tattributeOldValue: false,\n\t\tcharacterData: true,\n\t\tcharacterDataOldValue: false,\n\t\tchildList: true,\n\t\tsubtree: true,\n\t} );\n\n\twindow.addEventListener( 'load', sendResize, true );\n\n\t// Hack: Remove viewport unit styles, as these are relative\n\t// the iframe root and interfere with our mechanism for\n\t// determining the unconstrained page bounds.\n\tfunction removeViewportStyles( ruleOrNode: ElementCSSInlineStyle ) {\n\t\tif ( ruleOrNode.style ) {\n\t\t\t(\n\t\t\t\t[ 'width', 'height', 'minHeight', 'maxHeight' ] as const\n\t\t\t ).forEach( function ( style ) {\n\t\t\t\tif (\n\t\t\t\t\t/^\\\\d+(vw|vh|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)$/.test(\n\t\t\t\t\t\truleOrNode.style[ style ]\n\t\t\t\t\t)\n\t\t\t\t) {\n\t\t\t\t\truleOrNode.style[ style ] = '';\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\t}\n\n\tArray.prototype.forEach.call(\n\t\tdocument.querySelectorAll( '[style]' ),\n\t\tremoveViewportStyles\n\t);\n\tArray.prototype.forEach.call(\n\t\tdocument.styleSheets,\n\t\tfunction ( stylesheet ) {\n\t\t\tArray.prototype.forEach.call(\n\t\t\t\tstylesheet.cssRules || stylesheet.rules,\n\t\t\t\tremoveViewportStyles\n\t\t\t);\n\t\t}\n\t);\n\n\tdocument.body.style.position = 'absolute';\n\tdocument.body.style.width = '100%';\n\tdocument.body.setAttribute( 'data-resizable-iframe-connected', '' );\n\n\tsendResize();\n\n\t// Resize events can change the width of elements with 100% width, but we don't\n\t// get an DOM mutations for that, so do the resize when the window is resized, too.\n\twindow.addEventListener( 'resize', sendResize, true );\n};\n\n// TODO: These styles shouldn't be coupled with WordPress.\nconst style = `\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div {\n\t\twidth: 100%;\n\t}\n\thtml.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio > div,\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n`;\n\n/**\n * This component provides an isolated environment for arbitrary HTML via iframes.\n *\n * ```jsx\n * import { SandBox } from '@wordpress/components';\n *\n * const MySandBox = () => (\n * \t<SandBox html=\"<p>Content</p>\" title=\"SandBox\" type=\"embed\" />\n * );\n * ```\n */\nfunction SandBox( {\n\thtml = '',\n\ttitle = '',\n\ttype,\n\tstyles = [],\n\tscripts = [],\n\tonFocus,\n\ttabIndex,\n}: SandBoxProps ) {\n\tconst ref = useRef< HTMLIFrameElement >();\n\tconst [ width, setWidth ] = useState( 0 );\n\tconst [ height, setHeight ] = useState( 0 );\n\n\tfunction isFrameAccessible() {\n\t\ttry {\n\t\t\treturn !! ref.current?.contentDocument?.body;\n\t\t} catch ( e ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tfunction trySandBox( forceRerender = false ) {\n\t\tif ( ! isFrameAccessible() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst { contentDocument, ownerDocument } =\n\t\t\tref.current as HTMLIFrameElement & {\n\t\t\t\tcontentDocument: Document;\n\t\t\t};\n\n\t\tif (\n\t\t\t! forceRerender &&\n\t\t\tnull !==\n\t\t\t\tcontentDocument?.body.getAttribute(\n\t\t\t\t\t'data-resizable-iframe-connected'\n\t\t\t\t)\n\t\t) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Put the html snippet into a html document, and then write it to the iframe's document\n\t\t// we can use this in the future to inject custom styles or scripts.\n\t\t// Scripts go into the body rather than the head, to support embedded content such as Instagram\n\t\t// that expect the scripts to be part of the body.\n\t\tconst htmlDoc = (\n\t\t\t<html\n\t\t\t\tlang={ ownerDocument.documentElement.lang }\n\t\t\t\tclassName={ type }\n\t\t\t>\n\t\t\t\t<head>\n\t\t\t\t\t<title>{ title }</title>\n\t\t\t\t\t<style dangerouslySetInnerHTML={ { __html: style } } />\n\t\t\t\t\t{ styles.map( ( rules, i ) => (\n\t\t\t\t\t\t<style\n\t\t\t\t\t\t\tkey={ i }\n\t\t\t\t\t\t\tdangerouslySetInnerHTML={ { __html: rules } }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) ) }\n\t\t\t\t</head>\n\t\t\t\t<body\n\t\t\t\t\tdata-resizable-iframe-connected=\"data-resizable-iframe-connected\"\n\t\t\t\t\tclassName={ type }\n\t\t\t\t>\n\t\t\t\t\t<div dangerouslySetInnerHTML={ { __html: html } } />\n\t\t\t\t\t<script\n\t\t\t\t\t\ttype=\"text/javascript\"\n\t\t\t\t\t\tdangerouslySetInnerHTML={ {\n\t\t\t\t\t\t\t__html: `(${ observeAndResizeJS.toString() })();`,\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t\t{ scripts.map( ( src ) => (\n\t\t\t\t\t\t<script key={ src } src={ src } />\n\t\t\t\t\t) ) }\n\t\t\t\t</body>\n\t\t\t</html>\n\t\t);\n\n\t\t// Writing the document like this makes it act in the same way as if it was\n\t\t// loaded over the network, so DOM creation and mutation, script execution, etc.\n\t\t// all work as expected.\n\t\tcontentDocument.open();\n\t\tcontentDocument.write( '<!DOCTYPE html>' + renderToString( htmlDoc ) );\n\t\tcontentDocument.close();\n\t}\n\n\tuseEffect( () => {\n\t\ttrySandBox();\n\n\t\tfunction tryNoForceSandBox() {\n\t\t\ttrySandBox( false );\n\t\t}\n\n\t\tfunction checkMessageForResize( event: MessageEvent ) {\n\t\t\tconst iframe = ref.current;\n\n\t\t\t// Verify that the mounted element is the source of the message.\n\t\t\tif ( ! iframe || iframe.contentWindow !== event.source ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Attempt to parse the message data as JSON if passed as string.\n\t\t\tlet data = event.data || {};\n\n\t\t\tif ( 'string' === typeof data ) {\n\t\t\t\ttry {\n\t\t\t\t\tdata = JSON.parse( data );\n\t\t\t\t} catch ( e ) {}\n\t\t\t}\n\n\t\t\t// Update the state only if the message is formatted as we expect,\n\t\t\t// i.e. as an object with a 'resize' action.\n\t\t\tif ( 'resize' !== data.action ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tsetWidth( data.width );\n\t\t\tsetHeight( data.height );\n\t\t}\n\n\t\tconst iframe = ref.current;\n\t\tconst defaultView = iframe?.ownerDocument?.defaultView;\n\n\t\t// This used to be registered using <iframe onLoad={} />, but it made the iframe blank\n\t\t// after reordering the containing block. See these two issues for more details:\n\t\t// https://github.com/WordPress/gutenberg/issues/6146\n\t\t// https://github.com/facebook/react/issues/18752\n\t\tiframe?.addEventListener( 'load', tryNoForceSandBox, false );\n\t\tdefaultView?.addEventListener( 'message', checkMessageForResize );\n\n\t\treturn () => {\n\t\t\tiframe?.removeEventListener( 'load', tryNoForceSandBox, false );\n\t\t\tdefaultView?.removeEventListener(\n\t\t\t\t'message',\n\t\t\t\tcheckMessageForResize\n\t\t\t);\n\t\t};\n\t\t// Ignore reason: passing `exhaustive-deps` will likely involve a more detailed refactor.\n\t\t// See https://github.com/WordPress/gutenberg/pull/44378\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [] );\n\n\tuseEffect( () => {\n\t\ttrySandBox();\n\t\t// Ignore reason: passing `exhaustive-deps` will likely involve a more detailed refactor.\n\t\t// See https://github.com/WordPress/gutenberg/pull/44378\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [ title, styles, scripts ] );\n\n\tuseEffect( () => {\n\t\ttrySandBox( true );\n\t\t// Ignore reason: passing `exhaustive-deps` will likely involve a more detailed refactor.\n\t\t// See https://github.com/WordPress/gutenberg/pull/44378\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [ html, type ] );\n\n\treturn (\n\t\t<iframe\n\t\t\tref={ useMergeRefs( [ ref, useFocusableIframe() ] ) }\n\t\t\ttitle={ title }\n\t\t\ttabIndex={ tabIndex }\n\t\t\tclassName=\"components-sandbox\"\n\t\t\tsandbox=\"allow-scripts allow-same-origin allow-presentation\"\n\t\t\tonFocus={ onFocus }\n\t\t\twidth={ Math.ceil( width ) }\n\t\t\theight={ Math.ceil( height ) }\n\t\t/>\n\t);\n}\n\nexport default SandBox;\n"],"mappings":";AAAA;AACA;AACA;AACA,SACCA,cAAc,EACdC,MAAM,EACNC,QAAQ,EACRC,SAAS,QACH,oBAAoB;AAC3B,SAASC,kBAAkB,EAAEC,YAAY,QAAQ,oBAAoB;;AAErE;AACA;AACA;;AAGA,MAAMC,kBAAkB,GAAG,SAAAA,CAAA,EAAY;EACtC,MAAM;IAA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AE,SAAS,EAAEmD,qBAAsB,CAAC;IAEjE,OAAO,MAAM;MACZE,MAAM,EAAEO,mBAAmB,CAAE,MAAM,EAAEV,iBAAiB,EAAE,KAAM,CAAC;MAC/DS,WAAW,EAAEC,mBAAmB,CAC/B,SAAS,EACTT,qBACD,CAAC;IACF,CAAC;IACD;IACA;IACA;EACD,CAAC,EAAE,EAAG,CAAC;EAEP3E,SAAS,CAAE,MAAM;IAChBuD,UAAU,CAAC,CAAC;IACZ;IACA;IACA;EACD,CAAC,EAAE,CAAEb,KAAK,EAAEE,MAAM,EAAEC,OAAO,CAAG,CAAC;EAE/B7C,SAAS,CAAE,MAAM;IAChBuD,UAAU,CAAE,IAAK,CAAC;IAClB;IACA;IACA;EACD,CAAC,EAAE,CAAEd,IAAI,EAAEE,IAAI,CAAG,CAAC;EAEnB,OACCiB,aAAA;IACCZ,GAAG,EAAG9C,YAAY,CAAE,CAAE8C,GAAG,EAAE/C,kBAAkB,CAAC,CAAC,CAAG,CAAG;IACrDyC,KAAK,EAAGA,KAAO;IACfK,QAAQ,EAAGA,QAAU;IACrBgB,SAAS,EAAC,oBAAoB;IAC9BsB,OAAO,EAAC,oDAAoD;IAC5DvC,OAAO,EAAGA,OAAS;IACnBhC,KAAK,EAAGwE,IAAI,CAACC,IAAI,CAAEzE,KAAM,CAAG;IAC5BC,MAAM,EAAGuE,IAAI,CAACC,IAAI,CAAExE,MAAO;EAAG,CAC9B,CAAC;AAEJ;AAEA,eAAeyB,OAAO"}
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * External dependencies
4
4
  */
@@ -59,7 +59,7 @@ const observeAndResizeJS = `
59
59
  style
60
60
  ) {
61
61
  if (
62
- /^\\d+(vmin|vmax|vh|vw)$/.test( ruleOrNode.style[ style ] )
62
+ /^\\d+(vw|vh|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)$/.test( ruleOrNode.style[ style ] )
63
63
  ) {
64
64
  ruleOrNode.style[ style ] = '';
65
65
  }
@@ -1 +1 @@
1
- {"version":3,"names":["Dimensions","StyleSheet","WebView","Platform","renderToString","memo","useRef","useState","useEffect","forwardRef","useCallback","usePreferredColorScheme","sandboxStyles","observeAndResizeJS","style","EMPTY_ARRAY","Sandbox","containerStyle","customJS","html","lang","providerUrl","scripts","styles","title","type","url","onWindowEvents","viewportProps","onLoadEnd","testID","ref","colorScheme","height","setHeight","contentHtml","setContentHtml","getHtmlDoc","windowSize","get","isLandscape","setIsLandscape","width","wasLandscape","key","select","android","ios","addViewportProps","trim","replace","htmlDoc","createElement","name","content","dangerouslySetInnerHTML","__html","map","rules","i","className","src","getInjectedJavaScript","injectedJS","Object","keys","forEach","eventType","updateContentHtml","forceRerender","newContentHtml","setImmediate","getSizeStyle","contentHeight","Math","ceil","aspectRatio","onChangeDimensions","dimensions","window","onMessage","message","data","nativeEvent","JSON","parse","e","action","console","warn","dimensionsChangeSubscription","addEventListener","remove","current","injectedJavaScript","source","baseUrl","originWhitelist","isAndroid","workaroundStyles","webView","scrollEnabled","setBuiltInZoomControls","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","mediaPlaybackRequiresUserAction","create","opacity"],"sources":["@wordpress/components/src/sandbox/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { Dimensions, StyleSheet } from 'react-native';\nimport { WebView } from 'react-native-webview';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tPlatform,\n\trenderToString,\n\tmemo,\n\tuseRef,\n\tuseState,\n\tuseEffect,\n\tforwardRef,\n\tuseCallback,\n} from '@wordpress/element';\nimport { usePreferredColorScheme } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport sandboxStyles from './style.scss';\n\nconst observeAndResizeJS = `\n\t(function() {\n\t\tconst { MutationObserver } = window;\n\n\t\tif ( ! MutationObserver || ! document.body || ! window.parent ) {\n\t\t\treturn;\n\t\t}\n\n\t\tfunction sendResize() {\n\t\t\tconst clientBoundingRect = document.body.getBoundingClientRect();\n\n\t\t\t// The function postMessage is exposed by the react-native-webview library\n\t\t\t// to communicate between React Native and the WebView, in this case,\n\t\t\t// we use it for notifying resize changes.\n\t\t\twindow.ReactNativeWebView.postMessage(\n\t\t\t\tJSON.stringify( {\n\t\t\t\t\taction: 'resize',\n\t\t\t\t\twidth: clientBoundingRect.width,\n\t\t\t\t\theight: clientBoundingRect.height,\n\t\t\t\t} )\n\t\t\t);\n\t\t}\n\n\t\tconst observer = new MutationObserver( sendResize );\n\t\tobserver.observe( document.body, {\n\t\t\tattributes: true,\n\t\t\tattributeOldValue: false,\n\t\t\tcharacterData: true,\n\t\t\tcharacterDataOldValue: false,\n\t\t\tchildList: true,\n\t\t\tsubtree: true,\n\t\t} );\n\n\t\twindow.addEventListener( 'load', sendResize, true );\n\n\t\t// Hack: Remove viewport unit styles, as these are relative\n\t\t// the iframe root and interfere with our mechanism for\n\t\t// determining the unconstrained page bounds.\n\t\tfunction removeViewportStyles( ruleOrNode ) {\n\t\t\tif ( ruleOrNode.style ) {\n\t\t\t\t[ 'width', 'height', 'minHeight', 'maxHeight' ].forEach( function (\n\t\t\t\t\tstyle\n\t\t\t\t) {\n\t\t\t\t\tif (\n\t\t\t\t\t\t/^\\\\d+(vmin|vmax|vh|vw)$/.test( ruleOrNode.style[ style ] )\n\t\t\t\t\t) {\n\t\t\t\t\t\truleOrNode.style[ style ] = '';\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\n\t\tArray.prototype.forEach.call(\n\t\t\tdocument.querySelectorAll( '[style]' ),\n\t\t\tremoveViewportStyles\n\t\t);\n\t\tArray.prototype.forEach.call(\n\t\t\tdocument.styleSheets,\n\t\t\tfunction ( stylesheet ) {\n\t\t\t\tArray.prototype.forEach.call(\n\t\t\t\t\tstylesheet.cssRules || stylesheet.rules,\n\t\t\t\t\tremoveViewportStyles\n\t\t\t\t);\n\t\t\t}\n\t\t);\n\n\t\tdocument.body.style.position = 'absolute';\n\t\tdocument.body.style.width = '100%';\n\t\tdocument.body.setAttribute( 'data-resizable-iframe-connected', '' );\n\n\t\tsendResize();\n\n\t\t// Resize events can change the width of elements with 100% width, but we don't\n\t\t// get an DOM mutations for that, so do the resize when the window is resized, too.\n\t\twindow.addEventListener( 'resize', sendResize, true );\n\t\twindow.addEventListener( 'orientationchange', sendResize, true );\n\t})();\n`;\n\nconst style = `\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div,\n\tbody > div iframe {\n\t\twidth: 100%;\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n\n\t.wp-block-embed__wrapper {\n\t\tposition: relative;\n\t}\n\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\n\t/**\n\t * Add responsiveness to embeds with aspect ratios.\n\t *\n\t * These styles have been copied from the web version (https://github.com/WordPress/gutenberg/blob/7901895ca20cf61e402925e31571d659dab64721/packages/block-library/src/embed/style.scss#L42-L89) and\n\t * adapted for the native version.\n\t */\n\t.wp-has-aspect-ratio.wp-block-embed__wrapper::before {\n\t\tcontent: \"\";\n\t\tdisplay: block;\n\t\tpadding-top: 50%; // Default to 2:1 aspect ratio.\n\t}\n\t.wp-has-aspect-ratio iframe {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\t.wp-embed-aspect-21-9.wp-block-embed__wrapper::before {\n\t\tpadding-top: 42.85%; // 9 / 21 * 100\n\t}\n\t.wp-embed-aspect-18-9.wp-block-embed__wrapper::before {\n\t\tpadding-top: 50%; // 9 / 18 * 100\n\t}\n\t.wp-embed-aspect-16-9.wp-block-embed__wrapper::before {\n\t\tpadding-top: 56.25%; // 9 / 16 * 100\n\t}\n\t.wp-embed-aspect-4-3.wp-block-embed__wrapper::before {\n\t\tpadding-top: 75%; // 3 / 4 * 100\n\t}\n\t.wp-embed-aspect-1-1.wp-block-embed__wrapper::before {\n\t\tpadding-top: 100%; // 1 / 1 * 100\n\t}\n\t.wp-embed-aspect-9-16.wp-block-embed__wrapper::before {\n\t\tpadding-top: 177.77%; // 16 / 9 * 100\n\t}\n\t.wp-embed-aspect-1-2.wp-block-embed__wrapper::before {\n\t\tpadding-top: 200%; // 2 / 1 * 100\n\t}\n`;\n\nconst EMPTY_ARRAY = [];\n\nconst Sandbox = forwardRef( function Sandbox(\n\t{\n\t\tcontainerStyle,\n\t\tcustomJS,\n\t\thtml = '',\n\t\tlang = 'en',\n\t\tproviderUrl = '',\n\t\tscripts = EMPTY_ARRAY,\n\t\tstyles = EMPTY_ARRAY,\n\t\ttitle = '',\n\t\ttype,\n\t\turl,\n\t\tonWindowEvents = {},\n\t\tviewportProps = '',\n\t\tonLoadEnd = () => {},\n\t\ttestID,\n\t},\n\tref\n) {\n\tconst colorScheme = usePreferredColorScheme();\n\tconst [ height, setHeight ] = useState( 0 );\n\tconst [ contentHtml, setContentHtml ] = useState( getHtmlDoc() );\n\n\tconst windowSize = Dimensions.get( 'window' );\n\tconst [ isLandscape, setIsLandscape ] = useState(\n\t\twindowSize.width >= windowSize.height\n\t);\n\tconst wasLandscape = useRef( isLandscape );\n\t// On Android, we need to recreate the WebView on any of the following actions, otherwise it disappears:\n\t// - Device rotation\n\t// - Light/dark mode changes\n\t// For this purpose, the key prop used in the WebView will be updated with the value of the actions.\n\tconst key = Platform.select( {\n\t\tandroid: `${ url }-${\n\t\t\tisLandscape ? 'landscape' : 'portrait'\n\t\t}-${ colorScheme }`,\n\t\tios: url,\n\t} );\n\n\tfunction getHtmlDoc() {\n\t\t// Put the html snippet into a html document, and update the state to refresh the WebView,\n\t\t// we can use this in the future to inject custom styles or scripts.\n\t\t// Scripts go into the body rather than the head, to support embedded content such as Instagram\n\t\t// that expect the scripts to be part of the body.\n\n\t\t// Avoid comma issues with props.viewportProps.\n\t\tconst addViewportProps = viewportProps\n\t\t\t.trim()\n\t\t\t.replace( /(^[^,])/, ', $1' );\n\n\t\tconst htmlDoc = (\n\t\t\t<html lang={ lang }>\n\t\t\t\t<head>\n\t\t\t\t\t<title>{ title }</title>\n\t\t\t\t\t<meta\n\t\t\t\t\t\tname=\"viewport\"\n\t\t\t\t\t\tcontent={ `width=device-width, initial-scale=1${ addViewportProps }` }\n\t\t\t\t\t></meta>\n\t\t\t\t\t<style dangerouslySetInnerHTML={ { __html: style } } />\n\t\t\t\t\t{ styles.map( ( rules, i ) => (\n\t\t\t\t\t\t<style\n\t\t\t\t\t\t\tkey={ i }\n\t\t\t\t\t\t\tdangerouslySetInnerHTML={ { __html: rules } }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) ) }\n\t\t\t\t</head>\n\t\t\t\t<body\n\t\t\t\t\tdata-resizable-iframe-connected=\"data-resizable-iframe-connected\"\n\t\t\t\t\tclassName={ type }\n\t\t\t\t>\n\t\t\t\t\t<div dangerouslySetInnerHTML={ { __html: html } } />\n\t\t\t\t\t{ scripts.map( ( src ) => (\n\t\t\t\t\t\t<script key={ src } src={ src } />\n\t\t\t\t\t) ) }\n\t\t\t\t</body>\n\t\t\t</html>\n\t\t);\n\t\treturn '<!DOCTYPE html>' + renderToString( htmlDoc );\n\t}\n\n\tconst getInjectedJavaScript = useCallback( () => {\n\t\t// Allow parent to override the resize observers with prop.customJS (legacy support)\n\t\tlet injectedJS = customJS || observeAndResizeJS;\n\n\t\t// Add any event listeners that were passed in.\n\t\tObject.keys( onWindowEvents ).forEach( ( eventType ) => {\n\t\t\tinjectedJS += `\n\t\t\t\twindow.addEventListener( '${ eventType }', function( event ) {\n\t\t\t\t\twindow.ReactNativeWebView.postMessage( JSON.stringify( { type: '${ eventType }', ...event.data } ) );\n\t\t\t\t});`;\n\t\t} );\n\n\t\treturn injectedJS;\n\t}, [ customJS, onWindowEvents ] );\n\n\tfunction updateContentHtml( forceRerender = false ) {\n\t\tconst newContentHtml = getHtmlDoc();\n\n\t\tif ( forceRerender && contentHtml === newContentHtml ) {\n\t\t\t// The re-render is forced by updating the state with empty HTML,\n\t\t\t// waiting for the JS code to be executed with \"setImmediate\" and then\n\t\t\t// setting the content HTML again.\n\t\t\tsetContentHtml( '' );\n\t\t\tsetImmediate( () => setContentHtml( newContentHtml ) );\n\t\t} else {\n\t\t\tsetContentHtml( newContentHtml );\n\t\t}\n\t}\n\n\tfunction getSizeStyle() {\n\t\tconst contentHeight = Math.ceil( height );\n\n\t\treturn contentHeight ? { height: contentHeight } : { aspectRatio: 1 };\n\t}\n\n\tfunction onChangeDimensions( dimensions ) {\n\t\tsetIsLandscape( dimensions.window.width >= dimensions.window.height );\n\t}\n\n\tconst onMessage = useCallback(\n\t\t( message ) => {\n\t\t\tlet data = message?.nativeEvent?.data;\n\n\t\t\ttry {\n\t\t\t\tdata = JSON.parse( data );\n\t\t\t} catch ( e ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// check for resize event\n\t\t\tif ( 'resize' === data?.action ) {\n\t\t\t\tsetHeight( data.height );\n\t\t\t}\n\n\t\t\t// Forward the event to parent event listeners\n\t\t\tObject.keys( onWindowEvents ).forEach( ( eventType ) => {\n\t\t\t\tif ( data?.type === eventType ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tonWindowEvents[ eventType ]( data );\n\t\t\t\t\t} catch ( e ) {\n\t\t\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\t\t\tconsole.warn(\n\t\t\t\t\t\t\t`Error handling event ${ eventType }`,\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\t},\n\t\t[ onWindowEvents ]\n\t);\n\n\tuseEffect( () => {\n\t\tconst dimensionsChangeSubscription = Dimensions.addEventListener(\n\t\t\t'change',\n\t\t\tonChangeDimensions\n\t\t);\n\t\treturn () => {\n\t\t\tdimensionsChangeSubscription.remove();\n\t\t};\n\t}, [] );\n\n\tuseEffect( () => {\n\t\tupdateContentHtml();\n\t\t// Disable reason: deferring this refactor to the native team.\n\t\t// see https://github.com/WordPress/gutenberg/pull/41166\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [ html, title, type, styles, scripts ] );\n\n\tuseEffect( () => {\n\t\t// When device orientation changes we have to recalculate the size,\n\t\t// for this purpose we reset the current size value.\n\t\tif ( wasLandscape.current !== isLandscape ) {\n\t\t\tsetHeight( 0 );\n\t\t}\n\t\twasLandscape.current = isLandscape;\n\t}, [ isLandscape ] );\n\n\treturn (\n\t\t<WebView\n\t\t\tcontainerStyle={ [\n\t\t\t\tsandboxStyles[ 'sandbox-webview__container' ],\n\t\t\t\tcontainerStyle,\n\t\t\t] }\n\t\t\tinjectedJavaScript={ getInjectedJavaScript() }\n\t\t\tkey={ key }\n\t\t\tref={ ref }\n\t\t\tsource={ { baseUrl: providerUrl, html: contentHtml } }\n\t\t\t// Wildcard value is required for static HTML\n\t\t\t// Reference: https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md#source\n\t\t\toriginWhitelist={ [ '*' ] }\n\t\t\tstyle={ [\n\t\t\t\tsandboxStyles[ 'sandbox-webview__content' ],\n\t\t\t\tgetSizeStyle(),\n\t\t\t\tPlatform.isAndroid && workaroundStyles.webView,\n\t\t\t] }\n\t\t\tonMessage={ onMessage }\n\t\t\tscrollEnabled={ false }\n\t\t\tsetBuiltInZoomControls={ false }\n\t\t\tshowsHorizontalScrollIndicator={ false }\n\t\t\tshowsVerticalScrollIndicator={ false }\n\t\t\tmediaPlaybackRequiresUserAction={ false }\n\t\t\tonLoadEnd={ onLoadEnd }\n\t\t\ttestID={ testID }\n\t\t/>\n\t);\n} );\n\nconst workaroundStyles = StyleSheet.create( {\n\twebView: {\n\t\t/**\n\t\t * The slight opacity below is a workaround for an Android crash caused from combining Android\n\t\t * 12's new scroll overflow behavior and webviews.\n\t\t * https://github.com/react-native-webview/react-native-webview/issues/1915#issuecomment-808869253\n\t\t */\n\t\topacity: 0.99,\n\t},\n} );\n\nexport default memo( Sandbox );\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,UAAU,EAAEC,UAAU,QAAQ,cAAc;AACrD,SAASC,OAAO,QAAQ,sBAAsB;;AAE9C;AACA;AACA;AACA,SACCC,QAAQ,EACRC,cAAc,EACdC,IAAI,EACJC,MAAM,EACNC,QAAQ,EACRC,SAAS,EACTC,UAAU,EACVC,WAAW,QACL,oBAAoB;AAC3B,SAASC,uBAAuB,QAAQ,oBAAoB;;AAE5D;AACA;AACA;AACA,OAAOC,aAAa,MAAM,cAAc;AAExC,MAAMC,kBAAkB,GAAI;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,MAAMC,KAAK,GAAI;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,MAAM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;IACvBC,sBAAsB,EAAG,KAAO;IAChCC,8BAA8B,EAAG,KAAO;IACxCC,4BAA4B,EAAG,KAAO;IACtCC,+BAA+B,EAAG,KAAO;IACzC5E,SAAS,EAAGA,SAAW;IACvBC,MAAM,EAAGA;EAAQ,CACjB,CAAC;AAEJ,CAAE,CAAC;AAEH,MAAMqE,gBAAgB,GAAGlG,UAAU,CAACyG,MAAM,CAAE;EAC3CN,OAAO,EAAE;IACR;AACF;AACA;AACA;AACA;IACEO,OAAO,EAAE;EACV;AACD,CAAE,CAAC;AAEH,eAAetG,IAAI,CAAEW,OAAQ,CAAC"}
1
+ {"version":3,"names":["Dimensions","StyleSheet","WebView","Platform","renderToString","memo","useRef","useState","useEffect","forwardRef","useCallback","usePreferredColorScheme","sandboxStyles","observeAndResizeJS","style","EMPTY_ARRAY","Sandbox","containerStyle","customJS","html","lang","providerUrl","scripts","styles","title","type","url","onWindowEvents","viewportProps","onLoadEnd","testID","ref","colorScheme","height","setHeight","contentHtml","setContentHtml","getHtmlDoc","windowSize","get","isLandscape","setIsLandscape","width","wasLandscape","key","select","android","ios","addViewportProps","trim","replace","htmlDoc","createElement","name","content","dangerouslySetInnerHTML","__html","map","rules","i","className","src","getInjectedJavaScript","injectedJS","Object","keys","forEach","eventType","updateContentHtml","forceRerender","newContentHtml","setImmediate","getSizeStyle","contentHeight","Math","ceil","aspectRatio","onChangeDimensions","dimensions","window","onMessage","message","data","nativeEvent","JSON","parse","e","action","console","warn","dimensionsChangeSubscription","addEventListener","remove","current","injectedJavaScript","source","baseUrl","originWhitelist","isAndroid","workaroundStyles","webView","scrollEnabled","setBuiltInZoomControls","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","mediaPlaybackRequiresUserAction","create","opacity"],"sources":["@wordpress/components/src/sandbox/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { Dimensions, StyleSheet } from 'react-native';\nimport { WebView } from 'react-native-webview';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tPlatform,\n\trenderToString,\n\tmemo,\n\tuseRef,\n\tuseState,\n\tuseEffect,\n\tforwardRef,\n\tuseCallback,\n} from '@wordpress/element';\nimport { usePreferredColorScheme } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport sandboxStyles from './style.scss';\n\nconst observeAndResizeJS = `\n\t(function() {\n\t\tconst { MutationObserver } = window;\n\n\t\tif ( ! MutationObserver || ! document.body || ! window.parent ) {\n\t\t\treturn;\n\t\t}\n\n\t\tfunction sendResize() {\n\t\t\tconst clientBoundingRect = document.body.getBoundingClientRect();\n\n\t\t\t// The function postMessage is exposed by the react-native-webview library\n\t\t\t// to communicate between React Native and the WebView, in this case,\n\t\t\t// we use it for notifying resize changes.\n\t\t\twindow.ReactNativeWebView.postMessage(\n\t\t\t\tJSON.stringify( {\n\t\t\t\t\taction: 'resize',\n\t\t\t\t\twidth: clientBoundingRect.width,\n\t\t\t\t\theight: clientBoundingRect.height,\n\t\t\t\t} )\n\t\t\t);\n\t\t}\n\n\t\tconst observer = new MutationObserver( sendResize );\n\t\tobserver.observe( document.body, {\n\t\t\tattributes: true,\n\t\t\tattributeOldValue: false,\n\t\t\tcharacterData: true,\n\t\t\tcharacterDataOldValue: false,\n\t\t\tchildList: true,\n\t\t\tsubtree: true,\n\t\t} );\n\n\t\twindow.addEventListener( 'load', sendResize, true );\n\n\t\t// Hack: Remove viewport unit styles, as these are relative\n\t\t// the iframe root and interfere with our mechanism for\n\t\t// determining the unconstrained page bounds.\n\t\tfunction removeViewportStyles( ruleOrNode ) {\n\t\t\tif ( ruleOrNode.style ) {\n\t\t\t\t[ 'width', 'height', 'minHeight', 'maxHeight' ].forEach( function (\n\t\t\t\t\tstyle\n\t\t\t\t) {\n\t\t\t\t\tif (\n\t\t\t\t\t\t/^\\\\d+(vw|vh|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)$/.test( ruleOrNode.style[ style ] )\n\t\t\t\t\t) {\n\t\t\t\t\t\truleOrNode.style[ style ] = '';\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\n\t\tArray.prototype.forEach.call(\n\t\t\tdocument.querySelectorAll( '[style]' ),\n\t\t\tremoveViewportStyles\n\t\t);\n\t\tArray.prototype.forEach.call(\n\t\t\tdocument.styleSheets,\n\t\t\tfunction ( stylesheet ) {\n\t\t\t\tArray.prototype.forEach.call(\n\t\t\t\t\tstylesheet.cssRules || stylesheet.rules,\n\t\t\t\t\tremoveViewportStyles\n\t\t\t\t);\n\t\t\t}\n\t\t);\n\n\t\tdocument.body.style.position = 'absolute';\n\t\tdocument.body.style.width = '100%';\n\t\tdocument.body.setAttribute( 'data-resizable-iframe-connected', '' );\n\n\t\tsendResize();\n\n\t\t// Resize events can change the width of elements with 100% width, but we don't\n\t\t// get an DOM mutations for that, so do the resize when the window is resized, too.\n\t\twindow.addEventListener( 'resize', sendResize, true );\n\t\twindow.addEventListener( 'orientationchange', sendResize, true );\n\t})();\n`;\n\nconst style = `\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div,\n\tbody > div iframe {\n\t\twidth: 100%;\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n\n\t.wp-block-embed__wrapper {\n\t\tposition: relative;\n\t}\n\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\n\t/**\n\t * Add responsiveness to embeds with aspect ratios.\n\t *\n\t * These styles have been copied from the web version (https://github.com/WordPress/gutenberg/blob/7901895ca20cf61e402925e31571d659dab64721/packages/block-library/src/embed/style.scss#L42-L89) and\n\t * adapted for the native version.\n\t */\n\t.wp-has-aspect-ratio.wp-block-embed__wrapper::before {\n\t\tcontent: \"\";\n\t\tdisplay: block;\n\t\tpadding-top: 50%; // Default to 2:1 aspect ratio.\n\t}\n\t.wp-has-aspect-ratio iframe {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\t.wp-embed-aspect-21-9.wp-block-embed__wrapper::before {\n\t\tpadding-top: 42.85%; // 9 / 21 * 100\n\t}\n\t.wp-embed-aspect-18-9.wp-block-embed__wrapper::before {\n\t\tpadding-top: 50%; // 9 / 18 * 100\n\t}\n\t.wp-embed-aspect-16-9.wp-block-embed__wrapper::before {\n\t\tpadding-top: 56.25%; // 9 / 16 * 100\n\t}\n\t.wp-embed-aspect-4-3.wp-block-embed__wrapper::before {\n\t\tpadding-top: 75%; // 3 / 4 * 100\n\t}\n\t.wp-embed-aspect-1-1.wp-block-embed__wrapper::before {\n\t\tpadding-top: 100%; // 1 / 1 * 100\n\t}\n\t.wp-embed-aspect-9-16.wp-block-embed__wrapper::before {\n\t\tpadding-top: 177.77%; // 16 / 9 * 100\n\t}\n\t.wp-embed-aspect-1-2.wp-block-embed__wrapper::before {\n\t\tpadding-top: 200%; // 2 / 1 * 100\n\t}\n`;\n\nconst EMPTY_ARRAY = [];\n\nconst Sandbox = forwardRef( function Sandbox(\n\t{\n\t\tcontainerStyle,\n\t\tcustomJS,\n\t\thtml = '',\n\t\tlang = 'en',\n\t\tproviderUrl = '',\n\t\tscripts = EMPTY_ARRAY,\n\t\tstyles = EMPTY_ARRAY,\n\t\ttitle = '',\n\t\ttype,\n\t\turl,\n\t\tonWindowEvents = {},\n\t\tviewportProps = '',\n\t\tonLoadEnd = () => {},\n\t\ttestID,\n\t},\n\tref\n) {\n\tconst colorScheme = usePreferredColorScheme();\n\tconst [ height, setHeight ] = useState( 0 );\n\tconst [ contentHtml, setContentHtml ] = useState( getHtmlDoc() );\n\n\tconst windowSize = Dimensions.get( 'window' );\n\tconst [ isLandscape, setIsLandscape ] = useState(\n\t\twindowSize.width >= windowSize.height\n\t);\n\tconst wasLandscape = useRef( isLandscape );\n\t// On Android, we need to recreate the WebView on any of the following actions, otherwise it disappears:\n\t// - Device rotation\n\t// - Light/dark mode changes\n\t// For this purpose, the key prop used in the WebView will be updated with the value of the actions.\n\tconst key = Platform.select( {\n\t\tandroid: `${ url }-${\n\t\t\tisLandscape ? 'landscape' : 'portrait'\n\t\t}-${ colorScheme }`,\n\t\tios: url,\n\t} );\n\n\tfunction getHtmlDoc() {\n\t\t// Put the html snippet into a html document, and update the state to refresh the WebView,\n\t\t// we can use this in the future to inject custom styles or scripts.\n\t\t// Scripts go into the body rather than the head, to support embedded content such as Instagram\n\t\t// that expect the scripts to be part of the body.\n\n\t\t// Avoid comma issues with props.viewportProps.\n\t\tconst addViewportProps = viewportProps\n\t\t\t.trim()\n\t\t\t.replace( /(^[^,])/, ', $1' );\n\n\t\tconst htmlDoc = (\n\t\t\t<html lang={ lang }>\n\t\t\t\t<head>\n\t\t\t\t\t<title>{ title }</title>\n\t\t\t\t\t<meta\n\t\t\t\t\t\tname=\"viewport\"\n\t\t\t\t\t\tcontent={ `width=device-width, initial-scale=1${ addViewportProps }` }\n\t\t\t\t\t></meta>\n\t\t\t\t\t<style dangerouslySetInnerHTML={ { __html: style } } />\n\t\t\t\t\t{ styles.map( ( rules, i ) => (\n\t\t\t\t\t\t<style\n\t\t\t\t\t\t\tkey={ i }\n\t\t\t\t\t\t\tdangerouslySetInnerHTML={ { __html: rules } }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) ) }\n\t\t\t\t</head>\n\t\t\t\t<body\n\t\t\t\t\tdata-resizable-iframe-connected=\"data-resizable-iframe-connected\"\n\t\t\t\t\tclassName={ type }\n\t\t\t\t>\n\t\t\t\t\t<div dangerouslySetInnerHTML={ { __html: html } } />\n\t\t\t\t\t{ scripts.map( ( src ) => (\n\t\t\t\t\t\t<script key={ src } src={ src } />\n\t\t\t\t\t) ) }\n\t\t\t\t</body>\n\t\t\t</html>\n\t\t);\n\t\treturn '<!DOCTYPE html>' + renderToString( htmlDoc );\n\t}\n\n\tconst getInjectedJavaScript = useCallback( () => {\n\t\t// Allow parent to override the resize observers with prop.customJS (legacy support)\n\t\tlet injectedJS = customJS || observeAndResizeJS;\n\n\t\t// Add any event listeners that were passed in.\n\t\tObject.keys( onWindowEvents ).forEach( ( eventType ) => {\n\t\t\tinjectedJS += `\n\t\t\t\twindow.addEventListener( '${ eventType }', function( event ) {\n\t\t\t\t\twindow.ReactNativeWebView.postMessage( JSON.stringify( { type: '${ eventType }', ...event.data } ) );\n\t\t\t\t});`;\n\t\t} );\n\n\t\treturn injectedJS;\n\t}, [ customJS, onWindowEvents ] );\n\n\tfunction updateContentHtml( forceRerender = false ) {\n\t\tconst newContentHtml = getHtmlDoc();\n\n\t\tif ( forceRerender && contentHtml === newContentHtml ) {\n\t\t\t// The re-render is forced by updating the state with empty HTML,\n\t\t\t// waiting for the JS code to be executed with \"setImmediate\" and then\n\t\t\t// setting the content HTML again.\n\t\t\tsetContentHtml( '' );\n\t\t\tsetImmediate( () => setContentHtml( newContentHtml ) );\n\t\t} else {\n\t\t\tsetContentHtml( newContentHtml );\n\t\t}\n\t}\n\n\tfunction getSizeStyle() {\n\t\tconst contentHeight = Math.ceil( height );\n\n\t\treturn contentHeight ? { height: contentHeight } : { aspectRatio: 1 };\n\t}\n\n\tfunction onChangeDimensions( dimensions ) {\n\t\tsetIsLandscape( dimensions.window.width >= dimensions.window.height );\n\t}\n\n\tconst onMessage = useCallback(\n\t\t( message ) => {\n\t\t\tlet data = message?.nativeEvent?.data;\n\n\t\t\ttry {\n\t\t\t\tdata = JSON.parse( data );\n\t\t\t} catch ( e ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// check for resize event\n\t\t\tif ( 'resize' === data?.action ) {\n\t\t\t\tsetHeight( data.height );\n\t\t\t}\n\n\t\t\t// Forward the event to parent event listeners\n\t\t\tObject.keys( onWindowEvents ).forEach( ( eventType ) => {\n\t\t\t\tif ( data?.type === eventType ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tonWindowEvents[ eventType ]( data );\n\t\t\t\t\t} catch ( e ) {\n\t\t\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\t\t\tconsole.warn(\n\t\t\t\t\t\t\t`Error handling event ${ eventType }`,\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\t},\n\t\t[ onWindowEvents ]\n\t);\n\n\tuseEffect( () => {\n\t\tconst dimensionsChangeSubscription = Dimensions.addEventListener(\n\t\t\t'change',\n\t\t\tonChangeDimensions\n\t\t);\n\t\treturn () => {\n\t\t\tdimensionsChangeSubscription.remove();\n\t\t};\n\t}, [] );\n\n\tuseEffect( () => {\n\t\tupdateContentHtml();\n\t\t// Disable reason: deferring this refactor to the native team.\n\t\t// see https://github.com/WordPress/gutenberg/pull/41166\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [ html, title, type, styles, scripts ] );\n\n\tuseEffect( () => {\n\t\t// When device orientation changes we have to recalculate the size,\n\t\t// for this purpose we reset the current size value.\n\t\tif ( wasLandscape.current !== isLandscape ) {\n\t\t\tsetHeight( 0 );\n\t\t}\n\t\twasLandscape.current = isLandscape;\n\t}, [ isLandscape ] );\n\n\treturn (\n\t\t<WebView\n\t\t\tcontainerStyle={ [\n\t\t\t\tsandboxStyles[ 'sandbox-webview__container' ],\n\t\t\t\tcontainerStyle,\n\t\t\t] }\n\t\t\tinjectedJavaScript={ getInjectedJavaScript() }\n\t\t\tkey={ key }\n\t\t\tref={ ref }\n\t\t\tsource={ { baseUrl: providerUrl, html: contentHtml } }\n\t\t\t// Wildcard value is required for static HTML\n\t\t\t// Reference: https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md#source\n\t\t\toriginWhitelist={ [ '*' ] }\n\t\t\tstyle={ [\n\t\t\t\tsandboxStyles[ 'sandbox-webview__content' ],\n\t\t\t\tgetSizeStyle(),\n\t\t\t\tPlatform.isAndroid && workaroundStyles.webView,\n\t\t\t] }\n\t\t\tonMessage={ onMessage }\n\t\t\tscrollEnabled={ false }\n\t\t\tsetBuiltInZoomControls={ false }\n\t\t\tshowsHorizontalScrollIndicator={ false }\n\t\t\tshowsVerticalScrollIndicator={ false }\n\t\t\tmediaPlaybackRequiresUserAction={ false }\n\t\t\tonLoadEnd={ onLoadEnd }\n\t\t\ttestID={ testID }\n\t\t/>\n\t);\n} );\n\nconst workaroundStyles = StyleSheet.create( {\n\twebView: {\n\t\t/**\n\t\t * The slight opacity below is a workaround for an Android crash caused from combining Android\n\t\t * 12's new scroll overflow behavior and webviews.\n\t\t * https://github.com/react-native-webview/react-native-webview/issues/1915#issuecomment-808869253\n\t\t */\n\t\topacity: 0.99,\n\t},\n} );\n\nexport default memo( Sandbox );\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,UAAU,EAAEC,UAAU,QAAQ,cAAc;AACrD,SAASC,OAAO,QAAQ,sBAAsB;;AAE9C;AACA;AACA;AACA,SACCC,QAAQ,EACRC,cAAc,EACdC,IAAI,EACJC,MAAM,EACNC,QAAQ,EACRC,SAAS,EACTC,UAAU,EACVC,WAAW,QACL,oBAAoB;AAC3B,SAASC,uBAAuB,QAAQ,oBAAoB;;AAE5D;AACA;AACA;AACA,OAAOC,aAAa,MAAM,cAAc;AAExC,MAAMC,kBAAkB,GAAI;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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GA,GAAK;IACXb,GAAG,EAAGA,GAAK;IACXgE,MAAM,EAAG;MAAEC,OAAO,EAAE3E,WAAW;MAAEF,IAAI,EAAEgB;IAAY;IACnD;IACA;IAAA;IACA8D,eAAe,EAAG,CAAE,GAAG,CAAI;IAC3BnF,KAAK,EAAG,CACPF,aAAa,CAAE,0BAA0B,CAAE,EAC3C4D,YAAY,CAAC,CAAC,EACdrE,QAAQ,CAAC+F,SAAS,IAAIC,gBAAgB,CAACC,OAAO,CAC5C;IACHpB,SAAS,EAAGA,SAAW;IACvBqB,aAAa,EAAG,KAAO;IACvBC,sBAAsB,EAAG,KAAO;IAChCC,8BAA8B,EAAG,KAAO;IACxCC,4BAA4B,EAAG,KAAO;IACtCC,+BAA+B,EAAG,KAAO;IACzC5E,SAAS,EAAGA,SAAW;IACvBC,MAAM,EAAGA;EAAQ,CACjB,CAAC;AAEJ,CAAE,CAAC;AAEH,MAAMqE,gBAAgB,GAAGlG,UAAU,CAACyG,MAAM,CAAE;EAC3CN,OAAO,EAAE;IACR;AACF;AACA;AACA;AACA;IACEO,OAAO,EAAE;EACV;AACD,CAAE,CAAC;AAEH,eAAetG,IAAI,CAAEW,OAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["@wordpress/components/src/sandbox/types.ts"],"sourcesContent":["export type SandBoxProps = {\n\t/**\n\t * The HTML to render in the body of the iframe document.\n\t *\n\t * @default ''\n\t */\n\thtml?: string;\n\t/**\n\t * The `<title>` of the iframe document.\n\t *\n\t * @default ''\n\t */\n\ttitle?: string;\n\t/**\n\t * The CSS class name to apply to the `<html>` and `<body>` elements of the iframe.\n\t */\n\ttype?: string;\n\t/**\n\t * An array of CSS strings to inject into the `<head>` of the iframe document.\n\t *\n\t * @default []\n\t */\n\tstyles?: string[];\n\t/**\n\t * An array of script URLs to inject as `<script>` tags into the bottom of the `<body>` of the iframe document.\n\t *\n\t * @default []\n\t */\n\tscripts?: string[];\n\t/**\n\t * The `onFocus` callback for the iframe.\n\t */\n\tonFocus?: React.DOMAttributes< HTMLIFrameElement >[ 'onFocus' ];\n};\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["@wordpress/components/src/sandbox/types.ts"],"sourcesContent":["export type SandBoxProps = {\n\t/**\n\t * The HTML to render in the body of the iframe document.\n\t *\n\t * @default ''\n\t */\n\thtml?: string;\n\t/**\n\t * The `<title>` of the iframe document.\n\t *\n\t * @default ''\n\t */\n\ttitle?: string;\n\t/**\n\t * The CSS class name to apply to the `<html>` and `<body>` elements of the iframe.\n\t */\n\ttype?: string;\n\t/**\n\t * An array of CSS strings to inject into the `<head>` of the iframe document.\n\t *\n\t * @default []\n\t */\n\tstyles?: string[];\n\t/**\n\t * An array of script URLs to inject as `<script>` tags into the bottom of the `<body>` of the iframe document.\n\t *\n\t * @default []\n\t */\n\tscripts?: string[];\n\t/**\n\t * The `onFocus` callback for the iframe.\n\t */\n\tonFocus?: React.DOMAttributes< HTMLIFrameElement >[ 'onFocus' ];\n\t/**\n\t * The `tabindex` the iframe should receive.\n\t *\n\t * @default 0\n\t */\n\ttabIndex?: HTMLElement[ 'tabIndex' ];\n};\n"],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { createElement } from "@wordpress/element";
1
+ import { createElement } from "react";
2
2
  /**
3
3
  * External dependencies
4
4
  */
@@ -7,7 +7,7 @@ import { createElement } from "@wordpress/element";
7
7
  * Internal dependencies
8
8
  */
9
9
 
10
- import { contextConnect } from '../ui/context';
10
+ import { contextConnect } from '../context';
11
11
  import { View } from '../view';
12
12
  import { useScrollable } from './hook';
13
13
  function UnconnectedScrollable(props, forwardedRef) {
@@ -1 +1 @@
1
- {"version":3,"names":["contextConnect","View","useScrollable","UnconnectedScrollable","props","forwardedRef","scrollableProps","createElement","ref","Scrollable"],"sources":["@wordpress/components/src/scrollable/component.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../ui/context';\nimport { contextConnect } from '../ui/context';\nimport { View } from '../view';\nimport { useScrollable } from './hook';\nimport type { ScrollableProps } from './types';\n\nfunction UnconnectedScrollable(\n\tprops: WordPressComponentProps< ScrollableProps, 'div' >,\n\tforwardedRef: ForwardedRef< any >\n) {\n\tconst scrollableProps = useScrollable( props );\n\n\treturn <View { ...scrollableProps } ref={ forwardedRef } />;\n}\n\n/**\n * `Scrollable` is a layout component that content in a scrollable container.\n *\n * ```jsx\n * import { __experimentalScrollable as Scrollable } from `@wordpress/components`;\n *\n * function Example() {\n * \treturn (\n * \t\t<Scrollable style={ { maxHeight: 200 } }>\n * \t\t\t<div style={ { height: 500 } }>...</div>\n * \t\t</Scrollable>\n * \t);\n * }\n * ```\n */\nexport const Scrollable = contextConnect( UnconnectedScrollable, 'Scrollable' );\n\nexport default Scrollable;\n"],"mappings":";AAAA;AACA;AACA;;AAGA;AACA;AACA;;AAEA,SAASA,cAAc,QAAQ,eAAe;AAC9C,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,aAAa,QAAQ,QAAQ;AAGtC,SAASC,qBAAqBA,CAC7BC,KAAwD,EACxDC,YAAiC,EAChC;EACD,MAAMC,eAAe,GAAGJ,aAAa,CAAEE,KAAM,CAAC;EAE9C,OAAOG,aAAA,CAACN,IAAI;IAAA,GAAMK,eAAe;IAAGE,GAAG,EAAGH;EAAc,CAAE,CAAC;AAC5D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMI,UAAU,GAAGT,cAAc,CAAEG,qBAAqB,EAAE,YAAa,CAAC;AAE/E,eAAeM,UAAU"}
1
+ {"version":3,"names":["contextConnect","View","useScrollable","UnconnectedScrollable","props","forwardedRef","scrollableProps","createElement","ref","Scrollable"],"sources":["@wordpress/components/src/scrollable/component.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../context';\nimport { contextConnect } from '../context';\nimport { View } from '../view';\nimport { useScrollable } from './hook';\nimport type { ScrollableProps } from './types';\n\nfunction UnconnectedScrollable(\n\tprops: WordPressComponentProps< ScrollableProps, 'div' >,\n\tforwardedRef: ForwardedRef< any >\n) {\n\tconst scrollableProps = useScrollable( props );\n\n\treturn <View { ...scrollableProps } ref={ forwardedRef } />;\n}\n\n/**\n * `Scrollable` is a layout component that content in a scrollable container.\n *\n * ```jsx\n * import { __experimentalScrollable as Scrollable } from `@wordpress/components`;\n *\n * function Example() {\n * \treturn (\n * \t\t<Scrollable style={ { maxHeight: 200 } }>\n * \t\t\t<div style={ { height: 500 } }>...</div>\n * \t\t</Scrollable>\n * \t);\n * }\n * ```\n */\nexport const Scrollable = contextConnect( UnconnectedScrollable, 'Scrollable' );\n\nexport default Scrollable;\n"],"mappings":";AAAA;AACA;AACA;;AAGA;AACA;AACA;;AAEA,SAASA,cAAc,QAAQ,YAAY;AAC3C,SAASC,IAAI,QAAQ,SAAS;AAC9B,SAASC,aAAa,QAAQ,QAAQ;AAGtC,SAASC,qBAAqBA,CAC7BC,KAAwD,EACxDC,YAAiC,EAChC;EACD,MAAMC,eAAe,GAAGJ,aAAa,CAAEE,KAAM,CAAC;EAE9C,OAAOG,aAAA,CAACN,IAAI;IAAA,GAAMK,eAAe;IAAGE,GAAG,EAAGH;EAAc,CAAE,CAAC;AAC5D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMI,UAAU,GAAGT,cAAc,CAAEG,qBAAqB,EAAE,YAAa,CAAC;AAE/E,eAAeM,UAAU"}
@@ -7,7 +7,7 @@ import { useMemo } from '@wordpress/element';
7
7
  * Internal dependencies
8
8
  */
9
9
 
10
- import { useContextSystem } from '../ui/context';
10
+ import { useContextSystem } from '../context';
11
11
  import * as styles from './styles';
12
12
  import { useCx } from '../utils/hooks/use-cx';
13
13
  export function useScrollable(props) {
@@ -1 +1 @@
1
- {"version":3,"names":["useMemo","useContextSystem","styles","useCx","useScrollable","props","className","scrollDirection","smoothScroll","otherProps","cx","classes","Scrollable","scrollableScrollbar","scrollX","scrollY","scrollAuto"],"sources":["@wordpress/components/src/scrollable/hook.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useMemo } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../ui/context';\nimport { useContextSystem } from '../ui/context';\nimport * as styles from './styles';\nimport { useCx } from '../utils/hooks/use-cx';\nimport type { ScrollableProps } from './types';\n\nexport function useScrollable(\n\tprops: WordPressComponentProps< ScrollableProps, 'div' >\n) {\n\tconst {\n\t\tclassName,\n\t\tscrollDirection = 'y',\n\t\tsmoothScroll = false,\n\t\t...otherProps\n\t} = useContextSystem( props, 'Scrollable' );\n\n\tconst cx = useCx();\n\n\tconst classes = useMemo(\n\t\t() =>\n\t\t\tcx(\n\t\t\t\tstyles.Scrollable,\n\t\t\t\tstyles.scrollableScrollbar,\n\t\t\t\tsmoothScroll && styles.smoothScroll,\n\t\t\t\tscrollDirection === 'x' && styles.scrollX,\n\t\t\t\tscrollDirection === 'y' && styles.scrollY,\n\t\t\t\tscrollDirection === 'auto' && styles.scrollAuto,\n\t\t\t\tclassName\n\t\t\t),\n\t\t[ className, cx, scrollDirection, smoothScroll ]\n\t);\n\n\treturn { ...otherProps, className: classes };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,OAAO,QAAQ,oBAAoB;;AAE5C;AACA;AACA;;AAEA,SAASC,gBAAgB,QAAQ,eAAe;AAChD,OAAO,KAAKC,MAAM,MAAM,UAAU;AAClC,SAASC,KAAK,QAAQ,uBAAuB;AAG7C,OAAO,SAASC,aAAaA,CAC5BC,KAAwD,EACvD;EACD,MAAM;IACLC,SAAS;IACTC,eAAe,GAAG,GAAG;IACrBC,YAAY,GAAG,KAAK;IACpB,GAAGC;EACJ,CAAC,GAAGR,gBAAgB,CAAEI,KAAK,EAAE,YAAa,CAAC;EAE3C,MAAMK,EAAE,GAAGP,KAAK,CAAC,CAAC;EAElB,MAAMQ,OAAO,GAAGX,OAAO,CACtB,MACCU,EAAE,CACDR,MAAM,CAACU,UAAU,EACjBV,MAAM,CAACW,mBAAmB,EAC1BL,YAAY,IAAIN,MAAM,CAACM,YAAY,EACnCD,eAAe,KAAK,GAAG,IAAIL,MAAM,CAACY,OAAO,EACzCP,eAAe,KAAK,GAAG,IAAIL,MAAM,CAACa,OAAO,EACzCR,eAAe,KAAK,MAAM,IAAIL,MAAM,CAACc,UAAU,EAC/CV,SACD,CAAC,EACF,CAAEA,SAAS,EAAEI,EAAE,EAAEH,eAAe,EAAEC,YAAY,CAC/C,CAAC;EAED,OAAO;IAAE,GAAGC,UAAU;IAAEH,SAAS,EAAEK;EAAQ,CAAC;AAC7C"}
1
+ {"version":3,"names":["useMemo","useContextSystem","styles","useCx","useScrollable","props","className","scrollDirection","smoothScroll","otherProps","cx","classes","Scrollable","scrollableScrollbar","scrollX","scrollY","scrollAuto"],"sources":["@wordpress/components/src/scrollable/hook.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useMemo } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../context';\nimport { useContextSystem } from '../context';\nimport * as styles from './styles';\nimport { useCx } from '../utils/hooks/use-cx';\nimport type { ScrollableProps } from './types';\n\nexport function useScrollable(\n\tprops: WordPressComponentProps< ScrollableProps, 'div' >\n) {\n\tconst {\n\t\tclassName,\n\t\tscrollDirection = 'y',\n\t\tsmoothScroll = false,\n\t\t...otherProps\n\t} = useContextSystem( props, 'Scrollable' );\n\n\tconst cx = useCx();\n\n\tconst classes = useMemo(\n\t\t() =>\n\t\t\tcx(\n\t\t\t\tstyles.Scrollable,\n\t\t\t\tstyles.scrollableScrollbar,\n\t\t\t\tsmoothScroll && styles.smoothScroll,\n\t\t\t\tscrollDirection === 'x' && styles.scrollX,\n\t\t\t\tscrollDirection === 'y' && styles.scrollY,\n\t\t\t\tscrollDirection === 'auto' && styles.scrollAuto,\n\t\t\t\tclassName\n\t\t\t),\n\t\t[ className, cx, scrollDirection, smoothScroll ]\n\t);\n\n\treturn { ...otherProps, className: classes };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,OAAO,QAAQ,oBAAoB;;AAE5C;AACA;AACA;;AAEA,SAASC,gBAAgB,QAAQ,YAAY;AAC7C,OAAO,KAAKC,MAAM,MAAM,UAAU;AAClC,SAASC,KAAK,QAAQ,uBAAuB;AAG7C,OAAO,SAASC,aAAaA,CAC5BC,KAAwD,EACvD;EACD,MAAM;IACLC,SAAS;IACTC,eAAe,GAAG,GAAG;IACrBC,YAAY,GAAG,KAAK;IACpB,GAAGC;EACJ,CAAC,GAAGR,gBAAgB,CAAEI,KAAK,EAAE,YAAa,CAAC;EAE3C,MAAMK,EAAE,GAAGP,KAAK,CAAC,CAAC;EAElB,MAAMQ,OAAO,GAAGX,OAAO,CACtB,MACCU,EAAE,CACDR,MAAM,CAACU,UAAU,EACjBV,MAAM,CAACW,mBAAmB,EAC1BL,YAAY,IAAIN,MAAM,CAACM,YAAY,EACnCD,eAAe,KAAK,GAAG,IAAIL,MAAM,CAACY,OAAO,EACzCP,eAAe,KAAK,GAAG,IAAIL,MAAM,CAACa,OAAO,EACzCR,eAAe,KAAK,MAAM,IAAIL,MAAM,CAACc,UAAU,EAC/CV,SACD,CAAC,EACF,CAAEA,SAAS,EAAEI,EAAE,EAAEH,eAAe,EAAEC,YAAY,CAC/C,CAAC;EAED,OAAO;IAAE,GAAGC,UAAU;IAAEH,SAAS,EAAEK;EAAQ,CAAC;AAC7C"}