@wordpress/components 27.3.0 → 27.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1972) hide show
  1. package/CHANGELOG.md +39 -4
  2. package/build/alignment-matrix-control/cell.js.map +1 -1
  3. package/build/alignment-matrix-control/icon.js.map +1 -1
  4. package/build/alignment-matrix-control/index.js.map +1 -1
  5. package/build/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js +8 -4
  6. package/build/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js.map +1 -1
  7. package/build/alignment-matrix-control/styles/alignment-matrix-control-styles.js +9 -5
  8. package/build/alignment-matrix-control/styles/alignment-matrix-control-styles.js.map +1 -1
  9. package/build/alignment-matrix-control/types.js.map +1 -1
  10. package/build/alignment-matrix-control/utils.js +4 -0
  11. package/build/alignment-matrix-control/utils.js.map +1 -1
  12. package/build/angle-picker-control/angle-circle.js.map +1 -1
  13. package/build/angle-picker-control/index.js.map +1 -1
  14. package/build/angle-picker-control/styles/angle-picker-control-styles.js +9 -5
  15. package/build/angle-picker-control/styles/angle-picker-control-styles.js.map +1 -1
  16. package/build/angle-picker-control/types.js.map +1 -1
  17. package/build/animate/index.js +4 -0
  18. package/build/animate/index.js.map +1 -1
  19. package/build/animate/types.js.map +1 -1
  20. package/build/animation/index.js.map +1 -1
  21. package/build/autocomplete/autocompleter-ui.js.map +1 -1
  22. package/build/autocomplete/autocompleter-ui.native.js.map +1 -1
  23. package/build/autocomplete/background-view.android.js.map +1 -1
  24. package/build/autocomplete/background-view.ios.js.map +1 -1
  25. package/build/autocomplete/get-default-use-items.js.map +1 -1
  26. package/build/autocomplete/index.js.map +1 -1
  27. package/build/autocomplete/types.js.map +1 -1
  28. package/build/base-control/hooks.js.map +1 -1
  29. package/build/base-control/index.js.map +1 -1
  30. package/build/base-control/index.native.js.map +1 -1
  31. package/build/base-control/styles/base-control-styles.js +10 -6
  32. package/build/base-control/styles/base-control-styles.js.map +1 -1
  33. package/build/base-control/types.js.map +1 -1
  34. package/build/border-box-control/border-box-control/component.js.map +1 -1
  35. package/build/border-box-control/border-box-control/hook.js +1 -1
  36. package/build/border-box-control/border-box-control/hook.js.map +1 -1
  37. package/build/border-box-control/border-box-control/index.js.map +1 -1
  38. package/build/border-box-control/border-box-control-linked-button/component.js.map +1 -1
  39. package/build/border-box-control/border-box-control-linked-button/hook.js +1 -1
  40. package/build/border-box-control/border-box-control-linked-button/hook.js.map +1 -1
  41. package/build/border-box-control/border-box-control-linked-button/index.js.map +1 -1
  42. package/build/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  43. package/build/border-box-control/border-box-control-split-controls/hook.js +1 -1
  44. package/build/border-box-control/border-box-control-split-controls/hook.js.map +1 -1
  45. package/build/border-box-control/border-box-control-split-controls/index.js.map +1 -1
  46. package/build/border-box-control/border-box-control-visualizer/component.js.map +1 -1
  47. package/build/border-box-control/border-box-control-visualizer/hook.js +1 -1
  48. package/build/border-box-control/border-box-control-visualizer/hook.js.map +1 -1
  49. package/build/border-box-control/border-box-control-visualizer/index.js.map +1 -1
  50. package/build/border-box-control/index.js.map +1 -1
  51. package/build/border-box-control/styles.js +5 -1
  52. package/build/border-box-control/styles.js.map +1 -1
  53. package/build/border-box-control/types.js.map +1 -1
  54. package/build/border-box-control/utils.js.map +1 -1
  55. package/build/border-control/border-control/component.js.map +1 -1
  56. package/build/border-control/border-control/hook.js +1 -1
  57. package/build/border-control/border-control/hook.js.map +1 -1
  58. package/build/border-control/border-control/index.js.map +1 -1
  59. package/build/border-control/border-control-dropdown/component.js.map +1 -1
  60. package/build/border-control/border-control-dropdown/hook.js +1 -1
  61. package/build/border-control/border-control-dropdown/hook.js.map +1 -1
  62. package/build/border-control/border-control-dropdown/index.js.map +1 -1
  63. package/build/border-control/border-control-style-picker/component.js.map +1 -1
  64. package/build/border-control/border-control-style-picker/index.js.map +1 -1
  65. package/build/border-control/index.js.map +1 -1
  66. package/build/border-control/styles.js +5 -1
  67. package/build/border-control/styles.js.map +1 -1
  68. package/build/border-control/types.js.map +1 -1
  69. package/build/box-control/all-input-control.js +4 -0
  70. package/build/box-control/all-input-control.js.map +1 -1
  71. package/build/box-control/axial-input-controls.js.map +1 -1
  72. package/build/box-control/icon.js.map +1 -1
  73. package/build/box-control/index.js.map +1 -1
  74. package/build/box-control/input-controls.js.map +1 -1
  75. package/build/box-control/linked-button.js.map +1 -1
  76. package/build/box-control/styles/box-control-icon-styles.js +12 -10
  77. package/build/box-control/styles/box-control-icon-styles.js.map +1 -1
  78. package/build/box-control/styles/box-control-styles.js +11 -7
  79. package/build/box-control/styles/box-control-styles.js.map +1 -1
  80. package/build/box-control/types.js.map +1 -1
  81. package/build/box-control/utils.js.map +1 -1
  82. package/build/button/deprecated.js.map +1 -1
  83. package/build/button/index.js.map +1 -1
  84. package/build/button/index.native.js.map +1 -1
  85. package/build/button/types.js.map +1 -1
  86. package/build/button-group/index.js +4 -0
  87. package/build/button-group/index.js.map +1 -1
  88. package/build/button-group/types.js.map +1 -1
  89. package/build/card/card/component.js +5 -1
  90. package/build/card/card/component.js.map +1 -1
  91. package/build/card/card/hook.js +5 -1
  92. package/build/card/card/hook.js.map +1 -1
  93. package/build/card/card/index.js.map +1 -1
  94. package/build/card/card-body/component.js.map +1 -1
  95. package/build/card/card-body/hook.js +5 -1
  96. package/build/card/card-body/hook.js.map +1 -1
  97. package/build/card/card-body/index.js.map +1 -1
  98. package/build/card/card-divider/component.js.map +1 -1
  99. package/build/card/card-divider/hook.js +5 -1
  100. package/build/card/card-divider/hook.js.map +1 -1
  101. package/build/card/card-divider/index.js.map +1 -1
  102. package/build/card/card-footer/component.js.map +1 -1
  103. package/build/card/card-footer/hook.js +5 -1
  104. package/build/card/card-footer/hook.js.map +1 -1
  105. package/build/card/card-footer/index.js.map +1 -1
  106. package/build/card/card-header/component.js.map +1 -1
  107. package/build/card/card-header/hook.js +5 -1
  108. package/build/card/card-header/hook.js.map +1 -1
  109. package/build/card/card-header/index.js.map +1 -1
  110. package/build/card/card-media/component.js.map +1 -1
  111. package/build/card/card-media/hook.js +5 -1
  112. package/build/card/card-media/hook.js.map +1 -1
  113. package/build/card/card-media/index.js.map +1 -1
  114. package/build/card/context.js.map +1 -1
  115. package/build/card/index.js +1 -1
  116. package/build/card/index.js.map +1 -1
  117. package/build/card/styles.js +5 -1
  118. package/build/card/styles.js.map +1 -1
  119. package/build/card/types.js.map +1 -1
  120. package/build/checkbox-control/index.js.map +1 -1
  121. package/build/checkbox-control/types.js.map +1 -1
  122. package/build/circular-option-picker/circular-option-picker-actions.js.map +1 -1
  123. package/build/circular-option-picker/circular-option-picker-context.js +4 -0
  124. package/build/circular-option-picker/circular-option-picker-context.js.map +1 -1
  125. package/build/circular-option-picker/circular-option-picker-option-group.js +4 -0
  126. package/build/circular-option-picker/circular-option-picker-option-group.js.map +1 -1
  127. package/build/circular-option-picker/circular-option-picker-option.js.map +1 -1
  128. package/build/circular-option-picker/circular-option-picker.js.map +1 -1
  129. package/build/circular-option-picker/index.js.map +1 -1
  130. package/build/circular-option-picker/types.js.map +1 -1
  131. package/build/clipboard-button/index.js.map +1 -1
  132. package/build/clipboard-button/types.js.map +1 -1
  133. package/build/color-control/index.native.js.map +1 -1
  134. package/build/color-indicator/index.js +4 -0
  135. package/build/color-indicator/index.js.map +1 -1
  136. package/build/color-indicator/index.native.js.map +1 -1
  137. package/build/color-indicator/types.js.map +1 -1
  138. package/build/color-palette/index.js.map +1 -1
  139. package/build/color-palette/index.native.js +4 -3
  140. package/build/color-palette/index.native.js.map +1 -1
  141. package/build/color-palette/styles.js +6 -2
  142. package/build/color-palette/styles.js.map +1 -1
  143. package/build/color-palette/types.js.map +1 -1
  144. package/build/color-palette/utils.js +4 -0
  145. package/build/color-palette/utils.js.map +1 -1
  146. package/build/color-picker/color-copy-button.js.map +1 -1
  147. package/build/color-picker/color-input.js.map +1 -1
  148. package/build/color-picker/component.js.map +1 -1
  149. package/build/color-picker/hex-input.js.map +1 -1
  150. package/build/color-picker/hsl-input.js.map +1 -1
  151. package/build/color-picker/hsv-color-picker.native.js.map +1 -1
  152. package/build/color-picker/hue-picker.native.js +1 -1
  153. package/build/color-picker/hue-picker.native.js.map +1 -1
  154. package/build/color-picker/index.js.map +1 -1
  155. package/build/color-picker/index.native.js.map +1 -1
  156. package/build/color-picker/input-with-slider.js.map +1 -1
  157. package/build/color-picker/legacy-adapter.js.map +1 -1
  158. package/build/color-picker/picker.js +4 -0
  159. package/build/color-picker/picker.js.map +1 -1
  160. package/build/color-picker/rgb-input.js.map +1 -1
  161. package/build/color-picker/saturation-picker.native.js +1 -1
  162. package/build/color-picker/saturation-picker.native.js.map +1 -1
  163. package/build/color-picker/styles.js +8 -8
  164. package/build/color-picker/styles.js.map +1 -1
  165. package/build/color-picker/types.js.map +1 -1
  166. package/build/color-picker/use-deprecated-props.js +4 -0
  167. package/build/color-picker/use-deprecated-props.js.map +1 -1
  168. package/build/combobox-control/index.js.map +1 -1
  169. package/build/combobox-control/styles.js +1 -1
  170. package/build/combobox-control/styles.js.map +1 -1
  171. package/build/combobox-control/types.js.map +1 -1
  172. package/build/composite/current/index.js.map +1 -1
  173. package/build/composite/index.js.map +1 -1
  174. package/build/composite/legacy/index.js +6 -1
  175. package/build/composite/legacy/index.js.map +1 -1
  176. package/build/composite/v2.js.map +1 -1
  177. package/build/confirm-dialog/component.js +1 -1
  178. package/build/confirm-dialog/component.js.map +1 -1
  179. package/build/confirm-dialog/index.js.map +1 -1
  180. package/build/confirm-dialog/styles.js +3 -1
  181. package/build/confirm-dialog/styles.js.map +1 -1
  182. package/build/confirm-dialog/types.js.map +1 -1
  183. package/build/context/constants.js.map +1 -1
  184. package/build/context/context-connect.js.map +1 -1
  185. package/build/context/context-system-provider.js.map +1 -1
  186. package/build/context/get-styled-class-name-from-key.js.map +1 -1
  187. package/build/context/index.js.map +1 -1
  188. package/build/context/use-context-system.js.map +1 -1
  189. package/build/context/utils.js.map +1 -1
  190. package/build/context/wordpress-component.js.map +1 -1
  191. package/build/custom-gradient-picker/constants.js.map +1 -1
  192. package/build/custom-gradient-picker/gradient-bar/constants.js.map +1 -1
  193. package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  194. package/build/custom-gradient-picker/gradient-bar/index.js.map +1 -1
  195. package/build/custom-gradient-picker/gradient-bar/utils.js.map +1 -1
  196. package/build/custom-gradient-picker/index.js.map +1 -1
  197. package/build/custom-gradient-picker/index.native.js.map +1 -1
  198. package/build/custom-gradient-picker/serializer.js.map +1 -1
  199. package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.js +7 -3
  200. package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.js.map +1 -1
  201. package/build/custom-gradient-picker/types.js.map +1 -1
  202. package/build/custom-gradient-picker/utils.js.map +1 -1
  203. package/build/custom-select-control/index.js +6 -14
  204. package/build/custom-select-control/index.js.map +1 -1
  205. package/build/custom-select-control-v2/custom-select.js +1 -1
  206. package/build/custom-select-control-v2/custom-select.js.map +1 -1
  207. package/build/custom-select-control-v2/default-component/index.js +1 -1
  208. package/build/custom-select-control-v2/default-component/index.js.map +1 -1
  209. package/build/custom-select-control-v2/index.js.map +1 -1
  210. package/build/custom-select-control-v2/item.js +5 -1
  211. package/build/custom-select-control-v2/item.js.map +1 -1
  212. package/build/custom-select-control-v2/legacy-component/index.js +1 -1
  213. package/build/custom-select-control-v2/legacy-component/index.js.map +1 -1
  214. package/build/custom-select-control-v2/styles.js +15 -10
  215. package/build/custom-select-control-v2/styles.js.map +1 -1
  216. package/build/custom-select-control-v2/types.js.map +1 -1
  217. package/build/dashicon/index.js.map +1 -1
  218. package/build/dashicon/index.native.js +1 -1
  219. package/build/dashicon/index.native.js.map +1 -1
  220. package/build/dashicon/types.js.map +1 -1
  221. package/build/date-time/constants.js.map +1 -1
  222. package/build/date-time/date/index.js +4 -0
  223. package/build/date-time/date/index.js.map +1 -1
  224. package/build/date-time/date/styles.js +11 -7
  225. package/build/date-time/date/styles.js.map +1 -1
  226. package/build/date-time/date-time/index.js.map +1 -1
  227. package/build/date-time/date-time/styles.js +6 -2
  228. package/build/date-time/date-time/styles.js.map +1 -1
  229. package/build/date-time/index.js.map +1 -1
  230. package/build/date-time/time/index.js.map +1 -1
  231. package/build/date-time/time/styles.js +15 -11
  232. package/build/date-time/time/styles.js.map +1 -1
  233. package/build/date-time/time/timezone.js.map +1 -1
  234. package/build/date-time/types.js.map +1 -1
  235. package/build/date-time/utils.js.map +1 -1
  236. package/build/dimension-control/index.js +1 -1
  237. package/build/dimension-control/index.js.map +1 -1
  238. package/build/dimension-control/sizes.js +4 -0
  239. package/build/dimension-control/sizes.js.map +1 -1
  240. package/build/dimension-control/types.js.map +1 -1
  241. package/build/disabled/index.js.map +1 -1
  242. package/build/disabled/index.native.js.map +1 -1
  243. package/build/disabled/styles/disabled-styles.js +3 -1
  244. package/build/disabled/styles/disabled-styles.js.map +1 -1
  245. package/build/disabled/types.js.map +1 -1
  246. package/build/disclosure/index.js +5 -1
  247. package/build/disclosure/index.js.map +1 -1
  248. package/build/disclosure/types.js.map +1 -1
  249. package/build/divider/component.js +5 -1
  250. package/build/divider/component.js.map +1 -1
  251. package/build/divider/index.js.map +1 -1
  252. package/build/divider/styles.js +6 -2
  253. package/build/divider/styles.js.map +1 -1
  254. package/build/divider/types.js.map +1 -1
  255. package/build/draggable/index.js +4 -0
  256. package/build/draggable/index.js.map +1 -1
  257. package/build/draggable/index.native.js +1 -1
  258. package/build/draggable/index.native.js.map +1 -1
  259. package/build/draggable/types.js.map +1 -1
  260. package/build/drop-zone/index.js.map +1 -1
  261. package/build/drop-zone/provider.js.map +1 -1
  262. package/build/drop-zone/types.js.map +1 -1
  263. package/build/dropdown/dropdown-content-wrapper.js.map +1 -1
  264. package/build/dropdown/index.js.map +1 -1
  265. package/build/dropdown/index.native.js.map +1 -1
  266. package/build/dropdown/styles.js +1 -1
  267. package/build/dropdown/styles.js.map +1 -1
  268. package/build/dropdown/types.js.map +1 -1
  269. package/build/dropdown-menu/index.js.map +1 -1
  270. package/build/dropdown-menu/index.native.js.map +1 -1
  271. package/build/dropdown-menu/types.js.map +1 -1
  272. package/build/dropdown-menu-v2/index.js +1 -1
  273. package/build/dropdown-menu-v2/index.js.map +1 -1
  274. package/build/dropdown-menu-v2/styles.js +20 -15
  275. package/build/dropdown-menu-v2/styles.js.map +1 -1
  276. package/build/dropdown-menu-v2/types.js.map +1 -1
  277. package/build/duotone-picker/color-list-picker/index.js.map +1 -1
  278. package/build/duotone-picker/color-list-picker/types.js.map +1 -1
  279. package/build/duotone-picker/custom-duotone-bar.js.map +1 -1
  280. package/build/duotone-picker/duotone-picker.js.map +1 -1
  281. package/build/duotone-picker/duotone-swatch.js.map +1 -1
  282. package/build/duotone-picker/index.js.map +1 -1
  283. package/build/duotone-picker/types.js.map +1 -1
  284. package/build/duotone-picker/utils.js +4 -0
  285. package/build/duotone-picker/utils.js.map +1 -1
  286. package/build/elevation/component.js.map +1 -1
  287. package/build/elevation/hook.js +5 -1
  288. package/build/elevation/hook.js.map +1 -1
  289. package/build/elevation/index.js.map +1 -1
  290. package/build/elevation/styles.js +3 -1
  291. package/build/elevation/styles.js.map +1 -1
  292. package/build/elevation/types.js.map +1 -1
  293. package/build/external-link/index.js +7 -10
  294. package/build/external-link/index.js.map +1 -1
  295. package/build/external-link/index.native.js.map +1 -1
  296. package/build/external-link/types.js.map +1 -1
  297. package/build/flex/context.js.map +1 -1
  298. package/build/flex/flex/component.js.map +1 -1
  299. package/build/flex/flex/hook.js +5 -1
  300. package/build/flex/flex/hook.js.map +1 -1
  301. package/build/flex/flex/index.js.map +1 -1
  302. package/build/flex/flex-block/component.js.map +1 -1
  303. package/build/flex/flex-block/hook.js.map +1 -1
  304. package/build/flex/flex-block/index.js.map +1 -1
  305. package/build/flex/flex-item/component.js.map +1 -1
  306. package/build/flex/flex-item/hook.js +5 -1
  307. package/build/flex/flex-item/hook.js.map +1 -1
  308. package/build/flex/flex-item/index.js.map +1 -1
  309. package/build/flex/index.js +1 -1
  310. package/build/flex/index.js.map +1 -1
  311. package/build/flex/styles.js +3 -1
  312. package/build/flex/styles.js.map +1 -1
  313. package/build/flex/types.js.map +1 -1
  314. package/build/focal-point-picker/controls.js.map +1 -1
  315. package/build/focal-point-picker/focal-point.js.map +1 -1
  316. package/build/focal-point-picker/focal-point.native.js.map +1 -1
  317. package/build/focal-point-picker/grid.js.map +1 -1
  318. package/build/focal-point-picker/index.js.map +1 -1
  319. package/build/focal-point-picker/index.native.js.map +1 -1
  320. package/build/focal-point-picker/media.js.map +1 -1
  321. package/build/focal-point-picker/styles/focal-point-picker-style.js +14 -10
  322. package/build/focal-point-picker/styles/focal-point-picker-style.js.map +1 -1
  323. package/build/focal-point-picker/styles/focal-point-style.js +1 -1
  324. package/build/focal-point-picker/styles/focal-point-style.js.map +1 -1
  325. package/build/focal-point-picker/tooltip/index.native.js.map +1 -1
  326. package/build/focal-point-picker/types.js.map +1 -1
  327. package/build/focal-point-picker/utils.js.map +1 -1
  328. package/build/focusable-iframe/index.js +4 -0
  329. package/build/focusable-iframe/index.js.map +1 -1
  330. package/build/focusable-iframe/types.js.map +1 -1
  331. package/build/font-size-picker/constants.js.map +1 -1
  332. package/build/font-size-picker/font-size-picker-select.js.map +1 -1
  333. package/build/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  334. package/build/font-size-picker/index.js +1 -1
  335. package/build/font-size-picker/index.js.map +1 -1
  336. package/build/font-size-picker/index.native.js +1 -1
  337. package/build/font-size-picker/index.native.js.map +1 -1
  338. package/build/font-size-picker/styles.js +10 -6
  339. package/build/font-size-picker/styles.js.map +1 -1
  340. package/build/font-size-picker/types.js.map +1 -1
  341. package/build/font-size-picker/utils.js.map +1 -1
  342. package/build/footer-message-control/index.native.js.map +1 -1
  343. package/build/form-file-upload/index.js.map +1 -1
  344. package/build/form-file-upload/types.js.map +1 -1
  345. package/build/form-toggle/index.js +13 -3
  346. package/build/form-toggle/index.js.map +1 -1
  347. package/build/form-toggle/types.js.map +1 -1
  348. package/build/form-token-field/index.js.map +1 -1
  349. package/build/form-token-field/styles.js +1 -1
  350. package/build/form-token-field/styles.js.map +1 -1
  351. package/build/form-token-field/suggestions-list.js +4 -0
  352. package/build/form-token-field/suggestions-list.js.map +1 -1
  353. package/build/form-token-field/token-input.js +4 -0
  354. package/build/form-token-field/token-input.js.map +1 -1
  355. package/build/form-token-field/token.js.map +1 -1
  356. package/build/form-token-field/types.js.map +1 -1
  357. package/build/gradient-picker/index.js.map +1 -1
  358. package/build/gradient-picker/types.js.map +1 -1
  359. package/build/grid/component.js.map +1 -1
  360. package/build/grid/hook.js +4 -0
  361. package/build/grid/hook.js.map +1 -1
  362. package/build/grid/index.js.map +1 -1
  363. package/build/grid/types.js.map +1 -1
  364. package/build/grid/utils.js.map +1 -1
  365. package/build/guide/icons.js.map +1 -1
  366. package/build/guide/index.js.map +1 -1
  367. package/build/guide/page-control.js.map +1 -1
  368. package/build/guide/page.js +4 -0
  369. package/build/guide/page.js.map +1 -1
  370. package/build/guide/types.js.map +1 -1
  371. package/build/h-stack/component.js.map +1 -1
  372. package/build/h-stack/hook.js.map +1 -1
  373. package/build/h-stack/index.js.map +1 -1
  374. package/build/h-stack/types.js.map +1 -1
  375. package/build/h-stack/utils.js.map +1 -1
  376. package/build/heading/component.js.map +1 -1
  377. package/build/heading/hook.js.map +1 -1
  378. package/build/heading/index.js.map +1 -1
  379. package/build/heading/types.js.map +1 -1
  380. package/build/higher-order/navigate-regions/index.js.map +1 -1
  381. package/build/higher-order/with-constrained-tabbing/index.js.map +1 -1
  382. package/build/higher-order/with-fallback-styles/index.js.map +1 -1
  383. package/build/higher-order/with-filters/index.js.map +1 -1
  384. package/build/higher-order/with-focus-outside/index.js.map +1 -1
  385. package/build/higher-order/with-focus-outside/index.native.js.map +1 -1
  386. package/build/higher-order/with-focus-return/index.js.map +1 -1
  387. package/build/higher-order/with-notices/index.js.map +1 -1
  388. package/build/higher-order/with-notices/types.js.map +1 -1
  389. package/build/higher-order/with-spoken-messages/index.js.map +1 -1
  390. package/build/icon/index.js.map +1 -1
  391. package/build/index.js +1 -1
  392. package/build/index.js.map +1 -1
  393. package/build/index.native.js +1 -1
  394. package/build/index.native.js.map +1 -1
  395. package/build/input-control/backdrop.js +2 -4
  396. package/build/input-control/backdrop.js.map +1 -1
  397. package/build/input-control/index.js +0 -4
  398. package/build/input-control/index.js.map +1 -1
  399. package/build/input-control/input-base.js +1 -5
  400. package/build/input-control/input-base.js.map +1 -1
  401. package/build/input-control/input-field.js +4 -9
  402. package/build/input-control/input-field.js.map +1 -1
  403. package/build/input-control/input-prefix-wrapper.js.map +1 -1
  404. package/build/input-control/input-suffix-wrapper.js.map +1 -1
  405. package/build/input-control/label.js.map +1 -1
  406. package/build/input-control/reducer/actions.js.map +1 -1
  407. package/build/input-control/reducer/reducer.js +5 -1
  408. package/build/input-control/reducer/reducer.js.map +1 -1
  409. package/build/input-control/reducer/state.js.map +1 -1
  410. package/build/input-control/styles/input-control-styles.js +80 -107
  411. package/build/input-control/styles/input-control-styles.js.map +1 -1
  412. package/build/input-control/types.js.map +1 -1
  413. package/build/input-control/utils.js +4 -0
  414. package/build/input-control/utils.js.map +1 -1
  415. package/build/isolated-event-container/index.js.map +1 -1
  416. package/build/item-group/context.js +4 -0
  417. package/build/item-group/context.js.map +1 -1
  418. package/build/item-group/index.js.map +1 -1
  419. package/build/item-group/item/component.js.map +1 -1
  420. package/build/item-group/item/hook.js +5 -1
  421. package/build/item-group/item/hook.js.map +1 -1
  422. package/build/item-group/item/index.js.map +1 -1
  423. package/build/item-group/item-group/component.js.map +1 -1
  424. package/build/item-group/item-group/hook.js +1 -1
  425. package/build/item-group/item-group/hook.js.map +1 -1
  426. package/build/item-group/item-group/index.js.map +1 -1
  427. package/build/item-group/styles.js +5 -1
  428. package/build/item-group/styles.js.map +1 -1
  429. package/build/item-group/types.js.map +1 -1
  430. package/build/keyboard-shortcuts/index.js +4 -0
  431. package/build/keyboard-shortcuts/index.js.map +1 -1
  432. package/build/keyboard-shortcuts/index.native.js.map +1 -1
  433. package/build/keyboard-shortcuts/types.js.map +1 -1
  434. package/build/lock-unlock.js.map +1 -1
  435. package/build/menu-group/index.js +4 -0
  436. package/build/menu-group/index.js.map +1 -1
  437. package/build/menu-group/types.js.map +1 -1
  438. package/build/menu-item/index.js.map +1 -1
  439. package/build/menu-item/types.js.map +1 -1
  440. package/build/menu-items-choice/index.js.map +1 -1
  441. package/build/menu-items-choice/types.js.map +1 -1
  442. package/build/mobile/audio-player/audio-url-parser.native.js.map +1 -1
  443. package/build/mobile/audio-player/index.native.js.map +1 -1
  444. package/build/mobile/autocompletion-items.native.js.map +1 -1
  445. package/build/mobile/badge/index.native.js.map +1 -1
  446. package/build/mobile/bottom-sheet/bottom-sheet-context.native.js.map +1 -1
  447. package/build/mobile/bottom-sheet/bottom-sheet-navigation/bottom-sheet-navigation-context.native.js.map +1 -1
  448. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +1 -1
  449. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
  450. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
  451. package/build/mobile/bottom-sheet/button.native.js.map +1 -1
  452. package/build/mobile/bottom-sheet/cell.native.js.map +1 -1
  453. package/build/mobile/bottom-sheet/chevron-back.native.js.map +1 -1
  454. package/build/mobile/bottom-sheet/color-cell.native.js.map +1 -1
  455. package/build/mobile/bottom-sheet/cycle-picker-cell.native.js.map +1 -1
  456. package/build/mobile/bottom-sheet/footer-message-cell.native.js.map +1 -1
  457. package/build/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js.map +1 -1
  458. package/build/mobile/bottom-sheet/index.native.js.map +1 -1
  459. package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
  460. package/build/mobile/bottom-sheet/link-cell.native.js.map +1 -1
  461. package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
  462. package/build/mobile/bottom-sheet/lock-icon/index.native.js.map +1 -1
  463. package/build/mobile/bottom-sheet/nav-bar/action-button.native.js.map +1 -1
  464. package/build/mobile/bottom-sheet/nav-bar/apply-button.native.js.map +1 -1
  465. package/build/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
  466. package/build/mobile/bottom-sheet/nav-bar/heading.native.js.map +1 -1
  467. package/build/mobile/bottom-sheet/nav-bar/index.native.js.map +1 -1
  468. package/build/mobile/bottom-sheet/picker-cell.native.js.map +1 -1
  469. package/build/mobile/bottom-sheet/radio-cell.native.js.map +1 -1
  470. package/build/mobile/bottom-sheet/range-cell.native.js.map +1 -1
  471. package/build/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
  472. package/build/mobile/bottom-sheet/ripple.native.js.map +1 -1
  473. package/build/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
  474. package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js.map +1 -1
  475. package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js.map +1 -1
  476. package/build/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
  477. package/build/mobile/bottom-sheet/switch-cell.native.js.map +1 -1
  478. package/build/mobile/bottom-sheet-select-control/index.native.js +5 -1
  479. package/build/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
  480. package/build/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
  481. package/build/mobile/clipboard/index.native.js.map +1 -1
  482. package/build/mobile/color-settings/gradient-picker-screen.native.js.map +1 -1
  483. package/build/mobile/color-settings/index.native.js.map +1 -1
  484. package/build/mobile/color-settings/palette.screen.native.js.map +1 -1
  485. package/build/mobile/color-settings/picker-screen.native.js.map +1 -1
  486. package/build/mobile/color-settings/utils.native.js.map +1 -1
  487. package/build/mobile/cycle-select-control/index.native.js.map +1 -1
  488. package/build/mobile/dashicons/index.native.js.map +1 -1
  489. package/build/mobile/focal-point-settings-panel/index.native.js.map +1 -1
  490. package/build/mobile/global-styles-context/index.native.js.map +1 -1
  491. package/build/mobile/global-styles-context/utils.native.js.map +1 -1
  492. package/build/mobile/gradient/index.native.js.map +1 -1
  493. package/build/mobile/gridicons/index.native.js.map +1 -1
  494. package/build/mobile/html-text-input/index.native.js.map +1 -1
  495. package/build/mobile/image/constants.js.map +1 -1
  496. package/build/mobile/image/icon-customize.native.js.map +1 -1
  497. package/build/mobile/image/icon-retry.native.js.map +1 -1
  498. package/build/mobile/image/image-editing-button.native.js.map +1 -1
  499. package/build/mobile/image/index.native.js.map +1 -1
  500. package/build/mobile/image/utils/index.native.js.map +1 -1
  501. package/build/mobile/keyboard-avoiding-view/index.android.js.map +1 -1
  502. package/build/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
  503. package/build/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
  504. package/build/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
  505. package/build/mobile/keyboard-aware-flat-list/use-keyboard-offset.native.js.map +1 -1
  506. package/build/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js.map +1 -1
  507. package/build/mobile/keyboard-aware-flat-list/use-scroll-to-section.native.js.map +1 -1
  508. package/build/mobile/keyboard-aware-flat-list/use-scroll.native.js.map +1 -1
  509. package/build/mobile/keyboard-aware-flat-list/use-text-input-caret-position.native.js.map +1 -1
  510. package/build/mobile/keyboard-aware-flat-list/use-text-input-offset.native.js.map +1 -1
  511. package/build/mobile/layout-animation/index.native.js.map +1 -1
  512. package/build/mobile/link-picker/index.native.js.map +1 -1
  513. package/build/mobile/link-picker/link-picker-results.native.js.map +1 -1
  514. package/build/mobile/link-picker/link-picker-screen.native.js.map +1 -1
  515. package/build/mobile/link-settings/index.native.js.map +1 -1
  516. package/build/mobile/link-settings/link-rel.native.js.map +1 -1
  517. package/build/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
  518. package/build/mobile/link-settings/link-settings-screen.native.js.map +1 -1
  519. package/build/mobile/media-edit/index.native.js.map +1 -1
  520. package/build/mobile/picker/index.android.js.map +1 -1
  521. package/build/mobile/picker/index.ios.js.map +1 -1
  522. package/build/mobile/segmented-control/index.native.js.map +1 -1
  523. package/build/mobile/utils/alignments.native.js.map +1 -1
  524. package/build/mobile/utils/get-px-from-css-unit.native.js.map +1 -1
  525. package/build/mobile/utils/index.native.js.map +1 -1
  526. package/build/mobile/utils/use-is-floating-keyboard.native.js.map +1 -1
  527. package/build/mobile/utils/use-unit-converter-to-mobile.native.js.map +1 -1
  528. package/build/modal/aria-helper.js.map +1 -1
  529. package/build/modal/index.js +1 -1
  530. package/build/modal/index.js.map +1 -1
  531. package/build/modal/types.js.map +1 -1
  532. package/build/navigable-container/container.js +4 -0
  533. package/build/navigable-container/container.js.map +1 -1
  534. package/build/navigable-container/index.js.map +1 -1
  535. package/build/navigable-container/menu.js.map +1 -1
  536. package/build/navigable-container/tabbable.js.map +1 -1
  537. package/build/navigable-container/types.js.map +1 -1
  538. package/build/navigation/back-button/index.js +4 -0
  539. package/build/navigation/back-button/index.js.map +1 -1
  540. package/build/navigation/constants.js.map +1 -1
  541. package/build/navigation/context.js.map +1 -1
  542. package/build/navigation/group/context.js +4 -0
  543. package/build/navigation/group/context.js.map +1 -1
  544. package/build/navigation/group/index.js +4 -0
  545. package/build/navigation/group/index.js.map +1 -1
  546. package/build/navigation/index.js +2 -0
  547. package/build/navigation/index.js.map +1 -1
  548. package/build/navigation/item/base-content.js.map +1 -1
  549. package/build/navigation/item/base.js.map +1 -1
  550. package/build/navigation/item/index.js +4 -0
  551. package/build/navigation/item/index.js.map +1 -1
  552. package/build/navigation/item/use-navigation-tree-item.js.map +1 -1
  553. package/build/navigation/menu/context.js +4 -0
  554. package/build/navigation/menu/context.js.map +1 -1
  555. package/build/navigation/menu/index.js +3 -0
  556. package/build/navigation/menu/index.js.map +1 -1
  557. package/build/navigation/menu/menu-title-search.js.map +1 -1
  558. package/build/navigation/menu/menu-title.js.map +1 -1
  559. package/build/navigation/menu/search-no-results-found.js.map +1 -1
  560. package/build/navigation/menu/use-navigation-tree-menu.js.map +1 -1
  561. package/build/navigation/styles/navigation-styles.js +19 -13
  562. package/build/navigation/styles/navigation-styles.js.map +1 -1
  563. package/build/navigation/types.js.map +1 -1
  564. package/build/navigation/use-create-navigation-tree.js.map +1 -1
  565. package/build/navigation/use-navigation-tree-nodes.js.map +1 -1
  566. package/build/navigation/utils.js.map +1 -1
  567. package/build/navigator/context.js +4 -0
  568. package/build/navigator/context.js.map +1 -1
  569. package/build/navigator/index.js.map +1 -1
  570. package/build/navigator/navigator-back-button/component.js.map +1 -1
  571. package/build/navigator/navigator-back-button/hook.js +4 -0
  572. package/build/navigator/navigator-back-button/hook.js.map +1 -1
  573. package/build/navigator/navigator-back-button/index.js.map +1 -1
  574. package/build/navigator/navigator-button/component.js.map +1 -1
  575. package/build/navigator/navigator-button/hook.js +4 -0
  576. package/build/navigator/navigator-button/hook.js.map +1 -1
  577. package/build/navigator/navigator-button/index.js.map +1 -1
  578. package/build/navigator/navigator-provider/component.js +9 -1
  579. package/build/navigator/navigator-provider/component.js.map +1 -1
  580. package/build/navigator/navigator-provider/index.js.map +1 -1
  581. package/build/navigator/navigator-screen/component.js +5 -1
  582. package/build/navigator/navigator-screen/component.js.map +1 -1
  583. package/build/navigator/navigator-screen/index.js.map +1 -1
  584. package/build/navigator/navigator-to-parent-button/component.js.map +1 -1
  585. package/build/navigator/navigator-to-parent-button/index.js.map +1 -1
  586. package/build/navigator/styles.js +3 -1
  587. package/build/navigator/styles.js.map +1 -1
  588. package/build/navigator/types.js.map +1 -1
  589. package/build/navigator/use-navigator.js.map +1 -1
  590. package/build/navigator/utils/router.js +4 -0
  591. package/build/navigator/utils/router.js.map +1 -1
  592. package/build/notice/index.js.map +1 -1
  593. package/build/notice/index.native.js.map +1 -1
  594. package/build/notice/list.js.map +1 -1
  595. package/build/notice/list.native.js.map +1 -1
  596. package/build/notice/types.js.map +1 -1
  597. package/build/number-control/index.js +1 -1
  598. package/build/number-control/index.js.map +1 -1
  599. package/build/number-control/styles/number-control-styles.js +7 -3
  600. package/build/number-control/styles/number-control-styles.js.map +1 -1
  601. package/build/number-control/types.js.map +1 -1
  602. package/build/palette-edit/index.js.map +1 -1
  603. package/build/palette-edit/styles.js +15 -11
  604. package/build/palette-edit/styles.js.map +1 -1
  605. package/build/palette-edit/types.js.map +1 -1
  606. package/build/panel/actions.native.js.map +1 -1
  607. package/build/panel/body.js +4 -0
  608. package/build/panel/body.js.map +1 -1
  609. package/build/panel/body.native.js.map +1 -1
  610. package/build/panel/bottom-separator-cover.native.js.map +1 -1
  611. package/build/panel/header.js.map +1 -1
  612. package/build/panel/index.js.map +1 -1
  613. package/build/panel/row.js +4 -0
  614. package/build/panel/row.js.map +1 -1
  615. package/build/panel/types.js.map +1 -1
  616. package/build/placeholder/index.js.map +1 -1
  617. package/build/placeholder/types.js.map +1 -1
  618. package/build/popover/index.js +2 -0
  619. package/build/popover/index.js.map +1 -1
  620. package/build/popover/overlay-middlewares.js.map +1 -1
  621. package/build/popover/types.js.map +1 -1
  622. package/build/popover/utils.js.map +1 -1
  623. package/build/private-apis.js.map +1 -1
  624. package/build/private-apis.native.js.map +1 -1
  625. package/build/progress-bar/index.js +5 -3
  626. package/build/progress-bar/index.js.map +1 -1
  627. package/build/progress-bar/styles.js +21 -12
  628. package/build/progress-bar/styles.js.map +1 -1
  629. package/build/progress-bar/types.js.map +1 -1
  630. package/build/query-controls/author-select.js.map +1 -1
  631. package/build/query-controls/category-select.js.map +1 -1
  632. package/build/query-controls/index.js.map +1 -1
  633. package/build/query-controls/index.native.js.map +1 -1
  634. package/build/query-controls/terms.js.map +1 -1
  635. package/build/query-controls/types.js.map +1 -1
  636. package/build/radio-control/index.js.map +1 -1
  637. package/build/radio-control/index.native.js.map +1 -1
  638. package/build/radio-control/types.js.map +1 -1
  639. package/build/radio-group/context.js.map +1 -1
  640. package/build/radio-group/index.js +1 -1
  641. package/build/radio-group/index.js.map +1 -1
  642. package/build/radio-group/radio.js +1 -1
  643. package/build/radio-group/radio.js.map +1 -1
  644. package/build/radio-group/types.js.map +1 -1
  645. package/build/range-control/index.js.map +1 -1
  646. package/build/range-control/index.native.js.map +1 -1
  647. package/build/range-control/input-range.js.map +1 -1
  648. package/build/range-control/mark.js.map +1 -1
  649. package/build/range-control/rail.js.map +1 -1
  650. package/build/range-control/styles/range-control-styles.js +20 -16
  651. package/build/range-control/styles/range-control-styles.js.map +1 -1
  652. package/build/range-control/tooltip.js.map +1 -1
  653. package/build/range-control/types.js.map +1 -1
  654. package/build/range-control/utils.js.map +1 -1
  655. package/build/resizable-box/index.js.map +1 -1
  656. package/build/resizable-box/index.native.js.map +1 -1
  657. package/build/resizable-box/resize-tooltip/index.js.map +1 -1
  658. package/build/resizable-box/resize-tooltip/label.js +4 -0
  659. package/build/resizable-box/resize-tooltip/label.js.map +1 -1
  660. package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js +9 -5
  661. package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js.map +1 -1
  662. package/build/resizable-box/resize-tooltip/utils.js.map +1 -1
  663. package/build/responsive-wrapper/index.js +4 -0
  664. package/build/responsive-wrapper/index.js.map +1 -1
  665. package/build/responsive-wrapper/types.js.map +1 -1
  666. package/build/sandbox/index.js +4 -0
  667. package/build/sandbox/index.js.map +1 -1
  668. package/build/sandbox/index.native.js.map +1 -1
  669. package/build/sandbox/types.js.map +1 -1
  670. package/build/scroll-lock/index.js.map +1 -1
  671. package/build/scrollable/component.js.map +1 -1
  672. package/build/scrollable/hook.js +5 -1
  673. package/build/scrollable/hook.js.map +1 -1
  674. package/build/scrollable/index.js.map +1 -1
  675. package/build/scrollable/styles.js +5 -1
  676. package/build/scrollable/styles.js.map +1 -1
  677. package/build/scrollable/types.js.map +1 -1
  678. package/build/search-control/index.js.map +1 -1
  679. package/build/search-control/index.native.js.map +1 -1
  680. package/build/search-control/styles.js +2 -2
  681. package/build/search-control/styles.js.map +1 -1
  682. package/build/search-control/types.js.map +1 -1
  683. package/build/select-control/chevron-down.js.map +1 -1
  684. package/build/select-control/index.js +0 -15
  685. package/build/select-control/index.js.map +1 -1
  686. package/build/select-control/index.native.js.map +1 -1
  687. package/build/select-control/styles/select-control-styles.js +3 -3
  688. package/build/select-control/styles/select-control-styles.js.map +1 -1
  689. package/build/select-control/types.js.map +1 -1
  690. package/build/shortcut/index.js.map +1 -1
  691. package/build/shortcut/types.js.map +1 -1
  692. package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
  693. package/build/slot-fill/bubbles-virtually/observable-map.js +68 -0
  694. package/build/slot-fill/bubbles-virtually/observable-map.js.map +1 -0
  695. package/build/slot-fill/bubbles-virtually/slot-fill-context.js +5 -5
  696. package/build/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
  697. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js +7 -12
  698. package/build/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  699. package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
  700. package/build/slot-fill/bubbles-virtually/use-slot-fills.js +2 -12
  701. package/build/slot-fill/bubbles-virtually/use-slot-fills.js.map +1 -1
  702. package/build/slot-fill/bubbles-virtually/use-slot.js +2 -12
  703. package/build/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
  704. package/build/slot-fill/context.js +4 -0
  705. package/build/slot-fill/context.js.map +1 -1
  706. package/build/slot-fill/fill.js.map +1 -1
  707. package/build/slot-fill/index.js.map +1 -1
  708. package/build/slot-fill/index.native.js.map +1 -1
  709. package/build/slot-fill/provider.js.map +1 -1
  710. package/build/slot-fill/slot.js.map +1 -1
  711. package/build/slot-fill/types.js.map +1 -1
  712. package/build/slot-fill/use-slot.js.map +1 -1
  713. package/build/snackbar/index.js +1 -1
  714. package/build/snackbar/index.js.map +1 -1
  715. package/build/snackbar/list.js.map +1 -1
  716. package/build/snackbar/types.js.map +1 -1
  717. package/build/spacer/component.js.map +1 -1
  718. package/build/spacer/hook.js +4 -0
  719. package/build/spacer/hook.js.map +1 -1
  720. package/build/spacer/index.js.map +1 -1
  721. package/build/spacer/types.js.map +1 -1
  722. package/build/spinner/index.js.map +1 -1
  723. package/build/spinner/index.native.js.map +1 -1
  724. package/build/spinner/styles.js +8 -4
  725. package/build/spinner/styles.js.map +1 -1
  726. package/build/style-provider/index.js +5 -1
  727. package/build/style-provider/index.js.map +1 -1
  728. package/build/style-provider/index.native.js.map +1 -1
  729. package/build/style-provider/types.js.map +1 -1
  730. package/build/surface/component.js.map +1 -1
  731. package/build/surface/hook.js +1 -1
  732. package/build/surface/hook.js.map +1 -1
  733. package/build/surface/index.js.map +1 -1
  734. package/build/surface/styles.js.map +1 -1
  735. package/build/surface/types.js.map +1 -1
  736. package/build/tab-panel/index.js +1 -1
  737. package/build/tab-panel/index.js.map +1 -1
  738. package/build/tab-panel/types.js.map +1 -1
  739. package/build/tabs/context.js +4 -0
  740. package/build/tabs/context.js.map +1 -1
  741. package/build/tabs/index.js +12 -1
  742. package/build/tabs/index.js.map +1 -1
  743. package/build/tabs/styles.js +10 -5
  744. package/build/tabs/styles.js.map +1 -1
  745. package/build/tabs/tab.js +4 -0
  746. package/build/tabs/tab.js.map +1 -1
  747. package/build/tabs/tablist.js +5 -1
  748. package/build/tabs/tablist.js.map +1 -1
  749. package/build/tabs/tabpanel.js +4 -0
  750. package/build/tabs/tabpanel.js.map +1 -1
  751. package/build/tabs/types.js.map +1 -1
  752. package/build/text/component.js.map +1 -1
  753. package/build/text/get-line-height.js.map +1 -1
  754. package/build/text/hook.js +8 -2
  755. package/build/text/hook.js.map +1 -1
  756. package/build/text/index.js.map +1 -1
  757. package/build/text/index.native.js.map +1 -1
  758. package/build/text/styles/emotion-css.native.js.map +1 -1
  759. package/build/text/styles/font-family.native.js.map +1 -1
  760. package/build/text/styles/text-mixins.native.js.map +1 -1
  761. package/build/text/styles.js +12 -8
  762. package/build/text/styles.js.map +1 -1
  763. package/build/text/types.js.map +1 -1
  764. package/build/text/utils.js +23 -0
  765. package/build/text/utils.js.map +1 -1
  766. package/build/text-control/index.js.map +1 -1
  767. package/build/text-control/index.native.js.map +1 -1
  768. package/build/text-control/types.js.map +1 -1
  769. package/build/text-highlight/index.js.map +1 -1
  770. package/build/text-highlight/types.js.map +1 -1
  771. package/build/textarea-control/index.js.map +1 -1
  772. package/build/textarea-control/index.native.js.map +1 -1
  773. package/build/textarea-control/styles/textarea-control-styles.js +1 -1
  774. package/build/textarea-control/styles/textarea-control-styles.js.map +1 -1
  775. package/build/textarea-control/types.js.map +1 -1
  776. package/build/theme/color-algorithms.js +4 -0
  777. package/build/theme/color-algorithms.js.map +1 -1
  778. package/build/theme/index.js +4 -0
  779. package/build/theme/index.js.map +1 -1
  780. package/build/theme/styles.js +8 -2
  781. package/build/theme/styles.js.map +1 -1
  782. package/build/theme/types.js.map +1 -1
  783. package/build/tip/index.js +4 -0
  784. package/build/tip/index.js.map +1 -1
  785. package/build/tip/types.js.map +1 -1
  786. package/build/toggle-control/index.js +6 -4
  787. package/build/toggle-control/index.js.map +1 -1
  788. package/build/toggle-control/index.native.js.map +1 -1
  789. package/build/toggle-control/types.js.map +1 -1
  790. package/build/toggle-group-control/context.js +4 -0
  791. package/build/toggle-group-control/context.js.map +1 -1
  792. package/build/toggle-group-control/index.js.map +1 -1
  793. package/build/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -1
  794. package/build/toggle-group-control/toggle-group-control/as-radio-group.js +1 -1
  795. package/build/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
  796. package/build/toggle-group-control/toggle-group-control/component.js +5 -1
  797. package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
  798. package/build/toggle-group-control/toggle-group-control/index.js.map +1 -1
  799. package/build/toggle-group-control/toggle-group-control/styles.js +6 -2
  800. package/build/toggle-group-control/toggle-group-control/styles.js.map +1 -1
  801. package/build/toggle-group-control/toggle-group-control/utils.js +4 -0
  802. package/build/toggle-group-control/toggle-group-control/utils.js.map +1 -1
  803. package/build/toggle-group-control/toggle-group-control-option/component.js +4 -0
  804. package/build/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  805. package/build/toggle-group-control/toggle-group-control-option/index.js.map +1 -1
  806. package/build/toggle-group-control/toggle-group-control-option-base/component.js +5 -1
  807. package/build/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  808. package/build/toggle-group-control/toggle-group-control-option-base/index.js.map +1 -1
  809. package/build/toggle-group-control/toggle-group-control-option-base/styles.js +7 -3
  810. package/build/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
  811. package/build/toggle-group-control/toggle-group-control-option-icon/component.js +4 -0
  812. package/build/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  813. package/build/toggle-group-control/toggle-group-control-option-icon/index.js.map +1 -1
  814. package/build/toggle-group-control/types.js.map +1 -1
  815. package/build/toolbar/index.js.map +1 -1
  816. package/build/toolbar/toolbar/index.js.map +1 -1
  817. package/build/toolbar/toolbar/toolbar-container.js +1 -1
  818. package/build/toolbar/toolbar/toolbar-container.js.map +1 -1
  819. package/build/toolbar/toolbar/toolbar-container.native.js.map +1 -1
  820. package/build/toolbar/toolbar/types.js.map +1 -1
  821. package/build/toolbar/toolbar-button/index.js.map +1 -1
  822. package/build/toolbar/toolbar-button/toolbar-button-container.js.map +1 -1
  823. package/build/toolbar/toolbar-button/toolbar-button-container.native.js.map +1 -1
  824. package/build/toolbar/toolbar-button/types.js.map +1 -1
  825. package/build/toolbar/toolbar-context/index.js.map +1 -1
  826. package/build/toolbar/toolbar-dropdown-menu/index.js +4 -0
  827. package/build/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
  828. package/build/toolbar/toolbar-group/index.js.map +1 -1
  829. package/build/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
  830. package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js.map +1 -1
  831. package/build/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
  832. package/build/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
  833. package/build/toolbar/toolbar-group/types.js.map +1 -1
  834. package/build/toolbar/toolbar-item/index.js +1 -1
  835. package/build/toolbar/toolbar-item/index.js.map +1 -1
  836. package/build/toolbar/toolbar-item/index.native.js.map +1 -1
  837. package/build/toolbar/toolbar-item/types.js.map +1 -1
  838. package/build/tools-panel/context.js +4 -0
  839. package/build/tools-panel/context.js.map +1 -1
  840. package/build/tools-panel/index.js.map +1 -1
  841. package/build/tools-panel/styles.js +7 -3
  842. package/build/tools-panel/styles.js.map +1 -1
  843. package/build/tools-panel/tools-panel/component.js.map +1 -1
  844. package/build/tools-panel/tools-panel/hook.js +1 -1
  845. package/build/tools-panel/tools-panel/hook.js.map +1 -1
  846. package/build/tools-panel/tools-panel/index.js.map +1 -1
  847. package/build/tools-panel/tools-panel-header/component.js.map +1 -1
  848. package/build/tools-panel/tools-panel-header/hook.js +1 -1
  849. package/build/tools-panel/tools-panel-header/hook.js.map +1 -1
  850. package/build/tools-panel/tools-panel-header/index.js.map +1 -1
  851. package/build/tools-panel/tools-panel-item/component.js.map +1 -1
  852. package/build/tools-panel/tools-panel-item/hook.js +1 -1
  853. package/build/tools-panel/tools-panel-item/hook.js.map +1 -1
  854. package/build/tools-panel/tools-panel-item/index.js.map +1 -1
  855. package/build/tools-panel/types.js.map +1 -1
  856. package/build/tooltip/index.js +5 -1
  857. package/build/tooltip/index.js.map +1 -1
  858. package/build/tooltip/index.native.js.map +1 -1
  859. package/build/tooltip/types.js.map +1 -1
  860. package/build/tree-grid/cell.js.map +1 -1
  861. package/build/tree-grid/index.js.map +1 -1
  862. package/build/tree-grid/item.js.map +1 -1
  863. package/build/tree-grid/roving-tab-index-context.js.map +1 -1
  864. package/build/tree-grid/roving-tab-index-item.js.map +1 -1
  865. package/build/tree-grid/roving-tab-index.js.map +1 -1
  866. package/build/tree-grid/row.js +4 -0
  867. package/build/tree-grid/row.js.map +1 -1
  868. package/build/tree-grid/types.js.map +1 -1
  869. package/build/tree-select/index.js.map +1 -1
  870. package/build/tree-select/types.js.map +1 -1
  871. package/build/truncate/component.js.map +1 -1
  872. package/build/truncate/hook.js +9 -2
  873. package/build/truncate/hook.js.map +1 -1
  874. package/build/truncate/index.js.map +1 -1
  875. package/build/truncate/styles.js +3 -1
  876. package/build/truncate/styles.js.map +1 -1
  877. package/build/truncate/types.js.map +1 -1
  878. package/build/truncate/utils.js.map +1 -1
  879. package/build/unit-control/index.js +4 -0
  880. package/build/unit-control/index.js.map +1 -1
  881. package/build/unit-control/index.native.js.map +1 -1
  882. package/build/unit-control/styles/unit-control-styles.js +6 -3
  883. package/build/unit-control/styles/unit-control-styles.js.map +1 -1
  884. package/build/unit-control/types.js.map +1 -1
  885. package/build/unit-control/unit-select-control.js +4 -0
  886. package/build/unit-control/unit-select-control.js.map +1 -1
  887. package/build/unit-control/utils.js +4 -0
  888. package/build/unit-control/utils.js.map +1 -1
  889. package/build/utils/base-label.js +3 -1
  890. package/build/utils/base-label.js.map +1 -1
  891. package/build/utils/box-sizing.js +3 -1
  892. package/build/utils/box-sizing.js.map +1 -1
  893. package/build/utils/breakpoint-values.js.map +1 -1
  894. package/build/utils/breakpoint.js.map +1 -1
  895. package/build/utils/colors-values.js.map +1 -1
  896. package/build/utils/colors.js.map +1 -1
  897. package/build/utils/config-values.js.map +1 -1
  898. package/build/utils/font-size.js.map +1 -1
  899. package/build/utils/font-values.js.map +1 -1
  900. package/build/utils/font.js.map +1 -1
  901. package/build/utils/get-valid-children.js.map +1 -1
  902. package/build/utils/hooks/emotion.d.js.map +1 -1
  903. package/build/utils/hooks/index.js.map +1 -1
  904. package/build/utils/hooks/use-controlled-state.js.map +1 -1
  905. package/build/utils/hooks/use-controlled-value.js.map +1 -1
  906. package/build/utils/hooks/use-cx.js +2 -0
  907. package/build/utils/hooks/use-cx.js.map +1 -1
  908. package/build/utils/hooks/use-update-effect.js.map +1 -1
  909. package/build/utils/index.js.map +1 -1
  910. package/build/utils/input/base.js.map +1 -1
  911. package/build/utils/input/index.js.map +1 -1
  912. package/build/utils/input/input-control.js.map +1 -1
  913. package/build/utils/math.js.map +1 -1
  914. package/build/utils/reduce-motion.js +4 -0
  915. package/build/utils/reduce-motion.js.map +1 -1
  916. package/build/utils/rtl.js +2 -2
  917. package/build/utils/rtl.js.map +1 -1
  918. package/build/utils/space.js.map +1 -1
  919. package/build/utils/strings.js.map +1 -1
  920. package/build/utils/style-mixins.js.map +1 -1
  921. package/build/utils/types.js.map +1 -1
  922. package/build/utils/unit-values.js.map +1 -1
  923. package/build/utils/use-deprecated-props.js.map +1 -1
  924. package/build/utils/use-responsive-value.js.map +1 -1
  925. package/build/utils/values.js.map +1 -1
  926. package/build/utils/with-ignore-ime-events.js.map +1 -1
  927. package/build/v-stack/component.js.map +1 -1
  928. package/build/v-stack/hook.js.map +1 -1
  929. package/build/v-stack/index.js.map +1 -1
  930. package/build/v-stack/types.js.map +1 -1
  931. package/build/view/component.js +5 -1
  932. package/build/view/component.js.map +1 -1
  933. package/build/view/index.js.map +1 -1
  934. package/build/view/types.js.map +1 -1
  935. package/build/visually-hidden/component.js.map +1 -1
  936. package/build/visually-hidden/index.js.map +1 -1
  937. package/build/visually-hidden/styles.js.map +1 -1
  938. package/build/visually-hidden/types.js.map +1 -1
  939. package/build/z-stack/component.js.map +1 -1
  940. package/build/z-stack/index.js.map +1 -1
  941. package/build/z-stack/styles.js +5 -3
  942. package/build/z-stack/styles.js.map +1 -1
  943. package/build/z-stack/types.js.map +1 -1
  944. package/build-module/alignment-matrix-control/cell.js.map +1 -1
  945. package/build-module/alignment-matrix-control/icon.js.map +1 -1
  946. package/build-module/alignment-matrix-control/index.js.map +1 -1
  947. package/build-module/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js +3 -3
  948. package/build-module/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js.map +1 -1
  949. package/build-module/alignment-matrix-control/styles/alignment-matrix-control-styles.js +4 -4
  950. package/build-module/alignment-matrix-control/styles/alignment-matrix-control-styles.js.map +1 -1
  951. package/build-module/alignment-matrix-control/types.js.map +1 -1
  952. package/build-module/alignment-matrix-control/utils.js.map +1 -1
  953. package/build-module/angle-picker-control/angle-circle.js.map +1 -1
  954. package/build-module/angle-picker-control/index.js.map +1 -1
  955. package/build-module/angle-picker-control/styles/angle-picker-control-styles.js +3 -3
  956. package/build-module/angle-picker-control/styles/angle-picker-control-styles.js.map +1 -1
  957. package/build-module/angle-picker-control/types.js.map +1 -1
  958. package/build-module/animate/index.js.map +1 -1
  959. package/build-module/animate/types.js.map +1 -1
  960. package/build-module/animation/index.js.map +1 -1
  961. package/build-module/autocomplete/autocompleter-ui.js.map +1 -1
  962. package/build-module/autocomplete/autocompleter-ui.native.js.map +1 -1
  963. package/build-module/autocomplete/background-view.android.js.map +1 -1
  964. package/build-module/autocomplete/background-view.ios.js.map +1 -1
  965. package/build-module/autocomplete/get-default-use-items.js.map +1 -1
  966. package/build-module/autocomplete/index.js.map +1 -1
  967. package/build-module/autocomplete/types.js.map +1 -1
  968. package/build-module/base-control/hooks.js.map +1 -1
  969. package/build-module/base-control/index.js.map +1 -1
  970. package/build-module/base-control/index.native.js.map +1 -1
  971. package/build-module/base-control/styles/base-control-styles.js +5 -5
  972. package/build-module/base-control/styles/base-control-styles.js.map +1 -1
  973. package/build-module/base-control/types.js.map +1 -1
  974. package/build-module/border-box-control/border-box-control/component.js.map +1 -1
  975. package/build-module/border-box-control/border-box-control/hook.js.map +1 -1
  976. package/build-module/border-box-control/border-box-control/index.js.map +1 -1
  977. package/build-module/border-box-control/border-box-control-linked-button/component.js.map +1 -1
  978. package/build-module/border-box-control/border-box-control-linked-button/hook.js.map +1 -1
  979. package/build-module/border-box-control/border-box-control-linked-button/index.js.map +1 -1
  980. package/build-module/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  981. package/build-module/border-box-control/border-box-control-split-controls/hook.js.map +1 -1
  982. package/build-module/border-box-control/border-box-control-split-controls/index.js.map +1 -1
  983. package/build-module/border-box-control/border-box-control-visualizer/component.js.map +1 -1
  984. package/build-module/border-box-control/border-box-control-visualizer/hook.js.map +1 -1
  985. package/build-module/border-box-control/border-box-control-visualizer/index.js.map +1 -1
  986. package/build-module/border-box-control/index.js.map +1 -1
  987. package/build-module/border-box-control/styles.js.map +1 -1
  988. package/build-module/border-box-control/types.js.map +1 -1
  989. package/build-module/border-box-control/utils.js.map +1 -1
  990. package/build-module/border-control/border-control/component.js.map +1 -1
  991. package/build-module/border-control/border-control/hook.js.map +1 -1
  992. package/build-module/border-control/border-control/index.js.map +1 -1
  993. package/build-module/border-control/border-control-dropdown/component.js.map +1 -1
  994. package/build-module/border-control/border-control-dropdown/hook.js.map +1 -1
  995. package/build-module/border-control/border-control-dropdown/index.js.map +1 -1
  996. package/build-module/border-control/border-control-style-picker/component.js.map +1 -1
  997. package/build-module/border-control/border-control-style-picker/index.js.map +1 -1
  998. package/build-module/border-control/index.js.map +1 -1
  999. package/build-module/border-control/styles.js.map +1 -1
  1000. package/build-module/border-control/types.js.map +1 -1
  1001. package/build-module/box-control/all-input-control.js.map +1 -1
  1002. package/build-module/box-control/axial-input-controls.js.map +1 -1
  1003. package/build-module/box-control/icon.js.map +1 -1
  1004. package/build-module/box-control/index.js.map +1 -1
  1005. package/build-module/box-control/input-controls.js.map +1 -1
  1006. package/build-module/box-control/linked-button.js.map +1 -1
  1007. package/build-module/box-control/styles/box-control-icon-styles.js +3 -3
  1008. package/build-module/box-control/styles/box-control-icon-styles.js.map +1 -1
  1009. package/build-module/box-control/styles/box-control-styles.js +1 -1
  1010. package/build-module/box-control/styles/box-control-styles.js.map +1 -1
  1011. package/build-module/box-control/types.js.map +1 -1
  1012. package/build-module/box-control/utils.js.map +1 -1
  1013. package/build-module/button/deprecated.js.map +1 -1
  1014. package/build-module/button/index.js.map +1 -1
  1015. package/build-module/button/index.native.js.map +1 -1
  1016. package/build-module/button/types.js.map +1 -1
  1017. package/build-module/button-group/index.js.map +1 -1
  1018. package/build-module/button-group/types.js.map +1 -1
  1019. package/build-module/card/card/component.js.map +1 -1
  1020. package/build-module/card/card/hook.js.map +1 -1
  1021. package/build-module/card/card/index.js.map +1 -1
  1022. package/build-module/card/card-body/component.js.map +1 -1
  1023. package/build-module/card/card-body/hook.js.map +1 -1
  1024. package/build-module/card/card-body/index.js.map +1 -1
  1025. package/build-module/card/card-divider/component.js.map +1 -1
  1026. package/build-module/card/card-divider/hook.js.map +1 -1
  1027. package/build-module/card/card-divider/index.js.map +1 -1
  1028. package/build-module/card/card-footer/component.js.map +1 -1
  1029. package/build-module/card/card-footer/hook.js.map +1 -1
  1030. package/build-module/card/card-footer/index.js.map +1 -1
  1031. package/build-module/card/card-header/component.js.map +1 -1
  1032. package/build-module/card/card-header/hook.js.map +1 -1
  1033. package/build-module/card/card-header/index.js.map +1 -1
  1034. package/build-module/card/card-media/component.js.map +1 -1
  1035. package/build-module/card/card-media/hook.js.map +1 -1
  1036. package/build-module/card/card-media/index.js.map +1 -1
  1037. package/build-module/card/context.js.map +1 -1
  1038. package/build-module/card/index.js.map +1 -1
  1039. package/build-module/card/styles.js.map +1 -1
  1040. package/build-module/card/types.js.map +1 -1
  1041. package/build-module/checkbox-control/index.js.map +1 -1
  1042. package/build-module/checkbox-control/types.js.map +1 -1
  1043. package/build-module/circular-option-picker/circular-option-picker-actions.js.map +1 -1
  1044. package/build-module/circular-option-picker/circular-option-picker-context.js.map +1 -1
  1045. package/build-module/circular-option-picker/circular-option-picker-option-group.js.map +1 -1
  1046. package/build-module/circular-option-picker/circular-option-picker-option.js.map +1 -1
  1047. package/build-module/circular-option-picker/circular-option-picker.js.map +1 -1
  1048. package/build-module/circular-option-picker/index.js.map +1 -1
  1049. package/build-module/circular-option-picker/types.js.map +1 -1
  1050. package/build-module/clipboard-button/index.js.map +1 -1
  1051. package/build-module/clipboard-button/types.js.map +1 -1
  1052. package/build-module/color-control/index.native.js.map +1 -1
  1053. package/build-module/color-indicator/index.js.map +1 -1
  1054. package/build-module/color-indicator/index.native.js.map +1 -1
  1055. package/build-module/color-indicator/types.js.map +1 -1
  1056. package/build-module/color-palette/index.js.map +1 -1
  1057. package/build-module/color-palette/index.native.js +4 -3
  1058. package/build-module/color-palette/index.native.js.map +1 -1
  1059. package/build-module/color-palette/styles.js.map +1 -1
  1060. package/build-module/color-palette/types.js.map +1 -1
  1061. package/build-module/color-palette/utils.js.map +1 -1
  1062. package/build-module/color-picker/color-copy-button.js.map +1 -1
  1063. package/build-module/color-picker/color-input.js.map +1 -1
  1064. package/build-module/color-picker/component.js.map +1 -1
  1065. package/build-module/color-picker/hex-input.js.map +1 -1
  1066. package/build-module/color-picker/hsl-input.js.map +1 -1
  1067. package/build-module/color-picker/hsv-color-picker.native.js.map +1 -1
  1068. package/build-module/color-picker/hue-picker.native.js.map +1 -1
  1069. package/build-module/color-picker/index.js.map +1 -1
  1070. package/build-module/color-picker/index.native.js.map +1 -1
  1071. package/build-module/color-picker/input-with-slider.js.map +1 -1
  1072. package/build-module/color-picker/legacy-adapter.js.map +1 -1
  1073. package/build-module/color-picker/picker.js.map +1 -1
  1074. package/build-module/color-picker/rgb-input.js.map +1 -1
  1075. package/build-module/color-picker/saturation-picker.native.js.map +1 -1
  1076. package/build-module/color-picker/styles.js +2 -2
  1077. package/build-module/color-picker/styles.js.map +1 -1
  1078. package/build-module/color-picker/types.js.map +1 -1
  1079. package/build-module/color-picker/use-deprecated-props.js.map +1 -1
  1080. package/build-module/combobox-control/index.js.map +1 -1
  1081. package/build-module/combobox-control/styles.js.map +1 -1
  1082. package/build-module/combobox-control/types.js.map +1 -1
  1083. package/build-module/composite/current/index.js.map +1 -1
  1084. package/build-module/composite/index.js.map +1 -1
  1085. package/build-module/composite/legacy/index.js +6 -0
  1086. package/build-module/composite/legacy/index.js.map +1 -1
  1087. package/build-module/composite/v2.js.map +1 -1
  1088. package/build-module/confirm-dialog/component.js.map +1 -1
  1089. package/build-module/confirm-dialog/index.js.map +1 -1
  1090. package/build-module/confirm-dialog/styles.js.map +1 -1
  1091. package/build-module/confirm-dialog/types.js.map +1 -1
  1092. package/build-module/context/constants.js.map +1 -1
  1093. package/build-module/context/context-connect.js.map +1 -1
  1094. package/build-module/context/context-system-provider.js.map +1 -1
  1095. package/build-module/context/get-styled-class-name-from-key.js.map +1 -1
  1096. package/build-module/context/index.js.map +1 -1
  1097. package/build-module/context/use-context-system.js.map +1 -1
  1098. package/build-module/context/utils.js.map +1 -1
  1099. package/build-module/context/wordpress-component.js.map +1 -1
  1100. package/build-module/custom-gradient-picker/constants.js.map +1 -1
  1101. package/build-module/custom-gradient-picker/gradient-bar/constants.js.map +1 -1
  1102. package/build-module/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  1103. package/build-module/custom-gradient-picker/gradient-bar/index.js.map +1 -1
  1104. package/build-module/custom-gradient-picker/gradient-bar/utils.js.map +1 -1
  1105. package/build-module/custom-gradient-picker/index.js.map +1 -1
  1106. package/build-module/custom-gradient-picker/index.native.js.map +1 -1
  1107. package/build-module/custom-gradient-picker/serializer.js.map +1 -1
  1108. package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.js.map +1 -1
  1109. package/build-module/custom-gradient-picker/types.js.map +1 -1
  1110. package/build-module/custom-gradient-picker/utils.js.map +1 -1
  1111. package/build-module/custom-select-control/index.js +7 -15
  1112. package/build-module/custom-select-control/index.js.map +1 -1
  1113. package/build-module/custom-select-control-v2/custom-select.js.map +1 -1
  1114. package/build-module/custom-select-control-v2/default-component/index.js.map +1 -1
  1115. package/build-module/custom-select-control-v2/index.js.map +1 -1
  1116. package/build-module/custom-select-control-v2/item.js.map +1 -1
  1117. package/build-module/custom-select-control-v2/legacy-component/index.js.map +1 -1
  1118. package/build-module/custom-select-control-v2/styles.js +3 -3
  1119. package/build-module/custom-select-control-v2/styles.js.map +1 -1
  1120. package/build-module/custom-select-control-v2/types.js.map +1 -1
  1121. package/build-module/dashicon/index.js.map +1 -1
  1122. package/build-module/dashicon/index.native.js.map +1 -1
  1123. package/build-module/dashicon/types.js.map +1 -1
  1124. package/build-module/date-time/constants.js.map +1 -1
  1125. package/build-module/date-time/date/index.js.map +1 -1
  1126. package/build-module/date-time/date/styles.js +3 -3
  1127. package/build-module/date-time/date/styles.js.map +1 -1
  1128. package/build-module/date-time/date-time/index.js.map +1 -1
  1129. package/build-module/date-time/date-time/styles.js.map +1 -1
  1130. package/build-module/date-time/index.js.map +1 -1
  1131. package/build-module/date-time/time/index.js.map +1 -1
  1132. package/build-module/date-time/time/styles.js +6 -6
  1133. package/build-module/date-time/time/styles.js.map +1 -1
  1134. package/build-module/date-time/time/timezone.js.map +1 -1
  1135. package/build-module/date-time/types.js.map +1 -1
  1136. package/build-module/date-time/utils.js.map +1 -1
  1137. package/build-module/dimension-control/index.js.map +1 -1
  1138. package/build-module/dimension-control/sizes.js.map +1 -1
  1139. package/build-module/dimension-control/types.js.map +1 -1
  1140. package/build-module/disabled/index.js.map +1 -1
  1141. package/build-module/disabled/index.native.js.map +1 -1
  1142. package/build-module/disabled/styles/disabled-styles.js.map +1 -1
  1143. package/build-module/disabled/types.js.map +1 -1
  1144. package/build-module/disclosure/index.js.map +1 -1
  1145. package/build-module/disclosure/types.js.map +1 -1
  1146. package/build-module/divider/component.js +5 -0
  1147. package/build-module/divider/component.js.map +1 -1
  1148. package/build-module/divider/index.js.map +1 -1
  1149. package/build-module/divider/styles.js +1 -1
  1150. package/build-module/divider/styles.js.map +1 -1
  1151. package/build-module/divider/types.js.map +1 -1
  1152. package/build-module/draggable/index.js.map +1 -1
  1153. package/build-module/draggable/index.native.js.map +1 -1
  1154. package/build-module/draggable/types.js.map +1 -1
  1155. package/build-module/drop-zone/index.js.map +1 -1
  1156. package/build-module/drop-zone/provider.js.map +1 -1
  1157. package/build-module/drop-zone/types.js.map +1 -1
  1158. package/build-module/dropdown/dropdown-content-wrapper.js.map +1 -1
  1159. package/build-module/dropdown/index.js.map +1 -1
  1160. package/build-module/dropdown/index.native.js.map +1 -1
  1161. package/build-module/dropdown/styles.js +1 -1
  1162. package/build-module/dropdown/styles.js.map +1 -1
  1163. package/build-module/dropdown/types.js.map +1 -1
  1164. package/build-module/dropdown-menu/index.js.map +1 -1
  1165. package/build-module/dropdown-menu/index.native.js.map +1 -1
  1166. package/build-module/dropdown-menu/types.js.map +1 -1
  1167. package/build-module/dropdown-menu-v2/index.js.map +1 -1
  1168. package/build-module/dropdown-menu-v2/styles.js +4 -4
  1169. package/build-module/dropdown-menu-v2/styles.js.map +1 -1
  1170. package/build-module/dropdown-menu-v2/types.js.map +1 -1
  1171. package/build-module/duotone-picker/color-list-picker/index.js.map +1 -1
  1172. package/build-module/duotone-picker/color-list-picker/types.js.map +1 -1
  1173. package/build-module/duotone-picker/custom-duotone-bar.js.map +1 -1
  1174. package/build-module/duotone-picker/duotone-picker.js.map +1 -1
  1175. package/build-module/duotone-picker/duotone-swatch.js.map +1 -1
  1176. package/build-module/duotone-picker/index.js.map +1 -1
  1177. package/build-module/duotone-picker/types.js.map +1 -1
  1178. package/build-module/duotone-picker/utils.js.map +1 -1
  1179. package/build-module/elevation/component.js.map +1 -1
  1180. package/build-module/elevation/hook.js.map +1 -1
  1181. package/build-module/elevation/index.js.map +1 -1
  1182. package/build-module/elevation/styles.js.map +1 -1
  1183. package/build-module/elevation/types.js.map +1 -1
  1184. package/build-module/external-link/index.js +8 -10
  1185. package/build-module/external-link/index.js.map +1 -1
  1186. package/build-module/external-link/index.native.js.map +1 -1
  1187. package/build-module/external-link/types.js.map +1 -1
  1188. package/build-module/flex/context.js.map +1 -1
  1189. package/build-module/flex/flex/component.js.map +1 -1
  1190. package/build-module/flex/flex/hook.js.map +1 -1
  1191. package/build-module/flex/flex/index.js.map +1 -1
  1192. package/build-module/flex/flex-block/component.js.map +1 -1
  1193. package/build-module/flex/flex-block/hook.js.map +1 -1
  1194. package/build-module/flex/flex-block/index.js.map +1 -1
  1195. package/build-module/flex/flex-item/component.js.map +1 -1
  1196. package/build-module/flex/flex-item/hook.js.map +1 -1
  1197. package/build-module/flex/flex-item/index.js.map +1 -1
  1198. package/build-module/flex/index.js.map +1 -1
  1199. package/build-module/flex/styles.js.map +1 -1
  1200. package/build-module/flex/types.js.map +1 -1
  1201. package/build-module/focal-point-picker/controls.js.map +1 -1
  1202. package/build-module/focal-point-picker/focal-point.js.map +1 -1
  1203. package/build-module/focal-point-picker/focal-point.native.js.map +1 -1
  1204. package/build-module/focal-point-picker/grid.js.map +1 -1
  1205. package/build-module/focal-point-picker/index.js.map +1 -1
  1206. package/build-module/focal-point-picker/index.native.js.map +1 -1
  1207. package/build-module/focal-point-picker/media.js.map +1 -1
  1208. package/build-module/focal-point-picker/styles/focal-point-picker-style.js +5 -5
  1209. package/build-module/focal-point-picker/styles/focal-point-picker-style.js.map +1 -1
  1210. package/build-module/focal-point-picker/styles/focal-point-style.js +1 -1
  1211. package/build-module/focal-point-picker/styles/focal-point-style.js.map +1 -1
  1212. package/build-module/focal-point-picker/tooltip/index.native.js.map +1 -1
  1213. package/build-module/focal-point-picker/types.js.map +1 -1
  1214. package/build-module/focal-point-picker/utils.js.map +1 -1
  1215. package/build-module/focusable-iframe/index.js.map +1 -1
  1216. package/build-module/focusable-iframe/types.js.map +1 -1
  1217. package/build-module/font-size-picker/constants.js.map +1 -1
  1218. package/build-module/font-size-picker/font-size-picker-select.js.map +1 -1
  1219. package/build-module/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
  1220. package/build-module/font-size-picker/index.js.map +1 -1
  1221. package/build-module/font-size-picker/index.native.js.map +1 -1
  1222. package/build-module/font-size-picker/styles.js +2 -2
  1223. package/build-module/font-size-picker/styles.js.map +1 -1
  1224. package/build-module/font-size-picker/types.js.map +1 -1
  1225. package/build-module/font-size-picker/utils.js.map +1 -1
  1226. package/build-module/footer-message-control/index.native.js.map +1 -1
  1227. package/build-module/form-file-upload/index.js.map +1 -1
  1228. package/build-module/form-file-upload/types.js.map +1 -1
  1229. package/build-module/form-toggle/index.js +8 -3
  1230. package/build-module/form-toggle/index.js.map +1 -1
  1231. package/build-module/form-toggle/types.js.map +1 -1
  1232. package/build-module/form-token-field/index.js.map +1 -1
  1233. package/build-module/form-token-field/styles.js.map +1 -1
  1234. package/build-module/form-token-field/suggestions-list.js.map +1 -1
  1235. package/build-module/form-token-field/token-input.js.map +1 -1
  1236. package/build-module/form-token-field/token.js.map +1 -1
  1237. package/build-module/form-token-field/types.js.map +1 -1
  1238. package/build-module/gradient-picker/index.js.map +1 -1
  1239. package/build-module/gradient-picker/types.js.map +1 -1
  1240. package/build-module/grid/component.js.map +1 -1
  1241. package/build-module/grid/hook.js.map +1 -1
  1242. package/build-module/grid/index.js.map +1 -1
  1243. package/build-module/grid/types.js.map +1 -1
  1244. package/build-module/grid/utils.js.map +1 -1
  1245. package/build-module/guide/icons.js.map +1 -1
  1246. package/build-module/guide/index.js.map +1 -1
  1247. package/build-module/guide/page-control.js.map +1 -1
  1248. package/build-module/guide/page.js.map +1 -1
  1249. package/build-module/guide/types.js.map +1 -1
  1250. package/build-module/h-stack/component.js.map +1 -1
  1251. package/build-module/h-stack/hook.js.map +1 -1
  1252. package/build-module/h-stack/index.js.map +1 -1
  1253. package/build-module/h-stack/types.js.map +1 -1
  1254. package/build-module/h-stack/utils.js.map +1 -1
  1255. package/build-module/heading/component.js.map +1 -1
  1256. package/build-module/heading/hook.js.map +1 -1
  1257. package/build-module/heading/index.js.map +1 -1
  1258. package/build-module/heading/types.js.map +1 -1
  1259. package/build-module/higher-order/navigate-regions/index.js.map +1 -1
  1260. package/build-module/higher-order/with-constrained-tabbing/index.js.map +1 -1
  1261. package/build-module/higher-order/with-fallback-styles/index.js.map +1 -1
  1262. package/build-module/higher-order/with-filters/index.js.map +1 -1
  1263. package/build-module/higher-order/with-focus-outside/index.js.map +1 -1
  1264. package/build-module/higher-order/with-focus-outside/index.native.js.map +1 -1
  1265. package/build-module/higher-order/with-focus-return/index.js.map +1 -1
  1266. package/build-module/higher-order/with-notices/index.js.map +1 -1
  1267. package/build-module/higher-order/with-notices/types.js.map +1 -1
  1268. package/build-module/higher-order/with-spoken-messages/index.js.map +1 -1
  1269. package/build-module/icon/index.js.map +1 -1
  1270. package/build-module/index.js.map +1 -1
  1271. package/build-module/index.native.js.map +1 -1
  1272. package/build-module/input-control/backdrop.js +2 -4
  1273. package/build-module/input-control/backdrop.js.map +1 -1
  1274. package/build-module/input-control/index.js +1 -5
  1275. package/build-module/input-control/index.js.map +1 -1
  1276. package/build-module/input-control/input-base.js +1 -5
  1277. package/build-module/input-control/input-base.js.map +1 -1
  1278. package/build-module/input-control/input-field.js +0 -9
  1279. package/build-module/input-control/input-field.js.map +1 -1
  1280. package/build-module/input-control/input-prefix-wrapper.js.map +1 -1
  1281. package/build-module/input-control/input-suffix-wrapper.js.map +1 -1
  1282. package/build-module/input-control/label.js.map +1 -1
  1283. package/build-module/input-control/reducer/actions.js.map +1 -1
  1284. package/build-module/input-control/reducer/reducer.js.map +1 -1
  1285. package/build-module/input-control/reducer/state.js.map +1 -1
  1286. package/build-module/input-control/styles/input-control-styles.js +76 -103
  1287. package/build-module/input-control/styles/input-control-styles.js.map +1 -1
  1288. package/build-module/input-control/types.js.map +1 -1
  1289. package/build-module/input-control/utils.js.map +1 -1
  1290. package/build-module/isolated-event-container/index.js.map +1 -1
  1291. package/build-module/item-group/context.js.map +1 -1
  1292. package/build-module/item-group/index.js.map +1 -1
  1293. package/build-module/item-group/item/component.js.map +1 -1
  1294. package/build-module/item-group/item/hook.js.map +1 -1
  1295. package/build-module/item-group/item/index.js.map +1 -1
  1296. package/build-module/item-group/item-group/component.js.map +1 -1
  1297. package/build-module/item-group/item-group/hook.js.map +1 -1
  1298. package/build-module/item-group/item-group/index.js.map +1 -1
  1299. package/build-module/item-group/styles.js.map +1 -1
  1300. package/build-module/item-group/types.js.map +1 -1
  1301. package/build-module/keyboard-shortcuts/index.js.map +1 -1
  1302. package/build-module/keyboard-shortcuts/index.native.js.map +1 -1
  1303. package/build-module/keyboard-shortcuts/types.js.map +1 -1
  1304. package/build-module/lock-unlock.js.map +1 -1
  1305. package/build-module/menu-group/index.js.map +1 -1
  1306. package/build-module/menu-group/types.js.map +1 -1
  1307. package/build-module/menu-item/index.js.map +1 -1
  1308. package/build-module/menu-item/types.js.map +1 -1
  1309. package/build-module/menu-items-choice/index.js.map +1 -1
  1310. package/build-module/menu-items-choice/types.js.map +1 -1
  1311. package/build-module/mobile/audio-player/audio-url-parser.native.js.map +1 -1
  1312. package/build-module/mobile/audio-player/index.native.js.map +1 -1
  1313. package/build-module/mobile/autocompletion-items.native.js.map +1 -1
  1314. package/build-module/mobile/badge/index.native.js.map +1 -1
  1315. package/build-module/mobile/bottom-sheet/bottom-sheet-context.native.js.map +1 -1
  1316. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/bottom-sheet-navigation-context.native.js.map +1 -1
  1317. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
  1318. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
  1319. package/build-module/mobile/bottom-sheet/button.native.js.map +1 -1
  1320. package/build-module/mobile/bottom-sheet/cell.native.js.map +1 -1
  1321. package/build-module/mobile/bottom-sheet/chevron-back.native.js.map +1 -1
  1322. package/build-module/mobile/bottom-sheet/color-cell.native.js.map +1 -1
  1323. package/build-module/mobile/bottom-sheet/cycle-picker-cell.native.js.map +1 -1
  1324. package/build-module/mobile/bottom-sheet/footer-message-cell.native.js.map +1 -1
  1325. package/build-module/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js.map +1 -1
  1326. package/build-module/mobile/bottom-sheet/index.native.js.map +1 -1
  1327. package/build-module/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
  1328. package/build-module/mobile/bottom-sheet/link-cell.native.js.map +1 -1
  1329. package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
  1330. package/build-module/mobile/bottom-sheet/lock-icon/index.native.js.map +1 -1
  1331. package/build-module/mobile/bottom-sheet/nav-bar/action-button.native.js.map +1 -1
  1332. package/build-module/mobile/bottom-sheet/nav-bar/apply-button.native.js.map +1 -1
  1333. package/build-module/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
  1334. package/build-module/mobile/bottom-sheet/nav-bar/heading.native.js.map +1 -1
  1335. package/build-module/mobile/bottom-sheet/nav-bar/index.native.js.map +1 -1
  1336. package/build-module/mobile/bottom-sheet/picker-cell.native.js.map +1 -1
  1337. package/build-module/mobile/bottom-sheet/radio-cell.native.js.map +1 -1
  1338. package/build-module/mobile/bottom-sheet/range-cell.native.js.map +1 -1
  1339. package/build-module/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
  1340. package/build-module/mobile/bottom-sheet/ripple.native.js.map +1 -1
  1341. package/build-module/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
  1342. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.android.js.map +1 -1
  1343. package/build-module/mobile/bottom-sheet/stepper-cell/stepper.ios.js.map +1 -1
  1344. package/build-module/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
  1345. package/build-module/mobile/bottom-sheet/switch-cell.native.js.map +1 -1
  1346. package/build-module/mobile/bottom-sheet-select-control/index.native.js +5 -1
  1347. package/build-module/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
  1348. package/build-module/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
  1349. package/build-module/mobile/clipboard/index.native.js.map +1 -1
  1350. package/build-module/mobile/color-settings/gradient-picker-screen.native.js.map +1 -1
  1351. package/build-module/mobile/color-settings/index.native.js.map +1 -1
  1352. package/build-module/mobile/color-settings/palette.screen.native.js.map +1 -1
  1353. package/build-module/mobile/color-settings/picker-screen.native.js.map +1 -1
  1354. package/build-module/mobile/color-settings/utils.native.js.map +1 -1
  1355. package/build-module/mobile/cycle-select-control/index.native.js.map +1 -1
  1356. package/build-module/mobile/dashicons/index.native.js.map +1 -1
  1357. package/build-module/mobile/focal-point-settings-panel/index.native.js.map +1 -1
  1358. package/build-module/mobile/global-styles-context/index.native.js.map +1 -1
  1359. package/build-module/mobile/global-styles-context/utils.native.js.map +1 -1
  1360. package/build-module/mobile/gradient/index.native.js.map +1 -1
  1361. package/build-module/mobile/gridicons/index.native.js.map +1 -1
  1362. package/build-module/mobile/html-text-input/index.native.js.map +1 -1
  1363. package/build-module/mobile/image/constants.js.map +1 -1
  1364. package/build-module/mobile/image/icon-customize.native.js.map +1 -1
  1365. package/build-module/mobile/image/icon-retry.native.js.map +1 -1
  1366. package/build-module/mobile/image/image-editing-button.native.js.map +1 -1
  1367. package/build-module/mobile/image/index.native.js.map +1 -1
  1368. package/build-module/mobile/image/utils/index.native.js.map +1 -1
  1369. package/build-module/mobile/keyboard-avoiding-view/index.android.js.map +1 -1
  1370. package/build-module/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
  1371. package/build-module/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
  1372. package/build-module/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
  1373. package/build-module/mobile/keyboard-aware-flat-list/use-keyboard-offset.native.js.map +1 -1
  1374. package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js.map +1 -1
  1375. package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-section.native.js.map +1 -1
  1376. package/build-module/mobile/keyboard-aware-flat-list/use-scroll.native.js.map +1 -1
  1377. package/build-module/mobile/keyboard-aware-flat-list/use-text-input-caret-position.native.js.map +1 -1
  1378. package/build-module/mobile/keyboard-aware-flat-list/use-text-input-offset.native.js.map +1 -1
  1379. package/build-module/mobile/layout-animation/index.native.js.map +1 -1
  1380. package/build-module/mobile/link-picker/index.native.js.map +1 -1
  1381. package/build-module/mobile/link-picker/link-picker-results.native.js.map +1 -1
  1382. package/build-module/mobile/link-picker/link-picker-screen.native.js.map +1 -1
  1383. package/build-module/mobile/link-settings/index.native.js.map +1 -1
  1384. package/build-module/mobile/link-settings/link-rel.native.js.map +1 -1
  1385. package/build-module/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
  1386. package/build-module/mobile/link-settings/link-settings-screen.native.js.map +1 -1
  1387. package/build-module/mobile/media-edit/index.native.js.map +1 -1
  1388. package/build-module/mobile/picker/index.android.js.map +1 -1
  1389. package/build-module/mobile/picker/index.ios.js.map +1 -1
  1390. package/build-module/mobile/segmented-control/index.native.js.map +1 -1
  1391. package/build-module/mobile/utils/alignments.native.js.map +1 -1
  1392. package/build-module/mobile/utils/get-px-from-css-unit.native.js.map +1 -1
  1393. package/build-module/mobile/utils/index.native.js.map +1 -1
  1394. package/build-module/mobile/utils/use-is-floating-keyboard.native.js.map +1 -1
  1395. package/build-module/mobile/utils/use-unit-converter-to-mobile.native.js.map +1 -1
  1396. package/build-module/modal/aria-helper.js.map +1 -1
  1397. package/build-module/modal/index.js.map +1 -1
  1398. package/build-module/modal/types.js.map +1 -1
  1399. package/build-module/navigable-container/container.js.map +1 -1
  1400. package/build-module/navigable-container/index.js.map +1 -1
  1401. package/build-module/navigable-container/menu.js.map +1 -1
  1402. package/build-module/navigable-container/tabbable.js.map +1 -1
  1403. package/build-module/navigable-container/types.js.map +1 -1
  1404. package/build-module/navigation/back-button/index.js +4 -0
  1405. package/build-module/navigation/back-button/index.js.map +1 -1
  1406. package/build-module/navigation/constants.js.map +1 -1
  1407. package/build-module/navigation/context.js.map +1 -1
  1408. package/build-module/navigation/group/context.js.map +1 -1
  1409. package/build-module/navigation/group/index.js +4 -0
  1410. package/build-module/navigation/group/index.js.map +1 -1
  1411. package/build-module/navigation/index.js +2 -0
  1412. package/build-module/navigation/index.js.map +1 -1
  1413. package/build-module/navigation/item/base-content.js.map +1 -1
  1414. package/build-module/navigation/item/base.js.map +1 -1
  1415. package/build-module/navigation/item/index.js +4 -0
  1416. package/build-module/navigation/item/index.js.map +1 -1
  1417. package/build-module/navigation/item/use-navigation-tree-item.js.map +1 -1
  1418. package/build-module/navigation/menu/context.js.map +1 -1
  1419. package/build-module/navigation/menu/index.js +3 -0
  1420. package/build-module/navigation/menu/index.js.map +1 -1
  1421. package/build-module/navigation/menu/menu-title-search.js.map +1 -1
  1422. package/build-module/navigation/menu/menu-title.js.map +1 -1
  1423. package/build-module/navigation/menu/search-no-results-found.js.map +1 -1
  1424. package/build-module/navigation/menu/use-navigation-tree-menu.js.map +1 -1
  1425. package/build-module/navigation/styles/navigation-styles.js +9 -9
  1426. package/build-module/navigation/styles/navigation-styles.js.map +1 -1
  1427. package/build-module/navigation/types.js.map +1 -1
  1428. package/build-module/navigation/use-create-navigation-tree.js.map +1 -1
  1429. package/build-module/navigation/use-navigation-tree-nodes.js.map +1 -1
  1430. package/build-module/navigation/utils.js.map +1 -1
  1431. package/build-module/navigator/context.js.map +1 -1
  1432. package/build-module/navigator/index.js.map +1 -1
  1433. package/build-module/navigator/navigator-back-button/component.js.map +1 -1
  1434. package/build-module/navigator/navigator-back-button/hook.js.map +1 -1
  1435. package/build-module/navigator/navigator-back-button/index.js.map +1 -1
  1436. package/build-module/navigator/navigator-button/component.js.map +1 -1
  1437. package/build-module/navigator/navigator-button/hook.js.map +1 -1
  1438. package/build-module/navigator/navigator-button/index.js.map +1 -1
  1439. package/build-module/navigator/navigator-provider/component.js +4 -0
  1440. package/build-module/navigator/navigator-provider/component.js.map +1 -1
  1441. package/build-module/navigator/navigator-provider/index.js.map +1 -1
  1442. package/build-module/navigator/navigator-screen/component.js.map +1 -1
  1443. package/build-module/navigator/navigator-screen/index.js.map +1 -1
  1444. package/build-module/navigator/navigator-to-parent-button/component.js.map +1 -1
  1445. package/build-module/navigator/navigator-to-parent-button/index.js.map +1 -1
  1446. package/build-module/navigator/styles.js.map +1 -1
  1447. package/build-module/navigator/types.js.map +1 -1
  1448. package/build-module/navigator/use-navigator.js.map +1 -1
  1449. package/build-module/navigator/utils/router.js.map +1 -1
  1450. package/build-module/notice/index.js.map +1 -1
  1451. package/build-module/notice/index.native.js.map +1 -1
  1452. package/build-module/notice/list.js.map +1 -1
  1453. package/build-module/notice/list.native.js.map +1 -1
  1454. package/build-module/notice/types.js.map +1 -1
  1455. package/build-module/number-control/index.js.map +1 -1
  1456. package/build-module/number-control/styles/number-control-styles.js.map +1 -1
  1457. package/build-module/number-control/types.js.map +1 -1
  1458. package/build-module/palette-edit/index.js.map +1 -1
  1459. package/build-module/palette-edit/styles.js +1 -1
  1460. package/build-module/palette-edit/styles.js.map +1 -1
  1461. package/build-module/palette-edit/types.js.map +1 -1
  1462. package/build-module/panel/actions.native.js.map +1 -1
  1463. package/build-module/panel/body.js.map +1 -1
  1464. package/build-module/panel/body.native.js.map +1 -1
  1465. package/build-module/panel/bottom-separator-cover.native.js.map +1 -1
  1466. package/build-module/panel/header.js.map +1 -1
  1467. package/build-module/panel/index.js.map +1 -1
  1468. package/build-module/panel/row.js +5 -0
  1469. package/build-module/panel/row.js.map +1 -1
  1470. package/build-module/panel/types.js.map +1 -1
  1471. package/build-module/placeholder/index.js.map +1 -1
  1472. package/build-module/placeholder/types.js.map +1 -1
  1473. package/build-module/popover/index.js.map +1 -1
  1474. package/build-module/popover/overlay-middlewares.js.map +1 -1
  1475. package/build-module/popover/types.js.map +1 -1
  1476. package/build-module/popover/utils.js.map +1 -1
  1477. package/build-module/private-apis.js.map +1 -1
  1478. package/build-module/private-apis.native.js.map +1 -1
  1479. package/build-module/progress-bar/index.js +4 -2
  1480. package/build-module/progress-bar/index.js.map +1 -1
  1481. package/build-module/progress-bar/styles.js +16 -11
  1482. package/build-module/progress-bar/styles.js.map +1 -1
  1483. package/build-module/progress-bar/types.js.map +1 -1
  1484. package/build-module/query-controls/author-select.js.map +1 -1
  1485. package/build-module/query-controls/category-select.js.map +1 -1
  1486. package/build-module/query-controls/index.js.map +1 -1
  1487. package/build-module/query-controls/index.native.js.map +1 -1
  1488. package/build-module/query-controls/terms.js.map +1 -1
  1489. package/build-module/query-controls/types.js.map +1 -1
  1490. package/build-module/radio-control/index.js.map +1 -1
  1491. package/build-module/radio-control/index.native.js.map +1 -1
  1492. package/build-module/radio-control/types.js.map +1 -1
  1493. package/build-module/radio-group/context.js.map +1 -1
  1494. package/build-module/radio-group/index.js.map +1 -1
  1495. package/build-module/radio-group/radio.js.map +1 -1
  1496. package/build-module/radio-group/types.js.map +1 -1
  1497. package/build-module/range-control/index.js.map +1 -1
  1498. package/build-module/range-control/index.native.js.map +1 -1
  1499. package/build-module/range-control/input-range.js.map +1 -1
  1500. package/build-module/range-control/mark.js.map +1 -1
  1501. package/build-module/range-control/rail.js.map +1 -1
  1502. package/build-module/range-control/styles/range-control-styles.js +14 -14
  1503. package/build-module/range-control/styles/range-control-styles.js.map +1 -1
  1504. package/build-module/range-control/tooltip.js.map +1 -1
  1505. package/build-module/range-control/types.js.map +1 -1
  1506. package/build-module/range-control/utils.js.map +1 -1
  1507. package/build-module/resizable-box/index.js.map +1 -1
  1508. package/build-module/resizable-box/index.native.js.map +1 -1
  1509. package/build-module/resizable-box/resize-tooltip/index.js.map +1 -1
  1510. package/build-module/resizable-box/resize-tooltip/label.js.map +1 -1
  1511. package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js +3 -3
  1512. package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js.map +1 -1
  1513. package/build-module/resizable-box/resize-tooltip/utils.js.map +1 -1
  1514. package/build-module/responsive-wrapper/index.js.map +1 -1
  1515. package/build-module/responsive-wrapper/types.js.map +1 -1
  1516. package/build-module/sandbox/index.js.map +1 -1
  1517. package/build-module/sandbox/index.native.js.map +1 -1
  1518. package/build-module/sandbox/types.js.map +1 -1
  1519. package/build-module/scroll-lock/index.js.map +1 -1
  1520. package/build-module/scrollable/component.js.map +1 -1
  1521. package/build-module/scrollable/hook.js.map +1 -1
  1522. package/build-module/scrollable/index.js.map +1 -1
  1523. package/build-module/scrollable/styles.js.map +1 -1
  1524. package/build-module/scrollable/types.js.map +1 -1
  1525. package/build-module/search-control/index.js.map +1 -1
  1526. package/build-module/search-control/index.native.js.map +1 -1
  1527. package/build-module/search-control/styles.js +1 -1
  1528. package/build-module/search-control/styles.js.map +1 -1
  1529. package/build-module/search-control/types.js.map +1 -1
  1530. package/build-module/select-control/chevron-down.js.map +1 -1
  1531. package/build-module/select-control/index.js +1 -16
  1532. package/build-module/select-control/index.js.map +1 -1
  1533. package/build-module/select-control/index.native.js.map +1 -1
  1534. package/build-module/select-control/styles/select-control-styles.js +2 -2
  1535. package/build-module/select-control/styles/select-control-styles.js.map +1 -1
  1536. package/build-module/select-control/types.js.map +1 -1
  1537. package/build-module/shortcut/index.js.map +1 -1
  1538. package/build-module/shortcut/types.js.map +1 -1
  1539. package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
  1540. package/build-module/slot-fill/bubbles-virtually/observable-map.js +60 -0
  1541. package/build-module/slot-fill/bubbles-virtually/observable-map.js.map +1 -0
  1542. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js +3 -6
  1543. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
  1544. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js +7 -12
  1545. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
  1546. package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
  1547. package/build-module/slot-fill/bubbles-virtually/use-slot-fills.js +2 -12
  1548. package/build-module/slot-fill/bubbles-virtually/use-slot-fills.js.map +1 -1
  1549. package/build-module/slot-fill/bubbles-virtually/use-slot.js +2 -12
  1550. package/build-module/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
  1551. package/build-module/slot-fill/context.js.map +1 -1
  1552. package/build-module/slot-fill/fill.js.map +1 -1
  1553. package/build-module/slot-fill/index.js.map +1 -1
  1554. package/build-module/slot-fill/index.native.js.map +1 -1
  1555. package/build-module/slot-fill/provider.js.map +1 -1
  1556. package/build-module/slot-fill/slot.js.map +1 -1
  1557. package/build-module/slot-fill/types.js.map +1 -1
  1558. package/build-module/slot-fill/use-slot.js.map +1 -1
  1559. package/build-module/snackbar/index.js +1 -1
  1560. package/build-module/snackbar/index.js.map +1 -1
  1561. package/build-module/snackbar/list.js.map +1 -1
  1562. package/build-module/snackbar/types.js.map +1 -1
  1563. package/build-module/spacer/component.js.map +1 -1
  1564. package/build-module/spacer/hook.js.map +1 -1
  1565. package/build-module/spacer/index.js.map +1 -1
  1566. package/build-module/spacer/types.js.map +1 -1
  1567. package/build-module/spinner/index.js.map +1 -1
  1568. package/build-module/spinner/index.native.js.map +1 -1
  1569. package/build-module/spinner/styles.js +3 -3
  1570. package/build-module/spinner/styles.js.map +1 -1
  1571. package/build-module/style-provider/index.js.map +1 -1
  1572. package/build-module/style-provider/index.native.js.map +1 -1
  1573. package/build-module/style-provider/types.js.map +1 -1
  1574. package/build-module/surface/component.js.map +1 -1
  1575. package/build-module/surface/hook.js.map +1 -1
  1576. package/build-module/surface/index.js.map +1 -1
  1577. package/build-module/surface/styles.js.map +1 -1
  1578. package/build-module/surface/types.js.map +1 -1
  1579. package/build-module/tab-panel/index.js.map +1 -1
  1580. package/build-module/tab-panel/types.js.map +1 -1
  1581. package/build-module/tabs/context.js.map +1 -1
  1582. package/build-module/tabs/index.js +7 -0
  1583. package/build-module/tabs/index.js.map +1 -1
  1584. package/build-module/tabs/styles.js +1 -1
  1585. package/build-module/tabs/styles.js.map +1 -1
  1586. package/build-module/tabs/tab.js.map +1 -1
  1587. package/build-module/tabs/tablist.js.map +1 -1
  1588. package/build-module/tabs/tabpanel.js.map +1 -1
  1589. package/build-module/tabs/types.js.map +1 -1
  1590. package/build-module/text/component.js.map +1 -1
  1591. package/build-module/text/get-line-height.js.map +1 -1
  1592. package/build-module/text/hook.js.map +1 -1
  1593. package/build-module/text/index.js.map +1 -1
  1594. package/build-module/text/index.native.js.map +1 -1
  1595. package/build-module/text/styles/emotion-css.native.js.map +1 -1
  1596. package/build-module/text/styles/font-family.native.js.map +1 -1
  1597. package/build-module/text/styles/text-mixins.native.js.map +1 -1
  1598. package/build-module/text/styles.js +7 -7
  1599. package/build-module/text/styles.js.map +1 -1
  1600. package/build-module/text/types.js.map +1 -1
  1601. package/build-module/text/utils.js.map +1 -1
  1602. package/build-module/text-control/index.js.map +1 -1
  1603. package/build-module/text-control/index.native.js.map +1 -1
  1604. package/build-module/text-control/types.js.map +1 -1
  1605. package/build-module/text-highlight/index.js.map +1 -1
  1606. package/build-module/text-highlight/types.js.map +1 -1
  1607. package/build-module/textarea-control/index.js.map +1 -1
  1608. package/build-module/textarea-control/index.native.js.map +1 -1
  1609. package/build-module/textarea-control/styles/textarea-control-styles.js +1 -1
  1610. package/build-module/textarea-control/styles/textarea-control-styles.js.map +1 -1
  1611. package/build-module/textarea-control/types.js.map +1 -1
  1612. package/build-module/theme/color-algorithms.js.map +1 -1
  1613. package/build-module/theme/index.js.map +1 -1
  1614. package/build-module/theme/styles.js +1 -1
  1615. package/build-module/theme/styles.js.map +1 -1
  1616. package/build-module/theme/types.js.map +1 -1
  1617. package/build-module/tip/index.js.map +1 -1
  1618. package/build-module/tip/types.js.map +1 -1
  1619. package/build-module/toggle-control/index.js +6 -4
  1620. package/build-module/toggle-control/index.js.map +1 -1
  1621. package/build-module/toggle-control/index.native.js.map +1 -1
  1622. package/build-module/toggle-control/types.js.map +1 -1
  1623. package/build-module/toggle-group-control/context.js.map +1 -1
  1624. package/build-module/toggle-group-control/index.js.map +1 -1
  1625. package/build-module/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -1
  1626. package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
  1627. package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
  1628. package/build-module/toggle-group-control/toggle-group-control/index.js.map +1 -1
  1629. package/build-module/toggle-group-control/toggle-group-control/styles.js +1 -1
  1630. package/build-module/toggle-group-control/toggle-group-control/styles.js.map +1 -1
  1631. package/build-module/toggle-group-control/toggle-group-control/utils.js.map +1 -1
  1632. package/build-module/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  1633. package/build-module/toggle-group-control/toggle-group-control-option/index.js.map +1 -1
  1634. package/build-module/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  1635. package/build-module/toggle-group-control/toggle-group-control-option-base/index.js.map +1 -1
  1636. package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js +2 -2
  1637. package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
  1638. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
  1639. package/build-module/toggle-group-control/toggle-group-control-option-icon/index.js.map +1 -1
  1640. package/build-module/toggle-group-control/types.js.map +1 -1
  1641. package/build-module/toolbar/index.js.map +1 -1
  1642. package/build-module/toolbar/toolbar/index.js.map +1 -1
  1643. package/build-module/toolbar/toolbar/toolbar-container.js.map +1 -1
  1644. package/build-module/toolbar/toolbar/toolbar-container.native.js.map +1 -1
  1645. package/build-module/toolbar/toolbar/types.js.map +1 -1
  1646. package/build-module/toolbar/toolbar-button/index.js.map +1 -1
  1647. package/build-module/toolbar/toolbar-button/toolbar-button-container.js.map +1 -1
  1648. package/build-module/toolbar/toolbar-button/toolbar-button-container.native.js.map +1 -1
  1649. package/build-module/toolbar/toolbar-button/types.js.map +1 -1
  1650. package/build-module/toolbar/toolbar-context/index.js.map +1 -1
  1651. package/build-module/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
  1652. package/build-module/toolbar/toolbar-group/index.js.map +1 -1
  1653. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
  1654. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.native.js.map +1 -1
  1655. package/build-module/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
  1656. package/build-module/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
  1657. package/build-module/toolbar/toolbar-group/types.js.map +1 -1
  1658. package/build-module/toolbar/toolbar-item/index.js.map +1 -1
  1659. package/build-module/toolbar/toolbar-item/index.native.js.map +1 -1
  1660. package/build-module/toolbar/toolbar-item/types.js.map +1 -1
  1661. package/build-module/tools-panel/context.js.map +1 -1
  1662. package/build-module/tools-panel/index.js.map +1 -1
  1663. package/build-module/tools-panel/styles.js +2 -2
  1664. package/build-module/tools-panel/styles.js.map +1 -1
  1665. package/build-module/tools-panel/tools-panel/component.js.map +1 -1
  1666. package/build-module/tools-panel/tools-panel/hook.js.map +1 -1
  1667. package/build-module/tools-panel/tools-panel/index.js.map +1 -1
  1668. package/build-module/tools-panel/tools-panel-header/component.js.map +1 -1
  1669. package/build-module/tools-panel/tools-panel-header/hook.js.map +1 -1
  1670. package/build-module/tools-panel/tools-panel-header/index.js.map +1 -1
  1671. package/build-module/tools-panel/tools-panel-item/component.js.map +1 -1
  1672. package/build-module/tools-panel/tools-panel-item/hook.js.map +1 -1
  1673. package/build-module/tools-panel/tools-panel-item/index.js.map +1 -1
  1674. package/build-module/tools-panel/types.js.map +1 -1
  1675. package/build-module/tooltip/index.js.map +1 -1
  1676. package/build-module/tooltip/index.native.js.map +1 -1
  1677. package/build-module/tooltip/types.js.map +1 -1
  1678. package/build-module/tree-grid/cell.js.map +1 -1
  1679. package/build-module/tree-grid/index.js.map +1 -1
  1680. package/build-module/tree-grid/item.js.map +1 -1
  1681. package/build-module/tree-grid/roving-tab-index-context.js.map +1 -1
  1682. package/build-module/tree-grid/roving-tab-index-item.js.map +1 -1
  1683. package/build-module/tree-grid/roving-tab-index.js.map +1 -1
  1684. package/build-module/tree-grid/row.js.map +1 -1
  1685. package/build-module/tree-grid/types.js.map +1 -1
  1686. package/build-module/tree-select/index.js.map +1 -1
  1687. package/build-module/tree-select/types.js.map +1 -1
  1688. package/build-module/truncate/component.js.map +1 -1
  1689. package/build-module/truncate/hook.js +4 -1
  1690. package/build-module/truncate/hook.js.map +1 -1
  1691. package/build-module/truncate/index.js.map +1 -1
  1692. package/build-module/truncate/styles.js.map +1 -1
  1693. package/build-module/truncate/types.js.map +1 -1
  1694. package/build-module/truncate/utils.js.map +1 -1
  1695. package/build-module/unit-control/index.js.map +1 -1
  1696. package/build-module/unit-control/index.native.js.map +1 -1
  1697. package/build-module/unit-control/styles/unit-control-styles.js +2 -2
  1698. package/build-module/unit-control/styles/unit-control-styles.js.map +1 -1
  1699. package/build-module/unit-control/types.js.map +1 -1
  1700. package/build-module/unit-control/unit-select-control.js.map +1 -1
  1701. package/build-module/unit-control/utils.js.map +1 -1
  1702. package/build-module/utils/base-label.js.map +1 -1
  1703. package/build-module/utils/box-sizing.js.map +1 -1
  1704. package/build-module/utils/breakpoint-values.js.map +1 -1
  1705. package/build-module/utils/breakpoint.js.map +1 -1
  1706. package/build-module/utils/colors-values.js.map +1 -1
  1707. package/build-module/utils/colors.js.map +1 -1
  1708. package/build-module/utils/config-values.js.map +1 -1
  1709. package/build-module/utils/font-size.js.map +1 -1
  1710. package/build-module/utils/font-values.js.map +1 -1
  1711. package/build-module/utils/font.js.map +1 -1
  1712. package/build-module/utils/get-valid-children.js.map +1 -1
  1713. package/build-module/utils/hooks/emotion.d.js.map +1 -1
  1714. package/build-module/utils/hooks/index.js.map +1 -1
  1715. package/build-module/utils/hooks/use-controlled-state.js.map +1 -1
  1716. package/build-module/utils/hooks/use-controlled-value.js.map +1 -1
  1717. package/build-module/utils/hooks/use-cx.js.map +1 -1
  1718. package/build-module/utils/hooks/use-update-effect.js.map +1 -1
  1719. package/build-module/utils/index.js.map +1 -1
  1720. package/build-module/utils/input/base.js.map +1 -1
  1721. package/build-module/utils/input/index.js.map +1 -1
  1722. package/build-module/utils/input/input-control.js.map +1 -1
  1723. package/build-module/utils/math.js.map +1 -1
  1724. package/build-module/utils/reduce-motion.js +4 -0
  1725. package/build-module/utils/reduce-motion.js.map +1 -1
  1726. package/build-module/utils/rtl.js +2 -2
  1727. package/build-module/utils/rtl.js.map +1 -1
  1728. package/build-module/utils/space.js.map +1 -1
  1729. package/build-module/utils/strings.js.map +1 -1
  1730. package/build-module/utils/style-mixins.js.map +1 -1
  1731. package/build-module/utils/types.js.map +1 -1
  1732. package/build-module/utils/unit-values.js.map +1 -1
  1733. package/build-module/utils/use-deprecated-props.js.map +1 -1
  1734. package/build-module/utils/use-responsive-value.js.map +1 -1
  1735. package/build-module/utils/values.js.map +1 -1
  1736. package/build-module/utils/with-ignore-ime-events.js.map +1 -1
  1737. package/build-module/v-stack/component.js.map +1 -1
  1738. package/build-module/v-stack/hook.js.map +1 -1
  1739. package/build-module/v-stack/index.js.map +1 -1
  1740. package/build-module/v-stack/types.js.map +1 -1
  1741. package/build-module/view/component.js +5 -1
  1742. package/build-module/view/component.js.map +1 -1
  1743. package/build-module/view/index.js.map +1 -1
  1744. package/build-module/view/types.js.map +1 -1
  1745. package/build-module/visually-hidden/component.js.map +1 -1
  1746. package/build-module/visually-hidden/index.js.map +1 -1
  1747. package/build-module/visually-hidden/styles.js.map +1 -1
  1748. package/build-module/visually-hidden/types.js.map +1 -1
  1749. package/build-module/z-stack/component.js.map +1 -1
  1750. package/build-module/z-stack/index.js.map +1 -1
  1751. package/build-module/z-stack/styles.js +2 -2
  1752. package/build-module/z-stack/styles.js.map +1 -1
  1753. package/build-module/z-stack/types.js.map +1 -1
  1754. package/build-style/style-rtl.css +43 -36
  1755. package/build-style/style.css +43 -36
  1756. package/build-types/alignment-matrix-control/stories/index.story.d.ts +1 -1
  1757. package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -1
  1758. package/build-types/angle-picker-control/stories/index.story.d.ts +1 -1
  1759. package/build-types/animate/stories/index.story.d.ts +7 -7
  1760. package/build-types/animate/stories/index.story.d.ts.map +1 -1
  1761. package/build-types/base-control/stories/index.story.d.ts +1 -1
  1762. package/build-types/border-box-control/stories/index.story.d.ts +1 -1
  1763. package/build-types/border-control/stories/index.story.d.ts +6 -6
  1764. package/build-types/box-control/stories/index.story.d.ts +6 -6
  1765. package/build-types/button/stories/e2e/index.story.d.ts +1 -1
  1766. package/build-types/button/stories/e2e/index.story.d.ts.map +1 -1
  1767. package/build-types/button/stories/index.story.d.ts +7 -7
  1768. package/build-types/button/stories/index.story.d.ts.map +1 -1
  1769. package/build-types/card/stories/index.story.d.ts +2 -2
  1770. package/build-types/circular-option-picker/stories/index.story.d.ts +5 -5
  1771. package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
  1772. package/build-types/color-palette/stories/index.story.d.ts +3 -3
  1773. package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
  1774. package/build-types/color-picker/stories/index.story.d.ts +1 -1
  1775. package/build-types/color-picker/styles.d.ts +1 -1
  1776. package/build-types/combobox-control/stories/index.story.d.ts +2 -2
  1777. package/build-types/confirm-dialog/stories/index.story.d.ts +2 -2
  1778. package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -1
  1779. package/build-types/custom-gradient-picker/stories/index.story.d.ts +1 -1
  1780. package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
  1781. package/build-types/custom-select-control/index.d.ts.map +1 -1
  1782. package/build-types/custom-select-control-v2/stories/default.story.d.ts +3 -3
  1783. package/build-types/custom-select-control-v2/stories/legacy.story.d.ts +3 -3
  1784. package/build-types/custom-select-control-v2/stories/legacy.story.d.ts.map +1 -1
  1785. package/build-types/custom-select-control-v2/types.d.ts +7 -0
  1786. package/build-types/custom-select-control-v2/types.d.ts.map +1 -1
  1787. package/build-types/date-time/time/styles.d.ts +4 -4
  1788. package/build-types/dimension-control/stories/index.story.d.ts +2 -2
  1789. package/build-types/dimension-control/stories/index.story.d.ts.map +1 -1
  1790. package/build-types/drop-zone/stories/index.story.d.ts +1 -1
  1791. package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
  1792. package/build-types/dropdown/stories/index.story.d.ts +4 -4
  1793. package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
  1794. package/build-types/dropdown-menu/stories/index.story.d.ts +2 -2
  1795. package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
  1796. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts +1 -1
  1797. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts.map +1 -1
  1798. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts +3 -3
  1799. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts.map +1 -1
  1800. package/build-types/external-link/index.d.ts +3 -0
  1801. package/build-types/external-link/index.d.ts.map +1 -1
  1802. package/build-types/focal-point-picker/stories/index.story.d.ts +4 -4
  1803. package/build-types/form-file-upload/stories/index.story.d.ts +5 -5
  1804. package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
  1805. package/build-types/form-toggle/index.d.ts +4 -3
  1806. package/build-types/form-toggle/index.d.ts.map +1 -1
  1807. package/build-types/form-toggle/stories/index.story.d.ts +1 -1
  1808. package/build-types/form-toggle/stories/index.story.d.ts.map +1 -1
  1809. package/build-types/gradient-picker/stories/index.story.d.ts +3 -3
  1810. package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
  1811. package/build-types/guide/stories/index.story.d.ts +1 -1
  1812. package/build-types/guide/stories/index.story.d.ts.map +1 -1
  1813. package/build-types/higher-order/with-fallback-styles/index.d.ts.map +1 -1
  1814. package/build-types/higher-order/with-filters/index.d.ts.map +1 -1
  1815. package/build-types/higher-order/with-focus-return/index.d.ts.map +1 -1
  1816. package/build-types/higher-order/with-notices/index.d.ts.map +1 -1
  1817. package/build-types/icon/stories/index.story.d.ts +4 -4
  1818. package/build-types/icon/stories/index.story.d.ts.map +1 -1
  1819. package/build-types/input-control/backdrop.d.ts +1 -2
  1820. package/build-types/input-control/backdrop.d.ts.map +1 -1
  1821. package/build-types/input-control/index.d.ts.map +1 -1
  1822. package/build-types/input-control/input-base.d.ts.map +1 -1
  1823. package/build-types/input-control/input-field.d.ts.map +1 -1
  1824. package/build-types/input-control/stories/index.story.d.ts +6 -6
  1825. package/build-types/input-control/stories/index.story.d.ts.map +1 -1
  1826. package/build-types/input-control/styles/input-control-styles.d.ts +16 -21
  1827. package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
  1828. package/build-types/input-control/types.d.ts +3 -12
  1829. package/build-types/input-control/types.d.ts.map +1 -1
  1830. package/build-types/keyboard-shortcuts/stories/index.story.d.ts +1 -1
  1831. package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +1 -1
  1832. package/build-types/menu-group/stories/index.story.d.ts +1 -1
  1833. package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
  1834. package/build-types/menu-item/stories/index.story.d.ts +4 -4
  1835. package/build-types/navigation/back-button/index.d.ts +3 -0
  1836. package/build-types/navigation/back-button/index.d.ts.map +1 -1
  1837. package/build-types/navigation/group/index.d.ts +3 -0
  1838. package/build-types/navigation/group/index.d.ts.map +1 -1
  1839. package/build-types/navigation/index.d.ts +2 -0
  1840. package/build-types/navigation/index.d.ts.map +1 -1
  1841. package/build-types/navigation/item/index.d.ts +3 -0
  1842. package/build-types/navigation/item/index.d.ts.map +1 -1
  1843. package/build-types/navigation/menu/index.d.ts +3 -0
  1844. package/build-types/navigation/menu/index.d.ts.map +1 -1
  1845. package/build-types/navigation/stories/index.story.d.ts +11 -6
  1846. package/build-types/navigation/stories/index.story.d.ts.map +1 -1
  1847. package/build-types/navigator/navigator-provider/component.d.ts.map +1 -1
  1848. package/build-types/notice/stories/index.story.d.ts +4 -4
  1849. package/build-types/notice/stories/index.story.d.ts.map +1 -1
  1850. package/build-types/number-control/index.d.ts +1 -1
  1851. package/build-types/number-control/stories/index.story.d.ts +2 -2
  1852. package/build-types/palette-edit/stories/index.story.d.ts +2 -2
  1853. package/build-types/palette-edit/stories/index.story.d.ts.map +1 -1
  1854. package/build-types/popover/utils.d.ts +1 -1
  1855. package/build-types/popover/utils.d.ts.map +1 -1
  1856. package/build-types/progress-bar/index.d.ts.map +1 -1
  1857. package/build-types/progress-bar/styles.d.ts +0 -1
  1858. package/build-types/progress-bar/styles.d.ts.map +1 -1
  1859. package/build-types/query-controls/stories/index.story.d.ts +1 -1
  1860. package/build-types/query-controls/stories/index.story.d.ts.map +1 -1
  1861. package/build-types/range-control/styles/range-control-styles.d.ts +1 -1
  1862. package/build-types/resizable-box/stories/index.story.d.ts +2 -2
  1863. package/build-types/responsive-wrapper/stories/index.story.d.ts +1 -1
  1864. package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -1
  1865. package/build-types/sandbox/stories/index.story.d.ts +1 -1
  1866. package/build-types/sandbox/stories/index.story.d.ts.map +1 -1
  1867. package/build-types/search-control/stories/index.story.d.ts +2 -2
  1868. package/build-types/search-control/stories/index.story.d.ts.map +1 -1
  1869. package/build-types/select-control/index.d.ts.map +1 -1
  1870. package/build-types/select-control/stories/index.story.d.ts +2 -2
  1871. package/build-types/select-control/stories/index.story.d.ts.map +1 -1
  1872. package/build-types/shortcut/stories/index.story.d.ts +1 -1
  1873. package/build-types/shortcut/stories/index.story.d.ts.map +1 -1
  1874. package/build-types/slot-fill/bubbles-virtually/observable-map.d.ts +19 -0
  1875. package/build-types/slot-fill/bubbles-virtually/observable-map.d.ts.map +1 -0
  1876. package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts.map +1 -1
  1877. package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts.map +1 -1
  1878. package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts.map +1 -1
  1879. package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts.map +1 -1
  1880. package/build-types/slot-fill/types.d.ts +6 -2
  1881. package/build-types/slot-fill/types.d.ts.map +1 -1
  1882. package/build-types/tab-panel/stories/index.story.d.ts +4 -4
  1883. package/build-types/tab-panel/stories/index.story.d.ts.map +1 -1
  1884. package/build-types/tabs/index.d.ts.map +1 -1
  1885. package/build-types/tabs/stories/index.story.d.ts +9 -9
  1886. package/build-types/tabs/stories/index.story.d.ts.map +1 -1
  1887. package/build-types/text/stories/index.story.d.ts +3 -3
  1888. package/build-types/text/styles.d.ts.map +1 -1
  1889. package/build-types/theme/stories/index.story.d.ts +1 -1
  1890. package/build-types/toggle-control/index.d.ts +11 -3
  1891. package/build-types/toggle-control/index.d.ts.map +1 -1
  1892. package/build-types/toggle-control/stories/index.story.d.ts +4 -4
  1893. package/build-types/toggle-control/stories/index.story.d.ts.map +1 -1
  1894. package/build-types/toggle-group-control/toggle-group-control/styles.d.ts +1 -1
  1895. package/build-types/toggle-group-control/toggle-group-control/styles.d.ts.map +1 -1
  1896. package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts +2 -2
  1897. package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts.map +1 -1
  1898. package/build-types/toolbar/stories/index.story.d.ts +3 -3
  1899. package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
  1900. package/build-types/tooltip/stories/index.story.d.ts +1 -1
  1901. package/build-types/tooltip/stories/index.story.d.ts.map +1 -1
  1902. package/build-types/tree-grid/stories/index.story.d.ts +1 -1
  1903. package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
  1904. package/build-types/tree-select/stories/index.story.d.ts +1 -1
  1905. package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
  1906. package/build-types/truncate/hook.d.ts.map +1 -1
  1907. package/build-types/unit-control/styles/unit-control-styles.d.ts +1 -1
  1908. package/build-types/unit-control/utils.d.ts +3 -3
  1909. package/build-types/unit-control/utils.d.ts.map +1 -1
  1910. package/build-types/utils/reduce-motion.d.ts +4 -0
  1911. package/build-types/utils/reduce-motion.d.ts.map +1 -1
  1912. package/build-types/v-stack/stories/index.story.d.ts +1 -1
  1913. package/package.json +20 -21
  1914. package/src/checkbox-control/style.scss +22 -24
  1915. package/src/color-palette/index.native.js +4 -3
  1916. package/src/combobox-control/README.md +4 -4
  1917. package/src/custom-select-control/index.js +45 -55
  1918. package/src/custom-select-control/style.scss +6 -0
  1919. package/src/custom-select-control-v2/types.ts +7 -0
  1920. package/src/dimension-control/stories/index.story.tsx +4 -4
  1921. package/src/dimension-control/test/__snapshots__/index.test.js.snap +60 -12
  1922. package/src/external-link/index.tsx +9 -11
  1923. package/src/external-link/style.scss +12 -0
  1924. package/src/form-toggle/index.tsx +10 -2
  1925. package/src/form-toggle/stories/index.story.tsx +1 -1
  1926. package/src/heading/test/__snapshots__/index.tsx.snap +5 -2
  1927. package/src/input-control/backdrop.tsx +1 -6
  1928. package/src/input-control/index.tsx +1 -6
  1929. package/src/input-control/input-base.tsx +1 -8
  1930. package/src/input-control/input-field.tsx +0 -10
  1931. package/src/input-control/styles/input-control-styles.tsx +61 -77
  1932. package/src/input-control/types.ts +2 -13
  1933. package/src/mobile/bottom-sheet-select-control/index.native.js +7 -3
  1934. package/src/navigation/README.md +4 -0
  1935. package/src/navigation/back-button/index.tsx +3 -0
  1936. package/src/navigation/group/index.tsx +3 -0
  1937. package/src/navigation/index.tsx +2 -0
  1938. package/src/navigation/item/index.tsx +3 -0
  1939. package/src/navigation/menu/index.tsx +3 -0
  1940. package/src/navigation/stories/index.story.tsx +7 -1
  1941. package/src/navigator/navigator-provider/component.tsx +7 -1
  1942. package/src/placeholder/style.scss +3 -7
  1943. package/src/progress-bar/index.tsx +8 -2
  1944. package/src/progress-bar/styles.ts +2 -3
  1945. package/src/progress-bar/test/index.tsx +4 -1
  1946. package/src/select-control/index.tsx +1 -19
  1947. package/src/slot-fill/bubbles-virtually/observable-map.ts +79 -0
  1948. package/src/slot-fill/bubbles-virtually/slot-fill-context.ts +3 -6
  1949. package/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx +10 -18
  1950. package/src/slot-fill/bubbles-virtually/use-slot-fills.ts +2 -10
  1951. package/src/slot-fill/bubbles-virtually/use-slot.ts +2 -10
  1952. package/src/slot-fill/test/observable-map.js +83 -0
  1953. package/src/slot-fill/types.ts +7 -2
  1954. package/src/snackbar/index.tsx +1 -1
  1955. package/src/style.scss +1 -0
  1956. package/src/tabs/index.tsx +8 -0
  1957. package/src/tabs/test/index.tsx +38 -0
  1958. package/src/text/styles.ts +1 -0
  1959. package/src/text/test/__snapshots__/index.tsx.snap +4 -1
  1960. package/src/toggle-control/index.tsx +16 -11
  1961. package/src/toolbar/toolbar-group/style.scss +1 -6
  1962. package/src/tooltip/test/index.tsx +5 -8
  1963. package/src/truncate/hook.ts +4 -0
  1964. package/src/utils/reduce-motion.js +4 -0
  1965. package/tsconfig.tsbuildinfo +1 -1
  1966. package/build/external-link/styles/external-link-styles.js +0 -25
  1967. package/build/external-link/styles/external-link-styles.js.map +0 -1
  1968. package/build-module/external-link/styles/external-link-styles.js +0 -25
  1969. package/build-module/external-link/styles/external-link-styles.js.map +0 -1
  1970. package/build-types/external-link/styles/external-link-styles.d.ts +0 -10
  1971. package/build-types/external-link/styles/external-link-styles.d.ts.map +0 -1
  1972. package/src/external-link/styles/external-link-styles.ts +0 -17
