@wordpress/components 28.2.0 → 28.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 (1329) hide show
  1. package/CHANGELOG.md +87 -0
  2. package/CONTRIBUTING.md +1 -1
  3. package/build/animation/index.js.map +1 -1
  4. package/build/autocomplete/autocompleter-ui.js +1 -0
  5. package/build/autocomplete/autocompleter-ui.js.map +1 -1
  6. package/build/autocomplete/index.js.map +1 -1
  7. package/build/autocomplete/types.js.map +1 -1
  8. package/build/base-control/index.js +14 -7
  9. package/build/base-control/index.js.map +1 -1
  10. package/build/base-control/types.js.map +1 -1
  11. package/build/border-box-control/border-box-control-visualizer/component.js +0 -4
  12. package/build/border-box-control/border-box-control-visualizer/component.js.map +1 -1
  13. package/build/button/index.js +14 -10
  14. package/build/button/index.js.map +1 -1
  15. package/build/button/types.js.map +1 -1
  16. package/build/checkbox-control/index.js +1 -0
  17. package/build/checkbox-control/index.js.map +1 -1
  18. package/build/color-picker/component.js +8 -17
  19. package/build/color-picker/component.js.map +1 -1
  20. package/build/combobox-control/index.js +13 -1
  21. package/build/combobox-control/index.js.map +1 -1
  22. package/build/composite/current/index.js.map +1 -1
  23. package/build/custom-select-control/index.js +125 -174
  24. package/build/custom-select-control/index.js.map +1 -1
  25. package/build/custom-select-control/types.js +6 -0
  26. package/build/custom-select-control/types.js.map +1 -0
  27. package/build/custom-select-control-v2/custom-select.js +60 -33
  28. package/build/custom-select-control-v2/custom-select.js.map +1 -1
  29. package/build/custom-select-control-v2/index.js +35 -7
  30. package/build/custom-select-control-v2/index.js.map +1 -1
  31. package/build/custom-select-control-v2/item.js +2 -0
  32. package/build/custom-select-control-v2/item.js.map +1 -1
  33. package/build/custom-select-control-v2/styles.js +106 -78
  34. package/build/custom-select-control-v2/styles.js.map +1 -1
  35. package/build/custom-select-control-v2/types.js.map +1 -1
  36. package/build/date-time/date-time/index.js +3 -1
  37. package/build/date-time/date-time/index.js.map +1 -1
  38. package/build/date-time/index.js +7 -0
  39. package/build/date-time/index.js.map +1 -1
  40. package/build/date-time/time/index.js +62 -145
  41. package/build/date-time/time/index.js.map +1 -1
  42. package/build/date-time/time-input/index.js +159 -0
  43. package/build/date-time/time-input/index.js.map +1 -0
  44. package/build/date-time/types.js.map +1 -1
  45. package/build/date-time/utils.js +64 -0
  46. package/build/date-time/utils.js.map +1 -1
  47. package/build/disclosure/index.js +0 -1
  48. package/build/disclosure/index.js.map +1 -1
  49. package/build/divider/component.js +0 -1
  50. package/build/divider/component.js.map +1 -1
  51. package/build/divider/types.js.map +1 -1
  52. package/build/dropdown-menu/index.js +1 -0
  53. package/build/dropdown-menu/index.js.map +1 -1
  54. package/build/dropdown-menu-v2/index.js +0 -1
  55. package/build/dropdown-menu-v2/index.js.map +1 -1
  56. package/build/dropdown-menu-v2/styles.js +15 -16
  57. package/build/dropdown-menu-v2/styles.js.map +1 -1
  58. package/build/dropdown-menu-v2/types.js.map +1 -1
  59. package/build/focal-point-picker/index.js +1 -0
  60. package/build/focal-point-picker/index.js.map +1 -1
  61. package/build/font-size-picker/font-size-picker-select.js +2 -2
  62. package/build/font-size-picker/font-size-picker-select.js.map +1 -1
  63. package/build/font-size-picker/index.js +37 -25
  64. package/build/font-size-picker/index.js.map +1 -1
  65. package/build/font-size-picker/types.js.map +1 -1
  66. package/build/font-size-picker/utils.js +0 -4
  67. package/build/font-size-picker/utils.js.map +1 -1
  68. package/build/form-token-field/index.js +8 -0
  69. package/build/form-token-field/index.js.map +1 -1
  70. package/build/form-token-field/token.js +4 -1
  71. package/build/form-token-field/token.js.map +1 -1
  72. package/build/higher-order/with-spoken-messages/index.js +1 -2
  73. package/build/higher-order/with-spoken-messages/index.js.map +1 -1
  74. package/build/index.js +2 -2
  75. package/build/index.js.map +1 -1
  76. package/build/menu-items-choice/types.js.map +1 -1
  77. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +1 -1
  78. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
  79. package/build/popover/index.js +0 -4
  80. package/build/popover/index.js.map +1 -1
  81. package/build/popover/utils.js +0 -1
  82. package/build/popover/utils.js.map +1 -1
  83. package/build/private-apis.js +0 -6
  84. package/build/private-apis.js.map +1 -1
  85. package/build/progress-bar/styles.js +19 -13
  86. package/build/progress-bar/styles.js.map +1 -1
  87. package/build/radio-control/index.js +1 -1
  88. package/build/radio-control/index.js.map +1 -1
  89. package/build/radio-group/context.js +0 -1
  90. package/build/radio-group/context.js.map +1 -1
  91. package/build/radio-group/index.js +0 -1
  92. package/build/radio-group/index.js.map +1 -1
  93. package/build/radio-group/radio.js +0 -1
  94. package/build/radio-group/radio.js.map +1 -1
  95. package/build/range-control/index.js +5 -1
  96. package/build/range-control/index.js.map +1 -1
  97. package/build/range-control/styles/range-control-styles.js +34 -28
  98. package/build/range-control/styles/range-control-styles.js.map +1 -1
  99. package/build/resizable-box/resize-tooltip/utils.js.map +1 -1
  100. package/build/select-control/index.js +6 -2
  101. package/build/select-control/index.js.map +1 -1
  102. package/build/select-control/styles/select-control-styles.js +49 -13
  103. package/build/select-control/styles/select-control-styles.js.map +1 -1
  104. package/build/select-control/types.js.map +1 -1
  105. package/build/tab-panel/index.js +0 -1
  106. package/build/tab-panel/index.js.map +1 -1
  107. package/build/tabs/index.js +0 -1
  108. package/build/tabs/index.js.map +1 -1
  109. package/build/tabs/styles.js +3 -5
  110. package/build/tabs/styles.js.map +1 -1
  111. package/build/tabs/tablist.js +4 -78
  112. package/build/tabs/tablist.js.map +1 -1
  113. package/build/tabs/types.js.map +1 -1
  114. package/build/textarea-control/index.js +1 -0
  115. package/build/textarea-control/index.js.map +1 -1
  116. package/build/toggle-control/index.js +10 -4
  117. package/build/toggle-control/index.js.map +1 -1
  118. package/build/toggle-group-control/toggle-group-control/as-radio-group.js +0 -2
  119. package/build/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
  120. package/build/toggle-group-control/toggle-group-control/component.js +0 -2
  121. package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
  122. package/build/toggle-group-control/toggle-group-control-option-base/component.js +3 -4
  123. package/build/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  124. package/build/toggle-group-control/toggle-group-control-option-base/styles.js +9 -9
  125. package/build/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
  126. package/build/toolbar/toolbar/toolbar-container.js +0 -1
  127. package/build/toolbar/toolbar/toolbar-container.js.map +1 -1
  128. package/build/toolbar/toolbar/types.js.map +1 -1
  129. package/build/toolbar/toolbar-button/index.js +27 -19
  130. package/build/toolbar/toolbar-button/index.js.map +1 -1
  131. package/build/toolbar/toolbar-button/types.js.map +1 -1
  132. package/build/toolbar/toolbar-context/index.js +0 -1
  133. package/build/toolbar/toolbar-context/index.js.map +1 -1
  134. package/build/toolbar/toolbar-item/index.js +1 -1
  135. package/build/toolbar/toolbar-item/index.js.map +1 -1
  136. package/build/tools-panel/tools-panel-header/component.js +1 -1
  137. package/build/tools-panel/tools-panel-header/component.js.map +1 -1
  138. package/build/tooltip/index.js +3 -2
  139. package/build/tooltip/index.js.map +1 -1
  140. package/build/tooltip/types.js.map +1 -1
  141. package/build/tree-select/index.js +1 -0
  142. package/build/tree-select/index.js.map +1 -1
  143. package/build/unit-control/index.js +3 -3
  144. package/build/unit-control/index.js.map +1 -1
  145. package/build/unit-control/styles/unit-control-styles.js +7 -7
  146. package/build/unit-control/styles/unit-control-styles.js.map +1 -1
  147. package/build/utils/element-rect.js +157 -0
  148. package/build/utils/element-rect.js.map +1 -0
  149. package/build/utils/hooks/use-event.js +41 -0
  150. package/build/utils/hooks/use-event.js.map +1 -0
  151. package/build/utils/hooks/use-on-value-update.js +46 -0
  152. package/build/utils/hooks/use-on-value-update.js.map +1 -0
  153. package/build/utils/hooks/use-update-effect.js +4 -1
  154. package/build/utils/hooks/use-update-effect.js.map +1 -1
  155. package/build-module/animation/index.js +0 -1
  156. package/build-module/animation/index.js.map +1 -1
  157. package/build-module/autocomplete/autocompleter-ui.js +1 -0
  158. package/build-module/autocomplete/autocompleter-ui.js.map +1 -1
  159. package/build-module/autocomplete/index.js.map +1 -1
  160. package/build-module/autocomplete/types.js.map +1 -1
  161. package/build-module/base-control/index.js +13 -6
  162. package/build-module/base-control/index.js.map +1 -1
  163. package/build-module/base-control/types.js.map +1 -1
  164. package/build-module/border-box-control/border-box-control-visualizer/component.js +0 -4
  165. package/build-module/border-box-control/border-box-control-visualizer/component.js.map +1 -1
  166. package/build-module/button/index.js +14 -10
  167. package/build-module/button/index.js.map +1 -1
  168. package/build-module/button/types.js.map +1 -1
  169. package/build-module/checkbox-control/index.js +1 -0
  170. package/build-module/checkbox-control/index.js.map +1 -1
  171. package/build-module/color-picker/component.js +9 -18
  172. package/build-module/color-picker/component.js.map +1 -1
  173. package/build-module/combobox-control/index.js +13 -1
  174. package/build-module/combobox-control/index.js.map +1 -1
  175. package/build-module/composite/current/index.js +0 -3
  176. package/build-module/composite/current/index.js.map +1 -1
  177. package/build-module/custom-select-control/index.js +123 -173
  178. package/build-module/custom-select-control/index.js.map +1 -1
  179. package/build-module/custom-select-control/types.js +2 -0
  180. package/build-module/custom-select-control/types.js.map +1 -0
  181. package/build-module/custom-select-control-v2/custom-select.js +61 -35
  182. package/build-module/custom-select-control-v2/custom-select.js.map +1 -1
  183. package/build-module/custom-select-control-v2/index.js +27 -1
  184. package/build-module/custom-select-control-v2/index.js.map +1 -1
  185. package/build-module/custom-select-control-v2/item.js +2 -0
  186. package/build-module/custom-select-control-v2/item.js.map +1 -1
  187. package/build-module/custom-select-control-v2/styles.js +105 -77
  188. package/build-module/custom-select-control-v2/styles.js.map +1 -1
  189. package/build-module/custom-select-control-v2/types.js.map +1 -1
  190. package/build-module/date-time/date-time/index.js +4 -1
  191. package/build-module/date-time/date-time/index.js.map +1 -1
  192. package/build-module/date-time/index.js +2 -1
  193. package/build-module/date-time/index.js.map +1 -1
  194. package/build-module/date-time/time/index.js +65 -149
  195. package/build-module/date-time/time/index.js.map +1 -1
  196. package/build-module/date-time/time-input/index.js +151 -0
  197. package/build-module/date-time/time-input/index.js.map +1 -0
  198. package/build-module/date-time/types.js.map +1 -1
  199. package/build-module/date-time/utils.js +61 -0
  200. package/build-module/date-time/utils.js.map +1 -1
  201. package/build-module/disclosure/index.js +0 -1
  202. package/build-module/disclosure/index.js.map +1 -1
  203. package/build-module/divider/component.js +0 -1
  204. package/build-module/divider/component.js.map +1 -1
  205. package/build-module/divider/types.js.map +1 -1
  206. package/build-module/dropdown-menu/index.js +1 -0
  207. package/build-module/dropdown-menu/index.js.map +1 -1
  208. package/build-module/dropdown-menu-v2/index.js +0 -1
  209. package/build-module/dropdown-menu-v2/index.js.map +1 -1
  210. package/build-module/dropdown-menu-v2/styles.js +14 -15
  211. package/build-module/dropdown-menu-v2/styles.js.map +1 -1
  212. package/build-module/dropdown-menu-v2/types.js.map +1 -1
  213. package/build-module/focal-point-picker/index.js +1 -0
  214. package/build-module/focal-point-picker/index.js.map +1 -1
  215. package/build-module/font-size-picker/font-size-picker-select.js +2 -2
  216. package/build-module/font-size-picker/font-size-picker-select.js.map +1 -1
  217. package/build-module/font-size-picker/index.js +37 -25
  218. package/build-module/font-size-picker/index.js.map +1 -1
  219. package/build-module/font-size-picker/types.js.map +1 -1
  220. package/build-module/font-size-picker/utils.js +0 -4
  221. package/build-module/font-size-picker/utils.js.map +1 -1
  222. package/build-module/form-token-field/index.js +8 -0
  223. package/build-module/form-token-field/index.js.map +1 -1
  224. package/build-module/form-token-field/token.js +4 -1
  225. package/build-module/form-token-field/token.js.map +1 -1
  226. package/build-module/higher-order/with-spoken-messages/index.js +1 -2
  227. package/build-module/higher-order/with-spoken-messages/index.js.map +1 -1
  228. package/build-module/index.js +1 -1
  229. package/build-module/index.js.map +1 -1
  230. package/build-module/menu-items-choice/types.js.map +1 -1
  231. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +1 -1
  232. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
  233. package/build-module/popover/index.js +0 -3
  234. package/build-module/popover/index.js.map +1 -1
  235. package/build-module/popover/utils.js +0 -1
  236. package/build-module/popover/utils.js.map +1 -1
  237. package/build-module/private-apis.js +0 -6
  238. package/build-module/private-apis.js.map +1 -1
  239. package/build-module/progress-bar/styles.js +21 -13
  240. package/build-module/progress-bar/styles.js.map +1 -1
  241. package/build-module/radio-control/index.js +1 -1
  242. package/build-module/radio-control/index.js.map +1 -1
  243. package/build-module/radio-group/context.js +0 -1
  244. package/build-module/radio-group/context.js.map +1 -1
  245. package/build-module/radio-group/index.js +0 -1
  246. package/build-module/radio-group/index.js.map +1 -1
  247. package/build-module/radio-group/radio.js +0 -1
  248. package/build-module/radio-group/radio.js.map +1 -1
  249. package/build-module/range-control/index.js +5 -1
  250. package/build-module/range-control/index.js.map +1 -1
  251. package/build-module/range-control/styles/range-control-styles.js +34 -28
  252. package/build-module/range-control/styles/range-control-styles.js.map +1 -1
  253. package/build-module/resizable-box/resize-tooltip/utils.js.map +1 -1
  254. package/build-module/select-control/index.js +7 -3
  255. package/build-module/select-control/index.js.map +1 -1
  256. package/build-module/select-control/styles/select-control-styles.js +47 -7
  257. package/build-module/select-control/styles/select-control-styles.js.map +1 -1
  258. package/build-module/select-control/types.js.map +1 -1
  259. package/build-module/tab-panel/index.js +0 -1
  260. package/build-module/tab-panel/index.js.map +1 -1
  261. package/build-module/tabs/index.js +0 -1
  262. package/build-module/tabs/index.js.map +1 -1
  263. package/build-module/tabs/styles.js +3 -4
  264. package/build-module/tabs/styles.js.map +1 -1
  265. package/build-module/tabs/tablist.js +4 -78
  266. package/build-module/tabs/tablist.js.map +1 -1
  267. package/build-module/tabs/types.js.map +1 -1
  268. package/build-module/textarea-control/index.js +1 -0
  269. package/build-module/textarea-control/index.js.map +1 -1
  270. package/build-module/toggle-control/index.js +10 -4
  271. package/build-module/toggle-control/index.js.map +1 -1
  272. package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js +0 -1
  273. package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
  274. package/build-module/toggle-group-control/toggle-group-control/component.js +0 -1
  275. package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
  276. package/build-module/toggle-group-control/toggle-group-control-option-base/component.js +3 -2
  277. package/build-module/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  278. package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js +9 -9
  279. package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
  280. package/build-module/toolbar/toolbar/toolbar-container.js +0 -1
  281. package/build-module/toolbar/toolbar/toolbar-container.js.map +1 -1
  282. package/build-module/toolbar/toolbar/types.js.map +1 -1
  283. package/build-module/toolbar/toolbar-button/index.js +27 -19
  284. package/build-module/toolbar/toolbar-button/index.js.map +1 -1
  285. package/build-module/toolbar/toolbar-button/types.js.map +1 -1
  286. package/build-module/toolbar/toolbar-context/index.js +0 -1
  287. package/build-module/toolbar/toolbar-context/index.js.map +1 -1
  288. package/build-module/toolbar/toolbar-item/index.js +1 -1
  289. package/build-module/toolbar/toolbar-item/index.js.map +1 -1
  290. package/build-module/tools-panel/tools-panel-header/component.js +1 -1
  291. package/build-module/tools-panel/tools-panel-header/component.js.map +1 -1
  292. package/build-module/tooltip/index.js +3 -2
  293. package/build-module/tooltip/index.js.map +1 -1
  294. package/build-module/tooltip/types.js.map +1 -1
  295. package/build-module/tree-select/index.js +1 -0
  296. package/build-module/tree-select/index.js.map +1 -1
  297. package/build-module/unit-control/index.js +3 -3
  298. package/build-module/unit-control/index.js.map +1 -1
  299. package/build-module/unit-control/styles/unit-control-styles.js +7 -7
  300. package/build-module/unit-control/styles/unit-control-styles.js.map +1 -1
  301. package/build-module/utils/element-rect.js +147 -0
  302. package/build-module/utils/element-rect.js.map +1 -0
  303. package/build-module/utils/hooks/use-event.js +35 -0
  304. package/build-module/utils/hooks/use-event.js.map +1 -0
  305. package/build-module/utils/hooks/use-on-value-update.js +39 -0
  306. package/build-module/utils/hooks/use-on-value-update.js.map +1 -0
  307. package/build-module/utils/hooks/use-update-effect.js +4 -1
  308. package/build-module/utils/hooks/use-update-effect.js.map +1 -1
  309. package/build-style/style-rtl.css +80 -95
  310. package/build-style/style.css +80 -95
  311. package/build-types/alignment-matrix-control/cell.d.ts +0 -1
  312. package/build-types/alignment-matrix-control/cell.d.ts.map +1 -1
  313. package/build-types/alignment-matrix-control/icon.d.ts +0 -1
  314. package/build-types/alignment-matrix-control/icon.d.ts.map +1 -1
  315. package/build-types/alignment-matrix-control/index.d.ts +0 -1
  316. package/build-types/alignment-matrix-control/index.d.ts.map +1 -1
  317. package/build-types/alignment-matrix-control/stories/index.story.d.ts +0 -1
  318. package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -1
  319. package/build-types/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.d.ts +8 -9
  320. package/build-types/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.d.ts.map +1 -1
  321. package/build-types/alignment-matrix-control/styles/alignment-matrix-control-styles.d.ts +10 -11
  322. package/build-types/alignment-matrix-control/styles/alignment-matrix-control-styles.d.ts.map +1 -1
  323. package/build-types/angle-picker-control/angle-circle.d.ts +0 -1
  324. package/build-types/angle-picker-control/angle-circle.d.ts.map +1 -1
  325. package/build-types/angle-picker-control/index.d.ts +0 -1
  326. package/build-types/angle-picker-control/index.d.ts.map +1 -1
  327. package/build-types/angle-picker-control/stories/index.story.d.ts +0 -1
  328. package/build-types/angle-picker-control/stories/index.story.d.ts.map +1 -1
  329. package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts +7 -8
  330. package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts.map +1 -1
  331. package/build-types/animate/index.d.ts +0 -1
  332. package/build-types/animate/index.d.ts.map +1 -1
  333. package/build-types/animate/types.d.ts +0 -1
  334. package/build-types/animate/types.d.ts.map +1 -1
  335. package/build-types/animation/index.d.ts.map +1 -1
  336. package/build-types/autocomplete/autocompleter-ui.d.ts +0 -1
  337. package/build-types/autocomplete/autocompleter-ui.d.ts.map +1 -1
  338. package/build-types/autocomplete/index.d.ts +2 -3
  339. package/build-types/autocomplete/index.d.ts.map +1 -1
  340. package/build-types/autocomplete/types.d.ts +2 -3
  341. package/build-types/autocomplete/types.d.ts.map +1 -1
  342. package/build-types/base-control/hooks.d.ts +3 -4
  343. package/build-types/base-control/hooks.d.ts.map +1 -1
  344. package/build-types/base-control/index.d.ts +6 -21
  345. package/build-types/base-control/index.d.ts.map +1 -1
  346. package/build-types/base-control/stories/index.story.d.ts +0 -1
  347. package/build-types/base-control/stories/index.story.d.ts.map +1 -1
  348. package/build-types/base-control/styles/base-control-styles.d.ts +10 -11
  349. package/build-types/base-control/styles/base-control-styles.d.ts.map +1 -1
  350. package/build-types/base-control/types.d.ts +1 -1
  351. package/build-types/border-box-control/border-box-control/component.d.ts +4 -5
  352. package/build-types/border-box-control/border-box-control/component.d.ts.map +1 -1
  353. package/build-types/border-box-control/border-box-control/hook.d.ts +14 -16
  354. package/build-types/border-box-control/border-box-control/hook.d.ts.map +1 -1
  355. package/build-types/border-box-control/border-box-control-linked-button/component.d.ts +0 -1
  356. package/build-types/border-box-control/border-box-control-linked-button/component.d.ts.map +1 -1
  357. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +12 -14
  358. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts.map +1 -1
  359. package/build-types/border-box-control/border-box-control-split-controls/component.d.ts +5 -6
  360. package/build-types/border-box-control/border-box-control-split-controls/component.d.ts.map +1 -1
  361. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +14 -16
  362. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts.map +1 -1
  363. package/build-types/border-box-control/border-box-control-visualizer/component.d.ts +1 -2
  364. package/build-types/border-box-control/border-box-control-visualizer/component.d.ts.map +1 -1
  365. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +9 -11
  366. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts.map +1 -1
  367. package/build-types/border-box-control/stories/index.story.d.ts +4 -5
  368. package/build-types/border-box-control/stories/index.story.d.ts.map +1 -1
  369. package/build-types/border-box-control/styles.d.ts +3 -3
  370. package/build-types/border-box-control/utils.d.ts.map +1 -1
  371. package/build-types/border-control/border-control/component.d.ts +14 -15
  372. package/build-types/border-control/border-control/component.d.ts.map +1 -1
  373. package/build-types/border-control/border-control/hook.d.ts +17 -19
  374. package/build-types/border-control/border-control/hook.d.ts.map +1 -1
  375. package/build-types/border-control/border-control-dropdown/component.d.ts +6 -7
  376. package/build-types/border-control/border-control-dropdown/component.d.ts.map +1 -1
  377. package/build-types/border-control/border-control-dropdown/hook.d.ts +12 -14
  378. package/build-types/border-control/border-control-dropdown/hook.d.ts.map +1 -1
  379. package/build-types/border-control/border-control-style-picker/component.d.ts +2 -3
  380. package/build-types/border-control/border-control-style-picker/component.d.ts.map +1 -1
  381. package/build-types/border-control/stories/index.story.d.ts +84 -85
  382. package/build-types/border-control/stories/index.story.d.ts.map +1 -1
  383. package/build-types/border-control/styles.d.ts +2 -2
  384. package/build-types/box-control/all-input-control.d.ts +0 -1
  385. package/build-types/box-control/all-input-control.d.ts.map +1 -1
  386. package/build-types/box-control/axial-input-controls.d.ts +0 -1
  387. package/build-types/box-control/axial-input-controls.d.ts.map +1 -1
  388. package/build-types/box-control/icon.d.ts +0 -1
  389. package/build-types/box-control/icon.d.ts.map +1 -1
  390. package/build-types/box-control/index.d.ts +0 -1
  391. package/build-types/box-control/index.d.ts.map +1 -1
  392. package/build-types/box-control/input-controls.d.ts +0 -1
  393. package/build-types/box-control/input-controls.d.ts.map +1 -1
  394. package/build-types/box-control/linked-button.d.ts +0 -1
  395. package/build-types/box-control/linked-button.d.ts.map +1 -1
  396. package/build-types/box-control/stories/index.story.d.ts +312 -350
  397. package/build-types/box-control/stories/index.story.d.ts.map +1 -1
  398. package/build-types/box-control/styles/box-control-icon-styles.d.ts +16 -17
  399. package/build-types/box-control/styles/box-control-icon-styles.d.ts.map +1 -1
  400. package/build-types/box-control/styles/box-control-styles.d.ts +44 -45
  401. package/build-types/box-control/styles/box-control-styles.d.ts.map +1 -1
  402. package/build-types/box-control/types.d.ts +0 -1
  403. package/build-types/box-control/types.d.ts.map +1 -1
  404. package/build-types/button/deprecated.d.ts +69 -70
  405. package/build-types/button/deprecated.d.ts.map +1 -1
  406. package/build-types/button/index.d.ts.map +1 -1
  407. package/build-types/button/stories/e2e/index.story.d.ts +0 -1
  408. package/build-types/button/stories/e2e/index.story.d.ts.map +1 -1
  409. package/build-types/button/stories/index.story.d.ts +0 -1
  410. package/build-types/button/stories/index.story.d.ts.map +1 -1
  411. package/build-types/button/types.d.ts +36 -12
  412. package/build-types/button/types.d.ts.map +1 -1
  413. package/build-types/button-group/index.d.ts +0 -1
  414. package/build-types/button-group/index.d.ts.map +1 -1
  415. package/build-types/card/card/component.d.ts +5 -6
  416. package/build-types/card/card/component.d.ts.map +1 -1
  417. package/build-types/card/card/hook.d.ts +10 -12
  418. package/build-types/card/card/hook.d.ts.map +1 -1
  419. package/build-types/card/card-body/component.d.ts +4 -5
  420. package/build-types/card/card-body/component.d.ts.map +1 -1
  421. package/build-types/card/card-body/hook.d.ts +10 -12
  422. package/build-types/card/card-body/hook.d.ts.map +1 -1
  423. package/build-types/card/card-divider/component.d.ts +4 -5
  424. package/build-types/card/card-divider/component.d.ts.map +1 -1
  425. package/build-types/card/card-divider/hook.d.ts +15 -17
  426. package/build-types/card/card-divider/hook.d.ts.map +1 -1
  427. package/build-types/card/card-footer/component.d.ts +5 -6
  428. package/build-types/card/card-footer/component.d.ts.map +1 -1
  429. package/build-types/card/card-footer/hook.d.ts +10 -12
  430. package/build-types/card/card-footer/hook.d.ts.map +1 -1
  431. package/build-types/card/card-header/component.d.ts +4 -5
  432. package/build-types/card/card-header/component.d.ts.map +1 -1
  433. package/build-types/card/card-header/hook.d.ts +10 -12
  434. package/build-types/card/card-header/hook.d.ts.map +1 -1
  435. package/build-types/card/card-media/component.d.ts +0 -1
  436. package/build-types/card/card-media/component.d.ts.map +1 -1
  437. package/build-types/card/card-media/hook.d.ts +10 -12
  438. package/build-types/card/card-media/hook.d.ts.map +1 -1
  439. package/build-types/card/context.d.ts +0 -1
  440. package/build-types/card/context.d.ts.map +1 -1
  441. package/build-types/card/stories/index.story.d.ts +3 -22
  442. package/build-types/card/stories/index.story.d.ts.map +1 -1
  443. package/build-types/checkbox-control/index.d.ts +1 -1
  444. package/build-types/checkbox-control/index.d.ts.map +1 -1
  445. package/build-types/circular-option-picker/circular-option-picker-actions.d.ts +0 -1
  446. package/build-types/circular-option-picker/circular-option-picker-actions.d.ts.map +1 -1
  447. package/build-types/circular-option-picker/circular-option-picker-context.d.ts +0 -1
  448. package/build-types/circular-option-picker/circular-option-picker-context.d.ts.map +1 -1
  449. package/build-types/circular-option-picker/circular-option-picker-option-group.d.ts +0 -1
  450. package/build-types/circular-option-picker/circular-option-picker-option-group.d.ts.map +1 -1
  451. package/build-types/circular-option-picker/circular-option-picker-option.d.ts +0 -1
  452. package/build-types/circular-option-picker/circular-option-picker-option.d.ts.map +1 -1
  453. package/build-types/circular-option-picker/circular-option-picker.d.ts +0 -1
  454. package/build-types/circular-option-picker/circular-option-picker.d.ts.map +1 -1
  455. package/build-types/clipboard-button/index.d.ts +0 -1
  456. package/build-types/clipboard-button/index.d.ts.map +1 -1
  457. package/build-types/color-indicator/index.d.ts +0 -1
  458. package/build-types/color-indicator/index.d.ts.map +1 -1
  459. package/build-types/color-palette/index.d.ts +0 -1
  460. package/build-types/color-palette/index.d.ts.map +1 -1
  461. package/build-types/color-palette/stories/index.story.d.ts +0 -1
  462. package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
  463. package/build-types/color-palette/styles.d.ts +5 -6
  464. package/build-types/color-palette/styles.d.ts.map +1 -1
  465. package/build-types/color-palette/utils.d.ts +1 -1
  466. package/build-types/color-palette/utils.d.ts.map +1 -1
  467. package/build-types/color-picker/color-copy-button.d.ts +0 -1
  468. package/build-types/color-picker/color-copy-button.d.ts.map +1 -1
  469. package/build-types/color-picker/color-input.d.ts +0 -1
  470. package/build-types/color-picker/color-input.d.ts.map +1 -1
  471. package/build-types/color-picker/component.d.ts +5 -6
  472. package/build-types/color-picker/component.d.ts.map +1 -1
  473. package/build-types/color-picker/hex-input.d.ts +0 -1
  474. package/build-types/color-picker/hex-input.d.ts.map +1 -1
  475. package/build-types/color-picker/hsl-input.d.ts +0 -1
  476. package/build-types/color-picker/hsl-input.d.ts.map +1 -1
  477. package/build-types/color-picker/input-with-slider.d.ts +0 -1
  478. package/build-types/color-picker/input-with-slider.d.ts.map +1 -1
  479. package/build-types/color-picker/legacy-adapter.d.ts +0 -1
  480. package/build-types/color-picker/legacy-adapter.d.ts.map +1 -1
  481. package/build-types/color-picker/picker.d.ts +0 -1
  482. package/build-types/color-picker/picker.d.ts.map +1 -1
  483. package/build-types/color-picker/rgb-input.d.ts +0 -1
  484. package/build-types/color-picker/rgb-input.d.ts.map +1 -1
  485. package/build-types/color-picker/stories/index.story.d.ts +2 -9
  486. package/build-types/color-picker/stories/index.story.d.ts.map +1 -1
  487. package/build-types/color-picker/styles.d.ts +52 -53
  488. package/build-types/color-picker/styles.d.ts.map +1 -1
  489. package/build-types/combobox-control/index.d.ts +1 -1
  490. package/build-types/combobox-control/index.d.ts.map +1 -1
  491. package/build-types/combobox-control/stories/index.story.d.ts +41 -41
  492. package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
  493. package/build-types/combobox-control/styles.d.ts +1 -2
  494. package/build-types/combobox-control/styles.d.ts.map +1 -1
  495. package/build-types/combobox-control/types.d.ts +0 -1
  496. package/build-types/combobox-control/types.d.ts.map +1 -1
  497. package/build-types/composite/current/index.d.ts.map +1 -1
  498. package/build-types/composite/current/stories/utils.d.ts +0 -1
  499. package/build-types/composite/current/stories/utils.d.ts.map +1 -1
  500. package/build-types/composite/legacy/index.d.ts +0 -1
  501. package/build-types/composite/legacy/index.d.ts.map +1 -1
  502. package/build-types/composite/legacy/stories/utils.d.ts +0 -1
  503. package/build-types/composite/legacy/stories/utils.d.ts.map +1 -1
  504. package/build-types/confirm-dialog/component.d.ts +0 -1
  505. package/build-types/confirm-dialog/component.d.ts.map +1 -1
  506. package/build-types/confirm-dialog/stories/index.story.d.ts +0 -1
  507. package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -1
  508. package/build-types/context/context-system-provider.d.ts +1 -1
  509. package/build-types/context/context-system-provider.d.ts.map +1 -1
  510. package/build-types/context/get-styled-class-name-from-key.d.ts +9 -1
  511. package/build-types/context/get-styled-class-name-from-key.d.ts.map +1 -1
  512. package/build-types/context/use-context-system.d.ts +1 -1
  513. package/build-types/context/use-context-system.d.ts.map +1 -1
  514. package/build-types/context/utils.d.ts.map +1 -1
  515. package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts +0 -1
  516. package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -1
  517. package/build-types/custom-gradient-picker/gradient-bar/index.d.ts +0 -1
  518. package/build-types/custom-gradient-picker/gradient-bar/index.d.ts.map +1 -1
  519. package/build-types/custom-gradient-picker/index.d.ts +0 -1
  520. package/build-types/custom-gradient-picker/index.d.ts.map +1 -1
  521. package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts +2 -3
  522. package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts.map +1 -1
  523. package/build-types/custom-gradient-picker/types.d.ts +0 -1
  524. package/build-types/custom-gradient-picker/types.d.ts.map +1 -1
  525. package/build-types/custom-gradient-picker/utils.d.ts.map +1 -1
  526. package/build-types/custom-select-control/index.d.ts +3 -2
  527. package/build-types/custom-select-control/index.d.ts.map +1 -1
  528. package/build-types/custom-select-control/stories/index.story.d.ts +6 -42
  529. package/build-types/custom-select-control/stories/index.story.d.ts.map +1 -1
  530. package/build-types/custom-select-control/test/index.d.ts.map +1 -0
  531. package/build-types/custom-select-control/types.d.ts +122 -0
  532. package/build-types/custom-select-control/types.d.ts.map +1 -0
  533. package/build-types/custom-select-control-v2/custom-select.d.ts +2 -3
  534. package/build-types/custom-select-control-v2/custom-select.d.ts.map +1 -1
  535. package/build-types/custom-select-control-v2/index.d.ts +7 -4
  536. package/build-types/custom-select-control-v2/index.d.ts.map +1 -1
  537. package/build-types/custom-select-control-v2/item.d.ts +0 -1
  538. package/build-types/custom-select-control-v2/item.d.ts.map +1 -1
  539. package/build-types/custom-select-control-v2/stories/{default.story.d.ts → index.story.d.ts} +13 -11
  540. package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +1 -0
  541. package/build-types/custom-select-control-v2/styles.d.ts +39 -48
  542. package/build-types/custom-select-control-v2/styles.d.ts.map +1 -1
  543. package/build-types/custom-select-control-v2/types.d.ts +12 -108
  544. package/build-types/custom-select-control-v2/types.d.ts.map +1 -1
  545. package/build-types/dashicon/index.d.ts +0 -1
  546. package/build-types/dashicon/index.d.ts.map +1 -1
  547. package/build-types/date-time/date/index.d.ts +0 -1
  548. package/build-types/date-time/date/index.d.ts.map +1 -1
  549. package/build-types/date-time/date/styles.d.ts +15 -16
  550. package/build-types/date-time/date/styles.d.ts.map +1 -1
  551. package/build-types/date-time/date-time/index.d.ts +1 -2
  552. package/build-types/date-time/date-time/index.d.ts.map +1 -1
  553. package/build-types/date-time/date-time/styles.d.ts +3 -4
  554. package/build-types/date-time/date-time/styles.d.ts.map +1 -1
  555. package/build-types/date-time/index.d.ts +2 -1
  556. package/build-types/date-time/index.d.ts.map +1 -1
  557. package/build-types/date-time/stories/time-input.story.d.ts +12 -0
  558. package/build-types/date-time/stories/time-input.story.d.ts.map +1 -0
  559. package/build-types/date-time/time/index.d.ts +1 -2
  560. package/build-types/date-time/time/index.d.ts.map +1 -1
  561. package/build-types/date-time/time/styles.d.ts +64 -65
  562. package/build-types/date-time/time/styles.d.ts.map +1 -1
  563. package/build-types/date-time/time/timezone.d.ts +0 -1
  564. package/build-types/date-time/time/timezone.d.ts.map +1 -1
  565. package/build-types/date-time/time-input/index.d.ts +4 -0
  566. package/build-types/date-time/time-input/index.d.ts.map +1 -0
  567. package/build-types/date-time/time-input/test/index.d.ts +2 -0
  568. package/build-types/date-time/time-input/test/index.d.ts.map +1 -0
  569. package/build-types/date-time/types.d.ts +53 -0
  570. package/build-types/date-time/types.d.ts.map +1 -1
  571. package/build-types/date-time/utils.d.ts +39 -0
  572. package/build-types/date-time/utils.d.ts.map +1 -1
  573. package/build-types/dimension-control/index.d.ts +0 -1
  574. package/build-types/dimension-control/index.d.ts.map +1 -1
  575. package/build-types/disabled/index.d.ts +0 -1
  576. package/build-types/disabled/index.d.ts.map +1 -1
  577. package/build-types/disabled/types.d.ts +0 -1
  578. package/build-types/disabled/types.d.ts.map +1 -1
  579. package/build-types/disclosure/index.d.ts +0 -1
  580. package/build-types/disclosure/index.d.ts.map +1 -1
  581. package/build-types/disclosure/types.d.ts +0 -1
  582. package/build-types/disclosure/types.d.ts.map +1 -1
  583. package/build-types/divider/component.d.ts +4 -5
  584. package/build-types/divider/component.d.ts.map +1 -1
  585. package/build-types/divider/styles.d.ts +6 -7
  586. package/build-types/divider/styles.d.ts.map +1 -1
  587. package/build-types/divider/types.d.ts.map +1 -1
  588. package/build-types/draggable/index.d.ts +0 -1
  589. package/build-types/draggable/index.d.ts.map +1 -1
  590. package/build-types/drop-zone/index.d.ts +0 -1
  591. package/build-types/drop-zone/index.d.ts.map +1 -1
  592. package/build-types/drop-zone/provider.d.ts +0 -1
  593. package/build-types/drop-zone/provider.d.ts.map +1 -1
  594. package/build-types/drop-zone/stories/index.story.d.ts +0 -1
  595. package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
  596. package/build-types/dropdown/dropdown-content-wrapper.d.ts +0 -1
  597. package/build-types/dropdown/dropdown-content-wrapper.d.ts.map +1 -1
  598. package/build-types/dropdown/index.d.ts +0 -1
  599. package/build-types/dropdown/index.d.ts.map +1 -1
  600. package/build-types/dropdown/stories/index.story.d.ts +5 -6
  601. package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
  602. package/build-types/dropdown/styles.d.ts +2 -3
  603. package/build-types/dropdown/styles.d.ts.map +1 -1
  604. package/build-types/dropdown-menu/index.d.ts +0 -1
  605. package/build-types/dropdown-menu/index.d.ts.map +1 -1
  606. package/build-types/dropdown-menu/stories/index.story.d.ts +3 -4
  607. package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
  608. package/build-types/dropdown-menu-v2/index.d.ts +0 -1
  609. package/build-types/dropdown-menu-v2/index.d.ts.map +1 -1
  610. package/build-types/dropdown-menu-v2/stories/index.story.d.ts.map +1 -1
  611. package/build-types/dropdown-menu-v2/styles.d.ts +41 -42
  612. package/build-types/dropdown-menu-v2/styles.d.ts.map +1 -1
  613. package/build-types/dropdown-menu-v2/types.d.ts +0 -1
  614. package/build-types/dropdown-menu-v2/types.d.ts.map +1 -1
  615. package/build-types/duotone-picker/color-list-picker/index.d.ts +0 -1
  616. package/build-types/duotone-picker/color-list-picker/index.d.ts.map +1 -1
  617. package/build-types/duotone-picker/custom-duotone-bar.d.ts +0 -1
  618. package/build-types/duotone-picker/custom-duotone-bar.d.ts.map +1 -1
  619. package/build-types/duotone-picker/duotone-picker.d.ts +0 -1
  620. package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -1
  621. package/build-types/duotone-picker/duotone-swatch.d.ts +0 -1
  622. package/build-types/duotone-picker/duotone-swatch.d.ts.map +1 -1
  623. package/build-types/elevation/component.d.ts +0 -1
  624. package/build-types/elevation/component.d.ts.map +1 -1
  625. package/build-types/elevation/hook.d.ts +9 -11
  626. package/build-types/elevation/hook.d.ts.map +1 -1
  627. package/build-types/external-link/index.d.ts +0 -1
  628. package/build-types/external-link/index.d.ts.map +1 -1
  629. package/build-types/flex/context.d.ts +2 -3
  630. package/build-types/flex/context.d.ts.map +1 -1
  631. package/build-types/flex/flex/component.d.ts +0 -1
  632. package/build-types/flex/flex/component.d.ts.map +1 -1
  633. package/build-types/flex/flex/hook.d.ts +9 -11
  634. package/build-types/flex/flex/hook.d.ts.map +1 -1
  635. package/build-types/flex/flex-block/component.d.ts +0 -1
  636. package/build-types/flex/flex-block/component.d.ts.map +1 -1
  637. package/build-types/flex/flex-block/hook.d.ts +9 -11
  638. package/build-types/flex/flex-block/hook.d.ts.map +1 -1
  639. package/build-types/flex/flex-item/component.d.ts +0 -1
  640. package/build-types/flex/flex-item/component.d.ts.map +1 -1
  641. package/build-types/flex/flex-item/hook.d.ts +9 -11
  642. package/build-types/flex/flex-item/hook.d.ts.map +1 -1
  643. package/build-types/focal-point-picker/controls.d.ts +0 -1
  644. package/build-types/focal-point-picker/controls.d.ts.map +1 -1
  645. package/build-types/focal-point-picker/focal-point.d.ts +0 -1
  646. package/build-types/focal-point-picker/focal-point.d.ts.map +1 -1
  647. package/build-types/focal-point-picker/grid.d.ts +0 -1
  648. package/build-types/focal-point-picker/grid.d.ts.map +1 -1
  649. package/build-types/focal-point-picker/index.d.ts +1 -1
  650. package/build-types/focal-point-picker/index.d.ts.map +1 -1
  651. package/build-types/focal-point-picker/media.d.ts +0 -1
  652. package/build-types/focal-point-picker/media.d.ts.map +1 -1
  653. package/build-types/focal-point-picker/stories/index.story.d.ts +32 -33
  654. package/build-types/focal-point-picker/stories/index.story.d.ts.map +1 -1
  655. package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts +26 -27
  656. package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts.map +1 -1
  657. package/build-types/focal-point-picker/styles/focal-point-style.d.ts +2 -3
  658. package/build-types/focal-point-picker/styles/focal-point-style.d.ts.map +1 -1
  659. package/build-types/focusable-iframe/index.d.ts +0 -1
  660. package/build-types/focusable-iframe/index.d.ts.map +1 -1
  661. package/build-types/font-size-picker/font-size-picker-select.d.ts +0 -1
  662. package/build-types/font-size-picker/font-size-picker-select.d.ts.map +1 -1
  663. package/build-types/font-size-picker/font-size-picker-toggle-group.d.ts +0 -1
  664. package/build-types/font-size-picker/font-size-picker-toggle-group.d.ts.map +1 -1
  665. package/build-types/font-size-picker/index.d.ts +0 -1
  666. package/build-types/font-size-picker/index.d.ts.map +1 -1
  667. package/build-types/font-size-picker/stories/e2e/index.story.d.ts +0 -1
  668. package/build-types/font-size-picker/stories/e2e/index.story.d.ts.map +1 -1
  669. package/build-types/font-size-picker/styles.d.ts +10 -11
  670. package/build-types/font-size-picker/styles.d.ts.map +1 -1
  671. package/build-types/font-size-picker/types.d.ts +6 -5
  672. package/build-types/font-size-picker/types.d.ts.map +1 -1
  673. package/build-types/font-size-picker/utils.d.ts.map +1 -1
  674. package/build-types/form-file-upload/index.d.ts +0 -1
  675. package/build-types/form-file-upload/index.d.ts.map +1 -1
  676. package/build-types/form-file-upload/stories/index.story.d.ts +0 -1
  677. package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
  678. package/build-types/form-token-field/index.d.ts +0 -1
  679. package/build-types/form-token-field/index.d.ts.map +1 -1
  680. package/build-types/form-token-field/stories/index.story.d.ts.map +1 -1
  681. package/build-types/form-token-field/styles.d.ts +1 -2
  682. package/build-types/form-token-field/styles.d.ts.map +1 -1
  683. package/build-types/form-token-field/suggestions-list.d.ts +0 -1
  684. package/build-types/form-token-field/suggestions-list.d.ts.map +1 -1
  685. package/build-types/form-token-field/token.d.ts +0 -1
  686. package/build-types/form-token-field/token.d.ts.map +1 -1
  687. package/build-types/gradient-picker/index.d.ts +0 -1
  688. package/build-types/gradient-picker/index.d.ts.map +1 -1
  689. package/build-types/gradient-picker/types.d.ts +0 -1
  690. package/build-types/gradient-picker/types.d.ts.map +1 -1
  691. package/build-types/grid/component.d.ts +0 -1
  692. package/build-types/grid/component.d.ts.map +1 -1
  693. package/build-types/grid/hook.d.ts +9 -11
  694. package/build-types/grid/hook.d.ts.map +1 -1
  695. package/build-types/guide/icons.d.ts +0 -1
  696. package/build-types/guide/icons.d.ts.map +1 -1
  697. package/build-types/guide/index.d.ts +0 -1
  698. package/build-types/guide/index.d.ts.map +1 -1
  699. package/build-types/guide/page-control.d.ts +0 -1
  700. package/build-types/guide/page-control.d.ts.map +1 -1
  701. package/build-types/guide/page.d.ts +0 -1
  702. package/build-types/guide/page.d.ts.map +1 -1
  703. package/build-types/h-stack/component.d.ts +2 -3
  704. package/build-types/h-stack/component.d.ts.map +1 -1
  705. package/build-types/h-stack/hook.d.ts +9 -11
  706. package/build-types/h-stack/hook.d.ts.map +1 -1
  707. package/build-types/heading/component.d.ts +4 -5
  708. package/build-types/heading/component.d.ts.map +1 -1
  709. package/build-types/heading/hook.d.ts +9 -11
  710. package/build-types/heading/hook.d.ts.map +1 -1
  711. package/build-types/higher-order/navigate-regions/index.d.ts +1 -2
  712. package/build-types/higher-order/navigate-regions/index.d.ts.map +1 -1
  713. package/build-types/higher-order/with-constrained-tabbing/index.d.ts +0 -1
  714. package/build-types/higher-order/with-constrained-tabbing/index.d.ts.map +1 -1
  715. package/build-types/higher-order/with-fallback-styles/index.d.ts +3 -4
  716. package/build-types/higher-order/with-fallback-styles/index.d.ts.map +1 -1
  717. package/build-types/higher-order/with-filters/index.d.ts +4 -5
  718. package/build-types/higher-order/with-filters/index.d.ts.map +1 -1
  719. package/build-types/higher-order/with-focus-outside/index.d.ts +0 -1
  720. package/build-types/higher-order/with-focus-outside/index.d.ts.map +1 -1
  721. package/build-types/higher-order/with-focus-return/index.d.ts +0 -1
  722. package/build-types/higher-order/with-focus-return/index.d.ts.map +1 -1
  723. package/build-types/higher-order/with-notices/index.d.ts +0 -1
  724. package/build-types/higher-order/with-notices/index.d.ts.map +1 -1
  725. package/build-types/higher-order/with-notices/types.d.ts +0 -1
  726. package/build-types/higher-order/with-notices/types.d.ts.map +1 -1
  727. package/build-types/higher-order/with-spoken-messages/index.d.ts +1 -3
  728. package/build-types/higher-order/with-spoken-messages/index.d.ts.map +1 -1
  729. package/build-types/index.d.ts +1 -1
  730. package/build-types/index.d.ts.map +1 -1
  731. package/build-types/input-control/backdrop.d.ts +0 -1
  732. package/build-types/input-control/backdrop.d.ts.map +1 -1
  733. package/build-types/input-control/input-base.d.ts +0 -1
  734. package/build-types/input-control/input-base.d.ts.map +1 -1
  735. package/build-types/input-control/input-field.d.ts +0 -1
  736. package/build-types/input-control/input-field.d.ts.map +1 -1
  737. package/build-types/input-control/input-prefix-wrapper.d.ts +0 -1
  738. package/build-types/input-control/input-prefix-wrapper.d.ts.map +1 -1
  739. package/build-types/input-control/input-suffix-wrapper.d.ts +0 -1
  740. package/build-types/input-control/input-suffix-wrapper.d.ts.map +1 -1
  741. package/build-types/input-control/label.d.ts +0 -1
  742. package/build-types/input-control/label.d.ts.map +1 -1
  743. package/build-types/input-control/reducer/reducer.d.ts +9 -9
  744. package/build-types/input-control/reducer/reducer.d.ts.map +1 -1
  745. package/build-types/input-control/stories/index.story.d.ts +0 -1
  746. package/build-types/input-control/stories/index.story.d.ts.map +1 -1
  747. package/build-types/input-control/styles/input-control-styles.d.ts +13 -13
  748. package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
  749. package/build-types/isolated-event-container/index.d.ts +0 -1
  750. package/build-types/isolated-event-container/index.d.ts.map +1 -1
  751. package/build-types/item-group/context.d.ts +0 -1
  752. package/build-types/item-group/context.d.ts.map +1 -1
  753. package/build-types/item-group/item/component.d.ts +0 -1
  754. package/build-types/item-group/item/component.d.ts.map +1 -1
  755. package/build-types/item-group/item/hook.d.ts +10 -12
  756. package/build-types/item-group/item/hook.d.ts.map +1 -1
  757. package/build-types/item-group/item-group/component.d.ts +0 -1
  758. package/build-types/item-group/item-group/component.d.ts.map +1 -1
  759. package/build-types/item-group/item-group/hook.d.ts +11 -13
  760. package/build-types/item-group/item-group/hook.d.ts.map +1 -1
  761. package/build-types/item-group/styles.d.ts +1 -1
  762. package/build-types/item-group/types.d.ts +0 -1
  763. package/build-types/item-group/types.d.ts.map +1 -1
  764. package/build-types/keyboard-shortcuts/index.d.ts +0 -1
  765. package/build-types/keyboard-shortcuts/index.d.ts.map +1 -1
  766. package/build-types/keyboard-shortcuts/types.d.ts +0 -1
  767. package/build-types/keyboard-shortcuts/types.d.ts.map +1 -1
  768. package/build-types/menu-group/index.d.ts +0 -1
  769. package/build-types/menu-group/index.d.ts.map +1 -1
  770. package/build-types/menu-item/index.d.ts +8 -9
  771. package/build-types/menu-item/index.d.ts.map +1 -1
  772. package/build-types/menu-item/stories/index.story.d.ts +32 -33
  773. package/build-types/menu-item/stories/index.story.d.ts.map +1 -1
  774. package/build-types/menu-items-choice/index.d.ts +0 -1
  775. package/build-types/menu-items-choice/index.d.ts.map +1 -1
  776. package/build-types/menu-items-choice/types.d.ts +1 -1
  777. package/build-types/menu-items-choice/types.d.ts.map +1 -1
  778. package/build-types/modal/index.d.ts +0 -1
  779. package/build-types/modal/index.d.ts.map +1 -1
  780. package/build-types/navigable-container/container.d.ts +8 -8
  781. package/build-types/navigable-container/menu.d.ts +7 -7
  782. package/build-types/navigable-container/tabbable.d.ts +6 -6
  783. package/build-types/navigation/back-button/index.d.ts +0 -1
  784. package/build-types/navigation/back-button/index.d.ts.map +1 -1
  785. package/build-types/navigation/context.d.ts +0 -1
  786. package/build-types/navigation/context.d.ts.map +1 -1
  787. package/build-types/navigation/group/context.d.ts +0 -1
  788. package/build-types/navigation/group/context.d.ts.map +1 -1
  789. package/build-types/navigation/group/index.d.ts +0 -1
  790. package/build-types/navigation/group/index.d.ts.map +1 -1
  791. package/build-types/navigation/index.d.ts +0 -1
  792. package/build-types/navigation/index.d.ts.map +1 -1
  793. package/build-types/navigation/item/base-content.d.ts +0 -1
  794. package/build-types/navigation/item/base-content.d.ts.map +1 -1
  795. package/build-types/navigation/item/base.d.ts +0 -1
  796. package/build-types/navigation/item/base.d.ts.map +1 -1
  797. package/build-types/navigation/item/index.d.ts +0 -1
  798. package/build-types/navigation/item/index.d.ts.map +1 -1
  799. package/build-types/navigation/menu/context.d.ts +0 -1
  800. package/build-types/navigation/menu/context.d.ts.map +1 -1
  801. package/build-types/navigation/menu/index.d.ts +0 -1
  802. package/build-types/navigation/menu/index.d.ts.map +1 -1
  803. package/build-types/navigation/menu/menu-title-search.d.ts +0 -1
  804. package/build-types/navigation/menu/menu-title-search.d.ts.map +1 -1
  805. package/build-types/navigation/menu/menu-title.d.ts +0 -1
  806. package/build-types/navigation/menu/menu-title.d.ts.map +1 -1
  807. package/build-types/navigation/menu/search-no-results-found.d.ts +0 -1
  808. package/build-types/navigation/menu/search-no-results-found.d.ts.map +1 -1
  809. package/build-types/navigation/styles/navigation-styles.d.ts +25 -26
  810. package/build-types/navigation/styles/navigation-styles.d.ts.map +1 -1
  811. package/build-types/navigation/types.d.ts +0 -1
  812. package/build-types/navigation/types.d.ts.map +1 -1
  813. package/build-types/navigation/use-navigation-tree-nodes.d.ts +0 -1
  814. package/build-types/navigation/use-navigation-tree-nodes.d.ts.map +1 -1
  815. package/build-types/navigator/context.d.ts +0 -1
  816. package/build-types/navigator/context.d.ts.map +1 -1
  817. package/build-types/navigator/navigator-back-button/component.d.ts +17 -18
  818. package/build-types/navigator/navigator-back-button/component.d.ts.map +1 -1
  819. package/build-types/navigator/navigator-back-button/hook.d.ts +29 -31
  820. package/build-types/navigator/navigator-back-button/hook.d.ts.map +1 -1
  821. package/build-types/navigator/navigator-button/component.d.ts +18 -19
  822. package/build-types/navigator/navigator-button/component.d.ts.map +1 -1
  823. package/build-types/navigator/navigator-button/hook.d.ts +29 -31
  824. package/build-types/navigator/navigator-button/hook.d.ts.map +1 -1
  825. package/build-types/navigator/navigator-provider/component.d.ts +0 -1
  826. package/build-types/navigator/navigator-provider/component.d.ts.map +1 -1
  827. package/build-types/navigator/navigator-screen/component.d.ts +0 -1
  828. package/build-types/navigator/navigator-screen/component.d.ts.map +1 -1
  829. package/build-types/navigator/navigator-to-parent-button/component.d.ts +17 -18
  830. package/build-types/navigator/navigator-to-parent-button/component.d.ts.map +1 -1
  831. package/build-types/navigator/stories/index.story.d.ts +4 -4
  832. package/build-types/navigator/stories/index.story.d.ts.map +1 -1
  833. package/build-types/notice/index.d.ts +0 -1
  834. package/build-types/notice/index.d.ts.map +1 -1
  835. package/build-types/notice/list.d.ts +0 -1
  836. package/build-types/notice/list.d.ts.map +1 -1
  837. package/build-types/number-control/index.d.ts +12 -13
  838. package/build-types/number-control/index.d.ts.map +1 -1
  839. package/build-types/number-control/stories/index.story.d.ts +12 -13
  840. package/build-types/number-control/stories/index.story.d.ts.map +1 -1
  841. package/build-types/number-control/styles/number-control-styles.d.ts +2 -3
  842. package/build-types/number-control/styles/number-control-styles.d.ts.map +1 -1
  843. package/build-types/palette-edit/index.d.ts +0 -1
  844. package/build-types/palette-edit/index.d.ts.map +1 -1
  845. package/build-types/palette-edit/styles.d.ts +16 -18
  846. package/build-types/palette-edit/styles.d.ts.map +1 -1
  847. package/build-types/panel/body.d.ts +0 -1
  848. package/build-types/panel/body.d.ts.map +1 -1
  849. package/build-types/panel/header.d.ts +0 -1
  850. package/build-types/panel/header.d.ts.map +1 -1
  851. package/build-types/panel/index.d.ts +0 -1
  852. package/build-types/panel/index.d.ts.map +1 -1
  853. package/build-types/panel/row.d.ts +0 -1
  854. package/build-types/panel/row.d.ts.map +1 -1
  855. package/build-types/panel/types.d.ts +0 -1
  856. package/build-types/panel/types.d.ts.map +1 -1
  857. package/build-types/placeholder/index.d.ts +0 -1
  858. package/build-types/placeholder/index.d.ts.map +1 -1
  859. package/build-types/popover/index.d.ts +0 -1
  860. package/build-types/popover/index.d.ts.map +1 -1
  861. package/build-types/popover/overlay-middlewares.d.ts +1 -11
  862. package/build-types/popover/overlay-middlewares.d.ts.map +1 -1
  863. package/build-types/popover/stories/e2e/index.story.d.ts +0 -1
  864. package/build-types/popover/stories/e2e/index.story.d.ts.map +1 -1
  865. package/build-types/popover/stories/index.story.d.ts +6 -6
  866. package/build-types/popover/stories/index.story.d.ts.map +1 -1
  867. package/build-types/popover/test/utils/index.d.ts +0 -1
  868. package/build-types/popover/test/utils/index.d.ts.map +1 -1
  869. package/build-types/popover/utils.d.ts +3 -3
  870. package/build-types/popover/utils.d.ts.map +1 -1
  871. package/build-types/private-apis.d.ts.map +1 -1
  872. package/build-types/progress-bar/index.d.ts +0 -1
  873. package/build-types/progress-bar/index.d.ts.map +1 -1
  874. package/build-types/progress-bar/stories/index.story.d.ts +0 -1
  875. package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
  876. package/build-types/progress-bar/styles.d.ts +6 -7
  877. package/build-types/progress-bar/styles.d.ts.map +1 -1
  878. package/build-types/query-controls/author-select.d.ts +0 -1
  879. package/build-types/query-controls/author-select.d.ts.map +1 -1
  880. package/build-types/query-controls/category-select.d.ts +0 -1
  881. package/build-types/query-controls/category-select.d.ts.map +1 -1
  882. package/build-types/query-controls/index.d.ts +0 -1
  883. package/build-types/query-controls/index.d.ts.map +1 -1
  884. package/build-types/radio-control/index.d.ts +0 -1
  885. package/build-types/radio-control/index.d.ts.map +1 -1
  886. package/build-types/radio-group/context.d.ts +2 -3
  887. package/build-types/radio-group/context.d.ts.map +1 -1
  888. package/build-types/radio-group/index.d.ts +0 -1
  889. package/build-types/radio-group/index.d.ts.map +1 -1
  890. package/build-types/radio-group/radio.d.ts +0 -1
  891. package/build-types/radio-group/radio.d.ts.map +1 -1
  892. package/build-types/radio-group/types.d.ts +0 -1
  893. package/build-types/radio-group/types.d.ts.map +1 -1
  894. package/build-types/range-control/index.d.ts +29 -29
  895. package/build-types/range-control/index.d.ts.map +1 -1
  896. package/build-types/range-control/input-range.d.ts +0 -1
  897. package/build-types/range-control/input-range.d.ts.map +1 -1
  898. package/build-types/range-control/mark.d.ts +0 -1
  899. package/build-types/range-control/mark.d.ts.map +1 -1
  900. package/build-types/range-control/rail.d.ts +0 -1
  901. package/build-types/range-control/rail.d.ts.map +1 -1
  902. package/build-types/range-control/styles/range-control-styles.d.ts +48 -49
  903. package/build-types/range-control/styles/range-control-styles.d.ts.map +1 -1
  904. package/build-types/range-control/tooltip.d.ts +0 -1
  905. package/build-types/range-control/tooltip.d.ts.map +1 -1
  906. package/build-types/resizable-box/index.d.ts +7 -20
  907. package/build-types/resizable-box/index.d.ts.map +1 -1
  908. package/build-types/resizable-box/resize-tooltip/label.d.ts +0 -1
  909. package/build-types/resizable-box/resize-tooltip/label.d.ts.map +1 -1
  910. package/build-types/resizable-box/resize-tooltip/styles/resize-tooltip.styles.d.ts +7 -8
  911. package/build-types/resizable-box/resize-tooltip/styles/resize-tooltip.styles.d.ts.map +1 -1
  912. package/build-types/resizable-box/resize-tooltip/utils.d.ts +2 -3
  913. package/build-types/resizable-box/resize-tooltip/utils.d.ts.map +1 -1
  914. package/build-types/resizable-box/stories/index.story.d.ts +32 -39
  915. package/build-types/resizable-box/stories/index.story.d.ts.map +1 -1
  916. package/build-types/responsive-wrapper/index.d.ts +0 -1
  917. package/build-types/responsive-wrapper/index.d.ts.map +1 -1
  918. package/build-types/responsive-wrapper/types.d.ts +0 -1
  919. package/build-types/responsive-wrapper/types.d.ts.map +1 -1
  920. package/build-types/sandbox/index.d.ts +0 -1
  921. package/build-types/sandbox/index.d.ts.map +1 -1
  922. package/build-types/sandbox/types.d.ts +0 -1
  923. package/build-types/sandbox/types.d.ts.map +1 -1
  924. package/build-types/scrollable/component.d.ts +0 -1
  925. package/build-types/scrollable/component.d.ts.map +1 -1
  926. package/build-types/scrollable/hook.d.ts +9 -11
  927. package/build-types/scrollable/hook.d.ts.map +1 -1
  928. package/build-types/search-control/index.d.ts +0 -1
  929. package/build-types/search-control/index.d.ts.map +1 -1
  930. package/build-types/search-control/stories/index.story.d.ts +0 -1
  931. package/build-types/search-control/stories/index.story.d.ts.map +1 -1
  932. package/build-types/search-control/styles.d.ts +3 -4
  933. package/build-types/search-control/styles.d.ts.map +1 -1
  934. package/build-types/search-control/types.d.ts +0 -1
  935. package/build-types/search-control/types.d.ts.map +1 -1
  936. package/build-types/select-control/chevron-down.d.ts +0 -1
  937. package/build-types/select-control/chevron-down.d.ts.map +1 -1
  938. package/build-types/select-control/index.d.ts +0 -1
  939. package/build-types/select-control/index.d.ts.map +1 -1
  940. package/build-types/select-control/stories/index.story.d.ts +1 -1
  941. package/build-types/select-control/stories/index.story.d.ts.map +1 -1
  942. package/build-types/select-control/styles/select-control-styles.d.ts +11 -7
  943. package/build-types/select-control/styles/select-control-styles.d.ts.map +1 -1
  944. package/build-types/select-control/types.d.ts +6 -0
  945. package/build-types/select-control/types.d.ts.map +1 -1
  946. package/build-types/shortcut/index.d.ts +0 -1
  947. package/build-types/shortcut/index.d.ts.map +1 -1
  948. package/build-types/slot-fill/bubbles-virtually/fill.d.ts +0 -1
  949. package/build-types/slot-fill/bubbles-virtually/fill.d.ts.map +1 -1
  950. package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts +0 -1
  951. package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts.map +1 -1
  952. package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts +0 -1
  953. package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts.map +1 -1
  954. package/build-types/slot-fill/bubbles-virtually/slot.d.ts +1 -2
  955. package/build-types/slot-fill/bubbles-virtually/slot.d.ts.map +1 -1
  956. package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts.map +1 -1
  957. package/build-types/slot-fill/context.d.ts +0 -1
  958. package/build-types/slot-fill/context.d.ts.map +1 -1
  959. package/build-types/slot-fill/index.d.ts +4 -4
  960. package/build-types/slot-fill/index.d.ts.map +1 -1
  961. package/build-types/slot-fill/provider.d.ts +0 -1
  962. package/build-types/slot-fill/provider.d.ts.map +1 -1
  963. package/build-types/slot-fill/slot.d.ts +1 -2
  964. package/build-types/slot-fill/slot.d.ts.map +1 -1
  965. package/build-types/slot-fill/use-slot.d.ts +0 -1
  966. package/build-types/slot-fill/use-slot.d.ts.map +1 -1
  967. package/build-types/snackbar/index.d.ts +5 -6
  968. package/build-types/snackbar/index.d.ts.map +1 -1
  969. package/build-types/snackbar/list.d.ts +0 -1
  970. package/build-types/snackbar/list.d.ts.map +1 -1
  971. package/build-types/spacer/component.d.ts +0 -1
  972. package/build-types/spacer/component.d.ts.map +1 -1
  973. package/build-types/spacer/hook.d.ts +9 -11
  974. package/build-types/spacer/hook.d.ts.map +1 -1
  975. package/build-types/spinner/styles.d.ts +6 -7
  976. package/build-types/spinner/styles.d.ts.map +1 -1
  977. package/build-types/style-provider/index.d.ts +0 -1
  978. package/build-types/style-provider/index.d.ts.map +1 -1
  979. package/build-types/surface/component.d.ts +0 -1
  980. package/build-types/surface/component.d.ts.map +1 -1
  981. package/build-types/surface/hook.d.ts +10 -12
  982. package/build-types/surface/hook.d.ts.map +1 -1
  983. package/build-types/surface/types.d.ts +0 -1
  984. package/build-types/surface/types.d.ts.map +1 -1
  985. package/build-types/tab-panel/index.d.ts +0 -1
  986. package/build-types/tab-panel/index.d.ts.map +1 -1
  987. package/build-types/tab-panel/stories/index.story.d.ts +0 -1
  988. package/build-types/tab-panel/stories/index.story.d.ts.map +1 -1
  989. package/build-types/tabs/context.d.ts +0 -1
  990. package/build-types/tabs/context.d.ts.map +1 -1
  991. package/build-types/tabs/index.d.ts +0 -1
  992. package/build-types/tabs/index.d.ts.map +1 -1
  993. package/build-types/tabs/stories/index.story.d.ts.map +1 -1
  994. package/build-types/tabs/styles.d.ts +12 -13
  995. package/build-types/tabs/styles.d.ts.map +1 -1
  996. package/build-types/tabs/tab.d.ts +0 -1
  997. package/build-types/tabs/tab.d.ts.map +1 -1
  998. package/build-types/tabs/tablist.d.ts +0 -1
  999. package/build-types/tabs/tablist.d.ts.map +1 -1
  1000. package/build-types/tabs/tabpanel.d.ts +0 -1
  1001. package/build-types/tabs/tabpanel.d.ts.map +1 -1
  1002. package/build-types/tabs/types.d.ts +0 -1
  1003. package/build-types/tabs/types.d.ts.map +1 -1
  1004. package/build-types/text/component.d.ts +0 -1
  1005. package/build-types/text/component.d.ts.map +1 -1
  1006. package/build-types/text/hook.d.ts +9 -9
  1007. package/build-types/text/stories/index.story.d.ts +0 -1
  1008. package/build-types/text/stories/index.story.d.ts.map +1 -1
  1009. package/build-types/text/utils.d.ts +0 -1
  1010. package/build-types/text/utils.d.ts.map +1 -1
  1011. package/build-types/text-control/index.d.ts +2 -3
  1012. package/build-types/text-control/index.d.ts.map +1 -1
  1013. package/build-types/text-highlight/index.d.ts +0 -1
  1014. package/build-types/text-highlight/index.d.ts.map +1 -1
  1015. package/build-types/textarea-control/index.d.ts +2 -2
  1016. package/build-types/textarea-control/index.d.ts.map +1 -1
  1017. package/build-types/textarea-control/styles/textarea-control-styles.d.ts +2 -3
  1018. package/build-types/textarea-control/styles/textarea-control-styles.d.ts.map +1 -1
  1019. package/build-types/theme/color-algorithms.d.ts +1 -9
  1020. package/build-types/theme/color-algorithms.d.ts.map +1 -1
  1021. package/build-types/theme/index.d.ts +0 -1
  1022. package/build-types/theme/index.d.ts.map +1 -1
  1023. package/build-types/theme/stories/index.story.d.ts +0 -1
  1024. package/build-types/theme/stories/index.story.d.ts.map +1 -1
  1025. package/build-types/theme/styles.d.ts +2 -3
  1026. package/build-types/theme/styles.d.ts.map +1 -1
  1027. package/build-types/tip/index.d.ts +0 -1
  1028. package/build-types/tip/index.d.ts.map +1 -1
  1029. package/build-types/toggle-control/index.d.ts.map +1 -1
  1030. package/build-types/toggle-control/stories/index.story.d.ts +0 -1
  1031. package/build-types/toggle-control/stories/index.story.d.ts.map +1 -1
  1032. package/build-types/toggle-group-control/context.d.ts +0 -1
  1033. package/build-types/toggle-group-control/context.d.ts.map +1 -1
  1034. package/build-types/toggle-group-control/toggle-group-control/as-button-group.d.ts +0 -1
  1035. package/build-types/toggle-group-control/toggle-group-control/as-button-group.d.ts.map +1 -1
  1036. package/build-types/toggle-group-control/toggle-group-control/as-radio-group.d.ts +0 -1
  1037. package/build-types/toggle-group-control/toggle-group-control/as-radio-group.d.ts.map +1 -1
  1038. package/build-types/toggle-group-control/toggle-group-control/component.d.ts +8 -9
  1039. package/build-types/toggle-group-control/toggle-group-control/component.d.ts.map +1 -1
  1040. package/build-types/toggle-group-control/toggle-group-control/styles.d.ts +5 -6
  1041. package/build-types/toggle-group-control/toggle-group-control/styles.d.ts.map +1 -1
  1042. package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts +0 -1
  1043. package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts.map +1 -1
  1044. package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts +1 -2
  1045. package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts.map +1 -1
  1046. package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts +5 -6
  1047. package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts.map +1 -1
  1048. package/build-types/toggle-group-control/toggle-group-control-option-icon/component.d.ts +0 -1
  1049. package/build-types/toggle-group-control/toggle-group-control-option-icon/component.d.ts.map +1 -1
  1050. package/build-types/toolbar/stories/index.story.d.ts +0 -1
  1051. package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
  1052. package/build-types/toolbar/toolbar/index.d.ts +0 -1
  1053. package/build-types/toolbar/toolbar/index.d.ts.map +1 -1
  1054. package/build-types/toolbar/toolbar/toolbar-container.d.ts +0 -1
  1055. package/build-types/toolbar/toolbar/toolbar-container.d.ts.map +1 -1
  1056. package/build-types/toolbar/toolbar/types.d.ts +6 -0
  1057. package/build-types/toolbar/toolbar/types.d.ts.map +1 -1
  1058. package/build-types/toolbar/toolbar-button/index.d.ts +3 -97
  1059. package/build-types/toolbar/toolbar-button/index.d.ts.map +1 -1
  1060. package/build-types/toolbar/toolbar-button/toolbar-button-container.d.ts +0 -1
  1061. package/build-types/toolbar/toolbar-button/toolbar-button-container.d.ts.map +1 -1
  1062. package/build-types/toolbar/toolbar-button/types.d.ts +18 -0
  1063. package/build-types/toolbar/toolbar-button/types.d.ts.map +1 -1
  1064. package/build-types/toolbar/toolbar-context/index.d.ts +0 -1
  1065. package/build-types/toolbar/toolbar-context/index.d.ts.map +1 -1
  1066. package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts +0 -1
  1067. package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts.map +1 -1
  1068. package/build-types/toolbar/toolbar-group/index.d.ts +0 -1
  1069. package/build-types/toolbar/toolbar-group/index.d.ts.map +1 -1
  1070. package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts +0 -1
  1071. package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts.map +1 -1
  1072. package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts +1 -2
  1073. package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts.map +1 -1
  1074. package/build-types/toolbar/toolbar-item/index.d.ts +2 -5
  1075. package/build-types/toolbar/toolbar-item/index.d.ts.map +1 -1
  1076. package/build-types/tools-panel/context.d.ts +0 -1
  1077. package/build-types/tools-panel/context.d.ts.map +1 -1
  1078. package/build-types/tools-panel/styles.d.ts +2 -3
  1079. package/build-types/tools-panel/styles.d.ts.map +1 -1
  1080. package/build-types/tools-panel/tools-panel/component.d.ts +0 -1
  1081. package/build-types/tools-panel/tools-panel/component.d.ts.map +1 -1
  1082. package/build-types/tools-panel/tools-panel/hook.d.ts +10 -12
  1083. package/build-types/tools-panel/tools-panel/hook.d.ts.map +1 -1
  1084. package/build-types/tools-panel/tools-panel-header/component.d.ts +0 -1
  1085. package/build-types/tools-panel/tools-panel-header/component.d.ts.map +1 -1
  1086. package/build-types/tools-panel/tools-panel-header/hook.d.ts +11 -13
  1087. package/build-types/tools-panel/tools-panel-header/hook.d.ts.map +1 -1
  1088. package/build-types/tools-panel/tools-panel-item/component.d.ts +3 -4
  1089. package/build-types/tools-panel/tools-panel-item/component.d.ts.map +1 -1
  1090. package/build-types/tools-panel/tools-panel-item/hook.d.ts +9 -11
  1091. package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
  1092. package/build-types/tooltip/index.d.ts +0 -1
  1093. package/build-types/tooltip/index.d.ts.map +1 -1
  1094. package/build-types/tooltip/stories/index.story.d.ts +0 -1
  1095. package/build-types/tooltip/stories/index.story.d.ts.map +1 -1
  1096. package/build-types/tooltip/types.d.ts +4 -1
  1097. package/build-types/tooltip/types.d.ts.map +1 -1
  1098. package/build-types/tree-grid/cell.d.ts +0 -1
  1099. package/build-types/tree-grid/cell.d.ts.map +1 -1
  1100. package/build-types/tree-grid/index.d.ts +0 -1
  1101. package/build-types/tree-grid/index.d.ts.map +1 -1
  1102. package/build-types/tree-grid/item.d.ts +0 -1
  1103. package/build-types/tree-grid/item.d.ts.map +1 -1
  1104. package/build-types/tree-grid/roving-tab-index-context.d.ts +0 -1
  1105. package/build-types/tree-grid/roving-tab-index-context.d.ts.map +1 -1
  1106. package/build-types/tree-grid/roving-tab-index-item.d.ts +0 -1
  1107. package/build-types/tree-grid/roving-tab-index-item.d.ts.map +1 -1
  1108. package/build-types/tree-grid/roving-tab-index.d.ts +0 -1
  1109. package/build-types/tree-grid/roving-tab-index.d.ts.map +1 -1
  1110. package/build-types/tree-grid/row.d.ts +0 -1
  1111. package/build-types/tree-grid/row.d.ts.map +1 -1
  1112. package/build-types/tree-grid/stories/index.story.d.ts +0 -1
  1113. package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
  1114. package/build-types/tree-grid/types.d.ts +0 -1
  1115. package/build-types/tree-grid/types.d.ts.map +1 -1
  1116. package/build-types/tree-select/index.d.ts +1 -1
  1117. package/build-types/tree-select/index.d.ts.map +1 -1
  1118. package/build-types/truncate/component.d.ts +0 -1
  1119. package/build-types/truncate/component.d.ts.map +1 -1
  1120. package/build-types/truncate/hook.d.ts +9 -11
  1121. package/build-types/truncate/hook.d.ts.map +1 -1
  1122. package/build-types/truncate/utils.d.ts.map +1 -1
  1123. package/build-types/unit-control/index.d.ts +7 -8
  1124. package/build-types/unit-control/index.d.ts.map +1 -1
  1125. package/build-types/unit-control/styles/unit-control-styles.d.ts +17 -18
  1126. package/build-types/unit-control/styles/unit-control-styles.d.ts.map +1 -1
  1127. package/build-types/unit-control/unit-select-control.d.ts +0 -1
  1128. package/build-types/unit-control/unit-select-control.d.ts.map +1 -1
  1129. package/build-types/unit-control/utils.d.ts.map +1 -1
  1130. package/build-types/utils/breakpoint.d.ts +1 -10
  1131. package/build-types/utils/breakpoint.d.ts.map +1 -1
  1132. package/build-types/utils/element-rect.d.ts +111 -0
  1133. package/build-types/utils/element-rect.d.ts.map +1 -0
  1134. package/build-types/utils/font.d.ts +1 -6
  1135. package/build-types/utils/font.d.ts.map +1 -1
  1136. package/build-types/utils/hooks/use-controlled-state.d.ts +1 -1
  1137. package/build-types/utils/hooks/use-controlled-state.d.ts.map +1 -1
  1138. package/build-types/utils/hooks/use-controlled-value.d.ts +0 -1
  1139. package/build-types/utils/hooks/use-controlled-value.d.ts.map +1 -1
  1140. package/build-types/utils/hooks/use-event.d.ts +20 -0
  1141. package/build-types/utils/hooks/use-event.d.ts.map +1 -0
  1142. package/build-types/utils/hooks/use-on-value-update.d.ts +19 -0
  1143. package/build-types/utils/hooks/use-on-value-update.d.ts.map +1 -0
  1144. package/build-types/utils/hooks/use-update-effect.d.ts +2 -2
  1145. package/build-types/utils/hooks/use-update-effect.d.ts.map +1 -1
  1146. package/build-types/utils/math.d.ts.map +1 -1
  1147. package/build-types/utils/rtl.d.ts +2 -2
  1148. package/build-types/utils/values.d.ts +2 -2
  1149. package/build-types/utils/values.d.ts.map +1 -1
  1150. package/build-types/utils/with-ignore-ime-events.d.ts +0 -1
  1151. package/build-types/utils/with-ignore-ime-events.d.ts.map +1 -1
  1152. package/build-types/v-stack/component.d.ts +2 -3
  1153. package/build-types/v-stack/component.d.ts.map +1 -1
  1154. package/build-types/v-stack/hook.d.ts +9 -11
  1155. package/build-types/v-stack/hook.d.ts.map +1 -1
  1156. package/build-types/v-stack/stories/index.story.d.ts +2 -3
  1157. package/build-types/v-stack/stories/index.story.d.ts.map +1 -1
  1158. package/build-types/view/component.d.ts +0 -2
  1159. package/build-types/view/component.d.ts.map +1 -1
  1160. package/build-types/visually-hidden/component.d.ts +0 -1
  1161. package/build-types/visually-hidden/component.d.ts.map +1 -1
  1162. package/build-types/z-stack/component.d.ts +0 -1
  1163. package/build-types/z-stack/component.d.ts.map +1 -1
  1164. package/build-types/z-stack/styles.d.ts +4 -5
  1165. package/build-types/z-stack/styles.d.ts.map +1 -1
  1166. package/package.json +19 -20
  1167. package/src/animation/index.tsx +0 -1
  1168. package/src/autocomplete/README.md +2 -2
  1169. package/src/autocomplete/autocompleter-ui.tsx +1 -0
  1170. package/src/autocomplete/index.tsx +0 -1
  1171. package/src/autocomplete/types.ts +2 -3
  1172. package/src/base-control/README.md +1 -1
  1173. package/src/base-control/index.tsx +16 -6
  1174. package/src/base-control/stories/index.story.tsx +0 -1
  1175. package/src/base-control/types.ts +1 -1
  1176. package/src/border-box-control/border-box-control-visualizer/component.tsx +0 -5
  1177. package/src/button/README.md +14 -1
  1178. package/src/button/index.tsx +15 -11
  1179. package/src/button/stories/e2e/index.story.tsx +2 -1
  1180. package/src/button/test/index.tsx +34 -6
  1181. package/src/button/types.ts +36 -12
  1182. package/src/card/card/README.md +1 -1
  1183. package/src/card/stories/index.story.tsx +43 -42
  1184. package/src/checkbox-control/README.md +8 -0
  1185. package/src/checkbox-control/index.tsx +1 -0
  1186. package/src/checkbox-control/style.scss +3 -1
  1187. package/src/color-picker/component.tsx +12 -22
  1188. package/src/color-picker/stories/index.story.tsx +2 -22
  1189. package/src/combobox-control/README.md +9 -0
  1190. package/src/combobox-control/index.tsx +13 -0
  1191. package/src/combobox-control/test/index.tsx +127 -1
  1192. package/src/composite/current/index.ts +0 -2
  1193. package/src/custom-select-control/README.md +34 -32
  1194. package/src/custom-select-control/index.tsx +176 -0
  1195. package/src/custom-select-control/stories/index.story.tsx +26 -18
  1196. package/src/{custom-select-control-v2/legacy-component → custom-select-control}/test/index.tsx +89 -57
  1197. package/src/custom-select-control/types.ts +123 -0
  1198. package/src/custom-select-control-v2/custom-select.tsx +59 -22
  1199. package/src/custom-select-control-v2/index.tsx +26 -1
  1200. package/src/custom-select-control-v2/item.tsx +5 -1
  1201. package/src/custom-select-control-v2/stories/{default.story.tsx → index.story.tsx} +1 -1
  1202. package/src/custom-select-control-v2/styles.ts +179 -84
  1203. package/src/custom-select-control-v2/test/index.tsx +35 -5
  1204. package/src/custom-select-control-v2/types.ts +18 -115
  1205. package/src/date-time/README.md +8 -0
  1206. package/src/date-time/date-time/index.tsx +2 -1
  1207. package/src/date-time/index.ts +2 -1
  1208. package/src/date-time/stories/time-input.story.tsx +36 -0
  1209. package/src/date-time/time/index.tsx +77 -194
  1210. package/src/date-time/time/test/index.tsx +61 -0
  1211. package/src/date-time/time-input/index.tsx +196 -0
  1212. package/src/date-time/time-input/test/index.tsx +171 -0
  1213. package/src/date-time/types.ts +63 -0
  1214. package/src/date-time/utils.ts +69 -0
  1215. package/src/dimension-control/test/__snapshots__/index.test.js.snap +120 -96
  1216. package/src/disabled/README.md +1 -1
  1217. package/src/disclosure/index.tsx +0 -1
  1218. package/src/divider/component.tsx +0 -1
  1219. package/src/divider/types.ts +0 -1
  1220. package/src/dropdown/stories/index.story.tsx +55 -50
  1221. package/src/dropdown-menu/index.tsx +1 -0
  1222. package/src/dropdown-menu/stories/index.story.tsx +52 -55
  1223. package/src/dropdown-menu-v2/index.tsx +0 -1
  1224. package/src/dropdown-menu-v2/stories/index.story.tsx +0 -12
  1225. package/src/dropdown-menu-v2/styles.ts +3 -4
  1226. package/src/dropdown-menu-v2/types.ts +0 -1
  1227. package/src/focal-point-picker/README.md +9 -0
  1228. package/src/focal-point-picker/index.tsx +1 -0
  1229. package/src/font-size-picker/README.md +1 -1
  1230. package/src/font-size-picker/font-size-picker-select.tsx +2 -2
  1231. package/src/font-size-picker/index.tsx +69 -65
  1232. package/src/font-size-picker/test/index.tsx +89 -21
  1233. package/src/font-size-picker/types.ts +6 -5
  1234. package/src/font-size-picker/utils.ts +0 -5
  1235. package/src/form-toggle/style.scss +14 -9
  1236. package/src/form-token-field/README.md +2 -1
  1237. package/src/form-token-field/index.tsx +9 -0
  1238. package/src/form-token-field/stories/index.story.tsx +2 -0
  1239. package/src/form-token-field/token.tsx +2 -0
  1240. package/src/higher-order/navigate-regions/style.scss +14 -14
  1241. package/src/higher-order/with-spoken-messages/index.tsx +1 -2
  1242. package/src/index.ts +1 -1
  1243. package/src/menu-items-choice/types.ts +2 -1
  1244. package/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +1 -1
  1245. package/src/navigator/stories/index.story.tsx +240 -242
  1246. package/src/notice/test/__snapshots__/index.tsx.snap +1 -1
  1247. package/src/palette-edit/test/index.tsx +1 -0
  1248. package/src/popover/index.tsx +0 -2
  1249. package/src/popover/stories/index.story.tsx +155 -153
  1250. package/src/popover/utils.ts +0 -1
  1251. package/src/private-apis.ts +0 -7
  1252. package/src/progress-bar/styles.ts +18 -9
  1253. package/src/radio-control/index.tsx +1 -1
  1254. package/src/radio-control/style.scss +6 -1
  1255. package/src/radio-group/context.tsx +0 -1
  1256. package/src/radio-group/index.tsx +0 -1
  1257. package/src/radio-group/radio.tsx +0 -1
  1258. package/src/range-control/README.md +8 -0
  1259. package/src/range-control/index.tsx +3 -0
  1260. package/src/range-control/styles/range-control-styles.ts +6 -2
  1261. package/src/resizable-box/resize-tooltip/README.md +1 -1
  1262. package/src/resizable-box/resize-tooltip/utils.ts +1 -1
  1263. package/src/select-control/README.md +8 -0
  1264. package/src/select-control/index.tsx +10 -4
  1265. package/src/select-control/stories/index.story.tsx +6 -0
  1266. package/src/select-control/styles/select-control-styles.ts +41 -7
  1267. package/src/select-control/types.ts +6 -0
  1268. package/src/style.scss +1 -1
  1269. package/src/tab-panel/index.tsx +0 -1
  1270. package/src/tabs/index.tsx +0 -1
  1271. package/src/tabs/stories/index.story.tsx +25 -18
  1272. package/src/tabs/styles.ts +28 -16
  1273. package/src/tabs/tablist.tsx +4 -100
  1274. package/src/tabs/types.ts +0 -1
  1275. package/src/textarea-control/README.md +8 -0
  1276. package/src/textarea-control/index.tsx +1 -0
  1277. package/src/theme/stories/index.story.tsx +2 -0
  1278. package/src/toggle-control/index.tsx +12 -3
  1279. package/src/toggle-control/style.scss +11 -0
  1280. package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +36 -6
  1281. package/src/toggle-group-control/test/index.tsx +114 -0
  1282. package/src/toggle-group-control/toggle-group-control/as-radio-group.tsx +0 -1
  1283. package/src/toggle-group-control/toggle-group-control/component.tsx +0 -2
  1284. package/src/toggle-group-control/toggle-group-control-option-base/component.tsx +6 -3
  1285. package/src/toggle-group-control/toggle-group-control-option-base/styles.ts +5 -0
  1286. package/src/toolbar/toolbar/README.md +9 -0
  1287. package/src/toolbar/toolbar/style.scss +7 -0
  1288. package/src/toolbar/toolbar/toolbar-container.tsx +0 -1
  1289. package/src/toolbar/toolbar/types.ts +6 -0
  1290. package/src/toolbar/toolbar-button/index.tsx +30 -17
  1291. package/src/toolbar/toolbar-button/types.ts +19 -0
  1292. package/src/toolbar/toolbar-context/index.ts +0 -1
  1293. package/src/toolbar/toolbar-item/index.tsx +1 -1
  1294. package/src/tools-panel/tools-panel-header/component.tsx +1 -1
  1295. package/src/tooltip/index.tsx +3 -2
  1296. package/src/tooltip/test/index.tsx +18 -0
  1297. package/src/tooltip/types.ts +4 -0
  1298. package/src/tree-select/README.md +9 -0
  1299. package/src/tree-select/index.tsx +1 -0
  1300. package/src/unit-control/index.tsx +3 -2
  1301. package/src/unit-control/styles/unit-control-styles.ts +10 -4
  1302. package/src/utils/element-rect.ts +197 -0
  1303. package/src/utils/hooks/use-event.ts +38 -0
  1304. package/src/utils/hooks/use-on-value-update.ts +42 -0
  1305. package/src/utils/hooks/use-update-effect.js +8 -1
  1306. package/tsconfig.tsbuildinfo +1 -1
  1307. package/build/custom-select-control-v2/default-component/index.js +0 -43
  1308. package/build/custom-select-control-v2/default-component/index.js.map +0 -1
  1309. package/build/custom-select-control-v2/legacy-component/index.js +0 -119
  1310. package/build/custom-select-control-v2/legacy-component/index.js.map +0 -1
  1311. package/build-module/custom-select-control-v2/default-component/index.js +0 -32
  1312. package/build-module/custom-select-control-v2/default-component/index.js.map +0 -1
  1313. package/build-module/custom-select-control-v2/legacy-component/index.js +0 -110
  1314. package/build-module/custom-select-control-v2/legacy-component/index.js.map +0 -1
  1315. package/build-types/custom-select-control-v2/default-component/index.d.ts +0 -9
  1316. package/build-types/custom-select-control-v2/default-component/index.d.ts.map +0 -1
  1317. package/build-types/custom-select-control-v2/legacy-component/index.d.ts +0 -5
  1318. package/build-types/custom-select-control-v2/legacy-component/index.d.ts.map +0 -1
  1319. package/build-types/custom-select-control-v2/legacy-component/test/index.d.ts.map +0 -1
  1320. package/build-types/custom-select-control-v2/stories/default.story.d.ts.map +0 -1
  1321. package/build-types/custom-select-control-v2/stories/legacy.story.d.ts +0 -14
  1322. package/build-types/custom-select-control-v2/stories/legacy.story.d.ts.map +0 -1
  1323. package/src/custom-select-control/index.js +0 -240
  1324. package/src/custom-select-control/style.scss +0 -75
  1325. package/src/custom-select-control/test/index.js +0 -629
  1326. package/src/custom-select-control-v2/default-component/index.tsx +0 -30
  1327. package/src/custom-select-control-v2/legacy-component/index.tsx +0 -132
  1328. package/src/custom-select-control-v2/stories/legacy.story.tsx +0 -72
  1329. /package/build-types/{custom-select-control-v2/legacy-component → custom-select-control}/test/index.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["_clsx","_interopRequireDefault","require","_reactDom","_framerMotion","_element","_compose","_icons","_deprecated","_primitives","_button","_scrollLock","_slotFill","_utils","_context","_overlayMiddlewares","_styleProvider","_jsxRuntime","SLOT_NAME","exports","ArrowTriangle","jsxs","SVG","xmlns","viewBox","className","role","children","jsx","Path","d","vectorEffect","slotNameContext","createContext","undefined","fallbackContainerClassname","getPopoverFallbackContainer","container","document","body","querySelector","createElement","append","UnforwardedPopover","props","forwardedRef","animate","headerTitle","constrainTabbing","onClose","noArrow","position","placement","placementProp","offset","offsetProp","focusOnMount","anchor","expandOnMobile","onFocusOutside","__unstableSlotName","flip","resize","shift","inline","variant","__unstableForcePosition","anchorRef","anchorRect","getAnchorRect","isAlternate","contentProps","useContextSystem","computedFlipProp","computedResizeProp","deprecated","since","version","alternative","computedVariant","arrowRef","useRef","fallbackReferenceElement","setFallbackReferenceElement","useState","anchorRefFallback","useCallback","node","isMobileViewport","useViewportMatch","isExpanded","hasArrow","normalizedPlacementFromProps","positionToPlacement","middleware","overlayMiddlewares","offsetMiddleware","flipMiddleware","size","apply","sizeProps","_refs$floating$curren","firstElementChild","refs","floating","current","HTMLElement","Object","assign","style","maxHeight","availableHeight","overflow","shiftMiddleware","crossAxis","limiter","limitShift","padding","arrow","element","slotName","useContext","slot","useSlot","onDialogClose","type","event","dialogRef","dialogProps","useDialog","__unstableOnClose","x","y","strategy","update","computedPlacement","middlewareData","arrowData","useFloating","whileElementsMounted","referenceParam","floatingParam","updateParam","autoUpdate","layoutShift","animationFrame","arrowCallbackRef","anchorRefTop","top","anchorRefBottom","bottom","anchorRefStartContainer","startContainer","anchorRefCurrent","useLayoutEffect","resultingReferenceElement","getReferenceElement","setReference","mergedFloatingRef","useMergeRefs","setFloating","left","computePopoverPosition","shouldReduceMotion","useReducedMotion","shouldAnimate","animationFinished","setAnimationFinished","motionInlineStyles","otherMotionProps","useMemo","placementToMotionAnimationProps","animationProps","onAnimationComplete","isPositioned","content","motion","div","clsx","ref","tabIndex","default","icon","close","onClick","split","join","Number","isFinite","shouldRenderWithinSlot","hasAnchor","Fill","name","createPortal","StyleProvider","Fragment","Popover","contextConnect","PopoverSlot","Slot","bubblesVirtually","forwardRef","__unstableSlotNameProvider","Provider","_default"],"sources":["@wordpress/components/src/popover/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef, SyntheticEvent, RefCallback } from 'react';\nimport clsx from 'clsx';\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\t\t\t\t\t}\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={ clsx( 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":";;;;;;;AAIA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAaA,IAAAE,aAAA,GAAAF,OAAA;AAKA,IAAAG,QAAA,GAAAH,OAAA;AAWA,IAAAI,QAAA,GAAAJ,OAAA;AAMA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AAK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C,IAAA9J,WAAA,CAAAI,IAAA,EAAAJ,WAAA,CAAAkL,QAAA;IAAAxK,QAAA,gBACC,IAAAV,WAAA,CAAAW,GAAA;MAAMuJ,GAAG,EAAG9F;IAAmB,CAAE,CAAC,EAChC0F,OAAO;EAAA,CACR,CAAC;AAEL,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMqB,OAAO,GAAAjL,OAAA,CAAAiL,OAAA,GAAG,IAAAC,uBAAc,EAAE1J,kBAAkB,EAAE,SAAU,CAAC;AAEtE,SAAS2J,WAAWA,CACnB;EAAEN,IAAI,GAAG9K;AAA6B,CAAC,EACvCiK,GAAwB,EACvB;EACD,oBACC,IAAAlK,WAAA,CAAAW,GAAA,EAAChB,SAAA,CAAA2L,IAAI;IACJC,gBAAgB;IAChBR,IAAI,EAAGA,IAAM;IACbvK,SAAS,EAAC,cAAc;IACxB0J,GAAG,EAAGA;EAAK,CACX,CAAC;AAEJ;;AAEA;AACAiB,OAAO,CAACG,IAAI,GAAG,IAAAE,mBAAU,EAAEH,WAAY,CAAC;AACxC;AACAF,OAAO,CAACM,0BAA0B,GAAG1K,eAAe,CAAC2K,QAAQ;AAAC,IAAAC,QAAA,GAAAzL,OAAA,CAAAkK,OAAA,GAE/Ce,OAAO","ignoreList":[]}
