@wordpress/components 32.0.1-next.ba3aee3a2.0 → 32.0.2-next.v.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 (982) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/CONTRIBUTING.md +6 -0
  3. package/build/angle-picker-control/index.cjs +1 -0
  4. package/build/angle-picker-control/index.cjs.map +2 -2
  5. package/build/box-control/index.cjs +15 -7
  6. package/build/box-control/index.cjs.map +2 -2
  7. package/build/button/deprecated.cjs +12 -8
  8. package/build/button/deprecated.cjs.map +2 -2
  9. package/build/button/index.cjs +1 -0
  10. package/build/button/index.cjs.map +2 -2
  11. package/build/button-group/index.cjs +1 -0
  12. package/build/button-group/index.cjs.map +2 -2
  13. package/build/circular-option-picker/circular-option-picker-option.cjs +2 -1
  14. package/build/circular-option-picker/circular-option-picker-option.cjs.map +2 -2
  15. package/build/circular-option-picker/circular-option-picker.cjs +1 -0
  16. package/build/circular-option-picker/circular-option-picker.cjs.map +2 -2
  17. package/build/clipboard-button/index.cjs +11 -7
  18. package/build/clipboard-button/index.cjs.map +2 -2
  19. package/build/color-indicator/index.cjs +1 -0
  20. package/build/color-indicator/index.cjs.map +2 -2
  21. package/build/color-palette/index.cjs +1 -0
  22. package/build/color-palette/index.cjs.map +2 -2
  23. package/build/combobox-control/index.cjs +1 -1
  24. package/build/combobox-control/index.cjs.map +2 -2
  25. package/build/context/context-system-provider.cjs +1 -1
  26. package/build/context/context-system-provider.cjs.map +2 -2
  27. package/build/date-time/date-time/index.cjs +1 -0
  28. package/build/date-time/date-time/index.cjs.map +2 -2
  29. package/build/disclosure/index.cjs +1 -0
  30. package/build/disclosure/index.cjs.map +2 -2
  31. package/build/duotone-picker/duotone-picker.cjs +1 -1
  32. package/build/duotone-picker/duotone-picker.cjs.map +1 -1
  33. package/build/external-link/index.cjs +1 -0
  34. package/build/external-link/index.cjs.map +2 -2
  35. package/build/font-size-picker/index.cjs +1 -0
  36. package/build/font-size-picker/index.cjs.map +2 -2
  37. package/build/form-file-upload/index.cjs +9 -5
  38. package/build/form-file-upload/index.cjs.map +2 -2
  39. package/build/form-toggle/index.cjs +1 -0
  40. package/build/form-toggle/index.cjs.map +2 -2
  41. package/build/form-token-field/token-input.cjs +1 -0
  42. package/build/form-token-field/token-input.cjs.map +2 -2
  43. package/build/form-token-field/token.cjs.map +2 -2
  44. package/build/higher-order/navigate-regions/index.cjs +9 -7
  45. package/build/higher-order/navigate-regions/index.cjs.map +2 -2
  46. package/build/higher-order/with-fallback-styles/index.cjs +2 -2
  47. package/build/higher-order/with-fallback-styles/index.cjs.map +2 -2
  48. package/build/higher-order/with-focus-outside/index.cjs +1 -1
  49. package/build/higher-order/with-focus-outside/index.cjs.map +2 -2
  50. package/build/higher-order/with-spoken-messages/index.cjs +7 -5
  51. package/build/higher-order/with-spoken-messages/index.cjs.map +2 -2
  52. package/build/input-control/index.cjs +1 -0
  53. package/build/input-control/index.cjs.map +2 -2
  54. package/build/input-control/styles/input-control-styles.cjs +22 -22
  55. package/build/input-control/styles/input-control-styles.cjs.map +2 -2
  56. package/build/menu/popover.cjs +1 -0
  57. package/build/menu/popover.cjs.map +2 -2
  58. package/build/menu/styles.cjs +15 -15
  59. package/build/menu/styles.cjs.map +2 -2
  60. package/build/menu-item/index.cjs +1 -0
  61. package/build/menu-item/index.cjs.map +2 -2
  62. package/build/modal/index.cjs +1 -0
  63. package/build/modal/index.cjs.map +2 -2
  64. package/build/navigable-container/menu.cjs +1 -0
  65. package/build/navigable-container/menu.cjs.map +2 -2
  66. package/build/navigable-container/tabbable.cjs +1 -0
  67. package/build/navigable-container/tabbable.cjs.map +2 -2
  68. package/build/navigation/back-button/index.cjs +1 -0
  69. package/build/navigation/back-button/index.cjs.map +2 -2
  70. package/build/number-control/index.cjs +1 -0
  71. package/build/number-control/index.cjs.map +2 -2
  72. package/build/panel/body.cjs +1 -0
  73. package/build/panel/body.cjs.map +2 -2
  74. package/build/panel/index.cjs +1 -0
  75. package/build/panel/index.cjs.map +2 -2
  76. package/build/panel/row.cjs +1 -0
  77. package/build/panel/row.cjs.map +2 -2
  78. package/build/progress-bar/index.cjs +1 -0
  79. package/build/progress-bar/index.cjs.map +2 -2
  80. package/build/radio-group/index.cjs +1 -0
  81. package/build/radio-group/index.cjs.map +2 -2
  82. package/build/radio-group/radio.cjs +9 -4
  83. package/build/radio-group/radio.cjs.map +2 -2
  84. package/build/range-control/index.cjs +1 -0
  85. package/build/range-control/index.cjs.map +2 -2
  86. package/build/resizable-box/index.cjs +1 -0
  87. package/build/resizable-box/index.cjs.map +2 -2
  88. package/build/search-control/index.cjs +1 -0
  89. package/build/search-control/index.cjs.map +2 -2
  90. package/build/select-control/index.cjs +1 -0
  91. package/build/select-control/index.cjs.map +2 -2
  92. package/build/slot-fill/bubbles-virtually/slot.cjs +17 -5
  93. package/build/slot-fill/bubbles-virtually/slot.cjs.map +2 -2
  94. package/build/slot-fill/bubbles-virtually/use-slot-fills.cjs +17 -4
  95. package/build/slot-fill/bubbles-virtually/use-slot-fills.cjs.map +2 -2
  96. package/build/slot-fill/bubbles-virtually/use-slot.cjs +7 -3
  97. package/build/slot-fill/bubbles-virtually/use-slot.cjs.map +2 -2
  98. package/build/slot-fill/context.cjs +17 -6
  99. package/build/slot-fill/context.cjs.map +3 -3
  100. package/build/slot-fill/fill.cjs +29 -4
  101. package/build/slot-fill/fill.cjs.map +4 -4
  102. package/build/slot-fill/index.cjs +8 -23
  103. package/build/slot-fill/index.cjs.map +3 -3
  104. package/build/slot-fill/provider.cjs +33 -17
  105. package/build/slot-fill/provider.cjs.map +2 -2
  106. package/build/slot-fill/slot.cjs +7 -4
  107. package/build/slot-fill/slot.cjs.map +2 -2
  108. package/build/snackbar/index.cjs +1 -0
  109. package/build/snackbar/index.cjs.map +2 -2
  110. package/build/spinner/index.cjs +1 -0
  111. package/build/spinner/index.cjs.map +2 -2
  112. package/build/tab-panel/index.cjs +1 -0
  113. package/build/tab-panel/index.cjs.map +2 -2
  114. package/build/text-control/index.cjs +1 -0
  115. package/build/text-control/index.cjs.map +2 -2
  116. package/build/text-highlight/index.cjs +1 -0
  117. package/build/text-highlight/index.cjs.map +2 -2
  118. package/build/textarea-control/index.cjs +1 -0
  119. package/build/textarea-control/index.cjs.map +2 -2
  120. package/build/toggle-control/index.cjs +1 -0
  121. package/build/toggle-control/index.cjs.map +2 -2
  122. package/build/toggle-group-control/toggle-group-control/as-button-group.cjs +1 -0
  123. package/build/toggle-group-control/toggle-group-control/as-button-group.cjs.map +2 -2
  124. package/build/toggle-group-control/toggle-group-control/as-radio-group.cjs +1 -0
  125. package/build/toggle-group-control/toggle-group-control/as-radio-group.cjs.map +2 -2
  126. package/build/toggle-group-control/toggle-group-control-option/component.cjs +1 -0
  127. package/build/toggle-group-control/toggle-group-control-option/component.cjs.map +2 -2
  128. package/build/toggle-group-control/toggle-group-control-option-icon/component.cjs +1 -0
  129. package/build/toggle-group-control/toggle-group-control-option-icon/component.cjs.map +2 -2
  130. package/build/toolbar/toolbar/index.cjs +1 -0
  131. package/build/toolbar/toolbar/index.cjs.map +2 -2
  132. package/build/toolbar/toolbar/toolbar-container.cjs +1 -0
  133. package/build/toolbar/toolbar/toolbar-container.cjs.map +2 -2
  134. package/build/toolbar/toolbar-button/index.cjs +1 -0
  135. package/build/toolbar/toolbar-button/index.cjs.map +2 -2
  136. package/build/toolbar/toolbar-dropdown-menu/index.cjs +1 -0
  137. package/build/toolbar/toolbar-dropdown-menu/index.cjs.map +2 -2
  138. package/build/toolbar/toolbar-item/index.cjs +1 -0
  139. package/build/toolbar/toolbar-item/index.cjs.map +2 -2
  140. package/build/tooltip/index.cjs +1 -0
  141. package/build/tooltip/index.cjs.map +2 -2
  142. package/build/tree-grid/cell.cjs +1 -0
  143. package/build/tree-grid/cell.cjs.map +2 -2
  144. package/build/tree-grid/index.cjs +1 -0
  145. package/build/tree-grid/index.cjs.map +2 -2
  146. package/build/tree-grid/item.cjs +1 -0
  147. package/build/tree-grid/item.cjs.map +2 -2
  148. package/build/tree-grid/roving-tab-index-item.cjs +1 -0
  149. package/build/tree-grid/roving-tab-index-item.cjs.map +2 -2
  150. package/build/tree-grid/row.cjs +1 -0
  151. package/build/tree-grid/row.cjs.map +2 -2
  152. package/build/tree-select/index.cjs +12 -8
  153. package/build/tree-select/index.cjs.map +2 -2
  154. package/build/unit-control/index.cjs +1 -0
  155. package/build/unit-control/index.cjs.map +2 -2
  156. package/build/utils/dropdown-motion.cjs.map +2 -2
  157. package/build/validated-form-controls/components/checkbox-control.cjs +1 -0
  158. package/build/validated-form-controls/components/checkbox-control.cjs.map +2 -2
  159. package/build/validated-form-controls/components/combobox-control.cjs +1 -0
  160. package/build/validated-form-controls/components/combobox-control.cjs.map +2 -2
  161. package/build/validated-form-controls/components/custom-select-control.cjs +1 -0
  162. package/build/validated-form-controls/components/custom-select-control.cjs.map +2 -2
  163. package/build/validated-form-controls/components/form-token-field.cjs +1 -0
  164. package/build/validated-form-controls/components/form-token-field.cjs.map +2 -2
  165. package/build/validated-form-controls/components/input-control.cjs +1 -0
  166. package/build/validated-form-controls/components/input-control.cjs.map +2 -2
  167. package/build/validated-form-controls/components/number-control.cjs +1 -0
  168. package/build/validated-form-controls/components/number-control.cjs.map +2 -2
  169. package/build/validated-form-controls/components/radio-control.cjs +1 -0
  170. package/build/validated-form-controls/components/radio-control.cjs.map +2 -2
  171. package/build/validated-form-controls/components/range-control.cjs +1 -0
  172. package/build/validated-form-controls/components/range-control.cjs.map +2 -2
  173. package/build/validated-form-controls/components/select-control.cjs +1 -0
  174. package/build/validated-form-controls/components/select-control.cjs.map +2 -2
  175. package/build/validated-form-controls/components/text-control.cjs +1 -0
  176. package/build/validated-form-controls/components/text-control.cjs.map +2 -2
  177. package/build/validated-form-controls/components/textarea-control.cjs +1 -0
  178. package/build/validated-form-controls/components/textarea-control.cjs.map +2 -2
  179. package/build/validated-form-controls/components/toggle-control.cjs +1 -0
  180. package/build/validated-form-controls/components/toggle-control.cjs.map +2 -2
  181. package/build/validated-form-controls/components/toggle-group-control.cjs +1 -0
  182. package/build/validated-form-controls/components/toggle-group-control.cjs.map +2 -2
  183. package/build/validated-form-controls/control-with-error.cjs +1 -0
  184. package/build/validated-form-controls/control-with-error.cjs.map +2 -2
  185. package/build-module/angle-picker-control/index.mjs +1 -0
  186. package/build-module/angle-picker-control/index.mjs.map +2 -2
  187. package/build-module/box-control/index.mjs +15 -7
  188. package/build-module/box-control/index.mjs.map +2 -2
  189. package/build-module/button/deprecated.mjs +12 -8
  190. package/build-module/button/deprecated.mjs.map +2 -2
  191. package/build-module/button/index.mjs +1 -0
  192. package/build-module/button/index.mjs.map +2 -2
  193. package/build-module/button-group/index.mjs +1 -0
  194. package/build-module/button-group/index.mjs.map +2 -2
  195. package/build-module/circular-option-picker/circular-option-picker-option.mjs +2 -1
  196. package/build-module/circular-option-picker/circular-option-picker-option.mjs.map +2 -2
  197. package/build-module/circular-option-picker/circular-option-picker.mjs +1 -0
  198. package/build-module/circular-option-picker/circular-option-picker.mjs.map +2 -2
  199. package/build-module/clipboard-button/index.mjs +11 -7
  200. package/build-module/clipboard-button/index.mjs.map +2 -2
  201. package/build-module/color-indicator/index.mjs +1 -0
  202. package/build-module/color-indicator/index.mjs.map +2 -2
  203. package/build-module/color-palette/index.mjs +1 -0
  204. package/build-module/color-palette/index.mjs.map +2 -2
  205. package/build-module/combobox-control/index.mjs +1 -1
  206. package/build-module/combobox-control/index.mjs.map +2 -2
  207. package/build-module/context/context-system-provider.mjs +1 -1
  208. package/build-module/context/context-system-provider.mjs.map +2 -2
  209. package/build-module/date-time/date-time/index.mjs +1 -0
  210. package/build-module/date-time/date-time/index.mjs.map +2 -2
  211. package/build-module/disclosure/index.mjs +1 -0
  212. package/build-module/disclosure/index.mjs.map +2 -2
  213. package/build-module/duotone-picker/duotone-picker.mjs +1 -1
  214. package/build-module/duotone-picker/duotone-picker.mjs.map +1 -1
  215. package/build-module/external-link/index.mjs +1 -0
  216. package/build-module/external-link/index.mjs.map +2 -2
  217. package/build-module/font-size-picker/index.mjs +1 -0
  218. package/build-module/font-size-picker/index.mjs.map +2 -2
  219. package/build-module/form-file-upload/index.mjs +9 -5
  220. package/build-module/form-file-upload/index.mjs.map +2 -2
  221. package/build-module/form-toggle/index.mjs +1 -0
  222. package/build-module/form-toggle/index.mjs.map +2 -2
  223. package/build-module/form-token-field/token-input.mjs +1 -0
  224. package/build-module/form-token-field/token-input.mjs.map +2 -2
  225. package/build-module/form-token-field/token.mjs.map +2 -2
  226. package/build-module/higher-order/navigate-regions/index.mjs +9 -7
  227. package/build-module/higher-order/navigate-regions/index.mjs.map +2 -2
  228. package/build-module/higher-order/with-fallback-styles/index.mjs +2 -2
  229. package/build-module/higher-order/with-fallback-styles/index.mjs.map +2 -2
  230. package/build-module/higher-order/with-focus-outside/index.mjs +1 -1
  231. package/build-module/higher-order/with-focus-outside/index.mjs.map +2 -2
  232. package/build-module/higher-order/with-spoken-messages/index.mjs +7 -5
  233. package/build-module/higher-order/with-spoken-messages/index.mjs.map +2 -2
  234. package/build-module/input-control/index.mjs +1 -0
  235. package/build-module/input-control/index.mjs.map +2 -2
  236. package/build-module/input-control/styles/input-control-styles.mjs +22 -22
  237. package/build-module/input-control/styles/input-control-styles.mjs.map +2 -2
  238. package/build-module/menu/popover.mjs +1 -0
  239. package/build-module/menu/popover.mjs.map +2 -2
  240. package/build-module/menu/styles.mjs +15 -15
  241. package/build-module/menu/styles.mjs.map +2 -2
  242. package/build-module/menu-item/index.mjs +1 -0
  243. package/build-module/menu-item/index.mjs.map +2 -2
  244. package/build-module/modal/index.mjs +1 -0
  245. package/build-module/modal/index.mjs.map +2 -2
  246. package/build-module/navigable-container/menu.mjs +1 -0
  247. package/build-module/navigable-container/menu.mjs.map +2 -2
  248. package/build-module/navigable-container/tabbable.mjs +1 -0
  249. package/build-module/navigable-container/tabbable.mjs.map +2 -2
  250. package/build-module/navigation/back-button/index.mjs +1 -0
  251. package/build-module/navigation/back-button/index.mjs.map +2 -2
  252. package/build-module/number-control/index.mjs +1 -0
  253. package/build-module/number-control/index.mjs.map +2 -2
  254. package/build-module/panel/body.mjs +1 -0
  255. package/build-module/panel/body.mjs.map +2 -2
  256. package/build-module/panel/index.mjs +1 -0
  257. package/build-module/panel/index.mjs.map +2 -2
  258. package/build-module/panel/row.mjs +1 -0
  259. package/build-module/panel/row.mjs.map +2 -2
  260. package/build-module/progress-bar/index.mjs +1 -0
  261. package/build-module/progress-bar/index.mjs.map +2 -2
  262. package/build-module/radio-group/index.mjs +1 -0
  263. package/build-module/radio-group/index.mjs.map +2 -2
  264. package/build-module/radio-group/radio.mjs +9 -4
  265. package/build-module/radio-group/radio.mjs.map +2 -2
  266. package/build-module/range-control/index.mjs +1 -0
  267. package/build-module/range-control/index.mjs.map +2 -2
  268. package/build-module/resizable-box/index.mjs +1 -0
  269. package/build-module/resizable-box/index.mjs.map +2 -2
  270. package/build-module/search-control/index.mjs +1 -0
  271. package/build-module/search-control/index.mjs.map +2 -2
  272. package/build-module/select-control/index.mjs +1 -0
  273. package/build-module/select-control/index.mjs.map +2 -2
  274. package/build-module/slot-fill/bubbles-virtually/slot.mjs +16 -4
  275. package/build-module/slot-fill/bubbles-virtually/slot.mjs.map +2 -2
  276. package/build-module/slot-fill/bubbles-virtually/use-slot-fills.mjs +17 -4
  277. package/build-module/slot-fill/bubbles-virtually/use-slot-fills.mjs.map +2 -2
  278. package/build-module/slot-fill/bubbles-virtually/use-slot.mjs +6 -2
  279. package/build-module/slot-fill/bubbles-virtually/use-slot.mjs.map +2 -2
  280. package/build-module/slot-fill/context.mjs +7 -2
  281. package/build-module/slot-fill/context.mjs.map +2 -2
  282. package/build-module/slot-fill/fill.mjs +30 -5
  283. package/build-module/slot-fill/fill.mjs.map +3 -3
  284. package/build-module/slot-fill/index.mjs +7 -21
  285. package/build-module/slot-fill/index.mjs.map +2 -2
  286. package/build-module/slot-fill/provider.mjs +33 -17
  287. package/build-module/slot-fill/provider.mjs.map +2 -2
  288. package/build-module/slot-fill/slot.mjs +7 -4
  289. package/build-module/slot-fill/slot.mjs.map +2 -2
  290. package/build-module/snackbar/index.mjs +1 -0
  291. package/build-module/snackbar/index.mjs.map +2 -2
  292. package/build-module/spinner/index.mjs +1 -0
  293. package/build-module/spinner/index.mjs.map +2 -2
  294. package/build-module/tab-panel/index.mjs +1 -0
  295. package/build-module/tab-panel/index.mjs.map +2 -2
  296. package/build-module/text-control/index.mjs +1 -0
  297. package/build-module/text-control/index.mjs.map +2 -2
  298. package/build-module/text-highlight/index.mjs +1 -0
  299. package/build-module/text-highlight/index.mjs.map +2 -2
  300. package/build-module/textarea-control/index.mjs +1 -0
  301. package/build-module/textarea-control/index.mjs.map +2 -2
  302. package/build-module/toggle-control/index.mjs +1 -0
  303. package/build-module/toggle-control/index.mjs.map +2 -2
  304. package/build-module/toggle-group-control/toggle-group-control/as-button-group.mjs +1 -0
  305. package/build-module/toggle-group-control/toggle-group-control/as-button-group.mjs.map +2 -2
  306. package/build-module/toggle-group-control/toggle-group-control/as-radio-group.mjs +1 -0
  307. package/build-module/toggle-group-control/toggle-group-control/as-radio-group.mjs.map +2 -2
  308. package/build-module/toggle-group-control/toggle-group-control-option/component.mjs +1 -0
  309. package/build-module/toggle-group-control/toggle-group-control-option/component.mjs.map +2 -2
  310. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.mjs +1 -0
  311. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.mjs.map +2 -2
  312. package/build-module/toolbar/toolbar/index.mjs +1 -0
  313. package/build-module/toolbar/toolbar/index.mjs.map +2 -2
  314. package/build-module/toolbar/toolbar/toolbar-container.mjs +1 -0
  315. package/build-module/toolbar/toolbar/toolbar-container.mjs.map +2 -2
  316. package/build-module/toolbar/toolbar-button/index.mjs +1 -0
  317. package/build-module/toolbar/toolbar-button/index.mjs.map +2 -2
  318. package/build-module/toolbar/toolbar-dropdown-menu/index.mjs +1 -0
  319. package/build-module/toolbar/toolbar-dropdown-menu/index.mjs.map +2 -2
  320. package/build-module/toolbar/toolbar-item/index.mjs +1 -0
  321. package/build-module/toolbar/toolbar-item/index.mjs.map +2 -2
  322. package/build-module/tooltip/index.mjs +1 -0
  323. package/build-module/tooltip/index.mjs.map +2 -2
  324. package/build-module/tree-grid/cell.mjs +1 -0
  325. package/build-module/tree-grid/cell.mjs.map +2 -2
  326. package/build-module/tree-grid/index.mjs +1 -0
  327. package/build-module/tree-grid/index.mjs.map +2 -2
  328. package/build-module/tree-grid/item.mjs +1 -0
  329. package/build-module/tree-grid/item.mjs.map +2 -2
  330. package/build-module/tree-grid/roving-tab-index-item.mjs +1 -0
  331. package/build-module/tree-grid/roving-tab-index-item.mjs.map +2 -2
  332. package/build-module/tree-grid/row.mjs +1 -0
  333. package/build-module/tree-grid/row.mjs.map +2 -2
  334. package/build-module/tree-select/index.mjs +12 -8
  335. package/build-module/tree-select/index.mjs.map +2 -2
  336. package/build-module/unit-control/index.mjs +1 -0
  337. package/build-module/unit-control/index.mjs.map +2 -2
  338. package/build-module/utils/dropdown-motion.mjs.map +2 -2
  339. package/build-module/validated-form-controls/components/checkbox-control.mjs +1 -0
  340. package/build-module/validated-form-controls/components/checkbox-control.mjs.map +2 -2
  341. package/build-module/validated-form-controls/components/combobox-control.mjs +1 -0
  342. package/build-module/validated-form-controls/components/combobox-control.mjs.map +2 -2
  343. package/build-module/validated-form-controls/components/custom-select-control.mjs +1 -0
  344. package/build-module/validated-form-controls/components/custom-select-control.mjs.map +2 -2
  345. package/build-module/validated-form-controls/components/form-token-field.mjs +1 -0
  346. package/build-module/validated-form-controls/components/form-token-field.mjs.map +2 -2
  347. package/build-module/validated-form-controls/components/input-control.mjs +1 -0
  348. package/build-module/validated-form-controls/components/input-control.mjs.map +2 -2
  349. package/build-module/validated-form-controls/components/number-control.mjs +1 -0
  350. package/build-module/validated-form-controls/components/number-control.mjs.map +2 -2
  351. package/build-module/validated-form-controls/components/radio-control.mjs +1 -0
  352. package/build-module/validated-form-controls/components/radio-control.mjs.map +2 -2
  353. package/build-module/validated-form-controls/components/range-control.mjs +1 -0
  354. package/build-module/validated-form-controls/components/range-control.mjs.map +2 -2
  355. package/build-module/validated-form-controls/components/select-control.mjs +1 -0
  356. package/build-module/validated-form-controls/components/select-control.mjs.map +2 -2
  357. package/build-module/validated-form-controls/components/text-control.mjs +1 -0
  358. package/build-module/validated-form-controls/components/text-control.mjs.map +2 -2
  359. package/build-module/validated-form-controls/components/textarea-control.mjs +1 -0
  360. package/build-module/validated-form-controls/components/textarea-control.mjs.map +2 -2
  361. package/build-module/validated-form-controls/components/toggle-control.mjs +1 -0
  362. package/build-module/validated-form-controls/components/toggle-control.mjs.map +2 -2
  363. package/build-module/validated-form-controls/components/toggle-group-control.mjs +1 -0
  364. package/build-module/validated-form-controls/components/toggle-group-control.mjs.map +2 -2
  365. package/build-module/validated-form-controls/control-with-error.mjs +1 -0
  366. package/build-module/validated-form-controls/control-with-error.mjs.map +2 -2
  367. package/build-types/alignment-matrix-control/stories/index.story.d.ts +2 -2
  368. package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -1
  369. package/build-types/angle-picker-control/index.d.ts.map +1 -1
  370. package/build-types/angle-picker-control/stories/index.story.d.ts +2 -2
  371. package/build-types/angle-picker-control/stories/index.story.d.ts.map +1 -1
  372. package/build-types/animate/stories/index.story.d.ts +8 -8
  373. package/build-types/animate/stories/index.story.d.ts.map +1 -1
  374. package/build-types/badge/stories/index.story.d.ts +1 -1
  375. package/build-types/badge/stories/index.story.d.ts.map +1 -1
  376. package/build-types/base-control/stories/index.story.d.ts +2 -2
  377. package/build-types/base-control/stories/index.story.d.ts.map +1 -1
  378. package/build-types/border-box-control/border-box-control-split-controls/component.d.ts.map +1 -1
  379. package/build-types/border-box-control/stories/index.story.d.ts +2 -2
  380. package/build-types/border-box-control/stories/index.story.d.ts.map +1 -1
  381. package/build-types/border-control/stories/index.story.d.ts +6 -6
  382. package/build-types/border-control/stories/index.story.d.ts.map +1 -1
  383. package/build-types/box-control/index.d.ts.map +1 -1
  384. package/build-types/box-control/stories/index.story.d.ts +8 -8
  385. package/build-types/box-control/stories/index.story.d.ts.map +1 -1
  386. package/build-types/button/deprecated.d.ts.map +1 -1
  387. package/build-types/button/index.d.ts +1 -1
  388. package/build-types/button/index.d.ts.map +1 -1
  389. package/build-types/button/stories/e2e/index.story.d.ts +2 -2
  390. package/build-types/button/stories/e2e/index.story.d.ts.map +1 -1
  391. package/build-types/button/stories/index.story.d.ts +9 -9
  392. package/build-types/button/stories/index.story.d.ts.map +1 -1
  393. package/build-types/button-group/index.d.ts.map +1 -1
  394. package/build-types/button-group/stories/index.story.d.ts +1 -1
  395. package/build-types/button-group/stories/index.story.d.ts.map +1 -1
  396. package/build-types/calendar/stories/date-calendar.story.d.ts +1 -1
  397. package/build-types/calendar/stories/date-calendar.story.d.ts.map +1 -1
  398. package/build-types/calendar/stories/date-range-calendar.story.d.ts +1 -1
  399. package/build-types/calendar/stories/date-range-calendar.story.d.ts.map +1 -1
  400. package/build-types/card/card-divider/hook.d.ts +1 -1
  401. package/build-types/card/stories/index.story.d.ts +1 -1
  402. package/build-types/card/stories/index.story.d.ts.map +1 -1
  403. package/build-types/checkbox-control/stories/index.story.d.ts +1 -1
  404. package/build-types/checkbox-control/stories/index.story.d.ts.map +1 -1
  405. package/build-types/circular-option-picker/circular-option-picker-option.d.ts.map +1 -1
  406. package/build-types/circular-option-picker/circular-option-picker.d.ts +1 -0
  407. package/build-types/circular-option-picker/circular-option-picker.d.ts.map +1 -1
  408. package/build-types/circular-option-picker/stories/index.story.d.ts +6 -6
  409. package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
  410. package/build-types/clipboard-button/index.d.ts.map +1 -1
  411. package/build-types/clipboard-button/types.d.ts +1 -0
  412. package/build-types/clipboard-button/types.d.ts.map +1 -1
  413. package/build-types/color-indicator/index.d.ts.map +1 -1
  414. package/build-types/color-indicator/stories/index.story.d.ts +1 -1
  415. package/build-types/color-indicator/stories/index.story.d.ts.map +1 -1
  416. package/build-types/color-palette/index.d.ts.map +1 -1
  417. package/build-types/color-palette/stories/index.story.d.ts +4 -4
  418. package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
  419. package/build-types/color-picker/stories/index.story.d.ts +1 -1
  420. package/build-types/color-picker/stories/index.story.d.ts.map +1 -1
  421. package/build-types/combobox-control/stories/index.story.d.ts +5 -5
  422. package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
  423. package/build-types/composite/legacy/stories/index.story.d.ts +1 -1
  424. package/build-types/composite/legacy/stories/index.story.d.ts.map +1 -1
  425. package/build-types/composite/legacy/stories/utils.d.ts +1 -1
  426. package/build-types/composite/legacy/stories/utils.d.ts.map +1 -1
  427. package/build-types/composite/stories/index.story.d.ts +1 -1
  428. package/build-types/composite/stories/index.story.d.ts.map +1 -1
  429. package/build-types/confirm-dialog/stories/index.story.d.ts +3 -3
  430. package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -1
  431. package/build-types/context/context-system-provider.d.ts.map +1 -1
  432. package/build-types/custom-gradient-picker/stories/index.story.d.ts +2 -2
  433. package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
  434. package/build-types/custom-select-control/stories/index.story.d.ts +4 -4
  435. package/build-types/custom-select-control/stories/index.story.d.ts.map +1 -1
  436. package/build-types/custom-select-control-v2/stories/index.story.d.ts +4 -4
  437. package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +1 -1
  438. package/build-types/date-time/date-time/index.d.ts.map +1 -1
  439. package/build-types/date-time/stories/date-time.story.d.ts +1 -1
  440. package/build-types/date-time/stories/date-time.story.d.ts.map +1 -1
  441. package/build-types/date-time/stories/date.story.d.ts +1 -1
  442. package/build-types/date-time/stories/date.story.d.ts.map +1 -1
  443. package/build-types/date-time/stories/time.story.d.ts +2 -2
  444. package/build-types/date-time/stories/time.story.d.ts.map +1 -1
  445. package/build-types/disabled/stories/index.story.d.ts +1 -1
  446. package/build-types/disabled/stories/index.story.d.ts.map +1 -1
  447. package/build-types/disclosure/index.d.ts.map +1 -1
  448. package/build-types/divider/stories/index.story.d.ts +1 -1
  449. package/build-types/divider/stories/index.story.d.ts.map +1 -1
  450. package/build-types/draggable/stories/index.story.d.ts +1 -1
  451. package/build-types/draggable/stories/index.story.d.ts.map +1 -1
  452. package/build-types/drop-zone/stories/index.story.d.ts +2 -2
  453. package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
  454. package/build-types/dropdown/stories/index.story.d.ts +1 -1
  455. package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
  456. package/build-types/dropdown-menu/stories/index.story.d.ts +1 -1
  457. package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
  458. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts +2 -2
  459. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts.map +1 -1
  460. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts +4 -4
  461. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts.map +1 -1
  462. package/build-types/elevation/stories/index.story.d.ts +1 -1
  463. package/build-types/elevation/stories/index.story.d.ts.map +1 -1
  464. package/build-types/external-link/index.d.ts.map +1 -1
  465. package/build-types/external-link/stories/index.story.d.ts +1 -1
  466. package/build-types/external-link/stories/index.story.d.ts.map +1 -1
  467. package/build-types/flex/stories/index.story.d.ts +1 -1
  468. package/build-types/flex/stories/index.story.d.ts.map +1 -1
  469. package/build-types/focal-point-picker/stories/index.story.d.ts +5 -5
  470. package/build-types/focal-point-picker/stories/index.story.d.ts.map +1 -1
  471. package/build-types/font-size-picker/index.d.ts.map +1 -1
  472. package/build-types/font-size-picker/stories/e2e/index.story.d.ts +1 -1
  473. package/build-types/font-size-picker/stories/e2e/index.story.d.ts.map +1 -1
  474. package/build-types/font-size-picker/stories/index.story.d.ts +1 -1
  475. package/build-types/font-size-picker/stories/index.story.d.ts.map +1 -1
  476. package/build-types/form-file-upload/index.d.ts.map +1 -1
  477. package/build-types/form-file-upload/stories/index.story.d.ts +6 -6
  478. package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
  479. package/build-types/form-toggle/index.d.ts.map +1 -1
  480. package/build-types/form-toggle/stories/index.story.d.ts +1 -1
  481. package/build-types/form-toggle/stories/index.story.d.ts.map +1 -1
  482. package/build-types/form-token-field/stories/index.story.d.ts +1 -1
  483. package/build-types/form-token-field/stories/index.story.d.ts.map +1 -1
  484. package/build-types/form-token-field/token-input.d.ts.map +1 -1
  485. package/build-types/gradient-picker/stories/index.story.d.ts +4 -4
  486. package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
  487. package/build-types/grid/stories/index.story.d.ts +1 -1
  488. package/build-types/grid/stories/index.story.d.ts.map +1 -1
  489. package/build-types/guide/stories/index.story.d.ts +2 -2
  490. package/build-types/guide/stories/index.story.d.ts.map +1 -1
  491. package/build-types/h-stack/stories/e2e/index.story.d.ts +1 -1
  492. package/build-types/h-stack/stories/e2e/index.story.d.ts.map +1 -1
  493. package/build-types/h-stack/stories/index.story.d.ts +1 -1
  494. package/build-types/h-stack/stories/index.story.d.ts.map +1 -1
  495. package/build-types/heading/stories/index.story.d.ts +1 -1
  496. package/build-types/heading/stories/index.story.d.ts.map +1 -1
  497. package/build-types/higher-order/navigate-regions/index.d.ts.map +1 -1
  498. package/build-types/higher-order/with-focus-outside/index.d.ts.map +1 -1
  499. package/build-types/higher-order/with-spoken-messages/index.d.ts.map +1 -1
  500. package/build-types/icon/stories/index.story.d.ts +5 -5
  501. package/build-types/icon/stories/index.story.d.ts.map +1 -1
  502. package/build-types/index.d.ts +1 -0
  503. package/build-types/index.d.ts.map +1 -1
  504. package/build-types/input-control/index.d.ts.map +1 -1
  505. package/build-types/input-control/stories/index.story.d.ts +8 -8
  506. package/build-types/input-control/stories/index.story.d.ts.map +1 -1
  507. package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
  508. package/build-types/item-group/stories/index.story.d.ts +1 -1
  509. package/build-types/item-group/stories/index.story.d.ts.map +1 -1
  510. package/build-types/keyboard-shortcuts/stories/index.story.d.ts +2 -2
  511. package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +1 -1
  512. package/build-types/menu/popover.d.ts.map +1 -1
  513. package/build-types/menu/stories/index.story.d.ts +1 -1
  514. package/build-types/menu/stories/index.story.d.ts.map +1 -1
  515. package/build-types/menu/styles.d.ts.map +1 -1
  516. package/build-types/menu-group/stories/index.story.d.ts +2 -2
  517. package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
  518. package/build-types/menu-item/index.d.ts.map +1 -1
  519. package/build-types/menu-item/stories/index.story.d.ts +5 -5
  520. package/build-types/menu-item/stories/index.story.d.ts.map +1 -1
  521. package/build-types/menu-items-choice/stories/index.story.d.ts +1 -1
  522. package/build-types/menu-items-choice/stories/index.story.d.ts.map +1 -1
  523. package/build-types/modal/index.d.ts.map +1 -1
  524. package/build-types/modal/stories/index.story.d.ts +1 -1
  525. package/build-types/modal/stories/index.story.d.ts.map +1 -1
  526. package/build-types/navigable-container/menu.d.ts.map +1 -1
  527. package/build-types/navigable-container/stories/navigable-menu.story.d.ts +1 -1
  528. package/build-types/navigable-container/stories/navigable-menu.story.d.ts.map +1 -1
  529. package/build-types/navigable-container/stories/tabbable-container.story.d.ts +1 -1
  530. package/build-types/navigable-container/stories/tabbable-container.story.d.ts.map +1 -1
  531. package/build-types/navigable-container/tabbable.d.ts.map +1 -1
  532. package/build-types/navigation/back-button/index.d.ts.map +1 -1
  533. package/build-types/navigation/stories/index.story.d.ts +7 -7
  534. package/build-types/navigation/stories/index.story.d.ts.map +1 -1
  535. package/build-types/navigation/stories/utils/controlled-state.d.ts +1 -1
  536. package/build-types/navigation/stories/utils/controlled-state.d.ts.map +1 -1
  537. package/build-types/navigation/stories/utils/default.d.ts +1 -1
  538. package/build-types/navigation/stories/utils/default.d.ts.map +1 -1
  539. package/build-types/navigation/stories/utils/group.d.ts +1 -1
  540. package/build-types/navigation/stories/utils/group.d.ts.map +1 -1
  541. package/build-types/navigation/stories/utils/hide-if-empty.d.ts +1 -1
  542. package/build-types/navigation/stories/utils/hide-if-empty.d.ts.map +1 -1
  543. package/build-types/navigation/stories/utils/more-examples.d.ts +1 -1
  544. package/build-types/navigation/stories/utils/more-examples.d.ts.map +1 -1
  545. package/build-types/navigation/stories/utils/search.d.ts +1 -1
  546. package/build-types/navigation/stories/utils/search.d.ts.map +1 -1
  547. package/build-types/navigator/stories/index.story.d.ts +1 -1
  548. package/build-types/navigator/stories/index.story.d.ts.map +1 -1
  549. package/build-types/notice/stories/index.story.d.ts +6 -6
  550. package/build-types/notice/stories/index.story.d.ts.map +1 -1
  551. package/build-types/number-control/index.d.ts.map +1 -1
  552. package/build-types/number-control/stories/index.story.d.ts +2 -2
  553. package/build-types/number-control/stories/index.story.d.ts.map +1 -1
  554. package/build-types/palette-edit/stories/index.story.d.ts +3 -3
  555. package/build-types/palette-edit/stories/index.story.d.ts.map +1 -1
  556. package/build-types/panel/body.d.ts.map +1 -1
  557. package/build-types/panel/index.d.ts.map +1 -1
  558. package/build-types/panel/row.d.ts.map +1 -1
  559. package/build-types/panel/stories/index.story.d.ts +1 -1
  560. package/build-types/panel/stories/index.story.d.ts.map +1 -1
  561. package/build-types/placeholder/stories/index.story.d.ts +1 -1
  562. package/build-types/placeholder/stories/index.story.d.ts.map +1 -1
  563. package/build-types/popover/stories/index.story.d.ts +1 -1
  564. package/build-types/popover/stories/index.story.d.ts.map +1 -1
  565. package/build-types/progress-bar/index.d.ts.map +1 -1
  566. package/build-types/progress-bar/stories/index.story.d.ts +2 -2
  567. package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
  568. package/build-types/query-controls/stories/index.story.d.ts +2 -2
  569. package/build-types/query-controls/stories/index.story.d.ts.map +1 -1
  570. package/build-types/radio-control/stories/index.story.d.ts +1 -1
  571. package/build-types/radio-control/stories/index.story.d.ts.map +1 -1
  572. package/build-types/radio-group/index.d.ts.map +1 -1
  573. package/build-types/radio-group/radio.d.ts.map +1 -1
  574. package/build-types/radio-group/stories/index.story.d.ts +1 -1
  575. package/build-types/radio-group/stories/index.story.d.ts.map +1 -1
  576. package/build-types/range-control/index.d.ts +2 -2
  577. package/build-types/range-control/index.d.ts.map +1 -1
  578. package/build-types/range-control/stories/index.story.d.ts +1 -1
  579. package/build-types/range-control/stories/index.story.d.ts.map +1 -1
  580. package/build-types/resizable-box/index.d.ts.map +1 -1
  581. package/build-types/resizable-box/stories/index.story.d.ts +3 -3
  582. package/build-types/resizable-box/stories/index.story.d.ts.map +1 -1
  583. package/build-types/responsive-wrapper/stories/index.story.d.ts +2 -2
  584. package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -1
  585. package/build-types/sandbox/stories/index.story.d.ts +2 -2
  586. package/build-types/sandbox/stories/index.story.d.ts.map +1 -1
  587. package/build-types/scroll-lock/stories/index.story.d.ts +1 -1
  588. package/build-types/scroll-lock/stories/index.story.d.ts.map +1 -1
  589. package/build-types/scrollable/stories/index.story.d.ts +1 -1
  590. package/build-types/scrollable/stories/index.story.d.ts.map +1 -1
  591. package/build-types/search-control/index.d.ts.map +1 -1
  592. package/build-types/search-control/stories/index.story.d.ts +2 -2
  593. package/build-types/search-control/stories/index.story.d.ts.map +1 -1
  594. package/build-types/select-control/index.d.ts.map +1 -1
  595. package/build-types/select-control/stories/index.story.d.ts +6 -6
  596. package/build-types/select-control/stories/index.story.d.ts.map +1 -1
  597. package/build-types/shortcut/stories/index.story.d.ts +2 -2
  598. package/build-types/shortcut/stories/index.story.d.ts.map +1 -1
  599. package/build-types/slot-fill/bubbles-virtually/slot.d.ts.map +1 -1
  600. package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts +1 -1
  601. package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts.map +1 -1
  602. package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts +2 -3
  603. package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts.map +1 -1
  604. package/build-types/slot-fill/context.d.ts +2 -2
  605. package/build-types/slot-fill/context.d.ts.map +1 -1
  606. package/build-types/slot-fill/fill.d.ts +1 -1
  607. package/build-types/slot-fill/fill.d.ts.map +1 -1
  608. package/build-types/slot-fill/index.d.ts +3 -4
  609. package/build-types/slot-fill/index.d.ts.map +1 -1
  610. package/build-types/slot-fill/provider.d.ts.map +1 -1
  611. package/build-types/slot-fill/stories/index.story.d.ts +1 -1
  612. package/build-types/slot-fill/stories/index.story.d.ts.map +1 -1
  613. package/build-types/slot-fill/types.d.ts +23 -25
  614. package/build-types/slot-fill/types.d.ts.map +1 -1
  615. package/build-types/snackbar/index.d.ts.map +1 -1
  616. package/build-types/snackbar/stories/index.story.d.ts +1 -1
  617. package/build-types/snackbar/stories/index.story.d.ts.map +1 -1
  618. package/build-types/snackbar/stories/list.story.d.ts +1 -1
  619. package/build-types/snackbar/stories/list.story.d.ts.map +1 -1
  620. package/build-types/spacer/stories/index.story.d.ts +1 -1
  621. package/build-types/spacer/stories/index.story.d.ts.map +1 -1
  622. package/build-types/spinner/index.d.ts.map +1 -1
  623. package/build-types/spinner/stories/index.story.d.ts +1 -1
  624. package/build-types/spinner/stories/index.story.d.ts.map +1 -1
  625. package/build-types/surface/stories/index.story.d.ts +1 -1
  626. package/build-types/surface/stories/index.story.d.ts.map +1 -1
  627. package/build-types/tab-panel/index.d.ts.map +1 -1
  628. package/build-types/tab-panel/stories/index.story.d.ts +5 -5
  629. package/build-types/tab-panel/stories/index.story.d.ts.map +1 -1
  630. package/build-types/tabs/stories/index.story.d.ts +8 -8
  631. package/build-types/tabs/stories/index.story.d.ts.map +1 -1
  632. package/build-types/text/stories/index.story.d.ts +4 -4
  633. package/build-types/text/stories/index.story.d.ts.map +1 -1
  634. package/build-types/text-control/index.d.ts.map +1 -1
  635. package/build-types/text-control/stories/index.story.d.ts +1 -1
  636. package/build-types/text-control/stories/index.story.d.ts.map +1 -1
  637. package/build-types/text-highlight/index.d.ts +4 -1
  638. package/build-types/text-highlight/index.d.ts.map +1 -1
  639. package/build-types/text-highlight/stories/index.story.d.ts +1 -1
  640. package/build-types/text-highlight/stories/index.story.d.ts.map +1 -1
  641. package/build-types/textarea-control/index.d.ts.map +1 -1
  642. package/build-types/textarea-control/stories/index.story.d.ts +1 -1
  643. package/build-types/textarea-control/stories/index.story.d.ts.map +1 -1
  644. package/build-types/theme/stories/index.story.d.ts +2 -2
  645. package/build-types/theme/stories/index.story.d.ts.map +1 -1
  646. package/build-types/tip/stories/index.story.d.ts +1 -1
  647. package/build-types/tip/stories/index.story.d.ts.map +1 -1
  648. package/build-types/toggle-control/index.d.ts.map +1 -1
  649. package/build-types/toggle-control/stories/index.story.d.ts +3 -3
  650. package/build-types/toggle-control/stories/index.story.d.ts.map +1 -1
  651. package/build-types/toggle-group-control/stories/index.story.d.ts +1 -1
  652. package/build-types/toggle-group-control/stories/index.story.d.ts.map +1 -1
  653. package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts.map +1 -1
  654. package/build-types/toggle-group-control/toggle-group-control-option-icon/component.d.ts.map +1 -1
  655. package/build-types/toolbar/stories/index.story.d.ts +4 -4
  656. package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
  657. package/build-types/toolbar/toolbar/index.d.ts.map +1 -1
  658. package/build-types/toolbar/toolbar/toolbar-container.d.ts.map +1 -1
  659. package/build-types/toolbar/toolbar-button/index.d.ts.map +1 -1
  660. package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts.map +1 -1
  661. package/build-types/toolbar/toolbar-item/index.d.ts.map +1 -1
  662. package/build-types/tools-panel/stories/index.story.d.ts +1 -1
  663. package/build-types/tools-panel/stories/index.story.d.ts.map +1 -1
  664. package/build-types/tooltip/index.d.ts.map +1 -1
  665. package/build-types/tooltip/stories/index.story.d.ts +2 -2
  666. package/build-types/tooltip/stories/index.story.d.ts.map +1 -1
  667. package/build-types/tree-grid/cell.d.ts.map +1 -1
  668. package/build-types/tree-grid/index.d.ts.map +1 -1
  669. package/build-types/tree-grid/item.d.ts.map +1 -1
  670. package/build-types/tree-grid/roving-tab-index-item.d.ts.map +1 -1
  671. package/build-types/tree-grid/row.d.ts.map +1 -1
  672. package/build-types/tree-grid/stories/index.story.d.ts +2 -2
  673. package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
  674. package/build-types/tree-select/index.d.ts.map +1 -1
  675. package/build-types/tree-select/stories/index.story.d.ts +2 -2
  676. package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
  677. package/build-types/truncate/stories/index.story.d.ts +1 -1
  678. package/build-types/truncate/stories/index.story.d.ts.map +1 -1
  679. package/build-types/unit-control/index.d.ts.map +1 -1
  680. package/build-types/unit-control/stories/index.story.d.ts +1 -1
  681. package/build-types/unit-control/stories/index.story.d.ts.map +1 -1
  682. package/build-types/utils/dropdown-motion.d.ts.map +1 -1
  683. package/build-types/v-stack/stories/e2e/index.story.d.ts +1 -1
  684. package/build-types/v-stack/stories/e2e/index.story.d.ts.map +1 -1
  685. package/build-types/v-stack/stories/index.story.d.ts +2 -2
  686. package/build-types/v-stack/stories/index.story.d.ts.map +1 -1
  687. package/build-types/validated-form-controls/components/range-control.d.ts.map +1 -1
  688. package/build-types/validated-form-controls/components/stories/checkbox-control.story.d.ts +1 -1
  689. package/build-types/validated-form-controls/components/stories/checkbox-control.story.d.ts.map +1 -1
  690. package/build-types/validated-form-controls/components/stories/combobox-control.story.d.ts +1 -1
  691. package/build-types/validated-form-controls/components/stories/combobox-control.story.d.ts.map +1 -1
  692. package/build-types/validated-form-controls/components/stories/custom-select-control.story.d.ts +1 -1
  693. package/build-types/validated-form-controls/components/stories/custom-select-control.story.d.ts.map +1 -1
  694. package/build-types/validated-form-controls/components/stories/form-token-field.story.d.ts +1 -1
  695. package/build-types/validated-form-controls/components/stories/form-token-field.story.d.ts.map +1 -1
  696. package/build-types/validated-form-controls/components/stories/input-control.story.d.ts +1 -1
  697. package/build-types/validated-form-controls/components/stories/input-control.story.d.ts.map +1 -1
  698. package/build-types/validated-form-controls/components/stories/number-control.story.d.ts +1 -1
  699. package/build-types/validated-form-controls/components/stories/number-control.story.d.ts.map +1 -1
  700. package/build-types/validated-form-controls/components/stories/overview.story.d.ts +1 -1
  701. package/build-types/validated-form-controls/components/stories/overview.story.d.ts.map +1 -1
  702. package/build-types/validated-form-controls/components/stories/radio-control.story.d.ts +1 -1
  703. package/build-types/validated-form-controls/components/stories/radio-control.story.d.ts.map +1 -1
  704. package/build-types/validated-form-controls/components/stories/range-control.story.d.ts +1 -1
  705. package/build-types/validated-form-controls/components/stories/range-control.story.d.ts.map +1 -1
  706. package/build-types/validated-form-controls/components/stories/select-control.story.d.ts +1 -1
  707. package/build-types/validated-form-controls/components/stories/select-control.story.d.ts.map +1 -1
  708. package/build-types/validated-form-controls/components/stories/story-utils.d.ts +1 -1
  709. package/build-types/validated-form-controls/components/stories/story-utils.d.ts.map +1 -1
  710. package/build-types/validated-form-controls/components/stories/text-control.story.d.ts +1 -1
  711. package/build-types/validated-form-controls/components/stories/text-control.story.d.ts.map +1 -1
  712. package/build-types/validated-form-controls/components/stories/textarea-control.story.d.ts +1 -1
  713. package/build-types/validated-form-controls/components/stories/textarea-control.story.d.ts.map +1 -1
  714. package/build-types/validated-form-controls/components/stories/toggle-control.story.d.ts +1 -1
  715. package/build-types/validated-form-controls/components/stories/toggle-control.story.d.ts.map +1 -1
  716. package/build-types/validated-form-controls/components/stories/toggle-group-control.story.d.ts +1 -1
  717. package/build-types/validated-form-controls/components/stories/toggle-group-control.story.d.ts.map +1 -1
  718. package/build-types/view/stories/index.story.d.ts +1 -1
  719. package/build-types/view/stories/index.story.d.ts.map +1 -1
  720. package/build-types/visually-hidden/stories/index.story.d.ts +1 -1
  721. package/build-types/visually-hidden/stories/index.story.d.ts.map +1 -1
  722. package/build-types/z-stack/stories/index.story.d.ts +1 -1
  723. package/build-types/z-stack/stories/index.story.d.ts.map +1 -1
  724. package/package.json +27 -25
  725. package/src/alignment-matrix-control/stories/index.story.tsx +1 -1
  726. package/src/angle-picker-control/index.tsx +1 -0
  727. package/src/angle-picker-control/stories/index.story.tsx +1 -1
  728. package/src/animate/stories/index.story.tsx +1 -1
  729. package/src/badge/stories/index.story.tsx +1 -1
  730. package/src/base-control/stories/index.story.tsx +4 -2
  731. package/src/border-box-control/border-box-control-split-controls/component.tsx +9 -0
  732. package/src/border-box-control/stories/index.story.tsx +3 -1
  733. package/src/border-box-control/test/index.tsx +51 -20
  734. package/src/border-control/stories/index.story.tsx +2 -1
  735. package/src/border-control/test/index.js +37 -34
  736. package/src/box-control/index.tsx +6 -0
  737. package/src/box-control/stories/index.story.tsx +3 -2
  738. package/src/button/deprecated.tsx +2 -0
  739. package/src/button/index.tsx +16 -15
  740. package/src/button/stories/e2e/index.story.tsx +9 -5
  741. package/src/button/stories/index.story.tsx +14 -11
  742. package/src/button/test/index.tsx +0 -5
  743. package/src/button-group/index.tsx +1 -0
  744. package/src/button-group/stories/index.story.tsx +5 -3
  745. package/src/calendar/stories/date-calendar.story.tsx +1 -1
  746. package/src/calendar/stories/date-range-calendar.story.tsx +1 -1
  747. package/src/card/stories/index.story.tsx +4 -2
  748. package/src/checkbox-control/stories/index.story.tsx +1 -1
  749. package/src/circular-option-picker/circular-option-picker-option.tsx +2 -1
  750. package/src/circular-option-picker/circular-option-picker.tsx +2 -0
  751. package/src/circular-option-picker/stories/index.story.tsx +1 -1
  752. package/src/clipboard-button/index.tsx +2 -0
  753. package/src/clipboard-button/types.ts +1 -0
  754. package/src/color-indicator/index.tsx +1 -0
  755. package/src/color-indicator/stories/index.story.tsx +1 -1
  756. package/src/color-palette/index.tsx +1 -0
  757. package/src/color-palette/stories/index.story.tsx +1 -1
  758. package/src/color-picker/stories/index.story.tsx +1 -1
  759. package/src/combobox-control/index.tsx +1 -1
  760. package/src/combobox-control/stories/index.story.tsx +2 -1
  761. package/src/composite/legacy/stories/index.story.tsx +1 -1
  762. package/src/composite/legacy/stories/utils.tsx +1 -1
  763. package/src/composite/stories/index.story.tsx +1 -1
  764. package/src/confirm-dialog/stories/index.story.tsx +6 -2
  765. package/src/context/context-system-provider.js +2 -1
  766. package/src/custom-gradient-picker/stories/index.story.tsx +1 -1
  767. package/src/custom-select-control/stories/index.story.tsx +2 -1
  768. package/src/custom-select-control-v2/stories/index.story.tsx +1 -1
  769. package/src/date-time/date-time/index.tsx +1 -0
  770. package/src/date-time/stories/date-time.story.tsx +1 -1
  771. package/src/date-time/stories/date.story.tsx +1 -1
  772. package/src/date-time/stories/time.story.tsx +1 -1
  773. package/src/disabled/stories/index.story.tsx +1 -1
  774. package/src/disclosure/index.tsx +1 -0
  775. package/src/divider/stories/index.story.tsx +1 -1
  776. package/src/draggable/stories/index.story.tsx +1 -1
  777. package/src/drop-zone/stories/index.story.tsx +1 -1
  778. package/src/dropdown/stories/index.story.tsx +2 -1
  779. package/src/dropdown-menu/stories/index.story.tsx +1 -1
  780. package/src/duotone-picker/duotone-picker.tsx +1 -1
  781. package/src/duotone-picker/stories/duotone-picker.story.tsx +1 -1
  782. package/src/duotone-picker/stories/duotone-swatch.story.tsx +1 -1
  783. package/src/elevation/stories/index.story.tsx +1 -1
  784. package/src/external-link/index.tsx +1 -0
  785. package/src/external-link/stories/index.story.tsx +1 -1
  786. package/src/flex/stories/index.story.tsx +1 -1
  787. package/src/focal-point-picker/stories/index.story.tsx +1 -1
  788. package/src/font-size-picker/index.tsx +1 -0
  789. package/src/font-size-picker/stories/e2e/index.story.tsx +3 -1
  790. package/src/font-size-picker/stories/index.story.tsx +2 -1
  791. package/src/form-file-upload/index.tsx +2 -0
  792. package/src/form-file-upload/stories/index.story.tsx +2 -2
  793. package/src/form-toggle/index.tsx +1 -0
  794. package/src/form-toggle/stories/index.story.tsx +1 -1
  795. package/src/form-token-field/stories/index.story.tsx +3 -1
  796. package/src/form-token-field/token-input.tsx +1 -0
  797. package/src/form-token-field/token.tsx +2 -2
  798. package/src/gradient-picker/stories/index.story.tsx +1 -1
  799. package/src/grid/stories/index.story.tsx +1 -1
  800. package/src/guide/stories/index.story.tsx +6 -2
  801. package/src/h-stack/stories/e2e/index.story.tsx +1 -1
  802. package/src/h-stack/stories/index.story.tsx +1 -1
  803. package/src/heading/stories/index.story.tsx +1 -1
  804. package/src/higher-order/navigate-regions/index.tsx +7 -5
  805. package/src/higher-order/with-fallback-styles/index.tsx +2 -2
  806. package/src/higher-order/with-focus-outside/index.tsx +25 -24
  807. package/src/higher-order/with-spoken-messages/index.tsx +10 -7
  808. package/src/icon/stories/index.story.tsx +1 -1
  809. package/src/index.ts +6 -0
  810. package/src/input-control/index.tsx +1 -0
  811. package/src/input-control/stories/index.story.tsx +3 -2
  812. package/src/input-control/styles/input-control-styles.tsx +0 -4
  813. package/src/item-group/stories/index.story.tsx +1 -1
  814. package/src/keyboard-shortcuts/stories/index.story.tsx +1 -1
  815. package/src/menu/popover.tsx +1 -0
  816. package/src/menu/stories/index.story.tsx +5 -2
  817. package/src/menu/styles.ts +36 -26
  818. package/src/menu-group/stories/index.story.tsx +1 -1
  819. package/src/menu-item/index.tsx +1 -0
  820. package/src/menu-item/stories/index.story.tsx +1 -1
  821. package/src/menu-items-choice/stories/index.story.tsx +1 -1
  822. package/src/modal/index.tsx +1 -0
  823. package/src/modal/stories/index.story.tsx +11 -3
  824. package/src/navigable-container/menu.tsx +1 -0
  825. package/src/navigable-container/stories/navigable-menu.story.tsx +1 -1
  826. package/src/navigable-container/stories/tabbable-container.story.tsx +1 -1
  827. package/src/navigable-container/tabbable.tsx +1 -0
  828. package/src/navigation/back-button/index.tsx +1 -0
  829. package/src/navigation/stories/index.story.tsx +1 -1
  830. package/src/navigation/stories/utils/controlled-state.tsx +4 -1
  831. package/src/navigation/stories/utils/default.tsx +1 -1
  832. package/src/navigation/stories/utils/group.tsx +1 -1
  833. package/src/navigation/stories/utils/hide-if-empty.tsx +1 -1
  834. package/src/navigation/stories/utils/more-examples.tsx +1 -1
  835. package/src/navigation/stories/utils/search.tsx +1 -1
  836. package/src/navigator/stories/index.story.tsx +2 -1
  837. package/src/navigator/test/index.tsx +1 -1
  838. package/src/notice/stories/index.story.tsx +1 -1
  839. package/src/number-control/index.tsx +1 -0
  840. package/src/number-control/stories/index.story.tsx +2 -1
  841. package/src/palette-edit/stories/index.story.tsx +1 -1
  842. package/src/panel/body.tsx +1 -0
  843. package/src/panel/index.tsx +1 -0
  844. package/src/panel/row.tsx +1 -0
  845. package/src/panel/stories/index.story.tsx +1 -1
  846. package/src/placeholder/stories/index.story.tsx +1 -1
  847. package/src/popover/stories/index.story.tsx +9 -2
  848. package/src/progress-bar/index.tsx +1 -0
  849. package/src/progress-bar/stories/index.story.tsx +1 -1
  850. package/src/query-controls/stories/index.story.tsx +1 -1
  851. package/src/radio-control/stories/index.story.tsx +1 -1
  852. package/src/radio-group/index.tsx +1 -0
  853. package/src/radio-group/radio.tsx +3 -0
  854. package/src/radio-group/stories/index.story.tsx +1 -1
  855. package/src/range-control/index.tsx +1 -0
  856. package/src/range-control/stories/index.story.tsx +5 -1
  857. package/src/resizable-box/index.tsx +1 -0
  858. package/src/resizable-box/stories/index.story.tsx +1 -1
  859. package/src/responsive-wrapper/stories/index.story.tsx +1 -1
  860. package/src/sandbox/stories/index.story.tsx +1 -1
  861. package/src/scroll-lock/stories/index.story.tsx +6 -2
  862. package/src/scrollable/stories/index.story.tsx +1 -1
  863. package/src/search-control/index.tsx +1 -0
  864. package/src/search-control/stories/index.story.tsx +1 -1
  865. package/src/select-control/index.tsx +3 -0
  866. package/src/select-control/stories/index.story.tsx +3 -1
  867. package/src/shortcut/stories/index.story.tsx +1 -1
  868. package/src/slot-fill/bubbles-virtually/slot.tsx +16 -9
  869. package/src/slot-fill/bubbles-virtually/use-slot-fills.ts +30 -4
  870. package/src/slot-fill/bubbles-virtually/use-slot.ts +7 -3
  871. package/src/slot-fill/context.ts +15 -4
  872. package/src/slot-fill/fill.tsx +74 -0
  873. package/src/slot-fill/index.tsx +17 -33
  874. package/src/slot-fill/provider.tsx +49 -35
  875. package/src/slot-fill/slot.tsx +4 -4
  876. package/src/slot-fill/stories/index.story.tsx +1 -1
  877. package/src/slot-fill/test/__snapshots__/slot.js.snap +14 -0
  878. package/src/slot-fill/test/slot.js +24 -1
  879. package/src/slot-fill/types.ts +16 -32
  880. package/src/snackbar/index.tsx +1 -0
  881. package/src/snackbar/stories/index.story.tsx +1 -1
  882. package/src/snackbar/stories/list.story.tsx +1 -1
  883. package/src/spacer/stories/index.story.tsx +1 -1
  884. package/src/spinner/index.tsx +1 -0
  885. package/src/spinner/stories/index.story.tsx +1 -1
  886. package/src/surface/stories/index.story.tsx +1 -1
  887. package/src/tab-panel/index.tsx +1 -0
  888. package/src/tab-panel/stories/index.story.tsx +1 -1
  889. package/src/tabs/stories/index.story.tsx +11 -3
  890. package/src/text/stories/index.story.tsx +1 -1
  891. package/src/text-control/index.tsx +1 -0
  892. package/src/text-control/stories/index.story.tsx +2 -1
  893. package/src/text-highlight/index.tsx +2 -0
  894. package/src/text-highlight/stories/index.story.tsx +1 -1
  895. package/src/textarea-control/index.tsx +1 -0
  896. package/src/textarea-control/stories/index.story.tsx +1 -1
  897. package/src/theme/stories/index.story.tsx +8 -4
  898. package/src/tip/stories/index.story.tsx +1 -1
  899. package/src/toggle-control/index.tsx +1 -0
  900. package/src/toggle-control/stories/index.story.tsx +1 -1
  901. package/src/toggle-group-control/stories/index.story.tsx +1 -1
  902. package/src/toggle-group-control/toggle-group-control/as-button-group.tsx +1 -0
  903. package/src/toggle-group-control/toggle-group-control/as-radio-group.tsx +1 -0
  904. package/src/toggle-group-control/toggle-group-control-option/component.tsx +1 -0
  905. package/src/toggle-group-control/toggle-group-control-option-icon/component.tsx +1 -0
  906. package/src/toolbar/stories/index.story.tsx +1 -1
  907. package/src/toolbar/toolbar/index.tsx +1 -0
  908. package/src/toolbar/toolbar/toolbar-container.tsx +1 -0
  909. package/src/toolbar/toolbar-button/index.tsx +1 -0
  910. package/src/toolbar/toolbar-dropdown-menu/index.tsx +1 -0
  911. package/src/toolbar/toolbar-item/index.tsx +1 -0
  912. package/src/tools-panel/stories/index.story.tsx +1 -1
  913. package/src/tooltip/index.tsx +1 -0
  914. package/src/tooltip/stories/index.story.tsx +14 -4
  915. package/src/tree-grid/cell.tsx +1 -0
  916. package/src/tree-grid/index.tsx +1 -0
  917. package/src/tree-grid/item.tsx +1 -0
  918. package/src/tree-grid/roving-tab-index-item.tsx +1 -0
  919. package/src/tree-grid/row.tsx +1 -0
  920. package/src/tree-grid/stories/index.story.tsx +6 -2
  921. package/src/tree-select/index.tsx +2 -0
  922. package/src/tree-select/stories/index.story.tsx +2 -1
  923. package/src/truncate/stories/index.story.tsx +1 -1
  924. package/src/unit-control/index.tsx +1 -0
  925. package/src/unit-control/stories/index.story.tsx +3 -1
  926. package/src/utils/dropdown-motion.ts +1 -0
  927. package/src/v-stack/stories/e2e/index.story.tsx +1 -1
  928. package/src/v-stack/stories/index.story.tsx +1 -1
  929. package/src/validated-form-controls/components/checkbox-control.tsx +1 -0
  930. package/src/validated-form-controls/components/combobox-control.tsx +1 -0
  931. package/src/validated-form-controls/components/custom-select-control.tsx +1 -0
  932. package/src/validated-form-controls/components/form-token-field.tsx +1 -0
  933. package/src/validated-form-controls/components/input-control.tsx +1 -0
  934. package/src/validated-form-controls/components/number-control.tsx +1 -0
  935. package/src/validated-form-controls/components/radio-control.tsx +1 -0
  936. package/src/validated-form-controls/components/range-control.tsx +1 -0
  937. package/src/validated-form-controls/components/select-control.tsx +1 -0
  938. package/src/validated-form-controls/components/stories/checkbox-control.story.tsx +1 -1
  939. package/src/validated-form-controls/components/stories/combobox-control.story.tsx +1 -1
  940. package/src/validated-form-controls/components/stories/custom-select-control.story.tsx +1 -1
  941. package/src/validated-form-controls/components/stories/form-token-field.story.tsx +1 -1
  942. package/src/validated-form-controls/components/stories/input-control.story.tsx +1 -1
  943. package/src/validated-form-controls/components/stories/number-control.story.tsx +1 -1
  944. package/src/validated-form-controls/components/stories/overview.story.tsx +1 -1
  945. package/src/validated-form-controls/components/stories/radio-control.story.tsx +1 -1
  946. package/src/validated-form-controls/components/stories/range-control.story.tsx +1 -1
  947. package/src/validated-form-controls/components/stories/select-control.story.tsx +1 -1
  948. package/src/validated-form-controls/components/stories/story-utils.tsx +1 -1
  949. package/src/validated-form-controls/components/stories/text-control.story.tsx +1 -1
  950. package/src/validated-form-controls/components/stories/textarea-control.story.tsx +1 -1
  951. package/src/validated-form-controls/components/stories/toggle-control.story.tsx +1 -1
  952. package/src/validated-form-controls/components/stories/toggle-group-control.story.tsx +1 -1
  953. package/src/validated-form-controls/components/text-control.tsx +1 -0
  954. package/src/validated-form-controls/components/textarea-control.tsx +1 -0
  955. package/src/validated-form-controls/components/toggle-control.tsx +1 -0
  956. package/src/validated-form-controls/components/toggle-group-control.tsx +1 -0
  957. package/src/validated-form-controls/control-with-error.tsx +1 -0
  958. package/src/view/stories/index.story.tsx +1 -1
  959. package/src/visually-hidden/stories/index.story.tsx +1 -1
  960. package/src/z-stack/stories/index.story.tsx +1 -1
  961. package/build/slot-fill/bubbles-virtually/fill.cjs +0 -63
  962. package/build/slot-fill/bubbles-virtually/fill.cjs.map +0 -7
  963. package/build/slot-fill/bubbles-virtually/slot-fill-context.cjs +0 -59
  964. package/build/slot-fill/bubbles-virtually/slot-fill-context.cjs.map +0 -7
  965. package/build/slot-fill/bubbles-virtually/slot-fill-provider.cjs +0 -105
  966. package/build/slot-fill/bubbles-virtually/slot-fill-provider.cjs.map +0 -7
  967. package/build-module/slot-fill/bubbles-virtually/fill.mjs +0 -32
  968. package/build-module/slot-fill/bubbles-virtually/fill.mjs.map +0 -7
  969. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.mjs +0 -28
  970. package/build-module/slot-fill/bubbles-virtually/slot-fill-context.mjs.map +0 -7
  971. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.mjs +0 -74
  972. package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.mjs.map +0 -7
  973. package/build-types/slot-fill/bubbles-virtually/fill.d.ts +0 -3
  974. package/build-types/slot-fill/bubbles-virtually/fill.d.ts.map +0 -1
  975. package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts +0 -7
  976. package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts.map +0 -1
  977. package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts +0 -3
  978. package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts.map +0 -1
  979. package/src/slot-fill/bubbles-virtually/fill.tsx +0 -50
  980. package/src/slot-fill/bubbles-virtually/slot-fill-context.ts +0 -34
  981. package/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx +0 -106
  982. package/src/slot-fill/fill.ts +0 -32
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/utils/dropdown-motion.ts"],
4
- "sourcesContent": ["// Motion configuration for dropdown-like popovers.\n\nexport const DROPDOWN_MOTION = Object.freeze({\n SLIDE_DISTANCE: 4,\n SLIDE_DURATION: 200,\n SLIDE_EASING: {\n function: 'cubic-bezier',\n args: [0, 0, 0, 1]\n },\n FADE_DURATION: 80,\n FADE_EASING: {\n function: 'linear'\n }\n});\nconst convertEasingToString = easing => {\n if (easing.args?.length) {\n return `${easing.function}(${easing.args.join(',')})`;\n }\n return easing.function;\n};\nexport const DROPDOWN_MOTION_CSS = Object.freeze({\n SLIDE_DISTANCE: `${DROPDOWN_MOTION.SLIDE_DISTANCE}px`,\n SLIDE_DURATION: `${DROPDOWN_MOTION.SLIDE_DURATION}ms`,\n SLIDE_EASING: convertEasingToString(DROPDOWN_MOTION.SLIDE_EASING),\n FADE_DURATION: `${DROPDOWN_MOTION.FADE_DURATION}ms`,\n FADE_EASING: convertEasingToString(DROPDOWN_MOTION.FADE_EASING)\n});"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,kBAAkB,OAAO,OAAO;AAAA,EAC3C,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,cAAc;AAAA,IACZ,UAAU;AAAA,IACV,MAAM,CAAC,GAAG,GAAG,GAAG,CAAC;AAAA,EACnB;AAAA,EACA,eAAe;AAAA,EACf,aAAa;AAAA,IACX,UAAU;AAAA,EACZ;AACF,CAAC;AACD,IAAM,wBAAwB,YAAU;AACtC,MAAI,OAAO,MAAM,QAAQ;AACvB,WAAO,GAAG,OAAO,QAAQ,IAAI,OAAO,KAAK,KAAK,GAAG,CAAC;AAAA,EACpD;AACA,SAAO,OAAO;AAChB;AACO,IAAM,sBAAsB,OAAO,OAAO;AAAA,EAC/C,gBAAgB,GAAG,gBAAgB,cAAc;AAAA,EACjD,gBAAgB,GAAG,gBAAgB,cAAc;AAAA,EACjD,cAAc,sBAAsB,gBAAgB,YAAY;AAAA,EAChE,eAAe,GAAG,gBAAgB,aAAa;AAAA,EAC/C,aAAa,sBAAsB,gBAAgB,WAAW;AAChE,CAAC;",
4
+ "sourcesContent": ["// Motion configuration for dropdown-like popovers.\n// Keep constants in sync with: packages/ui/src/utils/css/dropdown-motion.module.css\n\nexport const DROPDOWN_MOTION = Object.freeze({\n SLIDE_DISTANCE: 4,\n SLIDE_DURATION: 200,\n SLIDE_EASING: {\n function: 'cubic-bezier',\n args: [0, 0, 0, 1]\n },\n FADE_DURATION: 80,\n FADE_EASING: {\n function: 'linear'\n }\n});\nconst convertEasingToString = easing => {\n if (easing.args?.length) {\n return `${easing.function}(${easing.args.join(',')})`;\n }\n return easing.function;\n};\nexport const DROPDOWN_MOTION_CSS = Object.freeze({\n SLIDE_DISTANCE: `${DROPDOWN_MOTION.SLIDE_DISTANCE}px`,\n SLIDE_DURATION: `${DROPDOWN_MOTION.SLIDE_DURATION}ms`,\n SLIDE_EASING: convertEasingToString(DROPDOWN_MOTION.SLIDE_EASING),\n FADE_DURATION: `${DROPDOWN_MOTION.FADE_DURATION}ms`,\n FADE_EASING: convertEasingToString(DROPDOWN_MOTION.FADE_EASING)\n});"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,IAAM,kBAAkB,OAAO,OAAO;AAAA,EAC3C,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,cAAc;AAAA,IACZ,UAAU;AAAA,IACV,MAAM,CAAC,GAAG,GAAG,GAAG,CAAC;AAAA,EACnB;AAAA,EACA,eAAe;AAAA,EACf,aAAa;AAAA,IACX,UAAU;AAAA,EACZ;AACF,CAAC;AACD,IAAM,wBAAwB,YAAU;AACtC,MAAI,OAAO,MAAM,QAAQ;AACvB,WAAO,GAAG,OAAO,QAAQ,IAAI,OAAO,KAAK,KAAK,GAAG,CAAC;AAAA,EACpD;AACA,SAAO,OAAO;AAChB;AACO,IAAM,sBAAsB,OAAO,OAAO;AAAA,EAC/C,gBAAgB,GAAG,gBAAgB,cAAc;AAAA,EACjD,gBAAgB,GAAG,gBAAgB,cAAc;AAAA,EACjD,cAAc,sBAAsB,gBAAgB,YAAY;AAAA,EAChE,eAAe,GAAG,gBAAgB,aAAa;AAAA,EAC/C,aAAa,sBAAsB,gBAAgB,WAAW;AAChE,CAAC;",
6
6
  "names": []
7
7
  }
@@ -61,6 +61,7 @@ var UnforwardedValidatedCheckboxControl = ({
61
61
  });
62
62
  };