@@ -1 +1 @@
1
- {"version":3,"names":["classnames","useState","useRef","useEffect","useCallback","useMemo","__","sprintf","lineSolid","moreVertical","plus","__experimentalUseFocusOutside","useFocusOutside","useDebounce","Button","ColorPicker","FlexItem","HStack","ItemGroup","VStack","GradientPicker","ColorPalette","DropdownMenu","Popover","PaletteActionsContainer","PaletteEditStyles","PaletteHeading","PaletteHStackHeader","IndicatorStyled","PaletteItem","NameContainer","NameInputControl","DoneButton","RemoveButton","NavigableMenu","DEFAULT_GRADIENT","CustomGradientPicker","kebabCase","DEFAULT_COLOR","NameInput","value","onChange","label","createElement","hideLabelFromVision","getNameAndSlugForPosition","elements","slugPrefix","nameRegex","RegExp","position","reduce","previousValue","currentValue","slug","matches","match","id","parseInt","name","ColorPickerPopover","isGradient","element","popoverProps","receivedPopoverProps","onClose","shift","offset","resize","placement","className","color","enableAlpha","newColor","__experimentalIsRenderedInSidebar","gradient","newGradient","Option","canOnlyChangeValues","isEditing","onStartEditing","onRemove","onStopEditing","focusOutsideProps","popoverAnchor","setPopoverAnchor","anchor","undefined","as","onClick","trim","length","ref","justify","colorValue","nextName","size","icon","PaletteEditListView","editingElement","setEditingElement","elementsReference","current","debounceOnChange","spacing","isRounded","map","index","key","newElement","currentElement","currentIndex","newElements","filter","_currentElement","EMPTY_ARRAY","PaletteEdit","gradients","colors","paletteLabel","paletteLabelHeadingLevel","emptyMessage","canReset","setIsEditing","isAdding","elementsLength","hasElements","onSelectPaletteItem","newEditingElementIndex","selectedElement","level","isPressed","toggleProps","Fragment","role","variant","clearable","disableCustomGradients","disableCustomColors"],"sources":["@wordpress/components/src/palette-edit/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tuseState,\n\tuseRef,\n\tuseEffect,\n\tuseCallback,\n\tuseMemo,\n} from '@wordpress/element';\nimport { __, sprintf } from '@wordpress/i18n';\nimport { lineSolid, moreVertical, plus } from '@wordpress/icons';\nimport {\n\t__experimentalUseFocusOutside as useFocusOutside,\n\tuseDebounce,\n} from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport Button from '../button';\nimport { ColorPicker } from '../color-picker';\nimport { FlexItem } from '../flex';\nimport { HStack } from '../h-stack';\nimport { ItemGroup } from '../item-group';\nimport { VStack } from '../v-stack';\nimport GradientPicker from '../gradient-picker';\nimport ColorPalette from '../color-palette';\nimport DropdownMenu from '../dropdown-menu';\nimport Popover from '../popover';\nimport {\n\tPaletteActionsContainer,\n\tPaletteEditStyles,\n\tPaletteHeading,\n\tPaletteHStackHeader,\n\tIndicatorStyled,\n\tPaletteItem,\n\tNameContainer,\n\tNameInputControl,\n\tDoneButton,\n\tRemoveButton,\n} from './styles';\nimport { NavigableMenu } from '../navigable-container';\nimport { DEFAULT_GRADIENT } from '../custom-gradient-picker/constants';\nimport CustomGradientPicker from '../custom-gradient-picker';\nimport { kebabCase } from '../utils/strings';\nimport type {\n\tColor,\n\tColorPickerPopoverProps,\n\tGradient,\n\tNameInputProps,\n\tOptionProps,\n\tPaletteEditListViewProps,\n\tPaletteEditProps,\n\tPaletteElement,\n} from './types';\n\nconst DEFAULT_COLOR = '#000';\n\nfunction NameInput( { value, onChange, label }: NameInputProps ) {\n\treturn (\n\t\t<NameInputControl\n\t\t\tlabel={ label }\n\t\t\thideLabelFromVision\n\t\t\tvalue={ value }\n\t\t\tonChange={ onChange }\n\t\t/>\n\t);\n}\n\n/**\n * Returns a name and slug for a palette item. The name takes the format \"Color + id\".\n * To ensure there are no duplicate ids, this function checks all slugs.\n * It expects slugs to be in the format: slugPrefix + color- + number.\n * It then sets the id component of the new name based on the incremented id of the highest existing slug id.\n *\n * @param elements An array of color palette items.\n * @param slugPrefix The slug prefix used to match the element slug.\n *\n * @return A name and slug for the new palette item.\n */\nexport function getNameAndSlugForPosition(\n\telements: PaletteElement[],\n\tslugPrefix: string\n) {\n\tconst nameRegex = new RegExp( `^${ slugPrefix }color-([\\\\d]+)$` );\n\tconst position = elements.reduce( ( previousValue, currentValue ) => {\n\t\tif ( typeof currentValue?.slug === 'string' ) {\n\t\t\tconst matches = currentValue?.slug.match( nameRegex );\n\t\t\tif ( matches ) {\n\t\t\t\tconst id = parseInt( matches[ 1 ], 10 );\n\t\t\t\tif ( id >= previousValue ) {\n\t\t\t\t\treturn id + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn previousValue;\n\t}, 1 );\n\n\treturn {\n\t\tname: sprintf(\n\t\t\t/* translators: %s: is an id for a custom color */\n\t\t\t__( 'Color %s' ),\n\t\t\tposition\n\t\t),\n\t\tslug: `${ slugPrefix }color-${ position }`,\n\t};\n}\n\nfunction ColorPickerPopover< T extends Color | Gradient >( {\n\tisGradient,\n\telement,\n\tonChange,\n\tpopoverProps: receivedPopoverProps,\n\tonClose = () => {},\n}: ColorPickerPopoverProps< T > ) {\n\tconst popoverProps: ColorPickerPopoverProps< T >[ 'popoverProps' ] =\n\t\tuseMemo(\n\t\t\t() => ( {\n\t\t\t\tshift: true,\n\t\t\t\toffset: 20,\n\t\t\t\t// Disabling resize as it would otherwise cause the popover to show\n\t\t\t\t// scrollbars while dragging the color picker's handle close to the\n\t\t\t\t// popover edge.\n\t\t\t\tresize: false,\n\t\t\t\tplacement: 'left-start',\n\t\t\t\t...receivedPopoverProps,\n\t\t\t\tclassName: classnames(\n\t\t\t\t\t'components-palette-edit__popover',\n\t\t\t\t\treceivedPopoverProps?.className\n\t\t\t\t),\n\t\t\t} ),\n\t\t\t[ receivedPopoverProps ]\n\t\t);\n\n\treturn (\n\t\t<Popover { ...popoverProps } onClose={ onClose }>\n\t\t\t{ ! isGradient && (\n\t\t\t\t<ColorPicker\n\t\t\t\t\tcolor={ element.color }\n\t\t\t\t\tenableAlpha\n\t\t\t\t\tonChange={ ( newColor ) => {\n\t\t\t\t\t\tonChange( {\n\t\t\t\t\t\t\t...element,\n\t\t\t\t\t\t\tcolor: newColor,\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\t{ isGradient && (\n\t\t\t\t<div className=\"components-palette-edit__popover-gradient-picker\">\n\t\t\t\t\t<CustomGradientPicker\n\t\t\t\t\t\t__experimentalIsRenderedInSidebar\n\t\t\t\t\t\tvalue={ element.gradient }\n\t\t\t\t\t\tonChange={ ( newGradient ) => {\n\t\t\t\t\t\t\tonChange( {\n\t\t\t\t\t\t\t\t...element,\n\t\t\t\t\t\t\t\tgradient: newGradient,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t</Popover>\n\t);\n}\n\nfunction Option< T extends Color | Gradient >( {\n\tcanOnlyChangeValues,\n\telement,\n\tonChange,\n\tisEditing,\n\tonStartEditing,\n\tonRemove,\n\tonStopEditing,\n\tpopoverProps: receivedPopoverProps,\n\tslugPrefix,\n\tisGradient,\n}: OptionProps< T > ) {\n\tconst focusOutsideProps = useFocusOutside( onStopEditing );\n\tconst value = isGradient ? element.gradient : element.color;\n\n\t// Use internal state instead of a ref to make sure that the component\n\t// re-renders when the popover's anchor updates.\n\tconst [ popoverAnchor, setPopoverAnchor ] = useState( null );\n\tconst popoverProps = useMemo(\n\t\t() => ( {\n\t\t\t...receivedPopoverProps,\n\t\t\t// Use the custom palette color item as the popover anchor.\n\t\t\tanchor: popoverAnchor,\n\t\t} ),\n\t\t[ popoverAnchor, receivedPopoverProps ]\n\t);\n\n\treturn (\n\t\t<PaletteItem\n\t\t\tclassName={ isEditing ? 'is-selected' : undefined }\n\t\t\tas={ isEditing ? 'div' : 'button' }\n\t\t\tonClick={ onStartEditing }\n\t\t\taria-label={\n\t\t\t\tisEditing\n\t\t\t\t\t? undefined\n\t\t\t\t\t: sprintf(\n\t\t\t\t\t\t\t// translators: %s is a color or gradient name, e.g. \"Red\".\n\t\t\t\t\t\t\t__( 'Edit: %s' ),\n\t\t\t\t\t\t\telement.name.trim().length ? element.name : value\n\t\t\t\t\t )\n\t\t\t}\n\t\t\tref={ setPopoverAnchor }\n\t\t\t{ ...( isEditing ? { ...focusOutsideProps } : {} ) }\n\t\t>\n\t\t\t<HStack justify=\"flex-start\">\n\t\t\t\t<IndicatorStyled colorValue={ value } />\n\t\t\t\t<FlexItem>\n\t\t\t\t\t{ isEditing && ! canOnlyChangeValues ? (\n\t\t\t\t\t\t<NameInput\n\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\tisGradient\n\t\t\t\t\t\t\t\t\t? __( 'Gradient name' )\n\t\t\t\t\t\t\t\t\t: __( 'Color name' )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvalue={ element.name }\n\t\t\t\t\t\t\tonChange={ ( nextName?: string ) =>\n\t\t\t\t\t\t\t\tonChange( {\n\t\t\t\t\t\t\t\t\t...element,\n\t\t\t\t\t\t\t\t\tname: nextName,\n\t\t\t\t\t\t\t\t\tslug:\n\t\t\t\t\t\t\t\t\t\tslugPrefix +\n\t\t\t\t\t\t\t\t\t\tkebabCase( nextName ?? '' ),\n\t\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<NameContainer>\n\t\t\t\t\t\t\t{ element.name.trim().length\n\t\t\t\t\t\t\t\t? element.name\n\t\t\t\t\t\t\t\t: /* Fall back to non-breaking space to maintain height */\n\t\t\t\t\t\t\t\t '\\u00A0' }\n\t\t\t\t\t\t</NameContainer>\n\t\t\t\t\t) }\n\t\t\t\t</FlexItem>\n\t\t\t\t{ isEditing && ! canOnlyChangeValues && (\n\t\t\t\t\t<FlexItem>\n\t\t\t\t\t\t<RemoveButton\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\ticon={ lineSolid }\n\t\t\t\t\t\t\tlabel={ __( 'Remove color' ) }\n\t\t\t\t\t\t\tonClick={ onRemove }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</FlexItem>\n\t\t\t\t) }\n\t\t\t</HStack>\n\t\t\t{ isEditing && (\n\t\t\t\t<ColorPickerPopover\n\t\t\t\t\tisGradient={ isGradient }\n\t\t\t\t\tonChange={ onChange }\n\t\t\t\t\telement={ element }\n\t\t\t\t\tpopoverProps={ popoverProps }\n\t\t\t\t/>\n\t\t\t) }\n\t\t</PaletteItem>\n\t);\n}\n\nfunction PaletteEditListView< T extends Color | Gradient >( {\n\telements,\n\tonChange,\n\teditingElement,\n\tsetEditingElement,\n\tcanOnlyChangeValues,\n\tslugPrefix,\n\tisGradient,\n\tpopoverProps,\n}: PaletteEditListViewProps< T > ) {\n\t// When unmounting the component if there are empty elements (the user did not complete the insertion) clean them.\n\tconst elementsReference = useRef< typeof elements >();\n\tuseEffect( () => {\n\t\telementsReference.current = elements;\n\t}, [ elements ] );\n\n\tconst debounceOnChange = useDebounce( onChange, 100 );\n\n\treturn (\n\t\t<VStack spacing={ 3 }>\n\t\t\t<ItemGroup isRounded>\n\t\t\t\t{ elements.map( ( element, index ) => (\n\t\t\t\t\t<Option\n\t\t\t\t\t\tisGradient={ isGradient }\n\t\t\t\t\t\tcanOnlyChangeValues={ canOnlyChangeValues }\n\t\t\t\t\t\tkey={ index }\n\t\t\t\t\t\telement={ element }\n\t\t\t\t\t\tonStartEditing={ () => {\n\t\t\t\t\t\t\tif ( editingElement !== index ) {\n\t\t\t\t\t\t\t\tsetEditingElement( index );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tonChange={ ( newElement ) => {\n\t\t\t\t\t\t\tdebounceOnChange(\n\t\t\t\t\t\t\t\telements.map(\n\t\t\t\t\t\t\t\t\t( currentElement, currentIndex ) => {\n\t\t\t\t\t\t\t\t\t\tif ( currentIndex === index ) {\n\t\t\t\t\t\t\t\t\t\t\treturn newElement;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\treturn currentElement;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tonRemove={ () => {\n\t\t\t\t\t\t\tsetEditingElement( null );\n\t\t\t\t\t\t\tconst newElements = elements.filter(\n\t\t\t\t\t\t\t\t( _currentElement, currentIndex ) => {\n\t\t\t\t\t\t\t\t\tif ( currentIndex === index ) {\n\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tonChange(\n\t\t\t\t\t\t\t\tnewElements.length ? newElements : undefined\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tisEditing={ index === editingElement }\n\t\t\t\t\t\tonStopEditing={ () => {\n\t\t\t\t\t\t\tif ( index === editingElement ) {\n\t\t\t\t\t\t\t\tsetEditingElement( null );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tslugPrefix={ slugPrefix }\n\t\t\t\t\t\tpopoverProps={ popoverProps }\n\t\t\t\t\t/>\n\t\t\t\t) ) }\n\t\t\t</ItemGroup>\n\t\t</VStack>\n\t);\n}\n\nconst EMPTY_ARRAY: Color[] = [];\n\n/**\n * Allows editing a palette of colors or gradients.\n *\n * ```jsx\n * import { PaletteEdit } from '@wordpress/components';\n * const MyPaletteEdit = () => {\n * const [ controlledColors, setControlledColors ] = useState( colors );\n *\n * return (\n * <PaletteEdit\n * colors={ controlledColors }\n * onChange={ ( newColors?: Color[] ) => {\n * setControlledColors( newColors );\n * } }\n * paletteLabel=\"Here is a label\"\n * />\n * );\n * };\n * ```\n */\nexport function PaletteEdit( {\n\tgradients,\n\tcolors = EMPTY_ARRAY,\n\tonChange,\n\tpaletteLabel,\n\tpaletteLabelHeadingLevel = 2,\n\temptyMessage,\n\tcanOnlyChangeValues,\n\tcanReset,\n\tslugPrefix = '',\n\tpopoverProps,\n}: PaletteEditProps ) {\n\tconst isGradient = !! gradients;\n\tconst elements = isGradient ? gradients : colors;\n\tconst [ isEditing, setIsEditing ] = useState( false );\n\tconst [ editingElement, setEditingElement ] = useState<\n\t\tnumber | null | undefined\n\t>( null );\n\tconst isAdding =\n\t\tisEditing &&\n\t\t!! editingElement &&\n\t\telements[ editingElement ] &&\n\t\t! elements[ editingElement ].slug;\n\tconst elementsLength = elements.length;\n\tconst hasElements = elementsLength > 0;\n\tconst debounceOnChange = useDebounce( onChange, 100 );\n\tconst onSelectPaletteItem = useCallback(\n\t\t(\n\t\t\tvalue?: PaletteElement[ keyof PaletteElement ],\n\t\t\tnewEditingElementIndex?: number\n\t\t) => {\n\t\t\tconst selectedElement =\n\t\t\t\tnewEditingElementIndex === undefined\n\t\t\t\t\t? undefined\n\t\t\t\t\t: elements[ newEditingElementIndex ];\n\t\t\tconst key = isGradient ? 'gradient' : 'color';\n\t\t\t// Ensures that the index returned matches a known element value.\n\t\t\tif ( !! selectedElement && selectedElement[ key ] === value ) {\n\t\t\t\tsetEditingElement( newEditingElementIndex );\n\t\t\t} else {\n\t\t\t\tsetIsEditing( true );\n\t\t\t}\n\t\t},\n\t\t[ isGradient, elements ]\n\t);\n\n\treturn (\n\t\t<PaletteEditStyles>\n\t\t\t<PaletteHStackHeader>\n\t\t\t\t<PaletteHeading level={ paletteLabelHeadingLevel }>\n\t\t\t\t\t{ paletteLabel }\n\t\t\t\t</PaletteHeading>\n\t\t\t\t<PaletteActionsContainer>\n\t\t\t\t\t{ hasElements && isEditing && (\n\t\t\t\t\t\t<DoneButton\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tsetIsEditing( false );\n\t\t\t\t\t\t\t\tsetEditingElement( null );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Done' ) }\n\t\t\t\t\t\t</DoneButton>\n\t\t\t\t\t) }\n\t\t\t\t\t{ ! canOnlyChangeValues && (\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\tisPressed={ isAdding }\n\t\t\t\t\t\t\ticon={ plus }\n\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\tisGradient\n\t\t\t\t\t\t\t\t\t? __( 'Add gradient' )\n\t\t\t\t\t\t\t\t\t: __( 'Add color' )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tconst { name, slug } =\n\t\t\t\t\t\t\t\t\tgetNameAndSlugForPosition(\n\t\t\t\t\t\t\t\t\t\telements,\n\t\t\t\t\t\t\t\t\t\tslugPrefix\n\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\tif ( !! gradients ) {\n\t\t\t\t\t\t\t\t\tonChange( [\n\t\t\t\t\t\t\t\t\t\t...gradients,\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tgradient: DEFAULT_GRADIENT,\n\t\t\t\t\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\t\t\t\t\tslug,\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t] );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tonChange( [\n\t\t\t\t\t\t\t\t\t\t...colors,\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tcolor: DEFAULT_COLOR,\n\t\t\t\t\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\t\t\t\t\tslug,\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t] );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsetIsEditing( true );\n\t\t\t\t\t\t\t\tsetEditingElement( elements.length );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\n\t\t\t\t\t{ hasElements &&\n\t\t\t\t\t\t( ! isEditing ||\n\t\t\t\t\t\t\t! canOnlyChangeValues ||\n\t\t\t\t\t\t\tcanReset ) && (\n\t\t\t\t\t\t\t<DropdownMenu\n\t\t\t\t\t\t\t\ticon={ moreVertical }\n\t\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t\tisGradient\n\t\t\t\t\t\t\t\t\t\t? __( 'Gradient options' )\n\t\t\t\t\t\t\t\t\t\t: __( 'Color options' )\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ttoggleProps={ {\n\t\t\t\t\t\t\t\t\tsize: 'small',\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ ( { onClose }: { onClose: () => void } ) => (\n\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t<NavigableMenu role=\"menu\">\n\t\t\t\t\t\t\t\t\t\t\t{ ! isEditing && (\n\t\t\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"tertiary\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIsEditing( true );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"components-palette-edit__menu-button\"\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{ __( 'Show details' ) }\n\t\t\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\t\t{ ! canOnlyChangeValues && (\n\t\t\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"tertiary\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetEditingElement(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIsEditing( false );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChange();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"components-palette-edit__menu-button\"\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{ isGradient\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? __(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Remove all gradients'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: __(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Remove all colors'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t ) }\n\t\t\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\t\t{ canReset && (\n\t\t\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"tertiary\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetEditingElement(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChange();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{ isGradient\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? __( 'Reset gradient' )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: __( 'Reset colors' ) }\n\t\t\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\t</NavigableMenu>\n\t\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</DropdownMenu>\n\t\t\t\t\t\t) }\n\t\t\t\t</PaletteActionsContainer>\n\t\t\t</PaletteHStackHeader>\n\t\t\t{ hasElements && (\n\t\t\t\t<>\n\t\t\t\t\t{ isEditing && (\n\t\t\t\t\t\t<PaletteEditListView< ( typeof elements )[ number ] >\n\t\t\t\t\t\t\tcanOnlyChangeValues={ canOnlyChangeValues }\n\t\t\t\t\t\t\telements={ elements }\n\t\t\t\t\t\t\t// @ts-expect-error TODO: Don't know how to resolve\n\t\t\t\t\t\t\tonChange={ onChange }\n\t\t\t\t\t\t\teditingElement={ editingElement }\n\t\t\t\t\t\t\tsetEditingElement={ setEditingElement }\n\t\t\t\t\t\t\tslugPrefix={ slugPrefix }\n\t\t\t\t\t\t\tisGradient={ isGradient }\n\t\t\t\t\t\t\tpopoverProps={ popoverProps }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t\t{ ! isEditing && editingElement !== null && (\n\t\t\t\t\t\t<ColorPickerPopover\n\t\t\t\t\t\t\tisGradient={ isGradient }\n\t\t\t\t\t\t\tonClose={ () => setEditingElement( null ) }\n\t\t\t\t\t\t\tonChange={ (\n\t\t\t\t\t\t\t\tnewElement: ( typeof elements )[ number ]\n\t\t\t\t\t\t\t) => {\n\t\t\t\t\t\t\t\tdebounceOnChange(\n\t\t\t\t\t\t\t\t\t// @ts-expect-error TODO: Don't know how to resolve\n\t\t\t\t\t\t\t\t\telements.map(\n\t\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t\tcurrentElement: ( typeof elements )[ number ],\n\t\t\t\t\t\t\t\t\t\t\tcurrentIndex: number\n\t\t\t\t\t\t\t\t\t\t) => {\n\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\tcurrentIndex === editingElement\n\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn newElement;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\treturn currentElement;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\telement={ elements[ editingElement ?? -1 ] }\n\t\t\t\t\t\t\tpopoverProps={ popoverProps }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t\t{ ! isEditing &&\n\t\t\t\t\t\t( isGradient ? (\n\t\t\t\t\t\t\t<GradientPicker\n\t\t\t\t\t\t\t\tgradients={ gradients }\n\t\t\t\t\t\t\t\tonChange={ onSelectPaletteItem }\n\t\t\t\t\t\t\t\tclearable={ false }\n\t\t\t\t\t\t\t\tdisableCustomGradients\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<ColorPalette\n\t\t\t\t\t\t\t\tcolors={ colors }\n\t\t\t\t\t\t\t\tonChange={ onSelectPaletteItem }\n\t\t\t\t\t\t\t\tclearable={ false }\n\t\t\t\t\t\t\t\tdisableCustomColors\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) ) }\n\t\t\t\t</>\n\t\t\t) }\n\t\t\t{ ! hasElements && emptyMessage }\n\t\t</PaletteEditStyles>\n\t);\n}\n\nexport default PaletteEdit;\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,UAAU,MAAM,YA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B,cAAc,KAAK,IAAI,IACvCxD,aAAA,CAACiB,kBAAkB;IAClBC,UAAU,EAAGA,UAAY;IACzBI,OAAO,EAAGA,CAAA,KAAMmC,iBAAiB,CAAE,IAAK,CAAG;IAC3C3D,QAAQ,EACPoE,UAAyC,IACrC;MACJN,gBAAgB;MACf;MACAzD,QAAQ,CAAC4D,GAAG,CACX,CACCI,cAA6C,EAC7CC,YAAoB,KAChB;QACJ,IACCA,YAAY,KAAKZ,cAAc,EAC9B;UACD,OAAOU,UAAU;QAClB;QACA,OAAOC,cAAc;MACtB,CACD,CACD,CAAC;IACF,CAAG;IACHhD,OAAO,EAAGhB,QAAQ,CAAEqD,cAAc,aAAdA,cAAc,cAAdA,cAAc,GAAI,CAAC,CAAC,CAAI;IAC5CpC,YAAY,EAAGA;EAAc,CAC7B,CACD,EACC,CAAEgB,SAAS,KACVlB,UAAU,GACXlB,aAAA,CAACvB,cAAc;IACdiG,SAAS,EAAGA,SAAW;IACvB5E,QAAQ,EAAGsF,mBAAqB;IAChCS,SAAS,EAAG,KAAO;IACnBC,sBAAsB;EAAA,CACtB,CAAC,GAEF9F,aAAA,CAACtB,YAAY;IACZiG,MAAM,EAAGA,MAAQ;IACjB7E,QAAQ,EAAGsF,mBAAqB;IAChCS,SAAS,EAAG,KAAO;IACnBE,mBAAmB;EAAA,CACnB,CACD,CACD,CACF,EACC,CAAEZ,WAAW,IAAIL,YACD,CAAC;AAEtB;AAEA,eAAeL,WAAW"}
1
+ {"version":3,"names":["classnames","useState","useRef","useEffect","useCallback","useMemo","__","sprintf","lineSolid","moreVertical","plus","__experimentalUseFocusOutside","useFocusOutside","useDebounce","Button","ColorPicker","FlexItem","HStack","ItemGroup","VStack","GradientPicker","ColorPalette","DropdownMenu","Popover","PaletteActionsContainer","PaletteEditStyles","PaletteHeading","PaletteHStackHeader","IndicatorStyled","PaletteItem","NameContainer","NameInputControl","DoneButton","RemoveButton","NavigableMenu","DEFAULT_GRADIENT","CustomGradientPicker","kebabCase","DEFAULT_COLOR","NameInput","value","onChange","label","createElement","hideLabelFromVision","getNameAndSlugForPosition","elements","slugPrefix","nameRegex","RegExp","position","reduce","previousValue","currentValue","slug","matches","match","id","parseInt","name","ColorPickerPopover","isGradient","element","popoverProps","receivedPopoverProps","onClose","shift","offset","resize","placement","className","color","enableAlpha","newColor","__experimentalIsRenderedInSidebar","gradient","newGradient","Option","canOnlyChangeValues","isEditing","onStartEditing","onRemove","onStopEditing","focusOutsideProps","popoverAnchor","setPopoverAnchor","anchor","undefined","as","onClick","trim","length","ref","justify","colorValue","nextName","size","icon","PaletteEditListView","editingElement","setEditingElement","elementsReference","current","debounceOnChange","spacing","isRounded","map","index","key","newElement","currentElement","currentIndex","newElements","filter","_currentElement","EMPTY_ARRAY","PaletteEdit","gradients","colors","paletteLabel","paletteLabelHeadingLevel","emptyMessage","canReset","setIsEditing","isAdding","elementsLength","hasElements","onSelectPaletteItem","newEditingElementIndex","selectedElement","level","isPressed","toggleProps","Fragment","role","variant","clearable","disableCustomGradients","disableCustomColors"],"sources":["@wordpress/components/src/palette-edit/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tuseState,\n\tuseRef,\n\tuseEffect,\n\tuseCallback,\n\tuseMemo,\n} from '@wordpress/element';\nimport { __, sprintf } from '@wordpress/i18n';\nimport { lineSolid, moreVertical, plus } from '@wordpress/icons';\nimport {\n\t__experimentalUseFocusOutside as useFocusOutside,\n\tuseDebounce,\n} from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport Button from '../button';\nimport { ColorPicker } from '../color-picker';\nimport { FlexItem } from '../flex';\nimport { HStack } from '../h-stack';\nimport { ItemGroup } from '../item-group';\nimport { VStack } from '../v-stack';\nimport GradientPicker from '../gradient-picker';\nimport ColorPalette from '../color-palette';\nimport DropdownMenu from '../dropdown-menu';\nimport Popover from '../popover';\nimport {\n\tPaletteActionsContainer,\n\tPaletteEditStyles,\n\tPaletteHeading,\n\tPaletteHStackHeader,\n\tIndicatorStyled,\n\tPaletteItem,\n\tNameContainer,\n\tNameInputControl,\n\tDoneButton,\n\tRemoveButton,\n} from './styles';\nimport { NavigableMenu } from '../navigable-container';\nimport { DEFAULT_GRADIENT } from '../custom-gradient-picker/constants';\nimport CustomGradientPicker from '../custom-gradient-picker';\nimport { kebabCase } from '../utils/strings';\nimport type {\n\tColor,\n\tColorPickerPopoverProps,\n\tGradient,\n\tNameInputProps,\n\tOptionProps,\n\tPaletteEditListViewProps,\n\tPaletteEditProps,\n\tPaletteElement,\n} from './types';\n\nconst DEFAULT_COLOR = '#000';\n\nfunction NameInput( { value, onChange, label }: NameInputProps ) {\n\treturn (\n\t\t<NameInputControl\n\t\t\tlabel={ label }\n\t\t\thideLabelFromVision\n\t\t\tvalue={ value }\n\t\t\tonChange={ onChange }\n\t\t/>\n\t);\n}\n\n/**\n * Returns a name and slug for a palette item. The name takes the format \"Color + id\".\n * To ensure there are no duplicate ids, this function checks all slugs.\n * It expects slugs to be in the format: slugPrefix + color- + number.\n * It then sets the id component of the new name based on the incremented id of the highest existing slug id.\n *\n * @param elements An array of color palette items.\n * @param slugPrefix The slug prefix used to match the element slug.\n *\n * @return A name and slug for the new palette item.\n */\nexport function getNameAndSlugForPosition(\n\telements: PaletteElement[],\n\tslugPrefix: string\n) {\n\tconst nameRegex = new RegExp( `^${ slugPrefix }color-([\\\\d]+)$` );\n\tconst position = elements.reduce( ( previousValue, currentValue ) => {\n\t\tif ( typeof currentValue?.slug === 'string' ) {\n\t\t\tconst matches = currentValue?.slug.match( nameRegex );\n\t\t\tif ( matches ) {\n\t\t\t\tconst id = parseInt( matches[ 1 ], 10 );\n\t\t\t\tif ( id >= previousValue ) {\n\t\t\t\t\treturn id + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn previousValue;\n\t}, 1 );\n\n\treturn {\n\t\tname: sprintf(\n\t\t\t/* translators: %s: is an id for a custom color */\n\t\t\t__( 'Color %s' ),\n\t\t\tposition\n\t\t),\n\t\tslug: `${ slugPrefix }color-${ position }`,\n\t};\n}\n\nfunction ColorPickerPopover< T extends Color | Gradient >( {\n\tisGradient,\n\telement,\n\tonChange,\n\tpopoverProps: receivedPopoverProps,\n\tonClose = () => {},\n}: ColorPickerPopoverProps< T > ) {\n\tconst popoverProps: ColorPickerPopoverProps< T >[ 'popoverProps' ] =\n\t\tuseMemo(\n\t\t\t() => ( {\n\t\t\t\tshift: true,\n\t\t\t\toffset: 20,\n\t\t\t\t// Disabling resize as it would otherwise cause the popover to show\n\t\t\t\t// scrollbars while dragging the color picker's handle close to the\n\t\t\t\t// popover edge.\n\t\t\t\tresize: false,\n\t\t\t\tplacement: 'left-start',\n\t\t\t\t...receivedPopoverProps,\n\t\t\t\tclassName: classnames(\n\t\t\t\t\t'components-palette-edit__popover',\n\t\t\t\t\treceivedPopoverProps?.className\n\t\t\t\t),\n\t\t\t} ),\n\t\t\t[ receivedPopoverProps ]\n\t\t);\n\n\treturn (\n\t\t<Popover { ...popoverProps } onClose={ onClose }>\n\t\t\t{ ! isGradient && (\n\t\t\t\t<ColorPicker\n\t\t\t\t\tcolor={ element.color }\n\t\t\t\t\tenableAlpha\n\t\t\t\t\tonChange={ ( newColor ) => {\n\t\t\t\t\t\tonChange( {\n\t\t\t\t\t\t\t...element,\n\t\t\t\t\t\t\tcolor: newColor,\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\t{ isGradient && (\n\t\t\t\t<div className=\"components-palette-edit__popover-gradient-picker\">\n\t\t\t\t\t<CustomGradientPicker\n\t\t\t\t\t\t__experimentalIsRenderedInSidebar\n\t\t\t\t\t\tvalue={ element.gradient }\n\t\t\t\t\t\tonChange={ ( newGradient ) => {\n\t\t\t\t\t\t\tonChange( {\n\t\t\t\t\t\t\t\t...element,\n\t\t\t\t\t\t\t\tgradient: newGradient,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t</Popover>\n\t);\n}\n\nfunction Option< T extends Color | Gradient >( {\n\tcanOnlyChangeValues,\n\telement,\n\tonChange,\n\tisEditing,\n\tonStartEditing,\n\tonRemove,\n\tonStopEditing,\n\tpopoverProps: receivedPopoverProps,\n\tslugPrefix,\n\tisGradient,\n}: OptionProps< T > ) {\n\tconst focusOutsideProps = useFocusOutside( onStopEditing );\n\tconst value = isGradient ? element.gradient : element.color;\n\n\t// Use internal state instead of a ref to make sure that the component\n\t// re-renders when the popover's anchor updates.\n\tconst [ popoverAnchor, setPopoverAnchor ] = useState( null );\n\tconst popoverProps = useMemo(\n\t\t() => ( {\n\t\t\t...receivedPopoverProps,\n\t\t\t// Use the custom palette color item as the popover anchor.\n\t\t\tanchor: popoverAnchor,\n\t\t} ),\n\t\t[ popoverAnchor, receivedPopoverProps ]\n\t);\n\n\treturn (\n\t\t<PaletteItem\n\t\t\tclassName={ isEditing ? 'is-selected' : undefined }\n\t\t\tas={ isEditing ? 'div' : 'button' }\n\t\t\tonClick={ onStartEditing }\n\t\t\taria-label={\n\t\t\t\tisEditing\n\t\t\t\t\t? undefined\n\t\t\t\t\t: sprintf(\n\t\t\t\t\t\t\t// translators: %s is a color or gradient name, e.g. \"Red\".\n\t\t\t\t\t\t\t__( 'Edit: %s' ),\n\t\t\t\t\t\t\telement.name.trim().length ? element.name : value\n\t\t\t\t\t )\n\t\t\t}\n\t\t\tref={ setPopoverAnchor }\n\t\t\t{ ...( isEditing ? { ...focusOutsideProps } : {} ) }\n\t\t>\n\t\t\t<HStack justify=\"flex-start\">\n\t\t\t\t<IndicatorStyled colorValue={ value } />\n\t\t\t\t<FlexItem>\n\t\t\t\t\t{ isEditing && ! canOnlyChangeValues ? (\n\t\t\t\t\t\t<NameInput\n\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\tisGradient\n\t\t\t\t\t\t\t\t\t? __( 'Gradient name' )\n\t\t\t\t\t\t\t\t\t: __( 'Color name' )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvalue={ element.name }\n\t\t\t\t\t\t\tonChange={ ( nextName?: string ) =>\n\t\t\t\t\t\t\t\tonChange( {\n\t\t\t\t\t\t\t\t\t...element,\n\t\t\t\t\t\t\t\t\tname: nextName,\n\t\t\t\t\t\t\t\t\tslug:\n\t\t\t\t\t\t\t\t\t\tslugPrefix +\n\t\t\t\t\t\t\t\t\t\tkebabCase( nextName ?? '' ),\n\t\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<NameContainer>\n\t\t\t\t\t\t\t{ element.name.trim().length\n\t\t\t\t\t\t\t\t? element.name\n\t\t\t\t\t\t\t\t: /* Fall back to non-breaking space to maintain height */\n\t\t\t\t\t\t\t\t '\\u00A0' }\n\t\t\t\t\t\t</NameContainer>\n\t\t\t\t\t) }\n\t\t\t\t</FlexItem>\n\t\t\t\t{ isEditing && ! canOnlyChangeValues && (\n\t\t\t\t\t<FlexItem>\n\t\t\t\t\t\t<RemoveButton\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\ticon={ lineSolid }\n\t\t\t\t\t\t\tlabel={ __( 'Remove color' ) }\n\t\t\t\t\t\t\tonClick={ onRemove }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</FlexItem>\n\t\t\t\t) }\n\t\t\t</HStack>\n\t\t\t{ isEditing && (\n\t\t\t\t<ColorPickerPopover\n\t\t\t\t\tisGradient={ isGradient }\n\t\t\t\t\tonChange={ onChange }\n\t\t\t\t\telement={ element }\n\t\t\t\t\tpopoverProps={ popoverProps }\n\t\t\t\t/>\n\t\t\t) }\n\t\t</PaletteItem>\n\t);\n}\n\nfunction PaletteEditListView< T extends Color | Gradient >( {\n\telements,\n\tonChange,\n\teditingElement,\n\tsetEditingElement,\n\tcanOnlyChangeValues,\n\tslugPrefix,\n\tisGradient,\n\tpopoverProps,\n}: PaletteEditListViewProps< T > ) {\n\t// When unmounting the component if there are empty elements (the user did not complete the insertion) clean them.\n\tconst elementsReference = useRef< typeof elements >();\n\tuseEffect( () => {\n\t\telementsReference.current = elements;\n\t}, [ elements ] );\n\n\tconst debounceOnChange = useDebounce( onChange, 100 );\n\n\treturn (\n\t\t<VStack spacing={ 3 }>\n\t\t\t<ItemGroup isRounded>\n\t\t\t\t{ elements.map( ( element, index ) => (\n\t\t\t\t\t<Option\n\t\t\t\t\t\tisGradient={ isGradient }\n\t\t\t\t\t\tcanOnlyChangeValues={ canOnlyChangeValues }\n\t\t\t\t\t\tkey={ index }\n\t\t\t\t\t\telement={ element }\n\t\t\t\t\t\tonStartEditing={ () => {\n\t\t\t\t\t\t\tif ( editingElement !== index ) {\n\t\t\t\t\t\t\t\tsetEditingElement( index );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tonChange={ ( newElement ) => {\n\t\t\t\t\t\t\tdebounceOnChange(\n\t\t\t\t\t\t\t\telements.map(\n\t\t\t\t\t\t\t\t\t( currentElement, currentIndex ) => {\n\t\t\t\t\t\t\t\t\t\tif ( currentIndex === index ) {\n\t\t\t\t\t\t\t\t\t\t\treturn newElement;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\treturn currentElement;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tonRemove={ () => {\n\t\t\t\t\t\t\tsetEditingElement( null );\n\t\t\t\t\t\t\tconst newElements = elements.filter(\n\t\t\t\t\t\t\t\t( _currentElement, currentIndex ) => {\n\t\t\t\t\t\t\t\t\tif ( currentIndex === index ) {\n\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tonChange(\n\t\t\t\t\t\t\t\tnewElements.length ? newElements : undefined\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tisEditing={ index === editingElement }\n\t\t\t\t\t\tonStopEditing={ () => {\n\t\t\t\t\t\t\tif ( index === editingElement ) {\n\t\t\t\t\t\t\t\tsetEditingElement( null );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tslugPrefix={ slugPrefix }\n\t\t\t\t\t\tpopoverProps={ popoverProps }\n\t\t\t\t\t/>\n\t\t\t\t) ) }\n\t\t\t</ItemGroup>\n\t\t</VStack>\n\t);\n}\n\nconst EMPTY_ARRAY: Color[] = [];\n\n/**\n * Allows editing a palette of colors or gradients.\n *\n * ```jsx\n * import { PaletteEdit } from '@wordpress/components';\n * const MyPaletteEdit = () => {\n * const [ controlledColors, setControlledColors ] = useState( colors );\n *\n * return (\n * <PaletteEdit\n * colors={ controlledColors }\n * onChange={ ( newColors?: Color[] ) => {\n * setControlledColors( newColors );\n * } }\n * paletteLabel=\"Here is a label\"\n * />\n * );\n * };\n * ```\n */\nexport function PaletteEdit( {\n\tgradients,\n\tcolors = EMPTY_ARRAY,\n\tonChange,\n\tpaletteLabel,\n\tpaletteLabelHeadingLevel = 2,\n\temptyMessage,\n\tcanOnlyChangeValues,\n\tcanReset,\n\tslugPrefix = '',\n\tpopoverProps,\n}: PaletteEditProps ) {\n\tconst isGradient = !! gradients;\n\tconst elements = isGradient ? gradients : colors;\n\tconst [ isEditing, setIsEditing ] = useState( false );\n\tconst [ editingElement, setEditingElement ] = useState<\n\t\tnumber | null | undefined\n\t>( null );\n\tconst isAdding =\n\t\tisEditing &&\n\t\t!! editingElement &&\n\t\telements[ editingElement ] &&\n\t\t! elements[ editingElement ].slug;\n\tconst elementsLength = elements.length;\n\tconst hasElements = elementsLength > 0;\n\tconst debounceOnChange = useDebounce( onChange, 100 );\n\tconst onSelectPaletteItem = useCallback(\n\t\t(\n\t\t\tvalue?: PaletteElement[ keyof PaletteElement ],\n\t\t\tnewEditingElementIndex?: number\n\t\t) => {\n\t\t\tconst selectedElement =\n\t\t\t\tnewEditingElementIndex === undefined\n\t\t\t\t\t? undefined\n\t\t\t\t\t: elements[ newEditingElementIndex ];\n\t\t\tconst key = isGradient ? 'gradient' : 'color';\n\t\t\t// Ensures that the index returned matches a known element value.\n\t\t\tif ( !! selectedElement && selectedElement[ key ] === value ) {\n\t\t\t\tsetEditingElement( newEditingElementIndex );\n\t\t\t} else {\n\t\t\t\tsetIsEditing( true );\n\t\t\t}\n\t\t},\n\t\t[ isGradient, elements ]\n\t);\n\n\treturn (\n\t\t<PaletteEditStyles>\n\t\t\t<PaletteHStackHeader>\n\t\t\t\t<PaletteHeading level={ paletteLabelHeadingLevel }>\n\t\t\t\t\t{ paletteLabel }\n\t\t\t\t</PaletteHeading>\n\t\t\t\t<PaletteActionsContainer>\n\t\t\t\t\t{ hasElements && isEditing && (\n\t\t\t\t\t\t<DoneButton\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tsetIsEditing( false );\n\t\t\t\t\t\t\t\tsetEditingElement( null );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Done' ) }\n\t\t\t\t\t\t</DoneButton>\n\t\t\t\t\t) }\n\t\t\t\t\t{ ! canOnlyChangeValues && (\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\tisPressed={ isAdding }\n\t\t\t\t\t\t\ticon={ plus }\n\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\tisGradient\n\t\t\t\t\t\t\t\t\t? __( 'Add gradient' )\n\t\t\t\t\t\t\t\t\t: __( 'Add color' )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\tconst { name, slug } =\n\t\t\t\t\t\t\t\t\tgetNameAndSlugForPosition(\n\t\t\t\t\t\t\t\t\t\telements,\n\t\t\t\t\t\t\t\t\t\tslugPrefix\n\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\tif ( !! gradients ) {\n\t\t\t\t\t\t\t\t\tonChange( [\n\t\t\t\t\t\t\t\t\t\t...gradients,\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tgradient: DEFAULT_GRADIENT,\n\t\t\t\t\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\t\t\t\t\tslug,\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t] );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tonChange( [\n\t\t\t\t\t\t\t\t\t\t...colors,\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tcolor: DEFAULT_COLOR,\n\t\t\t\t\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\t\t\t\t\tslug,\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t] );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsetIsEditing( true );\n\t\t\t\t\t\t\t\tsetEditingElement( elements.length );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\n\t\t\t\t\t{ hasElements &&\n\t\t\t\t\t\t( ! isEditing ||\n\t\t\t\t\t\t\t! canOnlyChangeValues ||\n\t\t\t\t\t\t\tcanReset ) && (\n\t\t\t\t\t\t\t<DropdownMenu\n\t\t\t\t\t\t\t\ticon={ moreVertical }\n\t\t\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\t\t\tisGradient\n\t\t\t\t\t\t\t\t\t\t? __( 'Gradient options' )\n\t\t\t\t\t\t\t\t\t\t: __( 'Color options' )\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ttoggleProps={ {\n\t\t\t\t\t\t\t\t\tsize: 'small',\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ ( { onClose }: { onClose: () => void } ) => (\n\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t<NavigableMenu role=\"menu\">\n\t\t\t\t\t\t\t\t\t\t\t{ ! isEditing && (\n\t\t\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"tertiary\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIsEditing( true );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"components-palette-edit__menu-button\"\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{ __( 'Show details' ) }\n\t\t\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\t\t{ ! canOnlyChangeValues && (\n\t\t\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"tertiary\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetEditingElement(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetIsEditing( false );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChange();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"components-palette-edit__menu-button\"\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{ isGradient\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? __(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Remove all gradients'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: __(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Remove all colors'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t ) }\n\t\t\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\t\t{ canReset && (\n\t\t\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"tertiary\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetEditingElement(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChange();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{ isGradient\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? __( 'Reset gradient' )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: __( 'Reset colors' ) }\n\t\t\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t\t\t</NavigableMenu>\n\t\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t</DropdownMenu>\n\t\t\t\t\t\t) }\n\t\t\t\t</PaletteActionsContainer>\n\t\t\t</PaletteHStackHeader>\n\t\t\t{ hasElements && (\n\t\t\t\t<>\n\t\t\t\t\t{ isEditing && (\n\t\t\t\t\t\t<PaletteEditListView< ( typeof elements )[ number ] >\n\t\t\t\t\t\t\tcanOnlyChangeValues={ canOnlyChangeValues }\n\t\t\t\t\t\t\telements={ elements }\n\t\t\t\t\t\t\t// @ts-expect-error TODO: Don't know how to resolve\n\t\t\t\t\t\t\tonChange={ onChange }\n\t\t\t\t\t\t\teditingElement={ editingElement }\n\t\t\t\t\t\t\tsetEditingElement={ setEditingElement }\n\t\t\t\t\t\t\tslugPrefix={ slugPrefix }\n\t\t\t\t\t\t\tisGradient={ isGradient }\n\t\t\t\t\t\t\tpopoverProps={ popoverProps }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t\t{ ! isEditing && editingElement !== null && (\n\t\t\t\t\t\t<ColorPickerPopover\n\t\t\t\t\t\t\tisGradient={ isGradient }\n\t\t\t\t\t\t\tonClose={ () => setEditingElement( null ) }\n\t\t\t\t\t\t\tonChange={ (\n\t\t\t\t\t\t\t\tnewElement: ( typeof elements )[ number ]\n\t\t\t\t\t\t\t) => {\n\t\t\t\t\t\t\t\tdebounceOnChange(\n\t\t\t\t\t\t\t\t\t// @ts-expect-error TODO: Don't know how to resolve\n\t\t\t\t\t\t\t\t\telements.map(\n\t\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t\tcurrentElement: ( typeof elements )[ number ],\n\t\t\t\t\t\t\t\t\t\t\tcurrentIndex: number\n\t\t\t\t\t\t\t\t\t\t) => {\n\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\tcurrentIndex === editingElement\n\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn newElement;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\treturn currentElement;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\telement={ elements[ editingElement ?? -1 ] }\n\t\t\t\t\t\t\tpopoverProps={ popoverProps }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t\t{ ! isEditing &&\n\t\t\t\t\t\t( isGradient ? (\n\t\t\t\t\t\t\t<GradientPicker\n\t\t\t\t\t\t\t\tgradients={ gradients }\n\t\t\t\t\t\t\t\tonChange={ onSelectPaletteItem }\n\t\t\t\t\t\t\t\tclearable={ false }\n\t\t\t\t\t\t\t\tdisableCustomGradients\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<ColorPalette\n\t\t\t\t\t\t\t\tcolors={ colors }\n\t\t\t\t\t\t\t\tonChange={ onSelectPaletteItem }\n\t\t\t\t\t\t\t\tclearable={ false }\n\t\t\t\t\t\t\t\tdisableCustomColors\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) ) }\n\t\t\t\t</>\n\t\t\t) }\n\t\t\t{ ! hasElements && emptyMessage }\n\t\t</PaletteEditStyles>\n\t);\n}\n\nexport default PaletteEdit;\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,UAAU,MAAM,YAAY;;AAEnC;AACA;AACA;AACA,SACCC,QAAQ,EACRC,MAAM,EACNC,SAAS,EACTC,WAAW,EACXC,OAAO,QACD,oBAAoB;AAC3B,SAASC,EAAE,EAAEC,OAAO,QAAQ,iBAAiB;AAC7C,SAASC,SAAS,EAAEC,YAAY,EAAEC,IAAI,QAAQ,kBAAkB;AAChE,SACCC,6BAA6B,IAAIC,eAAe,EAChDC,WAAW,QACL,oBAAoB;;AAE3B;AACA;AACA;AACA,OAAOC,MAAM,MAAM,WAAW;AAC9B,SAASC,WAAW,QAAQ,iBAAiB;AAC7C,SAASC,QAAQ,QAAQ,SAAS;AAClC,SAASC,MAAM,QAAQ,YAAY;AACnC,SAASC,SAAS,QAAQ,eAAe;AACzC,SAASC,MAAM,QAAQ,YAAY;AACnC,OAA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GA;EAAc,CAC7B,CACD,EACC,CAAEgB,SAAS,KACVlB,UAAU,GACXlB,aAAA,CAACvB,cAAc;IACdiG,SAAS,EAAGA,SAAW;IACvB5E,QAAQ,EAAGsF,mBAAqB;IAChCS,SAAS,EAAG,KAAO;IACnBC,sBAAsB;EAAA,CACtB,CAAC,GAEF9F,aAAA,CAACtB,YAAY;IACZiG,MAAM,EAAGA,MAAQ;IACjB7E,QAAQ,EAAGsF,mBAAqB;IAChCS,SAAS,EAAG,KAAO;IACnBE,mBAAmB;EAAA,CACnB,CACD,CACD,CACF,EACC,CAAEZ,WAAW,IAAIL,YACD,CAAC;AAEtB;AAEA,eAAeL,WAAW","ignoreList":[]}
@@ -44,7 +44,7 @@ export const PaletteItem = /*#__PURE__*/_styled(View, process.env.NODE_ENV === "
44
44
  target: "e1lpqc907",
45
45
  label: "PaletteItem"
46
46
  })(buttonStyleReset, " padding-block:3px;padding-inline-start:", space(3), ";border:1px solid ", CONFIG.surfaceBorderColor, ";border-bottom-color:transparent;font-size:", font('default.fontSize'), ";&:focus-visible{border-color:transparent;box-shadow:0 0 0 var( --wp-admin-border-width-focus ) ", COLORS.theme.accent, ";outline:2px solid transparent;outline-offset:0;}border-top-left-radius:", CONFIG.controlBorderRadius, ";border-top-right-radius:", CONFIG.controlBorderRadius, ";&+&{border-top-left-radius:0;border-top-right-radius:0;}&:last-child{border-bottom-left-radius:", CONFIG.controlBorderRadius, ";border-bottom-right-radius:", CONFIG.controlBorderRadius, ";border-bottom-color:", CONFIG.surfaceBorderColor, ";}&.is-selected+&{border-top-color:transparent;}&.is-selected{border-color:", COLORS.theme.accent, ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvcGFsZXR0ZS1lZGl0L3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQU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V4cG9ydCBjb25zdCBQYWxldHRlQWN0aW9uc0NvbnRhaW5lciA9IHN0eWxlZCggVmlldyApYFxuXHRoZWlnaHQ6ICR7IHNwYWNlKCA2ICkgfTtcblx0ZGlzcGxheTogZmxleDtcbmA7XG5cbmV4cG9ydCBjb25zdCBQYWxldHRlSFN0YWNrSGVhZGVyID0gc3R5bGVkKCBIU3RhY2sgKWBcblx0bWFyZ2luLWJvdHRvbTogJHsgc3BhY2UoIDIgKSB9O1xuYDtcblxuZXhwb3J0IGNvbnN0IFBhbGV0dGVFZGl0U3R5bGVzID0gc3R5bGVkKCBWaWV3IClgXG5cdCYmJiB7XG5cdFx0LmNvbXBvbmVudHMtYnV0dG9uLmhhcy1pY29uIHtcblx0XHRcdG1pbi13aWR0aDogMDtcblx0XHRcdHBhZGRpbmc6IDA7XG5cdFx0fVxuXHR9XG5gO1xuXG5leHBvcnQgY29uc3QgRG9uZUJ1dHRvbiA9IHN0eWxlZCggQnV0dG9uIClgXG5cdCYmIHtcblx0XHRjb2xvcjogJHsgQ09MT1JTLnRoZW1lLmFjY2VudCB9O1xuXHR9XG5gO1xuXG5leHBvcnQgY29uc3QgUmVtb3ZlQnV0dG9uID0gc3R5bGVkKCBCdXR0b24gKWBcblx0JiYge1xuXHRcdG1hcmdpbi10b3A6ICR7IHNwYWNlKCAxICkgfTtcblx0fVxuYDtcbiJdfQ== */"));
47
- export const NameContainer = _styled("div", process.env.NODE_ENV === "production" ? {
47
+ export const NameContainer = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
48
48
  target: "e1lpqc906"
49
49
  } : {
50
50
  target: "e1lpqc906",
@@ -1 +1 @@
1
- {"version":3,"names":["css","Button","Heading","HStack","space","COLORS","CONFIG","font","View","InputControl","Container","InputControlContainer","Input","BackdropUI","InputBackdropUI","ColorIndicator","IndicatorStyled","_styled","process","env","NODE_ENV","target","label","NameInputControl","gray","controlBorderRadius","buttonStyleReset","as","theme","accent","PaletteItem","surfaceBorderColor","NameContainer","PaletteHeading","PaletteActionsContainer","PaletteHStackHeader","PaletteEditStyles","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","DoneButton","RemoveButton"],"sources":["@wordpress/components/src/palette-edit/styles.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport styled from '@emotion/styled';\nimport { css } from '@emotion/react';\n\n/**\n * Internal dependencies\n */\nimport Button from '../button';\nimport { Heading } from '../heading';\nimport { HStack } from '../h-stack';\nimport { space } from '../utils/space';\nimport { COLORS, CONFIG, font } from '../utils';\nimport { View } from '../view';\nimport InputControl from '../input-control';\nimport {\n\tContainer as InputControlContainer,\n\tInput,\n\tBackdropUI as InputBackdropUI,\n} from '../input-control/styles/input-control-styles';\nimport ColorIndicator from '../color-indicator';\n\nexport const IndicatorStyled = styled( ColorIndicator )`\n\t&& {\n\t\tflex-shrink: 0;\n\t\twidth: ${ space( 6 ) };\n\t\theight: ${ space( 6 ) };\n\t}\n`;\n\nexport const NameInputControl = styled( InputControl )`\n\t${ InputControlContainer } {\n\t\tbackground: ${ COLORS.gray[ 100 ] };\n\t\tborder-radius: ${ CONFIG.controlBorderRadius };\n\t\t${ Input }${ Input }${ Input }${ Input } {\n\t\t\theight: ${ space( 8 ) };\n\t\t}\n\t\t${ InputBackdropUI }${ InputBackdropUI }${ InputBackdropUI } {\n\t\t\tborder-color: transparent;\n\t\t\tbox-shadow: none;\n\t\t}\n\t}\n`;\n\nconst buttonStyleReset = ( {\n\tas,\n}: {\n\tas: React.ComponentProps< typeof View >[ 'as' ];\n} ) => {\n\tif ( as === 'button' ) {\n\t\treturn css`\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\twidth: 100%;\n\t\t\tappearance: none;\n\t\t\tbackground: transparent;\n\t\t\tborder: none;\n\t\t\tborder-radius: 0;\n\t\t\tpadding: 0;\n\t\t\tcursor: pointer;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: ${ COLORS.theme.accent };\n\t\t\t}\n\t\t`;\n\t}\n\treturn null;\n};\n\nexport const PaletteItem = styled( View )`\n\t${ buttonStyleReset }\n\n\tpadding-block: 3px;\n\tpadding-inline-start: ${ space( 3 ) };\n\tborder: 1px solid ${ CONFIG.surfaceBorderColor };\n\tborder-bottom-color: transparent;\n\tfont-size: ${ font( 'default.fontSize' ) };\n\n\t&:focus-visible {\n\t\tborder-color: transparent;\n\t\tbox-shadow: 0 0 0 var( --wp-admin-border-width-focus )\n\t\t\t${ COLORS.theme.accent };\n\t\t// Windows high contrast mode.\n\t\toutline: 2px solid transparent;\n\t\toutline-offset: 0;\n\t}\n\n\tborder-top-left-radius: ${ CONFIG.controlBorderRadius };\n\tborder-top-right-radius: ${ CONFIG.controlBorderRadius };\n\n\t& + & {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:last-child {\n\t\tborder-bottom-left-radius: ${ CONFIG.controlBorderRadius };\n\t\tborder-bottom-right-radius: ${ CONFIG.controlBorderRadius };\n\t\tborder-bottom-color: ${ CONFIG.surfaceBorderColor };\n\t}\n\n\t&.is-selected + & {\n\t\tborder-top-color: transparent;\n\t}\n\t&.is-selected {\n\t\tborder-color: ${ COLORS.theme.accent };\n\t}\n`;\n\nexport const NameContainer = styled.div`\n\tline-height: ${ space( 8 ) };\n\tmargin-left: ${ space( 2 ) };\n\tmargin-right: ${ space( 2 ) };\n\twhite-space: nowrap;\n\toverflow: hidden;\n`;\n\nexport const PaletteHeading = styled( Heading )`\n\ttext-transform: uppercase;\n\tline-height: ${ space( 6 ) };\n\tfont-weight: 500;\n\t&&& {\n\t\tfont-size: 11px;\n\t\tmargin-bottom: 0;\n\t}\n`;\n\nexport const PaletteActionsContainer = styled( View )`\n\theight: ${ space( 6 ) };\n\tdisplay: flex;\n`;\n\nexport const PaletteHStackHeader = styled( HStack )`\n\tmargin-bottom: ${ space( 2 ) };\n`;\n\nexport const PaletteEditStyles = styled( View )`\n\t&&& {\n\t\t.components-button.has-icon {\n\t\t\tmin-width: 0;\n\t\t\tpadding: 0;\n\t\t}\n\t}\n`;\n\nexport const DoneButton = styled( Button )`\n\t&& {\n\t\tcolor: ${ COLORS.theme.accent };\n\t}\n`;\n\nexport const RemoveButton = styled( Button )`\n\t&& {\n\t\tmargin-top: ${ space( 1 ) };\n\t}\n`;\n"],"mappings":";;AAAA;AACA;AACA;;AAEA,SAASA,GAAG,QAAQ,gBAAgB;;AAEpC;AACA;AACA;AACA,OAAOC,MAAM,MAAM,WAAW;AAC9B,SAASC,OAAO,QAAQ,YAAY;AACpC,SAASC,MAAM,QAAQ,YAAY;AACnC,SAASC,KAAK,QAAQ,gBAAgB;AACtC,SAASC,MAAM,EAAEC,MAAM,EAAEC,IAAI,QAAQ,UAAU;AAC/C,SAASC,IAAI,QAAQ,SAAS;AAC9B,OAAOC,YAAY,MAAM,kBAAkB;AAC3C,SACCC,SAAS,IAAIC,qBAAqB,EAClCC,KAAK,EACLC,UAAU,IAAIC,eAAe,QACvB,8CAA8C;AACrD,OAAOC,cAAc,MAAM,oBAAoB;AAE/C,OAAO,MAAMC,eAAe,GAAG,aAAAC,OAAA,CAAQF,cAAc,EAAAG,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,CAAC,CAAC,4BAG3ClB,KAAK,CAAE,CAAE,CAAC,cACTA,KAAK,CAAE,CAAE,CAAC,UAAAc,OAAA,CAAAC,GAAA,CAAAC,QAAA,4qKAEtB;AAED,OAAO,MAAMG,gBAAgB,GAAG,aAAAN,OAAA,CAAQR,YAAY,EAAAS,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,CAAC,CAAC,CAClDX,qBAAqB,kBACRN,MAAM,CAACmB,IAAI,CAAE,GAAG,CAAE,qBACflB,MAAM,CAACmB,mBAAmB,OACzCb,KAAK,EAAKA,KAAK,EAAKA,KAAK,EAAKA,KAAK,cAC1BR,KAAK,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K,CAACC,MAAM,UAAAX,OAAA,CAAAC,GAAA,CAAAC,QAAA,4qKAE9B;AAED,OAAO,MAAMuB,YAAY,GAAG,aAAA1B,OAAA,CAAQhB,MAAM,EAAAiB,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,CAAC,CAAC,mBAE3BlB,KAAK,CAAE,CAAE,CAAC,UAAAc,OAAA,CAAAC,GAAA,CAAAC,QAAA,4qKAE1B"}
1
+ {"version":3,"names":["css","Button","Heading","HStack","space","COLORS","CONFIG","font","View","InputControl","Container","InputControlContainer","Input","BackdropUI","InputBackdropUI","ColorIndicator","IndicatorStyled","_styled","process","env","NODE_ENV","target","label","NameInputControl","gray","controlBorderRadius","buttonStyleReset","as","theme","accent","PaletteItem","surfaceBorderColor","NameContainer","PaletteHeading","PaletteActionsContainer","PaletteHStackHeader","PaletteEditStyles","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","DoneButton","RemoveButton"],"sources":["@wordpress/components/src/palette-edit/styles.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport styled from '@emotion/styled';\nimport { css } from '@emotion/react';\n\n/**\n * Internal dependencies\n */\nimport Button from '../button';\nimport { Heading } from '../heading';\nimport { HStack } from '../h-stack';\nimport { space } from '../utils/space';\nimport { COLORS, CONFIG, font } from '../utils';\nimport { View } from '../view';\nimport InputControl from '../input-control';\nimport {\n\tContainer as InputControlContainer,\n\tInput,\n\tBackdropUI as InputBackdropUI,\n} from '../input-control/styles/input-control-styles';\nimport ColorIndicator from '../color-indicator';\n\nexport const IndicatorStyled = styled( ColorIndicator )`\n\t&& {\n\t\tflex-shrink: 0;\n\t\twidth: ${ space( 6 ) };\n\t\theight: ${ space( 6 ) };\n\t}\n`;\n\nexport const NameInputControl = styled( InputControl )`\n\t${ InputControlContainer } {\n\t\tbackground: ${ COLORS.gray[ 100 ] };\n\t\tborder-radius: ${ CONFIG.controlBorderRadius };\n\t\t${ Input }${ Input }${ Input }${ Input } {\n\t\t\theight: ${ space( 8 ) };\n\t\t}\n\t\t${ InputBackdropUI }${ InputBackdropUI }${ InputBackdropUI } {\n\t\t\tborder-color: transparent;\n\t\t\tbox-shadow: none;\n\t\t}\n\t}\n`;\n\nconst buttonStyleReset = ( {\n\tas,\n}: {\n\tas: React.ComponentProps< typeof View >[ 'as' ];\n} ) => {\n\tif ( as === 'button' ) {\n\t\treturn css`\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\twidth: 100%;\n\t\t\tappearance: none;\n\t\t\tbackground: transparent;\n\t\t\tborder: none;\n\t\t\tborder-radius: 0;\n\t\t\tpadding: 0;\n\t\t\tcursor: pointer;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: ${ COLORS.theme.accent };\n\t\t\t}\n\t\t`;\n\t}\n\treturn null;\n};\n\nexport const PaletteItem = styled( View )`\n\t${ buttonStyleReset }\n\n\tpadding-block: 3px;\n\tpadding-inline-start: ${ space( 3 ) };\n\tborder: 1px solid ${ CONFIG.surfaceBorderColor };\n\tborder-bottom-color: transparent;\n\tfont-size: ${ font( 'default.fontSize' ) };\n\n\t&:focus-visible {\n\t\tborder-color: transparent;\n\t\tbox-shadow: 0 0 0 var( --wp-admin-border-width-focus )\n\t\t\t${ COLORS.theme.accent };\n\t\t// Windows high contrast mode.\n\t\toutline: 2px solid transparent;\n\t\toutline-offset: 0;\n\t}\n\n\tborder-top-left-radius: ${ CONFIG.controlBorderRadius };\n\tborder-top-right-radius: ${ CONFIG.controlBorderRadius };\n\n\t& + & {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:last-child {\n\t\tborder-bottom-left-radius: ${ CONFIG.controlBorderRadius };\n\t\tborder-bottom-right-radius: ${ CONFIG.controlBorderRadius };\n\t\tborder-bottom-color: ${ CONFIG.surfaceBorderColor };\n\t}\n\n\t&.is-selected + & {\n\t\tborder-top-color: transparent;\n\t}\n\t&.is-selected {\n\t\tborder-color: ${ COLORS.theme.accent };\n\t}\n`;\n\nexport const NameContainer = styled.div`\n\tline-height: ${ space( 8 ) };\n\tmargin-left: ${ space( 2 ) };\n\tmargin-right: ${ space( 2 ) };\n\twhite-space: nowrap;\n\toverflow: hidden;\n`;\n\nexport const PaletteHeading = styled( Heading )`\n\ttext-transform: uppercase;\n\tline-height: ${ space( 6 ) };\n\tfont-weight: 500;\n\t&&& {\n\t\tfont-size: 11px;\n\t\tmargin-bottom: 0;\n\t}\n`;\n\nexport const PaletteActionsContainer = styled( View )`\n\theight: ${ space( 6 ) };\n\tdisplay: flex;\n`;\n\nexport const PaletteHStackHeader = styled( HStack )`\n\tmargin-bottom: ${ space( 2 ) };\n`;\n\nexport const PaletteEditStyles = styled( View )`\n\t&&& {\n\t\t.components-button.has-icon {\n\t\t\tmin-width: 0;\n\t\t\tpadding: 0;\n\t\t}\n\t}\n`;\n\nexport const DoneButton = styled( Button )`\n\t&& {\n\t\tcolor: ${ COLORS.theme.accent };\n\t}\n`;\n\nexport const RemoveButton = styled( Button )`\n\t&& {\n\t\tmargin-top: ${ space( 1 ) };\n\t}\n`;\n"],"mappings":";;AAAA;AACA;AACA;;AAEA,SAASA,GAAG,QAAQ,gBAAgB;;AAEpC;AACA;AACA;AACA,OAAOC,MAAM,MAAM,WAAW;AAC9B,SAASC,OAAO,QAAQ,YAAY;AACpC,SAASC,MAAM,QAAQ,YAAY;AACnC,SAASC,KAAK,QAAQ,gBAAgB;AACtC,SAASC,MAAM,EAAEC,MAAM,EAAEC,IAAI,QAAQ,UAAU;AAC/C,SAASC,IAAI,QAAQ,SAAS;AAC9B,OAAOC,YAAY,MAAM,kBAAkB;AAC3C,SACCC,SAAS,IAAIC,qBAAqB,EAClCC,KAAK,EACLC,UAAU,IAAIC,eAAe,QACvB,8CAA8C;AACrD,OAAOC,cAAc,MAAM,oBAAoB;AAE/C,OAAO,MAAMC,eAAe,gBAAGC,OAAA,CAAQF,cAAc,EAAAG,OAAA,CAAA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AO,MAAMgB,iBAAiB,gBAAGnB,OAAA,CAAQT,IAAI,EAAAU,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,CAAC,CAAC,CAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAiB,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAC;AAAA,EAO9C;AAED,OAAO,MAAMC,UAAU,gBAAGzB,OAAA,CAAQhB,MAAM,EAAAiB,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,CAAC,CAAC,cAE9BjB,MAAM,CAACuB,KAAK,CAACC,MAAM,UAAAX,OAAA,CAAAC,GAAA,CAAAC,QAAA,4qKAE9B;AAED,OAAO,MAAMuB,YAAY,gBAAG1B,OAAA,CAAQhB,MAAM,EAAAiB,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,CAAC,CAAC,mBAE3BlB,KAAK,CAAE,CAAE,CAAC,UAAAc,OAAA,CAAAC,GAAA,CAAAC,QAAA,4qKAE1B","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["@wordpress/components/src/palette-edit/types.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { Key, MouseEventHandler } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type Popover from '../popover';\nimport type { HeadingSize } from '../heading/types';\n\nexport type Color = {\n\tcolor: string;\n\tname: string;\n\tslug: string;\n\tgradient?: never;\n};\n\nexport type Gradient = {\n\tgradient: string;\n\tname: string;\n\tslug: string;\n\tcolor?: never;\n};\n\nexport type PaletteElement = Color | Gradient;\n\nexport type BasePaletteEdit = {\n\t/**\n\t * Whether the user can only change the color or gradient values.\n\t * If true, they cannot change names or delete values.\n\t *\n\t * @default false\n\t */\n\tcanOnlyChangeValues?: boolean;\n\t/**\n\t * Whether the user can reset the editor.\n\t *\n\t * @default false\n\t */\n\tcanReset?: boolean;\n\t/**\n\t * A message to show if there's nothing to edit.\n\t */\n\temptyMessage?: string;\n\t/**\n\t * A heading label for the palette.\n\t */\n\tpaletteLabel: string;\n\t/**\n\t * The label's heading level.\n\t *\n\t * @default 2\n\t */\n\tpaletteLabelHeadingLevel?: HeadingSize;\n\t/**\n\t * The prefix for the element slug.\n\t *\n\t * @default ''\n\t */\n\tslugPrefix?: string;\n\t/**\n\t * Props to pass through to the underlying Popover component.\n\t */\n\tpopoverProps?: Omit<\n\t\tReact.ComponentPropsWithoutRef< typeof Popover >,\n\t\t'children'\n\t>;\n};\n\ntype PaletteEditColors = {\n\t/**\n\t * The colors in the palette.\n\t */\n\tcolors?: Color[];\n\t/**\n\t * Runs on changing the value.\n\t */\n\tonChange: ( values?: Color[] ) => void;\n\tgradients?: never;\n};\n\ntype PaletteEditGradients = {\n\t/**\n\t * The gradients in the palette.\n\t */\n\tgradients: Gradient[];\n\t/**\n\t * Runs on changing the value.\n\t */\n\tonChange: ( values?: Gradient[] ) => void;\n\tcolors?: never;\n};\n\nexport type PaletteEditProps = BasePaletteEdit &\n\t( PaletteEditColors | PaletteEditGradients );\n\ntype EditingElement = number | null;\n\nexport type ColorPickerPopoverProps< T extends Color | Gradient > = {\n\telement: T;\n\tonChange: ( newElement: T ) => void;\n\tisGradient?: T extends Gradient ? true : false;\n\tonClose?: () => void;\n\tpopoverProps?: PaletteEditProps[ 'popoverProps' ];\n};\n\nexport type NameInputProps = {\n\tlabel: string;\n\tonChange: ( nextName?: PaletteElement[ 'name' ] ) => void;\n\tvalue: PaletteElement[ 'name' ];\n};\n\nexport type OptionProps< T extends Color | Gradient > = {\n\telement: T;\n\tonChange: ( newElement: T ) => void;\n\tisGradient: T extends Gradient ? true : false;\n\tcanOnlyChangeValues: PaletteEditProps[ 'canOnlyChangeValues' ];\n\tisEditing: boolean;\n\tkey: Key;\n\tonRemove: MouseEventHandler< HTMLButtonElement >;\n\tonStartEditing: () => void;\n\tonStopEditing: () => void;\n\tpopoverProps?: PaletteEditProps[ 'popoverProps' ];\n\tslugPrefix: string;\n};\n\nexport type PaletteEditListViewProps< T extends Color | Gradient > = {\n\telements: T[];\n\tonChange: ( newElements?: T[] ) => void;\n\tisGradient: T extends Gradient ? true : false;\n\tcanOnlyChangeValues: PaletteEditProps[ 'canOnlyChangeValues' ];\n\teditingElement?: EditingElement;\n\tpopoverProps?: PaletteEditProps[ 'popoverProps' ];\n\tsetEditingElement: ( newEditingElement?: EditingElement ) => void;\n\tslugPrefix: string;\n};\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["@wordpress/components/src/palette-edit/types.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { Key, MouseEventHandler } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type Popover from '../popover';\nimport type { HeadingSize } from '../heading/types';\n\nexport type Color = {\n\tcolor: string;\n\tname: string;\n\tslug: string;\n\tgradient?: never;\n};\n\nexport type Gradient = {\n\tgradient: string;\n\tname: string;\n\tslug: string;\n\tcolor?: never;\n};\n\nexport type PaletteElement = Color | Gradient;\n\nexport type BasePaletteEdit = {\n\t/**\n\t * Whether the user can only change the color or gradient values.\n\t * If true, they cannot change names or delete values.\n\t *\n\t * @default false\n\t */\n\tcanOnlyChangeValues?: boolean;\n\t/**\n\t * Whether the user can reset the editor.\n\t *\n\t * @default false\n\t */\n\tcanReset?: boolean;\n\t/**\n\t * A message to show if there's nothing to edit.\n\t */\n\temptyMessage?: string;\n\t/**\n\t * A heading label for the palette.\n\t */\n\tpaletteLabel: string;\n\t/**\n\t * The label's heading level.\n\t *\n\t * @default 2\n\t */\n\tpaletteLabelHeadingLevel?: HeadingSize;\n\t/**\n\t * The prefix for the element slug.\n\t *\n\t * @default ''\n\t */\n\tslugPrefix?: string;\n\t/**\n\t * Props to pass through to the underlying Popover component.\n\t */\n\tpopoverProps?: Omit<\n\t\tReact.ComponentPropsWithoutRef< typeof Popover >,\n\t\t'children'\n\t>;\n};\n\ntype PaletteEditColors = {\n\t/**\n\t * The colors in the palette.\n\t */\n\tcolors?: Color[];\n\t/**\n\t * Runs on changing the value.\n\t */\n\tonChange: ( values?: Color[] ) => void;\n\tgradients?: never;\n};\n\ntype PaletteEditGradients = {\n\t/**\n\t * The gradients in the palette.\n\t */\n\tgradients: Gradient[];\n\t/**\n\t * Runs on changing the value.\n\t */\n\tonChange: ( values?: Gradient[] ) => void;\n\tcolors?: never;\n};\n\nexport type PaletteEditProps = BasePaletteEdit &\n\t( PaletteEditColors | PaletteEditGradients );\n\ntype EditingElement = number | null;\n\nexport type ColorPickerPopoverProps< T extends Color | Gradient > = {\n\telement: T;\n\tonChange: ( newElement: T ) => void;\n\tisGradient?: T extends Gradient ? true : false;\n\tonClose?: () => void;\n\tpopoverProps?: PaletteEditProps[ 'popoverProps' ];\n};\n\nexport type NameInputProps = {\n\tlabel: string;\n\tonChange: ( nextName?: PaletteElement[ 'name' ] ) => void;\n\tvalue: PaletteElement[ 'name' ];\n};\n\nexport type OptionProps< T extends Color | Gradient > = {\n\telement: T;\n\tonChange: ( newElement: T ) => void;\n\tisGradient: T extends Gradient ? true : false;\n\tcanOnlyChangeValues: PaletteEditProps[ 'canOnlyChangeValues' ];\n\tisEditing: boolean;\n\tkey: Key;\n\tonRemove: MouseEventHandler< HTMLButtonElement >;\n\tonStartEditing: () => void;\n\tonStopEditing: () => void;\n\tpopoverProps?: PaletteEditProps[ 'popoverProps' ];\n\tslugPrefix: string;\n};\n\nexport type PaletteEditListViewProps< T extends Color | Gradient > = {\n\telements: T[];\n\tonChange: ( newElements?: T[] ) => void;\n\tisGradient: T extends Gradient ? true : false;\n\tcanOnlyChangeValues: PaletteEditProps[ 'canOnlyChangeValues' ];\n\teditingElement?: EditingElement;\n\tpopoverProps?: PaletteEditProps[ 'popoverProps' ];\n\tsetEditingElement: ( newEditingElement?: EditingElement ) => void;\n\tslugPrefix: string;\n};\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["View","TextControl","withPreferredColorScheme","useMemo","styles","BottomSeparatorCover","PanelActions","actions","getStylesFromColorScheme","mappedActions","map","label","onPress","createElement","labelStyle","defaultLabelStyle","key","style","panelActionsContainer","panelActionsContainerDark"],"sources":["@wordpress/components/src/panel/actions.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { View } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { TextControl } from '@wordpress/components';\nimport { withPreferredColorScheme } from '@wordpress/compose';\nimport { useMemo } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport styles from './actions.scss';\nimport BottomSeparatorCover from './bottom-separator-cover';\n\nfunction PanelActions( { actions, getStylesFromColorScheme } ) {\n\tconst mappedActions = useMemo( () => {\n\t\treturn actions.map( ( { label, onPress } ) => {\n\t\t\treturn (\n\t\t\t\t<TextControl\n\t\t\t\t\tlabel={ label }\n\t\t\t\t\tonPress={ onPress }\n\t\t\t\t\tlabelStyle={ styles.defaultLabelStyle }\n\t\t\t\t\tkey={ label }\n\t\t\t\t/>\n\t\t\t);\n\t\t} );\n\t}, [ actions ] );\n\n\treturn (\n\t\t<View\n\t\t\tstyle={ getStylesFromColorScheme(\n\t\t\t\tstyles.panelActionsContainer,\n\t\t\t\tstyles.panelActionsContainerDark\n\t\t\t) }\n\t\t>\n\t\t\t{ mappedActions }\n\t\t\t<BottomSeparatorCover />\n\t\t</View>\n\t);\n}\n\nexport default withPreferredColorScheme( PanelActions );\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,IAAI,QAAQ,cAAc;;AAEnC;AACA;AACA;AACA,SAASC,WAAW,QAAQ,uBAAuB;AACnD,SAASC,wBAAwB,QAAQ,oBAAoB;AAC7D,SAASC,OAAO,QAAQ,oBAAoB;;AAE5C;AACA;AACA;AACA,OAAOC,MAAM,MAAM,gBAAgB;AACnC,OAAOC,oBAAoB,MAAM,0BAA0B;AAE3D,SAASC,YAAYA,CAAE;EAAEC,OAAO;EAAEC;AAAyB,CAAC,EAAG;EAC9D,MAAMC,aAAa,GAAGN,OAAO,CAAE,MAAM;IACpC,OAAOI,OAAO,CAACG,GAAG,CAAE,CAAE;MAAEC,KAAK;MAAEC;IAAQ,CAAC,KAAM;MAC7C,OACCC,aAAA,CAACZ,WAAW;QACXU,KAAK,EAAGA,KAAO;QACfC,OAAO,EAAGA,OAAS;QACnBE,UAAU,EAAGV,MAAM,CAACW,iBAAmB;QACvCC,GAAG,EAAGL;MAAO,CACb,CAAC;IAEJ,CAAE,CAAC;EACJ,CAAC,EAAE,CAAEJ,OAAO,CAAG,CAAC;EAEhB,OACCM,aAAA,CAACb,IAAI;IACJiB,KAAK,EAAGT,wBAAwB,CAC/BJ,MAAM,CAACc,qBAAqB,EAC5Bd,MAAM,CAACe,yBACR;EAAG,GAEDV,aAAa,EACfI,aAAA,CAACR,oBAAoB,MAAE,CAClB,CAAC;AAET;AAEA,eAAeH,wBAAwB,CAAEI,YAAa,CAAC"}
1
+ {"version":3,"names":["View","TextControl","withPreferredColorScheme","useMemo","styles","BottomSeparatorCover","PanelActions","actions","getStylesFromColorScheme","mappedActions","map","label","onPress","createElement","labelStyle","defaultLabelStyle","key","style","panelActionsContainer","panelActionsContainerDark"],"sources":["@wordpress/components/src/panel/actions.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { View } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { TextControl } from '@wordpress/components';\nimport { withPreferredColorScheme } from '@wordpress/compose';\nimport { useMemo } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport styles from './actions.scss';\nimport BottomSeparatorCover from './bottom-separator-cover';\n\nfunction PanelActions( { actions, getStylesFromColorScheme } ) {\n\tconst mappedActions = useMemo( () => {\n\t\treturn actions.map( ( { label, onPress } ) => {\n\t\t\treturn (\n\t\t\t\t<TextControl\n\t\t\t\t\tlabel={ label }\n\t\t\t\t\tonPress={ onPress }\n\t\t\t\t\tlabelStyle={ styles.defaultLabelStyle }\n\t\t\t\t\tkey={ label }\n\t\t\t\t/>\n\t\t\t);\n\t\t} );\n\t}, [ actions ] );\n\n\treturn (\n\t\t<View\n\t\t\tstyle={ getStylesFromColorScheme(\n\t\t\t\tstyles.panelActionsContainer,\n\t\t\t\tstyles.panelActionsContainerDark\n\t\t\t) }\n\t\t>\n\t\t\t{ mappedActions }\n\t\t\t<BottomSeparatorCover />\n\t\t</View>\n\t);\n}\n\nexport default withPreferredColorScheme( PanelActions );\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,IAAI,QAAQ,cAAc;;AAEnC;AACA;AACA;AACA,SAASC,WAAW,QAAQ,uBAAuB;AACnD,SAASC,wBAAwB,QAAQ,oBAAoB;AAC7D,SAASC,OAAO,QAAQ,oBAAoB;;AAE5C;AACA;AACA;AACA,OAAOC,MAAM,MAAM,gBAAgB;AACnC,OAAOC,oBAAoB,MAAM,0BAA0B;AAE3D,SAASC,YAAYA,CAAE;EAAEC,OAAO;EAAEC;AAAyB,CAAC,EAAG;EAC9D,MAAMC,aAAa,GAAGN,OAAO,CAAE,MAAM;IACpC,OAAOI,OAAO,CAACG,GAAG,CAAE,CAAE;MAAEC,KAAK;MAAEC;IAAQ,CAAC,KAAM;MAC7C,OACCC,aAAA,CAACZ,WAAW;QACXU,KAAK,EAAGA,KAAO;QACfC,OAAO,EAAGA,OAAS;QACnBE,UAAU,EAAGV,MAAM,CAACW,iBAAmB;QACvCC,GAAG,EAAGL;MAAO,CACb,CAAC;IAEJ,CAAE,CAAC;EACJ,CAAC,EAAE,CAAEJ,OAAO,CAAG,CAAC;EAEhB,OACCM,aAAA,CAACb,IAAI;IACJiB,KAAK,EAAGT,wBAAwB,CAC/BJ,MAAM,CAACc,qBAAqB,EAC5Bd,MAAM,CAACe,yBACR;EAAG,GAEDV,aAAa,EACfI,aAAA,CAACR,oBAAoB,MAAE,CAClB,CAAC;AAET;AAEA,eAAeH,wBAAwB,CAAEI,YAAa,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["classnames","useReducedMotion","useMergeRefs","forwardRef","useRef","chevronUp","chevronDown","Button","Icon","useControlledState","useUpdateEffect","noop","UnforwardedPanelBody","props","ref","buttonProps","children","className","icon","initialOpen","onToggle","opened","title","scrollAfterOpen","isOpened","setIsOpened","initial","undefined","fallback","nodeRef","scrollBehavior","handleOnToggle","event","preventDefault","next","scrollAfterOpenRef","current","scrollIntoView","inline","block","behavior","classes","createElement","PanelBodyTitle","Boolean","onClick","size","PanelBody"],"sources":["@wordpress/components/src/panel/body.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { useReducedMotion, useMergeRefs } from '@wordpress/compose';\nimport { forwardRef, useRef } from '@wordpress/element';\nimport { chevronUp, chevronDown } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport type { PanelBodyProps, PanelBodyTitleProps } from './types';\nimport type { WordPressComponentProps } from '../context';\nimport Button from '../button';\nimport Icon from '../icon';\nimport { useControlledState, useUpdateEffect } from '../utils';\n\nconst noop = () => {};\n\nexport function UnforwardedPanelBody(\n\tprops: PanelBodyProps,\n\tref: React.ForwardedRef< HTMLDivElement >\n) {\n\tconst {\n\t\tbuttonProps = {},\n\t\tchildren,\n\t\tclassName,\n\t\ticon,\n\t\tinitialOpen,\n\t\tonToggle = noop,\n\t\topened,\n\t\ttitle,\n\t\tscrollAfterOpen = true,\n\t} = props;\n\tconst [ isOpened, setIsOpened ] = useControlledState< boolean | undefined >(\n\t\topened,\n\t\t{\n\t\t\tinitial: initialOpen === undefined ? true : initialOpen,\n\t\t\tfallback: false,\n\t\t}\n\t);\n\tconst nodeRef = useRef< HTMLElement >( null );\n\n\t// Defaults to 'smooth' scrolling\n\t// https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView\n\tconst scrollBehavior = useReducedMotion() ? 'auto' : 'smooth';\n\n\tconst handleOnToggle = ( event: React.MouseEvent ) => {\n\t\tevent.preventDefault();\n\t\tconst next = ! isOpened;\n\t\tsetIsOpened( next );\n\t\tonToggle( next );\n\t};\n\n\t// Ref is used so that the effect does not re-run upon scrollAfterOpen changing value.\n\tconst scrollAfterOpenRef = useRef< boolean | undefined >();\n\tscrollAfterOpenRef.current = scrollAfterOpen;\n\t// Runs after initial render.\n\tuseUpdateEffect( () => {\n\t\tif (\n\t\t\tisOpened &&\n\t\t\tscrollAfterOpenRef.current &&\n\t\t\tnodeRef.current?.scrollIntoView\n\t\t) {\n\t\t\t/*\n\t\t\t * Scrolls the content into view when visible.\n\t\t\t * This improves the UX when there are multiple stacking <PanelBody />\n\t\t\t * components in a scrollable container.\n\t\t\t */\n\t\t\tnodeRef.current.scrollIntoView( {\n\t\t\t\tinline: 'nearest',\n\t\t\t\tblock: 'nearest',\n\t\t\t\tbehavior: scrollBehavior,\n\t\t\t} );\n\t\t}\n\t}, [ isOpened, scrollBehavior ] );\n\n\tconst classes = classnames( 'components-panel__body', className, {\n\t\t'is-opened': isOpened,\n\t} );\n\n\treturn (\n\t\t<div className={ classes } ref={ useMergeRefs( [ nodeRef, ref ] ) }>\n\t\t\t<PanelBodyTitle\n\t\t\t\ticon={ icon }\n\t\t\t\tisOpened={ Boolean( isOpened ) }\n\t\t\t\tonClick={ handleOnToggle }\n\t\t\t\ttitle={ title }\n\t\t\t\t{ ...buttonProps }\n\t\t\t/>\n\t\t\t{ typeof children === 'function'\n\t\t\t\t? children( { opened: Boolean( isOpened ) } )\n\t\t\t\t: isOpened && children }\n\t\t</div>\n\t);\n}\n\nconst PanelBodyTitle = forwardRef(\n\t(\n\t\t{\n\t\t\tisOpened,\n\t\t\ticon,\n\t\t\ttitle,\n\t\t\t...props\n\t\t}: WordPressComponentProps< PanelBodyTitleProps, 'button' >,\n\t\tref: React.ForwardedRef< any >\n\t) => {\n\t\tif ( ! title ) return null;\n\n\t\treturn (\n\t\t\t<h2 className=\"components-panel__body-title\">\n\t\t\t\t<Button\n\t\t\t\t\tclassName=\"components-panel__body-toggle\"\n\t\t\t\t\taria-expanded={ isOpened }\n\t\t\t\t\tref={ ref }\n\t\t\t\t\t{ ...props }\n\t\t\t\t>\n\t\t\t\t\t{ /*\n\t\t\t\t\tFirefox + NVDA don't announce aria-expanded because the browser\n\t\t\t\t\trepaints the whole element, so this wrapping span hides that.\n\t\t\t\t*/ }\n\t\t\t\t\t<span aria-hidden=\"true\">\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tclassName=\"components-panel__arrow\"\n\t\t\t\t\t\t\ticon={ isOpened ? chevronUp : chevronDown }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</span>\n\t\t\t\t\t{ title }\n\t\t\t\t\t{ icon && (\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\ticon={ icon }\n\t\t\t\t\t\t\tclassName=\"components-panel__icon\"\n\t\t\t\t\t\t\tsize={ 20 }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t</Button>\n\t\t\t</h2>\n\t\t);\n\t}\n);\n\nexport const PanelBody = forwardRef( UnforwardedPanelBody );\n\nexport default PanelBody;\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,UAAU,MAAM,YAAY;;AAEnC;AACA;AACA;AACA,SAASC,gBAAgB,EAAEC,YAAY,QAAQ,oBAAoB;AACnE,SAASC,UAAU,EAAEC,MAAM,QAAQ,oBAAoB;AACvD,SAASC,SAAS,EAAEC,WAAW,QAAQ,kBAAkB;;AAEzD;AACA;AACA;;AAGA,OAAOC,MAAM,MAAM,WAAW;AAC9B,OAAOC,IAAI,MAAM,SAAS;AAC1B,SAASC,kBAAkB,EAAEC,eAAe,QAAQ,UAAU;AAE9D,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;AAErB,OAAO,SAASC,oBAAoBA,CACnCC,KAAqB,EACrBC,GAAyC,EACxC;EACD,MAAM;IACLC,WAAW,GAAG,CAAC,CAAC;IAChBC,QAAQ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evronUp","chevronDown","Button","Icon","useControlledState","useUpdateEffect","noop","UnforwardedPanelBody","props","ref","buttonProps","children","className","icon","initialOpen","onToggle","opened","title","scrollAfterOpen","isOpened","setIsOpened","initial","undefined","fallback","nodeRef","scrollBehavior","handleOnToggle","event","preventDefault","next","scrollAfterOpenRef","current","scrollIntoView","inline","block","behavior","classes","createElement","PanelBodyTitle","Boolean","onClick","size","PanelBody"],"sources":["@wordpress/components/src/panel/body.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { useReducedMotion, useMergeRefs } from '@wordpress/compose';\nimport { forwardRef, useRef } from '@wordpress/element';\nimport { chevronUp, chevronDown } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport type { PanelBodyProps, PanelBodyTitleProps } from './types';\nimport type { WordPressComponentProps } from '../context';\nimport Button from '../button';\nimport Icon from '../icon';\nimport { useControlledState, useUpdateEffect } from '../utils';\n\nconst noop = () => {};\n\nexport function UnforwardedPanelBody(\n\tprops: PanelBodyProps,\n\tref: React.ForwardedRef< HTMLDivElement >\n) {\n\tconst {\n\t\tbuttonProps = {},\n\t\tchildren,\n\t\tclassName,\n\t\ticon,\n\t\tinitialOpen,\n\t\tonToggle = noop,\n\t\topened,\n\t\ttitle,\n\t\tscrollAfterOpen = true,\n\t} = props;\n\tconst [ isOpened, setIsOpened ] = useControlledState< boolean | undefined >(\n\t\topened,\n\t\t{\n\t\t\tinitial: initialOpen === undefined ? true : initialOpen,\n\t\t\tfallback: false,\n\t\t}\n\t);\n\tconst nodeRef = useRef< HTMLElement >( null );\n\n\t// Defaults to 'smooth' scrolling\n\t// https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView\n\tconst scrollBehavior = useReducedMotion() ? 'auto' : 'smooth';\n\n\tconst handleOnToggle = ( event: React.MouseEvent ) => {\n\t\tevent.preventDefault();\n\t\tconst next = ! isOpened;\n\t\tsetIsOpened( next );\n\t\tonToggle( next );\n\t};\n\n\t// Ref is used so that the effect does not re-run upon scrollAfterOpen changing value.\n\tconst scrollAfterOpenRef = useRef< boolean | undefined >();\n\tscrollAfterOpenRef.current = scrollAfterOpen;\n\t// Runs after initial render.\n\tuseUpdateEffect( () => {\n\t\tif (\n\t\t\tisOpened &&\n\t\t\tscrollAfterOpenRef.current &&\n\t\t\tnodeRef.current?.scrollIntoView\n\t\t) {\n\t\t\t/*\n\t\t\t * Scrolls the content into view when visible.\n\t\t\t * This improves the UX when there are multiple stacking <PanelBody />\n\t\t\t * components in a scrollable container.\n\t\t\t */\n\t\t\tnodeRef.current.scrollIntoView( {\n\t\t\t\tinline: 'nearest',\n\t\t\t\tblock: 'nearest',\n\t\t\t\tbehavior: scrollBehavior,\n\t\t\t} );\n\t\t}\n\t}, [ isOpened, scrollBehavior ] );\n\n\tconst classes = classnames( 'components-panel__body', className, {\n\t\t'is-opened': isOpened,\n\t} );\n\n\treturn (\n\t\t<div className={ classes } ref={ useMergeRefs( [ nodeRef, ref ] ) }>\n\t\t\t<PanelBodyTitle\n\t\t\t\ticon={ icon }\n\t\t\t\tisOpened={ Boolean( isOpened ) }\n\t\t\t\tonClick={ handleOnToggle }\n\t\t\t\ttitle={ title }\n\t\t\t\t{ ...buttonProps }\n\t\t\t/>\n\t\t\t{ typeof children === 'function'\n\t\t\t\t? children( { opened: Boolean( isOpened ) } )\n\t\t\t\t: isOpened && children }\n\t\t</div>\n\t);\n}\n\nconst PanelBodyTitle = forwardRef(\n\t(\n\t\t{\n\t\t\tisOpened,\n\t\t\ticon,\n\t\t\ttitle,\n\t\t\t...props\n\t\t}: WordPressComponentProps< PanelBodyTitleProps, 'button' >,\n\t\tref: React.ForwardedRef< any >\n\t) => {\n\t\tif ( ! title ) return null;\n\n\t\treturn (\n\t\t\t<h2 className=\"components-panel__body-title\">\n\t\t\t\t<Button\n\t\t\t\t\tclassName=\"components-panel__body-toggle\"\n\t\t\t\t\taria-expanded={ isOpened }\n\t\t\t\t\tref={ ref }\n\t\t\t\t\t{ ...props }\n\t\t\t\t>\n\t\t\t\t\t{ /*\n\t\t\t\t\tFirefox + NVDA don't announce aria-expanded because the browser\n\t\t\t\t\trepaints the whole element, so this wrapping span hides that.\n\t\t\t\t*/ }\n\t\t\t\t\t<span aria-hidden=\"true\">\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tclassName=\"components-panel__arrow\"\n\t\t\t\t\t\t\ticon={ isOpened ? chevronUp : chevronDown }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</span>\n\t\t\t\t\t{ title }\n\t\t\t\t\t{ icon && (\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\ticon={ icon }\n\t\t\t\t\t\t\tclassName=\"components-panel__icon\"\n\t\t\t\t\t\t\tsize={ 20 }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t</Button>\n\t\t\t</h2>\n\t\t);\n\t}\n);\n\nexport const PanelBody = forwardRef( UnforwardedPanelBody );\n\nexport default PanelBody;\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,UAAU,MAAM,YAAY;;AAEnC;AACA;AACA;AACA,SAASC,gBAAgB,EAAEC,YAAY,QAAQ,oBAAoB;AACnE,SAASC,UAAU,EAAEC,MAAM,QAAQ,oBAAoB;AACvD,SAASC,SAAS,EAAEC,WAAW,QAAQ,kBAAkB;;AAEzD;AACA;AACA;;AAGA,OAAOC,MAAM,MAAM,WAAW;AAC9B,OAAOC,IAAI,MAAM,SAAS;AAC1B,SAASC,kBAAkB,EAAEC,eAAe,QAAQ,UAAU;AAE9D,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;AAErB,OAAO,SAASC,oBAAoBA,CACnCC,KAAqB,EACrBC,GAAyC,EACxC;EACD,MAAM;IACLC,WAAW,GAAG,CAAC,CAAC;IAChBC,QAAQ;IACRC,SAAS;IACTC,IAAI;IACJC,WAAW;IACXC,QAAQ,GAAGT,IAAI;IACfU,MAAM;IACNC,KAAK;IACLC,e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A,CAACC,cAAc;IACdzB,IAAI,EAAGA,IAAM;IACbM,QAAQ,EAAGoB,OAAO,CAAEpB,QAAS,CAAG;IAChCqB,OAAO,EAAGd,cAAgB;IAC1BT,KAAK,EAAGA,KAAO;IAAA,GACVP;EAAW,CAChB,CAAC,EACA,OAAOC,QAAQ,KAAK,UAAU,GAC7BA,QAAQ,CAAE;IAAEK,MAAM,EAAEuB,OAAO,CAAEpB,QAAS;EAAE,CAAE,CAAC,GAC3CA,QAAQ,IAAIR,QACX,CAAC;AAER;AAEA,MAAM2B,cAAc,GAAGxC,UAAU,CAChC,CACC;EACCqB,QAAQ;EACRN,IAAI;EACJI,KAAK;EACL,GAAGT;AACsD,CAAC,EAC3DC,GAA8B,KAC1B;EACJ,IAAK,CAAEQ,KAAK,EAAG,OAAO,IAAI;EAE1B,OACCoB,aAAA;IAAIzB,SAAS,EAAC;EAA8B,GAC3CyB,aAAA,CAACnC,MAAM;IACNU,SAAS,EAAC,+BAA+B;IACzC,iBAAgBO,QAAU;IAC1BV,GAAG,EAAGA,GAAK;IAAA,GACND;EAAK,GAMV6B,aAAA;IAAM,eAAY;EAAM,GACvBA,aAAA,CAAClC,IAAI;IACJS,SAAS,EAAC,yBAAyB;IACnCC,IAAI,EAAGM,QAAQ,GAAGnB,SAAS,GAAGC;EAAa,CAC3C,CACI,CAAC,EACLgB,KAAK,EACLJ,IAAI,IACLwB,aAAA,CAAClC,IAAI;IACJU,IAAI,EAAGA,IAAM;IACbD,SAAS,EAAC,wBAAwB;IAClC6B,IAAI,EAAG;EAAI,CACX,CAEK,CACL,CAAC;AAEP,CACD,CAAC;AAED,OAAO,MAAMC,SAAS,GAAG5C,UAAU,CAAES,oBAAqB,CAAC;AAE3D,eAAemC,SAAS","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["Text","View","styles","BottomSeparatorCover","PanelBody","children","title","style","titleStyle","createElement","panelContainer","accessibilityRole","sectionHeaderText"],"sources":["@wordpress/components/src/panel/body.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { Text, View } from 'react-native';\n\n/**\n * Internal dependencies\n */\nimport styles from './body.scss';\nimport BottomSeparatorCover from './bottom-separator-cover';\n\nexport function PanelBody( { children, title, style, titleStyle = {} } ) {\n\treturn (\n\t\t<View style={ [ styles.panelContainer, style ] }>\n\t\t\t{ title && (\n\t\t\t\t<Text\n\t\t\t\t\taccessibilityRole=\"header\"\n\t\t\t\t\tstyle={ [ styles.sectionHeaderText, titleStyle ] }\n\t\t\t\t>\n\t\t\t\t\t{ title }\n\t\t\t\t</Text>\n\t\t\t) }\n\t\t\t{ children }\n\t\t\t<BottomSeparatorCover />\n\t\t</View>\n\t);\n}\n\nexport default PanelBody;\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,IAAI,EAAEC,IAAI,QAAQ,cAAc;;AAEzC;AACA;AACA;AACA,OAAOC,MAAM,MAAM,aAAa;AAChC,OAAOC,oBAAoB,MAAM,0BAA0B;AAE3D,OAAO,SAASC,SAASA,CAAE;EAAEC,QAAQ;EAAEC,KAAK;EAAEC,KAAK;EAAEC,UAAU,GAAG,CAAC;AAAE,CAAC,EAAG;EACxE,OACCC,aAAA,CAACR,IAAI;IAACM,KAAK,EAAG,CAAEL,MAAM,CAACQ,cAAc,EAAEH,KAAK;EAAI,GAC7CD,KAAK,IACNG,aAAA,CAACT,IAAI;IACJW,iBAAiB,EAAC,QAAQ;IAC1BJ,KAAK,EAAG,CAAEL,MAAM,CAACU,iBAAiB,EAAEJ,UAAU;EAAI,GAEhDF,KACG,CACN,EACCD,QAAQ,EACVI,aAAA,CAACN,oBAAoB,MAAE,CAClB,CAAC;AAET;AAEA,eAAeC,SAAS"}
1
+ {"version":3,"names":["Text","View","styles","BottomSeparatorCover","PanelBody","children","title","style","titleStyle","createElement","panelContainer","accessibilityRole","sectionHeaderText"],"sources":["@wordpress/components/src/panel/body.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { Text, View } from 'react-native';\n\n/**\n * Internal dependencies\n */\nimport styles from './body.scss';\nimport BottomSeparatorCover from './bottom-separator-cover';\n\nexport function PanelBody( { children, title, style, titleStyle = {} } ) {\n\treturn (\n\t\t<View style={ [ styles.panelContainer, style ] }>\n\t\t\t{ title && (\n\t\t\t\t<Text\n\t\t\t\t\taccessibilityRole=\"header\"\n\t\t\t\t\tstyle={ [ styles.sectionHeaderText, titleStyle ] }\n\t\t\t\t>\n\t\t\t\t\t{ title }\n\t\t\t\t</Text>\n\t\t\t) }\n\t\t\t{ children }\n\t\t\t<BottomSeparatorCover />\n\t\t</View>\n\t);\n}\n\nexport default PanelBody;\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,IAAI,EAAEC,IAAI,QAAQ,cAAc;;AAEzC;AACA;AACA;AACA,OAAOC,MAAM,MAAM,aAAa;AAChC,OAAOC,oBAAoB,MAAM,0BAA0B;AAE3D,OAAO,SAASC,SAASA,CAAE;EAAEC,QAAQ;EAAEC,KAAK;EAAEC,KAAK;EAAEC,UAAU,GAAG,CAAC;AAAE,CAAC,EAAG;EACxE,OACCC,aAAA,CAACR,IAAI;IAACM,KAAK,EAAG,CAAEL,MAAM,CAACQ,cAAc,EAAEH,KAAK;EAAI,GAC7CD,KAAK,IACNG,aAAA,CAACT,IAAI;IACJW,iBAAiB,EAAC,QAAQ;IAC1BJ,KAAK,EAAG,CAAEL,MAAM,CAACU,iBAAiB,EAAEJ,UAAU;EAAI,GAEhDF,KACG,CACN,EACCD,QAAQ,EACVI,aAAA,CAACN,oBAAoB,MAAE,CAClB,CAAC;AAET;AAEA,eAAeC,SAAS","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["View","withPreferredColorScheme","styles","BottomSeparatorCover","getStylesFromColorScheme","createElement","style","coverSeparator","coverSeparatorDark"],"sources":["@wordpress/components/src/panel/bottom-separator-cover.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { View } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { withPreferredColorScheme } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport styles from './bottom-separator-cover.scss';\n\nfunction BottomSeparatorCover( { getStylesFromColorScheme } ) {\n\treturn (\n\t\t<View\n\t\t\tstyle={ getStylesFromColorScheme(\n\t\t\t\tstyles.coverSeparator,\n\t\t\t\tstyles.coverSeparatorDark\n\t\t\t) }\n\t\t/>\n\t);\n}\n\nexport default withPreferredColorScheme( BottomSeparatorCover );\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,IAAI,QAAQ,cAAc;;AAEnC;AACA;AACA;AACA,SAASC,wBAAwB,QAAQ,oBAAoB;;AAE7D;AACA;AACA;AACA,OAAOC,MAAM,MAAM,+BAA+B;AAElD,SAASC,oBAAoBA,CAAE;EAAEC;AAAyB,CAAC,EAAG;EAC7D,OACCC,aAAA,CAACL,IAAI;IACJM,KAAK,EAAGF,wBAAwB,CAC/BF,MAAM,CAACK,cAAc,EACrBL,MAAM,CAACM,kBACR;EAAG,CACH,CAAC;AAEJ;AAEA,eAAeP,wBAAwB,CAAEE,oBAAqB,CAAC"}
1
+ {"version":3,"names":["View","withPreferredColorScheme","styles","BottomSeparatorCover","getStylesFromColorScheme","createElement","style","coverSeparator","coverSeparatorDark"],"sources":["@wordpress/components/src/panel/bottom-separator-cover.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { View } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { withPreferredColorScheme } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport styles from './bottom-separator-cover.scss';\n\nfunction BottomSeparatorCover( { getStylesFromColorScheme } ) {\n\treturn (\n\t\t<View\n\t\t\tstyle={ getStylesFromColorScheme(\n\t\t\t\tstyles.coverSeparator,\n\t\t\t\tstyles.coverSeparatorDark\n\t\t\t) }\n\t\t/>\n\t);\n}\n\nexport default withPreferredColorScheme( BottomSeparatorCover );\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,IAAI,QAAQ,cAAc;;AAEnC;AACA;AACA;AACA,SAASC,wBAAwB,QAAQ,oBAAoB;;AAE7D;AACA;AACA;AACA,OAAOC,MAAM,MAAM,+BAA+B;AAElD,SAASC,oBAAoBA,CAAE;EAAEC;AAAyB,CAAC,EAAG;EAC7D,OACCC,aAAA,CAACL,IAAI;IACJM,KAAK,EAAGF,wBAAwB,CAC/BF,MAAM,CAACK,cAAc,EACrBL,MAAM,CAACM,kBACR;EAAG,CACH,CAAC;AAEJ;AAEA,eAAeP,wBAAwB,CAAEE,oBAAqB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["PanelHeader","label","children","createElement","className"],"sources":["@wordpress/components/src/panel/header.tsx"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport type { PanelHeaderProps } from './types';\n\n/**\n * `PanelHeader` renders the header for the `Panel`.\n * This is used by the `Panel` component under the hood,\n * so it does not typically need to be used.\n */\nfunction PanelHeader( { label, children }: PanelHeaderProps ) {\n\treturn (\n\t\t<div className=\"components-panel__header\">\n\t\t\t{ label && <h2>{ label }</h2> }\n\t\t\t{ children }\n\t\t</div>\n\t);\n}\n\nexport default PanelHeader;\n"],"mappings":";AAAA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA,SAASA,WAAWA,CAAE;EAAEC,KAAK;EAAEC;AAA2B,CAAC,EAAG;EAC7D,OACCC,aAAA;IAAKC,SAAS,EAAC;EAA0B,GACtCH,KAAK,IAAIE,aAAA,aAAMF,KAAW,CAAC,EAC3BC,QACE,CAAC;AAER;AAEA,eAAeF,WAAW"}
1
+ {"version":3,"names":["PanelHeader","label","children","createElement","className"],"sources":["@wordpress/components/src/panel/header.tsx"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport type { PanelHeaderProps } from './types';\n\n/**\n * `PanelHeader` renders the header for the `Panel`.\n * This is used by the `Panel` component under the hood,\n * so it does not typically need to be used.\n */\nfunction PanelHeader( { label, children }: PanelHeaderProps ) {\n\treturn (\n\t\t<div className=\"components-panel__header\">\n\t\t\t{ label && <h2>{ label }</h2> }\n\t\t\t{ children }\n\t\t</div>\n\t);\n}\n\nexport default PanelHeader;\n"],"mappings":";AAAA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA,SAASA,WAAWA,CAAE;EAAEC,KAAK;EAAEC;AAA2B,CAAC,EAAG;EAC7D,OACCC,aAAA;IAAKC,SAAS,EAAC;EAA0B,GACtCH,KAAK,IAAIE,aAAA,aAAMF,KAAW,CAAC,EAC3BC,QACE,CAAC;AAER;AAEA,eAAeF,WAAW","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["classnames","forwardRef","PanelHeader","UnforwardedPanel","header","className","children","ref","classNames","createElement","label","Panel"],"sources":["@wordpress/components/src/panel/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport PanelHeader from './header';\nimport type { PanelProps } from './types';\n\nfunction UnforwardedPanel(\n\t{ header, className, children }: PanelProps,\n\tref: React.ForwardedRef< HTMLDivElement >\n) {\n\tconst classNames = classnames( className, 'components-panel' );\n\treturn (\n\t\t<div className={ classNames } ref={ ref }>\n\t\t\t{ header && <PanelHeader label={ header } /> }\n\t\t\t{ children }\n\t\t</div>\n\t);\n}\n\n/**\n * `Panel` expands and collapses multiple sections of content.\n *\n * ```jsx\n * import { Panel, PanelBody, PanelRow } from '@wordpress/components';\n * import { more } from '@wordpress/icons';\n *\n * const MyPanel = () => (\n * \t<Panel header=\"My Panel\">\n * \t\t<PanelBody title=\"My Block Settings\" icon={ more } initialOpen={ true }>\n * \t\t\t<PanelRow>My Panel Inputs and Labels</PanelRow>\n * \t\t</PanelBody>\n * \t</Panel>\n * );\n * ```\n */\nexport const Panel = forwardRef( UnforwardedPanel );\n\nexport default Panel;\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,UAAU,MAAM,YAAY;;AAEnC;AACA;AACA;AACA,SAASC,UAAU,QAAQ,oBAAoB;;AAE/C;AACA;AACA;AACA,OAAOC,WAAW,MAAM,UAAU;AAGlC,SAASC,gBAAgBA,CACxB;EAAEC,MAAM;EAAEC,SAAS;EAAEC;AAAqB,CAAC,EAC3CC,GAAyC,EACxC;EACD,MAAMC,UAAU,GAAGR,UAAU,CAAEK,SAAS,EAAE,kBAAmB,CAAC;EAC9D,OACCI,aAAA;IAAKJ,SAAS,EAAGG,UAAY;IAACD,GAAG,EAAGA;EAAK,GACtCH,MAAM,IAAIK,aAAA,CAACP,WAAW;IAACQ,KAAK,EAAGN;EAAQ,CAAE,CAAC,EAC1CE,QACE,CAAC;AAER;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMK,KAAK,GAAGV,UAAU,CAAEE,gBAAiB,CAAC;AAEnD,eAAeQ,KAAK"}
1
+ {"version":3,"names":["classnames","forwardRef","PanelHeader","UnforwardedPanel","header","className","children","ref","classNames","createElement","label","Panel"],"sources":["@wordpress/components/src/panel/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport PanelHeader from './header';\nimport type { PanelProps } from './types';\n\nfunction UnforwardedPanel(\n\t{ header, className, children }: PanelProps,\n\tref: React.ForwardedRef< HTMLDivElement >\n) {\n\tconst classNames = classnames( className, 'components-panel' );\n\treturn (\n\t\t<div className={ classNames } ref={ ref }>\n\t\t\t{ header && <PanelHeader label={ header } /> }\n\t\t\t{ children }\n\t\t</div>\n\t);\n}\n\n/**\n * `Panel` expands and collapses multiple sections of content.\n *\n * ```jsx\n * import { Panel, PanelBody, PanelRow } from '@wordpress/components';\n * import { more } from '@wordpress/icons';\n *\n * const MyPanel = () => (\n * \t<Panel header=\"My Panel\">\n * \t\t<PanelBody title=\"My Block Settings\" icon={ more } initialOpen={ true }>\n * \t\t\t<PanelRow>My Panel Inputs and Labels</PanelRow>\n * \t\t</PanelBody>\n * \t</Panel>\n * );\n * ```\n */\nexport const Panel = forwardRef( UnforwardedPanel );\n\nexport default Panel;\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,UAAU,MAAM,YAAY;;AAEnC;AACA;AACA;AACA,SAASC,UAAU,QAAQ,oBAAoB;;AAE/C;AACA;AACA;AACA,OAAOC,WAAW,MAAM,UAAU;AAGlC,SAASC,gBAAgBA,CACxB;EAAEC,MAAM;EAAEC,SAAS;EAAEC;AAAqB,CAAC,EAC3CC,GAAyC,EACxC;EACD,MAAMC,UAAU,GAAGR,UAAU,CAAEK,SAAS,EAAE,kBAAmB,CAAC;EAC9D,OACCI,aAAA;IAAKJ,SAAS,EAAGG,UAAY;IAACD,GAAG,EAAGA;EAAK,GACtCH,MAAM,IAAIK,aAAA,CAACP,WAAW;IAACQ,KAAK,EAAGN;EAAQ,CAAE,CAAC,EAC1CE,QACE,CAAC;AAER;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMK,KAAK,GAAGV,UAAU,CAAEE,gBAAiB,CAAC;AAEnD,eAAeQ,KAAK","ignoreList":[]}
@@ -8,6 +8,11 @@ import classnames from 'classnames';
8
8
  * WordPress dependencies
9
9
  */
10
10
  import { forwardRef } from '@wordpress/element';
11
+
12
+ /**
13
+ * Internal dependencies
14
+ */
15
+
11
16
  function UnforwardedPanelRow({
12
17
  className,
13
18
  children
@@ -1 +1 @@
1
- {"version":3,"names":["classnames","forwardRef","UnforwardedPanelRow","className","children","ref","createElement","PanelRow"],"sources":["@wordpress/components/src/panel/row.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\nimport type { ForwardedRef } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { PanelRowProps } from './types';\n\nfunction UnforwardedPanelRow(\n\t{ className, children }: PanelRowProps,\n\tref: ForwardedRef< HTMLDivElement >\n) {\n\treturn (\n\t\t<div\n\t\t\tclassName={ classnames( 'components-panel__row', className ) }\n\t\t\tref={ ref }\n\t\t>\n\t\t\t{ children }\n\t\t</div>\n\t);\n}\n\n/**\n * `PanelRow` is a generic container for rows within a `PanelBody`.\n * It is a flex container with a top margin for spacing.\n */\nexport const PanelRow = forwardRef( UnforwardedPanelRow );\n\nexport default PanelRow;\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,UAAU,MAAM,YAAY;;AAEnC;AACA;AACA;AACA,SAASC,UAAU,QAAQ,oBAAoB;AAQ/C,SAASC,mBAAmBA,CAC3B;EAAEC,SAAS;EAAEC;AAAwB,CAAC,EACtCC,GAAmC,EAClC;EACD,OACCC,aAAA;IACCH,SAAS,EAAGH,UAAU,CAAE,uBAAuB,EAAEG,SAAU,CAAG;IAC9DE,GAAG,EAAGA;EAAK,GAETD,QACE,CAAC;AAER;;AAEA;AACA;AACA;AACA;AACA,OAAO,MAAMG,QAAQ,GAAGN,UAAU,CAAEC,mBAAoB,CAAC;AAEzD,eAAeK,QAAQ"}
1
+ {"version":3,"names":["classnames","forwardRef","UnforwardedPanelRow","className","children","ref","createElement","PanelRow"],"sources":["@wordpress/components/src/panel/row.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\nimport type { ForwardedRef } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { PanelRowProps } from './types';\n\nfunction UnforwardedPanelRow(\n\t{ className, children }: PanelRowProps,\n\tref: ForwardedRef< HTMLDivElement >\n) {\n\treturn (\n\t\t<div\n\t\t\tclassName={ classnames( 'components-panel__row', className ) }\n\t\t\tref={ ref }\n\t\t>\n\t\t\t{ children }\n\t\t</div>\n\t);\n}\n\n/**\n * `PanelRow` is a generic container for rows within a `PanelBody`.\n * It is a flex container with a top margin for spacing.\n */\nexport const PanelRow = forwardRef( UnforwardedPanelRow );\n\nexport default PanelRow;\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,UAAU,MAAM,YAAY;;AAEnC;AACA;AACA;AACA,SAASC,UAAU,QAAQ,oBAAoB;;AAG/C;AACA;AACA;;AAGA,SAASC,mBAAmBA,CAC3B;EAAEC,SAAS;EAAEC;AAAwB,CAAC,EACtCC,GAAmC,EAClC;EACD,OACCC,aAAA;IACCH,SAAS,EAAGH,UAAU,CAAE,uBAAuB,EAAEG,SAAU,CAAG;IAC9DE,GAAG,EAAGA;EAAK,GAETD,QACE,CAAC;AAER;;AAEA;AACA;AACA;AACA;AACA,OAAO,MAAMG,QAAQ,GAAGN,UAAU,CAAEC,mBAAoB,CAAC;AAEzD,eAAeK,QAAQ","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["@wordpress/components/src/panel/types.ts"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport type { ButtonAsButtonProps } from '../button/types';\nimport type { WordPressComponentProps } from '../context';\n\nexport type PanelProps = {\n\t/**\n\t * The text that will be rendered as the title of the panel.\n\t * Text will be rendered inside an `<h2>` tag.\n\t */\n\theader?: PanelHeaderProps[ 'label' ];\n\t/**\n\t * The CSS class to apply to the wrapper element.\n\t */\n\tclassName?: string;\n\t/**\n\t * The content to display within the panel.\n\t */\n\tchildren: React.ReactNode;\n};\n\nexport type PanelHeaderProps = {\n\t/**\n\t * The text that will be rendered as the title of the panel.\n\t * Will be rendered in an `<h2>` tag.\n\t */\n\tlabel?: string;\n\t/**\n\t * The content to display within the panel header.\n\t */\n\tchildren?: React.ReactNode;\n};\n\nexport type PanelRowProps = {\n\t/**\n\t * The CSS class to apply to the wrapper element.\n\t */\n\tclassName?: string;\n\t/**\n\t * The content to display within the panel row.\n\t */\n\tchildren: React.ReactNode;\n};\n\nexport type PanelBodyProps = {\n\t/**\n\t * Props that are passed to the `Button` component in title within the\n\t * `PanelBody`.\n\t *\n\t * @default {}\n\t */\n\tbuttonProps?: WordPressComponentProps<\n\t\tOmit< ButtonAsButtonProps, 'icon' >,\n\t\t'button',\n\t\tfalse\n\t>;\n\t/**\n\t * The content to display in the `PanelBody`.If a function is provided for\n\t * this prop, it will receive an object with the `opened` prop as an argument.\n\t */\n\tchildren?:\n\t\t| React.ReactNode\n\t\t| ( ( props: { opened: boolean } ) => React.ReactNode );\n\n\t/**\n\t * The CSS class to apply to the wrapper element.\n\t */\n\tclassName?: string;\n\t/**\n\t * An icon to be shown next to the title.\n\t */\n\ticon?: JSX.Element;\n\t/**\n\t * Whether or not the panel will start open.\n\t */\n\tinitialOpen?: boolean;\n\t/**\n\t * A function that is called any time the component is toggled from its closed\n\t * state to its opened state, or vice versa.\n\t *\n\t * @default noop\n\t */\n\tonToggle?: ( next: boolean ) => void;\n\t/**\n\t * When set to `true`, the component will remain open regardless of the\n\t * `initialOpen` prop and the panel will be prevented from being closed.\n\t */\n\topened?: boolean;\n\t/**\n\t * Title text. It shows even when it is closed.\n\t */\n\ttitle?: string;\n\t/**\n\t * Scrolls the content into view when visible. This improves the UX when\n\t * multiple `PanelBody` components are stacked in a scrollable container.\n\t *\n\t * @default true\n\t */\n\tscrollAfterOpen?: boolean;\n};\n\nexport type PanelBodyTitleProps = Omit< ButtonAsButtonProps, 'icon' > & {\n\t/**\n\t * An icon to be shown next to the title.\n\t */\n\ticon?: JSX.Element;\n\t/**\n\t * Whether or not the `PanelBody` is currently opened or not.\n\t */\n\tisOpened?: boolean;\n\t/**\n\t * The title text.\n\t */\n\ttitle?: string;\n};\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["@wordpress/components/src/panel/types.ts"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport type { ButtonAsButtonProps } from '../button/types';\nimport type { WordPressComponentProps } from '../context';\n\nexport type PanelProps = {\n\t/**\n\t * The text that will be rendered as the title of the panel.\n\t * Text will be rendered inside an `<h2>` tag.\n\t */\n\theader?: PanelHeaderProps[ 'label' ];\n\t/**\n\t * The CSS class to apply to the wrapper element.\n\t */\n\tclassName?: string;\n\t/**\n\t * The content to display within the panel.\n\t */\n\tchildren: React.ReactNode;\n};\n\nexport type PanelHeaderProps = {\n\t/**\n\t * The text that will be rendered as the title of the panel.\n\t * Will be rendered in an `<h2>` tag.\n\t */\n\tlabel?: string;\n\t/**\n\t * The content to display within the panel header.\n\t */\n\tchildren?: React.ReactNode;\n};\n\nexport type PanelRowProps = {\n\t/**\n\t * The CSS class to apply to the wrapper element.\n\t */\n\tclassName?: string;\n\t/**\n\t * The content to display within the panel row.\n\t */\n\tchildren: React.ReactNode;\n};\n\nexport type PanelBodyProps = {\n\t/**\n\t * Props that are passed to the `Button` component in title within the\n\t * `PanelBody`.\n\t *\n\t * @default {}\n\t */\n\tbuttonProps?: WordPressComponentProps<\n\t\tOmit< ButtonAsButtonProps, 'icon' >,\n\t\t'button',\n\t\tfalse\n\t>;\n\t/**\n\t * The content to display in the `PanelBody`.If a function is provided for\n\t * this prop, it will receive an object with the `opened` prop as an argument.\n\t */\n\tchildren?:\n\t\t| React.ReactNode\n\t\t| ( ( props: { opened: boolean } ) => React.ReactNode );\n\n\t/**\n\t * The CSS class to apply to the wrapper element.\n\t */\n\tclassName?: string;\n\t/**\n\t * An icon to be shown next to the title.\n\t */\n\ticon?: JSX.Element;\n\t/**\n\t * Whether or not the panel will start open.\n\t */\n\tinitialOpen?: boolean;\n\t/**\n\t * A function that is called any time the component is toggled from its closed\n\t * state to its opened state, or vice versa.\n\t *\n\t * @default noop\n\t */\n\tonToggle?: ( next: boolean ) => void;\n\t/**\n\t * When set to `true`, the component will remain open regardless of the\n\t * `initialOpen` prop and the panel will be prevented from being closed.\n\t */\n\topened?: boolean;\n\t/**\n\t * Title text. It shows even when it is closed.\n\t */\n\ttitle?: string;\n\t/**\n\t * Scrolls the content into view when visible. This improves the UX when\n\t * multiple `PanelBody` components are stacked in a scrollable container.\n\t *\n\t * @default true\n\t */\n\tscrollAfterOpen?: boolean;\n};\n\nexport type PanelBodyTitleProps = Omit< ButtonAsButtonProps, 'icon' > & {\n\t/**\n\t * An icon to be shown next to the title.\n\t */\n\ticon?: JSX.Element;\n\t/**\n\t * Whether or not the `PanelBody` is currently opened or not.\n\t */\n\tisOpened?: boolean;\n\t/**\n\t * The title text.\n\t */\n\ttitle?: string;\n};\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["classnames","useResizeObserver","SVG","Path","useEffect","speak","Icon","PlaceholderIllustration","createElement","className","fill","xmlns","viewBox","preserveAspectRatio","vectorEffect","d","Placeholder","props","icon","children","label","instructions","notices","preview","isColumnLayout","withIllustration","additionalProps","resizeListener","width","modifierClassNames","classes","fieldsetClasses"],"sources":["@wordpress/components/src/placeholder/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { useResizeObserver } from '@wordpress/compose';\nimport { SVG, Path } from '@wordpress/primitives';\nimport { useEffect } from '@wordpress/element';\nimport { speak } from '@wordpress/a11y';\n\n/**\n * Internal dependencies\n */\nimport Icon from '../icon';\nimport type { PlaceholderProps } from './types';\nimport type { WordPressComponentProps } from '../context';\n\nconst PlaceholderIllustration = (\n\t<SVG\n\t\tclassName=\"components-placeholder__illustration\"\n\t\tfill=\"none\"\n\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\tviewBox=\"0 0 60 60\"\n\t\tpreserveAspectRatio=\"none\"\n\t>\n\t\t<Path vectorEffect=\"non-scaling-stroke\" d=\"M60 60 0 0\" />\n\t</SVG>\n);\n\n/**\n * Renders a placeholder. Normally used by blocks to render their empty state.\n *\n * ```jsx\n * import { Placeholder } from '@wordpress/components';\n * import { more } from '@wordpress/icons';\n *\n * const MyPlaceholder = () => <Placeholder icon={ more } label=\"Placeholder\" />;\n * ```\n */\nexport function Placeholder(\n\tprops: WordPressComponentProps< PlaceholderProps, 'div', false >\n) {\n\tconst {\n\t\ticon,\n\t\tchildren,\n\t\tlabel,\n\t\tinstructions,\n\t\tclassName,\n\t\tnotices,\n\t\tpreview,\n\t\tisColumnLayout,\n\t\twithIllustration,\n\t\t...additionalProps\n\t} = props;\n\tconst [ resizeListener, { width } ] = useResizeObserver();\n\n\t// Since `useResizeObserver` will report a width of `null` until after the\n\t// first render, avoid applying any modifier classes until width is known.\n\tlet modifierClassNames;\n\tif ( typeof width === 'number' ) {\n\t\tmodifierClassNames = {\n\t\t\t'is-large': width >= 480,\n\t\t\t'is-medium': width >= 160 && width < 480,\n\t\t\t'is-small': width < 160,\n\t\t};\n\t}\n\n\tconst classes = classnames(\n\t\t'components-placeholder',\n\t\tclassName,\n\t\tmodifierClassNames,\n\t\twithIllustration ? 'has-illustration' : null\n\t);\n\n\tconst fieldsetClasses = classnames( 'components-placeholder__fieldset', {\n\t\t'is-column-layout': isColumnLayout,\n\t} );\n\n\tuseEffect( () => {\n\t\tif ( instructions ) {\n\t\t\tspeak( instructions );\n\t\t}\n\t}, [ instructions ] );\n\n\treturn (\n\t\t<div { ...additionalProps } className={ classes }>\n\t\t\t{ withIllustration ? PlaceholderIllustration : null }\n\t\t\t{ resizeListener }\n\t\t\t{ notices }\n\t\t\t{ preview && (\n\t\t\t\t<div className=\"components-placeholder__preview\">\n\t\t\t\t\t{ preview }\n\t\t\t\t</div>\n\t\t\t) }\n\t\t\t<div className=\"components-placeholder__label\">\n\t\t\t\t<Icon icon={ icon } />\n\t\t\t\t{ label }\n\t\t\t</div>\n\t\t\t{ !! instructions && (\n\t\t\t\t<div className=\"components-placeholder__instructions\">\n\t\t\t\t\t{ instructions }\n\t\t\t\t</div>\n\t\t\t) }\n\t\t\t<div className={ fieldsetClasses }>{ children }</div>\n\t\t</div>\n\t);\n}\n\nexport default Placeholder;\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,UAAU,MAAM,YAAY;;AAEnC;AACA;AACA;AACA,SAASC,iBAAiB,QAAQ,oBAAoB;AACtD,SAASC,GAAG,EAAEC,IAAI,QAAQ,uBAA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ChB,IAAKiB,YAAY,EAAG;MACnBhB,KAAK,CAAEgB,YAAa,CAAC;IACtB;EACD,CAAC,EAAE,CAAEA,YAAY,CAAG,CAAC;EAErB,OACCb,aAAA;IAAA,GAAUkB,eAAe;IAAGjB,SAAS,EAAGqB;EAAS,GAC9CL,gBAAgB,GAAGlB,uBAAuB,GAAG,IAAI,EACjDoB,cAAc,EACdL,OAAO,EACPC,OAAO,IACRf,aAAA;IAAKC,SAAS,EAAC;EAAiC,GAC7Cc,OACE,CACL,EACDf,aAAA;IAAKC,SAAS,EAAC;EAA+B,GAC7CD,aAAA,CAACF,IAAI;IAACY,IAAI,EAAGA;EAAM,CAAE,CAAC,EACpBE,KACE,CAAC,EACJ,CAAC,CAAEC,YAAY,IAChBb,aAAA;IAAKC,SAAS,EAAC;EAAsC,GAClDY,YACE,CACL,EACDb,aAAA;IAAKC,SAAS,EAAGsB;EAAiB,GAAGZ,QAAe,CAChD,CAAC;AAER;AAEA,eAAeH,WAAW"}
1
+ {"version":3,"names":["classnames","useResizeObserver","SVG","Path","useEffect","speak","Icon","PlaceholderIllustration","createElement","className","fill","xmlns","viewBox","preserveAspectRatio","vectorEffect","d","Placeholder","props","icon","children","label","instructions","notices","preview","isColumnLayout","withIllustration","additionalProps","resizeListener","width","modifierClassNames","classes","fieldsetClasses"],"sources":["@wordpress/components/src/placeholder/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { useResizeObserver } from '@wordpress/compose';\nimport { SVG, Path } from '@wordpress/primitives';\nimport { useEffect } from '@wordpress/element';\nimport { speak } from '@wordpress/a11y';\n\n/**\n * Internal dependencies\n */\nimport Icon from '../icon';\nimport type { PlaceholderProps } from './types';\nimport type { WordPressComponentProps } from '../context';\n\nconst PlaceholderIllustration = (\n\t<SVG\n\t\tclassName=\"components-placeholder__illustration\"\n\t\tfill=\"none\"\n\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\tviewBox=\"0 0 60 60\"\n\t\tpreserveAspectRatio=\"none\"\n\t>\n\t\t<Path vectorEffect=\"non-scaling-stroke\" d=\"M60 60 0 0\" />\n\t</SVG>\n);\n\n/**\n * Renders a placeholder. Normally used by blocks to render their empty state.\n *\n * ```jsx\n * import { Placeholder } from '@wordpress/components';\n * import { more } from '@wordpress/icons';\n *\n * const MyPlaceholder = () => <Placeholder icon={ more } label=\"Placeholder\" />;\n * ```\n */\nexport function Placeholder(\n\tprops: WordPressComponentProps< PlaceholderProps, 'div', false >\n) {\n\tconst {\n\t\ticon,\n\t\tchildren,\n\t\tlabel,\n\t\tinstructions,\n\t\tclassName,\n\t\tnotices,\n\t\tpreview,\n\t\tisColumnLayout,\n\t\twithIllustration,\n\t\t...additionalProps\n\t} = props;\n\tconst [ resizeListener, { width } ] = useResizeObserver();\n\n\t// Since `useResizeObserver` will report a width of `null` until after the\n\t// first render, avoid applying any modifier classes until width is known.\n\tlet modifierClassNames;\n\tif ( typeof width === 'number' ) {\n\t\tmodifierClassNames = {\n\t\t\t'is-large': width >= 480,\n\t\t\t'is-medium': width >= 160 && width < 480,\n\t\t\t'is-small': width < 160,\n\t\t};\n\t}\n\n\tconst classes = classnames(\n\t\t'components-placeholder',\n\t\tclassName,\n\t\tmodifierClassNames,\n\t\twithIllustration ? 'has-illustration' : null\n\t);\n\n\tconst fieldsetClasses = classnames( 'components-placeholder__fieldset', {\n\t\t'is-column-layout': isColumnLayout,\n\t} );\n\n\tuseEffect( () => {\n\t\tif ( instructions ) {\n\t\t\tspeak( instructions );\n\t\t}\n\t}, [ instructions ] );\n\n\treturn (\n\t\t<div { ...additionalProps } className={ classes }>\n\t\t\t{ withIllustration ? PlaceholderIllustration : null }\n\t\t\t{ resizeListener }\n\t\t\t{ notices }\n\t\t\t{ preview && (\n\t\t\t\t<div className=\"components-placeholder__preview\">\n\t\t\t\t\t{ preview }\n\t\t\t\t</div>\n\t\t\t) }\n\t\t\t<div className=\"components-placeholder__label\">\n\t\t\t\t<Icon icon={ icon } />\n\t\t\t\t{ label }\n\t\t\t</div>\n\t\t\t{ !! instructions && (\n\t\t\t\t<div className=\"components-placeholder__instructions\">\n\t\t\t\t\t{ instructions }\n\t\t\t\t</div>\n\t\t\t) }\n\t\t\t<div className={ fieldsetClasses }>{ children }</div>\n\t\t</div>\n\t);\n}\n\nexport default Placeholder;\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,UAAU,MAAM,YAAY;;AAEnC;AACA;AACA;AACA,SAASC,iBAAiB,QAAQ,oBAAoB;AACtD,SAASC,GAAG,EAAEC,IAAI,QAAQ,uBAAuB;AACjD,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,KAAK,QAAQ,iBAAiB;;AAEvC;AACA;AACA;AACA,OAAOC,IAAI,MAAM,SAAS;AAI1B,MAAMC,uBAAuB,GAC5BC,aAAA,CAACN,GAAG;EACHO,SAAS,EAAC,sCAAsC;EAChDC,IAAI,EAAC,MAAM;EACXC,KAAK,EAAC,4BAA4B;EAClCC,OAAO,EAAC,WAAW;EACnBC,mBAAmB,EAAC;AAAM,GAE1BL,aAAA,CAACL,IAAI;EAACW,YAAY,EAAC,oBAAoB;EAACC,CAAC,EAAC;AAAY,CAAE,CACpD,CACL;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,WAAWA,CAC1BC,KAAgE,EAC/D;EACD,MAAM;IACLC,IAAI;IACJC,QAAQ;IACRC,KAAK;IACLC,YAAY;IACZZ,SAAS;IACTa,OAAO;IACPC,OAAO;IACPC,cAAc;IACdC,gBAAgB;IAChB,GAAGC;EACJ,CAAC,GAAGT,KAAK;EACT,MAAM,CAAEU,cAAc,EAAE;IAAEC;EAAM,CAAC,CAAE,GAAG3B,iBAAiB,CAAC,CAAC;;EAEzD;EACA;EACA,IAAI4B,kBAAkB;EACtB,IAAK,OAAOD,KAAK,KAAK,QAAQ,EAAG;IAChCC,kBAAkB,GAAG;MACpB,UAAU,EAAED,KAAK,IAAI,GAAG;MACxB,WAAW,EAAEA,KAAK,IAAI,GAAG,IAAIA,KAAK,GAAG,GAAG;MACxC,UAAU,EAAEA,KAAK,GAAG;IACrB,CAAC;EACF;EAEA,MAAME,OAAO,GAAG9B,UAAU,CACzB,wBAAwB,EACxBS,SAAS,EACToB,kBAAkB,EAClBJ,gBAAgB,GAAG,kBAAkB,GAAG,IACzC,CAAC;EAED,MAAMM,eAAe,GAAG/B,UAAU,CAAE,kCAAkC,EAAE;IACvE,kBAAkB,EAAEwB;EACrB,CAAE,CAAC;EAEHpB,SAAS,CAAE,MAAM;IAChB,IAAKiB,YAAY,EAAG;MACnBhB,KAAK,CAAEgB,YAAa,CAAC;IACtB;EACD,CAAC,EAAE,CAAEA,YAAY,CAAG,CAAC;EAErB,OACCb,aAAA;IAAA,GAAUkB,eAAe;IAAGjB,SAAS,EAAGqB;EAAS,GAC9CL,gBAAgB,GAAGlB,uBAAuB,GAAG,IAAI,EACjDoB,cAAc,EACdL,OAAO,EACPC,OAAO,IACRf,aAAA;IAAKC,SAAS,EAAC;EAAiC,GAC7Cc,OACE,CACL,EACDf,aAAA;IAAKC,SAAS,EAAC;EAA+B,GAC7CD,aAAA,CAACF,IAAI;IAACY,IAAI,EAAGA;EAAM,CAAE,CAAC,EACpBE,KACE,CAAC,EACJ,CAAC,CAAEC,YAAY,IAChBb,aAAA;IAAKC,SAAS,EAAC;EAAsC,GAClDY,YACE,CACL,EACDb,aAAA;IAAKC,SAAS,EAAGsB;EAAiB,GAAGZ,QAAe,CAChD,CAAC;AAER;AAEA,eAAeH,WAAW","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["@wordpress/components/src/placeholder/types.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ReactNode } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { IconType } from '../icon';\n\nexport type PlaceholderProps = {\n\t/**\n\t * The children elements.\n\t */\n\tchildren?: ReactNode;\n\t/**\n\t * Class to set on the container div.\n\t */\n\tclassName?: string;\n\t/**\n\t * If provided, renders an icon next to the label.\n\t */\n\ticon?: IconType;\n\t/**\n\t * Instructions of the placeholder.\n\t */\n\tinstructions?: string;\n\t/**\n\t * Changes placeholder children layout from flex-row to flex-column.\n\t */\n\tisColumnLayout?: boolean;\n\t/**\n\t * Title of the placeholder.\n\t */\n\tlabel?: string;\n\t/**\n\t * A rendered notices list\n\t */\n\tnotices?: ReactNode;\n\t/**\n\t * Preview to be rendered in the placeholder.\n\t */\n\tpreview?: ReactNode;\n\t/**\n\t * Outputs a placeholder illustration.\n\t */\n\twithIllustration?: boolean;\n};\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["@wordpress/components/src/placeholder/types.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ReactNode } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { IconType } from '../icon';\n\nexport type PlaceholderProps = {\n\t/**\n\t * The children elements.\n\t */\n\tchildren?: ReactNode;\n\t/**\n\t * Class to set on the container div.\n\t */\n\tclassName?: string;\n\t/**\n\t * If provided, renders an icon next to the label.\n\t */\n\ticon?: IconType;\n\t/**\n\t * Instructions of the placeholder.\n\t */\n\tinstructions?: string;\n\t/**\n\t * Changes placeholder children layout from flex-row to flex-column.\n\t */\n\tisColumnLayout?: boolean;\n\t/**\n\t * Title of the placeholder.\n\t */\n\tlabel?: string;\n\t/**\n\t * A rendered notices list\n\t */\n\tnotices?: ReactNode;\n\t/**\n\t * Preview to be rendered in the placeholder.\n\t */\n\tpreview?: ReactNode;\n\t/**\n\t * Outputs a placeholder illustration.\n\t */\n\twithIllustration?: boolean;\n};\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["classnames","useFloating","flip","flipMiddleware","shift","shiftMiddleware","limitShift","autoUpdate","arrow","offset","offsetMiddleware","size","motion","useRef","useLayoutEffect","forwardRef","createContext","useContext","useMemo","useState","useCallback","createPortal","useReducedMotion","useViewportMatch","useMergeRefs","__experimentalUseDialog","useDialog","close","deprecated","Path","SVG","Button","ScrollLock","Slot","Fill","useSlot","computePopoverPosition","positionToPlacement","placementToMotionAnimationProps","getReferenceElement","contextConnect","useContextSystem","overlayMiddlewares","StyleProvider","SLOT_NAME","ArrowTriangle","createElement","xmlns","viewBox","className","role","d","vectorEffect","slotNameContext","undefined","fallbackContainerClassname","getPopoverFallbackContainer","container","document","body","querySelector","append","UnforwardedPopover","props","forwardedRef","animate","headerTitle","constrainTabbing","onClose","children","noArrow","position","placement","placementProp","offsetProp","focusOnMount","anchor","expandOnMobile","onFocusOutside","__unstableSlotName","resize","inline","variant","__unstableForcePosition","anchorRef","anchorRect","getAnchorRect","isAlternate","contentProps","computedFlipProp","computedResizeProp","since","version","alternative","computedVariant","arrowRef","fallbackReferenceElement","setFallbackReferenceElement","anchorRefFallback","node","isMobileViewport","isExpanded","hasArrow","normalizedPlacementFromProps","middleware","apply","sizeProps","_refs$floating$curren","firstElementChild","refs","floating","current","HTMLElement","Object","assign","style","maxHeight","availableHeight","overflow","crossAxis","limiter","padding","element","slotName","slot","onDialogClose","type","event","dialogRef","dialogProps","__unstableOnClose","x","y","strategy","update","computedPlacement","middlewareData","arrowData","whileElementsMounted","referenceParam","floatingParam","updateParam","layoutShift","animationFrame","arrowCallbackRef","anchorRefTop","top","anchorRefBottom","bottom","anchorRefStartContainer","startContainer","anchorRefCurrent","resultingReferenceElement","setReference","mergedFloatingRef","setFloating","left","shouldReduceMotion","shouldAnimate","animationFinished","setAnimationFinished","motionInlineStyles","otherMotionProps","animationProps","onAnimationComplete","isPositioned","content","div","ref","tabIndex","icon","onClick","split","join","Number","isFinite","shouldRenderWithinSlot","hasAnchor","name","Fragment","Popover","PopoverSlot","bubblesVirtually","__unstableSlotNameProvider","Provider"],"sources":["@wordpress/components/src/popover/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef, SyntheticEvent, RefCallback } from 'react';\nimport classnames from 'classnames';\nimport {\n\tuseFloating,\n\tflip as flipMiddleware,\n\tshift as shiftMiddleware,\n\tlimitShift,\n\tautoUpdate,\n\tarrow,\n\toffset as offsetMiddleware,\n\tsize,\n} from '@floating-ui/react-dom';\n// eslint-disable-next-line no-restricted-imports\nimport type { HTMLMotionProps, MotionProps } from 'framer-motion';\n// eslint-disable-next-line no-restricted-imports\nimport { motion } from 'framer-motion';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tuseRef,\n\tuseLayoutEffect,\n\tforwardRef,\n\tcreateContext,\n\tuseContext,\n\tuseMemo,\n\tuseState,\n\tuseCallback,\n\tcreatePortal,\n} from '@wordpress/element';\nimport {\n\tuseReducedMotion,\n\tuseViewportMatch,\n\tuseMergeRefs,\n\t__experimentalUseDialog as useDialog,\n} from '@wordpress/compose';\nimport { close } from '@wordpress/icons';\nimport deprecated from '@wordpress/deprecated';\nimport { Path, SVG } from '@wordpress/primitives';\n\n/**\n * Internal dependencies\n */\nimport Button from '../button';\nimport ScrollLock from '../scroll-lock';\nimport { Slot, Fill, useSlot } from '../slot-fill';\nimport {\n\tcomputePopoverPosition,\n\tpositionToPlacement,\n\tplacementToMotionAnimationProps,\n\tgetReferenceElement,\n} from './utils';\nimport { contextConnect, useContextSystem } from '../context';\nimport type { WordPressComponentProps } from '../context';\nimport type {\n\tPopoverProps,\n\tPopoverAnchorRefReference,\n\tPopoverAnchorRefTopBottom,\n} from './types';\nimport { overlayMiddlewares } from './overlay-middlewares';\nimport { StyleProvider } from '../style-provider';\n\n/**\n * Name of slot in which popover should fill.\n *\n * @type {string}\n */\nexport const SLOT_NAME = 'Popover';\n\n// An SVG displaying a triangle facing down, filled with a solid\n// color and bordered in such a way to create an arrow-like effect.\n// Keeping the SVG's viewbox squared simplify the arrow positioning\n// calculations.\nconst ArrowTriangle = () => (\n\t<SVG\n\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\tviewBox={ `0 0 100 100` }\n\t\tclassName=\"components-popover__triangle\"\n\t\trole=\"presentation\"\n\t>\n\t\t<Path\n\t\t\tclassName=\"components-popover__triangle-bg\"\n\t\t\td=\"M 0 0 L 50 50 L 100 0\"\n\t\t/>\n\t\t<Path\n\t\t\tclassName=\"components-popover__triangle-border\"\n\t\t\td=\"M 0 0 L 50 50 L 100 0\"\n\t\t\tvectorEffect=\"non-scaling-stroke\"\n\t\t/>\n\t</SVG>\n);\n\nconst slotNameContext = createContext< string | undefined >( undefined );\n\nconst fallbackContainerClassname = 'components-popover__fallback-container';\nconst getPopoverFallbackContainer = () => {\n\tlet container = document.body.querySelector(\n\t\t'.' + fallbackContainerClassname\n\t);\n\tif ( ! container ) {\n\t\tcontainer = document.createElement( 'div' );\n\t\tcontainer.className = fallbackContainerClassname;\n\t\tdocument.body.append( container );\n\t}\n\n\treturn container;\n};\n\nconst UnforwardedPopover = (\n\tprops: Omit<\n\t\tWordPressComponentProps< PopoverProps, 'div', false >,\n\t\t// To avoid overlaps between the standard HTML attributes and the props\n\t\t// expected by `framer-motion`, omit all framer motion props from popover\n\t\t// props (except for `animate` and `children`, which are re-defined in `PopoverProps`).\n\t\tkeyof Omit< MotionProps, 'animate' | 'children' >\n\t>,\n\tforwardedRef: ForwardedRef< any >\n) => {\n\tconst {\n\t\tanimate = true,\n\t\theaderTitle,\n\t\tconstrainTabbing,\n\t\tonClose,\n\t\tchildren,\n\t\tclassName,\n\t\tnoArrow = true,\n\t\tposition,\n\t\tplacement: placementProp = 'bottom-start',\n\t\toffset: offsetProp = 0,\n\t\tfocusOnMount = 'firstElement',\n\t\tanchor,\n\t\texpandOnMobile,\n\t\tonFocusOutside,\n\t\t__unstableSlotName = SLOT_NAME,\n\t\tflip = true,\n\t\tresize = true,\n\t\tshift = false,\n\t\tinline = false,\n\t\tvariant,\n\n\t\t// Deprecated props\n\t\t__unstableForcePosition,\n\t\tanchorRef,\n\t\tanchorRect,\n\t\tgetAnchorRect,\n\t\tisAlternate,\n\n\t\t// Rest\n\t\t...contentProps\n\t} = useContextSystem( props, 'Popover' );\n\n\tlet computedFlipProp = flip;\n\tlet computedResizeProp = resize;\n\tif ( __unstableForcePosition !== undefined ) {\n\t\tdeprecated( '`__unstableForcePosition` prop in wp.components.Popover', {\n\t\t\tsince: '6.1',\n\t\t\tversion: '6.3',\n\t\t\talternative: '`flip={ false }` and `resize={ false }`',\n\t\t} );\n\n\t\t// Back-compat, set the `flip` and `resize` props\n\t\t// to `false` to replicate `__unstableForcePosition`.\n\t\tcomputedFlipProp = ! __unstableForcePosition;\n\t\tcomputedResizeProp = ! __unstableForcePosition;\n\t}\n\n\tif ( anchorRef !== undefined ) {\n\t\tdeprecated( '`anchorRef` prop in wp.components.Popover', {\n\t\t\tsince: '6.1',\n\t\t\talternative: '`anchor` prop',\n\t\t} );\n\t}\n\n\tif ( anchorRect !== undefined ) {\n\t\tdeprecated( '`anchorRect` prop in wp.components.Popover', {\n\t\t\tsince: '6.1',\n\t\t\talternative: '`anchor` prop',\n\t\t} );\n\t}\n\n\tif ( getAnchorRect !== undefined ) {\n\t\tdeprecated( '`getAnchorRect` prop in wp.components.Popover', {\n\t\t\tsince: '6.1',\n\t\t\talternative: '`anchor` prop',\n\t\t} );\n\t}\n\n\tconst computedVariant = isAlternate ? 'toolbar' : variant;\n\tif ( isAlternate !== undefined ) {\n\t\tdeprecated( '`isAlternate` prop in wp.components.Popover', {\n\t\t\tsince: '6.2',\n\t\t\talternative: \"`variant` prop with the `'toolbar'` value\",\n\t\t} );\n\t}\n\n\tconst arrowRef = useRef< HTMLElement | null >( null );\n\n\tconst [ fallbackReferenceElement, setFallbackReferenceElement ] =\n\t\tuseState< HTMLSpanElement | null >( null );\n\n\tconst anchorRefFallback: RefCallback< HTMLSpanElement > = useCallback(\n\t\t( node ) => {\n\t\t\tsetFallbackReferenceElement( node );\n\t\t},\n\t\t[]\n\t);\n\n\tconst isMobileViewport = useViewportMatch( 'medium', '<' );\n\tconst isExpanded = expandOnMobile && isMobileViewport;\n\tconst hasArrow = ! isExpanded && ! noArrow;\n\tconst normalizedPlacementFromProps = position\n\t\t? positionToPlacement( position )\n\t\t: placementProp;\n\n\tconst middleware = [\n\t\t...( placementProp === 'overlay' ? overlayMiddlewares() : [] ),\n\t\toffsetMiddleware( offsetProp ),\n\t\tcomputedFlipProp && flipMiddleware(),\n\t\tcomputedResizeProp &&\n\t\t\tsize( {\n\t\t\t\tapply( sizeProps ) {\n\t\t\t\t\tconst { firstElementChild } = refs.floating.current ?? {};\n\n\t\t\t\t\t// Only HTMLElement instances have the `style` property.\n\t\t\t\t\tif ( ! ( firstElementChild instanceof HTMLElement ) )\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\t// Reduce the height of the popover to the available space.\n\t\t\t\t\tObject.assign( firstElementChild.style, {\n\t\t\t\t\t\tmaxHeight: `${ sizeProps.availableHeight }px`,\n\t\t\t\t\t\toverflow: 'auto',\n\t\t\t\t\t} );\n\t\t\t\t},\n\t\t\t} ),\n\t\tshift &&\n\t\t\tshiftMiddleware( {\n\t\t\t\tcrossAxis: true,\n\t\t\t\tlimiter: limitShift(),\n\t\t\t\tpadding: 1, // Necessary to avoid flickering at the edge of the viewport.\n\t\t\t} ),\n\t\tarrow( { element: arrowRef } ),\n\t];\n\tconst slotName = useContext( slotNameContext ) || __unstableSlotName;\n\tconst slot = useSlot( slotName );\n\n\tlet onDialogClose;\n\n\tif ( onClose || onFocusOutside ) {\n\t\tonDialogClose = ( type: string | undefined, event: SyntheticEvent ) => {\n\t\t\t// Ideally the popover should have just a single onClose prop and\n\t\t\t// not three props that potentially do the same thing.\n\t\t\tif ( type === 'focus-outside' && onFocusOutside ) {\n\t\t\t\tonFocusOutside( event );\n\t\t\t} else if ( onClose ) {\n\t\t\t\tonClose();\n\t\t\t}\n\t\t};\n\t}\n\n\tconst [ dialogRef, dialogProps ] = useDialog( {\n\t\tconstrainTabbing,\n\t\tfocusOnMount,\n\t\t__unstableOnClose: onDialogClose,\n\t\t// @ts-expect-error The __unstableOnClose property needs to be deprecated first (see https://github.com/WordPress/gutenberg/pull/27675)\n\t\tonClose: onDialogClose,\n\t} );\n\n\tconst {\n\t\t// Positioning coordinates\n\t\tx,\n\t\ty,\n\t\t// Object with \"regular\" refs to both \"reference\" and \"floating\"\n\t\trefs,\n\t\t// Type of CSS position property to use (absolute or fixed)\n\t\tstrategy,\n\t\tupdate,\n\t\tplacement: computedPlacement,\n\t\tmiddlewareData: { arrow: arrowData },\n\t} = useFloating( {\n\t\tplacement:\n\t\t\tnormalizedPlacementFromProps === 'overlay'\n\t\t\t\t? undefined\n\t\t\t\t: normalizedPlacementFromProps,\n\t\tmiddleware,\n\t\twhileElementsMounted: ( referenceParam, floatingParam, updateParam ) =>\n\t\t\tautoUpdate( referenceParam, floatingParam, updateParam, {\n\t\t\t\tlayoutShift: false,\n\t\t\t\tanimationFrame: true,\n\t\t\t} ),\n\t} );\n\n\tconst arrowCallbackRef = useCallback(\n\t\t( node: HTMLElement | null ) => {\n\t\t\tarrowRef.current = node;\n\t\t\tupdate();\n\t\t},\n\t\t[ update ]\n\t);\n\n\t// When any of the possible anchor \"sources\" change,\n\t// recompute the reference element (real or virtual) and its owner document.\n\n\tconst anchorRefTop = ( anchorRef as PopoverAnchorRefTopBottom | undefined )\n\t\t?.top;\n\tconst anchorRefBottom = (\n\t\tanchorRef as PopoverAnchorRefTopBottom | undefined\n\t )?.bottom;\n\tconst anchorRefStartContainer = ( anchorRef as Range | undefined )\n\t\t?.startContainer;\n\tconst anchorRefCurrent = ( anchorRef as PopoverAnchorRefReference )\n\t\t?.current;\n\n\tuseLayoutEffect( () => {\n\t\tconst resultingReferenceElement = getReferenceElement( {\n\t\t\tanchor,\n\t\t\tanchorRef,\n\t\t\tanchorRect,\n\t\t\tgetAnchorRect,\n\t\t\tfallbackReferenceElement,\n\t\t} );\n\n\t\trefs.setReference( resultingReferenceElement );\n\t}, [\n\t\tanchor,\n\t\tanchorRef,\n\t\tanchorRefTop,\n\t\tanchorRefBottom,\n\t\tanchorRefStartContainer,\n\t\tanchorRefCurrent,\n\t\tanchorRect,\n\t\tgetAnchorRect,\n\t\tfallbackReferenceElement,\n\t\trefs,\n\t] );\n\n\tconst mergedFloatingRef = useMergeRefs( [\n\t\trefs.setFloating,\n\t\tdialogRef,\n\t\tforwardedRef,\n\t] );\n\n\tconst style = isExpanded\n\t\t? undefined\n\t\t: {\n\t\t\t\tposition: strategy,\n\t\t\t\ttop: 0,\n\t\t\t\tleft: 0,\n\t\t\t\t// `x` and `y` are framer-motion specific props and are shorthands\n\t\t\t\t// for `translateX` and `translateY`. Currently it is not possible\n\t\t\t\t// to use `translateX` and `translateY` because those values would\n\t\t\t\t// be overridden by the return value of the\n\t\t\t\t// `placementToMotionAnimationProps` function.\n\t\t\t\tx: computePopoverPosition( x ),\n\t\t\t\ty: computePopoverPosition( y ),\n\t\t };\n\n\tconst shouldReduceMotion = useReducedMotion();\n\tconst shouldAnimate = animate && ! isExpanded && ! shouldReduceMotion;\n\n\tconst [ animationFinished, setAnimationFinished ] = useState( false );\n\n\tconst { style: motionInlineStyles, ...otherMotionProps } = useMemo(\n\t\t() => placementToMotionAnimationProps( computedPlacement ),\n\t\t[ computedPlacement ]\n\t);\n\n\tconst animationProps: HTMLMotionProps< 'div' > = shouldAnimate\n\t\t? {\n\t\t\t\tstyle: {\n\t\t\t\t\t...motionInlineStyles,\n\t\t\t\t\t...style,\n\t\t\t\t},\n\t\t\t\tonAnimationComplete: () => setAnimationFinished( true ),\n\t\t\t\t...otherMotionProps,\n\t\t }\n\t\t: {\n\t\t\t\tanimate: false,\n\t\t\t\tstyle,\n\t\t };\n\n\t// When Floating UI has finished positioning and Framer Motion has finished animating\n\t// the popover, add the `is-positioned` class to signal that all transitions have finished.\n\tconst isPositioned =\n\t\t( ! shouldAnimate || animationFinished ) && x !== null && y !== null;\n\n\tlet content = (\n\t\t<motion.div\n\t\t\tclassName={ classnames( className, {\n\t\t\t\t'is-expanded': isExpanded,\n\t\t\t\t'is-positioned': isPositioned,\n\t\t\t\t// Use the 'alternate' classname for 'toolbar' variant for back compat.\n\t\t\t\t[ `is-${\n\t\t\t\t\tcomputedVariant === 'toolbar'\n\t\t\t\t\t\t? 'alternate'\n\t\t\t\t\t\t: computedVariant\n\t\t\t\t}` ]: computedVariant,\n\t\t\t} ) }\n\t\t\t{ ...animationProps }\n\t\t\t{ ...contentProps }\n\t\t\tref={ mergedFloatingRef }\n\t\t\t{ ...dialogProps }\n\t\t\ttabIndex={ -1 }\n\t\t>\n\t\t\t{ /* Prevents scroll on the document */ }\n\t\t\t{ isExpanded && <ScrollLock /> }\n\t\t\t{ isExpanded && (\n\t\t\t\t<div className=\"components-popover__header\">\n\t\t\t\t\t<span className=\"components-popover__header-title\">\n\t\t\t\t\t\t{ headerTitle }\n\t\t\t\t\t</span>\n\t\t\t\t\t<Button\n\t\t\t\t\t\tclassName=\"components-popover__close\"\n\t\t\t\t\t\ticon={ close }\n\t\t\t\t\t\tonClick={ onClose }\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t\t<div className=\"components-popover__content\">{ children }</div>\n\t\t\t{ hasArrow && (\n\t\t\t\t<div\n\t\t\t\t\tref={ arrowCallbackRef }\n\t\t\t\t\tclassName={ [\n\t\t\t\t\t\t'components-popover__arrow',\n\t\t\t\t\t\t`is-${ computedPlacement.split( '-' )[ 0 ] }`,\n\t\t\t\t\t].join( ' ' ) }\n\t\t\t\t\tstyle={ {\n\t\t\t\t\t\tleft:\n\t\t\t\t\t\t\ttypeof arrowData?.x !== 'undefined' &&\n\t\t\t\t\t\t\tNumber.isFinite( arrowData.x )\n\t\t\t\t\t\t\t\t? `${ arrowData.x }px`\n\t\t\t\t\t\t\t\t: '',\n\t\t\t\t\t\ttop:\n\t\t\t\t\t\t\ttypeof arrowData?.y !== 'undefined' &&\n\t\t\t\t\t\t\tNumber.isFinite( arrowData.y )\n\t\t\t\t\t\t\t\t? `${ arrowData.y }px`\n\t\t\t\t\t\t\t\t: '',\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t<ArrowTriangle />\n\t\t\t\t</div>\n\t\t\t) }\n\t\t</motion.div>\n\t);\n\n\tconst shouldRenderWithinSlot = slot.ref && ! inline;\n\tconst hasAnchor = anchorRef || anchorRect || anchor;\n\n\tif ( shouldRenderWithinSlot ) {\n\t\tcontent = <Fill name={ slotName }>{ content }</Fill>;\n\t} else if ( ! inline ) {\n\t\tcontent = createPortal(\n\t\t\t<StyleProvider document={ document }>{ content }</StyleProvider>,\n\t\t\tgetPopoverFallbackContainer()\n\t\t);\n\t}\n\n\tif ( hasAnchor ) {\n\t\treturn content;\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<span ref={ anchorRefFallback } />\n\t\t\t{ content }\n\t\t</>\n\t);\n};\n\n/**\n * `Popover` renders its content in a floating modal. If no explicit anchor is passed via props, it anchors to its parent element by default.\n *\n * ```jsx\n * import { Button, Popover } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const MyPopover = () => {\n * \tconst [ isVisible, setIsVisible ] = useState( false );\n * \tconst toggleVisible = () => {\n * \t\tsetIsVisible( ( state ) => ! state );\n * \t};\n *\n * \treturn (\n * \t\t<Button variant=\"secondary\" onClick={ toggleVisible }>\n * \t\t\tToggle Popover!\n * \t\t\t{ isVisible && <Popover>Popover is toggled!</Popover> }\n * \t\t</Button>\n * \t);\n * };\n * ```\n *\n */\nexport const Popover = contextConnect( UnforwardedPopover, 'Popover' );\n\nfunction PopoverSlot(\n\t{ name = SLOT_NAME }: { name?: string },\n\tref: ForwardedRef< any >\n) {\n\treturn (\n\t\t<Slot\n\t\t\tbubblesVirtually\n\t\t\tname={ name }\n\t\t\tclassName=\"popover-slot\"\n\t\t\tref={ ref }\n\t\t/>\n\t);\n}\n\n// @ts-expect-error For Legacy Reasons\nPopover.Slot = forwardRef( PopoverSlot );\n// @ts-expect-error For Legacy Reasons\nPopover.__unstableSlotNameProvider = slotNameContext.Provider;\n\nexport default Popover;\n"],"mappings":";AAAA;AACA;AACA;;AAEA,OAAOA,UAAU,MAAM,YAAY;AACnC,SACCC,WAAW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AAG5I,cAAc,CAAEsB,kBAAkB,EAAE,SAAU,CAAC;AAEtE,SAASuH,WAAWA,CACnB;EAAEH,IAAI,GAAGtI;AAA6B,CAAC,EACvC4H,GAAwB,EACvB;EACD,OACC1H,aAAA,CAACb,IAAI;IACJqJ,gBAAgB;IAChBJ,IAAI,EAAGA,IAAM;IACbjI,SAAS,EAAC,cAAc;IACxBuH,GAAG,EAAGA;EAAK,CACX,CAAC;AAEJ;;AAEA;AACAY,OAAO,CAACnJ,IAAI,GAAGlB,UAAU,CAAEsK,WAAY,CAAC;AACxC;AACAD,OAAO,CAACG,0BAA0B,GAAGlI,eAAe,CAACmI,QAAQ;AAE7D,eAAeJ,OAAO"}
1
+ {"version":3,"names":["classnames","useFloating","flip","flipMiddleware","shift","shiftMiddleware","limitShift","autoUpdate","arrow","offset","offsetMiddleware","size","motion","useRef","useLayoutEffect","forwardRef","createContext","useContext","useMemo","useState","useCallback","createPortal","useReducedMotion","useViewportMatch","useMergeRefs","__experimentalUseDialog","useDialog","close","deprecated","Path","SVG","Button","ScrollLock","Slot","Fill","useSlot","computePopoverPosition","positionToPlacement","placementToMotionAnimationProps","getReferenceElement","contextConnect","useContextSystem","overlayMiddlewares","StyleProvider","SLOT_NAME","ArrowTriangle","createElement","xmlns","viewBox","className","role","d","vectorEffect","slotNameContext","undefined","fallbackContainerClassname","getPopoverFallbackContainer","container","document","body","querySelector","append","UnforwardedPopover","props","forwardedRef","animate","headerTitle","constrainTabbing","onClose","children","noArrow","position","placement","placementProp","offsetProp","focusOnMount","anchor","expandOnMobile","onFocusOutside","__unstableSlotName","resize","inline","variant","__unstableForcePosition","anchorRef","anchorRect","getAnchorRect","isAlternate","contentProps","computedFlipProp","computedResizeProp","since","version","alternative","computedVariant","arrowRef","fallbackReferenceElement","setFallbackReferenceElement","anchorRefFallback","node","isMobileViewport","isExpanded","hasArrow","normalizedPlacementFromProps","middleware","apply","sizeProps","_refs$floating$curren","firstElementChild","refs","floating","current","HTMLElement","Object","assign","style","maxHeight","availableHeight","overflow","crossAxis","limiter","padding","element","slotName","slot","onDialogClose","type","event","dialogRef","dialogProps","__unstableOnClose","x","y","strategy","update","computedPlacement","middlewareData","arrowData","whileElementsMounted","referenceParam","floatingParam","updateParam","layoutShift","animationFrame","arrowCallbackRef","anchorRefTop","top","anchorRefBottom","bottom","anchorRefStartContainer","startContainer","anchorRefCurrent","resultingReferenceElement","setReference","mergedFloatingRef","setFloating","left","shouldReduceMotion","shouldAnimate","animationFinished","setAnimationFinished","motionInlineStyles","otherMotionProps","animationProps","onAnimationComplete","isPositioned","content","div","ref","tabIndex","icon","onClick","split","join","Number","isFinite","shouldRenderWithinSlot","hasAnchor","name","Fragment","Popover","PopoverSlot","bubblesVirtually","__unstableSlotNameProvider","Provider"],"sources":["@wordpress/components/src/popover/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef, SyntheticEvent, RefCallback } from 'react';\nimport classnames from 'classnames';\nimport {\n\tuseFloating,\n\tflip as flipMiddleware,\n\tshift as shiftMiddleware,\n\tlimitShift,\n\tautoUpdate,\n\tarrow,\n\toffset as offsetMiddleware,\n\tsize,\n} from '@floating-ui/react-dom';\n// eslint-disable-next-line no-restricted-imports\nimport type { HTMLMotionProps, MotionProps } from 'framer-motion';\n// eslint-disable-next-line no-restricted-imports\nimport { motion } from 'framer-motion';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tuseRef,\n\tuseLayoutEffect,\n\tforwardRef,\n\tcreateContext,\n\tuseContext,\n\tuseMemo,\n\tuseState,\n\tuseCallback,\n\tcreatePortal,\n} from '@wordpress/element';\nimport {\n\tuseReducedMotion,\n\tuseViewportMatch,\n\tuseMergeRefs,\n\t__experimentalUseDialog as useDialog,\n} from '@wordpress/compose';\nimport { close } from '@wordpress/icons';\nimport deprecated from '@wordpress/deprecated';\nimport { Path, SVG } from '@wordpress/primitives';\n\n/**\n * Internal dependencies\n */\nimport Button from '../button';\nimport ScrollLock from '../scroll-lock';\nimport { Slot, Fill, useSlot } from '../slot-fill';\nimport {\n\tcomputePopoverPosition,\n\tpositionToPlacement,\n\tplacementToMotionAnimationProps,\n\tgetReferenceElement,\n} from './utils';\nimport { contextConnect, useContextSystem } from '../context';\nimport type { WordPressComponentProps } from '../context';\nimport type {\n\tPopoverProps,\n\tPopoverAnchorRefReference,\n\tPopoverAnchorRefTopBottom,\n} from './types';\nimport { overlayMiddlewares } from './overlay-middlewares';\nimport { StyleProvider } from '../style-provider';\n\n/**\n * Name of slot in which popover should fill.\n *\n * @type {string}\n */\nexport const SLOT_NAME = 'Popover';\n\n// An SVG displaying a triangle facing down, filled with a solid\n// color and bordered in such a way to create an arrow-like effect.\n// Keeping the SVG's viewbox squared simplify the arrow positioning\n// calculations.\nconst ArrowTriangle = () => (\n\t<SVG\n\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\tviewBox={ `0 0 100 100` }\n\t\tclassName=\"components-popover__triangle\"\n\t\trole=\"presentation\"\n\t>\n\t\t<Path\n\t\t\tclassName=\"components-popover__triangle-bg\"\n\t\t\td=\"M 0 0 L 50 50 L 100 0\"\n\t\t/>\n\t\t<Path\n\t\t\tclassName=\"components-popover__triangle-border\"\n\t\t\td=\"M 0 0 L 50 50 L 100 0\"\n\t\t\tvectorEffect=\"non-scaling-stroke\"\n\t\t/>\n\t</SVG>\n);\n\nconst slotNameContext = createContext< string | undefined >( undefined );\n\nconst fallbackContainerClassname = 'components-popover__fallback-container';\nconst getPopoverFallbackContainer = () => {\n\tlet container = document.body.querySelector(\n\t\t'.' + fallbackContainerClassname\n\t);\n\tif ( ! container ) {\n\t\tcontainer = document.createElement( 'div' );\n\t\tcontainer.className = fallbackContainerClassname;\n\t\tdocument.body.append( container );\n\t}\n\n\treturn container;\n};\n\nconst UnforwardedPopover = (\n\tprops: Omit<\n\t\tWordPressComponentProps< PopoverProps, 'div', false >,\n\t\t// To avoid overlaps between the standard HTML attributes and the props\n\t\t// expected by `framer-motion`, omit all framer motion props from popover\n\t\t// props (except for `animate` and `children`, which are re-defined in `PopoverProps`).\n\t\tkeyof Omit< MotionProps, 'animate' | 'children' >\n\t>,\n\tforwardedRef: ForwardedRef< any >\n) => {\n\tconst {\n\t\tanimate = true,\n\t\theaderTitle,\n\t\tconstrainTabbing,\n\t\tonClose,\n\t\tchildren,\n\t\tclassName,\n\t\tnoArrow = true,\n\t\tposition,\n\t\tplacement: placementProp = 'bottom-start',\n\t\toffset: offsetProp = 0,\n\t\tfocusOnMount = 'firstElement',\n\t\tanchor,\n\t\texpandOnMobile,\n\t\tonFocusOutside,\n\t\t__unstableSlotName = SLOT_NAME,\n\t\tflip = true,\n\t\tresize = true,\n\t\tshift = false,\n\t\tinline = false,\n\t\tvariant,\n\n\t\t// Deprecated props\n\t\t__unstableForcePosition,\n\t\tanchorRef,\n\t\tanchorRect,\n\t\tgetAnchorRect,\n\t\tisAlternate,\n\n\t\t// Rest\n\t\t...contentProps\n\t} = useContextSystem( props, 'Popover' );\n\n\tlet computedFlipProp = flip;\n\tlet computedResizeProp = resize;\n\tif ( __unstableForcePosition !== undefined ) {\n\t\tdeprecated( '`__unstableForcePosition` prop in wp.components.Popover', {\n\t\t\tsince: '6.1',\n\t\t\tversion: '6.3',\n\t\t\talternative: '`flip={ false }` and `resize={ false }`',\n\t\t} );\n\n\t\t// Back-compat, set the `flip` and `resize` props\n\t\t// to `false` to replicate `__unstableForcePosition`.\n\t\tcomputedFlipProp = ! __unstableForcePosition;\n\t\tcomputedResizeProp = ! __unstableForcePosition;\n\t}\n\n\tif ( anchorRef !== undefined ) {\n\t\tdeprecated( '`anchorRef` prop in wp.components.Popover', {\n\t\t\tsince: '6.1',\n\t\t\talternative: '`anchor` prop',\n\t\t} );\n\t}\n\n\tif ( anchorRect !== undefined ) {\n\t\tdeprecated( '`anchorRect` prop in wp.components.Popover', {\n\t\t\tsince: '6.1',\n\t\t\talternative: '`anchor` prop',\n\t\t} );\n\t}\n\n\tif ( getAnchorRect !== undefined ) {\n\t\tdeprecated( '`getAnchorRect` prop in wp.components.Popover', {\n\t\t\tsince: '6.1',\n\t\t\talternative: '`anchor` prop',\n\t\t} );\n\t}\n\n\tconst computedVariant = isAlternate ? 'toolbar' : variant;\n\tif ( isAlternate !== undefined ) {\n\t\tdeprecated( '`isAlternate` prop in wp.components.Popover', {\n\t\t\tsince: '6.2',\n\t\t\talternative: \"`variant` prop with the `'toolbar'` value\",\n\t\t} );\n\t}\n\n\tconst arrowRef = useRef< HTMLElement | null >( null );\n\n\tconst [ fallbackReferenceElement, setFallbackReferenceElement ] =\n\t\tuseState< HTMLSpanElement | null >( null );\n\n\tconst anchorRefFallback: RefCallback< HTMLSpanElement > = useCallback(\n\t\t( node ) => {\n\t\t\tsetFallbackReferenceElement( node );\n\t\t},\n\t\t[]\n\t);\n\n\tconst isMobileViewport = useViewportMatch( 'medium', '<' );\n\tconst isExpanded = expandOnMobile && isMobileViewport;\n\tconst hasArrow = ! isExpanded && ! noArrow;\n\tconst normalizedPlacementFromProps = position\n\t\t? positionToPlacement( position )\n\t\t: placementProp;\n\n\tconst middleware = [\n\t\t...( placementProp === 'overlay' ? overlayMiddlewares() : [] ),\n\t\toffsetMiddleware( offsetProp ),\n\t\tcomputedFlipProp && flipMiddleware(),\n\t\tcomputedResizeProp &&\n\t\t\tsize( {\n\t\t\t\tapply( sizeProps ) {\n\t\t\t\t\tconst { firstElementChild } = refs.floating.current ?? {};\n\n\t\t\t\t\t// Only HTMLElement instances have the `style` property.\n\t\t\t\t\tif ( ! ( firstElementChild instanceof HTMLElement ) )\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\t// Reduce the height of the popover to the available space.\n\t\t\t\t\tObject.assign( firstElementChild.style, {\n\t\t\t\t\t\tmaxHeight: `${ sizeProps.availableHeight }px`,\n\t\t\t\t\t\toverflow: 'auto',\n\t\t\t\t\t} );\n\t\t\t\t},\n\t\t\t} ),\n\t\tshift &&\n\t\t\tshiftMiddleware( {\n\t\t\t\tcrossAxis: true,\n\t\t\t\tlimiter: limitShift(),\n\t\t\t\tpadding: 1, // Necessary to avoid flickering at the edge of the viewport.\n\t\t\t} ),\n\t\tarrow( { element: arrowRef } ),\n\t];\n\tconst slotName = useContext( slotNameContext ) || __unstableSlotName;\n\tconst slot = useSlot( slotName );\n\n\tlet onDialogClose;\n\n\tif ( onClose || onFocusOutside ) {\n\t\tonDialogClose = ( type: string | undefined, event: SyntheticEvent ) => {\n\t\t\t// Ideally the popover should have just a single onClose prop and\n\t\t\t// not three props that potentially do the same thing.\n\t\t\tif ( type === 'focus-outside' && onFocusOutside ) {\n\t\t\t\tonFocusOutside( event );\n\t\t\t} else if ( onClose ) {\n\t\t\t\tonClose();\n\t\t\t}\n\t\t};\n\t}\n\n\tconst [ dialogRef, dialogProps ] = useDialog( {\n\t\tconstrainTabbing,\n\t\tfocusOnMount,\n\t\t__unstableOnClose: onDialogClose,\n\t\t// @ts-expect-error The __unstableOnClose property needs to be deprecated first (see https://github.com/WordPress/gutenberg/pull/27675)\n\t\tonClose: onDialogClose,\n\t} );\n\n\tconst {\n\t\t// Positioning coordinates\n\t\tx,\n\t\ty,\n\t\t// Object with \"regular\" refs to both \"reference\" and \"floating\"\n\t\trefs,\n\t\t// Type of CSS position property to use (absolute or fixed)\n\t\tstrategy,\n\t\tupdate,\n\t\tplacement: computedPlacement,\n\t\tmiddlewareData: { arrow: arrowData },\n\t} = useFloating( {\n\t\tplacement:\n\t\t\tnormalizedPlacementFromProps === 'overlay'\n\t\t\t\t? undefined\n\t\t\t\t: normalizedPlacementFromProps,\n\t\tmiddleware,\n\t\twhileElementsMounted: ( referenceParam, floatingParam, updateParam ) =>\n\t\t\tautoUpdate( referenceParam, floatingParam, updateParam, {\n\t\t\t\tlayoutShift: false,\n\t\t\t\tanimationFrame: true,\n\t\t\t} ),\n\t} );\n\n\tconst arrowCallbackRef = useCallback(\n\t\t( node: HTMLElement | null ) => {\n\t\t\tarrowRef.current = node;\n\t\t\tupdate();\n\t\t},\n\t\t[ update ]\n\t);\n\n\t// When any of the possible anchor \"sources\" change,\n\t// recompute the reference element (real or virtual) and its owner document.\n\n\tconst anchorRefTop = ( anchorRef as PopoverAnchorRefTopBottom | undefined )\n\t\t?.top;\n\tconst anchorRefBottom = (\n\t\tanchorRef as PopoverAnchorRefTopBottom | undefined\n\t )?.bottom;\n\tconst anchorRefStartContainer = ( anchorRef as Range | undefined )\n\t\t?.startContainer;\n\tconst anchorRefCurrent = ( anchorRef as PopoverAnchorRefReference )\n\t\t?.current;\n\n\tuseLayoutEffect( () => {\n\t\tconst resultingReferenceElement = getReferenceElement( {\n\t\t\tanchor,\n\t\t\tanchorRef,\n\t\t\tanchorRect,\n\t\t\tgetAnchorRect,\n\t\t\tfallbackReferenceElement,\n\t\t} );\n\n\t\trefs.setReference( resultingReferenceElement );\n\t}, [\n\t\tanchor,\n\t\tanchorRef,\n\t\tanchorRefTop,\n\t\tanchorRefBottom,\n\t\tanchorRefStartContainer,\n\t\tanchorRefCurrent,\n\t\tanchorRect,\n\t\tgetAnchorRect,\n\t\tfallbackReferenceElement,\n\t\trefs,\n\t] );\n\n\tconst mergedFloatingRef = useMergeRefs( [\n\t\trefs.setFloating,\n\t\tdialogRef,\n\t\tforwardedRef,\n\t] );\n\n\tconst style = isExpanded\n\t\t? undefined\n\t\t: {\n\t\t\t\tposition: strategy,\n\t\t\t\ttop: 0,\n\t\t\t\tleft: 0,\n\t\t\t\t// `x` and `y` are framer-motion specific props and are shorthands\n\t\t\t\t// for `translateX` and `translateY`. Currently it is not possible\n\t\t\t\t// to use `translateX` and `translateY` because those values would\n\t\t\t\t// be overridden by the return value of the\n\t\t\t\t// `placementToMotionAnimationProps` function.\n\t\t\t\tx: computePopoverPosition( x ),\n\t\t\t\ty: computePopoverPosition( y ),\n\t\t };\n\n\tconst shouldReduceMotion = useReducedMotion();\n\tconst shouldAnimate = animate && ! isExpanded && ! shouldReduceMotion;\n\n\tconst [ animationFinished, setAnimationFinished ] = useState( false );\n\n\tconst { style: motionInlineStyles, ...otherMotionProps } = useMemo(\n\t\t() => placementToMotionAnimationProps( computedPlacement ),\n\t\t[ computedPlacement ]\n\t);\n\n\tconst animationProps: HTMLMotionProps< 'div' > = shouldAnimate\n\t\t? {\n\t\t\t\tstyle: {\n\t\t\t\t\t...motionInlineStyles,\n\t\t\t\t\t...style,\n\t\t\t\t},\n\t\t\t\tonAnimationComplete: () => setAnimationFinished( true ),\n\t\t\t\t...otherMotionProps,\n\t\t }\n\t\t: {\n\t\t\t\tanimate: false,\n\t\t\t\tstyle,\n\t\t };\n\n\t// When Floating UI has finished positioning and Framer Motion has finished animating\n\t// the popover, add the `is-positioned` class to signal that all transitions have finished.\n\tconst isPositioned =\n\t\t( ! shouldAnimate || animationFinished ) && x !== null && y !== null;\n\n\tlet content = (\n\t\t<motion.div\n\t\t\tclassName={ classnames( className, {\n\t\t\t\t'is-expanded': isExpanded,\n\t\t\t\t'is-positioned': isPositioned,\n\t\t\t\t// Use the 'alternate' classname for 'toolbar' variant for back compat.\n\t\t\t\t[ `is-${\n\t\t\t\t\tcomputedVariant === 'toolbar'\n\t\t\t\t\t\t? 'alternate'\n\t\t\t\t\t\t: computedVariant\n\t\t\t\t}` ]: computedVariant,\n\t\t\t} ) }\n\t\t\t{ ...animationProps }\n\t\t\t{ ...contentProps }\n\t\t\tref={ mergedFloatingRef }\n\t\t\t{ ...dialogProps }\n\t\t\ttabIndex={ -1 }\n\t\t>\n\t\t\t{ /* Prevents scroll on the document */ }\n\t\t\t{ isExpanded && <ScrollLock /> }\n\t\t\t{ isExpanded && (\n\t\t\t\t<div className=\"components-popover__header\">\n\t\t\t\t\t<span className=\"components-popover__header-title\">\n\t\t\t\t\t\t{ headerTitle }\n\t\t\t\t\t</span>\n\t\t\t\t\t<Button\n\t\t\t\t\t\tclassName=\"components-popover__close\"\n\t\t\t\t\t\ticon={ close }\n\t\t\t\t\t\tonClick={ onClose }\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t\t<div className=\"components-popover__content\">{ children }</div>\n\t\t\t{ hasArrow && (\n\t\t\t\t<div\n\t\t\t\t\tref={ arrowCallbackRef }\n\t\t\t\t\tclassName={ [\n\t\t\t\t\t\t'components-popover__arrow',\n\t\t\t\t\t\t`is-${ computedPlacement.split( '-' )[ 0 ] }`,\n\t\t\t\t\t].join( ' ' ) }\n\t\t\t\t\tstyle={ {\n\t\t\t\t\t\tleft:\n\t\t\t\t\t\t\ttypeof arrowData?.x !== 'undefined' &&\n\t\t\t\t\t\t\tNumber.isFinite( arrowData.x )\n\t\t\t\t\t\t\t\t? `${ arrowData.x }px`\n\t\t\t\t\t\t\t\t: '',\n\t\t\t\t\t\ttop:\n\t\t\t\t\t\t\ttypeof arrowData?.y !== 'undefined' &&\n\t\t\t\t\t\t\tNumber.isFinite( arrowData.y )\n\t\t\t\t\t\t\t\t? `${ arrowData.y }px`\n\t\t\t\t\t\t\t\t: '',\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t<ArrowTriangle />\n\t\t\t\t</div>\n\t\t\t) }\n\t\t</motion.div>\n\t);\n\n\tconst shouldRenderWithinSlot = slot.ref && ! inline;\n\tconst hasAnchor = anchorRef || anchorRect || anchor;\n\n\tif ( shouldRenderWithinSlot ) {\n\t\tcontent = <Fill name={ slotName }>{ content }</Fill>;\n\t} else if ( ! inline ) {\n\t\tcontent = createPortal(\n\t\t\t<StyleProvider document={ document }>{ content }</StyleProvider>,\n\t\t\tgetPopoverFallbackContainer()\n\t\t);\n\t}\n\n\tif ( hasAnchor ) {\n\t\treturn content;\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<span ref={ anchorRefFallback } />\n\t\t\t{ content }\n\t\t</>\n\t);\n};\n\n/**\n * `Popover` renders its content in a floating modal. If no explicit anchor is passed via props, it anchors to its parent element by default.\n *\n * ```jsx\n * import { Button, Popover } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const MyPopover = () => {\n * \tconst [ isVisible, setIsVisible ] = useState( false );\n * \tconst toggleVisible = () => {\n * \t\tsetIsVisible( ( state ) => ! state );\n * \t};\n *\n * \treturn (\n * \t\t<Button variant=\"secondary\" onClick={ toggleVisible }>\n * \t\t\tToggle Popover!\n * \t\t\t{ isVisible && <Popover>Popover is toggled!</Popover> }\n * \t\t</Button>\n * \t);\n * };\n * ```\n *\n */\nexport const Popover = contextConnect( UnforwardedPopover, 'Popover' );\n\nfunction PopoverSlot(\n\t{ name = SLOT_NAME }: { name?: string },\n\tref: ForwardedRef< any >\n) {\n\treturn (\n\t\t<Slot\n\t\t\tbubblesVirtually\n\t\t\tname={ name }\n\t\t\tclassName=\"popover-slot\"\n\t\t\tref={ ref }\n\t\t/>\n\t);\n}\n\n// @ts-expect-error For Legacy Reasons\nPopover.Slot = forwardRef( PopoverSlot );\n// @ts-expect-error For Legacy Reasons\nPopover.__unstableSlotNameProvider = slotNameContext.Provider;\n\nexport default Popover;\n"],"mappings":";AAAA;AACA;AACA;;AAEA,OAAOA,UAAU,MAAM,YAAY;AACnC,SACCC,WAAW,EACXC,IAAI,IAAIC,cAAc,EACtBC,KAAK,IAAIC,eAAe,EACxBC,UAAU,EACVC,UAAU,EACVC,KAAK,EACLC,MAAM,IAAIC,gBAAgB,EAC1BC,IAAI,QACE,wBAAwB;AAC/B;;AAEA;AACA,SAASC,MAAM,QAAQ,eAAe;;AAEtC;AACA;AACA;AACA,SACCC,MAAM,EACNC,eAAe,EACfC,UAAU,EACVC,aAAa,EACbC,UAAU,EACVC,OAAO,EACPC,QAAQ,EACRC,WAAW,EACXC,YAAY,QACN,oBAAoB;AAC3B,SACCC,gBAAgB,EAChBC,gBAAgB,EAChBC,YAAY,EACZC,uBAAuB,IAAIC,SAAS,QAC9B,oBAAoB;AAC3B,SAASC,KAAK,QAAQ,kBAAkB;AACxC,OAAOC,UAAU,MAAM,uBAAuB;AAC9C,SAASC,IAAI,EAAEC,GAAG,QAAQ,uBAAuB;;AAEjD;AACA;AACA;AACA,OAAOC,MAAM,MAAM,WAAW;AAC9B,OAAOC,UAAU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