1
+ {"version":3,"names":["_clsx","_interopRequireDefault","require","_reactDom","_framerMotion","_element","_compose","_icons","_deprecated","_primitives","_button","_scrollLock","_slotFill","_utils","_context","_overlayMiddlewares","_styleProvider","_jsxRuntime","SLOT_NAME","exports","ArrowTriangle","jsxs","SVG","xmlns","viewBox","className","role","children","jsx","Path","d","vectorEffect","slotNameContext","createContext","undefined","fallbackContainerClassname","getPopoverFallbackContainer","container","document","body","querySelector","createElement","append","UnforwardedPopover","props","forwardedRef","animate","headerTitle","constrainTabbing","onClose","noArrow","position","placement","placementProp","offset","offsetProp","focusOnMount","anchor","expandOnMobile","onFocusOutside","__unstableSlotName","flip","resize","shift","inline","variant","__unstableForcePosition","anchorRef","anchorRect","getAnchorRect","isAlternate","contentProps","useContextSystem","computedFlipProp","computedResizeProp","deprecated","since","version","alternative","computedVariant","arrowRef","useRef","fallbackReferenceElement","setFallbackReferenceElement","useState","anchorRefFallback","useCallback","node","isMobileViewport","useViewportMatch","isExpanded","hasArrow","normalizedPlacementFromProps","positionToPlacement","middleware","overlayMiddlewares","offsetMiddleware","flipMiddleware","size","apply","sizeProps","_refs$floating$curren","firstElementChild","refs","floating","current","HTMLElement","Object","assign","style","maxHeight","availableHeight","overflow","shiftMiddleware","crossAxis","limiter","limitShift","padding","arrow","element","slotName","useContext","slot","useSlot","onDialogClose","type","event","dialogRef","dialogProps","useDialog","__unstableOnClose","x","y","strategy","update","computedPlacement","middlewareData","arrowData","useFloating","whileElementsMounted","referenceParam","floatingParam","updateParam","autoUpdate","layoutShift","animationFrame","arrowCallbackRef","anchorRefTop","top","anchorRefBottom","bottom","anchorRefStartContainer","startContainer","anchorRefCurrent","useLayoutEffect","resultingReferenceElement","getReferenceElement","setReference","mergedFloatingRef","useMergeRefs","setFloating","left","computePopoverPosition","shouldReduceMotion","useReducedMotion","shouldAnimate","animationFinished","setAnimationFinished","motionInlineStyles","otherMotionProps","useMemo","placementToMotionAnimationProps","animationProps","onAnimationComplete","isPositioned","content","motion","div","clsx","ref","tabIndex","default","icon","close","onClick","split","join","Number","isFinite","shouldRenderWithinSlot","hasAnchor","Fill","name","createPortal","StyleProvider","Fragment","Popover","contextConnect","PopoverSlot","Slot","bubblesVirtually","forwardRef","__unstableSlotNameProvider","Provider","_default"],"sources":["@wordpress/components/src/popover/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef, SyntheticEvent, RefCallback } from 'react';\nimport clsx from 'clsx';\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';\nimport type { HTMLMotionProps, MotionProps } from 'framer-motion';\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\t\t\t\t\t}\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={ clsx( 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":";;;;;;;AAIA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAWA,IAAAE,aAAA,GAAAF,OAAA;AAKA,IAAAG,QAAA,GAAAH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AAAX,QAAA,EAAGoJ;IAAO,CAAiB,CAAC,EAChE3I,2BAA2B,CAAC,CAC7B,CAAC;EACF;EAEA,IAAK0J,SAAS,EAAG;IAChB,OAAOf,OAAO;EACf;EAEA,oBACC,IAAA9J,WAAA,CAAAI,IAAA,EAAAJ,WAAA,CAAAkL,QAAA;IAAAxK,QAAA,gBACC,IAAAV,WAAA,CAAAW,GAAA;MAAMuJ,GAAG,EAAG9F;IAAmB,CAAE,CAAC,EAChC0F,OAAO;EAAA,CACR,CAAC;AAEL,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMqB,OAAO,GAAAjL,OAAA,CAAAiL,OAAA,GAAG,IAAAC,uBAAc,EAAE1J,kBAAkB,EAAE,SAAU,CAAC;AAEtE,SAAS2J,WAAWA,CACnB;EAAEN,IAAI,GAAG9K;AAA6B,CAAC,EACvCiK,GAAwB,EACvB;EACD,oBACC,IAAAlK,WAAA,CAAAW,GAAA,EAAChB,SAAA,CAAA2L,IAAI;IACJC,gBAAgB;IAChBR,IAAI,EAAGA,IAAM;IACbvK,SAAS,EAAC,cAAc;IACxB0J,GAAG,EAAGA;EAAK,CACX,CAAC;AAEJ;;AAEA;AACAiB,OAAO,CAACG,IAAI,GAAG,IAAAE,mBAAU,EAAEH,WAAY,CAAC;AACxC;AACAF,OAAO,CAACM,0BAA0B,GAAG1K,eAAe,CAAC2K,QAAQ;AAAC,IAAAC,QAAA,GAAAzL,OAAA,CAAAkK,OAAA,GAE/Ce,OAAO","ignoreList":[]}
@@ -7,7 +7,6 @@ exports.positionToPlacement = exports.placementToMotionAnimationProps = exports.
7
7
  /**
8
8
  * External dependencies
9
9
  */
10
- // eslint-disable-next-line no-restricted-imports
11
10
 
12
11
  /**
13
12
  * Internal dependencies
@@ -1 +1 @@
1
- {"version":3,"names":["POSITION_TO_PLACEMENT","bottom","top","middle","positionToPlacement","position","_POSITION_TO_PLACEMEN","exports","PLACEMENT_TO_ANIMATION_ORIGIN","originX","originY","right","left","overlay","placementToMotionAnimationProps","placement","translateProp","startsWith","translateDirection","style","initial","opacity","scale","animate","transition","duration","ease","isTopBottom","anchorRef","isRef","current","getReferenceElement","anchor","anchorRect","getAnchorRect","fallbackReferenceElement","_referenceElement","referenceElement","getBoundingClientRect","topRect","bottomRect","window","DOMRect","x","y","width","_rect$x","_rect$y","_rect$width","_rect$height","rect","height","parentElement","computePopoverPosition","c","Number","isNaN","undefined","Math","round"],"sources":["@wordpress/components/src/popover/utils.ts"],"sourcesContent":["/**\n * External dependencies\n */\n// eslint-disable-next-line no-restricted-imports\nimport type { MotionProps } from 'framer-motion';\nimport type { Placement, ReferenceType } from '@floating-ui/react-dom';\n\n/**\n * Internal dependencies\n */\nimport type {\n\tPopoverProps,\n\tPopoverAnchorRefReference,\n\tPopoverAnchorRefTopBottom,\n} from './types';\n\nconst POSITION_TO_PLACEMENT: Record<\n\tNonNullable< PopoverProps[ 'position' ] >,\n\tPlacement\n> = {\n\tbottom: 'bottom',\n\ttop: 'top',\n\t'middle left': 'left',\n\t'middle right': 'right',\n\t'bottom left': 'bottom-end',\n\t'bottom center': 'bottom',\n\t'bottom right': 'bottom-start',\n\t'top left': 'top-end',\n\t'top center': 'top',\n\t'top right': 'top-start',\n\t'middle left left': 'left',\n\t'middle left right': 'left',\n\t'middle left bottom': 'left-end',\n\t'middle left top': 'left-start',\n\t'middle right left': 'right',\n\t'middle right right': 'right',\n\t'middle right bottom': 'right-end',\n\t'middle right top': 'right-start',\n\t'bottom left left': 'bottom-end',\n\t'bottom left right': 'bottom-end',\n\t'bottom left bottom': 'bottom-end',\n\t'bottom left top': 'bottom-end',\n\t'bottom center left': 'bottom',\n\t'bottom center right': 'bottom',\n\t'bottom center bottom': 'bottom',\n\t'bottom center top': 'bottom',\n\t'bottom right left': 'bottom-start',\n\t'bottom right right': 'bottom-start',\n\t'bottom right bottom': 'bottom-start',\n\t'bottom right top': 'bottom-start',\n\t'top left left': 'top-end',\n\t'top left right': 'top-end',\n\t'top left bottom': 'top-end',\n\t'top left top': 'top-end',\n\t'top center left': 'top',\n\t'top center right': 'top',\n\t'top center bottom': 'top',\n\t'top center top': 'top',\n\t'top right left': 'top-start',\n\t'top right right': 'top-start',\n\t'top right bottom': 'top-start',\n\t'top right top': 'top-start',\n\t// `middle`/`middle center [corner?]` positions are associated to a fallback\n\t// `bottom` placement because there aren't any corresponding placement values.\n\tmiddle: 'bottom',\n\t'middle center': 'bottom',\n\t'middle center bottom': 'bottom',\n\t'middle center left': 'bottom',\n\t'middle center right': 'bottom',\n\t'middle center top': 'bottom',\n};\n\n/**\n * Converts the `Popover`'s legacy \"position\" prop to the new \"placement\" prop\n * (used by `floating-ui`).\n *\n * @param position The legacy position\n * @return The corresponding placement\n */\nexport const positionToPlacement = (\n\tposition: NonNullable< PopoverProps[ 'position' ] >\n) => POSITION_TO_PLACEMENT[ position ] ?? 'bottom';\n\n/**\n * @typedef AnimationOrigin\n * @type {Object}\n * @property {number} originX A number between 0 and 1 (in CSS logical properties jargon, 0 is \"start\", 0.5 is \"center\", and 1 is \"end\")\n * @property {number} originY A number between 0 and 1 (0 is top, 0.5 is center, and 1 is bottom)\n */\n\nconst PLACEMENT_TO_ANIMATION_ORIGIN: Record<\n\tNonNullable< PopoverProps[ 'placement' ] >,\n\t{ originX: number; originY: number }\n> = {\n\ttop: { originX: 0.5, originY: 1 }, // open from bottom, center\n\t'top-start': { originX: 0, originY: 1 }, // open from bottom, left\n\t'top-end': { originX: 1, originY: 1 }, // open from bottom, right\n\tright: { originX: 0, originY: 0.5 }, // open from middle, left\n\t'right-start': { originX: 0, originY: 0 }, // open from top, left\n\t'right-end': { originX: 0, originY: 1 }, // open from bottom, left\n\tbottom: { originX: 0.5, originY: 0 }, // open from top, center\n\t'bottom-start': { originX: 0, originY: 0 }, // open from top, left\n\t'bottom-end': { originX: 1, originY: 0 }, // open from top, right\n\tleft: { originX: 1, originY: 0.5 }, // open from middle, right\n\t'left-start': { originX: 1, originY: 0 }, // open from top, right\n\t'left-end': { originX: 1, originY: 1 }, // open from bottom, right\n\toverlay: { originX: 0.5, originY: 0.5 }, // open from center, center\n};\n\n/**\n * Given the floating-ui `placement`, compute the framer-motion props for the\n * popover's entry animation.\n *\n * @param placement A placement string from floating ui\n * @return The object containing the motion props\n */\nexport const placementToMotionAnimationProps = (\n\tplacement: NonNullable< PopoverProps[ 'placement' ] >\n): MotionProps => {\n\tconst translateProp =\n\t\tplacement.startsWith( 'top' ) || placement.startsWith( 'bottom' )\n\t\t\t? 'translateY'\n\t\t\t: 'translateX';\n\tconst translateDirection =\n\t\tplacement.startsWith( 'top' ) || placement.startsWith( 'left' )\n\t\t\t? 1\n\t\t\t: -1;\n\n\treturn {\n\t\tstyle: PLACEMENT_TO_ANIMATION_ORIGIN[ placement ],\n\t\tinitial: {\n\t\t\topacity: 0,\n\t\t\tscale: 0,\n\t\t\t[ translateProp ]: `${ 2 * translateDirection }em`,\n\t\t},\n\t\tanimate: { opacity: 1, scale: 1, [ translateProp ]: 0 },\n\t\ttransition: { duration: 0.1, ease: [ 0, 0, 0.2, 1 ] },\n\t};\n};\n\nfunction isTopBottom(\n\tanchorRef: PopoverProps[ 'anchorRef' ]\n): anchorRef is PopoverAnchorRefTopBottom {\n\treturn !! ( anchorRef as PopoverAnchorRefTopBottom )?.top;\n}\n\nfunction isRef(\n\tanchorRef: PopoverProps[ 'anchorRef' ]\n): anchorRef is PopoverAnchorRefReference {\n\treturn !! ( anchorRef as PopoverAnchorRefReference )?.current;\n}\n\nexport const getReferenceElement = ( {\n\tanchor,\n\tanchorRef,\n\tanchorRect,\n\tgetAnchorRect,\n\tfallbackReferenceElement,\n}: Pick<\n\tPopoverProps,\n\t'anchorRef' | 'anchorRect' | 'getAnchorRect' | 'anchor'\n> & {\n\tfallbackReferenceElement: Element | null;\n} ): ReferenceType | null => {\n\tlet referenceElement = null;\n\n\tif ( anchor ) {\n\t\treferenceElement = anchor;\n\t} else if ( isTopBottom( anchorRef ) ) {\n\t\t// Create a virtual element for the ref. The expectation is that\n\t\t// if anchorRef.top is defined, then anchorRef.bottom is defined too.\n\t\t// Seems to be used by the block toolbar, when multiple blocks are selected\n\t\t// (top and bottom blocks are used to calculate the resulting rect).\n\t\treferenceElement = {\n\t\t\tgetBoundingClientRect() {\n\t\t\t\tconst topRect = anchorRef.top.getBoundingClientRect();\n\t\t\t\tconst bottomRect = anchorRef.bottom.getBoundingClientRect();\n\t\t\t\treturn new window.DOMRect(\n\t\t\t\t\ttopRect.x,\n\t\t\t\t\ttopRect.y,\n\t\t\t\t\ttopRect.width,\n\t\t\t\t\tbottomRect.bottom - topRect.top\n\t\t\t\t);\n\t\t\t},\n\t\t};\n\t} else if ( isRef( anchorRef ) ) {\n\t\t// Standard React ref.\n\t\treferenceElement = anchorRef.current;\n\t} else if ( anchorRef ) {\n\t\t// If `anchorRef` holds directly the element's value (no `current` key)\n\t\t// This is a weird scenario and should be deprecated.\n\t\treferenceElement = anchorRef as Element;\n\t} else if ( anchorRect ) {\n\t\t// Create a virtual element for the ref.\n\t\treferenceElement = {\n\t\t\tgetBoundingClientRect() {\n\t\t\t\treturn anchorRect;\n\t\t\t},\n\t\t};\n\t} else if ( getAnchorRect ) {\n\t\t// Create a virtual element for the ref.\n\t\treferenceElement = {\n\t\t\tgetBoundingClientRect() {\n\t\t\t\tconst rect = getAnchorRect( fallbackReferenceElement );\n\t\t\t\treturn new window.DOMRect(\n\t\t\t\t\trect.x ?? rect.left,\n\t\t\t\t\trect.y ?? rect.top,\n\t\t\t\t\trect.width ?? rect.right - rect.left,\n\t\t\t\t\trect.height ?? rect.bottom - rect.top\n\t\t\t\t);\n\t\t\t},\n\t\t};\n\t} else if ( fallbackReferenceElement ) {\n\t\t// If no explicit ref is passed via props, fall back to\n\t\t// anchoring to the popover's parent node.\n\t\treferenceElement = fallbackReferenceElement.parentElement;\n\t}\n\n\t// Convert any `undefined` value to `null`.\n\treturn referenceElement ?? null;\n};\n\n/**\n * Computes the final coordinate that needs to be applied to the floating\n * element when applying transform inline styles, defaulting to `undefined`\n * if the provided value is `null` or `NaN`.\n *\n * @param c input coordinate (usually as returned from floating-ui)\n * @return The coordinate's value to be used for inline styles. An `undefined`\n * return value means \"no style set\" for this coordinate.\n */\nexport const computePopoverPosition = ( c: number | null ) =>\n\tc === null || Number.isNaN( c ) ? undefined : Math.round( c );\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;;AAIA;AACA;AACA;;AAOA,MAAMA,qBAGL,GAAG;EACHC,MAAM,EAAE,QAAQ;EAChBC,GAAG,EAAE,KAAK;EACV,aAAa,EAAE,MAAM;EACrB,cAAc,EAAE,OAAO;EACvB,aAAa,EAAE,YAAY;EAC3B,eAAe,EAAE,QAAQ;EACzB,cAAc,EAAE,cAAc;EAC9B,UAAU,EAAE,SAAS;EACrB,YAAY,EAAE,KAAK;EACnB,WAAW,EAAE,WAAW;EACxB,kBAAkB,EAAE,MAAM;EAC1B,mBAAmB,EAAE,MAAM;EAC3B,oBAAoB,EAAE,UAAU;EAChC,iBAAiB,EAAE,YAAY;EAC/B,mBAAmB,EAAE,OAAO;EAC5B,oBAAoB,EAAE,OAAO;EAC7B,qBAAqB,EAAE,WAAW;EAClC,kBAAkB,EAAE,aAAa;EACjC,kBAAkB,EAAE,YAAY;EAChC,mBAAmB,EAAE,YAAY;EACjC,oBAAoB,EAAE,YAAY;EAClC,iBAAiB,EAAE,YAAY;EAC/B,oBAAoB,EAAE,QAAQ;EAC9B,qBAAqB,EAAE,QAAQ;EAC/B,sBAAsB,EAAE,QAAQ;EAChC,mBAAmB,EAAE,QAAQ;EAC7B,mBAAmB,EAAE,cAAc;EACnC,oBAAoB,EAAE,cAAc;EACpC,qBAAqB,EAAE,cAAc;EACrC,kBAAkB,EAAE,cAAc;EAClC,eAAe,EAAE,SAAS;EAC1B,gBAAgB,EAAE,SAAS;EAC3B,iBAAiB,EAAE,SAAS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AC/C,OAAA,CAAA8C,sBAAA,GAAAA,sBAAA","ignoreList":[]}
1
+ {"version":3,"names":["POSITION_TO_PLACEMENT","bottom","top","middle","positionToPlacement","position","_POSITION_TO_PLACEMEN","exports","PLACEMENT_TO_ANIMATION_ORIGIN","originX","originY","right","left","overlay","placementToMotionAnimationProps","placement","translateProp","startsWith","translateDirection","style","initial","opacity","scale","animate","transition","duration","ease","isTopBottom","anchorRef","isRef","current","getReferenceElement","anchor","anchorRect","getAnchorRect","fallbackReferenceElement","_referenceElement","referenceElement","getBoundingClientRect","topRect","bottomRect","window","DOMRect","x","y","width","_rect$x","_rect$y","_rect$width","_rect$height","rect","height","parentElement","computePopoverPosition","c","Number","isNaN","undefined","Math","round"],"sources":["@wordpress/components/src/popover/utils.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { MotionProps } from 'framer-motion';\nimport type { Placement, ReferenceType } from '@floating-ui/react-dom';\n\n/**\n * Internal dependencies\n */\nimport type {\n\tPopoverProps,\n\tPopoverAnchorRefReference,\n\tPopoverAnchorRefTopBottom,\n} from './types';\n\nconst POSITION_TO_PLACEMENT: Record<\n\tNonNullable< PopoverProps[ 'position' ] >,\n\tPlacement\n> = {\n\tbottom: 'bottom',\n\ttop: 'top',\n\t'middle left': 'left',\n\t'middle right': 'right',\n\t'bottom left': 'bottom-end',\n\t'bottom center': 'bottom',\n\t'bottom right': 'bottom-start',\n\t'top left': 'top-end',\n\t'top center': 'top',\n\t'top right': 'top-start',\n\t'middle left left': 'left',\n\t'middle left right': 'left',\n\t'middle left bottom': 'left-end',\n\t'middle left top': 'left-start',\n\t'middle right left': 'right',\n\t'middle right right': 'right',\n\t'middle right bottom': 'right-end',\n\t'middle right top': 'right-start',\n\t'bottom left left': 'bottom-end',\n\t'bottom left right': 'bottom-end',\n\t'bottom left bottom': 'bottom-end',\n\t'bottom left top': 'bottom-end',\n\t'bottom center left': 'bottom',\n\t'bottom center right': 'bottom',\n\t'bottom center bottom': 'bottom',\n\t'bottom center top': 'bottom',\n\t'bottom right left': 'bottom-start',\n\t'bottom right right': 'bottom-start',\n\t'bottom right bottom': 'bottom-start',\n\t'bottom right top': 'bottom-start',\n\t'top left left': 'top-end',\n\t'top left right': 'top-end',\n\t'top left bottom': 'top-end',\n\t'top left top': 'top-end',\n\t'top center left': 'top',\n\t'top center right': 'top',\n\t'top center bottom': 'top',\n\t'top center top': 'top',\n\t'top right left': 'top-start',\n\t'top right right': 'top-start',\n\t'top right bottom': 'top-start',\n\t'top right top': 'top-start',\n\t// `middle`/`middle center [corner?]` positions are associated to a fallback\n\t// `bottom` placement because there aren't any corresponding placement values.\n\tmiddle: 'bottom',\n\t'middle center': 'bottom',\n\t'middle center bottom': 'bottom',\n\t'middle center left': 'bottom',\n\t'middle center right': 'bottom',\n\t'middle center top': 'bottom',\n};\n\n/**\n * Converts the `Popover`'s legacy \"position\" prop to the new \"placement\" prop\n * (used by `floating-ui`).\n *\n * @param position The legacy position\n * @return The corresponding placement\n */\nexport const positionToPlacement = (\n\tposition: NonNullable< PopoverProps[ 'position' ] >\n) => POSITION_TO_PLACEMENT[ position ] ?? 'bottom';\n\n/**\n * @typedef AnimationOrigin\n * @type {Object}\n * @property {number} originX A number between 0 and 1 (in CSS logical properties jargon, 0 is \"start\", 0.5 is \"center\", and 1 is \"end\")\n * @property {number} originY A number between 0 and 1 (0 is top, 0.5 is center, and 1 is bottom)\n */\n\nconst PLACEMENT_TO_ANIMATION_ORIGIN: Record<\n\tNonNullable< PopoverProps[ 'placement' ] >,\n\t{ originX: number; originY: number }\n> = {\n\ttop: { originX: 0.5, originY: 1 }, // open from bottom, center\n\t'top-start': { originX: 0, originY: 1 }, // open from bottom, left\n\t'top-end': { originX: 1, originY: 1 }, // open from bottom, right\n\tright: { originX: 0, originY: 0.5 }, // open from middle, left\n\t'right-start': { originX: 0, originY: 0 }, // open from top, left\n\t'right-end': { originX: 0, originY: 1 }, // open from bottom, left\n\tbottom: { originX: 0.5, originY: 0 }, // open from top, center\n\t'bottom-start': { originX: 0, originY: 0 }, // open from top, left\n\t'bottom-end': { originX: 1, originY: 0 }, // open from top, right\n\tleft: { originX: 1, originY: 0.5 }, // open from middle, right\n\t'left-start': { originX: 1, originY: 0 }, // open from top, right\n\t'left-end': { originX: 1, originY: 1 }, // open from bottom, right\n\toverlay: { originX: 0.5, originY: 0.5 }, // open from center, center\n};\n\n/**\n * Given the floating-ui `placement`, compute the framer-motion props for the\n * popover's entry animation.\n *\n * @param placement A placement string from floating ui\n * @return The object containing the motion props\n */\nexport const placementToMotionAnimationProps = (\n\tplacement: NonNullable< PopoverProps[ 'placement' ] >\n): MotionProps => {\n\tconst translateProp =\n\t\tplacement.startsWith( 'top' ) || placement.startsWith( 'bottom' )\n\t\t\t? 'translateY'\n\t\t\t: 'translateX';\n\tconst translateDirection =\n\t\tplacement.startsWith( 'top' ) || placement.startsWith( 'left' )\n\t\t\t? 1\n\t\t\t: -1;\n\n\treturn {\n\t\tstyle: PLACEMENT_TO_ANIMATION_ORIGIN[ placement ],\n\t\tinitial: {\n\t\t\topacity: 0,\n\t\t\tscale: 0,\n\t\t\t[ translateProp ]: `${ 2 * translateDirection }em`,\n\t\t},\n\t\tanimate: { opacity: 1, scale: 1, [ translateProp ]: 0 },\n\t\ttransition: { duration: 0.1, ease: [ 0, 0, 0.2, 1 ] },\n\t};\n};\n\nfunction isTopBottom(\n\tanchorRef: PopoverProps[ 'anchorRef' ]\n): anchorRef is PopoverAnchorRefTopBottom {\n\treturn !! ( anchorRef as PopoverAnchorRefTopBottom )?.top;\n}\n\nfunction isRef(\n\tanchorRef: PopoverProps[ 'anchorRef' ]\n): anchorRef is PopoverAnchorRefReference {\n\treturn !! ( anchorRef as PopoverAnchorRefReference )?.current;\n}\n\nexport const getReferenceElement = ( {\n\tanchor,\n\tanchorRef,\n\tanchorRect,\n\tgetAnchorRect,\n\tfallbackReferenceElement,\n}: Pick<\n\tPopoverProps,\n\t'anchorRef' | 'anchorRect' | 'getAnchorRect' | 'anchor'\n> & {\n\tfallbackReferenceElement: Element | null;\n} ): ReferenceType | null => {\n\tlet referenceElement = null;\n\n\tif ( anchor ) {\n\t\treferenceElement = anchor;\n\t} else if ( isTopBottom( anchorRef ) ) {\n\t\t// Create a virtual element for the ref. The expectation is that\n\t\t// if anchorRef.top is defined, then anchorRef.bottom is defined too.\n\t\t// Seems to be used by the block toolbar, when multiple blocks are selected\n\t\t// (top and bottom blocks are used to calculate the resulting rect).\n\t\treferenceElement = {\n\t\t\tgetBoundingClientRect() {\n\t\t\t\tconst topRect = anchorRef.top.getBoundingClientRect();\n\t\t\t\tconst bottomRect = anchorRef.bottom.getBoundingClientRect();\n\t\t\t\treturn new window.DOMRect(\n\t\t\t\t\ttopRect.x,\n\t\t\t\t\ttopRect.y,\n\t\t\t\t\ttopRect.width,\n\t\t\t\t\tbottomRect.bottom - topRect.top\n\t\t\t\t);\n\t\t\t},\n\t\t};\n\t} else if ( isRef( anchorRef ) ) {\n\t\t// Standard React ref.\n\t\treferenceElement = anchorRef.current;\n\t} else if ( anchorRef ) {\n\t\t// If `anchorRef` holds directly the element's value (no `current` key)\n\t\t// This is a weird scenario and should be deprecated.\n\t\treferenceElement = anchorRef as Element;\n\t} else if ( anchorRect ) {\n\t\t// Create a virtual element for the ref.\n\t\treferenceElement = {\n\t\t\tgetBoundingClientRect() {\n\t\t\t\treturn anchorRect;\n\t\t\t},\n\t\t};\n\t} else if ( getAnchorRect ) {\n\t\t// Create a virtual element for the ref.\n\t\treferenceElement = {\n\t\t\tgetBoundingClientRect() {\n\t\t\t\tconst rect = getAnchorRect( fallbackReferenceElement );\n\t\t\t\treturn new window.DOMRect(\n\t\t\t\t\trect.x ?? rect.left,\n\t\t\t\t\trect.y ?? rect.top,\n\t\t\t\t\trect.width ?? rect.right - rect.left,\n\t\t\t\t\trect.height ?? rect.bottom - rect.top\n\t\t\t\t);\n\t\t\t},\n\t\t};\n\t} else if ( fallbackReferenceElement ) {\n\t\t// If no explicit ref is passed via props, fall back to\n\t\t// anchoring to the popover's parent node.\n\t\treferenceElement = fallbackReferenceElement.parentElement;\n\t}\n\n\t// Convert any `undefined` value to `null`.\n\treturn referenceElement ?? null;\n};\n\n/**\n * Computes the final coordinate that needs to be applied to the floating\n * element when applying transform inline styles, defaulting to `undefined`\n * if the provided value is `null` or `NaN`.\n *\n * @param c input coordinate (usually as returned from floating-ui)\n * @return The coordinate's value to be used for inline styles. An `undefined`\n * return value means \"no style set\" for this coordinate.\n */\nexport const computePopoverPosition = ( c: number | null ) =>\n\tc === null || Number.isNaN( c ) ? undefined : Math.round( c );\n"],"mappings":";;;;;;AAAA;AACA;AACA;;AAIA;AACA;AACA;;AAOA,MAAMA,qBAGL,GAAG;EACHC,MAAM,EAAE,QAAQ;EAChBC,GAAG,EAAE,KAAK;EACV,aAAa,EAAE,MAAM;EACrB,cAAc,EAAE,OAAO;EACvB,aAAa,EAAE,YAAY;EAC3B,eAAe,EAAE,QAAQ;EACzB,cAAc,EAAE,cAAc;EAC9B,UAAU,EAAE,SAAS;EACrB,YAAY,EAAE,KAAK;EACnB,WAAW,EAAE,WAAW;EACxB,kBAAkB,EAAE,MAAM;EAC1B,mBAAmB,EAAE,MAAM;EAC3B,oBAAoB,EAAE,UAAU;EAChC,iBAAiB,EAAE,YAAY;EAC/B,mBAAmB,EAAE,OAAO;EAC5B,oBAAoB,EAAE,OAAO;EAC7B,qBAAqB,EAAE,WAAW;EAClC,kBAAkB,EAAE,aAAa;EACjC,kBAAkB,EAAE,YAAY;EAChC,mBAAmB,EAAE,YAAY;EACjC,oBAAoB,EAAE,YAAY;EAClC,iBAAiB,EAAE,YAAY;EAC/B,oBAAoB,EAAE,QAAQ;EAC9B,qBAAqB,EAAE,QAAQ;EAC/B,sBAAsB,EAAE,QAAQ;EAChC,mBAAmB,EAAE,QAAQ;EAC7B,mBAAmB,EAAE,cAAc;EACnC,oBAAoB,EAAE,cAAc;EACpC,qBAAqB,EAAE,cAAc;EACrC,kBAAkB,EAAE,cAAc;EAClC,eAA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E,CAAC,GAAGG,SAAS,GAAGC,IAAI,CAACC,KAAK,CAAEL,CAAE,CAAC;AAAC/C,OAAA,CAAA8C,sBAAA,GAAAA,sBAAA","ignoreList":[]}
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.privateApis = void 0;
8
8
  var _v = require("./composite/v2");
9
- var _customSelectControl = _interopRequireDefault(require("./custom-select-control"));
10
9
  var _utils = require("./popover/utils");
11
10
  var _slotFill = require("./slot-fill");
12
11
  var _dropdownMenuV = require("./dropdown-menu-v2");
@@ -15,10 +14,6 @@ var _theme = _interopRequireDefault(require("./theme"));
15
14
  var _tabs = _interopRequireDefault(require("./tabs"));
16
15
  var _strings = require("./utils/strings");
17
16
  var _lockUnlock = require("./lock-unlock");
18
- /**
19
- * WordPress dependencies
20
- */
21
-
22
17
  /**
23
18
  * Internal dependencies
24
19
  */
@@ -30,7 +25,6 @@ const privateApis = exports.privateApis = {};
30
25
  CompositeItemV2: _v.CompositeItem,
31
26
  CompositeRowV2: _v.CompositeRow,
32
27
  useCompositeStoreV2: _v.useCompositeStore,
33
- CustomSelectControl: _customSelectControl.default,
34
28
  __experimentalPopoverLegacyPositionToPlacement: _utils.positionToPlacement,
35
29
  createPrivateSlotFill: _slotFill.createPrivateSlotFill,
36
30
  ComponentsContext: _contextSystemProvider.ComponentsContext,
@@ -1 +1 @@
1
- {"version":3,"names":["_v","require","_customSelectControl","_interopRequireDefault","_utils","_slotFill","_dropdownMenuV","_contextSystemProvider","_theme","_tabs","_strings","_lockUnlock","privateApis","exports","lock","CompositeV2","CompositeGroupV2","CompositeItemV2","CompositeRowV2","useCompositeStoreV2","CustomSelectControl","__experimentalPopoverLegacyPositionToPlacement","createPrivateSlotFill","ComponentsContext","Tabs","Theme","DropdownMenuV2","DropdownMenuGroupV2","DropdownMenuItemV2","DropdownMenuCheckboxItemV2","DropdownMenuRadioItemV2","DropdownMenuSeparatorV2","DropdownMenuItemLabelV2","DropdownMenuItemHelpTextV2","kebabCase"],"sources":["@wordpress/components/src/private-apis.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';\n\n/**\n * Internal dependencies\n */\nimport {\n\tComposite as CompositeV2,\n\tCompositeGroup as CompositeGroupV2,\n\tCompositeItem as CompositeItemV2,\n\tCompositeRow as CompositeRowV2,\n\tuseCompositeStore as useCompositeStoreV2,\n} from './composite/v2';\nimport { default as CustomSelectControl } from './custom-select-control';\nimport { positionToPlacement as __experimentalPopoverLegacyPositionToPlacement } from './popover/utils';\nimport { createPrivateSlotFill } from './slot-fill';\nimport {\n\tDropdownMenu as DropdownMenuV2,\n\tDropdownMenuGroup as DropdownMenuGroupV2,\n\tDropdownMenuItem as DropdownMenuItemV2,\n\tDropdownMenuCheckboxItem as DropdownMenuCheckboxItemV2,\n\tDropdownMenuRadioItem as DropdownMenuRadioItemV2,\n\tDropdownMenuSeparator as DropdownMenuSeparatorV2,\n\tDropdownMenuItemLabel as DropdownMenuItemLabelV2,\n\tDropdownMenuItemHelpText as DropdownMenuItemHelpTextV2,\n} from './dropdown-menu-v2';\nimport { ComponentsContext } from './context/context-system-provider';\nimport Theme from './theme';\nimport Tabs from './tabs';\nimport { kebabCase } from './utils/strings';\nimport { lock } from './lock-unlock';\n\nexport const privateApis = {};\nlock( privateApis, {\n\tCompositeV2,\n\tCompositeGroupV2,\n\tCompositeItemV2,\n\tCompositeRowV2,\n\tuseCompositeStoreV2,\n\tCustomSelectControl,\n\t__experimentalPopoverLegacyPositionToPlacement,\n\tcreatePrivateSlotFill,\n\tComponentsContext,\n\tTabs,\n\tTheme,\n\tDropdownMenuV2,\n\tDropdownMenuGroupV2,\n\tDropdownMenuItemV2,\n\tDropdownMenuCheckboxItemV2,\n\tDropdownMenuRadioItemV2,\n\tDropdownMenuSeparatorV2,\n\tDropdownMenuItemLabelV2,\n\tDropdownMenuItemHelpTextV2,\n\tkebabCase,\n} );\n"],"mappings":";;;;;;;AAQA,IAAAA,EAAA,GAAAC,OAAA;AAOA,IAAAC,oBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AAUA,IAAAM,sBAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,KAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,WAAA,GAAAV,OAAA;AAhCA;AACA;AACA;;AAGA;AACA;AACA;;AA2BO,MAAMW,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,CAAC,CAAC;AAC7B,IAAAE,gBAAI,EAAEF,WAAW,EAAE;EAClBG,WAAW,EAAXA,YAAW;EACXC,gBAAgB,EAAhBA,iBAAgB;EAChBC,eAAe,EAAfA,gBAAe;EACfC,cAAc,EAAdA,eAAc;EACdC,mBAAmB,EAAnBA,oBAAmB;EACnBC,mBAAmB,EAAnBA,4BAAmB;EACnBC,8CAA8C,EAA9CA,0BAA8C;EAC9CC,qBAAqB,EAArBA,+BAAqB;EACrBC,iBAAiB,EAAjBA,wCAAiB;EACjBC,IAAI,EAAJA,aAAI;EACJC,KAAK,EAALA,cAAK;EACLC,cAAc,EAAdA,2BAAc;EACdC,mBAAmB,EAAnBA,gCAAmB;EACnBC,kBAAkB,EAAlBA,+BAAkB;EAClBC,0BAA0B,EAA1BA,uCAA0B;EAC1BC,uBAAuB,EAAvBA,oCAAuB;EACvBC,uBAAuB,EAAvBA,oCAAuB;EACvBC,uBAAuB,EAAvBA,oCAAuB;EACvBC,0BAA0B,EAA1BA,uCAA0B;EAC1BC,SAAS,EAATA;AACD,CAAE,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_v","require","_utils","_slotFill","_dropdownMenuV","_contextSystemProvider","_theme","_interopRequireDefault","_tabs","_strings","_lockUnlock","privateApis","exports","lock","CompositeV2","CompositeGroupV2","CompositeItemV2","CompositeRowV2","useCompositeStoreV2","__experimentalPopoverLegacyPositionToPlacement","createPrivateSlotFill","ComponentsContext","Tabs","Theme","DropdownMenuV2","DropdownMenuGroupV2","DropdownMenuItemV2","DropdownMenuCheckboxItemV2","DropdownMenuRadioItemV2","DropdownMenuSeparatorV2","DropdownMenuItemLabelV2","DropdownMenuItemHelpTextV2","kebabCase"],"sources":["@wordpress/components/src/private-apis.ts"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport {\n\tComposite as CompositeV2,\n\tCompositeGroup as CompositeGroupV2,\n\tCompositeItem as CompositeItemV2,\n\tCompositeRow as CompositeRowV2,\n\tuseCompositeStore as useCompositeStoreV2,\n} from './composite/v2';\nimport { positionToPlacement as __experimentalPopoverLegacyPositionToPlacement } from './popover/utils';\nimport { createPrivateSlotFill } from './slot-fill';\nimport {\n\tDropdownMenu as DropdownMenuV2,\n\tDropdownMenuGroup as DropdownMenuGroupV2,\n\tDropdownMenuItem as DropdownMenuItemV2,\n\tDropdownMenuCheckboxItem as DropdownMenuCheckboxItemV2,\n\tDropdownMenuRadioItem as DropdownMenuRadioItemV2,\n\tDropdownMenuSeparator as DropdownMenuSeparatorV2,\n\tDropdownMenuItemLabel as DropdownMenuItemLabelV2,\n\tDropdownMenuItemHelpText as DropdownMenuItemHelpTextV2,\n} from './dropdown-menu-v2';\nimport { ComponentsContext } from './context/context-system-provider';\nimport Theme from './theme';\nimport Tabs from './tabs';\nimport { kebabCase } from './utils/strings';\nimport { lock } from './lock-unlock';\n\nexport const privateApis = {};\nlock( privateApis, {\n\tCompositeV2,\n\tCompositeGroupV2,\n\tCompositeItemV2,\n\tCompositeRowV2,\n\tuseCompositeStoreV2,\n\t__experimentalPopoverLegacyPositionToPlacement,\n\tcreatePrivateSlotFill,\n\tComponentsContext,\n\tTabs,\n\tTheme,\n\tDropdownMenuV2,\n\tDropdownMenuGroupV2,\n\tDropdownMenuItemV2,\n\tDropdownMenuCheckboxItemV2,\n\tDropdownMenuRadioItemV2,\n\tDropdownMenuSeparatorV2,\n\tDropdownMenuItemLabelV2,\n\tDropdownMenuItemHelpTextV2,\n\tkebabCase,\n} );\n"],"mappings":";;;;;;;AAGA,IAAAA,EAAA,GAAAC,OAAA;AAOA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAUA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAC,sBAAA,CAAAN,OAAA;AACA,IAAAO,KAAA,GAAAD,sBAAA,CAAAN,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AA1BA;AACA;AACA;;AA0BO,MAAMU,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,CAAC,CAAC;AAC7B,IAAAE,gBAAI,EAAEF,WAAW,EAAE;EAClBG,WAAW,EAAXA,YAAW;EACXC,gBAAgB,EAAhBA,iBAAgB;EAChBC,eAAe,EAAfA,gBAAe;EACfC,cAAc,EAAdA,eAAc;EACdC,mBAAmB,EAAnBA,oBAAmB;EACnBC,8CAA8C,EAA9CA,0BAA8C;EAC9CC,qBAAqB,EAArBA,+BAAqB;EACrBC,iBAAiB,EAAjBA,wCAAiB;EACjBC,IAAI,EAAJA,aAAI;EACJC,KAAK,EAALA,cAAK;EACLC,cAAc,EAAdA,2BAAc;EACdC,mBAAmB,EAAnBA,gCAAmB;EACnBC,kBAAkB,EAAlBA,+BAAkB;EAClBC,0BAA0B,EAA1BA,uCAA0B;EAC1BC,uBAAuB,EAAvBA,oCAAuB;EACvBC,uBAAuB,EAAvBA,oCAAuB;EACvBC,uBAAuB,EAAvBA,oCAAuB;EACvBC,0BAA0B,EAA1BA,uCAA0B;EAC1BC,SAAS,EAATA;AACD,CAAE,CAAC","ignoreList":[]}
@@ -7,20 +7,26 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.Track = exports.ProgressElement = exports.Indicator = exports.INDETERMINATE_TRACK_WIDTH = void 0;
8
8
  var _base = _interopRequireDefault(require("@emotion/styled/base"));
9
9
  var _react = require("@emotion/react");
10
+ var _i18n = require("@wordpress/i18n");
10
11
  var _utils = require("../utils");
11
12
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /**
12
13
  * External dependencies
13
14
  */ /**
15
+ * WordPress dependencies
16
+ */ /**
14
17
  * Internal dependencies
15
18
  */
16
- const animateProgressBar = (0, _react.keyframes)({
17
- '0%': {
18
- left: '-50%'
19
- },
20
- '100%': {
21
- left: '100%'
22
- }
23
- });
19
+ function animateProgressBar(isRtl = false) {
20
+ const animationDirection = isRtl ? 'right' : 'left';
21
+ return (0, _react.keyframes)({
22
+ '0%': {
23
+ [animationDirection]: '-50%'
24
+ },
25
+ '100%': {
26
+ [animationDirection]: '100%'
27
+ }
28
+ });
29
+ }
24
30
 
25
31
  // Width of the indicator for the indeterminate progress bar
26
32
  const INDETERMINATE_TRACK_WIDTH = exports.INDETERMINATE_TRACK_WIDTH = 50;
@@ -29,14 +35,14 @@ const Track = exports.Track = /*#__PURE__*/(0, _base.default)("div", process.env
29
35
  } : {
30
36
  target: "e15u147w2",
31
37
  label: "Track"
32
- })("position:relative;overflow:hidden;height:", _utils.CONFIG.borderWidthFocus, ";background-color:color-mix(\n\t\tin srgb,\n\t\t", _utils.COLORS.theme.foreground, ",\n\t\ttransparent 90%\n\t);border-radius:", _utils.CONFIG.radiusBlockUi, ";outline:2px solid transparent;outline-offset:2px;:where( & ){width:160px;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvcHJvZ3Jlc3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HRcdFx0XHRcdGFuaW1hdGlvbkl0ZXJhdGlvbkNvdW50OiAnaW5maW5pdGUnLFxuXHRcdFx0XHRcdGFuaW1hdGlvbk5hbWU6IGFuaW1hdGVQcm9ncmVzc0Jhcixcblx0XHRcdFx0XHR3aWR0aDogYCR7IElOREVURVJNSU5BVEVfVFJBQ0tfV0lEVEggfSVgLFxuXHRcdFx0ICB9IClcblx0XHRcdDogY3NzKCB7XG5cdFx0XHRcdFx0d2lkdGg6ICd2YXIoLS1pbmRpY2F0b3Itd2lkdGgpJyxcblx0XHRcdFx0XHR0cmFuc2l0aW9uOiAnd2lkdGggMC40cyBlYXNlLWluLW91dCcsXG5cdFx0XHQgIH0gKSB9O1xuYDtcblxuZXhwb3J0IGNvbnN0IFByb2dyZXNzRWxlbWVudCA9IHN0eWxlZC5wcm9ncmVzc2Bcblx0cG9zaXRpb246IGFic29sdXRlO1xuXHR0b3A6IDA7XG5cdGxlZnQ6IDA7XG5cdG9wYWNpdHk6IDA7XG5cdHdpZHRoOiAxMDAlO1xuXHRoZWlnaHQ6IDEwMCU7XG5gO1xuIl19 */"));
38
+ })("position:relative;overflow:hidden;height:", _utils.CONFIG.borderWidthFocus, ";background-color:color-mix(\n\t\tin srgb,\n\t\t", _utils.COLORS.theme.foreground, ",\n\t\ttransparent 90%\n\t);border-radius:", _utils.CONFIG.radiusBlockUi, ";outline:2px solid transparent;outline-offset:2px;:where( & ){width:160px;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvcHJvZ3Jlc3MtYmFyL3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnQytCIiwiZmlsZSI6IkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvcHJvZ3Jlc3MtYmFyL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50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oIHtcblx0XHRcdFx0XHRhbmltYXRpb25EdXJhdGlvbjogJzEuNXMnLFxuXHRcdFx0XHRcdGFuaW1hdGlvblRpbWluZ0Z1bmN0aW9uOiAnZWFzZS1pbi1vdXQnLFxuXHRcdFx0XHRcdGFuaW1hdGlvbkl0ZXJhdGlvbkNvdW50OiAnaW5maW5pdGUnLFxuXHRcdFx0XHRcdGFuaW1hdGlvbk5hbWU6IGFuaW1hdGVQcm9ncmVzc0JhciggaXNSVEwoKSApLFxuXHRcdFx0XHRcdHdpZHRoOiBgJHsgSU5ERVRFUk1JTkFURV9UUkFDS19XSURUSCB9JWAsXG5cdFx0XHQgIH0gKVxuXHRcdFx0OiBjc3MoIHtcblx0XHRcdFx0XHR3aWR0aDogJ3ZhcigtLWluZGljYXRvci13aWR0aCknLFxuXHRcdFx0XHRcdHRyYW5zaXRpb246ICd3aWR0aCAwLjRzIGVhc2UtaW4tb3V0Jyxcblx0XHRcdCAgfSApIH07XG5gO1xuXG5leHBvcnQgY29uc3QgUHJvZ3Jlc3NFbGVtZW50ID0gc3R5bGVkLnByb2dyZXNzYFxuXHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdHRvcDogMDtcblx0bGVmdDogMDtcblx0b3BhY2l0eTogMDtcblx0d2lkdGg6IDEwMCU7XG5cdGhlaWdodDogMTAwJTtcbmA7XG4iXX0= */"));
33
39
  var _ref = process.env.NODE_ENV === "production" ? {
34
40
  name: "152sa26",
35
41
  styles: "width:var(--indicator-width);transition:width 0.4s ease-in-out"
36
42
  } : {
37
43
  name: "1ox6xu8-Indicator",
38
44
  styles: "width:var(--indicator-width);transition:width 0.4s ease-in-out;label:Indicator;",
39
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvcHJvZ3Jlc3MtYmFyL3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQ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bWF0aW9uTmFtZTogYW5pbWF0ZVByb2dyZXNzQmFyKCBpc1JUTCgpICksXG5cdFx0XHRcdFx0d2lkdGg6IGAkeyBJTkRFVEVSTUlOQVRFX1RSQUNLX1dJRFRIIH0lYCxcblx0XHRcdCAgfSApXG5cdFx0XHQ6IGNzcygge1xuXHRcdFx0XHRcdHdpZHRoOiAndmFyKC0taW5kaWNhdG9yLXdpZHRoKScsXG5cdFx0XHRcdFx0dHJhbnNpdGlvbjogJ3dpZHRoIDAuNHMgZWFzZS1pbi1vdXQnLFxuXHRcdFx0ICB9ICkgfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBQcm9ncmVzc0VsZW1lbnQgPSBzdHlsZWQucHJvZ3Jlc3NgXG5cdHBvc2l0aW9uOiBhYnNvbHV0ZTtcblx0dG9wOiAwO1xuXHRsZWZ0OiAwO1xuXHRvcGFjaXR5OiAwO1xuXHR3aWR0aDogMTAwJTtcblx0aGVpZ2h0OiAxMDAlO1xuYDtcbiJdfQ== */",
40
46
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
41
47
  };