63
63
  var ValidatedCheckboxControl = (0, import_element.forwardRef)(UnforwardedValidatedCheckboxControl);
64
+ ValidatedCheckboxControl.displayName = "ValidatedCheckboxControl";
64
65
  // Annotate the CommonJS export names for ESM import in node:
65
66
  0 && (module.exports = {
66
67
  ValidatedCheckboxControl
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/validated-form-controls/components/checkbox-control.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useMergeRefs } from '@wordpress/compose';\nimport { forwardRef, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport CheckboxControl from '../../checkbox-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedCheckboxControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n ref: mergedRefs,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current?.querySelector('input[type=\"checkbox\"]'),\n children: /*#__PURE__*/_jsx(CheckboxControl\n // TODO: Upstream limitation - CheckboxControl doesn't support uncontrolled mode, visually.\n , {\n ...restProps\n })\n });\n};\nexport const ValidatedCheckboxControl = forwardRef(UnforwardedValidatedCheckboxControl);"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA6B;AAC7B,qBAAmC;AAKnC,gCAAiC;AACjC,8BAA4B;AAC5B,yBAA4B;AAC5B,IAAM,sCAAsC,CAAC;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA,KAAK;AAAA,IACL;AAAA,IACA,mBAAmB,MAAM,kBAAkB,SAAS,cAAc,wBAAwB;AAAA,IAC1F,UAAuB,uCAAAA;AAAA,MAAK,wBAAAC;AAAA,MAE1B;AAAA,QACA,GAAG;AAAA,MACL;AAAA,IAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,+BAA2B,2BAAW,mCAAmC;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useMergeRefs } from '@wordpress/compose';\nimport { forwardRef, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport CheckboxControl from '../../checkbox-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedCheckboxControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n ref: mergedRefs,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current?.querySelector('input[type=\"checkbox\"]'),\n children: /*#__PURE__*/_jsx(CheckboxControl\n // TODO: Upstream limitation - CheckboxControl doesn't support uncontrolled mode, visually.\n , {\n ...restProps\n })\n });\n};\nexport const ValidatedCheckboxControl = forwardRef(UnforwardedValidatedCheckboxControl);\nValidatedCheckboxControl.displayName = 'ValidatedCheckboxControl';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA6B;AAC7B,qBAAmC;AAKnC,gCAAiC;AACjC,8BAA4B;AAC5B,yBAA4B;AAC5B,IAAM,sCAAsC,CAAC;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA,KAAK;AAAA,IACL;AAAA,IACA,mBAAmB,MAAM,kBAAkB,SAAS,cAAc,wBAAwB;AAAA,IAC1F,UAAuB,uCAAAA;AAAA,MAAK,wBAAAC;AAAA,MAE1B;AAAA,QACA,GAAG;AAAA,MACL;AAAA,IAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,+BAA2B,2BAAW,mCAAmC;AACtF,yBAAyB,cAAc;",
6
6
  "names": ["_jsx", "CheckboxControl"]
7
7
  }
@@ -68,6 +68,7 @@ var UnforwardedValidatedComboboxControl = ({
68
68
  );
69
69
  };
70
70
  var ValidatedComboboxControl = (0, import_element.forwardRef)(UnforwardedValidatedComboboxControl);
71
+ ValidatedComboboxControl.displayName = "ValidatedComboboxControl";
71
72
  // Annotate the CommonJS export names for ESM import in node:
72
73
  0 && (module.exports = {
73
74
  ValidatedComboboxControl
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/validated-form-controls/components/combobox-control.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useMergeRefs } from '@wordpress/compose';\nimport { forwardRef, useEffect, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport ComboboxControl from '../../combobox-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedComboboxControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n\n // TODO: Upstream limitation - The `required` attribute is not passed down to the input,\n // so we need to set it manually.\n useEffect(() => {\n const input = validityTargetRef.current?.querySelector('input[role=\"combobox\"]');\n if (input) {\n input.required = required !== null && required !== void 0 ? required : false;\n }\n }, [required]);\n return (\n /*#__PURE__*/\n // TODO: Bug - Missing value error is not cleared immediately on change, waits for blur.\n _jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n ref: mergedRefs,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current?.querySelector('input[role=\"combobox\"]'),\n children: /*#__PURE__*/_jsx(ComboboxControl, {\n __next40pxDefaultSize: true,\n ...restProps\n })\n })\n );\n};\nexport const ValidatedComboboxControl = forwardRef(UnforwardedValidatedComboboxControl);"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA6B;AAC7B,qBAA8C;AAK9C,gCAAiC;AACjC,8BAA4B;AAC5B,yBAA4B;AAC5B,IAAM,sCAAsC,CAAC;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AAIjE,gCAAU,MAAM;AACd,UAAM,QAAQ,kBAAkB,SAAS,cAAc,wBAAwB;AAC/E,QAAI,OAAO;AACT,YAAM,WAAW,aAAa,QAAQ,aAAa,SAAS,WAAW;AAAA,IACzE;AAAA,EACF,GAAG,CAAC,QAAQ,CAAC;AACb;AAAA;AAAA,IAGE,uCAAAA,KAAK,4CAAkB;AAAA,MACrB;AAAA,MACA;AAAA,MACA,KAAK;AAAA,MACL;AAAA,MACA,mBAAmB,MAAM,kBAAkB,SAAS,cAAc,wBAAwB;AAAA,MAC1F,UAAuB,uCAAAA,KAAK,wBAAAC,SAAiB;AAAA,QAC3C,uBAAuB;AAAA,QACvB,GAAG;AAAA,MACL,CAAC;AAAA,IACH,CAAC;AAAA;AAEL;AACO,IAAM,+BAA2B,2BAAW,mCAAmC;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useMergeRefs } from '@wordpress/compose';\nimport { forwardRef, useEffect, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport ComboboxControl from '../../combobox-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedComboboxControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n\n // TODO: Upstream limitation - The `required` attribute is not passed down to the input,\n // so we need to set it manually.\n useEffect(() => {\n const input = validityTargetRef.current?.querySelector('input[role=\"combobox\"]');\n if (input) {\n input.required = required !== null && required !== void 0 ? required : false;\n }\n }, [required]);\n return (\n /*#__PURE__*/\n // TODO: Bug - Missing value error is not cleared immediately on change, waits for blur.\n _jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n ref: mergedRefs,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current?.querySelector('input[role=\"combobox\"]'),\n children: /*#__PURE__*/_jsx(ComboboxControl, {\n __next40pxDefaultSize: true,\n ...restProps\n })\n })\n );\n};\nexport const ValidatedComboboxControl = forwardRef(UnforwardedValidatedComboboxControl);\nValidatedComboboxControl.displayName = 'ValidatedComboboxControl';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA6B;AAC7B,qBAA8C;AAK9C,gCAAiC;AACjC,8BAA4B;AAC5B,yBAA4B;AAC5B,IAAM,sCAAsC,CAAC;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AAIjE,gCAAU,MAAM;AACd,UAAM,QAAQ,kBAAkB,SAAS,cAAc,wBAAwB;AAC/E,QAAI,OAAO;AACT,YAAM,WAAW,aAAa,QAAQ,aAAa,SAAS,WAAW;AAAA,IACzE;AAAA,EACF,GAAG,CAAC,QAAQ,CAAC;AACb;AAAA;AAAA,IAGE,uCAAAA,KAAK,4CAAkB;AAAA,MACrB;AAAA,MACA;AAAA,MACA,KAAK;AAAA,MACL;AAAA,MACA,mBAAmB,MAAM,kBAAkB,SAAS,cAAc,wBAAwB;AAAA,MAC1F,UAAuB,uCAAAA,KAAK,wBAAAC,SAAiB;AAAA,QAC3C,uBAAuB;AAAA,QACvB,GAAG;AAAA,MACL,CAAC;AAAA,IACH,CAAC;AAAA;AAEL;AACO,IAAM,+BAA2B,2BAAW,mCAAmC;AACtF,yBAAyB,cAAc;",
6
6
  "names": ["_jsx", "ComboboxControl"]
7
7
  }
@@ -81,6 +81,7 @@ var UnforwardedValidatedCustomSelectControl = ({
81
81
  });
82
82
  };
83
83
  var ValidatedCustomSelectControl = (0, import_element.forwardRef)(UnforwardedValidatedCustomSelectControl);
84
+ ValidatedCustomSelectControl.displayName = "ValidatedCustomSelectControl";
84
85
  // Annotate the CommonJS export names for ESM import in node:
85
86
  0 && (module.exports = {
86
87
  ValidatedCustomSelectControl
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/validated-form-controls/components/custom-select-control.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport CustomSelectControl from '../../custom-select-control';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst UnforwardedValidatedCustomSelectControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n return /*#__PURE__*/_jsxs(\"div\", {\n className: \"components-validated-control__wrapper-with-error-delegate\",\n ref: forwardedRef,\n children: [/*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(CustomSelectControl\n // TODO: Upstream limitation - Required isn't passed down correctly,\n // so it needs to be set on a delegate element.\n , {\n __next40pxDefaultSize: true,\n ...restProps\n })\n }), /*#__PURE__*/_jsxs(\"select\", {\n className: \"components-validated-control__error-delegate\",\n ref: validityTargetRef,\n required: required,\n tabIndex: -1,\n value: restProps.value?.key ? 'hasvalue' : '',\n onChange: () => {},\n onFocus: e => {\n e.target.previousElementSibling?.querySelector('[role=\"combobox\"]')?.focus();\n },\n children: [/*#__PURE__*/_jsx(\"option\", {\n value: \"\",\n children: \"No selection\"\n }), /*#__PURE__*/_jsx(\"option\", {\n value: \"hasvalue\",\n children: \"Has selection\"\n })]\n })]\n });\n};\nexport const ValidatedCustomSelectControl = forwardRef(UnforwardedValidatedCustomSelectControl);"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAmC;AAKnC,gCAAiC;AACjC,mCAAgC;AAChC,yBAA2C;AAC3C,IAAM,0CAA0C,CAAC;AAAA,EAC/C;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,SAAoB,uCAAAA,MAAM,OAAO;AAAA,IAC/B,WAAW;AAAA,IACX,KAAK;AAAA,IACL,UAAU,CAAc,uCAAAC,KAAK,4CAAkB;AAAA,MAC7C;AAAA,MACA;AAAA,MACA;AAAA,MACA,mBAAmB,MAAM,kBAAkB;AAAA,MAC3C,UAAuB,uCAAAA;AAAA,QAAK,6BAAAC;AAAA,QAG1B;AAAA,UACA,uBAAuB;AAAA,UACvB,GAAG;AAAA,QACL;AAAA,MAAC;AAAA,IACH,CAAC,GAAgB,uCAAAF,MAAM,UAAU;AAAA,MAC/B,WAAW;AAAA,MACX,KAAK;AAAA,MACL;AAAA,MACA,UAAU;AAAA,MACV,OAAO,UAAU,OAAO,MAAM,aAAa;AAAA,MAC3C,UAAU,MAAM;AAAA,MAAC;AAAA,MACjB,SAAS,OAAK;AACZ,UAAE,OAAO,wBAAwB,cAAc,mBAAmB,GAAG,MAAM;AAAA,MAC7E;AAAA,MACA,UAAU,CAAc,uCAAAC,KAAK,UAAU;AAAA,QACrC,OAAO;AAAA,QACP,UAAU;AAAA,MACZ,CAAC,GAAgB,uCAAAA,KAAK,UAAU;AAAA,QAC9B,OAAO;AAAA,QACP,UAAU;AAAA,MACZ,CAAC,CAAC;AAAA,IACJ,CAAC,CAAC;AAAA,EACJ,CAAC;AACH;AACO,IAAM,mCAA+B,2BAAW,uCAAuC;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport CustomSelectControl from '../../custom-select-control';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst UnforwardedValidatedCustomSelectControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n return /*#__PURE__*/_jsxs(\"div\", {\n className: \"components-validated-control__wrapper-with-error-delegate\",\n ref: forwardedRef,\n children: [/*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(CustomSelectControl\n // TODO: Upstream limitation - Required isn't passed down correctly,\n // so it needs to be set on a delegate element.\n , {\n __next40pxDefaultSize: true,\n ...restProps\n })\n }), /*#__PURE__*/_jsxs(\"select\", {\n className: \"components-validated-control__error-delegate\",\n ref: validityTargetRef,\n required: required,\n tabIndex: -1,\n value: restProps.value?.key ? 'hasvalue' : '',\n onChange: () => {},\n onFocus: e => {\n e.target.previousElementSibling?.querySelector('[role=\"combobox\"]')?.focus();\n },\n children: [/*#__PURE__*/_jsx(\"option\", {\n value: \"\",\n children: \"No selection\"\n }), /*#__PURE__*/_jsx(\"option\", {\n value: \"hasvalue\",\n children: \"Has selection\"\n })]\n })]\n });\n};\nexport const ValidatedCustomSelectControl = forwardRef(UnforwardedValidatedCustomSelectControl);\nValidatedCustomSelectControl.displayName = 'ValidatedCustomSelectControl';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAmC;AAKnC,gCAAiC;AACjC,mCAAgC;AAChC,yBAA2C;AAC3C,IAAM,0CAA0C,CAAC;AAAA,EAC/C;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,SAAoB,uCAAAA,MAAM,OAAO;AAAA,IAC/B,WAAW;AAAA,IACX,KAAK;AAAA,IACL,UAAU,CAAc,uCAAAC,KAAK,4CAAkB;AAAA,MAC7C;AAAA,MACA;AAAA,MACA;AAAA,MACA,mBAAmB,MAAM,kBAAkB;AAAA,MAC3C,UAAuB,uCAAAA;AAAA,QAAK,6BAAAC;AAAA,QAG1B;AAAA,UACA,uBAAuB;AAAA,UACvB,GAAG;AAAA,QACL;AAAA,MAAC;AAAA,IACH,CAAC,GAAgB,uCAAAF,MAAM,UAAU;AAAA,MAC/B,WAAW;AAAA,MACX,KAAK;AAAA,MACL;AAAA,MACA,UAAU;AAAA,MACV,OAAO,UAAU,OAAO,MAAM,aAAa;AAAA,MAC3C,UAAU,MAAM;AAAA,MAAC;AAAA,MACjB,SAAS,OAAK;AACZ,UAAE,OAAO,wBAAwB,cAAc,mBAAmB,GAAG,MAAM;AAAA,MAC7E;AAAA,MACA,UAAU,CAAc,uCAAAC,KAAK,UAAU;AAAA,QACrC,OAAO;AAAA,QACP,UAAU;AAAA,MACZ,CAAC,GAAgB,uCAAAA,KAAK,UAAU;AAAA,QAC9B,OAAO;AAAA,QACP,UAAU;AAAA,MACZ,CAAC,CAAC;AAAA,IACJ,CAAC,CAAC;AAAA,EACJ,CAAC;AACH;AACO,IAAM,mCAA+B,2BAAW,uCAAuC;AAC9F,6BAA6B,cAAc;",
6
6
  "names": ["_jsxs", "_jsx", "CustomSelectControl"]
7
7
  }
@@ -62,6 +62,7 @@ var UnforwardedValidatedFormTokenField = ({
62
62
  });
63
63
  };
64
64
  var ValidatedFormTokenField = (0, import_element.forwardRef)(UnforwardedValidatedFormTokenField);
65
+ ValidatedFormTokenField.displayName = "ValidatedFormTokenField";
65
66
  // Annotate the CommonJS export names for ESM import in node:
66
67
  0 && (module.exports = {
67
68
  ValidatedFormTokenField
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/validated-form-controls/components/form-token-field.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport { FormTokenField } from '../../form-token-field';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst UnforwardedValidatedFormTokenField = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n return /*#__PURE__*/_jsxs(\"div\", {\n className: \"components-validated-control__wrapper-with-error-delegate\",\n ref: forwardedRef,\n children: [/*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(FormTokenField, {\n __next40pxDefaultSize: true,\n ...restProps\n })\n }), /*#__PURE__*/_jsx(\"input\", {\n className: \"components-validated-control__error-delegate\",\n type: \"text\",\n ref: validityTargetRef,\n required: required,\n value: restProps.value && restProps.value.length > 0 ? 'hasvalue' : '',\n tabIndex: -1,\n onChange: () => {},\n onFocus: e => {\n e.target.previousElementSibling?.querySelector('input[type=\"text\"]')?.focus();\n }\n })]\n });\n};\nexport const ValidatedFormTokenField = forwardRef(UnforwardedValidatedFormTokenField);"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAmC;AAKnC,gCAAiC;AACjC,8BAA+B;AAC/B,yBAA2C;AAC3C,IAAM,qCAAqC,CAAC;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,SAAoB,uCAAAA,MAAM,OAAO;AAAA,IAC/B,WAAW;AAAA,IACX,KAAK;AAAA,IACL,UAAU,CAAc,uCAAAC,KAAK,4CAAkB;AAAA,MAC7C;AAAA,MACA;AAAA,MACA;AAAA,MACA,mBAAmB,MAAM,kBAAkB;AAAA,MAC3C,UAAuB,uCAAAA,KAAK,wCAAgB;AAAA,QAC1C,uBAAuB;AAAA,QACvB,GAAG;AAAA,MACL,CAAC;AAAA,IACH,CAAC,GAAgB,uCAAAA,KAAK,SAAS;AAAA,MAC7B,WAAW;AAAA,MACX,MAAM;AAAA,MACN,KAAK;AAAA,MACL;AAAA,MACA,OAAO,UAAU,SAAS,UAAU,MAAM,SAAS,IAAI,aAAa;AAAA,MACpE,UAAU;AAAA,MACV,UAAU,MAAM;AAAA,MAAC;AAAA,MACjB,SAAS,OAAK;AACZ,UAAE,OAAO,wBAAwB,cAAc,oBAAoB,GAAG,MAAM;AAAA,MAC9E;AAAA,IACF,CAAC,CAAC;AAAA,EACJ,CAAC;AACH;AACO,IAAM,8BAA0B,2BAAW,kCAAkC;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport { FormTokenField } from '../../form-token-field';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst UnforwardedValidatedFormTokenField = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n return /*#__PURE__*/_jsxs(\"div\", {\n className: \"components-validated-control__wrapper-with-error-delegate\",\n ref: forwardedRef,\n children: [/*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(FormTokenField, {\n __next40pxDefaultSize: true,\n ...restProps\n })\n }), /*#__PURE__*/_jsx(\"input\", {\n className: \"components-validated-control__error-delegate\",\n type: \"text\",\n ref: validityTargetRef,\n required: required,\n value: restProps.value && restProps.value.length > 0 ? 'hasvalue' : '',\n tabIndex: -1,\n onChange: () => {},\n onFocus: e => {\n e.target.previousElementSibling?.querySelector('input[type=\"text\"]')?.focus();\n }\n })]\n });\n};\nexport const ValidatedFormTokenField = forwardRef(UnforwardedValidatedFormTokenField);\nValidatedFormTokenField.displayName = 'ValidatedFormTokenField';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAmC;AAKnC,gCAAiC;AACjC,8BAA+B;AAC/B,yBAA2C;AAC3C,IAAM,qCAAqC,CAAC;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,SAAoB,uCAAAA,MAAM,OAAO;AAAA,IAC/B,WAAW;AAAA,IACX,KAAK;AAAA,IACL,UAAU,CAAc,uCAAAC,KAAK,4CAAkB;AAAA,MAC7C;AAAA,MACA;AAAA,MACA;AAAA,MACA,mBAAmB,MAAM,kBAAkB;AAAA,MAC3C,UAAuB,uCAAAA,KAAK,wCAAgB;AAAA,QAC1C,uBAAuB;AAAA,QACvB,GAAG;AAAA,MACL,CAAC;AAAA,IACH,CAAC,GAAgB,uCAAAA,KAAK,SAAS;AAAA,MAC7B,WAAW;AAAA,MACX,MAAM;AAAA,MACN,KAAK;AAAA,MACL;AAAA,MACA,OAAO,UAAU,SAAS,UAAU,MAAM,SAAS,IAAI,aAAa;AAAA,MACpE,UAAU;AAAA,MACV,UAAU,MAAM;AAAA,MAAC;AAAA,MACjB,SAAS,OAAK;AACZ,UAAE,OAAO,wBAAwB,cAAc,oBAAoB,GAAG,MAAM;AAAA,MAC9E;AAAA,IACF,CAAC,CAAC;AAAA,EACJ,CAAC;AACH;AACO,IAAM,8BAA0B,2BAAW,kCAAkC;AACpF,wBAAwB,cAAc;",
6
6
  "names": ["_jsxs", "_jsx"]
7
7
  }
@@ -59,6 +59,7 @@ var UnforwardedValidatedInputControl = ({
59
59
  });
60
60
  };
61
61
  var ValidatedInputControl = (0, import_element.forwardRef)(UnforwardedValidatedInputControl);
62
+ ValidatedInputControl.displayName = "ValidatedInputControl";
62
63
  // Annotate the CommonJS export names for ESM import in node:
63
64
  0 && (module.exports = {
64
65
  ValidatedInputControl
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/validated-form-controls/components/input-control.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef, useRef } from '@wordpress/element';\nimport { useMergeRefs } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport InputControl from '../../input-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedInputControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(InputControl, {\n __next40pxDefaultSize: true,\n ref: mergedRefs,\n ...restProps\n })\n });\n};\nexport const ValidatedInputControl = forwardRef(UnforwardedValidatedInputControl);"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAmC;AACnC,qBAA6B;AAK7B,gCAAiC;AACjC,2BAAyB;AACzB,yBAA4B;AAC5B,IAAM,mCAAmC,CAAC;AAAA,EACxC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA,mBAAmB,MAAM,kBAAkB;AAAA,IAC3C,UAAuB,uCAAAA,KAAK,qBAAAC,SAAc;AAAA,MACxC,uBAAuB;AAAA,MACvB,KAAK;AAAA,MACL,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,4BAAwB,2BAAW,gCAAgC;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef, useRef } from '@wordpress/element';\nimport { useMergeRefs } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport InputControl from '../../input-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedInputControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(InputControl, {\n __next40pxDefaultSize: true,\n ref: mergedRefs,\n ...restProps\n })\n });\n};\nexport const ValidatedInputControl = forwardRef(UnforwardedValidatedInputControl);\nValidatedInputControl.displayName = 'ValidatedInputControl';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAmC;AACnC,qBAA6B;AAK7B,gCAAiC;AACjC,2BAAyB;AACzB,yBAA4B;AAC5B,IAAM,mCAAmC,CAAC;AAAA,EACxC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA,mBAAmB,MAAM,kBAAkB;AAAA,IAC3C,UAAuB,uCAAAA,KAAK,qBAAAC,SAAc;AAAA,MACxC,uBAAuB;AAAA,MACvB,KAAK;AAAA,MACL,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,4BAAwB,2BAAW,gCAAgC;AAChF,sBAAsB,cAAc;",
6
6
  "names": ["_jsx", "InputControl"]
7
7
  }
@@ -59,6 +59,7 @@ var UnforwardedValidatedNumberControl = ({
59
59
  });
60
60
  };
61
61
  var ValidatedNumberControl = (0, import_element.forwardRef)(UnforwardedValidatedNumberControl);
62
+ ValidatedNumberControl.displayName = "ValidatedNumberControl";
62
63
  // Annotate the CommonJS export names for ESM import in node:
63
64
  0 && (module.exports = {
64
65
  ValidatedNumberControl
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/validated-form-controls/components/number-control.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef, useRef } from '@wordpress/element';\nimport { useMergeRefs } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport NumberControl from '../../number-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedNumberControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(NumberControl, {\n __next40pxDefaultSize: true,\n ref: mergedRefs,\n ...restProps\n })\n });\n};\nexport const ValidatedNumberControl = forwardRef(UnforwardedValidatedNumberControl);"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAmC;AACnC,qBAA6B;AAK7B,gCAAiC;AACjC,4BAA0B;AAC1B,yBAA4B;AAC5B,IAAM,oCAAoC,CAAC;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA,mBAAmB,MAAM,kBAAkB;AAAA,IAC3C,UAAuB,uCAAAA,KAAK,sBAAAC,SAAe;AAAA,MACzC,uBAAuB;AAAA,MACvB,KAAK;AAAA,MACL,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,6BAAyB,2BAAW,iCAAiC;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef, useRef } from '@wordpress/element';\nimport { useMergeRefs } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport NumberControl from '../../number-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedNumberControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(NumberControl, {\n __next40pxDefaultSize: true,\n ref: mergedRefs,\n ...restProps\n })\n });\n};\nexport const ValidatedNumberControl = forwardRef(UnforwardedValidatedNumberControl);\nValidatedNumberControl.displayName = 'ValidatedNumberControl';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAmC;AACnC,qBAA6B;AAK7B,gCAAiC;AACjC,4BAA0B;AAC1B,yBAA4B;AAC5B,IAAM,oCAAoC,CAAC;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA,mBAAmB,MAAM,kBAAkB;AAAA,IAC3C,UAAuB,uCAAAA,KAAK,sBAAAC,SAAe;AAAA,MACzC,uBAAuB;AAAA,MACvB,KAAK;AAAA,MACL,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,6BAAyB,2BAAW,iCAAiC;AAClF,uBAAuB,cAAc;",
6
6
  "names": ["_jsx", "NumberControl"]
7
7
  }
@@ -58,6 +58,7 @@ var UnforwardedValidatedRadioControl = ({
58
58
  });
59
59
  };
60
60
  var ValidatedRadioControl = (0, import_element.forwardRef)(UnforwardedValidatedRadioControl);
61
+ ValidatedRadioControl.displayName = "ValidatedRadioControl";
61
62
  // Annotate the CommonJS export names for ESM import in node:
62
63
  0 && (module.exports = {
63
64
  ValidatedRadioControl
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/validated-form-controls/components/radio-control.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useMergeRefs } from '@wordpress/compose';\nimport { forwardRef, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport RadioControl from '../../radio-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedRadioControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional\n // TODO: Upstream limitation - RadioControl does not accept a ref.\n ,\n ref: mergedRefs,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current?.querySelector('input[type=\"radio\"]'),\n children: /*#__PURE__*/_jsx(RadioControl, {\n ...restProps\n })\n });\n};\nexport const ValidatedRadioControl = forwardRef(UnforwardedValidatedRadioControl);"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA6B;AAC7B,qBAAmC;AAKnC,gCAAiC;AACjC,2BAAyB;AACzB,yBAA4B;AAC5B,IAAM,mCAAmC,CAAC;AAAA,EACxC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IAGA,KAAK;AAAA,IACL;AAAA,IACA,mBAAmB,MAAM,kBAAkB,SAAS,cAAc,qBAAqB;AAAA,IACvF,UAAuB,uCAAAA,KAAK,qBAAAC,SAAc;AAAA,MACxC,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,4BAAwB,2BAAW,gCAAgC;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useMergeRefs } from '@wordpress/compose';\nimport { forwardRef, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport RadioControl from '../../radio-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedRadioControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional\n // TODO: Upstream limitation - RadioControl does not accept a ref.\n ,\n ref: mergedRefs,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current?.querySelector('input[type=\"radio\"]'),\n children: /*#__PURE__*/_jsx(RadioControl, {\n ...restProps\n })\n });\n};\nexport const ValidatedRadioControl = forwardRef(UnforwardedValidatedRadioControl);\nValidatedRadioControl.displayName = 'ValidatedRadioControl';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA6B;AAC7B,qBAAmC;AAKnC,gCAAiC;AACjC,2BAAyB;AACzB,yBAA4B;AAC5B,IAAM,mCAAmC,CAAC;AAAA,EACxC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IAGA,KAAK;AAAA,IACL;AAAA,IACA,mBAAmB,MAAM,kBAAkB,SAAS,cAAc,qBAAqB;AAAA,IACvF,UAAuB,uCAAAA,KAAK,qBAAAC,SAAc;AAAA,MACxC,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,4BAAwB,2BAAW,gCAAgC;AAChF,sBAAsB,cAAc;",
6
6
  "names": ["_jsx", "RadioControl"]
7
7
  }
@@ -59,6 +59,7 @@ var UnforwardedValidatedRangeControl = ({
59
59
  });
60
60
  };
61
61
  var ValidatedRangeControl = (0, import_element.forwardRef)(UnforwardedValidatedRangeControl);
62
+ ValidatedRangeControl.displayName = "ValidatedRangeControl";
62
63
  // Annotate the CommonJS export names for ESM import in node:
63
64
  0 && (module.exports = {
64
65
  ValidatedRangeControl
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/validated-form-controls/components/range-control.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useMergeRefs } from '@wordpress/compose';\nimport { forwardRef, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport RangeControl from '../../range-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedRangeControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(RangeControl, {\n __next40pxDefaultSize: true,\n ref: mergedRefs,\n ...restProps\n })\n });\n};\nexport const ValidatedRangeControl = forwardRef(UnforwardedValidatedRangeControl);"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA6B;AAC7B,qBAAmC;AAKnC,gCAAiC;AACjC,2BAAyB;AACzB,yBAA4B;AAC5B,IAAM,mCAAmC,CAAC;AAAA,EACxC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA,mBAAmB,MAAM,kBAAkB;AAAA,IAC3C,UAAuB,uCAAAA,KAAK,qBAAAC,SAAc;AAAA,MACxC,uBAAuB;AAAA,MACvB,KAAK;AAAA,MACL,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,4BAAwB,2BAAW,gCAAgC;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useMergeRefs } from '@wordpress/compose';\nimport { forwardRef, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport RangeControl from '../../range-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedRangeControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(RangeControl, {\n __next40pxDefaultSize: true,\n ref: mergedRefs,\n ...restProps\n })\n });\n};\nexport const ValidatedRangeControl = forwardRef(UnforwardedValidatedRangeControl);\nValidatedRangeControl.displayName = 'ValidatedRangeControl';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA6B;AAC7B,qBAAmC;AAKnC,gCAAiC;AACjC,2BAAyB;AACzB,yBAA4B;AAC5B,IAAM,mCAAmC,CAAC;AAAA,EACxC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA,mBAAmB,MAAM,kBAAkB;AAAA,IAC3C,UAAuB,uCAAAA,KAAK,qBAAAC,SAAc;AAAA,MACxC,uBAAuB;AAAA,MACvB,KAAK;AAAA,MACL,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,4BAAwB,2BAAW,gCAAgC;AAChF,sBAAsB,cAAc;",
6
6
  "names": ["_jsx", "RangeControl"]
7
7
  }
@@ -59,6 +59,7 @@ var UnforwardedValidatedSelectControl = ({
59
59
  });
60
60
  };
61
61
  var ValidatedSelectControl = (0, import_element.forwardRef)(UnforwardedValidatedSelectControl);
62
+ ValidatedSelectControl.displayName = "ValidatedSelectControl";
62
63
  // Annotate the CommonJS export names for ESM import in node:
63
64
  0 && (module.exports = {
64
65
  ValidatedSelectControl
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/validated-form-controls/components/select-control.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef, useRef } from '@wordpress/element';\nimport { useMergeRefs } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport SelectControl from '../../select-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedSelectControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(SelectControl, {\n __next40pxDefaultSize: true,\n ref: mergedRefs,\n ...restProps\n })\n });\n};\nexport const ValidatedSelectControl = forwardRef(UnforwardedValidatedSelectControl);"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAmC;AACnC,qBAA6B;AAK7B,gCAAiC;AACjC,4BAA0B;AAC1B,yBAA4B;AAC5B,IAAM,oCAAoC,CAAC;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA,mBAAmB,MAAM,kBAAkB;AAAA,IAC3C,UAAuB,uCAAAA,KAAK,sBAAAC,SAAe;AAAA,MACzC,uBAAuB;AAAA,MACvB,KAAK;AAAA,MACL,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,6BAAyB,2BAAW,iCAAiC;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef, useRef } from '@wordpress/element';\nimport { useMergeRefs } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport SelectControl from '../../select-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedSelectControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(SelectControl, {\n __next40pxDefaultSize: true,\n ref: mergedRefs,\n ...restProps\n })\n });\n};\nexport const ValidatedSelectControl = forwardRef(UnforwardedValidatedSelectControl);\nValidatedSelectControl.displayName = 'ValidatedSelectControl';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAmC;AACnC,qBAA6B;AAK7B,gCAAiC;AACjC,4BAA0B;AAC1B,yBAA4B;AAC5B,IAAM,oCAAoC,CAAC;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA,mBAAmB,MAAM,kBAAkB;AAAA,IAC3C,UAAuB,uCAAAA,KAAK,sBAAAC,SAAe;AAAA,MACzC,uBAAuB;AAAA,MACvB,KAAK;AAAA,MACL,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,6BAAyB,2BAAW,iCAAiC;AAClF,uBAAuB,cAAc;",
6
6
  "names": ["_jsx", "SelectControl"]