42
48
  const Indicator = exports.Indicator = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
@@ -50,9 +56,9 @@ const Indicator = exports.Indicator = /*#__PURE__*/(0, _base.default)("div", pro
50
56
  animationDuration: '1.5s',
51
57
  animationTimingFunction: 'ease-in-out',
52
58
  animationIterationCount: 'infinite',
53
- animationName: animateProgressBar,
59
+ animationName: animateProgressBar((0, _i18n.isRTL)()),
54
60
  width: `${INDETERMINATE_TRACK_WIDTH}%`
55
- }, process.env.NODE_ENV === "production" ? "" : ";label:Indicator;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvcHJvZ3Jlc3MtYmFyL3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmd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0aW9uQ291bnQ6ICdpbmZpbml0ZScsXG5cdFx0XHRcdFx0YW5pbWF0aW9uTmFtZTogYW5pbWF0ZVByb2dyZXNzQmFyLFxuXHRcdFx0XHRcdHdpZHRoOiBgJHsgSU5ERVRFUk1JTkFURV9UUkFDS19XSURUSCB9JWAsXG5cdFx0XHQgIH0gKVxuXHRcdFx0OiBjc3MoIHtcblx0XHRcdFx0XHR3aWR0aDogJ3ZhcigtLWluZGljYXRvci13aWR0aCknLFxuXHRcdFx0XHRcdHRyYW5zaXRpb246ICd3aWR0aCAwLjRzIGVhc2UtaW4tb3V0Jyxcblx0XHRcdCAgfSApIH07XG5gO1xuXG5leHBvcnQgY29uc3QgUHJvZ3Jlc3NFbGVtZW50ID0gc3R5bGVkLnByb2dyZXNzYFxuXHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdHRvcDogMDtcblx0bGVmdDogMDtcblx0b3BhY2l0eTogMDtcblx0d2lkdGg6IDEwMCU7XG5cdGhlaWdodDogMTAwJTtcbmA7XG4iXX0= */") : _ref, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvcHJvZ3Jlc3MtYmFyL3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE4Q0ciLCJmaWxlIjoiQHdvcmRwcmVzcy9jb21wb25lbnRzL3NyYy9wcm9ncmVzcy1iYXIvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBFeHRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgY3NzLCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbi8qKlxuICogSW50ZXJuYWwgZGVw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b3V0Jyxcblx0XHRcdCAgfSApIH07XG5gO1xuXG5leHBvcnQgY29uc3QgUHJvZ3Jlc3NFbGVtZW50ID0gc3R5bGVkLnByb2dyZXNzYFxuXHRwb3NpdGlvbjogYWJzb2x1dGU7XG5cdHRvcDogMDtcblx0bGVmdDogMDtcblx0b3BhY2l0eTogMDtcblx0d2lkdGg6IDEwMCU7XG5cdGhlaWdodDogMTAwJTtcbmA7XG4iXX0= */"));
61
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Indicator;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvcHJvZ3Jlc3MtYmFyL3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEwRUsiLCJmaWxlIjoiQHdvcmRwcmVzcy9jb21wb25lbnRzL3NyYy9wcm9ncmVzcy1iYXIvc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBFeHRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgY3NzLCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbi8qKlxuICogV29yZFByZXNzIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgeyBpc1JUTCB9IGZyb20gJ0B3b3JkcHJlc3MvaTE4bic7XG5cbi8qKlxuICogSW50ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCB7IENPTE9SUywgQ09ORklHIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG5mdW5jdGlvbiBhbmltYXRlUHJvZ3Jlc3NCYXIoIGlzUnRsID0gZmFsc2UgKSB7XG5cdGNvbnN0IGFuaW1hdGlvbkRpcmVjdGlvb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hbnNpdGlvbjogJ3dpZHRoIDAuNHMgZWFzZS1pbi1vdXQnLFxuXHRcdFx0ICB9ICkgfTtcbmA7XG5cbmV4cG9ydCBjb25zdCBQcm9ncmVzc0VsZW1lbnQgPSBzdHlsZWQucHJvZ3Jlc3NgXG5cdHBvc2l0aW9uOiBhYnNvbHV0ZTtcblx0dG9wOiAwO1xuXHRsZWZ0OiAwO1xuXHRvcGFjaXR5OiAwO1xuXHR3aWR0aDogMTAwJTtcblx0aGVpZ2h0OiAxMDAlO1xuYDtcbiJdfQ== */"));
56
62
  const ProgressElement = exports.ProgressElement = /*#__PURE__*/(0, _base.default)("progress", process.env.NODE_ENV === "production" ? {
57
63
  target: "e15u147w0"
58
64
  } : {
@@ -64,7 +70,7 @@ const ProgressElement = exports.ProgressElement = /*#__PURE__*/(0, _base.default
64
70
  } : {
65
71
  name: "11fb690",
66
72
  styles: "position:absolute;top:0;left:0;opacity:0;width:100%;height:100%",
67
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvcHJvZ3Jlc3MtYmFyL3N0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE4RThDIiwiZmlsZSI6IkB3b3JkcHJlc3MvY29tcG9uZW50cy9zcmMvcHJvZ3Jlc3MtYmFyL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRXh0ZXJuYWwgZGVwZW5kZW5jaWVzXG4gKi9cbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGNzcywga2V5ZnJhbWVzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG4vKipcbiAqIEludGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgeyBDT0xPUlMsIENPTkZJRyB9IGZyb20gJy4uL3V0aWxzJztcbl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RvcDogMDtcblx0bGVmdDogMDtcblx0b3BhY2l0eTogMDtcblx0d2lkdGg6IDEwMCU7XG5cdGhlaWdodDogMTAwJTtcbmA7XG4iXX0= */",
68
74
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
69
75
  });
70
76
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_utils","_EMOTION_STRINGIFIED_CSS_ERROR__","animateProgressBar","keyframes","left","INDETERMINATE_TRACK_WIDTH","exports","Track","_base","default","process","env","NODE_ENV","target","label","CONFIG","borderWidthFocus","COLORS","theme","foreground","radiusBlockUi","_ref","name","styles","map","toString","Indicator","isIndeterminate","css","animationDuration","animationTimingFunction","animationIterationCount","animationName","width","ProgressElement"],"sources":["@wordpress/components/src/progress-bar/styles.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport styled from '@emotion/styled';\nimport { css, keyframes } from '@emotion/react';\n\n/**\n * Internal dependencies\n */\nimport { COLORS, CONFIG } from '../utils';\n\nconst animateProgressBar = keyframes( {\n\t'0%': {\n\t\tleft: '-50%',\n\t},\n\t'100%': {\n\t\tleft: '100%',\n\t},\n} );\n\n// Width of the indicator for the indeterminate progress bar\nexport const INDETERMINATE_TRACK_WIDTH = 50;\n\nexport const Track = styled.div`\n\tposition: relative;\n\toverflow: hidden;\n\theight: ${ CONFIG.borderWidthFocus };\n\t/* Text color at 10% opacity */\n\tbackground-color: color-mix(\n\t\tin srgb,\n\t\t${ COLORS.theme.foreground },\n\t\ttransparent 90%\n\t);\n\tborder-radius: ${ CONFIG.radiusBlockUi };\n\n\t// Windows high contrast mode.\n\toutline: 2px solid transparent;\n\toutline-offset: 2px;\n\n\t:where( & ) {\n\t\twidth: 160px;\n\t}\n`;\n\nexport const Indicator = styled.div< {\n\tisIndeterminate: boolean;\n} >`\n\tdisplay: inline-block;\n\tposition: absolute;\n\ttop: 0;\n\theight: 100%;\n\tborder-radius: ${ CONFIG.radiusBlockUi };\n\t/* Text color at 90% opacity */\n\tbackground-color: color-mix(\n\t\tin srgb,\n\t\t${ COLORS.theme.foreground },\n\t\ttransparent 10%\n\t);\n\n\t// Windows high contrast mode.\n\toutline: 2px solid transparent;\n\toutline-offset: -2px;\n\n\t${ ( { isIndeterminate } ) =>\n\t\tisIndeterminate\n\t\t\t? css( {\n\t\t\t\t\tanimationDuration: '1.5s',\n\t\t\t\t\tanimationTimingFunction: 'ease-in-out',\n\t\t\t\t\tanimationIterationCount: 'infinite',\n\t\t\t\t\tanimationName: animateProgressBar,\n\t\t\t\t\twidth: `${ INDETERMINATE_TRACK_WIDTH }%`,\n\t\t\t } )\n\t\t\t: css( {\n\t\t\t\t\twidth: 'var(--indicator-width)',\n\t\t\t\t\ttransition: 'width 0.4s ease-in-out',\n\t\t\t } ) };\n`;\n\nexport const ProgressElement = styled.progress`\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\topacity: 0;\n\twidth: 100%;\n\theight: 100%;\n`;\n"],"mappings":";;;;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AAKA,IAAAC,MAAA,GAAAD,OAAA;AAA0C,SAAAE,iCAAA,gPAT1C;AACA;AACA,GAFA,CAMA;AACA;AACA;AAGA,MAAMC,kBAAkB,GAAG,IAAAC,gBAAS,EAAE;EACrC,IAAI,EAAE;IACLC,IAAI,EAAE;EACP,CAAC;EACD,MAAM,EAAE;IACPA,IAAI,EAAE;EACP;AACD,CAAE,CAAC;;AAEH;AACO,MAAMC,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,GAAG,EAAE;AAEpC,MAAME,KAAK,GAAAD,OAAA,CAAAC,KAAA,oBAAAC,KAAA,CAAAC,OAAA,SAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,gDAGNC,aAAM,CAACC,gBAAgB,sDAI9BC,aAAM,CAACC,KAAK,CAACC,UAAU,gDAGTJ,aAAM,CAACK,aAAa,mFAAAV,OAAA,C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Direction","keyframes","INDETERMINATE_TRACK_WIDTH","exports","Track","_base","default","process","env","NODE_ENV","target","label","CONFIG","borderWidthFocus","COLORS","theme","foreground","radiusBlockUi","_ref","name","styles","map","toString","Indicator","isIndeterminate","css","animationDuration","animationTimingFunction","animationIterationCount","animationName","isRTL","width","ProgressElement"],"sources":["@wordpress/components/src/progress-bar/styles.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport styled from '@emotion/styled';\nimport { css, keyframes } from '@emotion/react';\n\n/**\n * WordPress dependencies\n */\nimport { isRTL } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport { COLORS, CONFIG } from '../utils';\n\nfunction animateProgressBar( isRtl = false ) {\n\tconst animationDirection = isRtl ? 'right' : 'left';\n\n\treturn keyframes( {\n\t\t'0%': {\n\t\t\t[ animationDirection ]: '-50%',\n\t\t},\n\t\t'100%': {\n\t\t\t[ animationDirection ]: '100%',\n\t\t},\n\t} );\n}\n\n// Width of the indicator for the indeterminate progress bar\nexport const INDETERMINATE_TRACK_WIDTH = 50;\n\nexport const Track = styled.div`\n\tposition: relative;\n\toverflow: hidden;\n\theight: ${ CONFIG.borderWidthFocus };\n\t/* Text color at 10% opacity */\n\tbackground-color: color-mix(\n\t\tin srgb,\n\t\t${ COLORS.theme.foreground },\n\t\ttransparent 90%\n\t);\n\tborder-radius: ${ CONFIG.radiusBlockUi };\n\n\t// Windows high contrast mode.\n\toutline: 2px solid transparent;\n\toutline-offset: 2px;\n\n\t:where( & ) {\n\t\twidth: 160px;\n\t}\n`;\n\nexport const Indicator = styled.div< {\n\tisIndeterminate: boolean;\n} >`\n\tdisplay: inline-block;\n\tposition: absolute;\n\ttop: 0;\n\theight: 100%;\n\tborder-radius: ${ CONFIG.radiusBlockUi };\n\t/* Text color at 90% opacity */\n\tbackground-color: color-mix(\n\t\tin srgb,\n\t\t${ COLORS.theme.foreground },\n\t\ttransparent 10%\n\t);\n\n\t// Windows high contrast mode.\n\toutline: 2px solid transparent;\n\toutline-offset: -2px;\n\n\t${ ( { isIndeterminate } ) =>\n\t\tisIndeterminate\n\t\t\t? css( {\n\t\t\t\t\tanimationDuration: '1.5s',\n\t\t\t\t\tanimationTimingFunction: 'ease-in-out',\n\t\t\t\t\tanimationIterationCount: 'infinite',\n\t\t\t\t\tanimationName: animateProgressBar( isRTL() ),\n\t\t\t\t\twidth: `${ INDETERMINATE_TRACK_WIDTH }%`,\n\t\t\t } )\n\t\t\t: css( {\n\t\t\t\t\twidth: 'var(--indicator-width)',\n\t\t\t\t\ttransition: 'width 0.4s ease-in-out',\n\t\t\t } ) };\n`;\n\nexport const ProgressElement = styled.progress`\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\topacity: 0;\n\twidth: 100%;\n\theight: 100%;\n`;\n"],"mappings":";;;;;;;;AAIA,IAAAA,MAAA,GAAAC,OAAA;AAKA,IAAAC,KAAA,GAAAD,OAAA;AAKA,IAAAE,MAAA,GAAAF,OAAA;AAA0C,SAAAG,iCAAA,gPAd1C;AACA;AACA,GAFA,CAMA;AACA;AACA,GAFA,CAKA;AACA;AACA;AAGA,SAASC,kBAAkBA,CAAEC,KAAK,GAAG,KAAK,EAAG;EAC5C,MAAMC,kBAAkB,GAAGD,KAAK,GAAG,OAAO,GAAG,MAAM;EAEnD,OAAO,IAAAE,gBAAS,EAAE;IACjB,IAAI,EAAE;MACL,CAAED,kBAAkB,GAAI;IACzB,CAAC;IACD,MAAM,EAAE;MACP,CAAEA,kBAAkB,GAAI;IACzB;EACD,CAAE,CAAC;AACJ;;AAEA;AACO,MAAME,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,GAAG,EAAE;AAEpC,MAAME,KAAK,GAAAD,OAAA,CAAAC,KAAA,oBAAAC,KAAA,CAAAC,OAAA,SAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,gDAGNC,aAAM,CAACC,gBAAgB,sDAI9BC,aAAM,CAACC,KA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B","ignoreList":[]}
@@ -73,7 +73,7 @@ function RadioControl(props) {
73
73
  help: help,
74
74
  className: (0, _clsx.default)(className, 'components-radio-control'),
75
75
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vStack.VStack, {
76
- spacing: 3,
76
+ spacing: 2,
77
77
  children: options.map((option, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
78
78
  className: "components-radio-control__option",
79
79
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
@@ -1 +1 @@
1
- {"version":3,"names":["_clsx","_interopRequireDefault","require","_compose","_baseControl","_vStack","_jsxRuntime","RadioControl","props","label","className","selected","help","onChange","hideLabelFromVision","options","additionalProps","instanceId","useInstanceId","id","onChangeValue","event","target","value","length","jsx","default","__nextHasNoMarginBottom","clsx","children","VStack","spacing","map","option","index","jsxs","type","name","checked","undefined","htmlFor","_default","exports"],"sources":["@wordpress/components/src/radio-control/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\nimport type { ChangeEvent } from 'react';\n\n/**\n * WordPress dependencies\n */\nimport { useInstanceId } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport BaseControl from '../base-control';\nimport type { WordPressComponentProps } from '../context';\nimport type { RadioControlProps } from './types';\nimport { VStack } from '../v-stack';\n\n/**\n * Render a user interface to select the user type using radio inputs.\n *\n * ```jsx\n * import { RadioControl } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const MyRadioControl = () => {\n * const [ option, setOption ] = useState( 'a' );\n *\n * return (\n * <RadioControl\n * label=\"User type\"\n * help=\"The type of the current user\"\n * selected={ option }\n * options={ [\n * { label: 'Author', value: 'a' },\n * { label: 'Editor', value: 'e' },\n * ] }\n * onChange={ ( value ) => setOption( value ) }\n * />\n * );\n * };\n * ```\n */\nexport function RadioControl(\n\tprops: WordPressComponentProps< RadioControlProps, 'input', false >\n) {\n\tconst {\n\t\tlabel,\n\t\tclassName,\n\t\tselected,\n\t\thelp,\n\t\tonChange,\n\t\thideLabelFromVision,\n\t\toptions = [],\n\t\t...additionalProps\n\t} = props;\n\tconst instanceId = useInstanceId( RadioControl );\n\tconst id = `inspector-radio-control-${ instanceId }`;\n\tconst onChangeValue = ( event: ChangeEvent< HTMLInputElement > ) =>\n\t\tonChange( event.target.value );\n\n\tif ( ! options?.length ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<BaseControl\n\t\t\t__nextHasNoMarginBottom\n\t\t\tlabel={ label }\n\t\t\tid={ id }\n\t\t\thideLabelFromVision={ hideLabelFromVision }\n\t\t\thelp={ help }\n\t\t\tclassName={ clsx( className, 'components-radio-control' ) }\n\t\t>\n\t\t\t<VStack spacing={ 3 }>\n\t\t\t\t{ options.map( ( option, index ) => (\n\t\t\t\t\t<div\n\t\t\t\t\t\tkey={ `${ id }-${ index }` }\n\t\t\t\t\t\tclassName=\"components-radio-control__option\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tid={ `${ id }-${ index }` }\n\t\t\t\t\t\t\tclassName=\"components-radio-control__input\"\n\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\tname={ id }\n\t\t\t\t\t\t\tvalue={ option.value }\n\t\t\t\t\t\t\tonChange={ onChangeValue }\n\t\t\t\t\t\t\tchecked={ option.value === selected }\n\t\t\t\t\t\t\taria-describedby={\n\t\t\t\t\t\t\t\t!! help ? `${ id }__help` : undefined\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{ ...additionalProps }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<label\n\t\t\t\t\t\t\tclassName=\"components-radio-control__label\"\n\t\t\t\t\t\t\thtmlFor={ `${ id }-${ index }` }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ option.label }\n\t\t\t\t\t\t</label>\n\t\t\t\t\t</div>\n\t\t\t\t) ) }\n\t\t\t</VStack>\n\t\t</BaseControl>\n\t);\n}\n\nexport default RadioControl;\n"],"mappings":";;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G,CAAE,CAAEC,MAAM,EAAEC,KAAK,kBAC7B,IAAA5B,WAAA,CAAA6B,IAAA;QAECzB,SAAS,EAAC,kCAAkC;QAAAmB,QAAA,gBAE5C,IAAAvB,WAAA,CAAAmB,GAAA;UACCN,EAAE,EAAI,GAAGA,EAAI,IAAIe,KAAO,EAAG;UAC3BxB,SAAS,EAAC,iCAAiC;UAC3C0B,IAAI,EAAC,OAAO;UACZC,IAAI,EAAGlB,EAAI;UACXI,KAAK,EAAGU,MAAM,CAACV,KAAO;UACtBV,QAAQ,EAAGO,aAAe;UAC1BkB,OAAO,EAAGL,MAAM,CAACV,KAAK,KAAKZ,QAAU;UACrC,oBACC,CAAC,CAAEC,IAAI,GAAI,GAAGO,EAAI,QAAO,GAAGoB,SAC5B;UAAA,GACIvB;QAAe,CACpB,CAAC,eACF,IAAAV,WAAA,CAAAmB,GAAA;UACCf,SAAS,EAAC,iCAAiC;UAC3C8B,OAAO,EAAI,GAAGrB,EAAI,IAAIe,KAAO,EAAG;UAAAL,QAAA,EAE9BI,MAAM,CAACxB;QAAK,CACR,CAAC;MAAA,GArBD,GAAGU,EAAI,IAAIe,KAAO,EAsBrB,CACJ;IAAC,CACI;EAAC,CACG,CAAC;AAEhB;AAAC,IAAAO,QAAA,GAAAC,OAAA,CAAAhB,OAAA,GAEcnB,YAAY","ignoreList":[]}
1
+ {"version":3,"names":["_clsx","_interopRequireDefault","require","_compose","_baseControl","_vStack","_jsxRuntime","RadioControl","props","label","className","selected","help","onChange","hideLabelFromVision","options","additionalProps","instanceId","useInstanceId","id","onChangeValue","event","target","value","length","jsx","default","__nextHasNoMarginBottom","clsx","children","VStack","spacing","map","option","index","jsxs","type","name","checked","undefined","htmlFor","_default","exports"],"sources":["@wordpress/components/src/radio-control/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\nimport type { ChangeEvent } from 'react';\n\n/**\n * WordPress dependencies\n */\nimport { useInstanceId } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport BaseControl from '../base-control';\nimport type { WordPressComponentProps } from '../context';\nimport type { RadioControlProps } from './types';\nimport { VStack } from '../v-stack';\n\n/**\n * Render a user interface to select the user type using radio inputs.\n *\n * ```jsx\n * import { RadioControl } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * const MyRadioControl = () => {\n * const [ option, setOption ] = useState( 'a' );\n *\n * return (\n * <RadioControl\n * label=\"User type\"\n * help=\"The type of the current user\"\n * selected={ option }\n * options={ [\n * { label: 'Author', value: 'a' },\n * { label: 'Editor', value: 'e' },\n * ] }\n * onChange={ ( value ) => setOption( value ) }\n * />\n * );\n * };\n * ```\n */\nexport function RadioControl(\n\tprops: WordPressComponentProps< RadioControlProps, 'input', false >\n) {\n\tconst {\n\t\tlabel,\n\t\tclassName,\n\t\tselected,\n\t\thelp,\n\t\tonChange,\n\t\thideLabelFromVision,\n\t\toptions = [],\n\t\t...additionalProps\n\t} = props;\n\tconst instanceId = useInstanceId( RadioControl );\n\tconst id = `inspector-radio-control-${ instanceId }`;\n\tconst onChangeValue = ( event: ChangeEvent< HTMLInputElement > ) =>\n\t\tonChange( event.target.value );\n\n\tif ( ! options?.length ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<BaseControl\n\t\t\t__nextHasNoMarginBottom\n\t\t\tlabel={ label }\n\t\t\tid={ id }\n\t\t\thideLabelFromVision={ hideLabelFromVision }\n\t\t\thelp={ help }\n\t\t\tclassName={ clsx( className, 'components-radio-control' ) }\n\t\t>\n\t\t\t<VStack spacing={ 2 }>\n\t\t\t\t{ options.map( ( option, index ) => (\n\t\t\t\t\t<div\n\t\t\t\t\t\tkey={ `${ id }-${ index }` }\n\t\t\t\t\t\tclassName=\"components-radio-control__option\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tid={ `${ id }-${ index }` }\n\t\t\t\t\t\t\tclassName=\"components-radio-control__input\"\n\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\tname={ id }\n\t\t\t\t\t\t\tvalue={ option.value }\n\t\t\t\t\t\t\tonChange={ onChangeValue }\n\t\t\t\t\t\t\tchecked={ option.value === selected }\n\t\t\t\t\t\t\taria-describedby={\n\t\t\t\t\t\t\t\t!! help ? `${ id }__help` : undefined\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t{ ...additionalProps }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<label\n\t\t\t\t\t\t\tclassName=\"components-radio-control__label\"\n\t\t\t\t\t\t\thtmlFor={ `${ id }-${ index }` }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ option.label }\n\t\t\t\t\t\t</label>\n\t\t\t\t\t</div>\n\t\t\t\t) ) }\n\t\t\t</VStack>\n\t\t</BaseControl>\n\t);\n}\n\nexport default RadioControl;\n"],"mappings":";;;;;;;;AAGA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAMA,IAAAC,QAAA,GAAAD,OAAA;AAKA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AAGA,IAAAG,OAAA,GAAAH,OAAA;AAAoC,IAAAI,WAAA,GAAAJ,OAAA;AAjBpC;AACA;AACA;;AAIA;AACA;AACA;;AAGA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASK,YAAYA,CAC3BC,KAAmE,EAClE;EACD,MAAM;IACLC,KAAK;IACLC,SAAS;IACTC,QAAQ;IACRC,IAAI;IACJC,QAAQ;IACRC,mBAAmB;IACnBC,OAAO,GAAG,EAAE;IACZ,GAAGC;EACJ,CAAC,GAAGR,KAAK;EACT,MAAMS,UAAU,GAAG,IAAAC,sBAAa,EAAEX,YAAa,CAAC;EAChD,MAAMY,EAAE,GAAI,2BAA2BF,UAAY,EAAC;EACpD,MAAMG,aAAa,GAAKC,KAAsC,IAC7DR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O,EAsBrB,CACJ;IAAC,CACI;EAAC,CACG,CAAC;AAEhB;AAAC,IAAAO,QAAA,GAAAC,OAAA,CAAAhB,OAAA,GAEcnB,YAAY","ignoreList":[]}
@@ -8,7 +8,6 @@ var _element = require("@wordpress/element");
8
8
  /**
9
9
  * External dependencies
10
10
  */
11
- // eslint-disable-next-line no-restricted-imports
12
11
 
13
12
  /**
14
13
  * WordPress dependencies
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","RadioGroupContext","exports","createContext","store","undefined","disabled"],"sources":["@wordpress/components/src/radio-group/context.tsx"],"sourcesContent":["/**\n * External dependencies\n */\n// eslint-disable-next-line no-restricted-imports\nimport type * as Ariakit from '@ariakit/react';\n\n/**\n * WordPress dependencies\n */\nimport { createContext } from '@wordpress/element';\n\nexport const RadioGroupContext = createContext< {\n\tstore?: Ariakit.RadioStore;\n\tdisabled?: boolean;\n} >( {\n\tstore: undefined,\n\tdisabled: undefined,\n} );\n"],"mappings":";;;;;;AASA,IAAAA,QAAA,GAAAC,OAAA;AATA;AACA;AACA;AACA;;AAGA;AACA;AACA;;AAGO,MAAMC,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,IAAAE,sBAAa,EAGzC;EACJC,KAAK,EAAEC,SAAS;EAChBC,QAAQ,EAAED;AACX,CAAE,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_element","require","RadioGroupContext","exports","createContext","store","undefined","disabled"],"sources":["@wordpress/components/src/radio-group/context.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type * as Ariakit from '@ariakit/react';\n\n/**\n * WordPress dependencies\n */\nimport { createContext } from '@wordpress/element';\n\nexport const RadioGroupContext = createContext< {\n\tstore?: Ariakit.RadioStore;\n\tdisabled?: boolean;\n} >( {\n\tstore: undefined,\n\tdisabled: undefined,\n} );\n"],"mappings":";;;;;;AAQA,IAAAA,QAAA,GAAAC,OAAA;AARA;AACA;AACA;;AAGA;AACA;AACA;;AAGO,MAAMC,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,IAAAE,sBAAa,EAGzC;EACJC,KAAK,EAAEC,SAAS;EAChBC,QAAQ,EAAED;AACX,CAAE,CAAC","ignoreList":[]}
@@ -15,7 +15,6 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
15
15
  /**
16
16
  * External dependencies
17
17
  */
18
- // eslint-disable-next-line no-restricted-imports
19
18
 
20
19
  /**
21
20
  * WordPress dependencies
@@ -1 +1 @@
1
- {"version":3,"names":["Ariakit","_interopRequireWildcard","require","_element","_buttonGroup","_interopRequireDefault","_context","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","UnforwardedRadioGroup","label","checked","defaultChecked","disabled","onChange","children","props","ref","radioStore","useRadioStore","value","defaultValue","setValue","newValue","undefined","contextValue","useMemo","store","jsx","RadioGroupContext","Provider","RadioGroup","render","exports","forwardRef","_default"],"sources":["@wordpress/components/src/radio-group/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\n// eslint-disable-next-line no-restricted-imports\nimport * as Ariakit from '@ariakit/react';\n\n/**\n * WordPress dependencies\n */\nimport { useMemo, forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport ButtonGroup from '../button-group';\nimport type { WordPressComponentProps } from '../context';\nimport { RadioGroupContext } from './context';\nimport type { RadioGroupProps } from './types';\n\nfunction UnforwardedRadioGroup(\n\t{\n\t\tlabel,\n\t\tchecked,\n\t\tdefaultChecked,\n\t\tdisabled,\n\t\tonChange,\n\t\tchildren,\n\t\t...props\n\t}: WordPressComponentProps< RadioGroupProps, 'div', false >,\n\tref: React.ForwardedRef< any >\n) {\n\tconst radioStore = Ariakit.useRadioStore( {\n\t\tvalue: checked,\n\t\tdefaultValue: defaultChecked,\n\t\tsetValue: ( newValue ) => {\n\t\t\tonChange?.( newValue ?? undefined );\n\t\t},\n\t} );\n\n\tconst contextValue = useMemo(\n\t\t() => ( {\n\t\t\tstore: radioStore,\n\t\t\tdisabled,\n\t\t} ),\n\t\t[ radioStore, disabled ]\n\t);\n\n\treturn (\n\t\t<RadioGroupContext.Provider value={ contextValue }>\n\t\t\t<Ariakit.RadioGroup\n\t\t\t\tstore={ radioStore }\n\t\t\t\trender={ <ButtonGroup>{ children }</ButtonGroup> }\n\t\t\t\taria-label={ label }\n\t\t\t\tref={ ref }\n\t\t\t\t{ ...props }\n\t\t\t/>\n\t\t</RadioGroupContext.Provider>\n\t);\n}\n\n/**\n * @deprecated Use `RadioControl` or `ToggleGroupControl` instead.\n */\nexport const RadioGroup = forwardRef( UnforwardedRadioGroup );\nexport default RadioGroup;\n"],"mappings":";;;;;;;AAIA,IAAAA,OAAA,GAAAC,uBAAA,CAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AAKA,IAAAE,YAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,QAAA,GAAAJ,OAAA;AAA8C,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAM,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA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CAAAwC,GAAA,EAAC/C,OAAO,CAACkD,UAAU;MAClBJ,KAAK,EAAGT,UAAY;MACpBc,MAAM,eAAG,IAAA5C,WAAA,CAAAwC,GAAA,EAAC3C,YAAA,CAAAU,OAAW;QAAAoB,QAAA,EAAGA;MAAQ,CAAe,CAAG;MAClD,cAAaL,KAAO;MACpBO,GAAG,EAAGA,GAAK;MAAA,GACND;IAAK,CACV;EAAC,CACyB,CAAC;AAE/B;;AAEA;AACA;AACA;AACO,MAAMe,UAAU,GAAAE,OAAA,CAAAF,UAAA,GAAG,IAAAG,mBAAU,EAAEzB,qBAAsB,CAAC;AAAC,IAAA0B,QAAA,GAAAF,OAAA,CAAAtC,OAAA,GAC/CoC,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["Ariakit","_interopRequireWildcard","require","_element","_buttonGroup","_interopRequireDefault","_context","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","UnforwardedRadioGroup","label","checked","defaultChecked","disabled","onChange","children","props","ref","radioStore","useRadioStore","value","defaultValue","setValue","newValue","undefined","contextValue","useMemo","store","jsx","RadioGroupContext","Provider","RadioGroup","render","exports","forwardRef","_default"],"sources":["@wordpress/components/src/radio-group/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport * as Ariakit from '@ariakit/react';\n\n/**\n * WordPress dependencies\n */\nimport { useMemo, forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport ButtonGroup from '../button-group';\nimport type { WordPressComponentProps } from '../context';\nimport { RadioGroupContext } from './context';\nimport type { RadioGroupProps } from './types';\n\nfunction UnforwardedRadioGroup(\n\t{\n\t\tlabel,\n\t\tchecked,\n\t\tdefaultChecked,\n\t\tdisabled,\n\t\tonChange,\n\t\tchildren,\n\t\t...props\n\t}: WordPressComponentProps< RadioGroupProps, 'div', false >,\n\tref: React.ForwardedRef< any >\n) {\n\tconst radioStore = Ariakit.useRadioStore( {\n\t\tvalue: checked,\n\t\tdefaultValue: defaultChecked,\n\t\tsetValue: ( newValue ) => {\n\t\t\tonChange?.( newValue ?? undefined );\n\t\t},\n\t} );\n\n\tconst contextValue = useMemo(\n\t\t() => ( {\n\t\t\tstore: radioStore,\n\t\t\tdisabled,\n\t\t} ),\n\t\t[ radioStore, disabled ]\n\t);\n\n\treturn (\n\t\t<RadioGroupContext.Provider value={ contextValue }>\n\t\t\t<Ariakit.RadioGroup\n\t\t\t\tstore={ radioStore }\n\t\t\t\trender={ <ButtonGroup>{ children }</ButtonGroup> }\n\t\t\t\taria-label={ label }\n\t\t\t\tref={ ref }\n\t\t\t\t{ ...props }\n\t\t\t/>\n\t\t</RadioGroupContext.Provider>\n\t);\n}\n\n/**\n * @deprecated Use `RadioControl` or `ToggleGroupControl` instead.\n */\nexport const RadioGroup = forwardRef( UnforwardedRadioGroup );\nexport default RadioGroup;\n"],"mappings":";;;;;;;AAGA,IAAAA,OAAA,GAAAC,uBAAA,CAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AAKA,IAAAE,YAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,QAAA,GAAAJ,OAAA;AAA8C,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAM,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,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,IAAAzB,WAAA,CAAAwC,GAAA,EAACzC,QAAA,CAAA0C,iBAAiB,CAACC,QAAQ;IAACV,KAAK,EAAGK,YAAc;IAAAV,QAAA,eACjD,IAAA3B,WAAA,CAAAwC,GAAA,EAAC/C,OAAO,CAACkD,UAAU;MAClBJ,KAAK,EAAGT,UAAY;MACpBc,MAAM,eAAG,IAAA5C,WAAA,CAAAwC,GAAA,EAAC3C,YAAA,CAAAU,OAAW;QAAAoB,QAAA,EAAGA;MAAQ,CAAe,CAAG;MAClD,cAAaL,KAAO;MACpBO,GAAG,EAAGA,GAAK;MAAA,GACND;IAAK,CACV;EAAC,CACyB,CAAC;AAE/B;;AAEA;AACA;AACA;AACO,MAAMe,UAAU,GAAAE,OAAA,CAAAF,UAAA,GAAG,IAAAG,mBAAU,EAAEzB,qBAAsB,CAAC;AAAC,IAAA0B,QAAA,GAAAF,OAAA,CAAAtC,OAAA,GAC/CoC,UAAU","ignoreList":[]}
@@ -19,7 +19,6 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
19
19
  /**
20
20
  * External dependencies
21
21
  */
22
- // eslint-disable-next-line no-restricted-imports
23
22
 
24
23
  /**
25
24
  * Internal dependencies
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","Ariakit","_interopRequireWildcard","_button","_interopRequireDefault","_context","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","UnforwardedRadio","value","children","props","ref","store","disabled","useContext","RadioGroupContext","selectedValue","useState","isChecked","undefined","jsx","Radio","render","variant","exports","forwardRef","_default"],"sources":["@wordpress/components/src/radio-group/radio.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { forwardRef, useContext } from '@wordpress/element';\n\n/**\n * External dependencies\n */\n// eslint-disable-next-line no-restricted-imports\nimport * as Ariakit from '@ariakit/react';\n\n/**\n * Internal dependencies\n */\nimport Button from '../button';\nimport { RadioGroupContext } from './context';\nimport type { WordPressComponentProps } from '../context';\nimport type { RadioProps } from './types';\n\nfunction UnforwardedRadio(\n\t{\n\t\tvalue,\n\t\tchildren,\n\t\t...props\n\t}: WordPressComponentProps< RadioProps, 'button', false >,\n\tref: React.ForwardedRef< any >\n) {\n\tconst { store, disabled } = useContext( RadioGroupContext );\n\n\tconst selectedValue = store?.useState( 'value' );\n\tconst isChecked = selectedValue !== undefined && selectedValue === value;\n\n\treturn (\n\t\t<Ariakit.Radio\n\t\t\tdisabled={ disabled }\n\t\t\tstore={ store }\n\t\t\tref={ ref }\n\t\t\tvalue={ value }\n\t\t\trender={\n\t\t\t\t<Button\n\t\t\t\t\tvariant={ isChecked ? 'primary' : 'secondary' }\n\t\t\t\t\t{ ...props }\n\t\t\t\t/>\n\t\t\t}\n\t\t>\n\t\t\t{ children || value }\n\t\t</Ariakit.Radio>\n\t);\n}\n\n/**\n * @deprecated Use `RadioControl` or `ToggleGroupControl` instead.\n */\nexport const Radio = forwardRef( UnforwardedRadio );\nexport default Radio;\n"],"mappings":";;;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AAMA,IAAAC,OAAA,GAAAC,uBAAA,CAAAF,OAAA;AAKA,IAAAG,OAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAA8C,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAA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AAK;IACXH,KAAK,EAAGA,KAAO;IACfc,MAAM,eACL,IAAApC,WAAA,CAAAkC,GAAA,EAACrC,OAAA,CAAAU,OAAM;MACN8B,OAAO,EAAGL,SAAS,GAAG,SAAS,GAAG,WAAa;MAAA,GAC1CR;IAAK,CACV,CACD;IAAAD,QAAA,EAECA,QAAQ,IAAID;EAAK,CACL,CAAC;AAElB;;AAEA;AACA;AACA;AACO,MAAMa,KAAK,GAAAG,OAAA,CAAAH,KAAA,GAAG,IAAAI,mBAAU,EAAElB,gBAAiB,CAAC;AAAC,IAAAmB,QAAA,GAAAF,OAAA,CAAA/B,OAAA,GACrC4B,KAAK","ignoreList":[]}
1
+ {"version":3,"names":["_element","require","Ariakit","_interopRequireWildcard","_button","_interopRequireDefault","_context","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","UnforwardedRadio","value","children","props","ref","store","disabled","useContext","RadioGroupContext","selectedValue","useState","isChecked","undefined","jsx","Radio","render","variant","exports","forwardRef","_default"],"sources":["@wordpress/components/src/radio-group/radio.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { forwardRef, useContext } from '@wordpress/element';\n\n/**\n * External dependencies\n */\nimport * as Ariakit from '@ariakit/react';\n\n/**\n * Internal dependencies\n */\nimport Button from '../button';\nimport { RadioGroupContext } from './context';\nimport type { WordPressComponentProps } from '../context';\nimport type { RadioProps } from './types';\n\nfunction UnforwardedRadio(\n\t{\n\t\tvalue,\n\t\tchildren,\n\t\t...props\n\t}: WordPressComponentProps< RadioProps, 'button', false >,\n\tref: React.ForwardedRef< any >\n) {\n\tconst { store, disabled } = useContext( RadioGroupContext );\n\n\tconst selectedValue = store?.useState( 'value' );\n\tconst isChecked = selectedValue !== undefined && selectedValue === value;\n\n\treturn (\n\t\t<Ariakit.Radio\n\t\t\tdisabled={ disabled }\n\t\t\tstore={ store }\n\t\t\tref={ ref }\n\t\t\tvalue={ value }\n\t\t\trender={\n\t\t\t\t<Button\n\t\t\t\t\tvariant={ isChecked ? 'primary' : 'secondary' }\n\t\t\t\t\t{ ...props }\n\t\t\t\t/>\n\t\t\t}\n\t\t>\n\t\t\t{ children || value }\n\t\t</Ariakit.Radio>\n\t);\n}\n\n/**\n * @deprecated Use `RadioControl` or `ToggleGroupControl` instead.\n */\nexport const Radio = forwardRef( UnforwardedRadio );\nexport default Radio;\n"],"mappings":";;;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AAKA,IAAAC,OAAA,GAAAC,uBAAA,CAAAF,OAAA;AAKA,IAAAG,OAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAA8C,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wB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