7
7
  }
@@ -59,6 +59,7 @@ var UnforwardedValidatedTextControl = ({
59
59
  });
60
60
  };
61
61
  var ValidatedTextControl = (0, import_element.forwardRef)(UnforwardedValidatedTextControl);
62
+ ValidatedTextControl.displayName = "ValidatedTextControl";
62
63
  // Annotate the CommonJS export names for ESM import in node:
63
64
  0 && (module.exports = {
64
65
  ValidatedTextControl
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/validated-form-controls/components/text-control.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useMergeRefs } from '@wordpress/compose';\nimport { forwardRef, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport TextControl from '../../text-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedTextControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(TextControl, {\n __next40pxDefaultSize: true,\n ref: mergedRefs,\n ...restProps\n })\n });\n};\nexport const ValidatedTextControl = forwardRef(UnforwardedValidatedTextControl);"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA6B;AAC7B,qBAAmC;AAKnC,gCAAiC;AACjC,0BAAwB;AACxB,yBAA4B;AAC5B,IAAM,kCAAkC,CAAC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA,mBAAmB,MAAM,kBAAkB;AAAA,IAC3C,UAAuB,uCAAAA,KAAK,oBAAAC,SAAa;AAAA,MACvC,uBAAuB;AAAA,MACvB,KAAK;AAAA,MACL,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,2BAAuB,2BAAW,+BAA+B;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useMergeRefs } from '@wordpress/compose';\nimport { forwardRef, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport TextControl from '../../text-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedTextControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(TextControl, {\n __next40pxDefaultSize: true,\n ref: mergedRefs,\n ...restProps\n })\n });\n};\nexport const ValidatedTextControl = forwardRef(UnforwardedValidatedTextControl);\nValidatedTextControl.displayName = 'ValidatedTextControl';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA6B;AAC7B,qBAAmC;AAKnC,gCAAiC;AACjC,0BAAwB;AACxB,yBAA4B;AAC5B,IAAM,kCAAkC,CAAC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA,mBAAmB,MAAM,kBAAkB;AAAA,IAC3C,UAAuB,uCAAAA,KAAK,oBAAAC,SAAa;AAAA,MACvC,uBAAuB;AAAA,MACvB,KAAK;AAAA,MACL,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,2BAAuB,2BAAW,+BAA+B;AAC9E,qBAAqB,cAAc;",
6
6
  "names": ["_jsx", "TextControl"]
7
7
  }
@@ -58,6 +58,7 @@ var UnforwardedValidatedTextareaControl = ({
58
58
  });
59
59
  };
60
60
  var ValidatedTextareaControl = (0, import_element.forwardRef)(UnforwardedValidatedTextareaControl);
61
+ ValidatedTextareaControl.displayName = "ValidatedTextareaControl";
61
62
  // Annotate the CommonJS export names for ESM import in node:
62
63
  0 && (module.exports = {
63
64
  ValidatedTextareaControl
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/validated-form-controls/components/textarea-control.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef, useRef } from '@wordpress/element';\nimport { useMergeRefs } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport TextareaControl from '../../textarea-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedTextareaControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(TextareaControl, {\n ref: mergedRefs,\n ...restProps\n })\n });\n};\nexport const ValidatedTextareaControl = forwardRef(UnforwardedValidatedTextareaControl);"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAmC;AACnC,qBAA6B;AAK7B,gCAAiC;AACjC,8BAA4B;AAC5B,yBAA4B;AAC5B,IAAM,sCAAsC,CAAC;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA,mBAAmB,MAAM,kBAAkB;AAAA,IAC3C,UAAuB,uCAAAA,KAAK,wBAAAC,SAAiB;AAAA,MAC3C,KAAK;AAAA,MACL,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,+BAA2B,2BAAW,mCAAmC;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef, useRef } from '@wordpress/element';\nimport { useMergeRefs } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport TextareaControl from '../../textarea-control';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedTextareaControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(TextareaControl, {\n ref: mergedRefs,\n ...restProps\n })\n });\n};\nexport const ValidatedTextareaControl = forwardRef(UnforwardedValidatedTextareaControl);\nValidatedTextareaControl.displayName = 'ValidatedTextareaControl';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAmC;AACnC,qBAA6B;AAK7B,gCAAiC;AACjC,8BAA4B;AAC5B,yBAA4B;AAC5B,IAAM,sCAAsC,CAAC;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AACjE,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA,mBAAmB,MAAM,kBAAkB;AAAA,IAC3C,UAAuB,uCAAAA,KAAK,wBAAAC,SAAiB;AAAA,MAC3C,KAAK;AAAA,MACL,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,+BAA2B,2BAAW,mCAAmC;AACtF,yBAAyB,cAAc;",
6
6
  "names": ["_jsx", "TextareaControl"]
7
7
  }
@@ -63,6 +63,7 @@ var UnforwardedValidatedToggleControl = ({
63
63
  });
64
64
  };
65
65
  var ValidatedToggleControl = (0, import_element.forwardRef)(UnforwardedValidatedToggleControl);
66
+ ValidatedToggleControl.displayName = "ValidatedToggleControl";
66
67
  // Annotate the CommonJS export names for ESM import in node:
67
68
  0 && (module.exports = {
68
69
  ValidatedToggleControl
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/validated-form-controls/components/toggle-control.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef, useRef, useEffect } from '@wordpress/element';\nimport { useMergeRefs } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport ToggleControl from '../../toggle-control';\n\n// TODO: Should we customize the default `missingValue` message? It says to \"check this box\".\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedToggleControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n\n // TODO: Upstream limitation - The `required` attribute is not passed down to the input,\n // so we need to set it manually.\n useEffect(() => {\n if (validityTargetRef.current) {\n validityTargetRef.current.required = required !== null && required !== void 0 ? required : false;\n }\n }, [required]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(ToggleControl, {\n ref: mergedRefs,\n ...restProps\n })\n });\n};\nexport const ValidatedToggleControl = forwardRef(UnforwardedValidatedToggleControl);"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA8C;AAC9C,qBAA6B;AAK7B,gCAAiC;AACjC,4BAA0B;AAG1B,yBAA4B;AAC5B,IAAM,oCAAoC,CAAC;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AAIjE,gCAAU,MAAM;AACd,QAAI,kBAAkB,SAAS;AAC7B,wBAAkB,QAAQ,WAAW,aAAa,QAAQ,aAAa,SAAS,WAAW;AAAA,IAC7F;AAAA,EACF,GAAG,CAAC,QAAQ,CAAC;AACb,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA,mBAAmB,MAAM,kBAAkB;AAAA,IAC3C,UAAuB,uCAAAA,KAAK,sBAAAC,SAAe;AAAA,MACzC,KAAK;AAAA,MACL,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,6BAAyB,2BAAW,iCAAiC;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef, useRef, useEffect } from '@wordpress/element';\nimport { useMergeRefs } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport ToggleControl from '../../toggle-control';\n\n// TODO: Should we customize the default `missingValue` message? It says to \"check this box\".\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst UnforwardedValidatedToggleControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const mergedRefs = useMergeRefs([forwardedRef, validityTargetRef]);\n\n // TODO: Upstream limitation - The `required` attribute is not passed down to the input,\n // so we need to set it manually.\n useEffect(() => {\n if (validityTargetRef.current) {\n validityTargetRef.current.required = required !== null && required !== void 0 ? required : false;\n }\n }, [required]);\n return /*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(ToggleControl, {\n ref: mergedRefs,\n ...restProps\n })\n });\n};\nexport const ValidatedToggleControl = forwardRef(UnforwardedValidatedToggleControl);\nValidatedToggleControl.displayName = 'ValidatedToggleControl';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA8C;AAC9C,qBAA6B;AAK7B,gCAAiC;AACjC,4BAA0B;AAG1B,yBAA4B;AAC5B,IAAM,oCAAoC,CAAC;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,iBAAa,6BAAa,CAAC,cAAc,iBAAiB,CAAC;AAIjE,gCAAU,MAAM;AACd,QAAI,kBAAkB,SAAS;AAC7B,wBAAkB,QAAQ,WAAW,aAAa,QAAQ,aAAa,SAAS,WAAW;AAAA,IAC7F;AAAA,EACF,GAAG,CAAC,QAAQ,CAAC;AACb,SAAoB,uCAAAA,KAAK,4CAAkB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA,mBAAmB,MAAM,kBAAkB;AAAA,IAC3C,UAAuB,uCAAAA,KAAK,sBAAAC,SAAe;AAAA,MACzC,KAAK;AAAA,MACL,GAAG;AAAA,IACL,CAAC;AAAA,EACH,CAAC;AACH;AACO,IAAM,6BAAyB,2BAAW,iCAAiC;AAClF,uBAAuB,cAAc;",
6
6
  "names": ["_jsx", "ToggleControl"]
7
7
  }
@@ -64,6 +64,7 @@ var UnforwardedValidatedToggleGroupControl = ({
64
64
  });
65
65
  };
66
66
  var ValidatedToggleGroupControl = (0, import_element.forwardRef)(UnforwardedValidatedToggleGroupControl);
67
+ ValidatedToggleGroupControl.displayName = "ValidatedToggleGroupControl";
67
68
  // Annotate the CommonJS export names for ESM import in node:
68
69
  0 && (module.exports = {
69
70
  ValidatedToggleGroupControl
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/validated-form-controls/components/toggle-group-control.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef, useId, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport { ToggleGroupControl } from '../../toggle-group-control';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst UnforwardedValidatedToggleGroupControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const nameAttr = useId();\n return /*#__PURE__*/_jsxs(\"div\", {\n className: \"components-validated-control__wrapper-with-error-delegate\",\n children: [/*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(ToggleGroupControl, {\n __next40pxDefaultSize: true,\n ref: forwardedRef,\n ...restProps\n })\n }), /*#__PURE__*/_jsx(\"input\", {\n className: \"components-validated-control__error-delegate\",\n type: \"radio\",\n ref: validityTargetRef,\n required: required,\n checked: restProps.value !== undefined,\n tabIndex: -1\n // A name attribute is needed for the `required` behavior to work.\n ,\n name: nameAttr,\n onChange: () => {},\n onFocus: e => {\n e.target.previousElementSibling?.querySelector('[data-active-item=\"true\"]')?.focus();\n }\n })]\n });\n};\nexport const ValidatedToggleGroupControl = forwardRef(UnforwardedValidatedToggleGroupControl);"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA0C;AAK1C,gCAAiC;AACjC,kCAAmC;AACnC,yBAA2C;AAC3C,IAAM,yCAAyC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,eAAW,sBAAM;AACvB,SAAoB,uCAAAA,MAAM,OAAO;AAAA,IAC/B,WAAW;AAAA,IACX,UAAU,CAAc,uCAAAC,KAAK,4CAAkB;AAAA,MAC7C;AAAA,MACA;AAAA,MACA;AAAA,MACA,mBAAmB,MAAM,kBAAkB;AAAA,MAC3C,UAAuB,uCAAAA,KAAK,gDAAoB;AAAA,QAC9C,uBAAuB;AAAA,QACvB,KAAK;AAAA,QACL,GAAG;AAAA,MACL,CAAC;AAAA,IACH,CAAC,GAAgB,uCAAAA,KAAK,SAAS;AAAA,MAC7B,WAAW;AAAA,MACX,MAAM;AAAA,MACN,KAAK;AAAA,MACL;AAAA,MACA,SAAS,UAAU,UAAU;AAAA,MAC7B,UAAU;AAAA,MAGV,MAAM;AAAA,MACN,UAAU,MAAM;AAAA,MAAC;AAAA,MACjB,SAAS,OAAK;AACZ,UAAE,OAAO,wBAAwB,cAAc,2BAA2B,GAAG,MAAM;AAAA,MACrF;AAAA,IACF,CAAC,CAAC;AAAA,EACJ,CAAC;AACH;AACO,IAAM,kCAA8B,2BAAW,sCAAsC;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef, useId, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { ControlWithError } from '../control-with-error';\nimport { ToggleGroupControl } from '../../toggle-group-control';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst UnforwardedValidatedToggleGroupControl = ({\n required,\n customValidity,\n markWhenOptional,\n ...restProps\n}, forwardedRef) => {\n const validityTargetRef = useRef(null);\n const nameAttr = useId();\n return /*#__PURE__*/_jsxs(\"div\", {\n className: \"components-validated-control__wrapper-with-error-delegate\",\n children: [/*#__PURE__*/_jsx(ControlWithError, {\n required: required,\n markWhenOptional: markWhenOptional,\n customValidity: customValidity,\n getValidityTarget: () => validityTargetRef.current,\n children: /*#__PURE__*/_jsx(ToggleGroupControl, {\n __next40pxDefaultSize: true,\n ref: forwardedRef,\n ...restProps\n })\n }), /*#__PURE__*/_jsx(\"input\", {\n className: \"components-validated-control__error-delegate\",\n type: \"radio\",\n ref: validityTargetRef,\n required: required,\n checked: restProps.value !== undefined,\n tabIndex: -1\n // A name attribute is needed for the `required` behavior to work.\n ,\n name: nameAttr,\n onChange: () => {},\n onFocus: e => {\n e.target.previousElementSibling?.querySelector('[data-active-item=\"true\"]')?.focus();\n }\n })]\n });\n};\nexport const ValidatedToggleGroupControl = forwardRef(UnforwardedValidatedToggleGroupControl);\nValidatedToggleGroupControl.displayName = 'ValidatedToggleGroupControl';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA0C;AAK1C,gCAAiC;AACjC,kCAAmC;AACnC,yBAA2C;AAC3C,IAAM,yCAAyC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAG,iBAAiB;AAClB,QAAM,wBAAoB,uBAAO,IAAI;AACrC,QAAM,eAAW,sBAAM;AACvB,SAAoB,uCAAAA,MAAM,OAAO;AAAA,IAC/B,WAAW;AAAA,IACX,UAAU,CAAc,uCAAAC,KAAK,4CAAkB;AAAA,MAC7C;AAAA,MACA;AAAA,MACA;AAAA,MACA,mBAAmB,MAAM,kBAAkB;AAAA,MAC3C,UAAuB,uCAAAA,KAAK,gDAAoB;AAAA,QAC9C,uBAAuB;AAAA,QACvB,KAAK;AAAA,QACL,GAAG;AAAA,MACL,CAAC;AAAA,IACH,CAAC,GAAgB,uCAAAA,KAAK,SAAS;AAAA,MAC7B,WAAW;AAAA,MACX,MAAM;AAAA,MACN,KAAK;AAAA,MACL;AAAA,MACA,SAAS,UAAU,UAAU;AAAA,MAC7B,UAAU;AAAA,MAGV,MAAM;AAAA,MACN,UAAU,MAAM;AAAA,MAAC;AAAA,MACjB,SAAS,OAAK;AACZ,UAAE,OAAO,wBAAwB,cAAc,2BAA2B,GAAG,MAAM;AAAA,MACrF;AAAA,IACF,CAAC,CAAC;AAAA,EACJ,CAAC;AACH;AACO,IAAM,kCAA8B,2BAAW,sCAAsC;AAC5F,4BAA4B,cAAc;",
6
6
  "names": ["_jsxs", "_jsx"]
7
7
  }
@@ -168,6 +168,7 @@ function UnforwardedControlWithError({
168
168
  });
169
169
  }
170
170
  var ControlWithError = (0, import_element.forwardRef)(UnforwardedControlWithError);
171
+ ControlWithError.displayName = "ControlWithError";
171
172
  // Annotate the CommonJS export names for ESM import in node:
172
173
  0 && (module.exports = {
173
174
  ControlWithError
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/validated-form-controls/control-with-error.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { cloneElement, forwardRef, useEffect, useState } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\n\nimport { ValidityIndicator } from './validity-indicator';\nimport { Fragment as _Fragment, jsxs as _jsxs, jsx as _jsx } from \"react/jsx-runtime\";\nfunction appendRequiredIndicator(label, required, markWhenOptional) {\n if (required && !markWhenOptional) {\n return /*#__PURE__*/_jsxs(_Fragment, {\n children: [label, \" \", `(${__('Required')})`]\n });\n }\n if (!required && markWhenOptional) {\n return /*#__PURE__*/_jsxs(_Fragment, {\n children: [label, \" \", `(${__('Optional')})`]\n });\n }\n return label;\n}\nconst VALIDITY_VISIBLE_ATTRIBUTE = 'data-validity-visible';\nconst className = 'components-validated-control';\n\n/**\n * HTML elements that support the Constraint Validation API.\n *\n * Here, we exclude HTMLButtonElement because although it does technically support the API,\n * normal buttons are actually exempted from any validation.\n * @see https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Forms/Form_validation\n * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/willValidate\n */\n\nfunction UnforwardedControlWithError({\n required,\n markWhenOptional,\n customValidity,\n getValidityTarget,\n children\n}, forwardedRef) {\n const [errorMessage, setErrorMessage] = useState();\n const [statusMessage, setStatusMessage] = useState();\n const [showMessage, setShowMessage] = useState(false);\n const [isTouched, setIsTouched] = useState(false);\n\n // Ensure that error messages are visible when an `invalid` event is triggered,\n // e.g. when a form is submitted or reportValidity() is called.\n useEffect(() => {\n const validityTarget = getValidityTarget();\n const handler = () => {\n setShowMessage(true);\n validityTarget?.setAttribute(VALIDITY_VISIBLE_ATTRIBUTE, '');\n };\n validityTarget?.addEventListener('invalid', handler);\n return () => validityTarget?.removeEventListener('invalid', handler);\n }, [getValidityTarget]);\n\n // Suppress the native error popover, while keeping the focus behavior intact.\n useEffect(() => {\n var _validityTarget$close;\n const validityTarget = getValidityTarget();\n const suppressNativePopover = event => {\n var _target$form$elements;\n event.preventDefault();\n const target = event.target;\n const firstErrorInForm = Array.from((_target$form$elements = target.form?.elements) !== null && _target$form$elements !== void 0 ? _target$form$elements : []).find(el => !el.validity.valid);\n if (!target.form || firstErrorInForm === target) {\n target.focus();\n }\n };\n\n // Radio inputs need special handling because all radio inputs with the\n // same `name` will be marked as invalid. Without this handling, the last radio option\n // will be focused with an unsuppressed native popover.\n const radioSibilings = validityTarget?.type === 'radio' && validityTarget?.name ? Array.from((_validityTarget$close = validityTarget?.closest(`.${className}`)?.querySelectorAll(`input[type=\"radio\"][name=\"${validityTarget?.name}\"]`)) !== null && _validityTarget$close !== void 0 ? _validityTarget$close : []).filter(sibling => sibling !== validityTarget) : [];\n validityTarget?.addEventListener('invalid', suppressNativePopover);\n radioSibilings.forEach(sibling => sibling.addEventListener('invalid', suppressNativePopover));\n return () => {\n validityTarget?.removeEventListener('invalid', suppressNativePopover);\n radioSibilings.forEach(sibling => sibling.removeEventListener('invalid', suppressNativePopover));\n };\n }, [getValidityTarget]);\n\n // Handle validity messages.\n useEffect(() => {\n const validityTarget = getValidityTarget();\n if (!customValidity?.type) {\n validityTarget?.setCustomValidity('');\n setErrorMessage(validityTarget?.validationMessage);\n setStatusMessage(undefined);\n return;\n }\n switch (customValidity.type) {\n case 'validating':\n {\n validityTarget?.setCustomValidity('');\n setErrorMessage(undefined);\n setStatusMessage({\n type: 'validating',\n message: customValidity.message\n });\n break;\n }\n case 'valid':\n {\n validityTarget?.setCustomValidity('');\n setErrorMessage(validityTarget?.validationMessage);\n setStatusMessage({\n type: 'valid',\n message: customValidity.message\n });\n break;\n }\n case 'invalid':\n {\n var _customValidity$messa;\n validityTarget?.setCustomValidity((_customValidity$messa = customValidity.message) !== null && _customValidity$messa !== void 0 ? _customValidity$messa : '');\n setErrorMessage(validityTarget?.validationMessage);\n setStatusMessage(undefined);\n break;\n }\n }\n }, [customValidity, getValidityTarget]);\n\n // Show messages if field has been touched (i.e. has blurred at least once),\n // or validation has been triggered by the consumer/user.\n useEffect(() => {\n if (!isTouched || showMessage) {\n return;\n }\n if (customValidity?.type === 'validating') {\n // Don't show validating indicators for quick calls that take less than 1 sec.\n const timer = setTimeout(() => {\n setShowMessage(true);\n }, 1000);\n return () => clearTimeout(timer);\n }\n setShowMessage(true);\n }, [isTouched, customValidity?.type, showMessage]);\n\n // Mark blurred fields as touched.\n const onBlur = event => {\n if (isTouched) {\n return;\n }\n\n // Only consider \"blurred from the component\" if focus has fully left the wrapping div.\n // This prevents unnecessary blurs from components with multiple focusable elements.\n if (!event.relatedTarget || !event.currentTarget.contains(event.relatedTarget)) {\n setIsTouched(true);\n getValidityTarget()?.setAttribute(VALIDITY_VISIBLE_ATTRIBUTE, '');\n }\n };\n const message = () => {\n if (errorMessage) {\n return /*#__PURE__*/_jsx(ValidityIndicator, {\n type: \"invalid\",\n message: errorMessage\n });\n }\n if (statusMessage?.type) {\n return /*#__PURE__*/_jsx(ValidityIndicator, {\n type: statusMessage.type,\n message: statusMessage.message\n });\n }\n return null;\n };\n return /*#__PURE__*/_jsxs(\"div\", {\n className: className,\n ref: forwardedRef,\n onBlur: onBlur,\n children: [cloneElement(children, {\n label: appendRequiredIndicator(children.props.label, required, markWhenOptional),\n required\n }), /*#__PURE__*/_jsx(\"div\", {\n \"aria-live\": \"polite\",\n children: showMessage && message()\n })]\n });\n}\nexport const ControlWithError = forwardRef(UnforwardedControlWithError);"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAmB;AACnB,qBAA8D;AAM9D,gCAAkC;AAClC,yBAAkE;AAClE,SAAS,wBAAwB,OAAO,UAAU,kBAAkB;AAClE,MAAI,YAAY,CAAC,kBAAkB;AACjC,WAAoB,uCAAAA,MAAM,mBAAAC,UAAW;AAAA,MACnC,UAAU,CAAC,OAAO,KAAK,QAAI,gBAAG,UAAU,CAAC,GAAG;AAAA,IAC9C,CAAC;AAAA,EACH;AACA,MAAI,CAAC,YAAY,kBAAkB;AAC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gBAAgB,SAAS,cAAc;AAEzC,YAAM,QAAQ,WAAW,MAAM;AAC7B,uBAAe,IAAI;AAAA,MACrB,GAAG,GAAI;AACP,aAAO,MAAM,aAAa,KAAK;AAAA,IACjC;AACA,mBAAe,IAAI;AAAA,EACrB,GAAG,CAAC,WAAW,gBAAgB,MAAM,WAAW,CAAC;AAGjD,QAAM,SAAS,WAAS;AACtB,QAAI,WAAW;AACb;AAAA,IACF;AAIA,QAAI,CAAC,MAAM,iBAAiB,CAAC,MAAM,cAAc,SAAS,MAAM,aAAa,GAAG;AAC9E,mBAAa,IAAI;AACjB,wBAAkB,GAAG,aAAa,4BAA4B,EAAE;AAAA,IAClE;AAAA,EACF;AACA,QAAM,UAAU,MAAM;AACpB,QAAI,cAAc;AAChB,aAAoB,uCAAAC,KAAK,6CAAmB;AAAA,QAC1C,MAAM;AAAA,QACN,SAAS;AAAA,MACX,CAAC;AAAA,IACH;AACA,QAAI,eAAe,MAAM;AACvB,aAAoB,uCAAAA,KAAK,6CAAmB;AAAA,QAC1C,MAAM,cAAc;AAAA,QACpB,SAAS,cAAc;AAAA,MACzB,CAAC;AAAA,IACH;AACA,WAAO;AAAA,EACT;AACA,SAAoB,uCAAAF,MAAM,OAAO;AAAA,IAC/B;AAAA,IACA,KAAK;AAAA,IACL;AAAA,IACA,UAAU,KAAC,6BAAa,UAAU;AAAA,MAChC,OAAO,wBAAwB,SAAS,MAAM,OAAO,UAAU,gBAAgB;AAAA,MAC/E;AAAA,IACF,CAAC,GAAgB,uCAAAE,KAAK,OAAO;AAAA,MAC3B,aAAa;AAAA,MACb,UAAU,eAAe,QAAQ;AAAA,IACnC,CAAC,CAAC;AAAA,EACJ,CAAC;AACH;AACO,IAAM,uBAAmB,2BAAW,2BAA2B;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { cloneElement, forwardRef, useEffect, useState } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\n\nimport { ValidityIndicator } from './validity-indicator';\nimport { Fragment as _Fragment, jsxs as _jsxs, jsx as _jsx } from \"react/jsx-runtime\";\nfunction appendRequiredIndicator(label, required, markWhenOptional) {\n if (required && !markWhenOptional) {\n return /*#__PURE__*/_jsxs(_Fragment, {\n children: [label, \" \", `(${__('Required')})`]\n });\n }\n if (!required && markWhenOptional) {\n return /*#__PURE__*/_jsxs(_Fragment, {\n children: [label, \" \", `(${__('Optional')})`]\n });\n }\n return label;\n}\nconst VALIDITY_VISIBLE_ATTRIBUTE = 'data-validity-visible';\nconst className = 'components-validated-control';\n\n/**\n * HTML elements that support the Constraint Validation API.\n *\n * Here, we exclude HTMLButtonElement because although it does technically support the API,\n * normal buttons are actually exempted from any validation.\n * @see https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Forms/Form_validation\n * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/willValidate\n */\n\nfunction UnforwardedControlWithError({\n required,\n markWhenOptional,\n customValidity,\n getValidityTarget,\n children\n}, forwardedRef) {\n const [errorMessage, setErrorMessage] = useState();\n const [statusMessage, setStatusMessage] = useState();\n const [showMessage, setShowMessage] = useState(false);\n const [isTouched, setIsTouched] = useState(false);\n\n // Ensure that error messages are visible when an `invalid` event is triggered,\n // e.g. when a form is submitted or reportValidity() is called.\n useEffect(() => {\n const validityTarget = getValidityTarget();\n const handler = () => {\n setShowMessage(true);\n validityTarget?.setAttribute(VALIDITY_VISIBLE_ATTRIBUTE, '');\n };\n validityTarget?.addEventListener('invalid', handler);\n return () => validityTarget?.removeEventListener('invalid', handler);\n }, [getValidityTarget]);\n\n // Suppress the native error popover, while keeping the focus behavior intact.\n useEffect(() => {\n var _validityTarget$close;\n const validityTarget = getValidityTarget();\n const suppressNativePopover = event => {\n var _target$form$elements;\n event.preventDefault();\n const target = event.target;\n const firstErrorInForm = Array.from((_target$form$elements = target.form?.elements) !== null && _target$form$elements !== void 0 ? _target$form$elements : []).find(el => !el.validity.valid);\n if (!target.form || firstErrorInForm === target) {\n target.focus();\n }\n };\n\n // Radio inputs need special handling because all radio inputs with the\n // same `name` will be marked as invalid. Without this handling, the last radio option\n // will be focused with an unsuppressed native popover.\n const radioSibilings = validityTarget?.type === 'radio' && validityTarget?.name ? Array.from((_validityTarget$close = validityTarget?.closest(`.${className}`)?.querySelectorAll(`input[type=\"radio\"][name=\"${validityTarget?.name}\"]`)) !== null && _validityTarget$close !== void 0 ? _validityTarget$close : []).filter(sibling => sibling !== validityTarget) : [];\n validityTarget?.addEventListener('invalid', suppressNativePopover);\n radioSibilings.forEach(sibling => sibling.addEventListener('invalid', suppressNativePopover));\n return () => {\n validityTarget?.removeEventListener('invalid', suppressNativePopover);\n radioSibilings.forEach(sibling => sibling.removeEventListener('invalid', suppressNativePopover));\n };\n }, [getValidityTarget]);\n\n // Handle validity messages.\n useEffect(() => {\n const validityTarget = getValidityTarget();\n if (!customValidity?.type) {\n validityTarget?.setCustomValidity('');\n setErrorMessage(validityTarget?.validationMessage);\n setStatusMessage(undefined);\n return;\n }\n switch (customValidity.type) {\n case 'validating':\n {\n validityTarget?.setCustomValidity('');\n setErrorMessage(undefined);\n setStatusMessage({\n type: 'validating',\n message: customValidity.message\n });\n break;\n }\n case 'valid':\n {\n validityTarget?.setCustomValidity('');\n setErrorMessage(validityTarget?.validationMessage);\n setStatusMessage({\n type: 'valid',\n message: customValidity.message\n });\n break;\n }\n case 'invalid':\n {\n var _customValidity$messa;\n validityTarget?.setCustomValidity((_customValidity$messa = customValidity.message) !== null && _customValidity$messa !== void 0 ? _customValidity$messa : '');\n setErrorMessage(validityTarget?.validationMessage);\n setStatusMessage(undefined);\n break;\n }\n }\n }, [customValidity, getValidityTarget]);\n\n // Show messages if field has been touched (i.e. has blurred at least once),\n // or validation has been triggered by the consumer/user.\n useEffect(() => {\n if (!isTouched || showMessage) {\n return;\n }\n if (customValidity?.type === 'validating') {\n // Don't show validating indicators for quick calls that take less than 1 sec.\n const timer = setTimeout(() => {\n setShowMessage(true);\n }, 1000);\n return () => clearTimeout(timer);\n }\n setShowMessage(true);\n }, [isTouched, customValidity?.type, showMessage]);\n\n // Mark blurred fields as touched.\n const onBlur = event => {\n if (isTouched) {\n return;\n }\n\n // Only consider \"blurred from the component\" if focus has fully left the wrapping div.\n // This prevents unnecessary blurs from components with multiple focusable elements.\n if (!event.relatedTarget || !event.currentTarget.contains(event.relatedTarget)) {\n setIsTouched(true);\n getValidityTarget()?.setAttribute(VALIDITY_VISIBLE_ATTRIBUTE, '');\n }\n };\n const message = () => {\n if (errorMessage) {\n return /*#__PURE__*/_jsx(ValidityIndicator, {\n type: \"invalid\",\n message: errorMessage\n });\n }\n if (statusMessage?.type) {\n return /*#__PURE__*/_jsx(ValidityIndicator, {\n type: statusMessage.type,\n message: statusMessage.message\n });\n }\n return null;\n };\n return /*#__PURE__*/_jsxs(\"div\", {\n className: className,\n ref: forwardedRef,\n onBlur: onBlur,\n children: [cloneElement(children, {\n label: appendRequiredIndicator(children.props.label, required, markWhenOptional),\n required\n }), /*#__PURE__*/_jsx(\"div\", {\n \"aria-live\": \"polite\",\n children: showMessage && message()\n })]\n });\n}\nexport const ControlWithError = forwardRef(UnforwardedControlWithError);\nControlWithError.displayName = 'ControlWithError';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAmB;AACnB,qBAA8D;AAM9D,gCAAkC;AAClC,yBAAkE;AAClE,SAAS,wBAAwB,OAAO,UAAU,kBAAkB;AAClE,MAAI,YAAY,CAAC,kBAAkB;AACjC,WAAoB,uCAAAA,MAAM,mBAAAC,UAAW;AAAA,MACnC,UAAU,CAAC,OAAO,KAAK,QAAI,gBAAG,UAAU,CAAC,GAAG;AAAA,IAC9C,CAAC;AAAA,EACH;AACA,MAAI,CAAC,YAAY,kBAAkB;AACjC,WAAoB,uCAAAD,MAAM,mBAAAC,UAAW;AAAA,MACnC,UAAU,CAAC,OAAO,KAAK,QAAI,gBAAG,UAAU,CAAC,GAAG;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,MAAM,aAAa,KAAK;AAAA,IACjC;AACA,mBAAe,IAAI;AAAA,EACrB,GAAG,CAAC,WAAW,gBAAgB,MAAM,WAAW,CAAC;AAGjD,QAAM,SAAS,WAAS;AACtB,QAAI,WAAW;AACb;AAAA,IACF;AAIA,QAAI,CAAC,MAAM,iBAAiB,CAAC,MAAM,cAAc,SAAS,MAAM,aAAa,GAAG;AAC9E,mBAAa,IAAI;AACjB,wBAAkB,GAAG,aAAa,4BAA4B,EAAE;AAAA,IAClE;AAAA,EACF;AACA,QAAM,UAAU,MAAM;AACpB,QAAI,cAAc;AAChB,aAAoB,uCAAAC,KAAK,6CAAmB;AAAA,QAC1C,MAAM;AAAA,QACN,SAAS;AAAA,MACX,CAAC;AAAA,IACH;AACA,QAAI,eAAe,MAAM;AACvB,aAAoB,uCAAAA,KAAK,6CAAmB;AAAA,QAC1C,MAAM,cAAc;AAAA,QACpB,SAAS,cAAc;AAAA,MACzB,CAAC;AAAA,IACH;AACA,WAAO;AAAA,EACT;AACA,SAAoB,uCAAAF,MAAM,OAAO;AAAA,IAC/B;AAAA,IACA,KAAK;AAAA,IACL;AAAA,IACA,UAAU,KAAC,6BAAa,UAAU;AAAA,MAChC,OAAO,wBAAwB,SAAS,MAAM,OAAO,UAAU,gBAAgB;AAAA,MAC/E;AAAA,IACF,CAAC,GAAgB,uCAAAE,KAAK,OAAO;AAAA,MAC3B,aAAa;AAAA,MACb,UAAU,eAAe,QAAQ;AAAA,IACnC,CAAC,CAAC;AAAA,EACJ,CAAC;AACH;AACO,IAAM,uBAAmB,2BAAW,2BAA2B;AACtE,iBAAiB,cAAc;",
6
6
  "names": ["_jsxs", "_Fragment", "_jsx"]
7
7
  }
@@ -64,6 +64,7 @@ function UnforwardedAnglePickerControl(props, ref) {
64
64
  });
65
65
  }
66
66
  var AnglePickerControl = forwardRef(UnforwardedAnglePickerControl);
67
+ AnglePickerControl.displayName = "AnglePickerControl";
67
68
  var angle_picker_control_default = AnglePickerControl;
68
69
  export {
69
70
  AnglePickerControl,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/angle-picker-control/index.tsx"],
4
- "sourcesContent": ["/**\n * External dependencies\n */\n\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\nimport { isRTL, __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport { Flex, FlexBlock } from '../flex';\nimport { Spacer } from '../spacer';\nimport NumberControl from '../number-control';\nimport InputControlPrefixWrapper from '../input-control/input-prefix-wrapper';\nimport InputControlSuffixWrapper from '../input-control/input-suffix-wrapper';\nimport AngleCircle from './angle-circle';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction UnforwardedAnglePickerControl(props, ref) {\n const {\n className,\n label = __('Angle'),\n onChange,\n value,\n ...restProps\n } = props;\n const handleOnNumberChange = unprocessedValue => {\n if (onChange === undefined) {\n return;\n }\n const inputValue = unprocessedValue !== undefined && unprocessedValue !== '' ? parseInt(unprocessedValue, 10) : 0;\n onChange(inputValue);\n };\n const classes = clsx('components-angle-picker-control', className);\n\n // Override the default behavior and position the degree symbol to the\n // right of the number, regardless of the language direction.\n const prefixOrSuffixProp = isRTL() ? {\n prefix: /*#__PURE__*/_jsx(InputControlPrefixWrapper, {\n children: \"\\xB0\"\n })\n } : {\n suffix: /*#__PURE__*/_jsx(InputControlSuffixWrapper, {\n children: \"\\xB0\"\n })\n };\n return /*#__PURE__*/_jsxs(Flex, {\n ...restProps,\n ref: ref,\n className: classes,\n gap: 2,\n children: [/*#__PURE__*/_jsx(FlexBlock, {\n children: /*#__PURE__*/_jsx(NumberControl, {\n __next40pxDefaultSize: true,\n label: label,\n className: \"components-angle-picker-control__input-field\",\n max: 360,\n min: 0,\n onChange: handleOnNumberChange,\n step: \"1\",\n value: value,\n spinControls: \"none\",\n ...prefixOrSuffixProp\n })\n }), /*#__PURE__*/_jsx(Spacer, {\n marginBottom: \"1\",\n marginTop: \"auto\",\n children: /*#__PURE__*/_jsx(AngleCircle, {\n \"aria-hidden\": \"true\",\n value: value,\n onChange: onChange\n })\n })]\n });\n}\n\n/**\n * `AnglePickerControl` is a React component to render a UI that allows users to\n * pick an angle. Users can choose an angle in a visual UI with the mouse by\n * dragging an angle indicator inside a circle or by directly inserting the\n * desired angle in a text field.\n *\n * ```jsx\n * import { useState } from '@wordpress/element';\n * import { AnglePickerControl } from '@wordpress/components';\n *\n * function Example() {\n * const [ angle, setAngle ] = useState( 0 );\n * return (\n * <AnglePickerControl\n * value={ angle }\n * onChange={ setAngle }\n * />\n * );\n * }\n * ```\n */\nexport const AnglePickerControl = forwardRef(UnforwardedAnglePickerControl);\nexport default AnglePickerControl;"],
5
- "mappings": ";AAIA,OAAO,UAAU;AAKjB,SAAS,kBAAkB;AAC3B,SAAS,OAAO,UAAU;AAK1B,SAAS,MAAM,iBAAiB;AAChC,SAAS,cAAc;AACvB,OAAO,mBAAmB;AAC1B,OAAO,+BAA+B;AACtC,OAAO,+BAA+B;AACtC,OAAO,iBAAiB;AACxB,SAAS,OAAO,MAAM,QAAQ,aAAa;AAC3C,SAAS,8BAA8B,OAAO,KAAK;AACjD,QAAM;AAAA,IACJ;AAAA,IACA,QAAQ,GAAG,OAAO;AAAA,IAClB;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI;AACJ,QAAM,uBAAuB,sBAAoB;AAC/C,QAAI,aAAa,QAAW;AAC1B;AAAA,IACF;AACA,UAAM,aAAa,qBAAqB,UAAa,qBAAqB,KAAK,SAAS,kBAAkB,EAAE,IAAI;AAChH,aAAS,UAAU;AAAA,EACrB;AACA,QAAM,UAAU,KAAK,mCAAmC,SAAS;AAIjE,QAAM,qBAAqB,MAAM,IAAI;AAAA,IACnC,QAAqB,qBAAK,2BAA2B;AAAA,MACnD,UAAU;AAAA,IACZ,CAAC;AAAA,EACH,IAAI;AAAA,IACF,QAAqB,qBAAK,2BAA2B;AAAA,MACnD,UAAU;AAAA,IACZ,CAAC;AAAA,EACH;AACA,SAAoB,sBAAM,MAAM;AAAA,IAC9B,GAAG;AAAA,IACH;AAAA,IACA,WAAW;AAAA,IACX,KAAK;AAAA,IACL,UAAU,CAAc,qBAAK,WAAW;AAAA,MACtC,UAAuB,qBAAK,eAAe;AAAA,QACzC,uBAAuB;AAAA,QACvB;AAAA,QACA,WAAW;AAAA,QACX,KAAK;AAAA,QACL,KAAK;AAAA,QACL,UAAU;AAAA,QACV,MAAM;AAAA,QACN;AAAA,QACA,cAAc;AAAA,QACd,GAAG;AAAA,MACL,CAAC;AAAA,IACH,CAAC,GAAgB,qBAAK,QAAQ;AAAA,MAC5B,cAAc;AAAA,MACd,WAAW;AAAA,MACX,UAAuB,qBAAK,aAAa;AAAA,QACvC,eAAe;AAAA,QACf;AAAA,QACA;AAAA,MACF,CAAC;AAAA,IACH,CAAC,CAAC;AAAA,EACJ,CAAC;AACH;AAuBO,IAAM,qBAAqB,WAAW,6BAA6B;AAC1E,IAAO,+BAAQ;",
4
+ "sourcesContent": ["/**\n * External dependencies\n */\n\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\nimport { isRTL, __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport { Flex, FlexBlock } from '../flex';\nimport { Spacer } from '../spacer';\nimport NumberControl from '../number-control';\nimport InputControlPrefixWrapper from '../input-control/input-prefix-wrapper';\nimport InputControlSuffixWrapper from '../input-control/input-suffix-wrapper';\nimport AngleCircle from './angle-circle';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction UnforwardedAnglePickerControl(props, ref) {\n const {\n className,\n label = __('Angle'),\n onChange,\n value,\n ...restProps\n } = props;\n const handleOnNumberChange = unprocessedValue => {\n if (onChange === undefined) {\n return;\n }\n const inputValue = unprocessedValue !== undefined && unprocessedValue !== '' ? parseInt(unprocessedValue, 10) : 0;\n onChange(inputValue);\n };\n const classes = clsx('components-angle-picker-control', className);\n\n // Override the default behavior and position the degree symbol to the\n // right of the number, regardless of the language direction.\n const prefixOrSuffixProp = isRTL() ? {\n prefix: /*#__PURE__*/_jsx(InputControlPrefixWrapper, {\n children: \"\\xB0\"\n })\n } : {\n suffix: /*#__PURE__*/_jsx(InputControlSuffixWrapper, {\n children: \"\\xB0\"\n })\n };\n return /*#__PURE__*/_jsxs(Flex, {\n ...restProps,\n ref: ref,\n className: classes,\n gap: 2,\n children: [/*#__PURE__*/_jsx(FlexBlock, {\n children: /*#__PURE__*/_jsx(NumberControl, {\n __next40pxDefaultSize: true,\n label: label,\n className: \"components-angle-picker-control__input-field\",\n max: 360,\n min: 0,\n onChange: handleOnNumberChange,\n step: \"1\",\n value: value,\n spinControls: \"none\",\n ...prefixOrSuffixProp\n })\n }), /*#__PURE__*/_jsx(Spacer, {\n marginBottom: \"1\",\n marginTop: \"auto\",\n children: /*#__PURE__*/_jsx(AngleCircle, {\n \"aria-hidden\": \"true\",\n value: value,\n onChange: onChange\n })\n })]\n });\n}\n\n/**\n * `AnglePickerControl` is a React component to render a UI that allows users to\n * pick an angle. Users can choose an angle in a visual UI with the mouse by\n * dragging an angle indicator inside a circle or by directly inserting the\n * desired angle in a text field.\n *\n * ```jsx\n * import { useState } from '@wordpress/element';\n * import { AnglePickerControl } from '@wordpress/components';\n *\n * function Example() {\n * const [ angle, setAngle ] = useState( 0 );\n * return (\n * <AnglePickerControl\n * value={ angle }\n * onChange={ setAngle }\n * />\n * );\n * }\n * ```\n */\nexport const AnglePickerControl = forwardRef(UnforwardedAnglePickerControl);\nAnglePickerControl.displayName = 'AnglePickerControl';\nexport default AnglePickerControl;"],
5
+ "mappings": ";AAIA,OAAO,UAAU;AAKjB,SAAS,kBAAkB;AAC3B,SAAS,OAAO,UAAU;AAK1B,SAAS,MAAM,iBAAiB;AAChC,SAAS,cAAc;AACvB,OAAO,mBAAmB;AAC1B,OAAO,+BAA+B;AACtC,OAAO,+BAA+B;AACtC,OAAO,iBA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names": []
7
7
  }
@@ -123,13 +123,21 @@ function BoxControl({
123
123
  onClick: toggleLinked,
124
124
  isLinked
125
125
  })
126
- }), !isLinked && splitOnAxis && ["vertical", "horizontal"].map((axis) => /* @__PURE__ */ _jsx(InputControl, {
127
- side: axis,
128
- ...inputControlProps
129
- }, axis)), !isLinked && !splitOnAxis && Array.from(sidesToRender).map((axis) => /* @__PURE__ */ _jsx(InputControl, {
130
- side: axis,
131
- ...inputControlProps
132
- }, axis)), allowReset && /* @__PURE__ */ _jsx(ResetButton, {
126
+ }), !isLinked && splitOnAxis && ["vertical", "horizontal"].map((axis) => (
127
+ // Disable reason: the parent component is handling the __next40pxDefaultSize prop
128
+ // eslint-disable-next-line @wordpress/components-no-missing-40px-size-prop
129
+ /* @__PURE__ */ _jsx(InputControl, {
130
+ side: axis,
131
+ ...inputControlProps
132
+ }, axis)
133
+ )), !isLinked && !splitOnAxis && Array.from(sidesToRender).map((axis) => (
134
+ // Disable reason: the parent component is handling the __next40pxDefaultSize prop
135
+ // eslint-disable-next-line @wordpress/components-no-missing-40px-size-prop
136
+ /* @__PURE__ */ _jsx(InputControl, {
137
+ side: axis,
138
+ ...inputControlProps
139
+ }, axis)
140
+ )), allowReset && /* @__PURE__ */ _jsx(ResetButton, {
133
141
  className: "component-box-control__reset-button",
134
142
  variant: "secondary",
135
143
  size: "small",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/box-control/index.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useInstanceId } from '@wordpress/compose';\nimport { useState } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport warning from '@wordpress/warning';\n\n/**\n * Internal dependencies\n */\nimport { BaseControl } from '../base-control';\nimport InputControl from './input-control';\nimport LinkedButton from './linked-button';\nimport { Grid } from '../grid';\nimport { InputWrapper, ResetButton, LinkedButtonWrapper } from './styles/box-control-styles';\nimport { parseQuantityAndUnitFromRawValue } from '../unit-control/utils';\nimport { DEFAULT_VALUES, getInitialSide, isValueMixed, isValuesDefined, getAllowedSides } from './utils';\nimport { useControlledState } from '../utils/hooks';\nimport { maybeWarnDeprecated36pxSize } from '../utils/deprecated-36px-size';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst defaultInputProps = {\n min: 0\n};\nconst noop = () => {};\nfunction useUniqueId(idProp) {\n const instanceId = useInstanceId(BoxControl, 'inspector-box-control');\n return idProp || instanceId;\n}\n\n/**\n * A control that lets users set values for top, right, bottom, and left. Can be\n * used as an input control for values like `padding` or `margin`.\n *\n * ```jsx\n * import { useState } from 'react';\n * import { BoxControl } from '@wordpress/components';\n *\n * function Example() {\n * const [ values, setValues ] = useState( {\n * top: '50px',\n * left: '10%',\n * right: '10%',\n * bottom: '50px',\n * } );\n *\n * return (\n * <BoxControl\n * __next40pxDefaultSize\n * values={ values }\n * onChange={ setValues }\n * />\n * );\n * };\n * ```\n */\nfunction BoxControl({\n __next40pxDefaultSize = false,\n id: idProp,\n inputProps = defaultInputProps,\n onChange = noop,\n label = __('Box Control'),\n values: valuesProp,\n units,\n sides,\n splitOnAxis = false,\n allowReset = true,\n resetValues = DEFAULT_VALUES,\n presets,\n presetKey,\n onMouseOver,\n onMouseOut\n}) {\n const [values, setValues] = useControlledState(valuesProp, {\n fallback: DEFAULT_VALUES\n });\n const inputValues = values || DEFAULT_VALUES;\n const hasInitialValue = isValuesDefined(valuesProp);\n const hasOneSide = sides?.length === 1;\n const [isDirty, setIsDirty] = useState(hasInitialValue);\n const [isLinked, setIsLinked] = useState(!hasInitialValue || !isValueMixed(inputValues) || hasOneSide);\n const [side, setSide] = useState(getInitialSide(isLinked, splitOnAxis));\n\n // Tracking selected units via internal state allows filtering of CSS unit\n // only values from being saved while maintaining preexisting unit selection\n // behaviour. Filtering CSS only values prevents invalid style values.\n const [selectedUnits, setSelectedUnits] = useState({\n top: parseQuantityAndUnitFromRawValue(valuesProp?.top)[1],\n right: parseQuantityAndUnitFromRawValue(valuesProp?.right)[1],\n bottom: parseQuantityAndUnitFromRawValue(valuesProp?.bottom)[1],\n left: parseQuantityAndUnitFromRawValue(valuesProp?.left)[1]\n });\n const id = useUniqueId(idProp);\n const headingId = `${id}-heading`;\n const toggleLinked = () => {\n setIsLinked(!isLinked);\n setSide(getInitialSide(!isLinked, splitOnAxis));\n };\n const handleOnFocus = (_event, {\n side: nextSide\n }) => {\n setSide(nextSide);\n };\n const handleOnChange = nextValues => {\n onChange(nextValues);\n setValues(nextValues);\n setIsDirty(true);\n };\n const handleOnReset = () => {\n onChange(resetValues);\n setValues(resetValues);\n setSelectedUnits(resetValues);\n setIsDirty(false);\n };\n const inputControlProps = {\n onMouseOver,\n onMouseOut,\n ...inputProps,\n onChange: handleOnChange,\n onFocus: handleOnFocus,\n isLinked,\n units,\n selectedUnits,\n setSelectedUnits,\n sides,\n values: inputValues,\n __next40pxDefaultSize,\n presets,\n presetKey\n };\n maybeWarnDeprecated36pxSize({\n componentName: 'BoxControl',\n __next40pxDefaultSize,\n size: undefined\n });\n const sidesToRender = getAllowedSides(sides);\n if (presets && !presetKey || !presets && presetKey) {\n const definedProp = presets ? 'presets' : 'presetKey';\n const missingProp = presets ? 'presetKey' : 'presets';\n globalThis.SCRIPT_DEBUG === true ? warning(`wp.components.BoxControl: the '${missingProp}' prop is required when the '${definedProp}' prop is defined.`) : void 0;\n }\n return /*#__PURE__*/_jsxs(Grid, {\n id: id,\n columns: 3,\n templateColumns: \"1fr min-content min-content\",\n role: \"group\",\n \"aria-labelledby\": headingId,\n children: [/*#__PURE__*/_jsx(BaseControl.VisualLabel, {\n id: headingId,\n children: label\n }), isLinked && /*#__PURE__*/_jsx(InputWrapper, {\n children: /*#__PURE__*/_jsx(InputControl, {\n side: \"all\",\n ...inputControlProps\n })\n }), !hasOneSide && /*#__PURE__*/_jsx(LinkedButtonWrapper, {\n children: /*#__PURE__*/_jsx(LinkedButton, {\n onClick: toggleLinked,\n isLinked: isLinked\n })\n }), !isLinked && splitOnAxis && ['vertical', 'horizontal'].map(axis => /*#__PURE__*/_jsx(InputControl, {\n side: axis,\n ...inputControlProps\n }, axis)), !isLinked && !splitOnAxis && Array.from(sidesToRender).map(axis => /*#__PURE__*/_jsx(InputControl, {\n side: axis,\n ...inputControlProps\n }, axis)), allowReset && /*#__PURE__*/_jsx(ResetButton, {\n className: \"component-box-control__reset-button\",\n variant: \"secondary\",\n size: \"small\",\n onClick: handleOnReset,\n disabled: !isDirty,\n children: __('Reset')\n })]\n });\n}\nexport { applyValueToSides } from './utils';\nexport default BoxControl;"],
5
- "mappings": ";AAGA,SAAS,qBAAqB;AAC9B,SAAS,gBAAgB;AACzB,SAAS,UAAU;AACnB,OAAO,aAAa;AAKpB,SAAS,mBAAmB;AAC5B,OAAO,kBAAkB;AACzB,OAAO,kBAAkB;AACzB,SAAS,YAAY;AACrB,SAAS,cAAc,aAAa,2BAA2B;AAC/D,SAAS,wCAAwC;AACjD,SAAS,gBAAgB,gBAAgB,cAAc,iBAAiB,uBAAuB;AAC/F,SAAS,0BAA0B;AACnC,SAAS,mCAAmC;AAC5C,SAAS,OAAO,MAAM,QAAQ,aAAa;AA4J3C,SAAS,yBAAyB;AA3JlC,IAAM,oBAAoB;AAAA,EACxB,KAAK;AACP;AACA,IAAM,OAAO,MAAM;AAAC;AACpB,SAAS,YAAY,QAAQ;AAC3B,QAAM,aAAa,cAAc,YAAY,uBAAuB;AACpE,SAAO,UAAU;AACnB;AA4BA,SAAS,WAAW;AAAA,EAClB,wBAAwB;AAAA,EACxB,IAAI;AAAA,EACJ,aAAa;AAAA,EACb,WAAW;AAAA,EACX,QAAQ,GAAG,aAAa;AAAA,EACxB,QAAQ;AAAA,EACR;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd,aAAa;AAAA,EACb,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAG;AACD,QAAM,CAAC,QAAQ,SAAS,IAAI,mBAAmB,YAAY;AAAA,IACzD,UAA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AAG,OAAO;AAAA,IACtB,CAAC,CAAC;AAAA,EACJ,CAAC;AACH;AAEA,IAAO,sBAAQ;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useInstanceId } from '@wordpress/compose';\nimport { useState } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport warning from '@wordpress/warning';\n\n/**\n * Internal dependencies\n */\nimport { BaseControl } from '../base-control';\nimport InputControl from './input-control';\nimport LinkedButton from './linked-button';\nimport { Grid } from '../grid';\nimport { InputWrapper, ResetButton, LinkedButtonWrapper } from './styles/box-control-styles';\nimport { parseQuantityAndUnitFromRawValue } from '../unit-control/utils';\nimport { DEFAULT_VALUES, getInitialSide, isValueMixed, isValuesDefined, getAllowedSides } from './utils';\nimport { useControlledState } from '../utils/hooks';\nimport { maybeWarnDeprecated36pxSize } from '../utils/deprecated-36px-size';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst defaultInputProps = {\n min: 0\n};\nconst noop = () => {};\nfunction useUniqueId(idProp) {\n const instanceId = useInstanceId(BoxControl, 'inspector-box-control');\n return idProp || instanceId;\n}\n\n/**\n * A control that lets users set values for top, right, bottom, and left. Can be\n * used as an input control for values like `padding` or `margin`.\n *\n * ```jsx\n * import { useState } from 'react';\n * import { BoxControl } from '@wordpress/components';\n *\n * function Example() {\n * const [ values, setValues ] = useState( {\n * top: '50px',\n * left: '10%',\n * right: '10%',\n * bottom: '50px',\n * } );\n *\n * return (\n * <BoxControl\n * __next40pxDefaultSize\n * values={ values }\n * onChange={ setValues }\n * />\n * );\n * };\n * ```\n */\nfunction BoxControl({\n __next40pxDefaultSize = false,\n id: idProp,\n inputProps = defaultInputProps,\n onChange = noop,\n label = __('Box Control'),\n values: valuesProp,\n units,\n sides,\n splitOnAxis = false,\n allowReset = true,\n resetValues = DEFAULT_VALUES,\n presets,\n presetKey,\n onMouseOver,\n onMouseOut\n}) {\n const [values, setValues] = useControlledState(valuesProp, {\n fallback: DEFAULT_VALUES\n });\n const inputValues = values || DEFAULT_VALUES;\n const hasInitialValue = isValuesDefined(valuesProp);\n const hasOneSide = sides?.length === 1;\n const [isDirty, setIsDirty] = useState(hasInitialValue);\n const [isLinked, setIsLinked] = useState(!hasInitialValue || !isValueMixed(inputValues) || hasOneSide);\n const [side, setSide] = useState(getInitialSide(isLinked, splitOnAxis));\n\n // Tracking selected units via internal state allows filtering of CSS unit\n // only values from being saved while maintaining preexisting unit selection\n // behaviour. Filtering CSS only values prevents invalid style values.\n const [selectedUnits, setSelectedUnits] = useState({\n top: parseQuantityAndUnitFromRawValue(valuesProp?.top)[1],\n right: parseQuantityAndUnitFromRawValue(valuesProp?.right)[1],\n bottom: parseQuantityAndUnitFromRawValue(valuesProp?.bottom)[1],\n left: parseQuantityAndUnitFromRawValue(valuesProp?.left)[1]\n });\n const id = useUniqueId(idProp);\n const headingId = `${id}-heading`;\n const toggleLinked = () => {\n setIsLinked(!isLinked);\n setSide(getInitialSide(!isLinked, splitOnAxis));\n };\n const handleOnFocus = (_event, {\n side: nextSide\n }) => {\n setSide(nextSide);\n };\n const handleOnChange = nextValues => {\n onChange(nextValues);\n setValues(nextValues);\n setIsDirty(true);\n };\n const handleOnReset = () => {\n onChange(resetValues);\n setValues(resetValues);\n setSelectedUnits(resetValues);\n setIsDirty(false);\n };\n const inputControlProps = {\n onMouseOver,\n onMouseOut,\n ...inputProps,\n onChange: handleOnChange,\n onFocus: handleOnFocus,\n isLinked,\n units,\n selectedUnits,\n setSelectedUnits,\n sides,\n values: inputValues,\n __next40pxDefaultSize,\n presets,\n presetKey\n };\n maybeWarnDeprecated36pxSize({\n componentName: 'BoxControl',\n __next40pxDefaultSize,\n size: undefined\n });\n const sidesToRender = getAllowedSides(sides);\n if (presets && !presetKey || !presets && presetKey) {\n const definedProp = presets ? 'presets' : 'presetKey';\n const missingProp = presets ? 'presetKey' : 'presets';\n globalThis.SCRIPT_DEBUG === true ? warning(`wp.components.BoxControl: the '${missingProp}' prop is required when the '${definedProp}' prop is defined.`) : void 0;\n }\n return /*#__PURE__*/_jsxs(Grid, {\n id: id,\n columns: 3,\n templateColumns: \"1fr min-content min-content\",\n role: \"group\",\n \"aria-labelledby\": headingId,\n children: [/*#__PURE__*/_jsx(BaseControl.VisualLabel, {\n id: headingId,\n children: label\n }), isLinked && /*#__PURE__*/_jsx(InputWrapper, {\n children: /*#__PURE__*/_jsx(InputControl, {\n side: \"all\",\n ...inputControlProps\n })\n }), !hasOneSide && /*#__PURE__*/_jsx(LinkedButtonWrapper, {\n children: /*#__PURE__*/_jsx(LinkedButton, {\n onClick: toggleLinked,\n isLinked: isLinked\n })\n }), !isLinked && splitOnAxis && ['vertical', 'horizontal'].map(axis =>\n /*#__PURE__*/\n // Disable reason: the parent component is handling the __next40pxDefaultSize prop\n // eslint-disable-next-line @wordpress/components-no-missing-40px-size-prop\n _jsx(InputControl, {\n side: axis,\n ...inputControlProps\n }, axis)), !isLinked && !splitOnAxis && Array.from(sidesToRender).map(axis =>\n /*#__PURE__*/\n // Disable reason: the parent component is handling the __next40pxDefaultSize prop\n // eslint-disable-next-line @wordpress/components-no-missing-40px-size-prop\n _jsx(InputControl, {\n side: axis,\n ...inputControlProps\n }, axis)), allowReset && /*#__PURE__*/_jsx(ResetButton, {\n className: \"component-box-control__reset-button\",\n variant: \"secondary\",\n size: \"small\",\n onClick: handleOnReset,\n disabled: !isDirty,\n children: __('Reset')\n })]\n });\n}\nexport { applyValueToSides } from './utils';\nexport default BoxControl;"],
5
+ "mappings": ";AAGA,SAAS,qBAAqB;AAC9B,SAAS,gBAAgB;AACzB,SAAS,UAAU;AACnB,OAAO,aAAa;AAKpB,SAAS,mBAAmB;AAC5B,OAAO,kBAAkB;AACzB,OAAO,kBAAkB;AACzB,SAAS,YAAY;AACrB,SAAS,cAAc,aAAa,2BAA2B;AAC/D,SAAS,wCAAwC;AACjD,SAAS,gBAAgB,gBAAgB,cAAc,iBAAiB,uBAAuB;AAC/F,SAAS,0BAA0B;AACnC,SAAS,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