@wordpress/components 38.0.0 → 39.0.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 (3024) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/CONTRIBUTING.md +2 -6
  3. package/README.md +0 -10
  4. package/build/alignment-matrix-control/cell.cjs.map +2 -2
  5. package/build/alignment-matrix-control/icon.cjs.map +2 -2
  6. package/build/alignment-matrix-control/index.cjs.map +2 -2
  7. package/build/alignment-matrix-control/utils.cjs.map +2 -2
  8. package/build/angle-picker-control/angle-circle.cjs.map +2 -2
  9. package/build/angle-picker-control/index.cjs.map +2 -2
  10. package/build/animate/index.cjs +5 -0
  11. package/build/animate/index.cjs.map +3 -3
  12. package/build/autocomplete/autocompleter-ui.cjs.map +2 -2
  13. package/build/autocomplete/get-autocomplete-match.cjs.map +2 -2
  14. package/build/autocomplete/get-default-use-items.cjs.map +2 -2
  15. package/build/autocomplete/index.cjs +1 -2
  16. package/build/autocomplete/index.cjs.map +2 -2
  17. package/build/badge/index.cjs.map +2 -2
  18. package/build/base-control/hooks.cjs.map +2 -2
  19. package/build/base-control/index.cjs.map +2 -2
  20. package/build/base-control/styles/base-control-styles.cjs +6 -6
  21. package/build/base-control/styles/base-control-styles.cjs.map +2 -2
  22. package/build/border-box-control/border-box-control/component.cjs.map +2 -2
  23. package/build/border-box-control/border-box-control/hook.cjs.map +2 -2
  24. package/build/border-box-control/border-box-control-linked-button/component.cjs.map +2 -2
  25. package/build/border-box-control/border-box-control-linked-button/hook.cjs.map +2 -2
  26. package/build/border-box-control/border-box-control-split-controls/component.cjs.map +2 -2
  27. package/build/border-box-control/border-box-control-split-controls/hook.cjs.map +2 -2
  28. package/build/border-box-control/border-box-control-visualizer/component.cjs.map +2 -2
  29. package/build/border-box-control/border-box-control-visualizer/hook.cjs.map +2 -2
  30. package/build/border-box-control/styles.cjs +8 -8
  31. package/build/border-box-control/styles.cjs.map +2 -2
  32. package/build/border-box-control/utils.cjs.map +2 -2
  33. package/build/border-control/border-control/component.cjs.map +2 -2
  34. package/build/border-control/border-control/hook.cjs.map +2 -2
  35. package/build/border-control/border-control-dropdown/component.cjs.map +2 -2
  36. package/build/border-control/border-control-dropdown/hook.cjs.map +2 -2
  37. package/build/border-control/border-control-style-picker/component.cjs.map +2 -2
  38. package/build/border-control/styles.cjs +14 -14
  39. package/build/border-control/styles.cjs.map +2 -2
  40. package/build/box-control/box-input-control.cjs.map +2 -2
  41. package/build/box-control/icon.cjs.map +2 -2
  42. package/build/box-control/index.cjs.map +2 -2
  43. package/build/box-control/linked-button.cjs.map +2 -2
  44. package/build/box-control/styles/box-control-icon-styles.cjs +10 -10
  45. package/build/box-control/styles/box-control-icon-styles.cjs.map +2 -2
  46. package/build/box-control/styles/box-control-styles.cjs +6 -6
  47. package/build/box-control/styles/box-control-styles.cjs.map +2 -2
  48. package/build/box-control/utils.cjs.map +2 -2
  49. package/build/button/deprecated.cjs.map +2 -2
  50. package/build/button/index.cjs.map +2 -2
  51. package/build/button-group/index.cjs.map +2 -2
  52. package/build/card/card/component.cjs +1 -1
  53. package/build/card/card/component.cjs.map +2 -2
  54. package/build/card/card/hook.cjs.map +2 -2
  55. package/build/card/card-body/component.cjs.map +2 -2
  56. package/build/card/card-body/hook.cjs.map +2 -2
  57. package/build/card/card-divider/component.cjs.map +2 -2
  58. package/build/card/card-divider/hook.cjs.map +2 -2
  59. package/build/card/card-footer/component.cjs.map +2 -2
  60. package/build/card/card-footer/hook.cjs.map +2 -2
  61. package/build/card/card-header/component.cjs.map +2 -2
  62. package/build/card/card-header/hook.cjs.map +2 -2
  63. package/build/card/card-media/component.cjs.map +2 -2
  64. package/build/card/card-media/hook.cjs.map +2 -2
  65. package/build/card/get-padding-by-size.cjs +6 -6
  66. package/build/card/get-padding-by-size.cjs.map +2 -2
  67. package/build/card/styles.cjs +16 -16
  68. package/build/card/styles.cjs.map +2 -2
  69. package/build/checkbox-control/index.cjs.map +2 -2
  70. package/build/circular-option-picker/circular-option-picker-actions.cjs.map +2 -2
  71. package/build/circular-option-picker/circular-option-picker-context.cjs.map +2 -2
  72. package/build/circular-option-picker/circular-option-picker-option-group.cjs.map +2 -2
  73. package/build/circular-option-picker/circular-option-picker-option.cjs.map +2 -2
  74. package/build/circular-option-picker/circular-option-picker.cjs.map +2 -2
  75. package/build/circular-option-picker/index.cjs.map +2 -2
  76. package/build/circular-option-picker/utils.cjs.map +2 -2
  77. package/build/clipboard-button/index.cjs.map +2 -2
  78. package/build/color-indicator/index.cjs.map +2 -2
  79. package/build/color-palette/index.cjs.map +2 -2
  80. package/build/color-palette/styles.cjs +1 -1
  81. package/build/color-palette/styles.cjs.map +2 -2
  82. package/build/color-palette/utils.cjs.map +2 -2
  83. package/build/color-picker/color-copy-button.cjs.map +2 -2
  84. package/build/color-picker/color-input.cjs.map +2 -2
  85. package/build/color-picker/component.cjs.map +2 -2
  86. package/build/color-picker/hex-input.cjs.map +2 -2
  87. package/build/color-picker/hsl-input.cjs.map +2 -2
  88. package/build/color-picker/index.cjs.map +2 -2
  89. package/build/color-picker/input-with-slider.cjs.map +2 -2
  90. package/build/color-picker/legacy-adapter.cjs.map +2 -2
  91. package/build/color-picker/picker.cjs.map +2 -2
  92. package/build/color-picker/rgb-input.cjs.map +2 -2
  93. package/build/color-picker/styles.cjs +7 -7
  94. package/build/color-picker/styles.cjs.map +2 -2
  95. package/build/color-picker/use-deprecated-props.cjs.map +2 -2
  96. package/build/combobox-control/index.cjs +2 -2
  97. package/build/combobox-control/index.cjs.map +2 -2
  98. package/build/composite/context.cjs.map +2 -2
  99. package/build/composite/group-label.cjs.map +2 -2
  100. package/build/composite/group.cjs.map +2 -2
  101. package/build/composite/hover.cjs.map +2 -2
  102. package/build/composite/index.cjs.map +2 -2
  103. package/build/composite/item.cjs.map +2 -2
  104. package/build/composite/legacy/index.cjs.map +2 -2
  105. package/build/composite/row.cjs.map +2 -2
  106. package/build/composite/typeahead.cjs.map +2 -2
  107. package/build/confirm-dialog/component.cjs.map +2 -2
  108. package/build/confirm-dialog/docs-manifest.json +5 -0
  109. package/build/confirm-dialog/index.cjs.map +2 -2
  110. package/build/content-editable-control/index.cjs.map +2 -2
  111. package/build/context/context-connect.cjs.map +2 -2
  112. package/build/context/context-system-provider.cjs.map +2 -2
  113. package/build/context/get-styled-class-name-from-key.cjs.map +2 -2
  114. package/build/context/use-context-system.cjs.map +2 -2
  115. package/build/context/utils.cjs.map +2 -2
  116. package/build/custom-gradient-picker/constants.cjs.map +2 -2
  117. package/build/custom-gradient-picker/gradient-bar/control-points.cjs.map +2 -2
  118. package/build/custom-gradient-picker/gradient-bar/index.cjs.map +2 -2
  119. package/build/custom-gradient-picker/gradient-bar/utils.cjs.map +2 -2
  120. package/build/custom-gradient-picker/index.cjs +1 -1
  121. package/build/custom-gradient-picker/index.cjs.map +2 -2
  122. package/build/custom-gradient-picker/serializer.cjs.map +2 -2
  123. package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.cjs +2 -2
  124. package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.cjs.map +2 -2
  125. package/build/custom-gradient-picker/utils.cjs.map +2 -2
  126. package/build/custom-select-control/index.cjs.map +2 -2
  127. package/build/custom-select-control-v2/custom-select.cjs.map +2 -2
  128. package/build/custom-select-control-v2/index.cjs.map +2 -2
  129. package/build/custom-select-control-v2/item.cjs.map +2 -2
  130. package/build/custom-select-control-v2/styles.cjs +9 -9
  131. package/build/custom-select-control-v2/styles.cjs.map +2 -2
  132. package/build/dashicon/index.cjs.map +2 -2
  133. package/build/date-time/date-picker/index.cjs.map +2 -2
  134. package/build/date-time/date-picker/styles.cjs +8 -8
  135. package/build/date-time/date-picker/styles.cjs.map +2 -2
  136. package/build/date-time/date-picker/use-lilius/index.cjs.map +2 -2
  137. package/build/date-time/date-time/index.cjs.map +2 -2
  138. package/build/date-time/date-time/styles.cjs +1 -1
  139. package/build/date-time/date-time/styles.cjs.map +2 -2
  140. package/build/date-time/index.cjs.map +2 -2
  141. package/build/date-time/time-picker/styles.cjs +11 -11
  142. package/build/date-time/time-picker/styles.cjs.map +2 -2
  143. package/build/date-time/time-picker/time-input/index.cjs.map +2 -2
  144. package/build/date-time/time-picker/timezone.cjs.map +2 -2
  145. package/build/date-time/utils.cjs.map +2 -2
  146. package/build/disabled/index.cjs +1 -1
  147. package/build/disabled/index.cjs.map +1 -1
  148. package/build/disclosure/index.cjs.map +2 -2
  149. package/build/divider/component.cjs.map +2 -2
  150. package/build/draggable/index.cjs.map +2 -2
  151. package/build/drop-zone/index.cjs.map +2 -2
  152. package/build/drop-zone/provider.cjs.map +2 -2
  153. package/build/dropdown/dropdown-content-wrapper.cjs.map +2 -2
  154. package/build/dropdown/index.cjs.map +2 -2
  155. package/build/dropdown/styles.cjs +2 -2
  156. package/build/dropdown/styles.cjs.map +2 -2
  157. package/build/dropdown-menu/index.cjs.map +2 -2
  158. package/build/duotone-picker/color-list-picker/index.cjs +1 -1
  159. package/build/duotone-picker/color-list-picker/index.cjs.map +2 -2
  160. package/build/duotone-picker/custom-duotone-bar.cjs.map +2 -2
  161. package/build/duotone-picker/duotone-picker.cjs.map +2 -2
  162. package/build/duotone-picker/duotone-swatch.cjs.map +2 -2
  163. package/build/duotone-picker/utils.cjs.map +2 -2
  164. package/build/elevation/component.cjs.map +2 -2
  165. package/build/elevation/hook.cjs +5 -5
  166. package/build/elevation/hook.cjs.map +2 -2
  167. package/build/elevation/styles.cjs +1 -1
  168. package/build/elevation/styles.cjs.map +2 -2
  169. package/build/external-link/index.cjs.map +2 -2
  170. package/build/flex/context.cjs.map +2 -2
  171. package/build/flex/flex/component.cjs.map +2 -2
  172. package/build/flex/flex-block/component.cjs.map +2 -2
  173. package/build/flex/flex-block/hook.cjs.map +2 -2
  174. package/build/flex/flex-item/component.cjs.map +2 -2
  175. package/build/focal-point-picker/controls.cjs.map +2 -2
  176. package/build/focal-point-picker/focal-point.cjs.map +2 -2
  177. package/build/focal-point-picker/grid.cjs.map +2 -2
  178. package/build/focal-point-picker/index.cjs.map +2 -2
  179. package/build/focal-point-picker/media.cjs.map +2 -2
  180. package/build/focal-point-picker/styles/focal-point-picker-style.cjs +11 -11
  181. package/build/focal-point-picker/styles/focal-point-picker-style.cjs.map +2 -2
  182. package/build/focal-point-picker/styles/focal-point-style.cjs +1 -1
  183. package/build/focal-point-picker/styles/focal-point-style.cjs.map +2 -2
  184. package/build/focusable-iframe/index.cjs.map +2 -2
  185. package/build/font-size-picker/constants.cjs.map +2 -2
  186. package/build/font-size-picker/font-size-picker-select.cjs.map +2 -2
  187. package/build/font-size-picker/font-size-picker-toggle-group.cjs.map +2 -2
  188. package/build/font-size-picker/index.cjs.map +2 -2
  189. package/build/font-size-picker/styles.cjs +5 -5
  190. package/build/font-size-picker/styles.cjs.map +2 -2
  191. package/build/font-size-picker/utils.cjs.map +2 -2
  192. package/build/form-file-upload/index.cjs.map +2 -2
  193. package/build/form-toggle/index.cjs.map +2 -2
  194. package/build/form-token-field/index.cjs +2 -2
  195. package/build/form-token-field/index.cjs.map +2 -2
  196. package/build/form-token-field/suggestions-list.cjs.map +2 -2
  197. package/build/form-token-field/token-input.cjs.map +2 -2
  198. package/build/form-token-field/token.cjs.map +2 -2
  199. package/build/gradient-picker/index.cjs.map +2 -2
  200. package/build/grid/component.cjs.map +2 -2
  201. package/build/grid/hook.cjs +1 -1
  202. package/build/grid/hook.cjs.map +2 -2
  203. package/build/grid/utils.cjs.map +2 -2
  204. package/build/guide/icons.cjs.map +2 -2
  205. package/build/guide/index.cjs.map +2 -2
  206. package/build/guide/page-control.cjs.map +2 -2
  207. package/build/guide/page.cjs.map +2 -2
  208. package/build/h-stack/component.cjs.map +2 -2
  209. package/build/h-stack/hook.cjs.map +2 -2
  210. package/build/h-stack/utils.cjs.map +2 -2
  211. package/build/heading/component.cjs.map +2 -2
  212. package/build/heading/hook.cjs.map +2 -2
  213. package/build/higher-order/navigate-regions/index.cjs.map +2 -2
  214. package/build/higher-order/with-constrained-tabbing/index.cjs.map +2 -2
  215. package/build/higher-order/with-fallback-styles/index.cjs.map +2 -2
  216. package/build/higher-order/with-filters/index.cjs.map +2 -2
  217. package/build/higher-order/with-focus-outside/index.cjs.map +2 -2
  218. package/build/higher-order/with-focus-return/index.cjs.map +2 -2
  219. package/build/higher-order/with-notices/index.cjs.map +2 -2
  220. package/build/higher-order/with-spoken-messages/index.cjs.map +2 -2
  221. package/build/icon/index.cjs +0 -1
  222. package/build/icon/index.cjs.map +2 -2
  223. package/build/input-control/backdrop.cjs.map +2 -2
  224. package/build/input-control/index.cjs.map +2 -2
  225. package/build/input-control/input-base.cjs.map +2 -2
  226. package/build/input-control/input-field.cjs +2 -2
  227. package/build/input-control/input-field.cjs.map +2 -2
  228. package/build/input-control/input-prefix-wrapper.cjs.map +2 -2
  229. package/build/input-control/input-suffix-wrapper.cjs.map +2 -2
  230. package/build/input-control/label.cjs.map +2 -2
  231. package/build/input-control/reducer/actions.cjs.map +2 -2
  232. package/build/input-control/reducer/reducer.cjs.map +2 -2
  233. package/build/input-control/reducer/state.cjs.map +2 -2
  234. package/build/input-control/styles/input-control-styles.cjs +22 -22
  235. package/build/input-control/styles/input-control-styles.cjs.map +2 -2
  236. package/build/input-control/utils.cjs +1 -1
  237. package/build/input-control/utils.cjs.map +2 -2
  238. package/build/isolated-event-container/index.cjs.map +2 -2
  239. package/build/item-group/context.cjs.map +2 -2
  240. package/build/item-group/item/component.cjs.map +2 -2
  241. package/build/item-group/item/hook.cjs +94 -7
  242. package/build/item-group/item/hook.cjs.map +4 -4
  243. package/build/item-group/item-group/component.cjs.map +2 -2
  244. package/build/item-group/item-group/hook.cjs +91 -4
  245. package/build/item-group/item-group/hook.cjs.map +4 -4
  246. package/build/keyboard-shortcuts/index.cjs.map +2 -2
  247. package/build/lock-unlock.cjs.map +2 -2
  248. package/build/menu/checkbox-item.cjs +7 -4
  249. package/build/menu/checkbox-item.cjs.map +2 -2
  250. package/build/menu/context.cjs.map +2 -2
  251. package/build/menu/group-label.cjs.map +2 -2
  252. package/build/menu/group.cjs.map +2 -2
  253. package/build/menu/index.cjs.map +2 -2
  254. package/build/menu/item-help-text.cjs.map +2 -2
  255. package/build/menu/item-label.cjs.map +2 -2
  256. package/build/menu/item.cjs +5 -3
  257. package/build/menu/item.cjs.map +2 -2
  258. package/build/menu/popover.cjs.map +2 -2
  259. package/build/menu/radio-item.cjs +7 -4
  260. package/build/menu/radio-item.cjs.map +2 -2
  261. package/build/menu/separator.cjs.map +2 -2
  262. package/build/menu/styles.cjs +17 -17
  263. package/build/menu/styles.cjs.map +2 -2
  264. package/build/menu/submenu-trigger-item.cjs.map +2 -2
  265. package/build/menu/trigger-button.cjs.map +2 -2
  266. package/build/menu/use-menu-item-hide-on-click.cjs +66 -0
  267. package/build/menu/use-menu-item-hide-on-click.cjs.map +7 -0
  268. package/build/menu-group/index.cjs.map +2 -2
  269. package/build/menu-item/index.cjs.map +2 -2
  270. package/build/menu-items-choice/index.cjs.map +2 -2
  271. package/build/modal/index.cjs +2 -2
  272. package/build/modal/index.cjs.map +2 -2
  273. package/build/modal/use-modal-exit-animation.cjs.map +2 -2
  274. package/build/navigable-container/container.cjs.map +2 -2
  275. package/build/navigable-container/index.cjs.map +2 -2
  276. package/build/navigable-container/menu.cjs.map +2 -2
  277. package/build/navigable-container/tabbable.cjs.map +2 -2
  278. package/build/navigator/context.cjs.map +2 -2
  279. package/build/navigator/index.cjs.map +2 -2
  280. package/build/navigator/legacy.cjs.map +2 -2
  281. package/build/navigator/navigator/component.cjs.map +2 -2
  282. package/build/navigator/navigator-back-button/component.cjs.map +2 -2
  283. package/build/navigator/navigator-back-button/hook.cjs.map +2 -2
  284. package/build/navigator/navigator-button/component.cjs.map +2 -2
  285. package/build/navigator/navigator-button/hook.cjs.map +2 -2
  286. package/build/navigator/navigator-screen/component.cjs.map +2 -2
  287. package/build/navigator/navigator-screen/use-screen-animate-presence.cjs.map +2 -2
  288. package/build/navigator/navigator-to-parent-button/component.cjs.map +2 -2
  289. package/build/navigator/styles.cjs +7 -7
  290. package/build/navigator/styles.cjs.map +2 -2
  291. package/build/navigator/use-navigator.cjs.map +2 -2
  292. package/build/navigator/utils/router.cjs.map +2 -2
  293. package/build/notice/index.cjs.map +2 -2
  294. package/build/notice/list.cjs.map +2 -2
  295. package/build/number-control/index.cjs.map +2 -2
  296. package/build/number-control/styles/number-control-styles.cjs +4 -4
  297. package/build/number-control/styles/number-control-styles.cjs.map +2 -2
  298. package/build/palette-edit/index.cjs +2 -2
  299. package/build/palette-edit/index.cjs.map +2 -2
  300. package/build/palette-edit/styles.cjs +9 -9
  301. package/build/palette-edit/styles.cjs.map +2 -2
  302. package/build/panel/body.cjs.map +2 -2
  303. package/build/panel/header.cjs.map +2 -2
  304. package/build/panel/index.cjs.map +2 -2
  305. package/build/panel/row.cjs.map +2 -2
  306. package/build/placeholder/index.cjs.map +2 -2
  307. package/build/popover/index.cjs.map +2 -2
  308. package/build/popover/overlay-middlewares.cjs.map +2 -2
  309. package/build/popover/utils.cjs.map +2 -2
  310. package/build/private-apis.cjs +0 -14
  311. package/build/private-apis.cjs.map +2 -2
  312. package/build/progress-bar/index.cjs.map +2 -2
  313. package/build/progress-bar/styles.cjs +4 -4
  314. package/build/progress-bar/styles.cjs.map +2 -2
  315. package/build/query-controls/author-select.cjs.map +2 -2
  316. package/build/query-controls/index.cjs +1 -1
  317. package/build/query-controls/index.cjs.map +2 -2
  318. package/build/query-controls/terms.cjs.map +2 -2
  319. package/build/radio-control/index.cjs.map +2 -2
  320. package/build/radio-group/context.cjs.map +2 -2
  321. package/build/radio-group/index.cjs.map +2 -2
  322. package/build/radio-group/radio.cjs.map +2 -2
  323. package/build/range-control/index.cjs.map +2 -2
  324. package/build/range-control/input-range.cjs.map +2 -2
  325. package/build/range-control/mark.cjs.map +2 -2
  326. package/build/range-control/rail.cjs.map +2 -2
  327. package/build/range-control/styles/range-control-styles.cjs +25 -25
  328. package/build/range-control/styles/range-control-styles.cjs.map +2 -2
  329. package/build/range-control/tooltip.cjs.map +2 -2
  330. package/build/range-control/utils.cjs.map +2 -2
  331. package/build/resizable-box/index.cjs.map +2 -2
  332. package/build/resizable-box/resize-tooltip/index.cjs.map +2 -2
  333. package/build/resizable-box/resize-tooltip/label.cjs.map +2 -2
  334. package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.cjs +4 -4
  335. package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.cjs.map +2 -2
  336. package/build/resizable-box/resize-tooltip/utils.cjs.map +2 -2
  337. package/build/responsive-wrapper/index.cjs.map +2 -2
  338. package/build/sandbox/index.cjs +8 -4
  339. package/build/sandbox/index.cjs.map +2 -2
  340. package/build/scroll-lock/index.cjs.map +2 -2
  341. package/build/scrollable/component.cjs.map +2 -2
  342. package/build/scrollable/hook.cjs.map +2 -2
  343. package/build/scrollable/styles.cjs +7 -7
  344. package/build/scrollable/styles.cjs.map +2 -2
  345. package/build/search-control/index.cjs.map +2 -2
  346. package/build/select-control/chevron-down.cjs.map +2 -2
  347. package/build/select-control/index.cjs.map +2 -2
  348. package/build/select-control/styles/select-control-styles.cjs +8 -8
  349. package/build/select-control/styles/select-control-styles.cjs.map +2 -2
  350. package/build/shortcut/index.cjs.map +2 -2
  351. package/build/slot-fill/bubbles-virtually/slot.cjs.map +2 -2
  352. package/build/slot-fill/bubbles-virtually/use-slot-fills.cjs.map +2 -2
  353. package/build/slot-fill/bubbles-virtually/use-slot.cjs.map +2 -2
  354. package/build/slot-fill/context.cjs.map +2 -2
  355. package/build/slot-fill/index.cjs.map +2 -2
  356. package/build/slot-fill/provider.cjs.map +2 -2
  357. package/build/slot-fill/slot.cjs.map +2 -2
  358. package/build/snackbar/index.cjs.map +2 -2
  359. package/build/snackbar/list.cjs.map +2 -2
  360. package/build/spacer/component.cjs.map +2 -2
  361. package/build/spinner/index.cjs +91 -5
  362. package/build/spinner/index.cjs.map +3 -3
  363. package/build/surface/component.cjs +15 -0
  364. package/build/surface/component.cjs.map +3 -3
  365. package/build/surface/hook.cjs.map +2 -2
  366. package/build/tab-panel/index.cjs.map +2 -2
  367. package/build/tabs/context.cjs.map +2 -2
  368. package/build/tabs/index.cjs.map +2 -2
  369. package/build/tabs/styles.cjs +5 -5
  370. package/build/tabs/styles.cjs.map +2 -2
  371. package/build/tabs/tab.cjs +1 -1
  372. package/build/tabs/tab.cjs.map +2 -2
  373. package/build/tabs/tablist.cjs.map +2 -2
  374. package/build/tabs/tabpanel.cjs +1 -1
  375. package/build/tabs/tabpanel.cjs.map +2 -2
  376. package/build/tabs/use-track-overflow.cjs.map +2 -2
  377. package/build/text/component.cjs.map +2 -2
  378. package/build/text/get-line-height.cjs.map +2 -2
  379. package/build/text/hook.cjs +5 -5
  380. package/build/text/hook.cjs.map +2 -2
  381. package/build/text/styles.cjs +7 -7
  382. package/build/text/styles.cjs.map +2 -2
  383. package/build/text/utils.cjs.map +2 -2
  384. package/build/text-control/index.cjs.map +2 -2
  385. package/build/text-highlight/index.cjs.map +2 -2
  386. package/build/textarea-control/index.cjs.map +2 -2
  387. package/build/textarea-control/styles/textarea-control-styles.cjs +3 -3
  388. package/build/textarea-control/styles/textarea-control-styles.cjs.map +2 -2
  389. package/build/tip/index.cjs.map +2 -2
  390. package/build/toggle-control/index.cjs.map +2 -2
  391. package/build/toggle-group-control/context.cjs.map +2 -2
  392. package/build/toggle-group-control/toggle-group-control/as-button-group.cjs.map +2 -2
  393. package/build/toggle-group-control/toggle-group-control/as-radio-group.cjs.map +2 -2
  394. package/build/toggle-group-control/toggle-group-control/component.cjs.map +2 -2
  395. package/build/toggle-group-control/toggle-group-control/utils.cjs.map +2 -2
  396. package/build/toggle-group-control/toggle-group-control-option/component.cjs.map +2 -2
  397. package/build/toggle-group-control/toggle-group-control-option-base/component.cjs.map +2 -2
  398. package/build/toggle-group-control/toggle-group-control-option-icon/component.cjs.map +2 -2
  399. package/build/toolbar/toolbar/index.cjs.map +2 -2
  400. package/build/toolbar/toolbar/toolbar-container.cjs.map +2 -2
  401. package/build/toolbar/toolbar-button/index.cjs.map +2 -2
  402. package/build/toolbar/toolbar-button/toolbar-button-container.cjs.map +2 -2
  403. package/build/toolbar/toolbar-context/index.cjs.map +2 -2
  404. package/build/toolbar/toolbar-dropdown-menu/index.cjs.map +2 -2
  405. package/build/toolbar/toolbar-group/index.cjs.map +2 -2
  406. package/build/toolbar/toolbar-group/toolbar-group-collapsed.cjs.map +2 -2
  407. package/build/toolbar/toolbar-group/toolbar-group-container.cjs.map +2 -2
  408. package/build/toolbar/toolbar-item/index.cjs.map +2 -2
  409. package/build/tools-panel/context.cjs.map +2 -2
  410. package/build/tools-panel/tools-panel/component.cjs.map +2 -2
  411. package/build/tools-panel/tools-panel/hook.cjs.map +2 -2
  412. package/build/tools-panel/tools-panel-header/component.cjs.map +2 -2
  413. package/build/tools-panel/tools-panel-header/hook.cjs.map +2 -2
  414. package/build/tools-panel/tools-panel-item/component.cjs.map +2 -2
  415. package/build/tools-panel/tools-panel-item/hook.cjs.map +2 -2
  416. package/build/tree-grid/cell.cjs.map +2 -2
  417. package/build/tree-grid/index.cjs.map +2 -2
  418. package/build/tree-grid/item.cjs.map +2 -2
  419. package/build/tree-grid/roving-tab-index-context.cjs.map +2 -2
  420. package/build/tree-grid/roving-tab-index-item.cjs.map +2 -2
  421. package/build/tree-grid/roving-tab-index.cjs.map +2 -2
  422. package/build/tree-grid/row.cjs.map +2 -2
  423. package/build/tree-select/index.cjs.map +2 -2
  424. package/build/truncate/component.cjs.map +2 -2
  425. package/build/truncate/hook.cjs.map +2 -2
  426. package/build/truncate/utils.cjs.map +2 -2
  427. package/build/unit-control/index.cjs.map +2 -2
  428. package/build/unit-control/styles/unit-control-styles.cjs +7 -7
  429. package/build/unit-control/styles/unit-control-styles.cjs.map +2 -2
  430. package/build/unit-control/unit-select-control.cjs.map +2 -2
  431. package/build/unit-control/utils.cjs.map +2 -2
  432. package/build/utils/base-label.cjs +1 -1
  433. package/build/utils/base-label.cjs.map +2 -2
  434. package/build/utils/box-sizing.cjs +1 -1
  435. package/build/utils/box-sizing.cjs.map +2 -2
  436. package/build/utils/breakpoint.cjs.map +2 -2
  437. package/build/utils/colors.cjs.map +2 -2
  438. package/build/utils/config-values.cjs +0 -1
  439. package/build/utils/config-values.cjs.map +2 -2
  440. package/build/utils/element-rect.cjs.map +2 -2
  441. package/build/utils/font-size.cjs.map +2 -2
  442. package/build/utils/font.cjs.map +2 -2
  443. package/build/utils/get-valid-children.cjs.map +2 -2
  444. package/build/utils/hooks/use-animated-offset-rect.cjs.map +2 -2
  445. package/build/utils/hooks/use-controlled-state.cjs.map +2 -2
  446. package/build/utils/hooks/use-controlled-value.cjs.map +2 -2
  447. package/build/utils/hooks/use-cx.cjs.map +2 -2
  448. package/build/utils/hooks/use-on-value-update.cjs.map +2 -2
  449. package/build/utils/hooks/use-update-effect.cjs.map +2 -2
  450. package/build/utils/polymorphic-element.cjs.map +2 -2
  451. package/build/utils/rtl.cjs +2 -2
  452. package/build/utils/rtl.cjs.map +2 -2
  453. package/build/utils/strings.cjs +0 -19
  454. package/build/utils/strings.cjs.map +2 -2
  455. package/build/utils/use-responsive-value.cjs.map +2 -2
  456. package/build/v-stack/component.cjs.map +2 -2
  457. package/build/v-stack/hook.cjs.map +2 -2
  458. package/build/validated-form-controls/components/combobox-control.cjs.map +2 -2
  459. package/build/validated-form-controls/components/content-editable-control.cjs.map +2 -2
  460. package/build/validated-form-controls/components/custom-select-control.cjs.map +2 -2
  461. package/build/validated-form-controls/components/form-token-field.cjs.map +2 -2
  462. package/build/validated-form-controls/components/index.cjs +0 -10
  463. package/build/validated-form-controls/components/index.cjs.map +2 -2
  464. package/build/validated-form-controls/components/input-control.cjs.map +2 -2
  465. package/build/validated-form-controls/components/range-control.cjs.map +2 -2
  466. package/build/validated-form-controls/components/textarea-control.cjs.map +2 -2
  467. package/build/validated-form-controls/components/toggle-control.cjs.map +2 -2
  468. package/build/validated-form-controls/components/toggle-group-control.cjs.map +2 -2
  469. package/build/validated-form-controls/control-with-error.cjs.map +2 -2
  470. package/build/validated-form-controls/validity-indicator.cjs.map +2 -2
  471. package/build/view/component.cjs.map +2 -2
  472. package/build/visually-hidden/component.cjs.map +2 -2
  473. package/build/visually-hidden/styles.cjs.map +2 -2
  474. package/build/z-stack/component.cjs.map +2 -2
  475. package/build/z-stack/styles.cjs +4 -4
  476. package/build/z-stack/styles.cjs.map +2 -2
  477. package/build-module/alignment-matrix-control/cell.mjs.map +2 -2
  478. package/build-module/alignment-matrix-control/icon.mjs.map +2 -2
  479. package/build-module/alignment-matrix-control/index.mjs.map +2 -2
  480. package/build-module/alignment-matrix-control/utils.mjs.map +2 -2
  481. package/build-module/angle-picker-control/angle-circle.mjs.map +2 -2
  482. package/build-module/angle-picker-control/index.mjs.map +2 -2
  483. package/build-module/animate/index.mjs +5 -0
  484. package/build-module/animate/index.mjs.map +2 -2
  485. package/build-module/autocomplete/autocompleter-ui.mjs.map +2 -2
  486. package/build-module/autocomplete/get-autocomplete-match.mjs.map +2 -2
  487. package/build-module/autocomplete/get-default-use-items.mjs.map +2 -2
  488. package/build-module/autocomplete/index.mjs +1 -2
  489. package/build-module/autocomplete/index.mjs.map +2 -2
  490. package/build-module/badge/index.mjs.map +2 -2
  491. package/build-module/base-control/hooks.mjs.map +2 -2
  492. package/build-module/base-control/index.mjs.map +2 -2
  493. package/build-module/base-control/styles/base-control-styles.mjs +6 -6
  494. package/build-module/base-control/styles/base-control-styles.mjs.map +2 -2
  495. package/build-module/border-box-control/border-box-control/component.mjs.map +2 -2
  496. package/build-module/border-box-control/border-box-control/hook.mjs.map +2 -2
  497. package/build-module/border-box-control/border-box-control-linked-button/component.mjs.map +2 -2
  498. package/build-module/border-box-control/border-box-control-linked-button/hook.mjs.map +2 -2
  499. package/build-module/border-box-control/border-box-control-split-controls/component.mjs.map +2 -2
  500. package/build-module/border-box-control/border-box-control-split-controls/hook.mjs.map +2 -2
  501. package/build-module/border-box-control/border-box-control-visualizer/component.mjs.map +2 -2
  502. package/build-module/border-box-control/border-box-control-visualizer/hook.mjs.map +2 -2
  503. package/build-module/border-box-control/styles.mjs +8 -8
  504. package/build-module/border-box-control/styles.mjs.map +2 -2
  505. package/build-module/border-box-control/utils.mjs.map +2 -2
  506. package/build-module/border-control/border-control/component.mjs.map +2 -2
  507. package/build-module/border-control/border-control/hook.mjs.map +2 -2
  508. package/build-module/border-control/border-control-dropdown/component.mjs.map +2 -2
  509. package/build-module/border-control/border-control-dropdown/hook.mjs.map +2 -2
  510. package/build-module/border-control/border-control-style-picker/component.mjs.map +2 -2
  511. package/build-module/border-control/styles.mjs +14 -14
  512. package/build-module/border-control/styles.mjs.map +2 -2
  513. package/build-module/box-control/box-input-control.mjs.map +2 -2
  514. package/build-module/box-control/icon.mjs.map +2 -2
  515. package/build-module/box-control/index.mjs.map +2 -2
  516. package/build-module/box-control/linked-button.mjs.map +2 -2
  517. package/build-module/box-control/styles/box-control-icon-styles.mjs +10 -10
  518. package/build-module/box-control/styles/box-control-icon-styles.mjs.map +2 -2
  519. package/build-module/box-control/styles/box-control-styles.mjs +6 -6
  520. package/build-module/box-control/styles/box-control-styles.mjs.map +2 -2
  521. package/build-module/box-control/utils.mjs.map +2 -2
  522. package/build-module/button/deprecated.mjs.map +2 -2
  523. package/build-module/button/index.mjs.map +2 -2
  524. package/build-module/button-group/index.mjs.map +2 -2
  525. package/build-module/card/card/component.mjs +1 -1
  526. package/build-module/card/card/component.mjs.map +2 -2
  527. package/build-module/card/card/hook.mjs.map +2 -2
  528. package/build-module/card/card-body/component.mjs.map +2 -2
  529. package/build-module/card/card-body/hook.mjs.map +2 -2
  530. package/build-module/card/card-divider/component.mjs.map +2 -2
  531. package/build-module/card/card-divider/hook.mjs.map +2 -2
  532. package/build-module/card/card-footer/component.mjs.map +2 -2
  533. package/build-module/card/card-footer/hook.mjs.map +2 -2
  534. package/build-module/card/card-header/component.mjs.map +2 -2
  535. package/build-module/card/card-header/hook.mjs.map +2 -2
  536. package/build-module/card/card-media/component.mjs.map +2 -2
  537. package/build-module/card/card-media/hook.mjs.map +2 -2
  538. package/build-module/card/get-padding-by-size.mjs +6 -6
  539. package/build-module/card/get-padding-by-size.mjs.map +2 -2
  540. package/build-module/card/styles.mjs +16 -16
  541. package/build-module/card/styles.mjs.map +2 -2
  542. package/build-module/checkbox-control/index.mjs.map +2 -2
  543. package/build-module/circular-option-picker/circular-option-picker-actions.mjs.map +2 -2
  544. package/build-module/circular-option-picker/circular-option-picker-context.mjs.map +2 -2
  545. package/build-module/circular-option-picker/circular-option-picker-option-group.mjs.map +2 -2
  546. package/build-module/circular-option-picker/circular-option-picker-option.mjs.map +2 -2
  547. package/build-module/circular-option-picker/circular-option-picker.mjs.map +2 -2
  548. package/build-module/circular-option-picker/index.mjs.map +2 -2
  549. package/build-module/circular-option-picker/utils.mjs.map +2 -2
  550. package/build-module/clipboard-button/index.mjs.map +2 -2
  551. package/build-module/color-indicator/index.mjs.map +2 -2
  552. package/build-module/color-palette/index.mjs.map +2 -2
  553. package/build-module/color-palette/styles.mjs +1 -1
  554. package/build-module/color-palette/styles.mjs.map +2 -2
  555. package/build-module/color-palette/utils.mjs.map +2 -2
  556. package/build-module/color-picker/color-copy-button.mjs.map +2 -2
  557. package/build-module/color-picker/color-input.mjs.map +2 -2
  558. package/build-module/color-picker/component.mjs.map +2 -2
  559. package/build-module/color-picker/hex-input.mjs.map +2 -2
  560. package/build-module/color-picker/hsl-input.mjs.map +2 -2
  561. package/build-module/color-picker/index.mjs.map +2 -2
  562. package/build-module/color-picker/input-with-slider.mjs.map +2 -2
  563. package/build-module/color-picker/legacy-adapter.mjs.map +2 -2
  564. package/build-module/color-picker/picker.mjs.map +2 -2
  565. package/build-module/color-picker/rgb-input.mjs.map +2 -2
  566. package/build-module/color-picker/styles.mjs +7 -7
  567. package/build-module/color-picker/styles.mjs.map +2 -2
  568. package/build-module/color-picker/use-deprecated-props.mjs.map +2 -2
  569. package/build-module/combobox-control/index.mjs +1 -1
  570. package/build-module/combobox-control/index.mjs.map +2 -2
  571. package/build-module/composite/context.mjs.map +2 -2
  572. package/build-module/composite/group-label.mjs.map +2 -2
  573. package/build-module/composite/group.mjs.map +2 -2
  574. package/build-module/composite/hover.mjs.map +2 -2
  575. package/build-module/composite/index.mjs.map +2 -2
  576. package/build-module/composite/item.mjs.map +2 -2
  577. package/build-module/composite/legacy/index.mjs.map +2 -2
  578. package/build-module/composite/row.mjs.map +2 -2
  579. package/build-module/composite/typeahead.mjs.map +2 -2
  580. package/build-module/confirm-dialog/component.mjs.map +2 -2
  581. package/build-module/confirm-dialog/docs-manifest.json +5 -0
  582. package/build-module/confirm-dialog/index.mjs.map +2 -2
  583. package/build-module/content-editable-control/index.mjs.map +2 -2
  584. package/build-module/context/context-connect.mjs.map +2 -2
  585. package/build-module/context/context-system-provider.mjs.map +2 -2
  586. package/build-module/context/get-styled-class-name-from-key.mjs.map +2 -2
  587. package/build-module/context/use-context-system.mjs.map +2 -2
  588. package/build-module/context/utils.mjs.map +2 -2
  589. package/build-module/custom-gradient-picker/constants.mjs.map +2 -2
  590. package/build-module/custom-gradient-picker/gradient-bar/control-points.mjs.map +2 -2
  591. package/build-module/custom-gradient-picker/gradient-bar/index.mjs.map +2 -2
  592. package/build-module/custom-gradient-picker/gradient-bar/utils.mjs.map +2 -2
  593. package/build-module/custom-gradient-picker/index.mjs +1 -1
  594. package/build-module/custom-gradient-picker/index.mjs.map +2 -2
  595. package/build-module/custom-gradient-picker/serializer.mjs.map +2 -2
  596. package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.mjs +2 -2
  597. package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.mjs.map +2 -2
  598. package/build-module/custom-gradient-picker/utils.mjs.map +2 -2
  599. package/build-module/custom-select-control/index.mjs.map +2 -2
  600. package/build-module/custom-select-control-v2/custom-select.mjs.map +2 -2
  601. package/build-module/custom-select-control-v2/index.mjs.map +2 -2
  602. package/build-module/custom-select-control-v2/item.mjs.map +2 -2
  603. package/build-module/custom-select-control-v2/styles.mjs +9 -9
  604. package/build-module/custom-select-control-v2/styles.mjs.map +2 -2
  605. package/build-module/dashicon/index.mjs.map +2 -2
  606. package/build-module/date-time/date-picker/index.mjs.map +2 -2
  607. package/build-module/date-time/date-picker/styles.mjs +8 -8
  608. package/build-module/date-time/date-picker/styles.mjs.map +2 -2
  609. package/build-module/date-time/date-picker/use-lilius/index.mjs.map +2 -2
  610. package/build-module/date-time/date-time/index.mjs.map +2 -2
  611. package/build-module/date-time/date-time/styles.mjs +1 -1
  612. package/build-module/date-time/date-time/styles.mjs.map +2 -2
  613. package/build-module/date-time/index.mjs.map +2 -2
  614. package/build-module/date-time/time-picker/styles.mjs +11 -11
  615. package/build-module/date-time/time-picker/styles.mjs.map +2 -2
  616. package/build-module/date-time/time-picker/time-input/index.mjs.map +2 -2
  617. package/build-module/date-time/time-picker/timezone.mjs.map +2 -2
  618. package/build-module/date-time/utils.mjs.map +2 -2
  619. package/build-module/disabled/index.mjs +1 -1
  620. package/build-module/disabled/index.mjs.map +1 -1
  621. package/build-module/disclosure/index.mjs.map +2 -2
  622. package/build-module/divider/component.mjs.map +2 -2
  623. package/build-module/draggable/index.mjs.map +2 -2
  624. package/build-module/drop-zone/index.mjs.map +2 -2
  625. package/build-module/drop-zone/provider.mjs.map +2 -2
  626. package/build-module/dropdown/dropdown-content-wrapper.mjs.map +2 -2
  627. package/build-module/dropdown/index.mjs.map +2 -2
  628. package/build-module/dropdown/styles.mjs +2 -2
  629. package/build-module/dropdown/styles.mjs.map +2 -2
  630. package/build-module/dropdown-menu/index.mjs.map +2 -2
  631. package/build-module/duotone-picker/color-list-picker/index.mjs +1 -1
  632. package/build-module/duotone-picker/color-list-picker/index.mjs.map +2 -2
  633. package/build-module/duotone-picker/custom-duotone-bar.mjs.map +2 -2
  634. package/build-module/duotone-picker/duotone-picker.mjs.map +2 -2
  635. package/build-module/duotone-picker/duotone-swatch.mjs.map +2 -2
  636. package/build-module/duotone-picker/utils.mjs.map +2 -2
  637. package/build-module/elevation/component.mjs.map +2 -2
  638. package/build-module/elevation/hook.mjs +5 -5
  639. package/build-module/elevation/hook.mjs.map +2 -2
  640. package/build-module/elevation/styles.mjs +1 -1
  641. package/build-module/elevation/styles.mjs.map +2 -2
  642. package/build-module/external-link/index.mjs.map +2 -2
  643. package/build-module/flex/context.mjs.map +2 -2
  644. package/build-module/flex/flex/component.mjs.map +2 -2
  645. package/build-module/flex/flex-block/component.mjs.map +2 -2
  646. package/build-module/flex/flex-block/hook.mjs.map +2 -2
  647. package/build-module/flex/flex-item/component.mjs.map +2 -2
  648. package/build-module/focal-point-picker/controls.mjs.map +2 -2
  649. package/build-module/focal-point-picker/focal-point.mjs.map +2 -2
  650. package/build-module/focal-point-picker/grid.mjs.map +2 -2
  651. package/build-module/focal-point-picker/index.mjs.map +2 -2
  652. package/build-module/focal-point-picker/media.mjs.map +2 -2
  653. package/build-module/focal-point-picker/styles/focal-point-picker-style.mjs +11 -11
  654. package/build-module/focal-point-picker/styles/focal-point-picker-style.mjs.map +2 -2
  655. package/build-module/focal-point-picker/styles/focal-point-style.mjs +1 -1
  656. package/build-module/focal-point-picker/styles/focal-point-style.mjs.map +2 -2
  657. package/build-module/focusable-iframe/index.mjs.map +2 -2
  658. package/build-module/font-size-picker/constants.mjs.map +2 -2
  659. package/build-module/font-size-picker/font-size-picker-select.mjs.map +2 -2
  660. package/build-module/font-size-picker/font-size-picker-toggle-group.mjs.map +2 -2
  661. package/build-module/font-size-picker/index.mjs.map +2 -2
  662. package/build-module/font-size-picker/styles.mjs +5 -5
  663. package/build-module/font-size-picker/styles.mjs.map +2 -2
  664. package/build-module/font-size-picker/utils.mjs.map +2 -2
  665. package/build-module/form-file-upload/index.mjs.map +2 -2
  666. package/build-module/form-toggle/index.mjs.map +2 -2
  667. package/build-module/form-token-field/index.mjs +1 -1
  668. package/build-module/form-token-field/index.mjs.map +2 -2
  669. package/build-module/form-token-field/suggestions-list.mjs.map +2 -2
  670. package/build-module/form-token-field/token-input.mjs.map +2 -2
  671. package/build-module/form-token-field/token.mjs.map +2 -2
  672. package/build-module/gradient-picker/index.mjs.map +2 -2
  673. package/build-module/grid/component.mjs.map +2 -2
  674. package/build-module/grid/hook.mjs +1 -1
  675. package/build-module/grid/hook.mjs.map +2 -2
  676. package/build-module/grid/utils.mjs.map +2 -2
  677. package/build-module/guide/icons.mjs.map +2 -2
  678. package/build-module/guide/index.mjs.map +2 -2
  679. package/build-module/guide/page-control.mjs.map +2 -2
  680. package/build-module/guide/page.mjs.map +2 -2
  681. package/build-module/h-stack/component.mjs.map +2 -2
  682. package/build-module/h-stack/hook.mjs.map +2 -2
  683. package/build-module/h-stack/utils.mjs.map +2 -2
  684. package/build-module/heading/component.mjs.map +2 -2
  685. package/build-module/heading/hook.mjs.map +2 -2
  686. package/build-module/higher-order/navigate-regions/index.mjs.map +2 -2
  687. package/build-module/higher-order/with-constrained-tabbing/index.mjs.map +2 -2
  688. package/build-module/higher-order/with-fallback-styles/index.mjs.map +2 -2
  689. package/build-module/higher-order/with-filters/index.mjs.map +2 -2
  690. package/build-module/higher-order/with-focus-outside/index.mjs.map +2 -2
  691. package/build-module/higher-order/with-focus-return/index.mjs.map +2 -2
  692. package/build-module/higher-order/with-notices/index.mjs.map +2 -2
  693. package/build-module/higher-order/with-spoken-messages/index.mjs.map +2 -2
  694. package/build-module/icon/index.mjs +0 -1
  695. package/build-module/icon/index.mjs.map +2 -2
  696. package/build-module/input-control/backdrop.mjs.map +2 -2
  697. package/build-module/input-control/index.mjs.map +2 -2
  698. package/build-module/input-control/input-base.mjs.map +2 -2
  699. package/build-module/input-control/input-field.mjs +1 -1
  700. package/build-module/input-control/input-field.mjs.map +2 -2
  701. package/build-module/input-control/input-prefix-wrapper.mjs.map +2 -2
  702. package/build-module/input-control/input-suffix-wrapper.mjs.map +2 -2
  703. package/build-module/input-control/label.mjs.map +2 -2
  704. package/build-module/input-control/reducer/actions.mjs.map +2 -2
  705. package/build-module/input-control/reducer/reducer.mjs.map +2 -2
  706. package/build-module/input-control/reducer/state.mjs.map +2 -2
  707. package/build-module/input-control/styles/input-control-styles.mjs +22 -22
  708. package/build-module/input-control/styles/input-control-styles.mjs.map +2 -2
  709. package/build-module/input-control/utils.mjs +1 -1
  710. package/build-module/input-control/utils.mjs.map +2 -2
  711. package/build-module/isolated-event-container/index.mjs.map +2 -2
  712. package/build-module/item-group/context.mjs.map +2 -2
  713. package/build-module/item-group/item/component.mjs.map +2 -2
  714. package/build-module/item-group/item/hook.mjs +94 -7
  715. package/build-module/item-group/item/hook.mjs.map +4 -4
  716. package/build-module/item-group/item-group/component.mjs.map +2 -2
  717. package/build-module/item-group/item-group/hook.mjs +91 -4
  718. package/build-module/item-group/item-group/hook.mjs.map +3 -3
  719. package/build-module/keyboard-shortcuts/index.mjs.map +2 -2
  720. package/build-module/lock-unlock.mjs.map +2 -2
  721. package/build-module/menu/checkbox-item.mjs +7 -4
  722. package/build-module/menu/checkbox-item.mjs.map +2 -2
  723. package/build-module/menu/context.mjs.map +2 -2
  724. package/build-module/menu/group-label.mjs.map +2 -2
  725. package/build-module/menu/group.mjs.map +2 -2
  726. package/build-module/menu/index.mjs.map +2 -2
  727. package/build-module/menu/item-help-text.mjs.map +2 -2
  728. package/build-module/menu/item-label.mjs.map +2 -2
  729. package/build-module/menu/item.mjs +5 -3
  730. package/build-module/menu/item.mjs.map +2 -2
  731. package/build-module/menu/popover.mjs.map +2 -2
  732. package/build-module/menu/radio-item.mjs +7 -4
  733. package/build-module/menu/radio-item.mjs.map +2 -2
  734. package/build-module/menu/separator.mjs.map +2 -2
  735. package/build-module/menu/styles.mjs +17 -17
  736. package/build-module/menu/styles.mjs.map +2 -2
  737. package/build-module/menu/submenu-trigger-item.mjs.map +2 -2
  738. package/build-module/menu/trigger-button.mjs.map +2 -2
  739. package/build-module/menu/use-menu-item-hide-on-click.mjs +41 -0
  740. package/build-module/menu/use-menu-item-hide-on-click.mjs.map +7 -0
  741. package/build-module/menu-group/index.mjs.map +2 -2
  742. package/build-module/menu-item/index.mjs.map +2 -2
  743. package/build-module/menu-items-choice/index.mjs.map +2 -2
  744. package/build-module/modal/index.mjs +1 -1
  745. package/build-module/modal/index.mjs.map +2 -2
  746. package/build-module/modal/use-modal-exit-animation.mjs.map +2 -2
  747. package/build-module/navigable-container/container.mjs.map +2 -2
  748. package/build-module/navigable-container/index.mjs.map +2 -2
  749. package/build-module/navigable-container/menu.mjs.map +2 -2
  750. package/build-module/navigable-container/tabbable.mjs.map +2 -2
  751. package/build-module/navigator/context.mjs.map +2 -2
  752. package/build-module/navigator/index.mjs.map +2 -2
  753. package/build-module/navigator/legacy.mjs.map +2 -2
  754. package/build-module/navigator/navigator/component.mjs.map +2 -2
  755. package/build-module/navigator/navigator-back-button/component.mjs.map +2 -2
  756. package/build-module/navigator/navigator-back-button/hook.mjs.map +2 -2
  757. package/build-module/navigator/navigator-button/component.mjs.map +2 -2
  758. package/build-module/navigator/navigator-button/hook.mjs.map +2 -2
  759. package/build-module/navigator/navigator-screen/component.mjs.map +2 -2
  760. package/build-module/navigator/navigator-screen/use-screen-animate-presence.mjs.map +2 -2
  761. package/build-module/navigator/navigator-to-parent-button/component.mjs.map +2 -2
  762. package/build-module/navigator/styles.mjs +7 -7
  763. package/build-module/navigator/styles.mjs.map +2 -2
  764. package/build-module/navigator/use-navigator.mjs.map +2 -2
  765. package/build-module/navigator/utils/router.mjs.map +2 -2
  766. package/build-module/notice/index.mjs.map +2 -2
  767. package/build-module/notice/list.mjs.map +2 -2
  768. package/build-module/number-control/index.mjs.map +2 -2
  769. package/build-module/number-control/styles/number-control-styles.mjs +4 -4
  770. package/build-module/number-control/styles/number-control-styles.mjs.map +2 -2
  771. package/build-module/palette-edit/index.mjs +1 -1
  772. package/build-module/palette-edit/index.mjs.map +2 -2
  773. package/build-module/palette-edit/styles.mjs +9 -9
  774. package/build-module/palette-edit/styles.mjs.map +2 -2
  775. package/build-module/panel/body.mjs.map +2 -2
  776. package/build-module/panel/header.mjs.map +2 -2
  777. package/build-module/panel/index.mjs.map +2 -2
  778. package/build-module/panel/row.mjs.map +2 -2
  779. package/build-module/placeholder/index.mjs.map +2 -2
  780. package/build-module/popover/index.mjs.map +2 -2
  781. package/build-module/popover/overlay-middlewares.mjs.map +2 -2
  782. package/build-module/popover/utils.mjs.map +2 -2
  783. package/build-module/private-apis.mjs +1 -15
  784. package/build-module/private-apis.mjs.map +2 -2
  785. package/build-module/progress-bar/index.mjs.map +2 -2
  786. package/build-module/progress-bar/styles.mjs +4 -4
  787. package/build-module/progress-bar/styles.mjs.map +2 -2
  788. package/build-module/query-controls/author-select.mjs.map +2 -2
  789. package/build-module/query-controls/index.mjs +1 -1
  790. package/build-module/query-controls/index.mjs.map +2 -2
  791. package/build-module/query-controls/terms.mjs.map +2 -2
  792. package/build-module/radio-control/index.mjs.map +2 -2
  793. package/build-module/radio-group/context.mjs.map +2 -2
  794. package/build-module/radio-group/index.mjs.map +2 -2
  795. package/build-module/radio-group/radio.mjs.map +2 -2
  796. package/build-module/range-control/index.mjs.map +2 -2
  797. package/build-module/range-control/input-range.mjs.map +2 -2
  798. package/build-module/range-control/mark.mjs.map +2 -2
  799. package/build-module/range-control/rail.mjs.map +2 -2
  800. package/build-module/range-control/styles/range-control-styles.mjs +25 -25
  801. package/build-module/range-control/styles/range-control-styles.mjs.map +2 -2
  802. package/build-module/range-control/tooltip.mjs.map +2 -2
  803. package/build-module/range-control/utils.mjs.map +2 -2
  804. package/build-module/resizable-box/index.mjs.map +2 -2
  805. package/build-module/resizable-box/resize-tooltip/index.mjs.map +2 -2
  806. package/build-module/resizable-box/resize-tooltip/label.mjs.map +2 -2
  807. package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.mjs +4 -4
  808. package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.mjs.map +2 -2
  809. package/build-module/resizable-box/resize-tooltip/utils.mjs.map +2 -2
  810. package/build-module/responsive-wrapper/index.mjs.map +2 -2
  811. package/build-module/sandbox/index.mjs +8 -4
  812. package/build-module/sandbox/index.mjs.map +2 -2
  813. package/build-module/scroll-lock/index.mjs.map +2 -2
  814. package/build-module/scrollable/component.mjs.map +2 -2
  815. package/build-module/scrollable/hook.mjs.map +2 -2
  816. package/build-module/scrollable/styles.mjs +7 -7
  817. package/build-module/scrollable/styles.mjs.map +2 -2
  818. package/build-module/search-control/index.mjs.map +2 -2
  819. package/build-module/select-control/chevron-down.mjs.map +2 -2
  820. package/build-module/select-control/index.mjs.map +2 -2
  821. package/build-module/select-control/styles/select-control-styles.mjs +8 -8
  822. package/build-module/select-control/styles/select-control-styles.mjs.map +2 -2
  823. package/build-module/shortcut/index.mjs.map +2 -2
  824. package/build-module/slot-fill/bubbles-virtually/slot.mjs.map +2 -2
  825. package/build-module/slot-fill/bubbles-virtually/use-slot-fills.mjs.map +2 -2
  826. package/build-module/slot-fill/bubbles-virtually/use-slot.mjs.map +2 -2
  827. package/build-module/slot-fill/context.mjs.map +2 -2
  828. package/build-module/slot-fill/index.mjs.map +2 -2
  829. package/build-module/slot-fill/provider.mjs.map +2 -2
  830. package/build-module/slot-fill/slot.mjs.map +2 -2
  831. package/build-module/snackbar/index.mjs.map +2 -2
  832. package/build-module/snackbar/list.mjs.map +2 -2
  833. package/build-module/spacer/component.mjs.map +2 -2
  834. package/build-module/spinner/index.mjs +91 -5
  835. package/build-module/spinner/index.mjs.map +3 -3
  836. package/build-module/surface/component.mjs +5 -0
  837. package/build-module/surface/component.mjs.map +2 -2
  838. package/build-module/surface/hook.mjs.map +2 -2
  839. package/build-module/tab-panel/index.mjs.map +2 -2
  840. package/build-module/tabs/context.mjs.map +2 -2
  841. package/build-module/tabs/index.mjs.map +2 -2
  842. package/build-module/tabs/styles.mjs +5 -5
  843. package/build-module/tabs/styles.mjs.map +2 -2
  844. package/build-module/tabs/tab.mjs +1 -1
  845. package/build-module/tabs/tab.mjs.map +2 -2
  846. package/build-module/tabs/tablist.mjs.map +2 -2
  847. package/build-module/tabs/tabpanel.mjs +1 -1
  848. package/build-module/tabs/tabpanel.mjs.map +2 -2
  849. package/build-module/tabs/use-track-overflow.mjs.map +2 -2
  850. package/build-module/text/component.mjs.map +2 -2
  851. package/build-module/text/get-line-height.mjs.map +2 -2
  852. package/build-module/text/hook.mjs +5 -5
  853. package/build-module/text/hook.mjs.map +2 -2
  854. package/build-module/text/styles.mjs +7 -7
  855. package/build-module/text/styles.mjs.map +2 -2
  856. package/build-module/text/utils.mjs.map +2 -2
  857. package/build-module/text-control/index.mjs.map +2 -2
  858. package/build-module/text-highlight/index.mjs.map +2 -2
  859. package/build-module/textarea-control/index.mjs.map +2 -2
  860. package/build-module/textarea-control/styles/textarea-control-styles.mjs +3 -3
  861. package/build-module/textarea-control/styles/textarea-control-styles.mjs.map +2 -2
  862. package/build-module/tip/index.mjs.map +2 -2
  863. package/build-module/toggle-control/index.mjs.map +2 -2
  864. package/build-module/toggle-group-control/context.mjs.map +2 -2
  865. package/build-module/toggle-group-control/toggle-group-control/as-button-group.mjs.map +2 -2
  866. package/build-module/toggle-group-control/toggle-group-control/as-radio-group.mjs.map +2 -2
  867. package/build-module/toggle-group-control/toggle-group-control/component.mjs.map +2 -2
  868. package/build-module/toggle-group-control/toggle-group-control/utils.mjs.map +2 -2
  869. package/build-module/toggle-group-control/toggle-group-control-option/component.mjs.map +2 -2
  870. package/build-module/toggle-group-control/toggle-group-control-option-base/component.mjs.map +2 -2
  871. package/build-module/toggle-group-control/toggle-group-control-option-icon/component.mjs.map +2 -2
  872. package/build-module/toolbar/toolbar/index.mjs.map +2 -2
  873. package/build-module/toolbar/toolbar/toolbar-container.mjs.map +2 -2
  874. package/build-module/toolbar/toolbar-button/index.mjs.map +2 -2
  875. package/build-module/toolbar/toolbar-button/toolbar-button-container.mjs.map +2 -2
  876. package/build-module/toolbar/toolbar-context/index.mjs.map +2 -2
  877. package/build-module/toolbar/toolbar-dropdown-menu/index.mjs.map +2 -2
  878. package/build-module/toolbar/toolbar-group/index.mjs.map +2 -2
  879. package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.mjs.map +2 -2
  880. package/build-module/toolbar/toolbar-group/toolbar-group-container.mjs.map +2 -2
  881. package/build-module/toolbar/toolbar-item/index.mjs.map +2 -2
  882. package/build-module/tools-panel/context.mjs.map +2 -2
  883. package/build-module/tools-panel/tools-panel/component.mjs.map +2 -2
  884. package/build-module/tools-panel/tools-panel/hook.mjs.map +2 -2
  885. package/build-module/tools-panel/tools-panel-header/component.mjs.map +2 -2
  886. package/build-module/tools-panel/tools-panel-header/hook.mjs.map +2 -2
  887. package/build-module/tools-panel/tools-panel-item/component.mjs.map +2 -2
  888. package/build-module/tools-panel/tools-panel-item/hook.mjs.map +2 -2
  889. package/build-module/tree-grid/cell.mjs.map +2 -2
  890. package/build-module/tree-grid/index.mjs.map +2 -2
  891. package/build-module/tree-grid/item.mjs.map +2 -2
  892. package/build-module/tree-grid/roving-tab-index-context.mjs.map +2 -2
  893. package/build-module/tree-grid/roving-tab-index-item.mjs.map +2 -2
  894. package/build-module/tree-grid/roving-tab-index.mjs.map +2 -2
  895. package/build-module/tree-grid/row.mjs.map +2 -2
  896. package/build-module/tree-select/index.mjs.map +2 -2
  897. package/build-module/truncate/component.mjs.map +2 -2
  898. package/build-module/truncate/hook.mjs.map +2 -2
  899. package/build-module/truncate/utils.mjs.map +2 -2
  900. package/build-module/unit-control/index.mjs.map +2 -2
  901. package/build-module/unit-control/styles/unit-control-styles.mjs +7 -7
  902. package/build-module/unit-control/styles/unit-control-styles.mjs.map +2 -2
  903. package/build-module/unit-control/unit-select-control.mjs.map +2 -2
  904. package/build-module/unit-control/utils.mjs.map +2 -2
  905. package/build-module/utils/base-label.mjs +1 -1
  906. package/build-module/utils/base-label.mjs.map +2 -2
  907. package/build-module/utils/box-sizing.mjs +1 -1
  908. package/build-module/utils/box-sizing.mjs.map +2 -2
  909. package/build-module/utils/breakpoint.mjs.map +2 -2
  910. package/build-module/utils/colors.mjs.map +2 -2
  911. package/build-module/utils/config-values.mjs +0 -1
  912. package/build-module/utils/config-values.mjs.map +2 -2
  913. package/build-module/utils/element-rect.mjs.map +2 -2
  914. package/build-module/utils/font-size.mjs.map +2 -2
  915. package/build-module/utils/font.mjs.map +2 -2
  916. package/build-module/utils/get-valid-children.mjs.map +2 -2
  917. package/build-module/utils/hooks/use-animated-offset-rect.mjs.map +2 -2
  918. package/build-module/utils/hooks/use-controlled-state.mjs.map +2 -2
  919. package/build-module/utils/hooks/use-controlled-value.mjs.map +2 -2
  920. package/build-module/utils/hooks/use-cx.mjs.map +2 -2
  921. package/build-module/utils/hooks/use-on-value-update.mjs.map +2 -2
  922. package/build-module/utils/hooks/use-update-effect.mjs.map +2 -2
  923. package/build-module/utils/polymorphic-element.mjs.map +2 -2
  924. package/build-module/utils/rtl.mjs +2 -2
  925. package/build-module/utils/rtl.mjs.map +2 -2
  926. package/build-module/utils/strings.mjs +0 -18
  927. package/build-module/utils/strings.mjs.map +2 -2
  928. package/build-module/utils/use-responsive-value.mjs.map +2 -2
  929. package/build-module/v-stack/component.mjs.map +2 -2
  930. package/build-module/v-stack/hook.mjs.map +2 -2
  931. package/build-module/validated-form-controls/components/combobox-control.mjs.map +2 -2
  932. package/build-module/validated-form-controls/components/content-editable-control.mjs.map +2 -2
  933. package/build-module/validated-form-controls/components/custom-select-control.mjs.map +2 -2
  934. package/build-module/validated-form-controls/components/form-token-field.mjs.map +2 -2
  935. package/build-module/validated-form-controls/components/index.mjs +0 -5
  936. package/build-module/validated-form-controls/components/index.mjs.map +2 -2
  937. package/build-module/validated-form-controls/components/input-control.mjs.map +2 -2
  938. package/build-module/validated-form-controls/components/range-control.mjs.map +2 -2
  939. package/build-module/validated-form-controls/components/textarea-control.mjs.map +2 -2
  940. package/build-module/validated-form-controls/components/toggle-control.mjs.map +2 -2
  941. package/build-module/validated-form-controls/components/toggle-group-control.mjs.map +2 -2
  942. package/build-module/validated-form-controls/control-with-error.mjs.map +2 -2
  943. package/build-module/validated-form-controls/validity-indicator.mjs.map +2 -2
  944. package/build-module/view/component.mjs.map +2 -2
  945. package/build-module/visually-hidden/component.mjs.map +2 -2
  946. package/build-module/visually-hidden/styles.mjs.map +2 -2
  947. package/build-module/z-stack/component.mjs.map +2 -2
  948. package/build-module/z-stack/styles.mjs +4 -4
  949. package/build-module/z-stack/styles.mjs.map +2 -2
  950. package/build-style/style-rtl.css +8 -364
  951. package/build-style/style.css +8 -364
  952. package/build-types/alignment-matrix-control/cell.d.ts.map +1 -1
  953. package/build-types/alignment-matrix-control/icon.d.ts.map +1 -1
  954. package/build-types/alignment-matrix-control/index.d.ts.map +1 -1
  955. package/build-types/alignment-matrix-control/stories/index.story.d.ts +0 -6
  956. package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -1
  957. package/build-types/alignment-matrix-control/utils.d.ts +0 -3
  958. package/build-types/alignment-matrix-control/utils.d.ts.map +1 -1
  959. package/build-types/angle-picker-control/angle-circle.d.ts.map +1 -1
  960. package/build-types/angle-picker-control/index.d.ts +1 -1
  961. package/build-types/angle-picker-control/index.d.ts.map +1 -1
  962. package/build-types/angle-picker-control/stories/index.story.d.ts +1 -7
  963. package/build-types/angle-picker-control/stories/index.story.d.ts.map +1 -1
  964. package/build-types/animate/index.d.ts +6 -3
  965. package/build-types/animate/index.d.ts.map +1 -1
  966. package/build-types/animate/stories/index.story.d.ts +0 -6
  967. package/build-types/animate/stories/index.story.d.ts.map +1 -1
  968. package/build-types/autocomplete/autocompleter-ui.d.ts.map +1 -1
  969. package/build-types/autocomplete/get-autocomplete-match.d.ts +0 -3
  970. package/build-types/autocomplete/get-autocomplete-match.d.ts.map +1 -1
  971. package/build-types/autocomplete/get-default-use-items.d.ts.map +1 -1
  972. package/build-types/autocomplete/index.d.ts.map +1 -1
  973. package/build-types/autocomplete/types.d.ts +0 -9
  974. package/build-types/autocomplete/types.d.ts.map +1 -1
  975. package/build-types/badge/index.d.ts +0 -3
  976. package/build-types/badge/index.d.ts.map +1 -1
  977. package/build-types/badge/stories/e2e/index.story.d.ts.map +1 -1
  978. package/build-types/badge/stories/index.story.d.ts +0 -6
  979. package/build-types/badge/stories/index.story.d.ts.map +1 -1
  980. package/build-types/base-control/hooks.d.ts.map +1 -1
  981. package/build-types/base-control/index.d.ts +624 -3
  982. package/build-types/base-control/index.d.ts.map +1 -1
  983. package/build-types/base-control/stories/index.story.d.ts +1 -7
  984. package/build-types/base-control/stories/index.story.d.ts.map +1 -1
  985. package/build-types/base-control/styles/base-control-styles.d.ts.map +1 -1
  986. package/build-types/base-control/types.d.ts +0 -3
  987. package/build-types/base-control/types.d.ts.map +1 -1
  988. package/build-types/border-box-control/border-box-control/component.d.ts +14 -9
  989. package/build-types/border-box-control/border-box-control/component.d.ts.map +1 -1
  990. package/build-types/border-box-control/border-box-control/hook.d.ts +1 -1
  991. package/build-types/border-box-control/border-box-control/hook.d.ts.map +1 -1
  992. package/build-types/border-box-control/border-box-control-linked-button/component.d.ts.map +1 -1
  993. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +1 -1
  994. package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts.map +1 -1
  995. package/build-types/border-box-control/border-box-control-split-controls/component.d.ts.map +1 -1
  996. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +1 -1
  997. package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts.map +1 -1
  998. package/build-types/border-box-control/border-box-control-visualizer/component.d.ts.map +1 -1
  999. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +1 -1
  1000. package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts.map +1 -1
  1001. package/build-types/border-box-control/stories/index.story.d.ts +0 -3
  1002. package/build-types/border-box-control/stories/index.story.d.ts.map +1 -1
  1003. package/build-types/border-box-control/styles.d.ts.map +1 -1
  1004. package/build-types/border-box-control/types.d.ts +0 -3
  1005. package/build-types/border-box-control/types.d.ts.map +1 -1
  1006. package/build-types/border-box-control/utils.d.ts.map +1 -1
  1007. package/build-types/border-control/border-control/component.d.ts +23 -18
  1008. package/build-types/border-control/border-control/component.d.ts.map +1 -1
  1009. package/build-types/border-control/border-control/hook.d.ts +1 -1
  1010. package/build-types/border-control/border-control/hook.d.ts.map +1 -1
  1011. package/build-types/border-control/border-control-dropdown/component.d.ts.map +1 -1
  1012. package/build-types/border-control/border-control-dropdown/hook.d.ts +1 -1
  1013. package/build-types/border-control/border-control-dropdown/hook.d.ts.map +1 -1
  1014. package/build-types/border-control/border-control-style-picker/component.d.ts +8 -4
  1015. package/build-types/border-control/border-control-style-picker/component.d.ts.map +1 -1
  1016. package/build-types/border-control/stories/index.story.d.ts +0 -6
  1017. package/build-types/border-control/stories/index.story.d.ts.map +1 -1
  1018. package/build-types/border-control/styles.d.ts.map +1 -1
  1019. package/build-types/border-control/types.d.ts +0 -6
  1020. package/build-types/border-control/types.d.ts.map +1 -1
  1021. package/build-types/box-control/box-input-control.d.ts.map +1 -1
  1022. package/build-types/box-control/icon.d.ts +0 -3
  1023. package/build-types/box-control/icon.d.ts.map +1 -1
  1024. package/build-types/box-control/index.d.ts.map +1 -1
  1025. package/build-types/box-control/linked-button.d.ts +0 -3
  1026. package/build-types/box-control/linked-button.d.ts.map +1 -1
  1027. package/build-types/box-control/stories/index.story.d.ts +0 -6
  1028. package/build-types/box-control/stories/index.story.d.ts.map +1 -1
  1029. package/build-types/box-control/styles/box-control-icon-styles.d.ts.map +1 -1
  1030. package/build-types/box-control/styles/box-control-styles.d.ts +2 -2
  1031. package/build-types/box-control/styles/box-control-styles.d.ts.map +1 -1
  1032. package/build-types/box-control/types.d.ts +0 -3
  1033. package/build-types/box-control/types.d.ts.map +1 -1
  1034. package/build-types/box-control/utils.d.ts +0 -3
  1035. package/build-types/box-control/utils.d.ts.map +1 -1
  1036. package/build-types/button/deprecated.d.ts.map +1 -1
  1037. package/build-types/button/index.d.ts.map +1 -1
  1038. package/build-types/button/stories/e2e/index.story.d.ts +0 -6
  1039. package/build-types/button/stories/e2e/index.story.d.ts.map +1 -1
  1040. package/build-types/button/stories/index.story.d.ts +0 -6
  1041. package/build-types/button/stories/index.story.d.ts.map +1 -1
  1042. package/build-types/button/types.d.ts +0 -6
  1043. package/build-types/button/types.d.ts.map +1 -1
  1044. package/build-types/button-group/index.d.ts +0 -3
  1045. package/build-types/button-group/index.d.ts.map +1 -1
  1046. package/build-types/button-group/stories/index.story.d.ts +0 -6
  1047. package/build-types/button-group/stories/index.story.d.ts.map +1 -1
  1048. package/build-types/button-group/types.d.ts +0 -3
  1049. package/build-types/button-group/types.d.ts.map +1 -1
  1050. package/build-types/card/card/component.d.ts.map +1 -1
  1051. package/build-types/card/card/hook.d.ts +1 -4
  1052. package/build-types/card/card/hook.d.ts.map +1 -1
  1053. package/build-types/card/card-body/component.d.ts.map +1 -1
  1054. package/build-types/card/card-body/hook.d.ts +1 -4
  1055. package/build-types/card/card-body/hook.d.ts.map +1 -1
  1056. package/build-types/card/card-divider/component.d.ts +11 -6
  1057. package/build-types/card/card-divider/component.d.ts.map +1 -1
  1058. package/build-types/card/card-divider/hook.d.ts +0 -3
  1059. package/build-types/card/card-divider/hook.d.ts.map +1 -1
  1060. package/build-types/card/card-footer/component.d.ts.map +1 -1
  1061. package/build-types/card/card-footer/hook.d.ts +1 -4
  1062. package/build-types/card/card-footer/hook.d.ts.map +1 -1
  1063. package/build-types/card/card-header/component.d.ts.map +1 -1
  1064. package/build-types/card/card-header/hook.d.ts +1 -4
  1065. package/build-types/card/card-header/hook.d.ts.map +1 -1
  1066. package/build-types/card/card-media/component.d.ts.map +1 -1
  1067. package/build-types/card/card-media/hook.d.ts +1 -4
  1068. package/build-types/card/card-media/hook.d.ts.map +1 -1
  1069. package/build-types/card/get-padding-by-size.d.ts +0 -6
  1070. package/build-types/card/get-padding-by-size.d.ts.map +1 -1
  1071. package/build-types/card/styles.d.ts.map +1 -1
  1072. package/build-types/card/types.d.ts +0 -3
  1073. package/build-types/card/types.d.ts.map +1 -1
  1074. package/build-types/checkbox-control/index.d.ts.map +1 -1
  1075. package/build-types/checkbox-control/stories/index.story.d.ts +10 -10
  1076. package/build-types/checkbox-control/stories/index.story.d.ts.map +1 -1
  1077. package/build-types/checkbox-control/types.d.ts +0 -6
  1078. package/build-types/checkbox-control/types.d.ts.map +1 -1
  1079. package/build-types/circular-option-picker/circular-option-picker-actions.d.ts.map +1 -1
  1080. package/build-types/circular-option-picker/circular-option-picker-context.d.ts +0 -3
  1081. package/build-types/circular-option-picker/circular-option-picker-context.d.ts.map +1 -1
  1082. package/build-types/circular-option-picker/circular-option-picker-option-group.d.ts +0 -3
  1083. package/build-types/circular-option-picker/circular-option-picker-option-group.d.ts.map +1 -1
  1084. package/build-types/circular-option-picker/circular-option-picker-option.d.ts.map +1 -1
  1085. package/build-types/circular-option-picker/circular-option-picker.d.ts.map +1 -1
  1086. package/build-types/circular-option-picker/index.d.ts +0 -3
  1087. package/build-types/circular-option-picker/index.d.ts.map +1 -1
  1088. package/build-types/circular-option-picker/stories/index.story.d.ts +0 -6
  1089. package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
  1090. package/build-types/circular-option-picker/types.d.ts +0 -9
  1091. package/build-types/circular-option-picker/types.d.ts.map +1 -1
  1092. package/build-types/circular-option-picker/utils.d.ts.map +1 -1
  1093. package/build-types/clipboard-button/index.d.ts.map +1 -1
  1094. package/build-types/clipboard-button/types.d.ts +0 -3
  1095. package/build-types/clipboard-button/types.d.ts.map +1 -1
  1096. package/build-types/color-indicator/index.d.ts.map +1 -1
  1097. package/build-types/color-indicator/stories/index.story.d.ts +0 -6
  1098. package/build-types/color-indicator/stories/index.story.d.ts.map +1 -1
  1099. package/build-types/color-indicator/types.d.ts +0 -3
  1100. package/build-types/color-indicator/types.d.ts.map +1 -1
  1101. package/build-types/color-palette/index.d.ts.map +1 -1
  1102. package/build-types/color-palette/stories/index.story.d.ts +0 -6
  1103. package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
  1104. package/build-types/color-palette/styles.d.ts +1 -1
  1105. package/build-types/color-palette/styles.d.ts.map +1 -1
  1106. package/build-types/color-palette/types.d.ts +0 -6
  1107. package/build-types/color-palette/types.d.ts.map +1 -1
  1108. package/build-types/color-palette/utils.d.ts +0 -3
  1109. package/build-types/color-palette/utils.d.ts.map +1 -1
  1110. package/build-types/color-picker/color-copy-button.d.ts.map +1 -1
  1111. package/build-types/color-picker/color-input.d.ts.map +1 -1
  1112. package/build-types/color-picker/component.d.ts +11 -7
  1113. package/build-types/color-picker/component.d.ts.map +1 -1
  1114. package/build-types/color-picker/hex-input.d.ts.map +1 -1
  1115. package/build-types/color-picker/hsl-input.d.ts.map +1 -1
  1116. package/build-types/color-picker/index.d.ts +0 -3
  1117. package/build-types/color-picker/index.d.ts.map +1 -1
  1118. package/build-types/color-picker/input-with-slider.d.ts.map +1 -1
  1119. package/build-types/color-picker/legacy-adapter.d.ts.map +1 -1
  1120. package/build-types/color-picker/picker.d.ts +0 -3
  1121. package/build-types/color-picker/picker.d.ts.map +1 -1
  1122. package/build-types/color-picker/rgb-input.d.ts.map +1 -1
  1123. package/build-types/color-picker/stories/index.story.d.ts +0 -6
  1124. package/build-types/color-picker/stories/index.story.d.ts.map +1 -1
  1125. package/build-types/color-picker/styles.d.ts +2 -2
  1126. package/build-types/color-picker/styles.d.ts.map +1 -1
  1127. package/build-types/color-picker/types.d.ts +0 -6
  1128. package/build-types/color-picker/types.d.ts.map +1 -1
  1129. package/build-types/color-picker/use-deprecated-props.d.ts +0 -3
  1130. package/build-types/color-picker/use-deprecated-props.d.ts.map +1 -1
  1131. package/build-types/combobox-control/index.d.ts.map +1 -1
  1132. package/build-types/combobox-control/stories/index.story.d.ts +0 -6
  1133. package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
  1134. package/build-types/combobox-control/styles.d.ts +1 -1
  1135. package/build-types/combobox-control/types.d.ts +0 -3
  1136. package/build-types/combobox-control/types.d.ts.map +1 -1
  1137. package/build-types/composite/context.d.ts +0 -3
  1138. package/build-types/composite/context.d.ts.map +1 -1
  1139. package/build-types/composite/group-label.d.ts.map +1 -1
  1140. package/build-types/composite/group.d.ts.map +1 -1
  1141. package/build-types/composite/hover.d.ts.map +1 -1
  1142. package/build-types/composite/index.d.ts +0 -3
  1143. package/build-types/composite/index.d.ts.map +1 -1
  1144. package/build-types/composite/item.d.ts.map +1 -1
  1145. package/build-types/composite/legacy/index.d.ts +0 -3
  1146. package/build-types/composite/legacy/index.d.ts.map +1 -1
  1147. package/build-types/composite/legacy/stories/index.story.d.ts +0 -3
  1148. package/build-types/composite/legacy/stories/index.story.d.ts.map +1 -1
  1149. package/build-types/composite/legacy/stories/utils.d.ts +0 -6
  1150. package/build-types/composite/legacy/stories/utils.d.ts.map +1 -1
  1151. package/build-types/composite/row.d.ts.map +1 -1
  1152. package/build-types/composite/stories/index.story.d.ts +0 -3
  1153. package/build-types/composite/stories/index.story.d.ts.map +1 -1
  1154. package/build-types/composite/typeahead.d.ts.map +1 -1
  1155. package/build-types/composite/types.d.ts +0 -3
  1156. package/build-types/composite/types.d.ts.map +1 -1
  1157. package/build-types/confirm-dialog/component.d.ts +32 -18
  1158. package/build-types/confirm-dialog/component.d.ts.map +1 -1
  1159. package/build-types/confirm-dialog/index.d.ts +0 -3
  1160. package/build-types/confirm-dialog/index.d.ts.map +1 -1
  1161. package/build-types/confirm-dialog/stories/index.story.d.ts +0 -3
  1162. package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -1
  1163. package/build-types/confirm-dialog/types.d.ts +4 -6
  1164. package/build-types/confirm-dialog/types.d.ts.map +1 -1
  1165. package/build-types/content-editable-control/index.d.ts.map +1 -1
  1166. package/build-types/content-editable-control/stories/index.story.d.ts +0 -6
  1167. package/build-types/content-editable-control/stories/index.story.d.ts.map +1 -1
  1168. package/build-types/content-editable-control/types.d.ts +0 -3
  1169. package/build-types/content-editable-control/types.d.ts.map +1 -1
  1170. package/build-types/context/context-connect.d.ts +0 -3
  1171. package/build-types/context/context-connect.d.ts.map +1 -1
  1172. package/build-types/context/context-system-provider.d.ts.map +1 -1
  1173. package/build-types/context/get-styled-class-name-from-key.d.ts.map +1 -1
  1174. package/build-types/context/use-context-system.d.ts.map +1 -1
  1175. package/build-types/context/utils.d.ts.map +1 -1
  1176. package/build-types/context/wordpress-component.d.ts +25 -8
  1177. package/build-types/context/wordpress-component.d.ts.map +1 -1
  1178. package/build-types/custom-gradient-picker/constants.d.ts.map +1 -1
  1179. package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -1
  1180. package/build-types/custom-gradient-picker/gradient-bar/index.d.ts.map +1 -1
  1181. package/build-types/custom-gradient-picker/gradient-bar/utils.d.ts.map +1 -1
  1182. package/build-types/custom-gradient-picker/index.d.ts.map +1 -1
  1183. package/build-types/custom-gradient-picker/serializer.d.ts +0 -3
  1184. package/build-types/custom-gradient-picker/serializer.d.ts.map +1 -1
  1185. package/build-types/custom-gradient-picker/stories/index.story.d.ts +0 -6
  1186. package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
  1187. package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts +2 -2
  1188. package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts.map +1 -1
  1189. package/build-types/custom-gradient-picker/types.d.ts +0 -3
  1190. package/build-types/custom-gradient-picker/types.d.ts.map +1 -1
  1191. package/build-types/custom-gradient-picker/utils.d.ts +0 -3
  1192. package/build-types/custom-gradient-picker/utils.d.ts.map +1 -1
  1193. package/build-types/custom-select-control/index.d.ts.map +1 -1
  1194. package/build-types/custom-select-control/stories/index.story.d.ts +0 -6
  1195. package/build-types/custom-select-control/stories/index.story.d.ts.map +1 -1
  1196. package/build-types/custom-select-control/types.d.ts +0 -3
  1197. package/build-types/custom-select-control/types.d.ts.map +1 -1
  1198. package/build-types/custom-select-control-v2/custom-select.d.ts.map +1 -1
  1199. package/build-types/custom-select-control-v2/index.d.ts.map +1 -1
  1200. package/build-types/custom-select-control-v2/item.d.ts +0 -3
  1201. package/build-types/custom-select-control-v2/item.d.ts.map +1 -1
  1202. package/build-types/custom-select-control-v2/stories/index.story.d.ts +0 -6
  1203. package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +1 -1
  1204. package/build-types/custom-select-control-v2/styles.d.ts +0 -3
  1205. package/build-types/custom-select-control-v2/styles.d.ts.map +1 -1
  1206. package/build-types/custom-select-control-v2/types.d.ts +0 -3
  1207. package/build-types/custom-select-control-v2/types.d.ts.map +1 -1
  1208. package/build-types/dashicon/index.d.ts +0 -3
  1209. package/build-types/dashicon/index.d.ts.map +1 -1
  1210. package/build-types/date-time/date-picker/index.d.ts.map +1 -1
  1211. package/build-types/date-time/date-picker/styles.d.ts +2 -2
  1212. package/build-types/date-time/date-picker/styles.d.ts.map +1 -1
  1213. package/build-types/date-time/date-picker/use-lilius/index.d.ts +0 -30
  1214. package/build-types/date-time/date-picker/use-lilius/index.d.ts.map +1 -1
  1215. package/build-types/date-time/date-time/index.d.ts +0 -3
  1216. package/build-types/date-time/date-time/index.d.ts.map +1 -1
  1217. package/build-types/date-time/date-time/styles.d.ts +1 -1
  1218. package/build-types/date-time/date-time/styles.d.ts.map +1 -1
  1219. package/build-types/date-time/index.d.ts +0 -3
  1220. package/build-types/date-time/index.d.ts.map +1 -1
  1221. package/build-types/date-time/stories/date-time.story.d.ts +0 -6
  1222. package/build-types/date-time/stories/date-time.story.d.ts.map +1 -1
  1223. package/build-types/date-time/stories/date.story.d.ts +0 -6
  1224. package/build-types/date-time/stories/date.story.d.ts.map +1 -1
  1225. package/build-types/date-time/stories/time.story.d.ts +0 -6
  1226. package/build-types/date-time/stories/time.story.d.ts.map +1 -1
  1227. package/build-types/date-time/time-picker/styles.d.ts.map +1 -1
  1228. package/build-types/date-time/time-picker/time-input/index.d.ts.map +1 -1
  1229. package/build-types/date-time/time-picker/timezone.d.ts.map +1 -1
  1230. package/build-types/date-time/types.d.ts +0 -3
  1231. package/build-types/date-time/types.d.ts.map +1 -1
  1232. package/build-types/date-time/utils.d.ts +0 -3
  1233. package/build-types/date-time/utils.d.ts.map +1 -1
  1234. package/build-types/disabled/stories/index.story.d.ts +0 -6
  1235. package/build-types/disabled/stories/index.story.d.ts.map +1 -1
  1236. package/build-types/disclosure/index.d.ts +0 -3
  1237. package/build-types/disclosure/index.d.ts.map +1 -1
  1238. package/build-types/divider/component.d.ts +11 -9
  1239. package/build-types/divider/component.d.ts.map +1 -1
  1240. package/build-types/divider/stories/index.story.d.ts +0 -3
  1241. package/build-types/divider/stories/index.story.d.ts.map +1 -1
  1242. package/build-types/divider/types.d.ts +0 -6
  1243. package/build-types/divider/types.d.ts.map +1 -1
  1244. package/build-types/draggable/index.d.ts +0 -3
  1245. package/build-types/draggable/index.d.ts.map +1 -1
  1246. package/build-types/draggable/stories/index.story.d.ts +0 -6
  1247. package/build-types/draggable/stories/index.story.d.ts.map +1 -1
  1248. package/build-types/draggable/types.d.ts +0 -3
  1249. package/build-types/draggable/types.d.ts.map +1 -1
  1250. package/build-types/drop-zone/index.d.ts +0 -3
  1251. package/build-types/drop-zone/index.d.ts.map +1 -1
  1252. package/build-types/drop-zone/provider.d.ts.map +1 -1
  1253. package/build-types/drop-zone/stories/index.story.d.ts +0 -6
  1254. package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
  1255. package/build-types/dropdown/dropdown-content-wrapper.d.ts +6 -1
  1256. package/build-types/dropdown/dropdown-content-wrapper.d.ts.map +1 -1
  1257. package/build-types/dropdown/index.d.ts +5 -1
  1258. package/build-types/dropdown/index.d.ts.map +1 -1
  1259. package/build-types/dropdown/stories/index.story.d.ts +0 -6
  1260. package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
  1261. package/build-types/dropdown/styles.d.ts.map +1 -1
  1262. package/build-types/dropdown/types.d.ts +4 -0
  1263. package/build-types/dropdown/types.d.ts.map +1 -1
  1264. package/build-types/dropdown-menu/index.d.ts +5 -1
  1265. package/build-types/dropdown-menu/index.d.ts.map +1 -1
  1266. package/build-types/dropdown-menu/stories/index.story.d.ts +0 -6
  1267. package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
  1268. package/build-types/dropdown-menu/types.d.ts +0 -6
  1269. package/build-types/dropdown-menu/types.d.ts.map +1 -1
  1270. package/build-types/duotone-picker/color-list-picker/index.d.ts.map +1 -1
  1271. package/build-types/duotone-picker/color-list-picker/types.d.ts +0 -3
  1272. package/build-types/duotone-picker/color-list-picker/types.d.ts.map +1 -1
  1273. package/build-types/duotone-picker/custom-duotone-bar.d.ts.map +1 -1
  1274. package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -1
  1275. package/build-types/duotone-picker/duotone-swatch.d.ts.map +1 -1
  1276. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts +0 -6
  1277. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts.map +1 -1
  1278. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts +0 -6
  1279. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts.map +1 -1
  1280. package/build-types/duotone-picker/utils.d.ts +0 -3
  1281. package/build-types/duotone-picker/utils.d.ts.map +1 -1
  1282. package/build-types/elevation/component.d.ts +2 -3
  1283. package/build-types/elevation/component.d.ts.map +1 -1
  1284. package/build-types/elevation/hook.d.ts +1 -4
  1285. package/build-types/elevation/hook.d.ts.map +1 -1
  1286. package/build-types/elevation/stories/index.story.d.ts +0 -6
  1287. package/build-types/elevation/stories/index.story.d.ts.map +1 -1
  1288. package/build-types/elevation/styles.d.ts.map +1 -1
  1289. package/build-types/elevation/types.d.ts +0 -3
  1290. package/build-types/elevation/types.d.ts.map +1 -1
  1291. package/build-types/external-link/index.d.ts +0 -3
  1292. package/build-types/external-link/index.d.ts.map +1 -1
  1293. package/build-types/external-link/stories/index.story.d.ts +0 -6
  1294. package/build-types/external-link/stories/index.story.d.ts.map +1 -1
  1295. package/build-types/external-link/types.d.ts +0 -3
  1296. package/build-types/external-link/types.d.ts.map +1 -1
  1297. package/build-types/flex/context.d.ts.map +1 -1
  1298. package/build-types/flex/flex/component.d.ts.map +1 -1
  1299. package/build-types/flex/flex/hook.d.ts +1 -1
  1300. package/build-types/flex/flex/hook.d.ts.map +1 -1
  1301. package/build-types/flex/flex-block/component.d.ts.map +1 -1
  1302. package/build-types/flex/flex-block/hook.d.ts +1 -4
  1303. package/build-types/flex/flex-block/hook.d.ts.map +1 -1
  1304. package/build-types/flex/flex-item/component.d.ts.map +1 -1
  1305. package/build-types/flex/flex-item/hook.d.ts +1 -1
  1306. package/build-types/flex/flex-item/hook.d.ts.map +1 -1
  1307. package/build-types/flex/stories/index.story.d.ts +0 -6
  1308. package/build-types/flex/stories/index.story.d.ts.map +1 -1
  1309. package/build-types/flex/types.d.ts +0 -6
  1310. package/build-types/flex/types.d.ts.map +1 -1
  1311. package/build-types/focal-point-picker/controls.d.ts.map +1 -1
  1312. package/build-types/focal-point-picker/focal-point.d.ts +0 -3
  1313. package/build-types/focal-point-picker/focal-point.d.ts.map +1 -1
  1314. package/build-types/focal-point-picker/grid.d.ts.map +1 -1
  1315. package/build-types/focal-point-picker/index.d.ts.map +1 -1
  1316. package/build-types/focal-point-picker/media.d.ts.map +1 -1
  1317. package/build-types/focal-point-picker/stories/index.story.d.ts +0 -6
  1318. package/build-types/focal-point-picker/stories/index.story.d.ts.map +1 -1
  1319. package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts +126 -126
  1320. package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts.map +1 -1
  1321. package/build-types/focal-point-picker/styles/focal-point-style.d.ts.map +1 -1
  1322. package/build-types/focal-point-picker/types.d.ts +0 -6
  1323. package/build-types/focal-point-picker/types.d.ts.map +1 -1
  1324. package/build-types/focusable-iframe/index.d.ts +0 -3
  1325. package/build-types/focusable-iframe/index.d.ts.map +1 -1
  1326. package/build-types/focusable-iframe/types.d.ts +0 -3
  1327. package/build-types/focusable-iframe/types.d.ts.map +1 -1
  1328. package/build-types/font-size-picker/constants.d.ts.map +1 -1
  1329. package/build-types/font-size-picker/font-size-picker-select.d.ts +0 -3
  1330. package/build-types/font-size-picker/font-size-picker-select.d.ts.map +1 -1
  1331. package/build-types/font-size-picker/font-size-picker-toggle-group.d.ts.map +1 -1
  1332. package/build-types/font-size-picker/index.d.ts.map +1 -1
  1333. package/build-types/font-size-picker/stories/e2e/index.story.d.ts +0 -6
  1334. package/build-types/font-size-picker/stories/e2e/index.story.d.ts.map +1 -1
  1335. package/build-types/font-size-picker/stories/index.story.d.ts +0 -6
  1336. package/build-types/font-size-picker/stories/index.story.d.ts.map +1 -1
  1337. package/build-types/font-size-picker/styles.d.ts +2 -2
  1338. package/build-types/font-size-picker/styles.d.ts.map +1 -1
  1339. package/build-types/font-size-picker/utils.d.ts +0 -3
  1340. package/build-types/font-size-picker/utils.d.ts.map +1 -1
  1341. package/build-types/form-file-upload/index.d.ts.map +1 -1
  1342. package/build-types/form-file-upload/stories/index.story.d.ts +0 -6
  1343. package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
  1344. package/build-types/form-file-upload/types.d.ts +0 -6
  1345. package/build-types/form-file-upload/types.d.ts.map +1 -1
  1346. package/build-types/form-toggle/index.d.ts +0 -3
  1347. package/build-types/form-toggle/index.d.ts.map +1 -1
  1348. package/build-types/form-toggle/stories/index.story.d.ts +0 -6
  1349. package/build-types/form-toggle/stories/index.story.d.ts.map +1 -1
  1350. package/build-types/form-toggle/types.d.ts +0 -3
  1351. package/build-types/form-toggle/types.d.ts.map +1 -1
  1352. package/build-types/form-token-field/index.d.ts.map +1 -1
  1353. package/build-types/form-token-field/stories/index.story.d.ts +0 -6
  1354. package/build-types/form-token-field/stories/index.story.d.ts.map +1 -1
  1355. package/build-types/form-token-field/suggestions-list.d.ts +0 -3
  1356. package/build-types/form-token-field/suggestions-list.d.ts.map +1 -1
  1357. package/build-types/form-token-field/token-input.d.ts +0 -3
  1358. package/build-types/form-token-field/token-input.d.ts.map +1 -1
  1359. package/build-types/form-token-field/token.d.ts.map +1 -1
  1360. package/build-types/form-token-field/types.d.ts +0 -3
  1361. package/build-types/form-token-field/types.d.ts.map +1 -1
  1362. package/build-types/gradient-picker/index.d.ts.map +1 -1
  1363. package/build-types/gradient-picker/stories/index.story.d.ts +0 -6
  1364. package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
  1365. package/build-types/gradient-picker/types.d.ts +0 -3
  1366. package/build-types/gradient-picker/types.d.ts.map +1 -1
  1367. package/build-types/grid/component.d.ts.map +1 -1
  1368. package/build-types/grid/hook.d.ts +1 -4
  1369. package/build-types/grid/hook.d.ts.map +1 -1
  1370. package/build-types/grid/stories/index.story.d.ts +0 -3
  1371. package/build-types/grid/stories/index.story.d.ts.map +1 -1
  1372. package/build-types/grid/types.d.ts +0 -6
  1373. package/build-types/grid/types.d.ts.map +1 -1
  1374. package/build-types/grid/utils.d.ts +0 -3
  1375. package/build-types/grid/utils.d.ts.map +1 -1
  1376. package/build-types/guide/icons.d.ts.map +1 -1
  1377. package/build-types/guide/index.d.ts.map +1 -1
  1378. package/build-types/guide/page-control.d.ts.map +1 -1
  1379. package/build-types/guide/page.d.ts +0 -3
  1380. package/build-types/guide/page.d.ts.map +1 -1
  1381. package/build-types/guide/stories/index.story.d.ts +0 -3
  1382. package/build-types/guide/stories/index.story.d.ts.map +1 -1
  1383. package/build-types/guide/types.d.ts +0 -6
  1384. package/build-types/guide/types.d.ts.map +1 -1
  1385. package/build-types/h-stack/component.d.ts.map +1 -1
  1386. package/build-types/h-stack/hook.d.ts +1 -4
  1387. package/build-types/h-stack/hook.d.ts.map +1 -1
  1388. package/build-types/h-stack/stories/e2e/index.story.d.ts +0 -3
  1389. package/build-types/h-stack/stories/e2e/index.story.d.ts.map +1 -1
  1390. package/build-types/h-stack/stories/index.story.d.ts +0 -3
  1391. package/build-types/h-stack/stories/index.story.d.ts.map +1 -1
  1392. package/build-types/h-stack/types.d.ts +0 -6
  1393. package/build-types/h-stack/types.d.ts.map +1 -1
  1394. package/build-types/h-stack/utils.d.ts +0 -6
  1395. package/build-types/h-stack/utils.d.ts.map +1 -1
  1396. package/build-types/heading/component.d.ts.map +1 -1
  1397. package/build-types/heading/hook.d.ts +0 -3
  1398. package/build-types/heading/hook.d.ts.map +1 -1
  1399. package/build-types/heading/stories/index.story.d.ts +0 -6
  1400. package/build-types/heading/stories/index.story.d.ts.map +1 -1
  1401. package/build-types/heading/types.d.ts +0 -3
  1402. package/build-types/heading/types.d.ts.map +1 -1
  1403. package/build-types/higher-order/navigate-regions/index.d.ts.map +1 -1
  1404. package/build-types/higher-order/with-constrained-tabbing/index.d.ts.map +1 -1
  1405. package/build-types/higher-order/with-fallback-styles/index.d.ts.map +1 -1
  1406. package/build-types/higher-order/with-filters/index.d.ts.map +1 -1
  1407. package/build-types/higher-order/with-focus-return/index.d.ts.map +1 -1
  1408. package/build-types/higher-order/with-notices/index.d.ts.map +1 -1
  1409. package/build-types/higher-order/with-notices/types.d.ts +0 -3
  1410. package/build-types/higher-order/with-notices/types.d.ts.map +1 -1
  1411. package/build-types/higher-order/with-spoken-messages/index.d.ts.map +1 -1
  1412. package/build-types/icon/index.d.ts +0 -3
  1413. package/build-types/icon/index.d.ts.map +1 -1
  1414. package/build-types/input-control/backdrop.d.ts.map +1 -1
  1415. package/build-types/input-control/index.d.ts.map +1 -1
  1416. package/build-types/input-control/input-base.d.ts.map +1 -1
  1417. package/build-types/input-control/input-field.d.ts.map +1 -1
  1418. package/build-types/input-control/input-prefix-wrapper.d.ts.map +1 -1
  1419. package/build-types/input-control/input-suffix-wrapper.d.ts.map +1 -1
  1420. package/build-types/input-control/label.d.ts.map +1 -1
  1421. package/build-types/input-control/reducer/actions.d.ts +0 -6
  1422. package/build-types/input-control/reducer/actions.d.ts.map +1 -1
  1423. package/build-types/input-control/reducer/reducer.d.ts +0 -6
  1424. package/build-types/input-control/reducer/reducer.d.ts.map +1 -1
  1425. package/build-types/input-control/reducer/state.d.ts +0 -6
  1426. package/build-types/input-control/reducer/state.d.ts.map +1 -1
  1427. package/build-types/input-control/stories/index.story.d.ts +0 -6
  1428. package/build-types/input-control/stories/index.story.d.ts.map +1 -1
  1429. package/build-types/input-control/styles/input-control-styles.d.ts +2 -8
  1430. package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
  1431. package/build-types/input-control/types.d.ts +0 -6
  1432. package/build-types/input-control/types.d.ts.map +1 -1
  1433. package/build-types/input-control/utils.d.ts +0 -6
  1434. package/build-types/input-control/utils.d.ts.map +1 -1
  1435. package/build-types/isolated-event-container/index.d.ts.map +1 -1
  1436. package/build-types/item-group/context.d.ts +0 -3
  1437. package/build-types/item-group/context.d.ts.map +1 -1
  1438. package/build-types/item-group/item/component.d.ts +0 -3
  1439. package/build-types/item-group/item/component.d.ts.map +1 -1
  1440. package/build-types/item-group/item/hook.d.ts +1 -4
  1441. package/build-types/item-group/item/hook.d.ts.map +1 -1
  1442. package/build-types/item-group/item-group/component.d.ts.map +1 -1
  1443. package/build-types/item-group/item-group/hook.d.ts +1 -4
  1444. package/build-types/item-group/item-group/hook.d.ts.map +1 -1
  1445. package/build-types/item-group/stories/index.story.d.ts +0 -6
  1446. package/build-types/item-group/stories/index.story.d.ts.map +1 -1
  1447. package/build-types/keyboard-shortcuts/index.d.ts +0 -3
  1448. package/build-types/keyboard-shortcuts/index.d.ts.map +1 -1
  1449. package/build-types/keyboard-shortcuts/stories/index.story.d.ts +0 -6
  1450. package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +1 -1
  1451. package/build-types/keyboard-shortcuts/types.d.ts +0 -3
  1452. package/build-types/keyboard-shortcuts/types.d.ts.map +1 -1
  1453. package/build-types/lock-unlock.d.ts.map +1 -1
  1454. package/build-types/menu/checkbox-item.d.ts.map +1 -1
  1455. package/build-types/menu/context.d.ts +0 -3
  1456. package/build-types/menu/context.d.ts.map +1 -1
  1457. package/build-types/menu/group-label.d.ts.map +1 -1
  1458. package/build-types/menu/group.d.ts.map +1 -1
  1459. package/build-types/menu/index.d.ts +7 -3
  1460. package/build-types/menu/index.d.ts.map +1 -1
  1461. package/build-types/menu/item-help-text.d.ts +1 -1
  1462. package/build-types/menu/item-help-text.d.ts.map +1 -1
  1463. package/build-types/menu/item-label.d.ts +1 -1
  1464. package/build-types/menu/item-label.d.ts.map +1 -1
  1465. package/build-types/menu/item.d.ts.map +1 -1
  1466. package/build-types/menu/popover.d.ts.map +1 -1
  1467. package/build-types/menu/radio-item.d.ts.map +1 -1
  1468. package/build-types/menu/separator.d.ts.map +1 -1
  1469. package/build-types/menu/stories/index.story.d.ts +1 -4
  1470. package/build-types/menu/stories/index.story.d.ts.map +1 -1
  1471. package/build-types/menu/styles.d.ts +2 -5
  1472. package/build-types/menu/styles.d.ts.map +1 -1
  1473. package/build-types/menu/submenu-trigger-item.d.ts.map +1 -1
  1474. package/build-types/menu/trigger-button.d.ts.map +1 -1
  1475. package/build-types/menu/types.d.ts +0 -3
  1476. package/build-types/menu/types.d.ts.map +1 -1
  1477. package/build-types/menu/use-menu-item-hide-on-click.d.ts +3 -0
  1478. package/build-types/menu/use-menu-item-hide-on-click.d.ts.map +1 -0
  1479. package/build-types/menu-group/index.d.ts +0 -3
  1480. package/build-types/menu-group/index.d.ts.map +1 -1
  1481. package/build-types/menu-group/stories/index.story.d.ts +0 -6
  1482. package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
  1483. package/build-types/menu-group/types.d.ts +0 -3
  1484. package/build-types/menu-group/types.d.ts.map +1 -1
  1485. package/build-types/menu-item/index.d.ts.map +1 -1
  1486. package/build-types/menu-item/stories/index.story.d.ts +0 -3
  1487. package/build-types/menu-item/stories/index.story.d.ts.map +1 -1
  1488. package/build-types/menu-item/types.d.ts +0 -6
  1489. package/build-types/menu-item/types.d.ts.map +1 -1
  1490. package/build-types/menu-items-choice/index.d.ts.map +1 -1
  1491. package/build-types/menu-items-choice/stories/index.story.d.ts +0 -6
  1492. package/build-types/menu-items-choice/stories/index.story.d.ts.map +1 -1
  1493. package/build-types/menu-items-choice/types.d.ts +0 -3
  1494. package/build-types/menu-items-choice/types.d.ts.map +1 -1
  1495. package/build-types/modal/index.d.ts.map +1 -1
  1496. package/build-types/modal/stories/index.story.d.ts +0 -3
  1497. package/build-types/modal/stories/index.story.d.ts.map +1 -1
  1498. package/build-types/modal/types.d.ts +2 -3
  1499. package/build-types/modal/types.d.ts.map +1 -1
  1500. package/build-types/modal/use-modal-exit-animation.d.ts.map +1 -1
  1501. package/build-types/navigable-container/container.d.ts.map +1 -1
  1502. package/build-types/navigable-container/index.d.ts +0 -3
  1503. package/build-types/navigable-container/index.d.ts.map +1 -1
  1504. package/build-types/navigable-container/menu.d.ts +0 -3
  1505. package/build-types/navigable-container/menu.d.ts.map +1 -1
  1506. package/build-types/navigable-container/stories/navigable-menu.story.d.ts +0 -6
  1507. package/build-types/navigable-container/stories/navigable-menu.story.d.ts.map +1 -1
  1508. package/build-types/navigable-container/stories/tabbable-container.story.d.ts +0 -6
  1509. package/build-types/navigable-container/stories/tabbable-container.story.d.ts.map +1 -1
  1510. package/build-types/navigable-container/tabbable.d.ts +0 -3
  1511. package/build-types/navigable-container/tabbable.d.ts.map +1 -1
  1512. package/build-types/navigable-container/types.d.ts +0 -6
  1513. package/build-types/navigable-container/types.d.ts.map +1 -1
  1514. package/build-types/navigator/context.d.ts +0 -3
  1515. package/build-types/navigator/context.d.ts.map +1 -1
  1516. package/build-types/navigator/index.d.ts +2180 -50
  1517. package/build-types/navigator/index.d.ts.map +1 -1
  1518. package/build-types/navigator/legacy.d.ts +2953 -73
  1519. package/build-types/navigator/legacy.d.ts.map +1 -1
  1520. package/build-types/navigator/navigator/component.d.ts.map +1 -1
  1521. package/build-types/navigator/navigator-back-button/component.d.ts.map +1 -1
  1522. package/build-types/navigator/navigator-back-button/hook.d.ts +1 -4
  1523. package/build-types/navigator/navigator-back-button/hook.d.ts.map +1 -1
  1524. package/build-types/navigator/navigator-button/component.d.ts.map +1 -1
  1525. package/build-types/navigator/navigator-button/hook.d.ts +1 -4
  1526. package/build-types/navigator/navigator-button/hook.d.ts.map +1 -1
  1527. package/build-types/navigator/navigator-screen/component.d.ts +6 -1
  1528. package/build-types/navigator/navigator-screen/component.d.ts.map +1 -1
  1529. package/build-types/navigator/navigator-screen/use-screen-animate-presence.d.ts.map +1 -1
  1530. package/build-types/navigator/navigator-to-parent-button/component.d.ts.map +1 -1
  1531. package/build-types/navigator/stories/index.story.d.ts +0 -3
  1532. package/build-types/navigator/stories/index.story.d.ts.map +1 -1
  1533. package/build-types/navigator/styles.d.ts.map +1 -1
  1534. package/build-types/navigator/types.d.ts +0 -6
  1535. package/build-types/navigator/types.d.ts.map +1 -1
  1536. package/build-types/navigator/use-navigator.d.ts.map +1 -1
  1537. package/build-types/navigator/utils/router.d.ts +0 -3
  1538. package/build-types/navigator/utils/router.d.ts.map +1 -1
  1539. package/build-types/notice/index.d.ts.map +1 -1
  1540. package/build-types/notice/list.d.ts.map +1 -1
  1541. package/build-types/notice/stories/index.story.d.ts +0 -6
  1542. package/build-types/notice/stories/index.story.d.ts.map +1 -1
  1543. package/build-types/notice/types.d.ts +0 -3
  1544. package/build-types/notice/types.d.ts.map +1 -1
  1545. package/build-types/number-control/index.d.ts.map +1 -1
  1546. package/build-types/number-control/stories/index.story.d.ts +0 -6
  1547. package/build-types/number-control/stories/index.story.d.ts.map +1 -1
  1548. package/build-types/number-control/styles/number-control-styles.d.ts.map +1 -1
  1549. package/build-types/number-control/types.d.ts +0 -3
  1550. package/build-types/number-control/types.d.ts.map +1 -1
  1551. package/build-types/palette-edit/index.d.ts.map +1 -1
  1552. package/build-types/palette-edit/stories/index.story.d.ts +0 -6
  1553. package/build-types/palette-edit/stories/index.story.d.ts.map +1 -1
  1554. package/build-types/palette-edit/styles.d.ts +376 -376
  1555. package/build-types/palette-edit/styles.d.ts.map +1 -1
  1556. package/build-types/palette-edit/types.d.ts +0 -6
  1557. package/build-types/palette-edit/types.d.ts.map +1 -1
  1558. package/build-types/panel/body.d.ts +0 -3
  1559. package/build-types/panel/body.d.ts.map +1 -1
  1560. package/build-types/panel/header.d.ts +0 -3
  1561. package/build-types/panel/header.d.ts.map +1 -1
  1562. package/build-types/panel/index.d.ts.map +1 -1
  1563. package/build-types/panel/row.d.ts +0 -3
  1564. package/build-types/panel/row.d.ts.map +1 -1
  1565. package/build-types/panel/stories/index.story.d.ts +0 -6
  1566. package/build-types/panel/stories/index.story.d.ts.map +1 -1
  1567. package/build-types/panel/types.d.ts +0 -3
  1568. package/build-types/panel/types.d.ts.map +1 -1
  1569. package/build-types/placeholder/index.d.ts.map +1 -1
  1570. package/build-types/placeholder/stories/index.story.d.ts +0 -6
  1571. package/build-types/placeholder/stories/index.story.d.ts.map +1 -1
  1572. package/build-types/placeholder/types.d.ts +0 -6
  1573. package/build-types/placeholder/types.d.ts.map +1 -1
  1574. package/build-types/popover/index.d.ts +5 -1
  1575. package/build-types/popover/index.d.ts.map +1 -1
  1576. package/build-types/popover/overlay-middlewares.d.ts +0 -3
  1577. package/build-types/popover/overlay-middlewares.d.ts.map +1 -1
  1578. package/build-types/popover/stories/e2e/index.story.d.ts +5 -1
  1579. package/build-types/popover/stories/e2e/index.story.d.ts.map +1 -1
  1580. package/build-types/popover/stories/index.story.d.ts +0 -3
  1581. package/build-types/popover/stories/index.story.d.ts.map +1 -1
  1582. package/build-types/popover/test/utils/index.d.ts +0 -3
  1583. package/build-types/popover/test/utils/index.d.ts.map +1 -1
  1584. package/build-types/popover/types.d.ts +1 -1
  1585. package/build-types/popover/utils.d.ts +0 -3
  1586. package/build-types/popover/utils.d.ts.map +1 -1
  1587. package/build-types/private-apis.d.ts.map +1 -1
  1588. package/build-types/progress-bar/index.d.ts.map +1 -1
  1589. package/build-types/progress-bar/stories/index.story.d.ts +0 -6
  1590. package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
  1591. package/build-types/progress-bar/styles.d.ts.map +1 -1
  1592. package/build-types/query-controls/author-select.d.ts.map +1 -1
  1593. package/build-types/query-controls/index.d.ts.map +1 -1
  1594. package/build-types/query-controls/stories/index.story.d.ts +0 -6
  1595. package/build-types/query-controls/stories/index.story.d.ts.map +1 -1
  1596. package/build-types/query-controls/terms.d.ts +0 -3
  1597. package/build-types/query-controls/terms.d.ts.map +1 -1
  1598. package/build-types/query-controls/types.d.ts +0 -3
  1599. package/build-types/query-controls/types.d.ts.map +1 -1
  1600. package/build-types/radio-control/index.d.ts.map +1 -1
  1601. package/build-types/radio-control/stories/index.story.d.ts +0 -6
  1602. package/build-types/radio-control/stories/index.story.d.ts.map +1 -1
  1603. package/build-types/radio-control/types.d.ts +0 -3
  1604. package/build-types/radio-control/types.d.ts.map +1 -1
  1605. package/build-types/radio-group/context.d.ts +0 -3
  1606. package/build-types/radio-group/context.d.ts.map +1 -1
  1607. package/build-types/radio-group/index.d.ts.map +1 -1
  1608. package/build-types/radio-group/radio.d.ts.map +1 -1
  1609. package/build-types/radio-group/stories/index.story.d.ts +0 -6
  1610. package/build-types/radio-group/stories/index.story.d.ts.map +1 -1
  1611. package/build-types/range-control/index.d.ts.map +1 -1
  1612. package/build-types/range-control/input-range.d.ts +1 -1
  1613. package/build-types/range-control/input-range.d.ts.map +1 -1
  1614. package/build-types/range-control/mark.d.ts.map +1 -1
  1615. package/build-types/range-control/rail.d.ts.map +1 -1
  1616. package/build-types/range-control/stories/index.story.d.ts +0 -6
  1617. package/build-types/range-control/stories/index.story.d.ts.map +1 -1
  1618. package/build-types/range-control/styles/range-control-styles.d.ts.map +1 -1
  1619. package/build-types/range-control/tooltip.d.ts.map +1 -1
  1620. package/build-types/range-control/types.d.ts +0 -6
  1621. package/build-types/range-control/types.d.ts.map +1 -1
  1622. package/build-types/range-control/utils.d.ts.map +1 -1
  1623. package/build-types/resizable-box/index.d.ts +0 -3
  1624. package/build-types/resizable-box/index.d.ts.map +1 -1
  1625. package/build-types/resizable-box/resize-tooltip/index.d.ts.map +1 -1
  1626. package/build-types/resizable-box/resize-tooltip/label.d.ts +0 -3
  1627. package/build-types/resizable-box/resize-tooltip/label.d.ts.map +1 -1
  1628. package/build-types/resizable-box/resize-tooltip/styles/resize-tooltip.styles.d.ts +1 -1
  1629. package/build-types/resizable-box/resize-tooltip/styles/resize-tooltip.styles.d.ts.map +1 -1
  1630. package/build-types/resizable-box/resize-tooltip/utils.d.ts.map +1 -1
  1631. package/build-types/resizable-box/stories/index.story.d.ts +0 -6
  1632. package/build-types/resizable-box/stories/index.story.d.ts.map +1 -1
  1633. package/build-types/responsive-wrapper/index.d.ts +0 -3
  1634. package/build-types/responsive-wrapper/index.d.ts.map +1 -1
  1635. package/build-types/responsive-wrapper/stories/index.story.d.ts +0 -6
  1636. package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -1
  1637. package/build-types/sandbox/index.d.ts +0 -3
  1638. package/build-types/sandbox/index.d.ts.map +1 -1
  1639. package/build-types/sandbox/stories/index.story.d.ts +1 -6
  1640. package/build-types/sandbox/stories/index.story.d.ts.map +1 -1
  1641. package/build-types/sandbox/types.d.ts +10 -0
  1642. package/build-types/sandbox/types.d.ts.map +1 -1
  1643. package/build-types/scroll-lock/index.d.ts.map +1 -1
  1644. package/build-types/scroll-lock/stories/index.story.d.ts +0 -3
  1645. package/build-types/scroll-lock/stories/index.story.d.ts.map +1 -1
  1646. package/build-types/scrollable/component.d.ts.map +1 -1
  1647. package/build-types/scrollable/hook.d.ts +1 -4
  1648. package/build-types/scrollable/hook.d.ts.map +1 -1
  1649. package/build-types/scrollable/stories/index.story.d.ts +0 -3
  1650. package/build-types/scrollable/stories/index.story.d.ts.map +1 -1
  1651. package/build-types/scrollable/styles.d.ts.map +1 -1
  1652. package/build-types/scrollable/types.d.ts +0 -3
  1653. package/build-types/scrollable/types.d.ts.map +1 -1
  1654. package/build-types/search-control/index.d.ts.map +1 -1
  1655. package/build-types/search-control/stories/index.story.d.ts +0 -6
  1656. package/build-types/search-control/stories/index.story.d.ts.map +1 -1
  1657. package/build-types/search-control/types.d.ts +0 -3
  1658. package/build-types/search-control/types.d.ts.map +1 -1
  1659. package/build-types/select-control/chevron-down.d.ts.map +1 -1
  1660. package/build-types/select-control/index.d.ts.map +1 -1
  1661. package/build-types/select-control/stories/index.story.d.ts +0 -6
  1662. package/build-types/select-control/stories/index.story.d.ts.map +1 -1
  1663. package/build-types/select-control/styles/select-control-styles.d.ts +2 -2
  1664. package/build-types/select-control/styles/select-control-styles.d.ts.map +1 -1
  1665. package/build-types/select-control/types.d.ts +0 -6
  1666. package/build-types/select-control/types.d.ts.map +1 -1
  1667. package/build-types/shortcut/index.d.ts +0 -3
  1668. package/build-types/shortcut/index.d.ts.map +1 -1
  1669. package/build-types/shortcut/stories/index.story.d.ts +0 -6
  1670. package/build-types/shortcut/stories/index.story.d.ts.map +1 -1
  1671. package/build-types/slot-fill/bubbles-virtually/slot.d.ts +1 -1
  1672. package/build-types/slot-fill/bubbles-virtually/slot.d.ts.map +1 -1
  1673. package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts.map +1 -1
  1674. package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts.map +1 -1
  1675. package/build-types/slot-fill/context.d.ts +0 -3
  1676. package/build-types/slot-fill/context.d.ts.map +1 -1
  1677. package/build-types/slot-fill/fill.d.ts.map +1 -1
  1678. package/build-types/slot-fill/index.d.ts +0 -3
  1679. package/build-types/slot-fill/index.d.ts.map +1 -1
  1680. package/build-types/slot-fill/provider.d.ts.map +1 -1
  1681. package/build-types/slot-fill/slot.d.ts.map +1 -1
  1682. package/build-types/slot-fill/stories/index.story.d.ts.map +1 -1
  1683. package/build-types/slot-fill/types.d.ts +0 -6
  1684. package/build-types/slot-fill/types.d.ts.map +1 -1
  1685. package/build-types/snackbar/index.d.ts +1 -1
  1686. package/build-types/snackbar/index.d.ts.map +1 -1
  1687. package/build-types/snackbar/list.d.ts.map +1 -1
  1688. package/build-types/snackbar/stories/index.story.d.ts +0 -3
  1689. package/build-types/snackbar/stories/index.story.d.ts.map +1 -1
  1690. package/build-types/snackbar/stories/list.story.d.ts +0 -6
  1691. package/build-types/snackbar/stories/list.story.d.ts.map +1 -1
  1692. package/build-types/snackbar/types.d.ts +0 -6
  1693. package/build-types/snackbar/types.d.ts.map +1 -1
  1694. package/build-types/spacer/component.d.ts.map +1 -1
  1695. package/build-types/spacer/hook.d.ts +1 -1
  1696. package/build-types/spacer/hook.d.ts.map +1 -1
  1697. package/build-types/spacer/stories/index.story.d.ts.map +1 -1
  1698. package/build-types/spacer/types.d.ts +0 -6
  1699. package/build-types/spacer/types.d.ts.map +1 -1
  1700. package/build-types/spinner/index.d.ts.map +1 -1
  1701. package/build-types/spinner/stories/index.story.d.ts +0 -6
  1702. package/build-types/spinner/stories/index.story.d.ts.map +1 -1
  1703. package/build-types/style-provider/types.d.ts +0 -3
  1704. package/build-types/style-provider/types.d.ts.map +1 -1
  1705. package/build-types/surface/component.d.ts +6 -0
  1706. package/build-types/surface/component.d.ts.map +1 -1
  1707. package/build-types/surface/hook.d.ts +1 -1
  1708. package/build-types/surface/hook.d.ts.map +1 -1
  1709. package/build-types/surface/stories/index.story.d.ts +0 -6
  1710. package/build-types/surface/stories/index.story.d.ts.map +1 -1
  1711. package/build-types/tab-panel/index.d.ts.map +1 -1
  1712. package/build-types/tab-panel/types.d.ts +0 -6
  1713. package/build-types/tab-panel/types.d.ts.map +1 -1
  1714. package/build-types/tabs/context.d.ts +0 -3
  1715. package/build-types/tabs/context.d.ts.map +1 -1
  1716. package/build-types/tabs/index.d.ts +0 -3
  1717. package/build-types/tabs/index.d.ts.map +1 -1
  1718. package/build-types/tabs/styles.d.ts.map +1 -1
  1719. package/build-types/tabs/tab.d.ts +0 -6
  1720. package/build-types/tabs/tab.d.ts.map +1 -1
  1721. package/build-types/tabs/tablist.d.ts +0 -3
  1722. package/build-types/tabs/tablist.d.ts.map +1 -1
  1723. package/build-types/tabs/tabpanel.d.ts +0 -3
  1724. package/build-types/tabs/tabpanel.d.ts.map +1 -1
  1725. package/build-types/tabs/types.d.ts +0 -3
  1726. package/build-types/tabs/types.d.ts.map +1 -1
  1727. package/build-types/tabs/use-track-overflow.d.ts.map +1 -1
  1728. package/build-types/text/component.d.ts.map +1 -1
  1729. package/build-types/text/get-line-height.d.ts +0 -6
  1730. package/build-types/text/get-line-height.d.ts.map +1 -1
  1731. package/build-types/text/hook.d.ts +1 -4
  1732. package/build-types/text/hook.d.ts.map +1 -1
  1733. package/build-types/text/stories/index.story.d.ts +3 -9
  1734. package/build-types/text/stories/index.story.d.ts.map +1 -1
  1735. package/build-types/text/styles.d.ts.map +1 -1
  1736. package/build-types/text/types.d.ts +0 -6
  1737. package/build-types/text/types.d.ts.map +1 -1
  1738. package/build-types/text/utils.d.ts.map +1 -1
  1739. package/build-types/text-control/index.d.ts.map +1 -1
  1740. package/build-types/text-control/stories/index.story.d.ts +0 -6
  1741. package/build-types/text-control/stories/index.story.d.ts.map +1 -1
  1742. package/build-types/text-control/types.d.ts +0 -3
  1743. package/build-types/text-control/types.d.ts.map +1 -1
  1744. package/build-types/text-highlight/index.d.ts.map +1 -1
  1745. package/build-types/text-highlight/stories/index.story.d.ts +0 -6
  1746. package/build-types/text-highlight/stories/index.story.d.ts.map +1 -1
  1747. package/build-types/textarea-control/index.d.ts.map +1 -1
  1748. package/build-types/textarea-control/stories/index.story.d.ts +0 -6
  1749. package/build-types/textarea-control/stories/index.story.d.ts.map +1 -1
  1750. package/build-types/textarea-control/styles/textarea-control-styles.d.ts.map +1 -1
  1751. package/build-types/textarea-control/types.d.ts +0 -6
  1752. package/build-types/textarea-control/types.d.ts.map +1 -1
  1753. package/build-types/tip/index.d.ts +0 -3
  1754. package/build-types/tip/index.d.ts.map +1 -1
  1755. package/build-types/tip/stories/index.story.d.ts +0 -6
  1756. package/build-types/tip/stories/index.story.d.ts.map +1 -1
  1757. package/build-types/tip/types.d.ts +0 -3
  1758. package/build-types/tip/types.d.ts.map +1 -1
  1759. package/build-types/toggle-control/index.d.ts.map +1 -1
  1760. package/build-types/toggle-control/stories/index.story.d.ts +9 -17
  1761. package/build-types/toggle-control/stories/index.story.d.ts.map +1 -1
  1762. package/build-types/toggle-control/types.d.ts +0 -6
  1763. package/build-types/toggle-control/types.d.ts.map +1 -1
  1764. package/build-types/toggle-group-control/context.d.ts +0 -3
  1765. package/build-types/toggle-group-control/context.d.ts.map +1 -1
  1766. package/build-types/toggle-group-control/stories/index.story.d.ts +0 -6
  1767. package/build-types/toggle-group-control/stories/index.story.d.ts.map +1 -1
  1768. package/build-types/toggle-group-control/toggle-group-control/as-button-group.d.ts.map +1 -1
  1769. package/build-types/toggle-group-control/toggle-group-control/as-radio-group.d.ts.map +1 -1
  1770. package/build-types/toggle-group-control/toggle-group-control/component.d.ts +18 -12
  1771. package/build-types/toggle-group-control/toggle-group-control/component.d.ts.map +1 -1
  1772. package/build-types/toggle-group-control/toggle-group-control/utils.d.ts +0 -3
  1773. package/build-types/toggle-group-control/toggle-group-control/utils.d.ts.map +1 -1
  1774. package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts.map +1 -1
  1775. package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts +5 -4
  1776. package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts.map +1 -1
  1777. package/build-types/toggle-group-control/toggle-group-control-option-icon/component.d.ts.map +1 -1
  1778. package/build-types/toggle-group-control/types.d.ts +4 -6
  1779. package/build-types/toggle-group-control/types.d.ts.map +1 -1
  1780. package/build-types/toolbar/stories/index.story.d.ts +0 -6
  1781. package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
  1782. package/build-types/toolbar/toolbar/index.d.ts.map +1 -1
  1783. package/build-types/toolbar/toolbar/toolbar-container.d.ts.map +1 -1
  1784. package/build-types/toolbar/toolbar/types.d.ts +0 -3
  1785. package/build-types/toolbar/toolbar/types.d.ts.map +1 -1
  1786. package/build-types/toolbar/toolbar-button/index.d.ts.map +1 -1
  1787. package/build-types/toolbar/toolbar-button/toolbar-button-container.d.ts +0 -3
  1788. package/build-types/toolbar/toolbar-button/toolbar-button-container.d.ts.map +1 -1
  1789. package/build-types/toolbar/toolbar-button/types.d.ts +0 -3
  1790. package/build-types/toolbar/toolbar-button/types.d.ts.map +1 -1
  1791. package/build-types/toolbar/toolbar-context/index.d.ts +0 -3
  1792. package/build-types/toolbar/toolbar-context/index.d.ts.map +1 -1
  1793. package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts.map +1 -1
  1794. package/build-types/toolbar/toolbar-group/index.d.ts.map +1 -1
  1795. package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts.map +1 -1
  1796. package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts +0 -3
  1797. package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts.map +1 -1
  1798. package/build-types/toolbar/toolbar-group/types.d.ts +0 -9
  1799. package/build-types/toolbar/toolbar-group/types.d.ts.map +1 -1
  1800. package/build-types/toolbar/toolbar-item/index.d.ts.map +1 -1
  1801. package/build-types/toolbar/toolbar-item/types.d.ts +0 -3
  1802. package/build-types/toolbar/toolbar-item/types.d.ts.map +1 -1
  1803. package/build-types/tools-panel/context.d.ts +0 -3
  1804. package/build-types/tools-panel/context.d.ts.map +1 -1
  1805. package/build-types/tools-panel/stories/index.story.d.ts +0 -6
  1806. package/build-types/tools-panel/stories/index.story.d.ts.map +1 -1
  1807. package/build-types/tools-panel/tools-panel/component.d.ts.map +1 -1
  1808. package/build-types/tools-panel/tools-panel/hook.d.ts +1 -1
  1809. package/build-types/tools-panel/tools-panel/hook.d.ts.map +1 -1
  1810. package/build-types/tools-panel/tools-panel-header/component.d.ts.map +1 -1
  1811. package/build-types/tools-panel/tools-panel-header/hook.d.ts +1 -1
  1812. package/build-types/tools-panel/tools-panel-header/hook.d.ts.map +1 -1
  1813. package/build-types/tools-panel/tools-panel-item/component.d.ts.map +1 -1
  1814. package/build-types/tools-panel/tools-panel-item/hook.d.ts +1 -1
  1815. package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
  1816. package/build-types/tools-panel/types.d.ts +0 -6
  1817. package/build-types/tools-panel/types.d.ts.map +1 -1
  1818. package/build-types/tooltip/stories/index.story.d.ts +0 -6
  1819. package/build-types/tooltip/stories/index.story.d.ts.map +1 -1
  1820. package/build-types/tooltip/test/utils/index.d.ts.map +1 -1
  1821. package/build-types/tooltip/types.d.ts +0 -6
  1822. package/build-types/tooltip/types.d.ts.map +1 -1
  1823. package/build-types/tree-grid/cell.d.ts.map +1 -1
  1824. package/build-types/tree-grid/index.d.ts.map +1 -1
  1825. package/build-types/tree-grid/item.d.ts.map +1 -1
  1826. package/build-types/tree-grid/roving-tab-index-context.d.ts.map +1 -1
  1827. package/build-types/tree-grid/roving-tab-index-item.d.ts.map +1 -1
  1828. package/build-types/tree-grid/roving-tab-index.d.ts.map +1 -1
  1829. package/build-types/tree-grid/row.d.ts.map +1 -1
  1830. package/build-types/tree-grid/stories/index.story.d.ts +0 -6
  1831. package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
  1832. package/build-types/tree-select/index.d.ts.map +1 -1
  1833. package/build-types/tree-select/stories/index.story.d.ts +0 -6
  1834. package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
  1835. package/build-types/tree-select/types.d.ts +0 -3
  1836. package/build-types/tree-select/types.d.ts.map +1 -1
  1837. package/build-types/truncate/component.d.ts.map +1 -1
  1838. package/build-types/truncate/hook.d.ts +1 -4
  1839. package/build-types/truncate/hook.d.ts.map +1 -1
  1840. package/build-types/truncate/stories/index.story.d.ts +0 -6
  1841. package/build-types/truncate/stories/index.story.d.ts.map +1 -1
  1842. package/build-types/truncate/types.d.ts +0 -3
  1843. package/build-types/truncate/types.d.ts.map +1 -1
  1844. package/build-types/truncate/utils.d.ts.map +1 -1
  1845. package/build-types/unit-control/index.d.ts.map +1 -1
  1846. package/build-types/unit-control/stories/index.story.d.ts +0 -6
  1847. package/build-types/unit-control/stories/index.story.d.ts.map +1 -1
  1848. package/build-types/unit-control/styles/unit-control-styles.d.ts.map +1 -1
  1849. package/build-types/unit-control/types.d.ts +0 -6
  1850. package/build-types/unit-control/types.d.ts.map +1 -1
  1851. package/build-types/unit-control/unit-select-control.d.ts.map +1 -1
  1852. package/build-types/unit-control/utils.d.ts +0 -3
  1853. package/build-types/unit-control/utils.d.ts.map +1 -1
  1854. package/build-types/utils/base-label.d.ts.map +1 -1
  1855. package/build-types/utils/box-sizing.d.ts.map +1 -1
  1856. package/build-types/utils/breakpoint.d.ts +0 -3
  1857. package/build-types/utils/breakpoint.d.ts.map +1 -1
  1858. package/build-types/utils/colors.d.ts.map +1 -1
  1859. package/build-types/utils/config-values.d.ts +0 -1
  1860. package/build-types/utils/element-rect.d.ts.map +1 -1
  1861. package/build-types/utils/font-size.d.ts +0 -3
  1862. package/build-types/utils/font-size.d.ts.map +1 -1
  1863. package/build-types/utils/font.d.ts +0 -3
  1864. package/build-types/utils/font.d.ts.map +1 -1
  1865. package/build-types/utils/get-valid-children.d.ts +0 -3
  1866. package/build-types/utils/get-valid-children.d.ts.map +1 -1
  1867. package/build-types/utils/hooks/use-animated-offset-rect.d.ts +0 -3
  1868. package/build-types/utils/hooks/use-animated-offset-rect.d.ts.map +1 -1
  1869. package/build-types/utils/hooks/use-controlled-state.d.ts.map +1 -1
  1870. package/build-types/utils/hooks/use-controlled-value.d.ts.map +1 -1
  1871. package/build-types/utils/hooks/use-cx.d.ts.map +1 -1
  1872. package/build-types/utils/hooks/use-on-value-update.d.ts.map +1 -1
  1873. package/build-types/utils/hooks/use-update-effect.d.ts.map +1 -1
  1874. package/build-types/utils/polymorphic-element.d.ts +0 -3
  1875. package/build-types/utils/polymorphic-element.d.ts.map +1 -1
  1876. package/build-types/utils/rtl.d.ts.map +1 -1
  1877. package/build-types/utils/strings.d.ts +0 -12
  1878. package/build-types/utils/strings.d.ts.map +1 -1
  1879. package/build-types/utils/use-responsive-value.d.ts.map +1 -1
  1880. package/build-types/v-stack/component.d.ts.map +1 -1
  1881. package/build-types/v-stack/hook.d.ts +1 -4
  1882. package/build-types/v-stack/hook.d.ts.map +1 -1
  1883. package/build-types/v-stack/stories/e2e/index.story.d.ts +0 -3
  1884. package/build-types/v-stack/stories/e2e/index.story.d.ts.map +1 -1
  1885. package/build-types/v-stack/stories/index.story.d.ts +1 -4
  1886. package/build-types/v-stack/stories/index.story.d.ts.map +1 -1
  1887. package/build-types/v-stack/types.d.ts +0 -6
  1888. package/build-types/v-stack/types.d.ts.map +1 -1
  1889. package/build-types/validated-form-controls/components/combobox-control.d.ts.map +1 -1
  1890. package/build-types/validated-form-controls/components/content-editable-control.d.ts.map +1 -1
  1891. package/build-types/validated-form-controls/components/custom-select-control.d.ts.map +1 -1
  1892. package/build-types/validated-form-controls/components/form-token-field.d.ts.map +1 -1
  1893. package/build-types/validated-form-controls/components/index.d.ts +0 -5
  1894. package/build-types/validated-form-controls/components/index.d.ts.map +1 -1
  1895. package/build-types/validated-form-controls/components/input-control.d.ts.map +1 -1
  1896. package/build-types/validated-form-controls/components/range-control.d.ts.map +1 -1
  1897. package/build-types/validated-form-controls/components/stories/combobox-control.story.d.ts +0 -6
  1898. package/build-types/validated-form-controls/components/stories/combobox-control.story.d.ts.map +1 -1
  1899. package/build-types/validated-form-controls/components/stories/content-editable-control.story.d.ts +0 -3
  1900. package/build-types/validated-form-controls/components/stories/content-editable-control.story.d.ts.map +1 -1
  1901. package/build-types/validated-form-controls/components/stories/custom-select-control.story.d.ts +0 -6
  1902. package/build-types/validated-form-controls/components/stories/custom-select-control.story.d.ts.map +1 -1
  1903. package/build-types/validated-form-controls/components/stories/form-token-field.story.d.ts +0 -6
  1904. package/build-types/validated-form-controls/components/stories/form-token-field.story.d.ts.map +1 -1
  1905. package/build-types/validated-form-controls/components/stories/input-control.story.d.ts +0 -6
  1906. package/build-types/validated-form-controls/components/stories/input-control.story.d.ts.map +1 -1
  1907. package/build-types/validated-form-controls/components/stories/overview.story.d.ts +0 -6
  1908. package/build-types/validated-form-controls/components/stories/overview.story.d.ts.map +1 -1
  1909. package/build-types/validated-form-controls/components/stories/range-control.story.d.ts +0 -3
  1910. package/build-types/validated-form-controls/components/stories/range-control.story.d.ts.map +1 -1
  1911. package/build-types/validated-form-controls/components/stories/story-utils.d.ts +0 -6
  1912. package/build-types/validated-form-controls/components/stories/story-utils.d.ts.map +1 -1
  1913. package/build-types/validated-form-controls/components/stories/textarea-control.story.d.ts +0 -3
  1914. package/build-types/validated-form-controls/components/stories/textarea-control.story.d.ts.map +1 -1
  1915. package/build-types/validated-form-controls/components/stories/toggle-control.story.d.ts +0 -3
  1916. package/build-types/validated-form-controls/components/stories/toggle-control.story.d.ts.map +1 -1
  1917. package/build-types/validated-form-controls/components/stories/toggle-group-control.story.d.ts +0 -3
  1918. package/build-types/validated-form-controls/components/stories/toggle-group-control.story.d.ts.map +1 -1
  1919. package/build-types/validated-form-controls/components/textarea-control.d.ts.map +1 -1
  1920. package/build-types/validated-form-controls/components/toggle-control.d.ts.map +1 -1
  1921. package/build-types/validated-form-controls/components/toggle-group-control.d.ts +2 -1
  1922. package/build-types/validated-form-controls/components/toggle-group-control.d.ts.map +1 -1
  1923. package/build-types/validated-form-controls/control-with-error.d.ts +0 -3
  1924. package/build-types/validated-form-controls/control-with-error.d.ts.map +1 -1
  1925. package/build-types/validated-form-controls/validity-indicator.d.ts.map +1 -1
  1926. package/build-types/view/component.d.ts +125 -125
  1927. package/build-types/view/component.d.ts.map +1 -1
  1928. package/build-types/view/stories/index.story.d.ts +0 -6
  1929. package/build-types/view/stories/index.story.d.ts.map +1 -1
  1930. package/build-types/visually-hidden/component.d.ts.map +1 -1
  1931. package/build-types/visually-hidden/styles.d.ts +0 -3
  1932. package/build-types/visually-hidden/styles.d.ts.map +1 -1
  1933. package/build-types/visually-hidden/types.d.ts +0 -3
  1934. package/build-types/visually-hidden/types.d.ts.map +1 -1
  1935. package/build-types/z-stack/component.d.ts.map +1 -1
  1936. package/build-types/z-stack/stories/index.story.d.ts.map +1 -1
  1937. package/build-types/z-stack/styles.d.ts.map +1 -1
  1938. package/build-types/z-stack/types.d.ts +0 -3
  1939. package/build-types/z-stack/types.d.ts.map +1 -1
  1940. package/package.json +27 -27
  1941. package/src/alignment-matrix-control/cell.tsx +0 -11
  1942. package/src/alignment-matrix-control/icon.tsx +0 -11
  1943. package/src/alignment-matrix-control/index.tsx +0 -11
  1944. package/src/alignment-matrix-control/stories/index.story.tsx +0 -11
  1945. package/src/alignment-matrix-control/test/index.tsx +0 -7
  1946. package/src/alignment-matrix-control/utils.tsx +0 -7
  1947. package/src/angle-picker-control/README.md +1 -1
  1948. package/src/angle-picker-control/angle-circle.tsx +0 -12
  1949. package/src/angle-picker-control/index.tsx +0 -12
  1950. package/src/angle-picker-control/stories/index.story.tsx +0 -11
  1951. package/src/animate/README.md +4 -0
  1952. package/src/animate/index.tsx +12 -7
  1953. package/src/animate/stories/index.story.tsx +2 -9
  1954. package/src/autocomplete/autocompleter-ui.tsx +0 -11
  1955. package/src/autocomplete/get-autocomplete-match.ts +0 -7
  1956. package/src/autocomplete/get-default-use-items.tsx +0 -11
  1957. package/src/autocomplete/index.tsx +1 -9
  1958. package/src/autocomplete/test/get-autocomplete-match.ts +0 -3
  1959. package/src/autocomplete/test/index.tsx +0 -11
  1960. package/src/autocomplete/types.ts +0 -11
  1961. package/src/badge/index.tsx +0 -11
  1962. package/src/badge/stories/e2e/index.story.tsx +0 -1
  1963. package/src/badge/stories/index.story.tsx +0 -7
  1964. package/src/badge/test/index.tsx +0 -7
  1965. package/src/base-control/README.md +3 -3
  1966. package/src/base-control/hooks.ts +0 -7
  1967. package/src/base-control/index.tsx +0 -11
  1968. package/src/base-control/stories/index.story.tsx +0 -7
  1969. package/src/base-control/styles/base-control-styles.ts +0 -7
  1970. package/src/base-control/test/index.tsx +0 -7
  1971. package/src/base-control/types.ts +0 -3
  1972. package/src/border-box-control/border-box-control/component.tsx +0 -8
  1973. package/src/border-box-control/border-box-control/hook.ts +0 -8
  1974. package/src/border-box-control/border-box-control-linked-button/component.tsx +0 -8
  1975. package/src/border-box-control/border-box-control-linked-button/hook.ts +0 -8
  1976. package/src/border-box-control/border-box-control-split-controls/component.tsx +0 -8
  1977. package/src/border-box-control/border-box-control-split-controls/hook.ts +0 -8
  1978. package/src/border-box-control/border-box-control-visualizer/component.tsx +0 -4
  1979. package/src/border-box-control/border-box-control-visualizer/hook.ts +0 -8
  1980. package/src/border-box-control/stories/index.story.tsx +0 -11
  1981. package/src/border-box-control/styles.ts +0 -8
  1982. package/src/border-box-control/test/index.tsx +0 -7
  1983. package/src/border-box-control/test/utils.ts +10 -23
  1984. package/src/border-box-control/types.ts +0 -3
  1985. package/src/border-box-control/utils.ts +0 -7
  1986. package/src/border-control/border-control/component.tsx +0 -8
  1987. package/src/border-control/border-control/hook.ts +0 -7
  1988. package/src/border-control/border-control-dropdown/component.tsx +0 -12
  1989. package/src/border-control/border-control-dropdown/hook.ts +0 -8
  1990. package/src/border-control/border-control-style-picker/component.tsx +0 -7
  1991. package/src/border-control/stories/index.story.tsx +0 -11
  1992. package/src/border-control/styles.ts +0 -8
  1993. package/src/border-control/test/index.js +0 -7
  1994. package/src/border-control/types.ts +0 -7
  1995. package/src/box-control/box-input-control.tsx +0 -7
  1996. package/src/box-control/icon.tsx +0 -3
  1997. package/src/box-control/index.tsx +0 -7
  1998. package/src/box-control/linked-button.tsx +0 -7
  1999. package/src/box-control/stories/index.story.tsx +0 -11
  2000. package/src/box-control/styles/box-control-icon-styles.ts +0 -3
  2001. package/src/box-control/styles/box-control-styles.ts +0 -6
  2002. package/src/box-control/test/index.tsx +0 -11
  2003. package/src/box-control/types.ts +0 -3
  2004. package/src/box-control/utils.ts +0 -7
  2005. package/src/button/deprecated.tsx +0 -11
  2006. package/src/button/index.tsx +0 -11
  2007. package/src/button/stories/e2e/index.story.tsx +16 -12
  2008. package/src/button/stories/index.story.tsx +0 -11
  2009. package/src/button/style.scss +4 -0
  2010. package/src/button/test/index.tsx +3 -14
  2011. package/src/button/types.ts +0 -7
  2012. package/src/button-group/README.md +1 -3
  2013. package/src/button-group/index.tsx +0 -11
  2014. package/src/button-group/stories/index.story.tsx +0 -7
  2015. package/src/button-group/types.ts +0 -3
  2016. package/src/card/card/component.tsx +0 -11
  2017. package/src/card/card/hook.ts +0 -7
  2018. package/src/card/card-body/component.tsx +0 -7
  2019. package/src/card/card-body/hook.ts +0 -7
  2020. package/src/card/card-divider/component.tsx +0 -7
  2021. package/src/card/card-divider/hook.ts +0 -7
  2022. package/src/card/card-footer/component.tsx +0 -7
  2023. package/src/card/card-footer/hook.ts +0 -7
  2024. package/src/card/card-header/component.tsx +0 -7
  2025. package/src/card/card-header/hook.ts +0 -7
  2026. package/src/card/card-media/component.tsx +0 -7
  2027. package/src/card/card-media/hook.ts +0 -7
  2028. package/src/card/get-padding-by-size.ts +0 -7
  2029. package/src/card/styles.ts +0 -7
  2030. package/src/card/test/__snapshots__/index.tsx.snap +31 -31
  2031. package/src/card/test/index.tsx +0 -7
  2032. package/src/card/types.ts +0 -3
  2033. package/src/checkbox-control/index.tsx +0 -11
  2034. package/src/checkbox-control/stories/index.story.tsx +127 -99
  2035. package/src/checkbox-control/test/index.tsx +0 -11
  2036. package/src/checkbox-control/types.ts +0 -7
  2037. package/src/circular-option-picker/README.md +1 -3
  2038. package/src/circular-option-picker/circular-option-picker-actions.tsx +0 -7
  2039. package/src/circular-option-picker/circular-option-picker-context.tsx +0 -7
  2040. package/src/circular-option-picker/circular-option-picker-option-group.tsx +0 -7
  2041. package/src/circular-option-picker/circular-option-picker-option.tsx +0 -11
  2042. package/src/circular-option-picker/circular-option-picker.tsx +0 -11
  2043. package/src/circular-option-picker/index.tsx +0 -3
  2044. package/src/circular-option-picker/stories/index.story.tsx +0 -9
  2045. package/src/circular-option-picker/test/index.tsx +0 -7
  2046. package/src/circular-option-picker/types.ts +0 -11
  2047. package/src/circular-option-picker/utils.tsx +0 -3
  2048. package/src/clipboard-button/README.md +1 -3
  2049. package/src/clipboard-button/index.tsx +0 -11
  2050. package/src/clipboard-button/types.ts +0 -3
  2051. package/src/color-indicator/index.tsx +0 -11
  2052. package/src/color-indicator/stories/index.story.tsx +0 -7
  2053. package/src/color-indicator/test/index.tsx +0 -7
  2054. package/src/color-indicator/types.ts +0 -3
  2055. package/src/color-palette/index.tsx +0 -11
  2056. package/src/color-palette/stories/index.story.tsx +0 -11
  2057. package/src/color-palette/styles.ts +0 -7
  2058. package/src/color-palette/test/index.tsx +0 -9
  2059. package/src/color-palette/test/utils.ts +0 -3
  2060. package/src/color-palette/types.ts +0 -7
  2061. package/src/color-palette/utils.ts +0 -11
  2062. package/src/color-picker/color-copy-button.tsx +0 -8
  2063. package/src/color-picker/color-input.tsx +0 -3
  2064. package/src/color-picker/component.tsx +0 -12
  2065. package/src/color-picker/hex-input.tsx +0 -11
  2066. package/src/color-picker/hsl-input.tsx +0 -7
  2067. package/src/color-picker/index.ts +0 -3
  2068. package/src/color-picker/input-with-slider.tsx +1 -4
  2069. package/src/color-picker/legacy-adapter.tsx +0 -3
  2070. package/src/color-picker/picker.tsx +0 -7
  2071. package/src/color-picker/rgb-input.tsx +0 -7
  2072. package/src/color-picker/stories/index.story.tsx +0 -7
  2073. package/src/color-picker/styles.ts +0 -7
  2074. package/src/color-picker/test/index.tsx +0 -11
  2075. package/src/color-picker/types.ts +0 -6
  2076. package/src/color-picker/use-deprecated-props.ts +0 -11
  2077. package/src/combobox-control/index.tsx +1 -12
  2078. package/src/combobox-control/stories/index.story.tsx +0 -11
  2079. package/src/combobox-control/test/index.tsx +0 -11
  2080. package/src/combobox-control/types.ts +0 -3
  2081. package/src/composite/context.tsx +0 -7
  2082. package/src/composite/group-label.tsx +0 -11
  2083. package/src/composite/group.tsx +0 -11
  2084. package/src/composite/hover.tsx +0 -11
  2085. package/src/composite/index.tsx +0 -12
  2086. package/src/composite/item.tsx +0 -11
  2087. package/src/composite/legacy/index.tsx +0 -12
  2088. package/src/composite/legacy/stories/index.story.tsx +0 -7
  2089. package/src/composite/legacy/stories/utils.tsx +0 -7
  2090. package/src/composite/legacy/test/index.tsx +0 -7
  2091. package/src/composite/row.tsx +0 -11
  2092. package/src/composite/stories/index.story.tsx +0 -11
  2093. package/src/composite/test/index.tsx +0 -11
  2094. package/src/composite/typeahead.tsx +0 -11
  2095. package/src/composite/types.ts +0 -3
  2096. package/src/confirm-dialog/README.md +71 -66
  2097. package/src/confirm-dialog/component.tsx +26 -24
  2098. package/src/confirm-dialog/docs-manifest.json +5 -0
  2099. package/src/confirm-dialog/index.tsx +0 -3
  2100. package/src/confirm-dialog/stories/index.story.tsx +0 -11
  2101. package/src/confirm-dialog/test/index.tsx +0 -7
  2102. package/src/confirm-dialog/types.ts +4 -7
  2103. package/src/content-editable-control/index.tsx +0 -11
  2104. package/src/content-editable-control/stories/index.story.tsx +0 -7
  2105. package/src/content-editable-control/test/index.tsx +0 -7
  2106. package/src/content-editable-control/types.ts +0 -3
  2107. package/src/context/context-connect.ts +4 -15
  2108. package/src/context/context-system-provider.js +0 -11
  2109. package/src/context/get-styled-class-name-from-key.ts +0 -3
  2110. package/src/context/stories/ComponentsProvider.stories.jsx +0 -7
  2111. package/src/context/test/__snapshots__/context-system-provider.js.snap +3 -3
  2112. package/src/context/test/context-connect.tsx +0 -7
  2113. package/src/context/test/context-system-provider.js +0 -11
  2114. package/src/context/test/wordpress-component.tsx +0 -11
  2115. package/src/context/use-context-system.js +4 -11
  2116. package/src/context/utils.js +0 -3
  2117. package/src/context/wordpress-component.ts +40 -13
  2118. package/src/custom-gradient-picker/constants.ts +0 -3
  2119. package/src/custom-gradient-picker/gradient-bar/control-points.tsx +0 -12
  2120. package/src/custom-gradient-picker/gradient-bar/index.tsx +1 -12
  2121. package/src/custom-gradient-picker/gradient-bar/test/utils.ts +0 -3
  2122. package/src/custom-gradient-picker/gradient-bar/utils.ts +0 -3
  2123. package/src/custom-gradient-picker/index.tsx +1 -12
  2124. package/src/custom-gradient-picker/serializer.ts +0 -3
  2125. package/src/custom-gradient-picker/stories/index.story.tsx +0 -10
  2126. package/src/custom-gradient-picker/styles/custom-gradient-picker-styles.tsx +0 -6
  2127. package/src/custom-gradient-picker/test/index.tsx +0 -11
  2128. package/src/custom-gradient-picker/test/serializer.ts +0 -3
  2129. package/src/custom-gradient-picker/types.ts +0 -3
  2130. package/src/custom-gradient-picker/utils.ts +0 -7
  2131. package/src/custom-select-control/index.tsx +0 -11
  2132. package/src/custom-select-control/stories/index.story.tsx +0 -11
  2133. package/src/custom-select-control/test/index.tsx +0 -11
  2134. package/src/custom-select-control/types.ts +0 -3
  2135. package/src/custom-select-control-v2/custom-select.tsx +0 -11
  2136. package/src/custom-select-control-v2/index.tsx +0 -6
  2137. package/src/custom-select-control-v2/item.tsx +0 -6
  2138. package/src/custom-select-control-v2/stories/index.story.tsx +0 -11
  2139. package/src/custom-select-control-v2/styles.ts +0 -6
  2140. package/src/custom-select-control-v2/test/index.tsx +0 -11
  2141. package/src/custom-select-control-v2/types.ts +0 -3
  2142. package/src/dashicon/index.tsx +0 -4
  2143. package/src/date-time/date-picker/index.tsx +0 -11
  2144. package/src/date-time/date-picker/styles.ts +0 -7
  2145. package/src/date-time/date-picker/test/index.tsx +0 -7
  2146. package/src/date-time/date-picker/test/use-lilius.ts +0 -7
  2147. package/src/date-time/date-picker/use-lilius/index.ts +0 -8
  2148. package/src/date-time/date-time/index.tsx +0 -11
  2149. package/src/date-time/date-time/styles.ts +0 -7
  2150. package/src/date-time/date-time/test/index.tsx +0 -11
  2151. package/src/date-time/index.ts +0 -3
  2152. package/src/date-time/stories/date-time.story.tsx +0 -11
  2153. package/src/date-time/stories/date.story.tsx +0 -11
  2154. package/src/date-time/stories/time.story.tsx +0 -11
  2155. package/src/date-time/time-picker/styles.ts +0 -7
  2156. package/src/date-time/time-picker/test/index.tsx +0 -11
  2157. package/src/date-time/time-picker/time-input/index.tsx +0 -11
  2158. package/src/date-time/time-picker/time-input/test/index.tsx +0 -7
  2159. package/src/date-time/time-picker/timezone.tsx +0 -7
  2160. package/src/date-time/types.ts +0 -3
  2161. package/src/date-time/utils.ts +0 -11
  2162. package/src/disabled/index.tsx +1 -1
  2163. package/src/disabled/stories/index.story.tsx +0 -11
  2164. package/src/disabled/test/index.tsx +0 -7
  2165. package/src/disclosure/index.tsx +0 -11
  2166. package/src/divider/README.md +1 -3
  2167. package/src/divider/component.tsx +0 -7
  2168. package/src/divider/stories/index.story.tsx +0 -7
  2169. package/src/divider/test/index.tsx +0 -7
  2170. package/src/divider/types.ts +0 -7
  2171. package/src/draggable/index.tsx +1 -12
  2172. package/src/draggable/stories/index.story.tsx +0 -11
  2173. package/src/draggable/types.ts +0 -3
  2174. package/src/drop-zone/index.tsx +0 -11
  2175. package/src/drop-zone/provider.ts +0 -3
  2176. package/src/drop-zone/stories/index.story.tsx +0 -11
  2177. package/src/dropdown/dropdown-content-wrapper.tsx +0 -7
  2178. package/src/dropdown/index.tsx +0 -11
  2179. package/src/dropdown/stories/index.story.tsx +0 -7
  2180. package/src/dropdown/styles.ts +0 -7
  2181. package/src/dropdown/test/index.tsx +0 -7
  2182. package/src/dropdown/types.ts +4 -0
  2183. package/src/dropdown-menu/index.tsx +0 -11
  2184. package/src/dropdown-menu/stories/index.story.tsx +0 -11
  2185. package/src/dropdown-menu/test/index.tsx +0 -11
  2186. package/src/dropdown-menu/types.ts +0 -6
  2187. package/src/duotone-picker/color-list-picker/index.tsx +1 -8
  2188. package/src/duotone-picker/color-list-picker/types.ts +0 -3
  2189. package/src/duotone-picker/custom-duotone-bar.tsx +0 -4
  2190. package/src/duotone-picker/duotone-picker.tsx +0 -12
  2191. package/src/duotone-picker/duotone-swatch.tsx +0 -7
  2192. package/src/duotone-picker/stories/duotone-picker.story.tsx +0 -11
  2193. package/src/duotone-picker/stories/duotone-swatch.story.tsx +0 -7
  2194. package/src/duotone-picker/utils.ts +0 -7
  2195. package/src/elevation/README.md +3 -6
  2196. package/src/elevation/component.tsx +2 -10
  2197. package/src/elevation/hook.ts +0 -11
  2198. package/src/elevation/stories/index.story.tsx +0 -7
  2199. package/src/elevation/styles.ts +0 -3
  2200. package/src/elevation/test/index.tsx +0 -7
  2201. package/src/elevation/types.ts +0 -3
  2202. package/src/external-link/index.tsx +0 -11
  2203. package/src/external-link/stories/index.story.tsx +0 -7
  2204. package/src/external-link/test/index.tsx +0 -7
  2205. package/src/external-link/types.ts +0 -3
  2206. package/src/flex/context.ts +0 -3
  2207. package/src/flex/flex/component.tsx +0 -7
  2208. package/src/flex/flex/hook.ts +0 -1
  2209. package/src/flex/flex-block/component.tsx +0 -7
  2210. package/src/flex/flex-block/hook.ts +0 -3
  2211. package/src/flex/flex-item/component.tsx +0 -7
  2212. package/src/flex/flex-item/hook.ts +0 -1
  2213. package/src/flex/stories/index.story.tsx +0 -7
  2214. package/src/flex/test/index.tsx +0 -1
  2215. package/src/flex/types.ts +0 -7
  2216. package/src/focal-point-picker/controls.tsx +0 -7
  2217. package/src/focal-point-picker/focal-point.tsx +0 -7
  2218. package/src/focal-point-picker/grid.tsx +0 -3
  2219. package/src/focal-point-picker/index.tsx +0 -11
  2220. package/src/focal-point-picker/media.tsx +0 -7
  2221. package/src/focal-point-picker/stories/index.story.tsx +0 -10
  2222. package/src/focal-point-picker/styles/focal-point-picker-style.ts +0 -7
  2223. package/src/focal-point-picker/styles/focal-point-style.ts +0 -7
  2224. package/src/focal-point-picker/test/index.tsx +0 -7
  2225. package/src/focal-point-picker/test/media.tsx +0 -7
  2226. package/src/focal-point-picker/types.ts +0 -7
  2227. package/src/focusable-iframe/index.tsx +0 -6
  2228. package/src/focusable-iframe/types.ts +0 -3
  2229. package/src/font-size-picker/constants.ts +0 -3
  2230. package/src/font-size-picker/font-size-picker-select.tsx +0 -7
  2231. package/src/font-size-picker/font-size-picker-toggle-group.tsx +0 -7
  2232. package/src/font-size-picker/index.tsx +0 -11
  2233. package/src/font-size-picker/stories/e2e/index.story.tsx +0 -11
  2234. package/src/font-size-picker/stories/index.story.tsx +0 -11
  2235. package/src/font-size-picker/styles.ts +0 -7
  2236. package/src/font-size-picker/test/font-size-picker-select.tsx +0 -7
  2237. package/src/font-size-picker/test/font-size-picker-toggle-group.tsx +0 -7
  2238. package/src/font-size-picker/test/utils.ts +0 -3
  2239. package/src/font-size-picker/utils.ts +0 -3
  2240. package/src/form-file-upload/index.tsx +0 -7
  2241. package/src/form-file-upload/stories/index.story.tsx +0 -11
  2242. package/src/form-file-upload/types.ts +0 -7
  2243. package/src/form-toggle/index.tsx +0 -11
  2244. package/src/form-toggle/stories/index.story.tsx +0 -11
  2245. package/src/form-toggle/test/index.tsx +0 -11
  2246. package/src/form-toggle/types.ts +0 -3
  2247. package/src/form-token-field/index.tsx +1 -12
  2248. package/src/form-token-field/stories/index.story.tsx +0 -10
  2249. package/src/form-token-field/suggestions-list.tsx +0 -11
  2250. package/src/form-token-field/test/index.tsx +0 -12
  2251. package/src/form-token-field/token-input.tsx +0 -11
  2252. package/src/form-token-field/token.tsx +0 -11
  2253. package/src/form-token-field/types.ts +0 -3
  2254. package/src/gradient-picker/index.tsx +0 -7
  2255. package/src/gradient-picker/stories/index.story.tsx +0 -11
  2256. package/src/gradient-picker/test/index.tsx +0 -7
  2257. package/src/gradient-picker/types.ts +0 -3
  2258. package/src/grid/README.md +1 -3
  2259. package/src/grid/component.tsx +0 -7
  2260. package/src/grid/hook.ts +0 -11
  2261. package/src/grid/stories/index.story.tsx +0 -7
  2262. package/src/grid/test/grid.tsx +0 -7
  2263. package/src/grid/types.ts +0 -7
  2264. package/src/grid/utils.ts +0 -3
  2265. package/src/guide/icons.tsx +0 -3
  2266. package/src/guide/index.tsx +0 -11
  2267. package/src/guide/page-control.tsx +0 -7
  2268. package/src/guide/page.tsx +0 -7
  2269. package/src/guide/stories/index.story.tsx +0 -11
  2270. package/src/guide/test/index.tsx +0 -7
  2271. package/src/guide/types.ts +0 -7
  2272. package/src/h-stack/README.md +1 -3
  2273. package/src/h-stack/component.tsx +0 -3
  2274. package/src/h-stack/hook.tsx +0 -7
  2275. package/src/h-stack/stories/e2e/index.story.tsx +0 -7
  2276. package/src/h-stack/stories/index.story.tsx +0 -6
  2277. package/src/h-stack/test/index.tsx +0 -7
  2278. package/src/h-stack/types.ts +0 -7
  2279. package/src/h-stack/utils.ts +0 -6
  2280. package/src/heading/README.md +1 -3
  2281. package/src/heading/component.tsx +0 -7
  2282. package/src/heading/hook.ts +0 -3
  2283. package/src/heading/stories/index.story.tsx +0 -7
  2284. package/src/heading/test/index.tsx +0 -7
  2285. package/src/heading/types.ts +0 -3
  2286. package/src/higher-order/navigate-regions/index.tsx +0 -3
  2287. package/src/higher-order/with-constrained-tabbing/index.tsx +0 -3
  2288. package/src/higher-order/with-fallback-styles/index.tsx +0 -7
  2289. package/src/higher-order/with-fallback-styles/test/index.tsx +0 -7
  2290. package/src/higher-order/with-filters/index.tsx +0 -3
  2291. package/src/higher-order/with-filters/test/index.tsx +0 -11
  2292. package/src/higher-order/with-focus-outside/index.tsx +0 -3
  2293. package/src/higher-order/with-focus-outside/test/index.tsx +0 -11
  2294. package/src/higher-order/with-focus-return/index.tsx +0 -3
  2295. package/src/higher-order/with-focus-return/test/index.tsx +0 -11
  2296. package/src/higher-order/with-notices/index.tsx +0 -11
  2297. package/src/higher-order/with-notices/test/index.tsx +0 -11
  2298. package/src/higher-order/with-notices/types.ts +0 -3
  2299. package/src/higher-order/with-spoken-messages/index.tsx +0 -3
  2300. package/src/higher-order/with-spoken-messages/test/index.tsx +0 -7
  2301. package/src/icon/index.tsx +8 -13
  2302. package/src/icon/test/index.tsx +0 -11
  2303. package/src/input-control/README.md +1 -3
  2304. package/src/input-control/backdrop.tsx +0 -6
  2305. package/src/input-control/index.tsx +0 -11
  2306. package/src/input-control/input-base.tsx +0 -11
  2307. package/src/input-control/input-field.tsx +1 -11
  2308. package/src/input-control/input-prefix-wrapper.tsx +0 -7
  2309. package/src/input-control/input-suffix-wrapper.tsx +0 -7
  2310. package/src/input-control/label.tsx +0 -3
  2311. package/src/input-control/reducer/actions.ts +0 -7
  2312. package/src/input-control/reducer/reducer.ts +0 -11
  2313. package/src/input-control/reducer/state.ts +0 -7
  2314. package/src/input-control/stories/index.story.tsx +0 -10
  2315. package/src/input-control/styles/input-control-styles.tsx +0 -7
  2316. package/src/input-control/test/index.js +0 -11
  2317. package/src/input-control/types.ts +0 -7
  2318. package/src/input-control/utils.ts +1 -13
  2319. package/src/isolated-event-container/index.tsx +0 -7
  2320. package/src/isolated-event-container/test/index.tsx +0 -7
  2321. package/src/item-group/context.ts +0 -7
  2322. package/src/item-group/item/README.md +1 -3
  2323. package/src/item-group/item/component.tsx +0 -7
  2324. package/src/item-group/item/hook.ts +16 -24
  2325. package/src/item-group/item-group/README.md +1 -3
  2326. package/src/item-group/item-group/component.tsx +0 -7
  2327. package/src/item-group/item-group/hook.ts +9 -15
  2328. package/src/item-group/stories/index.story.tsx +0 -7
  2329. package/src/item-group/style.module.scss +115 -0
  2330. package/src/item-group/test/__snapshots__/index.js.snap +24 -59
  2331. package/src/item-group/test/index.js +0 -7
  2332. package/src/keyboard-shortcuts/index.tsx +0 -7
  2333. package/src/keyboard-shortcuts/stories/index.story.tsx +0 -7
  2334. package/src/keyboard-shortcuts/test/index.tsx +0 -7
  2335. package/src/keyboard-shortcuts/types.ts +0 -3
  2336. package/src/lock-unlock.js +0 -3
  2337. package/src/menu/README.md +5 -5
  2338. package/src/menu/checkbox-item.tsx +7 -16
  2339. package/src/menu/context.tsx +0 -7
  2340. package/src/menu/group-label.tsx +0 -7
  2341. package/src/menu/group.tsx +0 -7
  2342. package/src/menu/index.tsx +0 -11
  2343. package/src/menu/item-help-text.tsx +0 -7
  2344. package/src/menu/item-label.tsx +0 -7
  2345. package/src/menu/item.tsx +8 -11
  2346. package/src/menu/popover.tsx +0 -11
  2347. package/src/menu/radio-item.tsx +7 -16
  2348. package/src/menu/separator.tsx +0 -7
  2349. package/src/menu/stories/best-practices.mdx +0 -1
  2350. package/src/menu/stories/index.story.tsx +8 -58
  2351. package/src/menu/styles.ts +0 -7
  2352. package/src/menu/submenu-trigger-item.tsx +0 -11
  2353. package/src/menu/test/index.tsx +326 -18
  2354. package/src/menu/trigger-button.tsx +0 -11
  2355. package/src/menu/types.ts +0 -3
  2356. package/src/menu/use-menu-item-hide-on-click.ts +67 -0
  2357. package/src/menu-group/index.tsx +0 -11
  2358. package/src/menu-group/stories/index.story.tsx +0 -11
  2359. package/src/menu-group/test/index.tsx +0 -7
  2360. package/src/menu-group/types.ts +0 -3
  2361. package/src/menu-item/index.tsx +0 -11
  2362. package/src/menu-item/stories/index.story.tsx +0 -11
  2363. package/src/menu-item/test/index.js +0 -11
  2364. package/src/menu-item/types.ts +0 -7
  2365. package/src/menu-items-choice/index.tsx +0 -7
  2366. package/src/menu-items-choice/stories/index.story.tsx +0 -11
  2367. package/src/menu-items-choice/types.ts +0 -3
  2368. package/src/modal/README.md +1 -0
  2369. package/src/modal/index.tsx +1 -1
  2370. package/src/modal/stories/index.story.tsx +0 -11
  2371. package/src/modal/style.scss +4 -0
  2372. package/src/modal/test/aria-helper.ts +0 -3
  2373. package/src/modal/test/index.tsx +0 -11
  2374. package/src/modal/types.ts +2 -3
  2375. package/src/modal/use-modal-exit-animation.ts +0 -7
  2376. package/src/navigable-container/container.tsx +0 -11
  2377. package/src/navigable-container/index.tsx +0 -3
  2378. package/src/navigable-container/menu.tsx +0 -11
  2379. package/src/navigable-container/stories/navigable-menu.story.tsx +0 -7
  2380. package/src/navigable-container/stories/tabbable-container.story.tsx +0 -7
  2381. package/src/navigable-container/tabbable.tsx +0 -11
  2382. package/src/navigable-container/test/navigable-menu.tsx +0 -7
  2383. package/src/navigable-container/test/tababble-container.tsx +0 -7
  2384. package/src/navigable-container/types.ts +0 -7
  2385. package/src/navigator/context.ts +0 -7
  2386. package/src/navigator/index.tsx +0 -3
  2387. package/src/navigator/legacy.ts +0 -3
  2388. package/src/navigator/navigator/component.tsx +0 -11
  2389. package/src/navigator/navigator-back-button/component.tsx +0 -7
  2390. package/src/navigator/navigator-back-button/hook.ts +0 -7
  2391. package/src/navigator/navigator-button/component.tsx +0 -7
  2392. package/src/navigator/navigator-button/hook.ts +0 -7
  2393. package/src/navigator/navigator-screen/component.tsx +0 -11
  2394. package/src/navigator/navigator-screen/use-screen-animate-presence.ts +0 -7
  2395. package/src/navigator/navigator-to-parent-button/component.tsx +0 -7
  2396. package/src/navigator/stories/index.story.tsx +0 -7
  2397. package/src/navigator/styles.ts +0 -3
  2398. package/src/navigator/test/index.tsx +0 -11
  2399. package/src/navigator/test/router.ts +0 -3
  2400. package/src/navigator/types.ts +0 -7
  2401. package/src/navigator/use-navigator.ts +0 -7
  2402. package/src/navigator/utils/router.ts +0 -7
  2403. package/src/notice/index.tsx +0 -11
  2404. package/src/notice/list.tsx +0 -7
  2405. package/src/notice/stories/index.story.tsx +0 -11
  2406. package/src/notice/test/index.tsx +0 -11
  2407. package/src/notice/test/list.tsx +0 -7
  2408. package/src/notice/types.ts +0 -3
  2409. package/src/number-control/README.md +1 -3
  2410. package/src/number-control/index.tsx +0 -11
  2411. package/src/number-control/stories/index.story.tsx +0 -11
  2412. package/src/number-control/styles/number-control-styles.ts +0 -7
  2413. package/src/number-control/test/index.tsx +0 -11
  2414. package/src/number-control/types.ts +0 -3
  2415. package/src/palette-edit/index.tsx +1 -12
  2416. package/src/palette-edit/stories/index.story.tsx +0 -11
  2417. package/src/palette-edit/styles.ts +0 -7
  2418. package/src/palette-edit/test/index.tsx +0 -7
  2419. package/src/palette-edit/types.ts +0 -7
  2420. package/src/panel/body.tsx +0 -11
  2421. package/src/panel/header.tsx +0 -3
  2422. package/src/panel/index.tsx +0 -11
  2423. package/src/panel/row.tsx +0 -11
  2424. package/src/panel/stories/index.story.tsx +0 -11
  2425. package/src/panel/test/body.tsx +0 -7
  2426. package/src/panel/test/header.tsx +0 -7
  2427. package/src/panel/test/index.tsx +0 -7
  2428. package/src/panel/test/row.tsx +0 -7
  2429. package/src/panel/types.ts +0 -3
  2430. package/src/placeholder/index.tsx +0 -11
  2431. package/src/placeholder/stories/index.story.tsx +0 -11
  2432. package/src/placeholder/test/index.tsx +3 -14
  2433. package/src/placeholder/types.ts +0 -7
  2434. package/src/popover/index.tsx +0 -4
  2435. package/src/popover/overlay-middlewares.tsx +0 -3
  2436. package/src/popover/stories/e2e/index.story.tsx +0 -7
  2437. package/src/popover/stories/index.story.tsx +0 -11
  2438. package/src/popover/test/index.tsx +0 -11
  2439. package/src/popover/test/utils/index.tsx +0 -7
  2440. package/src/popover/types.ts +1 -1
  2441. package/src/popover/utils.ts +0 -7
  2442. package/src/private-apis.ts +0 -27
  2443. package/src/progress-bar/index.tsx +0 -11
  2444. package/src/progress-bar/stories/index.story.tsx +0 -7
  2445. package/src/progress-bar/styles.ts +0 -11
  2446. package/src/progress-bar/test/index.tsx +0 -7
  2447. package/src/query-controls/author-select.tsx +0 -3
  2448. package/src/query-controls/index.tsx +1 -8
  2449. package/src/query-controls/stories/index.story.tsx +0 -11
  2450. package/src/query-controls/terms.ts +0 -3
  2451. package/src/query-controls/test/terms.ts +0 -3
  2452. package/src/query-controls/types.ts +0 -3
  2453. package/src/radio-control/index.tsx +0 -11
  2454. package/src/radio-control/stories/index.story.tsx +0 -11
  2455. package/src/radio-control/test/index.tsx +0 -11
  2456. package/src/radio-control/types.ts +0 -3
  2457. package/src/radio-group/README.md +2 -6
  2458. package/src/radio-group/context.tsx +0 -7
  2459. package/src/radio-group/index.tsx +0 -11
  2460. package/src/radio-group/radio.tsx +0 -11
  2461. package/src/radio-group/stories/index.story.tsx +0 -11
  2462. package/src/range-control/index.tsx +0 -12
  2463. package/src/range-control/input-range.tsx +0 -8
  2464. package/src/range-control/mark.tsx +0 -8
  2465. package/src/range-control/rail.tsx +0 -8
  2466. package/src/range-control/stories/index.story.tsx +0 -11
  2467. package/src/range-control/styles/range-control-styles.ts +0 -8
  2468. package/src/range-control/tooltip.tsx +0 -12
  2469. package/src/range-control/types.ts +0 -7
  2470. package/src/range-control/utils.ts +0 -8
  2471. package/src/resizable-box/index.tsx +0 -11
  2472. package/src/resizable-box/resize-tooltip/index.tsx +0 -11
  2473. package/src/resizable-box/resize-tooltip/label.tsx +0 -11
  2474. package/src/resizable-box/resize-tooltip/styles/resize-tooltip.styles.ts +0 -7
  2475. package/src/resizable-box/resize-tooltip/utils.ts +0 -3
  2476. package/src/resizable-box/stories/index.story.tsx +0 -11
  2477. package/src/responsive-wrapper/index.tsx +0 -11
  2478. package/src/responsive-wrapper/stories/index.story.tsx +0 -7
  2479. package/src/sandbox/index.tsx +4 -11
  2480. package/src/sandbox/stories/index.story.tsx +7 -7
  2481. package/src/sandbox/test/index.tsx +21 -11
  2482. package/src/sandbox/types.ts +10 -0
  2483. package/src/scroll-lock/index.tsx +0 -3
  2484. package/src/scroll-lock/stories/index.story.tsx +0 -11
  2485. package/src/scroll-lock/test/index.tsx +0 -7
  2486. package/src/scrollable/README.md +1 -3
  2487. package/src/scrollable/component.tsx +0 -7
  2488. package/src/scrollable/hook.ts +0 -7
  2489. package/src/scrollable/stories/index.story.tsx +0 -11
  2490. package/src/scrollable/styles.ts +0 -7
  2491. package/src/scrollable/test/index.tsx +0 -7
  2492. package/src/scrollable/types.ts +0 -3
  2493. package/src/search-control/index.tsx +0 -11
  2494. package/src/search-control/stories/index.story.tsx +0 -11
  2495. package/src/search-control/test/index.tsx +0 -11
  2496. package/src/search-control/types.ts +0 -3
  2497. package/src/select-control/chevron-down.tsx +0 -7
  2498. package/src/select-control/index.tsx +0 -11
  2499. package/src/select-control/stories/index.story.tsx +0 -11
  2500. package/src/select-control/styles/select-control-styles.ts +0 -7
  2501. package/src/select-control/test/select-control.tsx +0 -7
  2502. package/src/select-control/types.ts +0 -7
  2503. package/src/shortcut/index.tsx +0 -3
  2504. package/src/shortcut/stories/index.story.tsx +0 -7
  2505. package/src/shortcut/test/index.tsx +0 -7
  2506. package/src/slot-fill/bubbles-virtually/slot.tsx +0 -11
  2507. package/src/slot-fill/bubbles-virtually/use-slot-fills.ts +0 -7
  2508. package/src/slot-fill/bubbles-virtually/use-slot.ts +0 -7
  2509. package/src/slot-fill/context.ts +0 -7
  2510. package/src/slot-fill/fill.tsx +0 -1
  2511. package/src/slot-fill/index.tsx +0 -12
  2512. package/src/slot-fill/provider.tsx +0 -7
  2513. package/src/slot-fill/slot.tsx +0 -11
  2514. package/src/slot-fill/stories/index.story.tsx +0 -2
  2515. package/src/slot-fill/test/index.js +0 -11
  2516. package/src/slot-fill/test/slot.js +0 -2
  2517. package/src/slot-fill/types.ts +0 -7
  2518. package/src/snackbar/index.tsx +0 -11
  2519. package/src/snackbar/list.tsx +0 -11
  2520. package/src/snackbar/stories/index.story.tsx +0 -11
  2521. package/src/snackbar/stories/list.story.tsx +0 -11
  2522. package/src/snackbar/test/index.tsx +0 -11
  2523. package/src/snackbar/test/list.tsx +0 -7
  2524. package/src/snackbar/types.ts +0 -7
  2525. package/src/spacer/README.md +1 -3
  2526. package/src/spacer/component.tsx +0 -7
  2527. package/src/spacer/hook.ts +0 -1
  2528. package/src/spacer/stories/index.story.tsx +0 -1
  2529. package/src/spacer/test/index.tsx +0 -1
  2530. package/src/spacer/types.ts +0 -7
  2531. package/src/spinner/index.tsx +13 -18
  2532. package/src/spinner/stories/index.story.tsx +0 -7
  2533. package/src/spinner/style.module.scss +39 -0
  2534. package/src/style-provider/types.ts +0 -3
  2535. package/src/style.scss +0 -1
  2536. package/src/surface/README.md +1 -3
  2537. package/src/surface/component.tsx +12 -7
  2538. package/src/surface/hook.ts +0 -7
  2539. package/src/surface/stories/index.story.tsx +3 -9
  2540. package/src/surface/test/index.tsx +12 -7
  2541. package/src/tab-panel/index.tsx +0 -12
  2542. package/src/tab-panel/test/index.tsx +0 -11
  2543. package/src/tab-panel/types.ts +0 -7
  2544. package/src/tabs/context.ts +0 -7
  2545. package/src/tabs/index.tsx +0 -11
  2546. package/src/tabs/stories/best-practices.mdx +0 -1
  2547. package/src/tabs/styles.ts +0 -7
  2548. package/src/tabs/tab.tsx +2 -10
  2549. package/src/tabs/tablist.tsx +0 -11
  2550. package/src/tabs/tabpanel.tsx +1 -13
  2551. package/src/tabs/test/index.tsx +0 -11
  2552. package/src/tabs/types.ts +0 -3
  2553. package/src/tabs/use-track-overflow.ts +0 -3
  2554. package/src/text/README.md +1 -3
  2555. package/src/text/component.tsx +0 -3
  2556. package/src/text/get-line-height.ts +0 -7
  2557. package/src/text/hook.ts +0 -11
  2558. package/src/text/stories/index.story.tsx +0 -7
  2559. package/src/text/styles.ts +0 -7
  2560. package/src/text/test/index.tsx +0 -7
  2561. package/src/text/types.ts +0 -7
  2562. package/src/text/utils.ts +0 -7
  2563. package/src/text-control/index.tsx +0 -11
  2564. package/src/text-control/stories/index.story.tsx +0 -11
  2565. package/src/text-control/test/text-control.tsx +0 -7
  2566. package/src/text-control/types.ts +0 -3
  2567. package/src/text-highlight/index.tsx +0 -7
  2568. package/src/text-highlight/stories/index.story.tsx +0 -7
  2569. package/src/text-highlight/test/index.tsx +0 -7
  2570. package/src/textarea-control/index.tsx +0 -11
  2571. package/src/textarea-control/stories/index.story.tsx +0 -11
  2572. package/src/textarea-control/styles/textarea-control-styles.ts +0 -7
  2573. package/src/textarea-control/types.ts +0 -7
  2574. package/src/tip/index.tsx +0 -7
  2575. package/src/tip/stories/index.story.tsx +0 -7
  2576. package/src/tip/types.ts +0 -3
  2577. package/src/toggle-control/index.tsx +0 -11
  2578. package/src/toggle-control/stories/index.story.tsx +52 -21
  2579. package/src/toggle-control/test/index.tsx +0 -7
  2580. package/src/toggle-control/types.ts +0 -7
  2581. package/src/toggle-group-control/context.ts +0 -7
  2582. package/src/toggle-group-control/stories/index.story.tsx +0 -11
  2583. package/src/toggle-group-control/test/index.tsx +0 -11
  2584. package/src/toggle-group-control/toggle-group-control/README.md +1 -3
  2585. package/src/toggle-group-control/toggle-group-control/as-button-group.tsx +0 -7
  2586. package/src/toggle-group-control/toggle-group-control/as-radio-group.tsx +0 -11
  2587. package/src/toggle-group-control/toggle-group-control/component.tsx +0 -11
  2588. package/src/toggle-group-control/toggle-group-control/utils.ts +0 -7
  2589. package/src/toggle-group-control/toggle-group-control-option/README.md +1 -3
  2590. package/src/toggle-group-control/toggle-group-control-option/component.tsx +0 -11
  2591. package/src/toggle-group-control/toggle-group-control-option-base/README.md +1 -3
  2592. package/src/toggle-group-control/toggle-group-control-option-base/component.tsx +0 -11
  2593. package/src/toggle-group-control/toggle-group-control-option-icon/README.md +1 -3
  2594. package/src/toggle-group-control/toggle-group-control-option-icon/component.tsx +0 -11
  2595. package/src/toggle-group-control/types.ts +4 -7
  2596. package/src/toolbar/stories/index.story.tsx +2 -21
  2597. package/src/toolbar/test/index.tsx +0 -7
  2598. package/src/toolbar/test/toolbar-group.tsx +1 -12
  2599. package/src/toolbar/toolbar/index.tsx +0 -11
  2600. package/src/toolbar/toolbar/toolbar-container.tsx +0 -11
  2601. package/src/toolbar/toolbar/types.ts +0 -3
  2602. package/src/toolbar/toolbar-button/index.tsx +0 -11
  2603. package/src/toolbar/toolbar-button/toolbar-button-container.tsx +0 -3
  2604. package/src/toolbar/toolbar-button/types.ts +0 -3
  2605. package/src/toolbar/toolbar-context/index.ts +0 -7
  2606. package/src/toolbar/toolbar-dropdown-menu/index.tsx +0 -11
  2607. package/src/toolbar/toolbar-group/index.tsx +0 -11
  2608. package/src/toolbar/toolbar-group/toolbar-group-collapsed.tsx +0 -7
  2609. package/src/toolbar/toolbar-group/toolbar-group-container.tsx +0 -3
  2610. package/src/toolbar/toolbar-group/types.ts +0 -11
  2611. package/src/toolbar/toolbar-item/index.tsx +0 -11
  2612. package/src/toolbar/toolbar-item/types.ts +0 -3
  2613. package/src/tools-panel/context.ts +0 -7
  2614. package/src/tools-panel/stories/index.story.tsx +0 -15
  2615. package/src/tools-panel/test/index.tsx +0 -7
  2616. package/src/tools-panel/tools-panel/README.md +2 -11
  2617. package/src/tools-panel/tools-panel/component.tsx +0 -7
  2618. package/src/tools-panel/tools-panel/hook.ts +0 -11
  2619. package/src/tools-panel/tools-panel-header/README.md +2 -6
  2620. package/src/tools-panel/tools-panel-header/component.tsx +0 -11
  2621. package/src/tools-panel/tools-panel-header/hook.ts +0 -7
  2622. package/src/tools-panel/tools-panel-item/README.md +2 -4
  2623. package/src/tools-panel/tools-panel-item/component.tsx +0 -7
  2624. package/src/tools-panel/tools-panel-item/hook.ts +0 -11
  2625. package/src/tools-panel/types.ts +0 -7
  2626. package/src/tooltip/stories/index.story.tsx +0 -11
  2627. package/src/tooltip/test/index.tsx +0 -11
  2628. package/src/tooltip/test/utils/index.tsx +0 -3
  2629. package/src/tooltip/types.ts +0 -7
  2630. package/src/tree-grid/README.md +1 -3
  2631. package/src/tree-grid/cell.tsx +0 -7
  2632. package/src/tree-grid/index.tsx +0 -7
  2633. package/src/tree-grid/item.tsx +0 -7
  2634. package/src/tree-grid/roving-tab-index-context.ts +0 -3
  2635. package/src/tree-grid/roving-tab-index-item.tsx +0 -7
  2636. package/src/tree-grid/roving-tab-index.tsx +0 -7
  2637. package/src/tree-grid/row.tsx +0 -7
  2638. package/src/tree-grid/stories/index.story.tsx +0 -11
  2639. package/src/tree-grid/test/cell.tsx +0 -11
  2640. package/src/tree-grid/test/index.tsx +0 -11
  2641. package/src/tree-grid/test/roving-tab-index-item.tsx +0 -11
  2642. package/src/tree-grid/test/roving-tab-index.tsx +0 -7
  2643. package/src/tree-grid/test/row.tsx +0 -7
  2644. package/src/tree-select/index.tsx +0 -7
  2645. package/src/tree-select/stories/index.story.tsx +0 -10
  2646. package/src/tree-select/types.ts +0 -3
  2647. package/src/truncate/README.md +1 -3
  2648. package/src/truncate/component.tsx +0 -7
  2649. package/src/truncate/hook.ts +0 -7
  2650. package/src/truncate/stories/index.story.tsx +0 -7
  2651. package/src/truncate/test/index.tsx +0 -7
  2652. package/src/truncate/types.ts +0 -3
  2653. package/src/truncate/utils.ts +0 -3
  2654. package/src/unit-control/README.md +1 -3
  2655. package/src/unit-control/index.tsx +0 -11
  2656. package/src/unit-control/stories/index.story.tsx +0 -11
  2657. package/src/unit-control/styles/unit-control-styles.ts +0 -6
  2658. package/src/unit-control/test/index.tsx +0 -11
  2659. package/src/unit-control/test/utils.ts +0 -3
  2660. package/src/unit-control/types.ts +0 -7
  2661. package/src/unit-control/unit-select-control.tsx +0 -11
  2662. package/src/unit-control/utils.ts +0 -7
  2663. package/src/utils/base-label.ts +0 -7
  2664. package/src/utils/box-sizing.ts +0 -3
  2665. package/src/utils/breakpoint.js +0 -3
  2666. package/src/utils/colors.js +0 -3
  2667. package/src/utils/config-values.js +0 -4
  2668. package/src/utils/element-rect.ts +0 -3
  2669. package/src/utils/font-size.ts +0 -7
  2670. package/src/utils/font.js +0 -3
  2671. package/src/utils/get-valid-children.ts +0 -7
  2672. package/src/utils/hooks/test/use-controlled-state.js +0 -7
  2673. package/src/utils/hooks/test/use-controlled-value.js +0 -7
  2674. package/src/utils/hooks/test/use-cx.js +0 -7
  2675. package/src/utils/hooks/use-animated-offset-rect.ts +0 -7
  2676. package/src/utils/hooks/use-controlled-state.js +0 -7
  2677. package/src/utils/hooks/use-controlled-value.ts +0 -3
  2678. package/src/utils/hooks/use-cx.ts +0 -7
  2679. package/src/utils/hooks/use-on-value-update.ts +0 -3
  2680. package/src/utils/hooks/use-update-effect.js +0 -3
  2681. package/src/utils/polymorphic-element.tsx +0 -7
  2682. package/src/utils/rtl.js +2 -9
  2683. package/src/utils/strings.ts +0 -31
  2684. package/src/utils/test/colors.js +0 -3
  2685. package/src/utils/test/get-node-text.js +0 -3
  2686. package/src/utils/test/math.js +0 -4
  2687. package/src/utils/test/polymorphic-element.tsx +0 -5
  2688. package/src/utils/test/rtl.js +0 -3
  2689. package/src/utils/test/space.js +0 -3
  2690. package/src/utils/test/strings.js +1 -99
  2691. package/src/utils/test/unit-values.js +0 -3
  2692. package/src/utils/use-responsive-value.ts +0 -3
  2693. package/src/v-stack/README.md +1 -3
  2694. package/src/v-stack/component.tsx +0 -7
  2695. package/src/v-stack/hook.ts +0 -3
  2696. package/src/v-stack/stories/e2e/index.story.tsx +0 -7
  2697. package/src/v-stack/stories/index.story.tsx +0 -7
  2698. package/src/v-stack/test/index.tsx +0 -7
  2699. package/src/v-stack/types.ts +0 -7
  2700. package/src/validated-form-controls/components/combobox-control.tsx +0 -7
  2701. package/src/validated-form-controls/components/content-editable-control.tsx +0 -11
  2702. package/src/validated-form-controls/components/custom-select-control.tsx +0 -7
  2703. package/src/validated-form-controls/components/form-token-field.tsx +0 -7
  2704. package/src/validated-form-controls/components/index.ts +0 -5
  2705. package/src/validated-form-controls/components/input-control.tsx +0 -7
  2706. package/src/validated-form-controls/components/range-control.tsx +0 -7
  2707. package/src/validated-form-controls/components/stories/combobox-control.story.tsx +0 -11
  2708. package/src/validated-form-controls/components/stories/content-editable-control.story.tsx +0 -10
  2709. package/src/validated-form-controls/components/stories/custom-select-control.story.tsx +0 -11
  2710. package/src/validated-form-controls/components/stories/form-token-field.story.tsx +0 -11
  2711. package/src/validated-form-controls/components/stories/input-control.story.tsx +0 -15
  2712. package/src/validated-form-controls/components/stories/overview.story.tsx +0 -11
  2713. package/src/validated-form-controls/components/stories/range-control.story.tsx +0 -11
  2714. package/src/validated-form-controls/components/stories/story-utils.tsx +0 -11
  2715. package/src/validated-form-controls/components/stories/textarea-control.story.tsx +0 -10
  2716. package/src/validated-form-controls/components/stories/toggle-control.story.tsx +0 -11
  2717. package/src/validated-form-controls/components/stories/toggle-group-control.story.tsx +0 -11
  2718. package/src/validated-form-controls/components/textarea-control.tsx +0 -7
  2719. package/src/validated-form-controls/components/toggle-control.tsx +0 -7
  2720. package/src/validated-form-controls/components/toggle-group-control.tsx +0 -7
  2721. package/src/validated-form-controls/control-with-error.tsx +0 -7
  2722. package/src/validated-form-controls/style.scss +2 -2
  2723. package/src/validated-form-controls/test/control-with-error.tsx +0 -11
  2724. package/src/validated-form-controls/validity-indicator.tsx +0 -11
  2725. package/src/view/README.md +1 -3
  2726. package/src/view/component.tsx +0 -7
  2727. package/src/view/stories/index.story.tsx +0 -7
  2728. package/src/view/test/index.js +0 -11
  2729. package/src/visually-hidden/component.tsx +0 -7
  2730. package/src/visually-hidden/styles.ts +0 -3
  2731. package/src/visually-hidden/types.ts +0 -3
  2732. package/src/z-stack/README.md +1 -3
  2733. package/src/z-stack/component.tsx +0 -11
  2734. package/src/z-stack/stories/index.story.tsx +0 -7
  2735. package/src/z-stack/styles.ts +0 -3
  2736. package/src/z-stack/types.ts +0 -3
  2737. package/build/calendar/date-calendar/index.cjs +0 -70
  2738. package/build/calendar/date-calendar/index.cjs.map +0 -7
  2739. package/build/calendar/date-range-calendar/index.cjs +0 -164
  2740. package/build/calendar/date-range-calendar/index.cjs.map +0 -7
  2741. package/build/calendar/index.cjs +0 -37
  2742. package/build/calendar/index.cjs.map +0 -7
  2743. package/build/calendar/types.cjs +0 -19
  2744. package/build/calendar/types.cjs.map +0 -7
  2745. package/build/calendar/utils/constants.cjs +0 -90
  2746. package/build/calendar/utils/constants.cjs.map +0 -7
  2747. package/build/calendar/utils/day-cell.cjs +0 -117
  2748. package/build/calendar/utils/day-cell.cjs.map +0 -7
  2749. package/build/calendar/utils/misc.cjs +0 -33
  2750. package/build/calendar/utils/misc.cjs.map +0 -7
  2751. package/build/calendar/utils/use-localization-props.cjs +0 -158
  2752. package/build/calendar/utils/use-localization-props.cjs.map +0 -7
  2753. package/build/item-group/styles.cjs +0 -82
  2754. package/build/item-group/styles.cjs.map +0 -7
  2755. package/build/spinner/styles.cjs +0 -84
  2756. package/build/spinner/styles.cjs.map +0 -7
  2757. package/build/utils/with-ignore-ime-events.cjs +0 -44
  2758. package/build/utils/with-ignore-ime-events.cjs.map +0 -7
  2759. package/build/validated-form-controls/components/checkbox-control.cjs +0 -69
  2760. package/build/validated-form-controls/components/checkbox-control.cjs.map +0 -7
  2761. package/build/validated-form-controls/components/number-control.cjs +0 -66
  2762. package/build/validated-form-controls/components/number-control.cjs.map +0 -7
  2763. package/build/validated-form-controls/components/radio-control.cjs +0 -66
  2764. package/build/validated-form-controls/components/radio-control.cjs.map +0 -7
  2765. package/build/validated-form-controls/components/select-control.cjs +0 -66
  2766. package/build/validated-form-controls/components/select-control.cjs.map +0 -7
  2767. package/build/validated-form-controls/components/text-control.cjs +0 -66
  2768. package/build/validated-form-controls/components/text-control.cjs.map +0 -7
  2769. package/build-module/calendar/date-calendar/index.mjs +0 -45
  2770. package/build-module/calendar/date-calendar/index.mjs.map +0 -7
  2771. package/build-module/calendar/date-range-calendar/index.mjs +0 -138
  2772. package/build-module/calendar/date-range-calendar/index.mjs.map +0 -7
  2773. package/build-module/calendar/index.mjs +0 -10
  2774. package/build-module/calendar/index.mjs.map +0 -7
  2775. package/build-module/calendar/types.mjs +0 -1
  2776. package/build-module/calendar/types.mjs.map +0 -7
  2777. package/build-module/calendar/utils/constants.mjs +0 -64
  2778. package/build-module/calendar/utils/constants.mjs.map +0 -7
  2779. package/build-module/calendar/utils/day-cell.mjs +0 -92
  2780. package/build-module/calendar/utils/day-cell.mjs.map +0 -7
  2781. package/build-module/calendar/utils/misc.mjs +0 -8
  2782. package/build-module/calendar/utils/misc.mjs.map +0 -7
  2783. package/build-module/calendar/utils/use-localization-props.mjs +0 -133
  2784. package/build-module/calendar/utils/use-localization-props.mjs.map +0 -7
  2785. package/build-module/item-group/styles.mjs +0 -50
  2786. package/build-module/item-group/styles.mjs.map +0 -7
  2787. package/build-module/spinner/styles.mjs +0 -47
  2788. package/build-module/spinner/styles.mjs.map +0 -7
  2789. package/build-module/utils/with-ignore-ime-events.mjs +0 -19
  2790. package/build-module/utils/with-ignore-ime-events.mjs.map +0 -7
  2791. package/build-module/validated-form-controls/components/checkbox-control.mjs +0 -34
  2792. package/build-module/validated-form-controls/components/checkbox-control.mjs.map +0 -7
  2793. package/build-module/validated-form-controls/components/number-control.mjs +0 -31
  2794. package/build-module/validated-form-controls/components/number-control.mjs.map +0 -7
  2795. package/build-module/validated-form-controls/components/radio-control.mjs +0 -31
  2796. package/build-module/validated-form-controls/components/radio-control.mjs.map +0 -7
  2797. package/build-module/validated-form-controls/components/select-control.mjs +0 -31
  2798. package/build-module/validated-form-controls/components/select-control.mjs.map +0 -7
  2799. package/build-module/validated-form-controls/components/text-control.mjs +0 -31
  2800. package/build-module/validated-form-controls/components/text-control.mjs.map +0 -7
  2801. package/build-types/box-control/input-control.d.ts +0 -3
  2802. package/build-types/box-control/input-control.d.ts.map +0 -1
  2803. package/build-types/calendar/date-calendar/index.d.ts +0 -11
  2804. package/build-types/calendar/date-calendar/index.d.ts.map +0 -1
  2805. package/build-types/calendar/date-range-calendar/index.d.ts +0 -14
  2806. package/build-types/calendar/date-range-calendar/index.d.ts.map +0 -1
  2807. package/build-types/calendar/index.d.ts +0 -4
  2808. package/build-types/calendar/index.d.ts.map +0 -1
  2809. package/build-types/calendar/stories/date-calendar.story.d.ts +0 -21
  2810. package/build-types/calendar/stories/date-calendar.story.d.ts.map +0 -1
  2811. package/build-types/calendar/stories/date-range-calendar.story.d.ts +0 -21
  2812. package/build-types/calendar/stories/date-range-calendar.story.d.ts.map +0 -1
  2813. package/build-types/calendar/test/__utils__/index.d.ts +0 -10
  2814. package/build-types/calendar/test/__utils__/index.d.ts.map +0 -1
  2815. package/build-types/calendar/test/date-calendar.d.ts +0 -2
  2816. package/build-types/calendar/test/date-calendar.d.ts.map +0 -1
  2817. package/build-types/calendar/test/date-range-calendar.d.ts +0 -2
  2818. package/build-types/calendar/test/date-range-calendar.d.ts.map +0 -1
  2819. package/build-types/calendar/types.d.ts +0 -329
  2820. package/build-types/calendar/types.d.ts.map +0 -1
  2821. package/build-types/calendar/utils/constants.d.ts +0 -53
  2822. package/build-types/calendar/utils/constants.d.ts.map +0 -1
  2823. package/build-types/calendar/utils/day-cell.d.ts +0 -21
  2824. package/build-types/calendar/utils/day-cell.d.ts.map +0 -1
  2825. package/build-types/calendar/utils/misc.d.ts +0 -2
  2826. package/build-types/calendar/utils/misc.d.ts.map +0 -1
  2827. package/build-types/calendar/utils/use-localization-props.d.ts +0 -68
  2828. package/build-types/calendar/utils/use-localization-props.d.ts.map +0 -1
  2829. package/build-types/card/context.d.ts +0 -3
  2830. package/build-types/card/context.d.ts.map +0 -1
  2831. package/build-types/confirm-dialog/styles.d.ts +0 -10
  2832. package/build-types/confirm-dialog/styles.d.ts.map +0 -1
  2833. package/build-types/date-time/date/index.d.ts +0 -23
  2834. package/build-types/date-time/date/index.d.ts.map +0 -1
  2835. package/build-types/date-time/date/styles.d.ts +0 -45
  2836. package/build-types/date-time/date/styles.d.ts.map +0 -1
  2837. package/build-types/date-time/date/test/index.d.ts +0 -2
  2838. package/build-types/date-time/date/test/index.d.ts.map +0 -1
  2839. package/build-types/date-time/date/test/use-lilius.d.ts +0 -2
  2840. package/build-types/date-time/date/test/use-lilius.d.ts.map +0 -1
  2841. package/build-types/date-time/date/use-lilius/index.d.ts +0 -169
  2842. package/build-types/date-time/date/use-lilius/index.d.ts.map +0 -1
  2843. package/build-types/date-time/time/index.d.ts +0 -27
  2844. package/build-types/date-time/time/index.d.ts.map +0 -1
  2845. package/build-types/date-time/time/styles.d.ts +0 -93
  2846. package/build-types/date-time/time/styles.d.ts.map +0 -1
  2847. package/build-types/date-time/time/test/index.d.ts +0 -2
  2848. package/build-types/date-time/time/test/index.d.ts.map +0 -1
  2849. package/build-types/date-time/time/time-input/index.d.ts +0 -4
  2850. package/build-types/date-time/time/time-input/index.d.ts.map +0 -1
  2851. package/build-types/date-time/time/time-input/test/index.d.ts +0 -2
  2852. package/build-types/date-time/time/time-input/test/index.d.ts.map +0 -1
  2853. package/build-types/date-time/time/timezone.d.ts +0 -7
  2854. package/build-types/date-time/time/timezone.d.ts.map +0 -1
  2855. package/build-types/disabled/styles/disabled-styles.d.ts +0 -2
  2856. package/build-types/disabled/styles/disabled-styles.d.ts.map +0 -1
  2857. package/build-types/divider/styles.d.ts +0 -10
  2858. package/build-types/divider/styles.d.ts.map +0 -1
  2859. package/build-types/flex/styles.d.ts +0 -17
  2860. package/build-types/flex/styles.d.ts.map +0 -1
  2861. package/build-types/form-token-field/styles.d.ts +0 -6
  2862. package/build-types/form-token-field/styles.d.ts.map +0 -1
  2863. package/build-types/item-group/styles.d.ts +0 -13
  2864. package/build-types/item-group/styles.d.ts.map +0 -1
  2865. package/build-types/mobile/image/constants.d.ts +0 -5
  2866. package/build-types/mobile/image/constants.d.ts.map +0 -1
  2867. package/build-types/navigation/back-button/index.d.ts +0 -7
  2868. package/build-types/navigation/back-button/index.d.ts.map +0 -1
  2869. package/build-types/navigation/constants.d.ts +0 -3
  2870. package/build-types/navigation/constants.d.ts.map +0 -1
  2871. package/build-types/navigation/context.d.ts +0 -4
  2872. package/build-types/navigation/context.d.ts.map +0 -1
  2873. package/build-types/navigation/group/context.d.ts +0 -7
  2874. package/build-types/navigation/group/context.d.ts.map +0 -1
  2875. package/build-types/navigation/group/index.d.ts +0 -7
  2876. package/build-types/navigation/group/index.d.ts.map +0 -1
  2877. package/build-types/navigation/index.d.ts +0 -46
  2878. package/build-types/navigation/index.d.ts.map +0 -1
  2879. package/build-types/navigation/item/base-content.d.ts +0 -3
  2880. package/build-types/navigation/item/base-content.d.ts.map +0 -1
  2881. package/build-types/navigation/item/base.d.ts +0 -3
  2882. package/build-types/navigation/item/base.d.ts.map +0 -1
  2883. package/build-types/navigation/item/index.d.ts +0 -7
  2884. package/build-types/navigation/item/index.d.ts.map +0 -1
  2885. package/build-types/navigation/item/use-navigation-tree-item.d.ts +0 -3
  2886. package/build-types/navigation/item/use-navigation-tree-item.d.ts.map +0 -1
  2887. package/build-types/navigation/menu/context.d.ts +0 -7
  2888. package/build-types/navigation/menu/context.d.ts.map +0 -1
  2889. package/build-types/navigation/menu/index.d.ts +0 -7
  2890. package/build-types/navigation/menu/index.d.ts.map +0 -1
  2891. package/build-types/navigation/menu/menu-title-search.d.ts +0 -3
  2892. package/build-types/navigation/menu/menu-title-search.d.ts.map +0 -1
  2893. package/build-types/navigation/menu/menu-title.d.ts +0 -3
  2894. package/build-types/navigation/menu/menu-title.d.ts.map +0 -1
  2895. package/build-types/navigation/menu/search-no-results-found.d.ts +0 -3
  2896. package/build-types/navigation/menu/search-no-results-found.d.ts.map +0 -1
  2897. package/build-types/navigation/menu/use-navigation-tree-menu.d.ts +0 -3
  2898. package/build-types/navigation/menu/use-navigation-tree-menu.d.ts.map +0 -1
  2899. package/build-types/navigation/stories/index.story.d.ts +0 -23
  2900. package/build-types/navigation/stories/index.story.d.ts.map +0 -1
  2901. package/build-types/navigation/stories/utils/controlled-state.d.ts +0 -7
  2902. package/build-types/navigation/stories/utils/controlled-state.d.ts.map +0 -1
  2903. package/build-types/navigation/stories/utils/default.d.ts +0 -10
  2904. package/build-types/navigation/stories/utils/default.d.ts.map +0 -1
  2905. package/build-types/navigation/stories/utils/group.d.ts +0 -10
  2906. package/build-types/navigation/stories/utils/group.d.ts.map +0 -1
  2907. package/build-types/navigation/stories/utils/hide-if-empty.d.ts +0 -10
  2908. package/build-types/navigation/stories/utils/hide-if-empty.d.ts.map +0 -1
  2909. package/build-types/navigation/stories/utils/more-examples.d.ts +0 -10
  2910. package/build-types/navigation/stories/utils/more-examples.d.ts.map +0 -1
  2911. package/build-types/navigation/stories/utils/search.d.ts +0 -10
  2912. package/build-types/navigation/stories/utils/search.d.ts.map +0 -1
  2913. package/build-types/navigation/styles/navigation-styles.d.ts +0 -55
  2914. package/build-types/navigation/styles/navigation-styles.d.ts.map +0 -1
  2915. package/build-types/navigation/test/index.d.ts +0 -2
  2916. package/build-types/navigation/test/index.d.ts.map +0 -1
  2917. package/build-types/navigation/types.d.ts +0 -266
  2918. package/build-types/navigation/types.d.ts.map +0 -1
  2919. package/build-types/navigation/use-create-navigation-tree.d.ts +0 -15
  2920. package/build-types/navigation/use-create-navigation-tree.d.ts.map +0 -1
  2921. package/build-types/navigation/use-navigation-tree-nodes.d.ts +0 -10
  2922. package/build-types/navigation/use-navigation-tree-nodes.d.ts.map +0 -1
  2923. package/build-types/navigation/utils.d.ts +0 -3
  2924. package/build-types/navigation/utils.d.ts.map +0 -1
  2925. package/build-types/search-control/styles.d.ts +0 -7
  2926. package/build-types/search-control/styles.d.ts.map +0 -1
  2927. package/build-types/spinner/styles.d.ts +0 -13
  2928. package/build-types/spinner/styles.d.ts.map +0 -1
  2929. package/build-types/surface/styles.d.ts +0 -11
  2930. package/build-types/surface/styles.d.ts.map +0 -1
  2931. package/build-types/theme/color-algorithms.d.ts +0 -12
  2932. package/build-types/theme/color-algorithms.d.ts.map +0 -1
  2933. package/build-types/theme/index.d.ts +0 -24
  2934. package/build-types/theme/index.d.ts.map +0 -1
  2935. package/build-types/theme/stories/index.story.d.ts +0 -21
  2936. package/build-types/theme/stories/index.story.d.ts.map +0 -1
  2937. package/build-types/theme/styles.d.ts +0 -10
  2938. package/build-types/theme/styles.d.ts.map +0 -1
  2939. package/build-types/theme/test/color-algorithms.d.ts +0 -2
  2940. package/build-types/theme/test/color-algorithms.d.ts.map +0 -1
  2941. package/build-types/theme/test/index.d.ts +0 -2
  2942. package/build-types/theme/test/index.d.ts.map +0 -1
  2943. package/build-types/theme/types.d.ts +0 -59
  2944. package/build-types/theme/types.d.ts.map +0 -1
  2945. package/build-types/toggle-group-control/toggle-group-control/styles.d.ts +0 -4
  2946. package/build-types/toggle-group-control/toggle-group-control/styles.d.ts.map +0 -1
  2947. package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts +0 -14
  2948. package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts.map +0 -1
  2949. package/build-types/tools-panel/styles.d.ts +0 -24
  2950. package/build-types/tools-panel/styles.d.ts.map +0 -1
  2951. package/build-types/truncate/styles.d.ts +0 -2
  2952. package/build-types/truncate/styles.d.ts.map +0 -1
  2953. package/build-types/utils/deprecated-36px-size.d.ts +0 -7
  2954. package/build-types/utils/deprecated-36px-size.d.ts.map +0 -1
  2955. package/build-types/utils/use-deprecated-props.d.ts +0 -7
  2956. package/build-types/utils/use-deprecated-props.d.ts.map +0 -1
  2957. package/build-types/utils/with-ignore-ime-events.d.ts +0 -14
  2958. package/build-types/utils/with-ignore-ime-events.d.ts.map +0 -1
  2959. package/build-types/validated-form-controls/components/checkbox-control.d.ts +0 -10
  2960. package/build-types/validated-form-controls/components/checkbox-control.d.ts.map +0 -1
  2961. package/build-types/validated-form-controls/components/number-control.d.ts +0 -16
  2962. package/build-types/validated-form-controls/components/number-control.d.ts.map +0 -1
  2963. package/build-types/validated-form-controls/components/radio-control.d.ts +0 -12
  2964. package/build-types/validated-form-controls/components/radio-control.d.ts.map +0 -1
  2965. package/build-types/validated-form-controls/components/select-control.d.ts +0 -8
  2966. package/build-types/validated-form-controls/components/select-control.d.ts.map +0 -1
  2967. package/build-types/validated-form-controls/components/stories/checkbox-control.story.d.ts +0 -12
  2968. package/build-types/validated-form-controls/components/stories/checkbox-control.story.d.ts.map +0 -1
  2969. package/build-types/validated-form-controls/components/stories/number-control.story.d.ts +0 -12
  2970. package/build-types/validated-form-controls/components/stories/number-control.story.d.ts.map +0 -1
  2971. package/build-types/validated-form-controls/components/stories/radio-control.story.d.ts +0 -12
  2972. package/build-types/validated-form-controls/components/stories/radio-control.story.d.ts.map +0 -1
  2973. package/build-types/validated-form-controls/components/stories/select-control.story.d.ts +0 -12
  2974. package/build-types/validated-form-controls/components/stories/select-control.story.d.ts.map +0 -1
  2975. package/build-types/validated-form-controls/components/stories/text-control.story.d.ts +0 -9
  2976. package/build-types/validated-form-controls/components/stories/text-control.story.d.ts.map +0 -1
  2977. package/build-types/validated-form-controls/components/text-control.d.ts +0 -8
  2978. package/build-types/validated-form-controls/components/text-control.d.ts.map +0 -1
  2979. package/build-types/validated-form-controls/test/checkbox-control.d.ts +0 -2
  2980. package/build-types/validated-form-controls/test/checkbox-control.d.ts.map +0 -1
  2981. package/build-types/validated-form-controls/test/number-control.d.ts +0 -2
  2982. package/build-types/validated-form-controls/test/number-control.d.ts.map +0 -1
  2983. package/build-types/validated-form-controls/test/radio-control.d.ts +0 -2
  2984. package/build-types/validated-form-controls/test/radio-control.d.ts.map +0 -1
  2985. package/build-types/validated-form-controls/test/select-control.d.ts +0 -2
  2986. package/build-types/validated-form-controls/test/select-control.d.ts.map +0 -1
  2987. package/build-types/validated-form-controls/test/text-control.d.ts +0 -2
  2988. package/build-types/validated-form-controls/test/text-control.d.ts.map +0 -1
  2989. package/build-types/visually-hidden/test/index.d.ts +0 -2
  2990. package/build-types/visually-hidden/test/index.d.ts.map +0 -1
  2991. package/src/calendar/date-calendar/README.md +0 -261
  2992. package/src/calendar/date-calendar/index.tsx +0 -69
  2993. package/src/calendar/date-range-calendar/README.md +0 -298
  2994. package/src/calendar/date-range-calendar/index.tsx +0 -215
  2995. package/src/calendar/index.tsx +0 -3
  2996. package/src/calendar/stories/date-calendar.story.tsx +0 -233
  2997. package/src/calendar/stories/date-range-calendar.story.tsx +0 -242
  2998. package/src/calendar/style.scss +0 -440
  2999. package/src/calendar/test/__utils__/index.ts +0 -56
  3000. package/src/calendar/test/date-calendar.tsx +0 -975
  3001. package/src/calendar/test/date-range-calendar.tsx +0 -1701
  3002. package/src/calendar/types.ts +0 -354
  3003. package/src/calendar/utils/constants.ts +0 -63
  3004. package/src/calendar/utils/day-cell.tsx +0 -133
  3005. package/src/calendar/utils/misc.ts +0 -3
  3006. package/src/calendar/utils/use-localization-props.ts +0 -168
  3007. package/src/item-group/styles.ts +0 -116
  3008. package/src/spinner/styles.ts +0 -50
  3009. package/src/utils/with-ignore-ime-events.ts +0 -32
  3010. package/src/validated-form-controls/components/checkbox-control.tsx +0 -49
  3011. package/src/validated-form-controls/components/number-control.tsx +0 -41
  3012. package/src/validated-form-controls/components/radio-control.tsx +0 -47
  3013. package/src/validated-form-controls/components/select-control.tsx +0 -47
  3014. package/src/validated-form-controls/components/stories/checkbox-control.story.tsx +0 -60
  3015. package/src/validated-form-controls/components/stories/number-control.story.tsx +0 -65
  3016. package/src/validated-form-controls/components/stories/radio-control.story.tsx +0 -67
  3017. package/src/validated-form-controls/components/stories/select-control.story.tsx +0 -63
  3018. package/src/validated-form-controls/components/stories/text-control.story.tsx +0 -61
  3019. package/src/validated-form-controls/components/text-control.tsx +0 -41
  3020. package/src/validated-form-controls/test/checkbox-control.tsx +0 -49
  3021. package/src/validated-form-controls/test/number-control.tsx +0 -44
  3022. package/src/validated-form-controls/test/radio-control.tsx +0 -61
  3023. package/src/validated-form-controls/test/select-control.tsx +0 -57
  3024. package/src/validated-form-controls/test/text-control.tsx +0 -49
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/tools-panel/tools-panel/hook.ts", "../../../../style-runtime/src/index.ts", "../../../src/tools-panel/style.module.scss"],
4
- "sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { useCallback, useEffect, useMemo, useReducer, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport styles from '../style.module.scss';\nimport { useContextSystem } from '../../context';\nfunction emptyMenuItems() {\n return {\n default: {},\n optional: {}\n };\n}\nfunction emptyState() {\n return {\n panelItems: [],\n menuItemOrder: [],\n menuItems: emptyMenuItems()\n };\n}\nconst generateMenuItems = ({\n panelItems,\n shouldReset,\n currentMenuItems,\n menuItemOrder\n}) => {\n const newMenuItems = emptyMenuItems();\n const menuItems = emptyMenuItems();\n panelItems.forEach(({\n hasValue,\n isShownByDefault,\n label\n }) => {\n const group = isShownByDefault ? 'default' : 'optional';\n\n // If a menu item for this label has already been flagged as customized\n // (for default controls), or toggled on (for optional controls), do not\n // overwrite its value as those controls would lose that state.\n const existingItemValue = currentMenuItems?.[group]?.[label];\n const value = existingItemValue ? existingItemValue : hasValue();\n newMenuItems[group][label] = shouldReset ? false : value;\n });\n\n // Loop the known, previously registered items first to maintain menu order.\n menuItemOrder.forEach(key => {\n if (newMenuItems.default.hasOwnProperty(key)) {\n menuItems.default[key] = newMenuItems.default[key];\n }\n if (newMenuItems.optional.hasOwnProperty(key)) {\n menuItems.optional[key] = newMenuItems.optional[key];\n }\n });\n\n // Loop newMenuItems object adding any that aren't in the known items order.\n Object.keys(newMenuItems.default).forEach(key => {\n if (!menuItems.default.hasOwnProperty(key)) {\n menuItems.default[key] = newMenuItems.default[key];\n }\n });\n Object.keys(newMenuItems.optional).forEach(key => {\n if (!menuItems.optional.hasOwnProperty(key)) {\n menuItems.optional[key] = newMenuItems.optional[key];\n }\n });\n return menuItems;\n};\nfunction panelItemsReducer(panelItems, action) {\n switch (action.type) {\n case 'REGISTER_PANEL':\n {\n const newItems = [...panelItems];\n // If an item with this label has already been registered, remove it\n // first. This can happen when an item is moved between the default\n // and optional groups.\n const existingIndex = newItems.findIndex(oldItem => oldItem.label === action.item.label);\n if (existingIndex !== -1) {\n newItems.splice(existingIndex, 1);\n }\n newItems.push(action.item);\n return newItems;\n }\n case 'UNREGISTER_PANEL':\n {\n const index = panelItems.findIndex(item => item.label === action.label);\n if (index !== -1) {\n const newItems = [...panelItems];\n newItems.splice(index, 1);\n return newItems;\n }\n return panelItems;\n }\n default:\n return panelItems;\n }\n}\nfunction menuItemOrderReducer(menuItemOrder, action) {\n switch (action.type) {\n case 'REGISTER_PANEL':\n {\n // Track the initial order of item registration. This is used for\n // maintaining menu item order later.\n if (menuItemOrder.includes(action.item.label)) {\n return menuItemOrder;\n }\n return [...menuItemOrder, action.item.label];\n }\n default:\n return menuItemOrder;\n }\n}\nfunction menuItemsReducer(state, action) {\n switch (action.type) {\n case 'REGISTER_PANEL':\n case 'UNREGISTER_PANEL':\n // generate new menu items from original `menuItems` and updated `panelItems` and `menuItemOrder`\n return generateMenuItems({\n currentMenuItems: state.menuItems,\n panelItems: state.panelItems,\n menuItemOrder: state.menuItemOrder,\n shouldReset: false\n });\n case 'RESET_ALL':\n return generateMenuItems({\n panelItems: state.panelItems,\n menuItemOrder: state.menuItemOrder,\n shouldReset: true\n });\n case 'UPDATE_VALUE':\n {\n const oldValue = state.menuItems[action.group][action.label];\n if (action.value === oldValue) {\n return state.menuItems;\n }\n return {\n ...state.menuItems,\n [action.group]: {\n ...state.menuItems[action.group],\n [action.label]: action.value\n }\n };\n }\n case 'TOGGLE_VALUE':\n {\n const currentItem = state.panelItems.find(item => item.label === action.label);\n if (!currentItem) {\n return state.menuItems;\n }\n const menuGroup = currentItem.isShownByDefault ? 'default' : 'optional';\n const newMenuItems = {\n ...state.menuItems,\n [menuGroup]: {\n ...state.menuItems[menuGroup],\n [action.label]: !state.menuItems[menuGroup][action.label]\n }\n };\n return newMenuItems;\n }\n default:\n return state.menuItems;\n }\n}\nfunction panelReducer(state, action) {\n const panelItems = panelItemsReducer(state.panelItems, action);\n const menuItemOrder = menuItemOrderReducer(state.menuItemOrder, action);\n // `menuItemsReducer` is a bit unusual because it generates new state from original `menuItems`\n // and the updated `panelItems` and `menuItemOrder`.\n const menuItems = menuItemsReducer({\n panelItems,\n menuItemOrder,\n menuItems: state.menuItems\n }, action);\n return {\n panelItems,\n menuItemOrder,\n menuItems\n };\n}\nfunction resetAllFiltersReducer(filters, action) {\n switch (action.type) {\n case 'REGISTER':\n return [...filters, action.filter];\n case 'UNREGISTER':\n return filters.filter(f => f !== action.filter);\n default:\n return filters;\n }\n}\nconst isMenuItemTypeEmpty = obj => Object.keys(obj).length === 0;\nexport function useToolsPanel(props) {\n const {\n className,\n headingLevel = 2,\n resetAll,\n panelId,\n hasInnerWrapper = false,\n shouldRenderPlaceholderItems = false,\n __experimentalFirstVisibleItemClass,\n __experimentalLastVisibleItemClass,\n ...otherProps\n } = useContextSystem(props, 'ToolsPanel');\n const isResettingRef = useRef(false);\n const wasResetting = isResettingRef.current;\n\n // `isResettingRef` is cleared via this hook to effectively batch together\n // the resetAll task. Without this, the flag is cleared after the first\n // control updates and forces a rerender with subsequent controls then\n // believing they need to reset, unfortunately using stale data.\n useEffect(() => {\n if (wasResetting) {\n isResettingRef.current = false;\n }\n }, [wasResetting]);\n\n // Allow panel items to register themselves.\n const [{\n panelItems,\n menuItems\n }, panelDispatch] = useReducer(panelReducer, undefined, emptyState);\n const [resetAllFilters, dispatchResetAllFilters] = useReducer(resetAllFiltersReducer, []);\n const registerPanelItem = useCallback(item => {\n // Add item to panel items.\n panelDispatch({\n type: 'REGISTER_PANEL',\n item\n });\n }, []);\n\n // Panels need to deregister on unmount to avoid orphans in menu state.\n // This is an issue when panel items are being injected via SlotFills.\n const deregisterPanelItem = useCallback(label => {\n // When switching selections between components injecting matching\n // controls, e.g. both panels have a \"padding\" control, the\n // deregistration of the first panel doesn't occur until after the\n // registration of the next.\n panelDispatch({\n type: 'UNREGISTER_PANEL',\n label\n });\n }, []);\n const registerResetAllFilter = useCallback(filter => {\n dispatchResetAllFilters({\n type: 'REGISTER',\n filter\n });\n }, []);\n const deregisterResetAllFilter = useCallback(filter => {\n dispatchResetAllFilters({\n type: 'UNREGISTER',\n filter\n });\n }, []);\n\n // Updates the status of the panel’s menu items. For default items the\n // value represents whether it differs from the default and for optional\n // items whether the item is shown.\n const flagItemCustomization = useCallback((value, label, group = 'default') => {\n panelDispatch({\n type: 'UPDATE_VALUE',\n group,\n label,\n value\n });\n }, []);\n\n // Whether all optional menu items are hidden or not must be tracked\n // in order to later determine if the panel display is empty and handle\n // conditional display of a plus icon to indicate the presence of further\n // menu items.\n const areAllOptionalControlsHidden = useMemo(() => {\n return isMenuItemTypeEmpty(menuItems.default) && !isMenuItemTypeEmpty(menuItems.optional) && Object.values(menuItems.optional).every(isSelected => !isSelected);\n }, [menuItems]);\n const classes = clsx(styles['tools-panel'], hasInnerWrapper && styles['tools-panel-with-inner-wrapper'], areAllOptionalControlsHidden && styles['tools-panel-hidden-inner-wrapper'], className);\n\n // Toggle the checked state of a menu item which is then used to determine\n // display of the item within the panel.\n const toggleItem = useCallback(label => {\n panelDispatch({\n type: 'TOGGLE_VALUE',\n label\n });\n }, []);\n\n // Resets display of children and executes resetAll callback if available.\n const resetAllItems = useCallback(() => {\n if (typeof resetAll === 'function') {\n isResettingRef.current = true;\n resetAll(resetAllFilters);\n }\n\n // Turn off display of all non-default items.\n panelDispatch({\n type: 'RESET_ALL'\n });\n }, [resetAllFilters, resetAll]);\n\n // Assist ItemGroup styling when there are potentially hidden placeholder\n // items by identifying first & last items that are toggled on for display.\n const getFirstVisibleItemLabel = items => {\n const optionalItems = menuItems.optional || {};\n const firstItem = items.find(item => item.isShownByDefault || optionalItems[item.label]);\n return firstItem?.label;\n };\n const firstDisplayedItem = getFirstVisibleItemLabel(panelItems);\n const lastDisplayedItem = getFirstVisibleItemLabel([...panelItems].reverse());\n const hasMenuItems = panelItems.length > 0;\n const panelContext = useMemo(() => ({\n areAllOptionalControlsHidden,\n deregisterPanelItem,\n deregisterResetAllFilter,\n firstDisplayedItem,\n flagItemCustomization,\n hasMenuItems,\n isResetting: isResettingRef.current,\n lastDisplayedItem,\n menuItems,\n panelId,\n registerPanelItem,\n registerResetAllFilter,\n shouldRenderPlaceholderItems,\n __experimentalFirstVisibleItemClass,\n __experimentalLastVisibleItemClass\n }), [areAllOptionalControlsHidden, deregisterPanelItem, deregisterResetAllFilter, firstDisplayedItem, flagItemCustomization, lastDisplayedItem, menuItems, panelId, hasMenuItems, registerResetAllFilter, registerPanelItem, shouldRenderPlaceholderItems, __experimentalFirstVisibleItemClass, __experimentalLastVisibleItemClass]);\n return {\n ...otherProps,\n headingLevel,\n panelContext,\n resetAllItems,\n toggleItem,\n className: classes\n };\n}", "const STYLE_HASH_ATTRIBUTE = 'data-wp-hash';\n\n/**\n * Returns the shared style runtime registry.\n *\n * The registry is stored on `globalThis` so separately bundled copies of this\n * package can coordinate through the same document and style maps.\n *\n * @return The shared runtime registry.\n */\nfunction getRuntime() {\n const globalScope = globalThis;\n if (globalScope.__wpStyleRuntime) {\n return globalScope.__wpStyleRuntime;\n }\n globalScope.__wpStyleRuntime = {\n documents: new Map(),\n styles: new Map(),\n injectedStyles: new WeakMap()\n };\n if (typeof document !== 'undefined') {\n registerDocument(document);\n }\n return globalScope.__wpStyleRuntime;\n}\n\n/**\n * Checks whether a document already contains a style tag for a hash.\n *\n * @param targetDocument Document to inspect.\n * @param hash Stable hash for the transformed CSS.\n *\n * @return Whether the style hash already exists in the document.\n */\nfunction documentContainsStyleHash(targetDocument, hash) {\n if (!targetDocument.head) {\n return false;\n }\n for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {\n if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Injects a registered style into a document, unless that document already\n * contains a style tag for the same hash.\n *\n * @param targetDocument Document to inject the style into.\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nfunction injectStyle(targetDocument, hash, css) {\n if (!targetDocument.head) {\n return;\n }\n const runtime = getRuntime();\n let injectedStyles = runtime.injectedStyles.get(targetDocument);\n if (!injectedStyles) {\n injectedStyles = new Set();\n runtime.injectedStyles.set(targetDocument, injectedStyles);\n }\n if (injectedStyles.has(hash)) {\n return;\n }\n\n // Older generated CSS module output can still inject matching style tags\n // after this document's cache is created, so keep the DOM as the fallback\n // source of truth on cache misses.\n if (documentContainsStyleHash(targetDocument, hash)) {\n injectedStyles.add(hash);\n return;\n }\n const style = targetDocument.createElement('style');\n style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);\n style.appendChild(targetDocument.createTextNode(css));\n targetDocument.head.appendChild(style);\n injectedStyles.add(hash);\n}\n\n/**\n * Registers a document as a style injection target.\n *\n * Existing registered styles are replayed into the document immediately.\n * Documents are reference-counted so multiple providers can safely register the\n * same document without one cleanup removing it while another registration is\n * still active.\n *\n * @param targetDocument Document to receive registered styles.\n * @return Cleanup function that unregisters this document registration.\n */\nexport function registerDocument(targetDocument) {\n const runtime = getRuntime();\n runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);\n for (const [hash, css] of runtime.styles) {\n injectStyle(targetDocument, hash, css);\n }\n return () => {\n const count = runtime.documents.get(targetDocument);\n if (count === undefined) {\n return;\n }\n if (count <= 1) {\n runtime.documents.delete(targetDocument);\n return;\n }\n runtime.documents.set(targetDocument, count - 1);\n };\n}\n\n/**\n * Registers a style and injects it into all registered documents.\n *\n * The hash is used as the deduplication key, so calling this repeatedly with\n * the same hash will not add duplicate style tags to a document.\n * Registered styles are retained for the lifetime of the page so they can be\n * replayed into documents that are registered later.\n *\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nexport function registerStyle(hash, css) {\n const runtime = getRuntime();\n runtime.styles.set(hash, css);\n for (const targetDocument of runtime.documents.keys()) {\n injectStyle(targetDocument, hash, css);\n }\n}", "import { registerStyle } from '@wordpress/style-runtime';\nif (typeof process === 'undefined' || process.env.NODE_ENV !== 'test') {\n\tregisterStyle(\"29b739f451\", \"._62d714739f4dc308__tools-panel{border-top:1px solid #ddd;margin-top:-1px;padding:16px}._40db7f4f897b683d__tools-panel-with-inner-wrapper>div:not(:first-of-type){column-gap:16px;display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}._95a15674966f30a3__tools-panel-hidden-inner-wrapper>div:not(:first-of-type){display:none}._322a049b9b7d8674__tools-panel-header{gap:8px;grid-column:1/-1}._322a049b9b7d8674__tools-panel-header .components-dropdown-menu{line-height:0;margin:-4px 0}._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header .components-dropdown-menu__toggle{min-width:24px;padding:0}.b92a382d3b30104d__tools-panel-heading.b92a382d3b30104d__tools-panel-heading{font-size:inherit;line-height:normal;margin:0}._8005d68fffa9db91__tools-panel-item{grid-column:1/-1}._8005d68fffa9db91__tools-panel-item>div,._8005d68fffa9db91__tools-panel-item>fieldset{margin-bottom:0;max-width:100%;padding-bottom:0}._8005d68fffa9db91__tools-panel-item .components-base-control__help,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control .components-base-control__field:last-child{margin-bottom:0}._4f55e1a6e373746e__tools-panel-item-placeholder{display:none}.d40032517bff9e12__dropdown-menu{min-width:200px}.f135b96aa96ca6bb__reset-label{color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.4;margin-inline-start:12px;text-transform:uppercase}._69b138dfa5570d9c__default-controls-item{color:#1e1e1e}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]{color:#757575;opacity:1}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]:hover{color:#757575}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true] .f135b96aa96ca6bb__reset-label{opacity:.3}\");\n}\nexport default {\"tools-panel\":\"_62d714739f4dc308__tools-panel\",\"tools-panel-with-inner-wrapper\":\"_40db7f4f897b683d__tools-panel-with-inner-wrapper\",\"tools-panel-hidden-inner-wrapper\":\"_95a15674966f30a3__tools-panel-hidden-inner-wrapper\",\"tools-panel-header\":\"_322a049b9b7d8674__tools-panel-header\",\"tools-panel-heading\":\"b92a382d3b30104d__tools-panel-heading\",\"tools-panel-item\":\"_8005d68fffa9db91__tools-panel-item\",\"tools-panel-item-placeholder\":\"_4f55e1a6e373746e__tools-panel-item-placeholder\",\"dropdown-menu\":\"d40032517bff9e12__dropdown-menu\",\"reset-label\":\"f135b96aa96ca6bb__reset-label\",\"default-controls-item\":\"_69b138dfa5570d9c__default-controls-item\"};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAiB;AAKjB,qBAAoE;;;ACRpE,IAAM,uBAAuB;AAU7B,SAAS,aAAa;AACpB,QAAM,cAAc;AACpB,MAAI,YAAY,kBAAkB;AAChC,WAAO,YAAY;AAAA,EACrB;AACA,cAAY,mBAAmB;AAAA,IAC7B,WAAW,oBAAI,IAAI;AAAA,IACnB,QAAQ,oBAAI,IAAI;AAAA,IAChB,gBAAgB,oBAAI,QAAQ;AAAA,EAC9B;AACA,MAAI,OAAO,aAAa,aAAa;AACnC,qBAAiB,QAAQ;AAAA,EAC3B;AACA,SAAO,YAAY;AACrB;AAUA,SAAS,0BAA0B,gBAAgB,MAAM;AACvD,MAAI,CAAC,eAAe,MAAM;AACxB,WAAO;AAAA,EACT;AACA,aAAW,SAAS,eAAe,KAAK,iBAAiB,SAAS,oBAAoB,GAAG,GAAG;AAC1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BAAyB,UAAU;AAC9D,QAAM,oBAAoB,yBAAyB,CAAC,GAAG,UAAU,EAAE,QAAQ,CAAC;AAC5E,QAAM,eAAe,WAAW,SAAS;AACzC,QAAM,mBAAe,wBAAQ,OAAO;AAAA,IAClC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,aAAa,eAAe;AAAA,IAC5B;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,CAAC,8BAA8B,qBAAqB,0BAA0B,oBAAoB,uBAAuB,mBAAmB,WAAW,SAAS,cAAc,wBAAwB,mBAAmB,8BAA8B,qCAAqC,kCAAkC,CAAC;AACnU,SAAO;AAAA,IACL,GAAG;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,EACb;AACF;",
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { useCallback, useEffect, useMemo, useReducer, useRef } from '@wordpress/element';\nimport styles from '../style.module.scss';\nimport { useContextSystem } from '../../context';\nfunction emptyMenuItems() {\n return {\n default: {},\n optional: {}\n };\n}\nfunction emptyState() {\n return {\n panelItems: [],\n menuItemOrder: [],\n menuItems: emptyMenuItems()\n };\n}\nconst generateMenuItems = ({\n panelItems,\n shouldReset,\n currentMenuItems,\n menuItemOrder\n}) => {\n const newMenuItems = emptyMenuItems();\n const menuItems = emptyMenuItems();\n panelItems.forEach(({\n hasValue,\n isShownByDefault,\n label\n }) => {\n const group = isShownByDefault ? 'default' : 'optional';\n\n // If a menu item for this label has already been flagged as customized\n // (for default controls), or toggled on (for optional controls), do not\n // overwrite its value as those controls would lose that state.\n const existingItemValue = currentMenuItems?.[group]?.[label];\n const value = existingItemValue ? existingItemValue : hasValue();\n newMenuItems[group][label] = shouldReset ? false : value;\n });\n\n // Loop the known, previously registered items first to maintain menu order.\n menuItemOrder.forEach(key => {\n if (newMenuItems.default.hasOwnProperty(key)) {\n menuItems.default[key] = newMenuItems.default[key];\n }\n if (newMenuItems.optional.hasOwnProperty(key)) {\n menuItems.optional[key] = newMenuItems.optional[key];\n }\n });\n\n // Loop newMenuItems object adding any that aren't in the known items order.\n Object.keys(newMenuItems.default).forEach(key => {\n if (!menuItems.default.hasOwnProperty(key)) {\n menuItems.default[key] = newMenuItems.default[key];\n }\n });\n Object.keys(newMenuItems.optional).forEach(key => {\n if (!menuItems.optional.hasOwnProperty(key)) {\n menuItems.optional[key] = newMenuItems.optional[key];\n }\n });\n return menuItems;\n};\nfunction panelItemsReducer(panelItems, action) {\n switch (action.type) {\n case 'REGISTER_PANEL':\n {\n const newItems = [...panelItems];\n // If an item with this label has already been registered, remove it\n // first. This can happen when an item is moved between the default\n // and optional groups.\n const existingIndex = newItems.findIndex(oldItem => oldItem.label === action.item.label);\n if (existingIndex !== -1) {\n newItems.splice(existingIndex, 1);\n }\n newItems.push(action.item);\n return newItems;\n }\n case 'UNREGISTER_PANEL':\n {\n const index = panelItems.findIndex(item => item.label === action.label);\n if (index !== -1) {\n const newItems = [...panelItems];\n newItems.splice(index, 1);\n return newItems;\n }\n return panelItems;\n }\n default:\n return panelItems;\n }\n}\nfunction menuItemOrderReducer(menuItemOrder, action) {\n switch (action.type) {\n case 'REGISTER_PANEL':\n {\n // Track the initial order of item registration. This is used for\n // maintaining menu item order later.\n if (menuItemOrder.includes(action.item.label)) {\n return menuItemOrder;\n }\n return [...menuItemOrder, action.item.label];\n }\n default:\n return menuItemOrder;\n }\n}\nfunction menuItemsReducer(state, action) {\n switch (action.type) {\n case 'REGISTER_PANEL':\n case 'UNREGISTER_PANEL':\n // generate new menu items from original `menuItems` and updated `panelItems` and `menuItemOrder`\n return generateMenuItems({\n currentMenuItems: state.menuItems,\n panelItems: state.panelItems,\n menuItemOrder: state.menuItemOrder,\n shouldReset: false\n });\n case 'RESET_ALL':\n return generateMenuItems({\n panelItems: state.panelItems,\n menuItemOrder: state.menuItemOrder,\n shouldReset: true\n });\n case 'UPDATE_VALUE':\n {\n const oldValue = state.menuItems[action.group][action.label];\n if (action.value === oldValue) {\n return state.menuItems;\n }\n return {\n ...state.menuItems,\n [action.group]: {\n ...state.menuItems[action.group],\n [action.label]: action.value\n }\n };\n }\n case 'TOGGLE_VALUE':\n {\n const currentItem = state.panelItems.find(item => item.label === action.label);\n if (!currentItem) {\n return state.menuItems;\n }\n const menuGroup = currentItem.isShownByDefault ? 'default' : 'optional';\n const newMenuItems = {\n ...state.menuItems,\n [menuGroup]: {\n ...state.menuItems[menuGroup],\n [action.label]: !state.menuItems[menuGroup][action.label]\n }\n };\n return newMenuItems;\n }\n default:\n return state.menuItems;\n }\n}\nfunction panelReducer(state, action) {\n const panelItems = panelItemsReducer(state.panelItems, action);\n const menuItemOrder = menuItemOrderReducer(state.menuItemOrder, action);\n // `menuItemsReducer` is a bit unusual because it generates new state from original `menuItems`\n // and the updated `panelItems` and `menuItemOrder`.\n const menuItems = menuItemsReducer({\n panelItems,\n menuItemOrder,\n menuItems: state.menuItems\n }, action);\n return {\n panelItems,\n menuItemOrder,\n menuItems\n };\n}\nfunction resetAllFiltersReducer(filters, action) {\n switch (action.type) {\n case 'REGISTER':\n return [...filters, action.filter];\n case 'UNREGISTER':\n return filters.filter(f => f !== action.filter);\n default:\n return filters;\n }\n}\nconst isMenuItemTypeEmpty = obj => Object.keys(obj).length === 0;\nexport function useToolsPanel(props) {\n const {\n className,\n headingLevel = 2,\n resetAll,\n panelId,\n hasInnerWrapper = false,\n shouldRenderPlaceholderItems = false,\n __experimentalFirstVisibleItemClass,\n __experimentalLastVisibleItemClass,\n ...otherProps\n } = useContextSystem(props, 'ToolsPanel');\n const isResettingRef = useRef(false);\n const wasResetting = isResettingRef.current;\n\n // `isResettingRef` is cleared via this hook to effectively batch together\n // the resetAll task. Without this, the flag is cleared after the first\n // control updates and forces a rerender with subsequent controls then\n // believing they need to reset, unfortunately using stale data.\n useEffect(() => {\n if (wasResetting) {\n isResettingRef.current = false;\n }\n }, [wasResetting]);\n\n // Allow panel items to register themselves.\n const [{\n panelItems,\n menuItems\n }, panelDispatch] = useReducer(panelReducer, undefined, emptyState);\n const [resetAllFilters, dispatchResetAllFilters] = useReducer(resetAllFiltersReducer, []);\n const registerPanelItem = useCallback(item => {\n // Add item to panel items.\n panelDispatch({\n type: 'REGISTER_PANEL',\n item\n });\n }, []);\n\n // Panels need to deregister on unmount to avoid orphans in menu state.\n // This is an issue when panel items are being injected via SlotFills.\n const deregisterPanelItem = useCallback(label => {\n // When switching selections between components injecting matching\n // controls, e.g. both panels have a \"padding\" control, the\n // deregistration of the first panel doesn't occur until after the\n // registration of the next.\n panelDispatch({\n type: 'UNREGISTER_PANEL',\n label\n });\n }, []);\n const registerResetAllFilter = useCallback(filter => {\n dispatchResetAllFilters({\n type: 'REGISTER',\n filter\n });\n }, []);\n const deregisterResetAllFilter = useCallback(filter => {\n dispatchResetAllFilters({\n type: 'UNREGISTER',\n filter\n });\n }, []);\n\n // Updates the status of the panel’s menu items. For default items the\n // value represents whether it differs from the default and for optional\n // items whether the item is shown.\n const flagItemCustomization = useCallback((value, label, group = 'default') => {\n panelDispatch({\n type: 'UPDATE_VALUE',\n group,\n label,\n value\n });\n }, []);\n\n // Whether all optional menu items are hidden or not must be tracked\n // in order to later determine if the panel display is empty and handle\n // conditional display of a plus icon to indicate the presence of further\n // menu items.\n const areAllOptionalControlsHidden = useMemo(() => {\n return isMenuItemTypeEmpty(menuItems.default) && !isMenuItemTypeEmpty(menuItems.optional) && Object.values(menuItems.optional).every(isSelected => !isSelected);\n }, [menuItems]);\n const classes = clsx(styles['tools-panel'], hasInnerWrapper && styles['tools-panel-with-inner-wrapper'], areAllOptionalControlsHidden && styles['tools-panel-hidden-inner-wrapper'], className);\n\n // Toggle the checked state of a menu item which is then used to determine\n // display of the item within the panel.\n const toggleItem = useCallback(label => {\n panelDispatch({\n type: 'TOGGLE_VALUE',\n label\n });\n }, []);\n\n // Resets display of children and executes resetAll callback if available.\n const resetAllItems = useCallback(() => {\n if (typeof resetAll === 'function') {\n isResettingRef.current = true;\n resetAll(resetAllFilters);\n }\n\n // Turn off display of all non-default items.\n panelDispatch({\n type: 'RESET_ALL'\n });\n }, [resetAllFilters, resetAll]);\n\n // Assist ItemGroup styling when there are potentially hidden placeholder\n // items by identifying first & last items that are toggled on for display.\n const getFirstVisibleItemLabel = items => {\n const optionalItems = menuItems.optional || {};\n const firstItem = items.find(item => item.isShownByDefault || optionalItems[item.label]);\n return firstItem?.label;\n };\n const firstDisplayedItem = getFirstVisibleItemLabel(panelItems);\n const lastDisplayedItem = getFirstVisibleItemLabel([...panelItems].reverse());\n const hasMenuItems = panelItems.length > 0;\n const panelContext = useMemo(() => ({\n areAllOptionalControlsHidden,\n deregisterPanelItem,\n deregisterResetAllFilter,\n firstDisplayedItem,\n flagItemCustomization,\n hasMenuItems,\n isResetting: isResettingRef.current,\n lastDisplayedItem,\n menuItems,\n panelId,\n registerPanelItem,\n registerResetAllFilter,\n shouldRenderPlaceholderItems,\n __experimentalFirstVisibleItemClass,\n __experimentalLastVisibleItemClass\n }), [areAllOptionalControlsHidden, deregisterPanelItem, deregisterResetAllFilter, firstDisplayedItem, flagItemCustomization, lastDisplayedItem, menuItems, panelId, hasMenuItems, registerResetAllFilter, registerPanelItem, shouldRenderPlaceholderItems, __experimentalFirstVisibleItemClass, __experimentalLastVisibleItemClass]);\n return {\n ...otherProps,\n headingLevel,\n panelContext,\n resetAllItems,\n toggleItem,\n className: classes\n };\n}", "const STYLE_HASH_ATTRIBUTE = 'data-wp-hash';\n\n/**\n * Returns the shared style runtime registry.\n *\n * The registry is stored on `globalThis` so separately bundled copies of this\n * package can coordinate through the same document and style maps.\n *\n * @return The shared runtime registry.\n */\nfunction getRuntime() {\n const globalScope = globalThis;\n if (globalScope.__wpStyleRuntime) {\n return globalScope.__wpStyleRuntime;\n }\n globalScope.__wpStyleRuntime = {\n documents: new Map(),\n styles: new Map(),\n injectedStyles: new WeakMap()\n };\n if (typeof document !== 'undefined') {\n registerDocument(document);\n }\n return globalScope.__wpStyleRuntime;\n}\n\n/**\n * Checks whether a document already contains a style tag for a hash.\n *\n * @param targetDocument Document to inspect.\n * @param hash Stable hash for the transformed CSS.\n *\n * @return Whether the style hash already exists in the document.\n */\nfunction documentContainsStyleHash(targetDocument, hash) {\n if (!targetDocument.head) {\n return false;\n }\n for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {\n if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Injects a registered style into a document, unless that document already\n * contains a style tag for the same hash.\n *\n * @param targetDocument Document to inject the style into.\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nfunction injectStyle(targetDocument, hash, css) {\n if (!targetDocument.head) {\n return;\n }\n const runtime = getRuntime();\n let injectedStyles = runtime.injectedStyles.get(targetDocument);\n if (!injectedStyles) {\n injectedStyles = new Set();\n runtime.injectedStyles.set(targetDocument, injectedStyles);\n }\n if (injectedStyles.has(hash)) {\n return;\n }\n\n // Older generated CSS module output can still inject matching style tags\n // after this document's cache is created, so keep the DOM as the fallback\n // source of truth on cache misses.\n if (documentContainsStyleHash(targetDocument, hash)) {\n injectedStyles.add(hash);\n return;\n }\n const style = targetDocument.createElement('style');\n style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);\n style.appendChild(targetDocument.createTextNode(css));\n targetDocument.head.appendChild(style);\n injectedStyles.add(hash);\n}\n\n/**\n * Registers a document as a style injection target.\n *\n * Existing registered styles are replayed into the document immediately.\n * Documents are reference-counted so multiple providers can safely register the\n * same document without one cleanup removing it while another registration is\n * still active.\n *\n * @param targetDocument Document to receive registered styles.\n * @return Cleanup function that unregisters this document registration.\n */\nexport function registerDocument(targetDocument) {\n const runtime = getRuntime();\n runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);\n for (const [hash, css] of runtime.styles) {\n injectStyle(targetDocument, hash, css);\n }\n return () => {\n const count = runtime.documents.get(targetDocument);\n if (count === undefined) {\n return;\n }\n if (count <= 1) {\n runtime.documents.delete(targetDocument);\n return;\n }\n runtime.documents.set(targetDocument, count - 1);\n };\n}\n\n/**\n * Registers a style and injects it into all registered documents.\n *\n * The hash is used as the deduplication key, so calling this repeatedly with\n * the same hash will not add duplicate style tags to a document.\n * Registered styles are retained for the lifetime of the page so they can be\n * replayed into documents that are registered later.\n *\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nexport function registerStyle(hash, css) {\n const runtime = getRuntime();\n runtime.styles.set(hash, css);\n for (const targetDocument of runtime.documents.keys()) {\n injectStyle(targetDocument, hash, css);\n }\n}", "import { registerStyle } from '@wordpress/style-runtime';\nif (typeof process === 'undefined' || process.env.NODE_ENV !== 'test') {\n\tregisterStyle(\"29b739f451\", \"._62d714739f4dc308__tools-panel{border-top:1px solid #ddd;margin-top:-1px;padding:16px}._40db7f4f897b683d__tools-panel-with-inner-wrapper>div:not(:first-of-type){column-gap:16px;display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}._95a15674966f30a3__tools-panel-hidden-inner-wrapper>div:not(:first-of-type){display:none}._322a049b9b7d8674__tools-panel-header{gap:8px;grid-column:1/-1}._322a049b9b7d8674__tools-panel-header .components-dropdown-menu{line-height:0;margin:-4px 0}._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header .components-dropdown-menu__toggle{min-width:24px;padding:0}.b92a382d3b30104d__tools-panel-heading.b92a382d3b30104d__tools-panel-heading{font-size:inherit;line-height:normal;margin:0}._8005d68fffa9db91__tools-panel-item{grid-column:1/-1}._8005d68fffa9db91__tools-panel-item>div,._8005d68fffa9db91__tools-panel-item>fieldset{margin-bottom:0;max-width:100%;padding-bottom:0}._8005d68fffa9db91__tools-panel-item .components-base-control__help,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control .components-base-control__field:last-child{margin-bottom:0}._4f55e1a6e373746e__tools-panel-item-placeholder{display:none}.d40032517bff9e12__dropdown-menu{min-width:200px}.f135b96aa96ca6bb__reset-label{color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.4;margin-inline-start:12px;text-transform:uppercase}._69b138dfa5570d9c__default-controls-item{color:#1e1e1e}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]{color:#757575;opacity:1}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]:hover{color:#757575}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true] .f135b96aa96ca6bb__reset-label{opacity:.3}\");\n}\nexport default {\"tools-panel\":\"_62d714739f4dc308__tools-panel\",\"tools-panel-with-inner-wrapper\":\"_40db7f4f897b683d__tools-panel-with-inner-wrapper\",\"tools-panel-hidden-inner-wrapper\":\"_95a15674966f30a3__tools-panel-hidden-inner-wrapper\",\"tools-panel-header\":\"_322a049b9b7d8674__tools-panel-header\",\"tools-panel-heading\":\"b92a382d3b30104d__tools-panel-heading\",\"tools-panel-item\":\"_8005d68fffa9db91__tools-panel-item\",\"tools-panel-item-placeholder\":\"_4f55e1a6e373746e__tools-panel-item-placeholder\",\"dropdown-menu\":\"d40032517bff9e12__dropdown-menu\",\"reset-label\":\"f135b96aa96ca6bb__reset-label\",\"default-controls-item\":\"_69b138dfa5570d9c__default-controls-item\"};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,qBAAoE;;;ACDpE,IAAM,uBAAuB;AAU7B,SAAS,aA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A,MACN;AAAA,IACF,CAAC;AAAA,EACH,GAAG,CAAC,CAAC;AAGL,QAAM,oBAAgB,4BAAY,MAAM;AACtC,QAAI,OAAO,aAAa,YAAY;AAClC,qBAAe,UAAU;AACzB,eAAS,eAAe;AAAA,IAC1B;AAGA,kBAAc;AAAA,MACZ,MAAM;AAAA,IACR,CAAC;AAAA,EACH,GAAG,CAAC,iBAAiB,QAAQ,CAAC;AAI9B,QAAM,2BAA2B,WAAS;AACxC,UAAM,gBAAgB,UAAU,YAAY,CAAC;AAC7C,UAAM,YAAY,MAAM,KAAK,UAAQ,KAAK,oBAAoB,cAAc,KAAK,KAAK,CAAC;AACvF,WAAO,WAAW;AAAA,EACpB;AACA,QAAM,qBAAqB,yBAAyB,UAAU;AAC9D,QAAM,oBAAoB,yBAAyB,CAAC,GAAG,UAAU,EAAE,QAAQ,CAAC;AAC5E,QAAM,eAAe,WAAW,SAAS;AACzC,QAAM,mBAAe,wBAAQ,OAAO;AAAA,IAClC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,aAAa,eAAe;AAAA,IAC5B;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,CAAC,8BAA8B,qBAAqB,0BAA0B,oBAAoB,uBAAuB,mBAAmB,WAAW,SAAS,cAAc,wBAAwB,mBAAmB,8BAA8B,qCAAqC,kCAAkC,CAAC;AACnU,SAAO;AAAA,IACL,GAAG;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,EACb;AACF;",
6
6
  "names": ["clsx"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/tools-panel/tools-panel-header/component.tsx", "../../../../style-runtime/src/index.ts", "../../../src/tools-panel/style.module.scss"],
4
- "sourcesContent": ["/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\nimport { speak } from '@wordpress/a11y';\nimport { check, moreVertical, plus } from '@wordpress/icons';\nimport { __, _x, sprintf } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport DropdownMenu from '../../dropdown-menu';\nimport MenuGroup from '../../menu-group';\nimport MenuItem from '../../menu-item';\nimport { HStack } from '../../h-stack';\nimport { Heading } from '../../heading';\nimport { useToolsPanelHeader } from './hook';\nimport styles from '../style.module.scss';\nimport { contextConnect } from '../../context';\nimport { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst DefaultControlsGroup = ({\n itemClassName,\n items,\n toggleItem\n}) => {\n if (!items.length) {\n return null;\n }\n const resetSuffix = /*#__PURE__*/_jsx(\"span\", {\n \"aria-hidden\": true,\n className: styles['reset-label'],\n children: __('Reset')\n });\n return /*#__PURE__*/_jsx(_Fragment, {\n children: items.map(([label, hasValue]) => {\n if (hasValue) {\n return /*#__PURE__*/_jsx(MenuItem, {\n className: itemClassName,\n role: \"menuitem\",\n label: sprintf(\n // translators: %s: The name of the control being reset e.g. \"Padding\".\n __('Reset %s'), label),\n onClick: () => {\n toggleItem(label);\n speak(sprintf(\n // translators: %s: The name of the control being reset e.g. \"Padding\".\n __('%s reset to default'), label), 'assertive');\n },\n suffix: resetSuffix,\n children: label\n }, label);\n }\n return /*#__PURE__*/_jsx(MenuItem, {\n icon: check,\n className: itemClassName,\n role: \"menuitemcheckbox\",\n isSelected: true,\n \"aria-disabled\": true,\n children: label\n }, label);\n })\n });\n};\nconst OptionalControlsGroup = ({\n items,\n toggleItem\n}) => {\n if (!items.length) {\n return null;\n }\n return /*#__PURE__*/_jsx(_Fragment, {\n children: items.map(([label, isSelected]) => {\n const itemLabel = isSelected ? sprintf(\n // translators: %s: The name of the control being hidden and reset e.g. \"Padding\".\n __('Hide and reset %s'), label) : sprintf(\n // translators: %s: The name of the control to display e.g. \"Padding\".\n _x('Show %s', 'input control'), label);\n return /*#__PURE__*/_jsx(MenuItem, {\n icon: isSelected ? check : null,\n isSelected: isSelected,\n label: itemLabel,\n onClick: () => {\n if (isSelected) {\n speak(sprintf(\n // translators: %s: The name of the control being reset e.g. \"Padding\".\n __('%s hidden and reset to default'), label), 'assertive');\n } else {\n speak(sprintf(\n // translators: %s: The name of the control being reset e.g. \"Padding\".\n __('%s is now visible'), label), 'assertive');\n }\n toggleItem(label);\n },\n role: \"menuitemcheckbox\",\n children: label\n }, label);\n })\n });\n};\nconst ToolsPanelHeader = (props, forwardedRef) => {\n const {\n areAllOptionalControlsHidden,\n defaultControlsItemClassName,\n dropdownMenuClassName,\n hasMenuItems,\n headingClassName,\n headingLevel = 2,\n label: labelText,\n menuItems,\n resetAll,\n toggleItem,\n dropdownMenuProps,\n ...headerProps\n } = useToolsPanelHeader(props);\n if (!labelText) {\n return null;\n }\n const defaultItems = Object.entries(menuItems?.default || {});\n const optionalItems = Object.entries(menuItems?.optional || {});\n const dropDownMenuIcon = areAllOptionalControlsHidden ? plus : moreVertical;\n const dropDownMenuLabelText = sprintf(\n // translators: %s: The name of the tool e.g. \"Color\" or \"Typography\".\n _x('%s options', 'Button label to reveal tool panel options'), labelText);\n const dropdownMenuDescriptionText = areAllOptionalControlsHidden ? __('All options are currently hidden') : undefined;\n const canResetAll = [...defaultItems, ...optionalItems].some(([, isSelected]) => isSelected);\n return /*#__PURE__*/_jsxs(HStack, {\n ...headerProps,\n ref: forwardedRef,\n children: [/*#__PURE__*/_jsx(Heading, {\n level: headingLevel,\n className: headingClassName,\n children: labelText\n }), hasMenuItems && /*#__PURE__*/_jsx(DropdownMenu, {\n ...dropdownMenuProps,\n icon: dropDownMenuIcon,\n label: dropDownMenuLabelText,\n menuProps: {\n className: dropdownMenuClassName\n },\n toggleProps: {\n size: 'small',\n description: dropdownMenuDescriptionText\n },\n children: () => /*#__PURE__*/_jsxs(_Fragment, {\n children: [/*#__PURE__*/_jsxs(MenuGroup, {\n label: labelText,\n children: [/*#__PURE__*/_jsx(DefaultControlsGroup, {\n items: defaultItems,\n toggleItem: toggleItem,\n itemClassName: defaultControlsItemClassName\n }), /*#__PURE__*/_jsx(OptionalControlsGroup, {\n items: optionalItems,\n toggleItem: toggleItem\n })]\n }), /*#__PURE__*/_jsx(MenuGroup, {\n children: /*#__PURE__*/_jsx(MenuItem, {\n \"aria-disabled\": !canResetAll\n // @ts-expect-error - TODO: If this \"tertiary\" style is something we really want to allow on MenuItem,\n // we should rename it and explicitly allow it as an official API. All the other Button variants\n // don't make sense in a MenuItem context, and should be disallowed.\n ,\n variant: \"tertiary\",\n onClick: () => {\n if (canResetAll) {\n resetAll();\n speak(__('All options reset'), 'assertive');\n }\n },\n children: __('Reset all')\n })\n })]\n })\n })]\n });\n};\nconst ConnectedToolsPanelHeader = contextConnect(ToolsPanelHeader, 'ToolsPanelHeader');\nexport default ConnectedToolsPanelHeader;", "const STYLE_HASH_ATTRIBUTE = 'data-wp-hash';\n\n/**\n * Returns the shared style runtime registry.\n *\n * The registry is stored on `globalThis` so separately bundled copies of this\n * package can coordinate through the same document and style maps.\n *\n * @return The shared runtime registry.\n */\nfunction getRuntime() {\n const globalScope = globalThis;\n if (globalScope.__wpStyleRuntime) {\n return globalScope.__wpStyleRuntime;\n }\n globalScope.__wpStyleRuntime = {\n documents: new Map(),\n styles: new Map(),\n injectedStyles: new WeakMap()\n };\n if (typeof document !== 'undefined') {\n registerDocument(document);\n }\n return globalScope.__wpStyleRuntime;\n}\n\n/**\n * Checks whether a document already contains a style tag for a hash.\n *\n * @param targetDocument Document to inspect.\n * @param hash Stable hash for the transformed CSS.\n *\n * @return Whether the style hash already exists in the document.\n */\nfunction documentContainsStyleHash(targetDocument, hash) {\n if (!targetDocument.head) {\n return false;\n }\n for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {\n if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Injects a registered style into a document, unless that document already\n * contains a style tag for the same hash.\n *\n * @param targetDocument Document to inject the style into.\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nfunction injectStyle(targetDocument, hash, css) {\n if (!targetDocument.head) {\n return;\n }\n const runtime = getRuntime();\n let injectedStyles = runtime.injectedStyles.get(targetDocument);\n if (!injectedStyles) {\n injectedStyles = new Set();\n runtime.injectedStyles.set(targetDocument, injectedStyles);\n }\n if (injectedStyles.has(hash)) {\n return;\n }\n\n // Older generated CSS module output can still inject matching style tags\n // after this document's cache is created, so keep the DOM as the fallback\n // source of truth on cache misses.\n if (documentContainsStyleHash(targetDocument, hash)) {\n injectedStyles.add(hash);\n return;\n }\n const style = targetDocument.createElement('style');\n style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);\n style.appendChild(targetDocument.createTextNode(css));\n targetDocument.head.appendChild(style);\n injectedStyles.add(hash);\n}\n\n/**\n * Registers a document as a style injection target.\n *\n * Existing registered styles are replayed into the document immediately.\n * Documents are reference-counted so multiple providers can safely register the\n * same document without one cleanup removing it while another registration is\n * still active.\n *\n * @param targetDocument Document to receive registered styles.\n * @return Cleanup function that unregisters this document registration.\n */\nexport function registerDocument(targetDocument) {\n const runtime = getRuntime();\n runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);\n for (const [hash, css] of runtime.styles) {\n injectStyle(targetDocument, hash, css);\n }\n return () => {\n const count = runtime.documents.get(targetDocument);\n if (count === undefined) {\n return;\n }\n if (count <= 1) {\n runtime.documents.delete(targetDocument);\n return;\n }\n runtime.documents.set(targetDocument, count - 1);\n };\n}\n\n/**\n * Registers a style and injects it into all registered documents.\n *\n * The hash is used as the deduplication key, so calling this repeatedly with\n * the same hash will not add duplicate style tags to a document.\n * Registered styles are retained for the lifetime of the page so they can be\n * replayed into documents that are registered later.\n *\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nexport function registerStyle(hash, css) {\n const runtime = getRuntime();\n runtime.styles.set(hash, css);\n for (const targetDocument of runtime.documents.keys()) {\n injectStyle(targetDocument, hash, css);\n }\n}", "import { registerStyle } from '@wordpress/style-runtime';\nif (typeof process === 'undefined' || process.env.NODE_ENV !== 'test') {\n\tregisterStyle(\"29b739f451\", \"._62d714739f4dc308__tools-panel{border-top:1px solid #ddd;margin-top:-1px;padding:16px}._40db7f4f897b683d__tools-panel-with-inner-wrapper>div:not(:first-of-type){column-gap:16px;display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}._95a15674966f30a3__tools-panel-hidden-inner-wrapper>div:not(:first-of-type){display:none}._322a049b9b7d8674__tools-panel-header{gap:8px;grid-column:1/-1}._322a049b9b7d8674__tools-panel-header .components-dropdown-menu{line-height:0;margin:-4px 0}._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header .components-dropdown-menu__toggle{min-width:24px;padding:0}.b92a382d3b30104d__tools-panel-heading.b92a382d3b30104d__tools-panel-heading{font-size:inherit;line-height:normal;margin:0}._8005d68fffa9db91__tools-panel-item{grid-column:1/-1}._8005d68fffa9db91__tools-panel-item>div,._8005d68fffa9db91__tools-panel-item>fieldset{margin-bottom:0;max-width:100%;padding-bottom:0}._8005d68fffa9db91__tools-panel-item .components-base-control__help,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control .components-base-control__field:last-child{margin-bottom:0}._4f55e1a6e373746e__tools-panel-item-placeholder{display:none}.d40032517bff9e12__dropdown-menu{min-width:200px}.f135b96aa96ca6bb__reset-label{color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.4;margin-inline-start:12px;text-transform:uppercase}._69b138dfa5570d9c__default-controls-item{color:#1e1e1e}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]{color:#757575;opacity:1}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]:hover{color:#757575}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true] .f135b96aa96ca6bb__reset-label{opacity:.3}\");\n}\nexport default {\"tools-panel\":\"_62d714739f4dc308__tools-panel\",\"tools-panel-with-inner-wrapper\":\"_40db7f4f897b683d__tools-panel-with-inner-wrapper\",\"tools-panel-hidden-inner-wrapper\":\"_95a15674966f30a3__tools-panel-hidden-inner-wrapper\",\"tools-panel-header\":\"_322a049b9b7d8674__tools-panel-header\",\"tools-panel-heading\":\"b92a382d3b30104d__tools-panel-heading\",\"tools-panel-item\":\"_8005d68fffa9db91__tools-panel-item\",\"tools-panel-item-placeholder\":\"_4f55e1a6e373746e__tools-panel-item-placeholder\",\"dropdown-menu\":\"d40032517bff9e12__dropdown-menu\",\"reset-label\":\"f135b96aa96ca6bb__reset-label\",\"default-controls-item\":\"_69b138dfa5570d9c__default-controls-item\"};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,kBAAsB;AACtB,mBAA0C;AAC1C,kBAAgC;AAKhC,2BAAyB;AACzB,wBAAsB;AACtB,uBAAqB;AACrB,qBAAuB;AACvB,qBAAwB;AACxB,kBAAoC;;;ACnBpC,IAAM,uBAAuB;AAU7B,SAAS,aAAa;AACpB,QAAM,cAAc;AACpB,MAAI,YAAY,kBAAkB;AAChC,WAAO,YAAY;AAAA,EACrB;AACA,cAAY,mBAAmB;AAAA,IAC7B,WAAW,oBAAI,IAAI;AAAA,IACnB,QAAQ,oBAAI,IAAI;AAAA,IAChB,gBAAgB,oBAAI,QAAQ;AAAA,EAC9B;AACA,MAAI,OAAO,aAAa,aAAa;AACnC,qBAAiB,QAAQ;AAAA,EAC3B;AACA,SAAO,YAAY;AACrB;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ACP;AAAA,UACF,CAAC,CAAC;AAAA,QACJ,CAAC,GAAgB,uCAAAA,KAAK,kBAAAK,SAAW;AAAA,UAC/B,UAAuB,uCAAAL,KAAK,iBAAAE,SAAU;AAAA,YACpC,iBAAiB,CAAC;AAAA,YAKlB,SAAS;AAAA,YACT,SAAS,MAAM;AACb,kBAAI,aAAa;AACf,yBAAS;AACT,2CAAM,gBAAG,mBAAmB,GAAG,WAAW;AAAA,cAC5C;AAAA,YACF;AAAA,YACA,cAAU,gBAAG,WAAW;AAAA,UAC1B,CAAC;AAAA,QACH,CAAC,CAAC;AAAA,MACJ,CAAC;AAAA,IACH,CAAC,CAAC;AAAA,EACJ,CAAC;AACH;AACA,IAAM,gCAA4B,+BAAe,kBAAkB,kBAAkB;AACrF,IAAO,oBAAQ;",
4
+ "sourcesContent": ["import { speak } from '@wordpress/a11y';\nimport { check, moreVertical, plus } from '@wordpress/icons';\nimport { __, _x, sprintf } from '@wordpress/i18n';\nimport DropdownMenu from '../../dropdown-menu';\nimport MenuGroup from '../../menu-group';\nimport MenuItem from '../../menu-item';\nimport { HStack } from '../../h-stack';\nimport { Heading } from '../../heading';\nimport { useToolsPanelHeader } from './hook';\nimport styles from '../style.module.scss';\nimport { contextConnect } from '../../context';\nimport { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst DefaultControlsGroup = ({\n itemClassName,\n items,\n toggleItem\n}) => {\n if (!items.length) {\n return null;\n }\n const resetSuffix = /*#__PURE__*/_jsx(\"span\", {\n \"aria-hidden\": true,\n className: styles['reset-label'],\n children: __('Reset')\n });\n return /*#__PURE__*/_jsx(_Fragment, {\n children: items.map(([label, hasValue]) => {\n if (hasValue) {\n return /*#__PURE__*/_jsx(MenuItem, {\n className: itemClassName,\n role: \"menuitem\",\n label: sprintf(\n // translators: %s: The name of the control being reset e.g. \"Padding\".\n __('Reset %s'), label),\n onClick: () => {\n toggleItem(label);\n speak(sprintf(\n // translators: %s: The name of the control being reset e.g. \"Padding\".\n __('%s reset to default'), label), 'assertive');\n },\n suffix: resetSuffix,\n children: label\n }, label);\n }\n return /*#__PURE__*/_jsx(MenuItem, {\n icon: check,\n className: itemClassName,\n role: \"menuitemcheckbox\",\n isSelected: true,\n \"aria-disabled\": true,\n children: label\n }, label);\n })\n });\n};\nconst OptionalControlsGroup = ({\n items,\n toggleItem\n}) => {\n if (!items.length) {\n return null;\n }\n return /*#__PURE__*/_jsx(_Fragment, {\n children: items.map(([label, isSelected]) => {\n const itemLabel = isSelected ? sprintf(\n // translators: %s: The name of the control being hidden and reset e.g. \"Padding\".\n __('Hide and reset %s'), label) : sprintf(\n // translators: %s: The name of the control to display e.g. \"Padding\".\n _x('Show %s', 'input control'), label);\n return /*#__PURE__*/_jsx(MenuItem, {\n icon: isSelected ? check : null,\n isSelected: isSelected,\n label: itemLabel,\n onClick: () => {\n if (isSelected) {\n speak(sprintf(\n // translators: %s: The name of the control being reset e.g. \"Padding\".\n __('%s hidden and reset to default'), label), 'assertive');\n } else {\n speak(sprintf(\n // translators: %s: The name of the control being reset e.g. \"Padding\".\n __('%s is now visible'), label), 'assertive');\n }\n toggleItem(label);\n },\n role: \"menuitemcheckbox\",\n children: label\n }, label);\n })\n });\n};\nconst ToolsPanelHeader = (props, forwardedRef) => {\n const {\n areAllOptionalControlsHidden,\n defaultControlsItemClassName,\n dropdownMenuClassName,\n hasMenuItems,\n headingClassName,\n headingLevel = 2,\n label: labelText,\n menuItems,\n resetAll,\n toggleItem,\n dropdownMenuProps,\n ...headerProps\n } = useToolsPanelHeader(props);\n if (!labelText) {\n return null;\n }\n const defaultItems = Object.entries(menuItems?.default || {});\n const optionalItems = Object.entries(menuItems?.optional || {});\n const dropDownMenuIcon = areAllOptionalControlsHidden ? plus : moreVertical;\n const dropDownMenuLabelText = sprintf(\n // translators: %s: The name of the tool e.g. \"Color\" or \"Typography\".\n _x('%s options', 'Button label to reveal tool panel options'), labelText);\n const dropdownMenuDescriptionText = areAllOptionalControlsHidden ? __('All options are currently hidden') : undefined;\n const canResetAll = [...defaultItems, ...optionalItems].some(([, isSelected]) => isSelected);\n return /*#__PURE__*/_jsxs(HStack, {\n ...headerProps,\n ref: forwardedRef,\n children: [/*#__PURE__*/_jsx(Heading, {\n level: headingLevel,\n className: headingClassName,\n children: labelText\n }), hasMenuItems && /*#__PURE__*/_jsx(DropdownMenu, {\n ...dropdownMenuProps,\n icon: dropDownMenuIcon,\n label: dropDownMenuLabelText,\n menuProps: {\n className: dropdownMenuClassName\n },\n toggleProps: {\n size: 'small',\n description: dropdownMenuDescriptionText\n },\n children: () => /*#__PURE__*/_jsxs(_Fragment, {\n children: [/*#__PURE__*/_jsxs(MenuGroup, {\n label: labelText,\n children: [/*#__PURE__*/_jsx(DefaultControlsGroup, {\n items: defaultItems,\n toggleItem: toggleItem,\n itemClassName: defaultControlsItemClassName\n }), /*#__PURE__*/_jsx(OptionalControlsGroup, {\n items: optionalItems,\n toggleItem: toggleItem\n })]\n }), /*#__PURE__*/_jsx(MenuGroup, {\n children: /*#__PURE__*/_jsx(MenuItem, {\n \"aria-disabled\": !canResetAll\n // @ts-expect-error - TODO: If this \"tertiary\" style is something we really want to allow on MenuItem,\n // we should rename it and explicitly allow it as an official API. All the other Button variants\n // don't make sense in a MenuItem context, and should be disallowed.\n ,\n variant: \"tertiary\",\n onClick: () => {\n if (canResetAll) {\n resetAll();\n speak(__('All options reset'), 'assertive');\n }\n },\n children: __('Reset all')\n })\n })]\n })\n })]\n });\n};\nconst ConnectedToolsPanelHeader = contextConnect(ToolsPanelHeader, 'ToolsPanelHeader');\nexport default ConnectedToolsPanelHeader;", "const STYLE_HASH_ATTRIBUTE = 'data-wp-hash';\n\n/**\n * Returns the shared style runtime registry.\n *\n * The registry is stored on `globalThis` so separately bundled copies of this\n * package can coordinate through the same document and style maps.\n *\n * @return The shared runtime registry.\n */\nfunction getRuntime() {\n const globalScope = globalThis;\n if (globalScope.__wpStyleRuntime) {\n return globalScope.__wpStyleRuntime;\n }\n globalScope.__wpStyleRuntime = {\n documents: new Map(),\n styles: new Map(),\n injectedStyles: new WeakMap()\n };\n if (typeof document !== 'undefined') {\n registerDocument(document);\n }\n return globalScope.__wpStyleRuntime;\n}\n\n/**\n * Checks whether a document already contains a style tag for a hash.\n *\n * @param targetDocument Document to inspect.\n * @param hash Stable hash for the transformed CSS.\n *\n * @return Whether the style hash already exists in the document.\n */\nfunction documentContainsStyleHash(targetDocument, hash) {\n if (!targetDocument.head) {\n return false;\n }\n for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {\n if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Injects a registered style into a document, unless that document already\n * contains a style tag for the same hash.\n *\n * @param targetDocument Document to inject the style into.\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nfunction injectStyle(targetDocument, hash, css) {\n if (!targetDocument.head) {\n return;\n }\n const runtime = getRuntime();\n let injectedStyles = runtime.injectedStyles.get(targetDocument);\n if (!injectedStyles) {\n injectedStyles = new Set();\n runtime.injectedStyles.set(targetDocument, injectedStyles);\n }\n if (injectedStyles.has(hash)) {\n return;\n }\n\n // Older generated CSS module output can still inject matching style tags\n // after this document's cache is created, so keep the DOM as the fallback\n // source of truth on cache misses.\n if (documentContainsStyleHash(targetDocument, hash)) {\n injectedStyles.add(hash);\n return;\n }\n const style = targetDocument.createElement('style');\n style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);\n style.appendChild(targetDocument.createTextNode(css));\n targetDocument.head.appendChild(style);\n injectedStyles.add(hash);\n}\n\n/**\n * Registers a document as a style injection target.\n *\n * Existing registered styles are replayed into the document immediately.\n * Documents are reference-counted so multiple providers can safely register the\n * same document without one cleanup removing it while another registration is\n * still active.\n *\n * @param targetDocument Document to receive registered styles.\n * @return Cleanup function that unregisters this document registration.\n */\nexport function registerDocument(targetDocument) {\n const runtime = getRuntime();\n runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);\n for (const [hash, css] of runtime.styles) {\n injectStyle(targetDocument, hash, css);\n }\n return () => {\n const count = runtime.documents.get(targetDocument);\n if (count === undefined) {\n return;\n }\n if (count <= 1) {\n runtime.documents.delete(targetDocument);\n return;\n }\n runtime.documents.set(targetDocument, count - 1);\n };\n}\n\n/**\n * Registers a style and injects it into all registered documents.\n *\n * The hash is used as the deduplication key, so calling this repeatedly with\n * the same hash will not add duplicate style tags to a document.\n * Registered styles are retained for the lifetime of the page so they can be\n * replayed into documents that are registered later.\n *\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nexport function registerStyle(hash, css) {\n const runtime = getRuntime();\n runtime.styles.set(hash, css);\n for (const targetDocument of runtime.documents.keys()) {\n injectStyle(targetDocument, hash, css);\n }\n}", "import { registerStyle } from '@wordpress/style-runtime';\nif (typeof process === 'undefined' || process.env.NODE_ENV !== 'test') {\n\tregisterStyle(\"29b739f451\", \"._62d714739f4dc308__tools-panel{border-top:1px solid #ddd;margin-top:-1px;padding:16px}._40db7f4f897b683d__tools-panel-with-inner-wrapper>div:not(:first-of-type){column-gap:16px;display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}._95a15674966f30a3__tools-panel-hidden-inner-wrapper>div:not(:first-of-type){display:none}._322a049b9b7d8674__tools-panel-header{gap:8px;grid-column:1/-1}._322a049b9b7d8674__tools-panel-header .components-dropdown-menu{line-height:0;margin:-4px 0}._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header .components-dropdown-menu__toggle{min-width:24px;padding:0}.b92a382d3b30104d__tools-panel-heading.b92a382d3b30104d__tools-panel-heading{font-size:inherit;line-height:normal;margin:0}._8005d68fffa9db91__tools-panel-item{grid-column:1/-1}._8005d68fffa9db91__tools-panel-item>div,._8005d68fffa9db91__tools-panel-item>fieldset{margin-bottom:0;max-width:100%;padding-bottom:0}._8005d68fffa9db91__tools-panel-item .components-base-control__help,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control .components-base-control__field:last-child{margin-bottom:0}._4f55e1a6e373746e__tools-panel-item-placeholder{display:none}.d40032517bff9e12__dropdown-menu{min-width:200px}.f135b96aa96ca6bb__reset-label{color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.4;margin-inline-start:12px;text-transform:uppercase}._69b138dfa5570d9c__default-controls-item{color:#1e1e1e}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]{color:#757575;opacity:1}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]:hover{color:#757575}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true] .f135b96aa96ca6bb__reset-label{opacity:.3}\");\n}\nexport default {\"tools-panel\":\"_62d714739f4dc308__tools-panel\",\"tools-panel-with-inner-wrapper\":\"_40db7f4f897b683d__tools-panel-with-inner-wrapper\",\"tools-panel-hidden-inner-wrapper\":\"_95a15674966f30a3__tools-panel-hidden-inner-wrapper\",\"tools-panel-header\":\"_322a049b9b7d8674__tools-panel-header\",\"tools-panel-heading\":\"b92a382d3b30104d__tools-panel-heading\",\"tools-panel-item\":\"_8005d68fffa9db91__tools-panel-item\",\"tools-panel-item-placeholder\":\"_4f55e1a6e373746e__tools-panel-item-placeholder\",\"dropdown-menu\":\"d40032517bff9e12__dropdown-menu\",\"reset-label\":\"f135b96aa96ca6bb__reset-label\",\"default-controls-item\":\"_69b138dfa5570d9c__default-controls-item\"};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAA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AAAA,KAAK,qBAAAI,SAAc;AAAA,MAClD,GAAG;AAAA,MACH,MAAM;AAAA,MACN,OAAO;AAAA,MACP,WAAW;AAAA,QACT,WAAW;AAAA,MACb;AAAA,MACA,aAAa;AAAA,QACX,MAAM;AAAA,QACN,aAAa;AAAA,MACf;AAAA,MACA,UAAU,MAAmB,uCAAAD,MAAM,mBAAAF,UAAW;AAAA,QAC5C,UAAU,CAAc,uCAAAE,MAAM,kBAAAE,SAAW;AAAA,UACvC,OAAO;AAAA,UACP,UAAU,CAAc,uCAAAL,KAAK,sBAAsB;AAAA,YACjD,OAAO;AAAA,YACP;AAAA,YACA,eAAe;AAAA,UACjB,CAAC,GAAgB,uCAAAA,KAAK,uBAAuB;AAAA,YAC3C,OAAO;AAAA,YACP;AAAA,UACF,CAAC,CAAC;AAAA,QACJ,CAAC,GAAgB,uCAAAA,KAAK,kBAAAK,SAAW;AAAA,UAC/B,UAAuB,uCAAAL,KAAK,iBAAAE,SAAU;AAAA,YACpC,iBAAiB,CAAC;AAAA,YAKlB,SAAS;AAAA,YACT,SAAS,MAAM;AACb,kBAAI,aAAa;AACf,yBAAS;AACT,2CAAM,gBAAG,mBAAmB,GAAG,WAAW;AAAA,cAC5C;AAAA,YACF;AAAA,YACA,cAAU,gBAAG,WAAW;AAAA,UAC1B,CAAC;AAAA,QACH,CAAC,CAAC;AAAA,MACJ,CAAC;AAAA,IACH,CAAC,CAAC;AAAA,EACJ,CAAC;AACH;AACA,IAAM,gCAA4B,+BAAe,kBAAkB,kBAAkB;AACrF,IAAO,oBAAQ;",
6
6
  "names": ["_jsx", "_Fragment", "MenuItem", "_jsxs", "DropdownMenu", "MenuGroup"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/tools-panel/tools-panel-header/hook.ts", "../../../../style-runtime/src/index.ts", "../../../src/tools-panel/style.module.scss"],
4
- "sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * Internal dependencies\n */\nimport styles from '../style.module.scss';\nimport { useToolsPanelContext } from '../context';\nimport { useContextSystem } from '../../context';\nexport function useToolsPanelHeader(props) {\n const {\n className,\n headingLevel = 2,\n ...otherProps\n } = useContextSystem(props, 'ToolsPanelHeader');\n const {\n menuItems,\n hasMenuItems,\n areAllOptionalControlsHidden\n } = useToolsPanelContext();\n return {\n ...otherProps,\n areAllOptionalControlsHidden,\n defaultControlsItemClassName: styles['default-controls-item'],\n dropdownMenuClassName: styles['dropdown-menu'],\n hasMenuItems,\n headingClassName: styles['tools-panel-heading'],\n headingLevel,\n menuItems,\n className: clsx(styles['tools-panel-header'], className)\n };\n}", "const STYLE_HASH_ATTRIBUTE = 'data-wp-hash';\n\n/**\n * Returns the shared style runtime registry.\n *\n * The registry is stored on `globalThis` so separately bundled copies of this\n * package can coordinate through the same document and style maps.\n *\n * @return The shared runtime registry.\n */\nfunction getRuntime() {\n const globalScope = globalThis;\n if (globalScope.__wpStyleRuntime) {\n return globalScope.__wpStyleRuntime;\n }\n globalScope.__wpStyleRuntime = {\n documents: new Map(),\n styles: new Map(),\n injectedStyles: new WeakMap()\n };\n if (typeof document !== 'undefined') {\n registerDocument(document);\n }\n return globalScope.__wpStyleRuntime;\n}\n\n/**\n * Checks whether a document already contains a style tag for a hash.\n *\n * @param targetDocument Document to inspect.\n * @param hash Stable hash for the transformed CSS.\n *\n * @return Whether the style hash already exists in the document.\n */\nfunction documentContainsStyleHash(targetDocument, hash) {\n if (!targetDocument.head) {\n return false;\n }\n for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {\n if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Injects a registered style into a document, unless that document already\n * contains a style tag for the same hash.\n *\n * @param targetDocument Document to inject the style into.\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nfunction injectStyle(targetDocument, hash, css) {\n if (!targetDocument.head) {\n return;\n }\n const runtime = getRuntime();\n let injectedStyles = runtime.injectedStyles.get(targetDocument);\n if (!injectedStyles) {\n injectedStyles = new Set();\n runtime.injectedStyles.set(targetDocument, injectedStyles);\n }\n if (injectedStyles.has(hash)) {\n return;\n }\n\n // Older generated CSS module output can still inject matching style tags\n // after this document's cache is created, so keep the DOM as the fallback\n // source of truth on cache misses.\n if (documentContainsStyleHash(targetDocument, hash)) {\n injectedStyles.add(hash);\n return;\n }\n const style = targetDocument.createElement('style');\n style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);\n style.appendChild(targetDocument.createTextNode(css));\n targetDocument.head.appendChild(style);\n injectedStyles.add(hash);\n}\n\n/**\n * Registers a document as a style injection target.\n *\n * Existing registered styles are replayed into the document immediately.\n * Documents are reference-counted so multiple providers can safely register the\n * same document without one cleanup removing it while another registration is\n * still active.\n *\n * @param targetDocument Document to receive registered styles.\n * @return Cleanup function that unregisters this document registration.\n */\nexport function registerDocument(targetDocument) {\n const runtime = getRuntime();\n runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);\n for (const [hash, css] of runtime.styles) {\n injectStyle(targetDocument, hash, css);\n }\n return () => {\n const count = runtime.documents.get(targetDocument);\n if (count === undefined) {\n return;\n }\n if (count <= 1) {\n runtime.documents.delete(targetDocument);\n return;\n }\n runtime.documents.set(targetDocument, count - 1);\n };\n}\n\n/**\n * Registers a style and injects it into all registered documents.\n *\n * The hash is used as the deduplication key, so calling this repeatedly with\n * the same hash will not add duplicate style tags to a document.\n * Registered styles are retained for the lifetime of the page so they can be\n * replayed into documents that are registered later.\n *\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nexport function registerStyle(hash, css) {\n const runtime = getRuntime();\n runtime.styles.set(hash, css);\n for (const targetDocument of runtime.documents.keys()) {\n injectStyle(targetDocument, hash, css);\n }\n}", "import { registerStyle } from '@wordpress/style-runtime';\nif (typeof process === 'undefined' || process.env.NODE_ENV !== 'test') {\n\tregisterStyle(\"29b739f451\", \"._62d714739f4dc308__tools-panel{border-top:1px solid #ddd;margin-top:-1px;padding:16px}._40db7f4f897b683d__tools-panel-with-inner-wrapper>div:not(:first-of-type){column-gap:16px;display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}._95a15674966f30a3__tools-panel-hidden-inner-wrapper>div:not(:first-of-type){display:none}._322a049b9b7d8674__tools-panel-header{gap:8px;grid-column:1/-1}._322a049b9b7d8674__tools-panel-header .components-dropdown-menu{line-height:0;margin:-4px 0}._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header .components-dropdown-menu__toggle{min-width:24px;padding:0}.b92a382d3b30104d__tools-panel-heading.b92a382d3b30104d__tools-panel-heading{font-size:inherit;line-height:normal;margin:0}._8005d68fffa9db91__tools-panel-item{grid-column:1/-1}._8005d68fffa9db91__tools-panel-item>div,._8005d68fffa9db91__tools-panel-item>fieldset{margin-bottom:0;max-width:100%;padding-bottom:0}._8005d68fffa9db91__tools-panel-item .components-base-control__help,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control .components-base-control__field:last-child{margin-bottom:0}._4f55e1a6e373746e__tools-panel-item-placeholder{display:none}.d40032517bff9e12__dropdown-menu{min-width:200px}.f135b96aa96ca6bb__reset-label{color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.4;margin-inline-start:12px;text-transform:uppercase}._69b138dfa5570d9c__default-controls-item{color:#1e1e1e}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]{color:#757575;opacity:1}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]:hover{color:#757575}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true] .f135b96aa96ca6bb__reset-label{opacity:.3}\");\n}\nexport default {\"tools-panel\":\"_62d714739f4dc308__tools-panel\",\"tools-panel-with-inner-wrapper\":\"_40db7f4f897b683d__tools-panel-with-inner-wrapper\",\"tools-panel-hidden-inner-wrapper\":\"_95a15674966f30a3__tools-panel-hidden-inner-wrapper\",\"tools-panel-header\":\"_322a049b9b7d8674__tools-panel-header\",\"tools-panel-heading\":\"b92a382d3b30104d__tools-panel-heading\",\"tools-panel-item\":\"_8005d68fffa9db91__tools-panel-item\",\"tools-panel-item-placeholder\":\"_4f55e1a6e373746e__tools-panel-item-placeholder\",\"dropdown-menu\":\"d40032517bff9e12__dropdown-menu\",\"reset-label\":\"f135b96aa96ca6bb__reset-label\",\"default-controls-item\":\"_69b138dfa5570d9c__default-controls-item\"};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAiB;;;ACHjB,IAAM,uBAAuB;AAU7B,SAAS,aAAa;AACpB,QAAM,cAAc;AACpB,MAAI,YAAY,kBAAkB;AAChC,WAAO,YAAY;AAAA,EACrB;AACA,cAAY,mBAAmB;AAAA,IAC7B,WAAW,oBAAI,IAAI;AAAA,IACnB,QAAQ,oBAAI,IAAI;AAAA,IAChB,gBAAgB,oBAAI,QAAQ;AAAA,EAC9B;AACA,MAAI,OAAO,aAAa,aAAa;AACnC,qBAAiB,QAAQ;AAAA,EAC3B;AACA,SAAO,YAAY;AACrB;AAUA,SAAS,0BAA0B,gBAAgB,MAAM;AACvD,MAAI,CAAC,eAAe,MAAM;AACxB,WAAO;AAAA,EACT;AACA,aAAW,SAAS,eAAe,KAAK,iBAAiB,SAAS,oBAAoB,GAAG,GAAG;AAC1F,QAAI,MAAM,aAAa,oBAAoB,MAAM,MAAM;AACrD,aAAO;AAAA,IACT;AAAA,EACF;AAC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vC;AACF;;;AChIA,IAAI,OAAO,YAAY,eAAe,QAAQ,IAAI,aAAa,QAAQ;AACtE,gBAAc,cAAc,qrEAAqrE;AACltE;AACA,IAAO,uBAAQ,EAAC,eAAc,kCAAiC,kCAAiC,qDAAoD,oCAAmC,uDAAsD,sBAAqB,yCAAwC,uBAAsB,yCAAwC,oBAAmB,uCAAsC,gCAA+B,mDAAkD,iBAAgB,mCAAkC,eAAc,iCAAgC,yBAAwB,2CAA0C;;;AFKppB,qBAAqC;AACrC,IAAAA,kBAAiC;AAC1B,SAAS,oBAAoB,OAAO;AACzC,QAAM;AAAA,IACJ;AAAA,IACA,eAAe;AAAA,IACf,GAAG;AAAA,EACL,QAAI,kCAAiB,OAAO,kBAAkB;AAC9C,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,EACF,QAAI,qCAAqB;AACzB,SAAO;AAAA,IACL,GAAG;AAAA,IACH;AAAA,IACA,8BAA8B,qBAAO,uBAAuB;AAAA,IAC5D,uBAAuB,qBAAO,eAAe;AAAA,IAC7C;AAAA,IACA,kBAAkB,qBAAO,qBAAqB;AAAA,IAC9C;AAAA,IACA;AAAA,IACA,eAAW,YAAAC,SAAK,qBAAO,oBAAoB,GAAG,SAAS;AAAA,EACzD;AACF;",
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport styles from '../style.module.scss';\nimport { useToolsPanelContext } from '../context';\nimport { useContextSystem } from '../../context';\nexport function useToolsPanelHeader(props) {\n const {\n className,\n headingLevel = 2,\n ...otherProps\n } = useContextSystem(props, 'ToolsPanelHeader');\n const {\n menuItems,\n hasMenuItems,\n areAllOptionalControlsHidden\n } = useToolsPanelContext();\n return {\n ...otherProps,\n areAllOptionalControlsHidden,\n defaultControlsItemClassName: styles['default-controls-item'],\n dropdownMenuClassName: styles['dropdown-menu'],\n hasMenuItems,\n headingClassName: styles['tools-panel-heading'],\n headingLevel,\n menuItems,\n className: clsx(styles['tools-panel-header'], className)\n };\n}", "const STYLE_HASH_ATTRIBUTE = 'data-wp-hash';\n\n/**\n * Returns the shared style runtime registry.\n *\n * The registry is stored on `globalThis` so separately bundled copies of this\n * package can coordinate through the same document and style maps.\n *\n * @return The shared runtime registry.\n */\nfunction getRuntime() {\n const globalScope = globalThis;\n if (globalScope.__wpStyleRuntime) {\n return globalScope.__wpStyleRuntime;\n }\n globalScope.__wpStyleRuntime = {\n documents: new Map(),\n styles: new Map(),\n injectedStyles: new WeakMap()\n };\n if (typeof document !== 'undefined') {\n registerDocument(document);\n }\n return globalScope.__wpStyleRuntime;\n}\n\n/**\n * Checks whether a document already contains a style tag for a hash.\n *\n * @param targetDocument Document to inspect.\n * @param hash Stable hash for the transformed CSS.\n *\n * @return Whether the style hash already exists in the document.\n */\nfunction documentContainsStyleHash(targetDocument, hash) {\n if (!targetDocument.head) {\n return false;\n }\n for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {\n if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Injects a registered style into a document, unless that document already\n * contains a style tag for the same hash.\n *\n * @param targetDocument Document to inject the style into.\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nfunction injectStyle(targetDocument, hash, css) {\n if (!targetDocument.head) {\n return;\n }\n const runtime = getRuntime();\n let injectedStyles = runtime.injectedStyles.get(targetDocument);\n if (!injectedStyles) {\n injectedStyles = new Set();\n runtime.injectedStyles.set(targetDocument, injectedStyles);\n }\n if (injectedStyles.has(hash)) {\n return;\n }\n\n // Older generated CSS module output can still inject matching style tags\n // after this document's cache is created, so keep the DOM as the fallback\n // source of truth on cache misses.\n if (documentContainsStyleHash(targetDocument, hash)) {\n injectedStyles.add(hash);\n return;\n }\n const style = targetDocument.createElement('style');\n style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);\n style.appendChild(targetDocument.createTextNode(css));\n targetDocument.head.appendChild(style);\n injectedStyles.add(hash);\n}\n\n/**\n * Registers a document as a style injection target.\n *\n * Existing registered styles are replayed into the document immediately.\n * Documents are reference-counted so multiple providers can safely register the\n * same document without one cleanup removing it while another registration is\n * still active.\n *\n * @param targetDocument Document to receive registered styles.\n * @return Cleanup function that unregisters this document registration.\n */\nexport function registerDocument(targetDocument) {\n const runtime = getRuntime();\n runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);\n for (const [hash, css] of runtime.styles) {\n injectStyle(targetDocument, hash, css);\n }\n return () => {\n const count = runtime.documents.get(targetDocument);\n if (count === undefined) {\n return;\n }\n if (count <= 1) {\n runtime.documents.delete(targetDocument);\n return;\n }\n runtime.documents.set(targetDocument, count - 1);\n };\n}\n\n/**\n * Registers a style and injects it into all registered documents.\n *\n * The hash is used as the deduplication key, so calling this repeatedly with\n * the same hash will not add duplicate style tags to a document.\n * Registered styles are retained for the lifetime of the page so they can be\n * replayed into documents that are registered later.\n *\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nexport function registerStyle(hash, css) {\n const runtime = getRuntime();\n runtime.styles.set(hash, css);\n for (const targetDocument of runtime.documents.keys()) {\n injectStyle(targetDocument, hash, css);\n }\n}", "import { registerStyle } from '@wordpress/style-runtime';\nif (typeof process === 'undefined' || process.env.NODE_ENV !== 'test') {\n\tregisterStyle(\"29b739f451\", \"._62d714739f4dc308__tools-panel{border-top:1px solid #ddd;margin-top:-1px;padding:16px}._40db7f4f897b683d__tools-panel-with-inner-wrapper>div:not(:first-of-type){column-gap:16px;display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}._95a15674966f30a3__tools-panel-hidden-inner-wrapper>div:not(:first-of-type){display:none}._322a049b9b7d8674__tools-panel-header{gap:8px;grid-column:1/-1}._322a049b9b7d8674__tools-panel-header .components-dropdown-menu{line-height:0;margin:-4px 0}._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header .components-dropdown-menu__toggle{min-width:24px;padding:0}.b92a382d3b30104d__tools-panel-heading.b92a382d3b30104d__tools-panel-heading{font-size:inherit;line-height:normal;margin:0}._8005d68fffa9db91__tools-panel-item{grid-column:1/-1}._8005d68fffa9db91__tools-panel-item>div,._8005d68fffa9db91__tools-panel-item>fieldset{margin-bottom:0;max-width:100%;padding-bottom:0}._8005d68fffa9db91__tools-panel-item .components-base-control__help,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control .components-base-control__field:last-child{margin-bottom:0}._4f55e1a6e373746e__tools-panel-item-placeholder{display:none}.d40032517bff9e12__dropdown-menu{min-width:200px}.f135b96aa96ca6bb__reset-label{color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.4;margin-inline-start:12px;text-transform:uppercase}._69b138dfa5570d9c__default-controls-item{color:#1e1e1e}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]{color:#757575;opacity:1}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]:hover{color:#757575}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true] .f135b96aa96ca6bb__reset-label{opacity:.3}\");\n}\nexport default {\"tools-panel\":\"_62d714739f4dc308__tools-panel\",\"tools-panel-with-inner-wrapper\":\"_40db7f4f897b683d__tools-panel-with-inner-wrapper\",\"tools-panel-hidden-inner-wrapper\":\"_95a15674966f30a3__tools-panel-hidden-inner-wrapper\",\"tools-panel-header\":\"_322a049b9b7d8674__tools-panel-header\",\"tools-panel-heading\":\"b92a382d3b30104d__tools-panel-heading\",\"tools-panel-item\":\"_8005d68fffa9db91__tools-panel-item\",\"tools-panel-item-placeholder\":\"_4f55e1a6e373746e__tools-panel-item-placeholder\",\"dropdown-menu\":\"d40032517bff9e12__dropdown-menu\",\"reset-label\":\"f135b96aa96ca6bb__reset-label\",\"default-controls-item\":\"_69b138dfa5570d9c__default-controls-item\"};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;;;ACAjB,IAAM,uBAAuB;AAU7B,SAAS,aAAa;AACpB,QAAM,cAAc;AACpB,MAAI,YAAY,kBAAkB;AAChC,WAAO,YAAY;AAAA,EACrB;AACA,cAAY,mBAAmB;AAAA,IAC7B,WAAW,oBAAI,IAAI;AAAA,IACnB,QAAQ,oBAAI,IAAI;AAAA,IAChB,gBAAgB,oBAAI,QAAQ;AAAA,EAC9B;AACA,MAAI,OAAO,aAAa,aAAa;AACnC,qBAAiB,QAAQ;AAAA,EAC3B;AACA,SAAO,YAAY;AACrB;AAUA,SAAS,0BAA0B,gBAAgB,MAAM;AACvD,MAAI,CAAC,eAAe,MAAM;AACxB,WAAO;AAAA,EACT;AACA,aAAW,SAAS,eAAe,KAAK,iBAAiB,SAAS,oBAAoB,GAAG,GAAG;AAC1F,QAAI,MAAM,aAAa,oBAAoB,MAAM,MAAM;AACrD,aAAO;AAAA,IACT;AAAA,EACF;AACA,SAAO;AACT;AAUA,SAAS,YAAY,gBAAgB,MAAM,KAAK;AAC9C,MAAI,CAAC,eAAe,MAAM;AACxB;AAAA,EACF;AACA,QAAM,UAAU,WAAW;AAC3B,MAAI,iBAAiB,QAAQ,eAAe,IAAI,cAAc;AAC9D,MAAI,CAAC,gBAAgB;AACnB,qBAAiB,oBAAI,IAAI;AACzB,YAAQ,eAAe,IAAI,gBAAgB,cAAc;AAAA,EAC3D;AACA,MAAI,eAAe,IAAI,IAAI,GAAG;AAC5B;AAAA,EACF;AAKA,MAAI,0BAA0B,gBAAgB,IAAI,GAAG;AACnD,mBAAe,IAAI,IAAI;AACvB;AAAA,EACF;AACA,QAAM,QAA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QAAI,kCAAiB,OAAO,kBAAkB;AAC9C,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,EACF,QAAI,qCAAqB;AACzB,SAAO;AAAA,IACL,GAAG;AAAA,IACH;AAAA,IACA,8BAA8B,qBAAO,uBAAuB;AAAA,IAC5D,uBAAuB,qBAAO,eAAe;AAAA,IAC7C;AAAA,IACA,kBAAkB,qBAAO,qBAAqB;AAAA,IAC9C;AAAA,IACA;AAAA,IACA,eAAW,YAAAC,SAAK,qBAAO,oBAAoB,GAAG,SAAS;AAAA,EACzD;AACF;",
6
6
  "names": ["import_context", "clsx"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/tools-panel/tools-panel-item/component.tsx"],
4
- "sourcesContent": ["/**\n * External dependencies\n */\n\n/**\n * Internal dependencies\n */\nimport { useToolsPanelItem } from './hook';\nimport { View } from '../../view';\nimport { contextConnect } from '../../context';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n// This wraps controls to be conditionally displayed within a tools panel. It\n// prevents props being applied to HTML elements that would make them invalid.\nconst UnconnectedToolsPanelItem = (props, forwardedRef) => {\n const {\n children,\n isShown,\n shouldRenderPlaceholder,\n ...toolsPanelItemProps\n } = useToolsPanelItem(props);\n if (!isShown) {\n return shouldRenderPlaceholder ? /*#__PURE__*/_jsx(View, {\n ...toolsPanelItemProps,\n ref: forwardedRef\n }) : null;\n }\n return /*#__PURE__*/_jsx(View, {\n ...toolsPanelItemProps,\n ref: forwardedRef,\n children: children\n });\n};\nexport const ToolsPanelItem = contextConnect(UnconnectedToolsPanelItem, 'ToolsPanelItem');\nexport default ToolsPanelItem;"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,kBAAkC;AAClC,kBAAqB;AACrB,qBAA+B;AAC/B,yBAA4B;AAG5B,IAAM,4BAA4B,CAAC,OAAO,iBAAiB;AACzD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,QAAI,+BAAkB,KAAK;AAC3B,MAAI,CAAC,SAAS;AACZ,WAAO,0BAAuC,uCAAAA,KAAK,kBAAM;AAAA,MACvD,GAAG;AAAA,MACH,KAAK;AAAA,IACP,CAAC,IAAI;AAAA,EACP;AACA,SAAoB,uCAAAA,KAAK,kBAAM;AAAA,IAC7B,GAAG;AAAA,IACH,KAAK;AAAA,IACL;AAAA,EACF,CAAC;AACH;AACO,IAAM,qBAAiB,+BAAe,2BAA2B,gBAAgB;AACxF,IAAO,oBAAQ;",
4
+ "sourcesContent": ["import { useToolsPanelItem } from './hook';\nimport { View } from '../../view';\nimport { contextConnect } from '../../context';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n// This wraps controls to be conditionally displayed within a tools panel. It\n// prevents props being applied to HTML elements that would make them invalid.\nconst UnconnectedToolsPanelItem = (props, forwardedRef) => {\n const {\n children,\n isShown,\n shouldRenderPlaceholder,\n ...toolsPanelItemProps\n } = useToolsPanelItem(props);\n if (!isShown) {\n return shouldRenderPlaceholder ? /*#__PURE__*/_jsx(View, {\n ...toolsPanelItemProps,\n ref: forwardedRef\n }) : null;\n }\n return /*#__PURE__*/_jsx(View, {\n ...toolsPanelItemProps,\n ref: forwardedRef,\n children: children\n });\n};\nexport const ToolsPanelItem = contextConnect(UnconnectedToolsPanelItem, 'ToolsPanelItem');\nexport default ToolsPanelItem;"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAkC;AAClC,kBAAqB;AACrB,qBAA+B;AAC/B,yBAA4B;AAG5B,IAAM,4BAA4B,CAAC,OAAO,iBAAiB;AACzD,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,QAAI,+BAAkB,KAAK;AAC3B,MAAI,CAAC,SAAS;AACZ,WAAO,0BAAuC,uCAAAA,KAAK,kBAAM;AAAA,MACvD,GAAG;AAAA,MACH,KAAK;AAAA,IACP,CAAC,IAAI;AAAA,EACP;AACA,SAAoB,uCAAAA,KAAK,kBAAM;AAAA,IAC7B,GAAG;AAAA,IACH,KAAK;AAAA,IACL;AAAA,EACF,CAAC;AACH;AACO,IAAM,qBAAiB,+BAAe,2BAA2B,gBAAgB;AACxF,IAAO,oBAAQ;",
6
6
  "names": ["_jsx"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/tools-panel/tools-panel-item/hook.ts", "../../../../style-runtime/src/index.ts", "../../../src/tools-panel/style.module.scss"],
4
- "sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { usePrevious } from '@wordpress/compose';\nimport { useCallback, useEffect, useLayoutEffect } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport styles from '../style.module.scss';\nimport { useToolsPanelContext } from '../context';\nimport { useContextSystem } from '../../context';\nconst noop = () => {};\nexport function useToolsPanelItem(props) {\n const {\n className,\n hasValue,\n isShownByDefault = false,\n label,\n panelId,\n resetAllFilter = noop,\n onDeselect,\n onSelect,\n ...otherProps\n } = useContextSystem(props, 'ToolsPanelItem');\n const {\n panelId: currentPanelId,\n menuItems,\n registerResetAllFilter,\n deregisterResetAllFilter,\n registerPanelItem,\n deregisterPanelItem,\n flagItemCustomization,\n isResetting,\n shouldRenderPlaceholderItems: shouldRenderPlaceholder,\n firstDisplayedItem,\n lastDisplayedItem,\n __experimentalFirstVisibleItemClass,\n __experimentalLastVisibleItemClass\n } = useToolsPanelContext();\n\n // hasValue is a new function on every render, so do not add it as a\n // dependency to the useCallback hook! If needed, we should use a ref.\n const hasValueCallback = useCallback(hasValue, [panelId]);\n // resetAllFilter is a new function on every render, so do not add it as a\n // dependency to the useCallback hook! If needed, we should use a ref.\n const resetAllFilterCallback = useCallback(resetAllFilter, [panelId]);\n const previousPanelId = usePrevious(currentPanelId);\n const hasMatchingPanel = currentPanelId === panelId || currentPanelId === null;\n\n // Registering the panel item allows the panel to include it in its\n // automatically generated menu and determine its initial checked status.\n //\n // This is performed in a layout effect to ensure that the panel item\n // is registered before it is rendered preventing a rendering glitch.\n // See: https://github.com/WordPress/gutenberg/issues/56470\n useLayoutEffect(() => {\n if (hasMatchingPanel && previousPanelId !== null) {\n registerPanelItem({\n hasValue: hasValueCallback,\n isShownByDefault,\n label,\n panelId\n });\n }\n return () => {\n if (previousPanelId === null && !!currentPanelId || currentPanelId === panelId) {\n deregisterPanelItem(label);\n }\n };\n }, [currentPanelId, hasMatchingPanel, isShownByDefault, label, hasValueCallback, panelId, previousPanelId, registerPanelItem, deregisterPanelItem]);\n useEffect(() => {\n if (hasMatchingPanel) {\n registerResetAllFilter(resetAllFilterCallback);\n }\n return () => {\n if (hasMatchingPanel) {\n deregisterResetAllFilter(resetAllFilterCallback);\n }\n };\n }, [registerResetAllFilter, deregisterResetAllFilter, resetAllFilterCallback, hasMatchingPanel]);\n\n // Note: `label` is used as a key when building menu item state in\n // `ToolsPanel`.\n const menuGroup = isShownByDefault ? 'default' : 'optional';\n const isMenuItemChecked = menuItems?.[menuGroup]?.[label];\n const wasMenuItemChecked = usePrevious(isMenuItemChecked);\n const isRegistered = menuItems?.[menuGroup]?.[label] !== undefined;\n const isValueSet = hasValue();\n // Notify the panel when an item's value has changed except for optional\n // items without value because the item should not cause itself to hide.\n useEffect(() => {\n if (!isShownByDefault && !isValueSet) {\n return;\n }\n flagItemCustomization(isValueSet, label, menuGroup);\n }, [isValueSet, menuGroup, label, flagItemCustomization, isShownByDefault]);\n\n // Determine if the panel item's corresponding menu is being toggled and\n // trigger appropriate callback if it is.\n useEffect(() => {\n // We check whether this item is currently registered as items rendered\n // via fills can persist through the parent panel being remounted.\n // See: https://github.com/WordPress/gutenberg/pull/45673\n if (!isRegistered || isResetting || !hasMatchingPanel) {\n return;\n }\n if (isMenuItemChecked && !isValueSet && !wasMenuItemChecked) {\n onSelect?.();\n }\n if (!isMenuItemChecked && isValueSet && wasMenuItemChecked) {\n onDeselect?.();\n }\n }, [hasMatchingPanel, isMenuItemChecked, isRegistered, isResetting, isValueSet, wasMenuItemChecked, onSelect, onDeselect]);\n\n // The item is shown if it is a default control regardless of whether it\n // has a value. Optional items are shown when they are checked or have\n // a value.\n const isShown = isShownByDefault ? menuItems?.[menuGroup]?.[label] !== undefined : isMenuItemChecked;\n const shouldApplyPlaceholderStyles = shouldRenderPlaceholder && !isShown;\n const classes = clsx(styles['tools-panel-item'], shouldApplyPlaceholderStyles && styles['tools-panel-item-placeholder'], !shouldApplyPlaceholderStyles && className, firstDisplayedItem === label && __experimentalFirstVisibleItemClass, lastDisplayedItem === label && __experimentalLastVisibleItemClass);\n return {\n ...otherProps,\n isShown,\n shouldRenderPlaceholder,\n className: classes\n };\n}", "const STYLE_HASH_ATTRIBUTE = 'data-wp-hash';\n\n/**\n * Returns the shared style runtime registry.\n *\n * The registry is stored on `globalThis` so separately bundled copies of this\n * package can coordinate through the same document and style maps.\n *\n * @return The shared runtime registry.\n */\nfunction getRuntime() {\n const globalScope = globalThis;\n if (globalScope.__wpStyleRuntime) {\n return globalScope.__wpStyleRuntime;\n }\n globalScope.__wpStyleRuntime = {\n documents: new Map(),\n styles: new Map(),\n injectedStyles: new WeakMap()\n };\n if (typeof document !== 'undefined') {\n registerDocument(document);\n }\n return globalScope.__wpStyleRuntime;\n}\n\n/**\n * Checks whether a document already contains a style tag for a hash.\n *\n * @param targetDocument Document to inspect.\n * @param hash Stable hash for the transformed CSS.\n *\n * @return Whether the style hash already exists in the document.\n */\nfunction documentContainsStyleHash(targetDocument, hash) {\n if (!targetDocument.head) {\n return false;\n }\n for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {\n if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Injects a registered style into a document, unless that document already\n * contains a style tag for the same hash.\n *\n * @param targetDocument Document to inject the style into.\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nfunction injectStyle(targetDocument, hash, css) {\n if (!targetDocument.head) {\n return;\n }\n const runtime = getRuntime();\n let injectedStyles = runtime.injectedStyles.get(targetDocument);\n if (!injectedStyles) {\n injectedStyles = new Set();\n runtime.injectedStyles.set(targetDocument, injectedStyles);\n }\n if (injectedStyles.has(hash)) {\n return;\n }\n\n // Older generated CSS module output can still inject matching style tags\n // after this document's cache is created, so keep the DOM as the fallback\n // source of truth on cache misses.\n if (documentContainsStyleHash(targetDocument, hash)) {\n injectedStyles.add(hash);\n return;\n }\n const style = targetDocument.createElement('style');\n style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);\n style.appendChild(targetDocument.createTextNode(css));\n targetDocument.head.appendChild(style);\n injectedStyles.add(hash);\n}\n\n/**\n * Registers a document as a style injection target.\n *\n * Existing registered styles are replayed into the document immediately.\n * Documents are reference-counted so multiple providers can safely register the\n * same document without one cleanup removing it while another registration is\n * still active.\n *\n * @param targetDocument Document to receive registered styles.\n * @return Cleanup function that unregisters this document registration.\n */\nexport function registerDocument(targetDocument) {\n const runtime = getRuntime();\n runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);\n for (const [hash, css] of runtime.styles) {\n injectStyle(targetDocument, hash, css);\n }\n return () => {\n const count = runtime.documents.get(targetDocument);\n if (count === undefined) {\n return;\n }\n if (count <= 1) {\n runtime.documents.delete(targetDocument);\n return;\n }\n runtime.documents.set(targetDocument, count - 1);\n };\n}\n\n/**\n * Registers a style and injects it into all registered documents.\n *\n * The hash is used as the deduplication key, so calling this repeatedly with\n * the same hash will not add duplicate style tags to a document.\n * Registered styles are retained for the lifetime of the page so they can be\n * replayed into documents that are registered later.\n *\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nexport function registerStyle(hash, css) {\n const runtime = getRuntime();\n runtime.styles.set(hash, css);\n for (const targetDocument of runtime.documents.keys()) {\n injectStyle(targetDocument, hash, css);\n }\n}", "import { registerStyle } from '@wordpress/style-runtime';\nif (typeof process === 'undefined' || process.env.NODE_ENV !== 'test') {\n\tregisterStyle(\"29b739f451\", \"._62d714739f4dc308__tools-panel{border-top:1px solid #ddd;margin-top:-1px;padding:16px}._40db7f4f897b683d__tools-panel-with-inner-wrapper>div:not(:first-of-type){column-gap:16px;display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}._95a15674966f30a3__tools-panel-hidden-inner-wrapper>div:not(:first-of-type){display:none}._322a049b9b7d8674__tools-panel-header{gap:8px;grid-column:1/-1}._322a049b9b7d8674__tools-panel-header .components-dropdown-menu{line-height:0;margin:-4px 0}._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header .components-dropdown-menu__toggle{min-width:24px;padding:0}.b92a382d3b30104d__tools-panel-heading.b92a382d3b30104d__tools-panel-heading{font-size:inherit;line-height:normal;margin:0}._8005d68fffa9db91__tools-panel-item{grid-column:1/-1}._8005d68fffa9db91__tools-panel-item>div,._8005d68fffa9db91__tools-panel-item>fieldset{margin-bottom:0;max-width:100%;padding-bottom:0}._8005d68fffa9db91__tools-panel-item .components-base-control__help,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control .components-base-control__field:last-child{margin-bottom:0}._4f55e1a6e373746e__tools-panel-item-placeholder{display:none}.d40032517bff9e12__dropdown-menu{min-width:200px}.f135b96aa96ca6bb__reset-label{color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.4;margin-inline-start:12px;text-transform:uppercase}._69b138dfa5570d9c__default-controls-item{color:#1e1e1e}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]{color:#757575;opacity:1}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]:hover{color:#757575}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true] .f135b96aa96ca6bb__reset-label{opacity:.3}\");\n}\nexport default {\"tools-panel\":\"_62d714739f4dc308__tools-panel\",\"tools-panel-with-inner-wrapper\":\"_40db7f4f897b683d__tools-panel-with-inner-wrapper\",\"tools-panel-hidden-inner-wrapper\":\"_95a15674966f30a3__tools-panel-hidden-inner-wrapper\",\"tools-panel-header\":\"_322a049b9b7d8674__tools-panel-header\",\"tools-panel-heading\":\"b92a382d3b30104d__tools-panel-heading\",\"tools-panel-item\":\"_8005d68fffa9db91__tools-panel-item\",\"tools-panel-item-placeholder\":\"_4f55e1a6e373746e__tools-panel-item-placeholder\",\"dropdown-menu\":\"d40032517bff9e12__dropdown-menu\",\"reset-label\":\"f135b96aa96ca6bb__reset-label\",\"default-controls-item\":\"_69b138dfa5570d9c__default-controls-item\"};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAAiB;AAKjB,qBAA4B;AAC5B,qBAAwD;;;ACTxD,IAAM,uBAAuB;AAU7B,SAAS,aAAa;AACpB,QAAM,cAAc;AACpB,MAAI,YAAY,kBAAkB;AAChC,WAAO,YAAY;AAAA,EACrB;AACA,cAAY,mBAAmB;AAAA,IAC7B,WAAW,oBAAI,IAAI;AAAA,IACnB,QAAQ,oBAAI,IAAI;AAAA,IAChB,gBAAgB,oBAAI,QAAQ;AAAA,EAC9B;AACA,MAAI,OAAO,aAAa,aAAa;AACnC,qBAAiB,QAAQ;AAAA,EAC3B;AACA,SAAO,YAAY;AACrB;AAUA,SAAS,0BAA0B,gBAAgB,MAAM;AACvD,MAAI,CAAC,eAAe,MAAM;AACxB,WAAO;AAAA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AAU,YAAAC,SAAK,qBAAO,kBAAkB,GAAG,gCAAgC,qBAAO,8BAA8B,GAAG,CAAC,gCAAgC,WAAW,uBAAuB,SAAS,qCAAqC,sBAAsB,SAAS,kCAAkC;AAC3S,SAAO;AAAA,IACL,GAAG;AAAA,IACH;AAAA,IACA;AAAA,IACA,WAAW;AAAA,EACb;AACF;",
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { usePrevious } from '@wordpress/compose';\nimport { useCallback, useEffect, useLayoutEffect } from '@wordpress/element';\nimport styles from '../style.module.scss';\nimport { useToolsPanelContext } from '../context';\nimport { useContextSystem } from '../../context';\nconst noop = () => {};\nexport function useToolsPanelItem(props) {\n const {\n className,\n hasValue,\n isShownByDefault = false,\n label,\n panelId,\n resetAllFilter = noop,\n onDeselect,\n onSelect,\n ...otherProps\n } = useContextSystem(props, 'ToolsPanelItem');\n const {\n panelId: currentPanelId,\n menuItems,\n registerResetAllFilter,\n deregisterResetAllFilter,\n registerPanelItem,\n deregisterPanelItem,\n flagItemCustomization,\n isResetting,\n shouldRenderPlaceholderItems: shouldRenderPlaceholder,\n firstDisplayedItem,\n lastDisplayedItem,\n __experimentalFirstVisibleItemClass,\n __experimentalLastVisibleItemClass\n } = useToolsPanelContext();\n\n // hasValue is a new function on every render, so do not add it as a\n // dependency to the useCallback hook! If needed, we should use a ref.\n const hasValueCallback = useCallback(hasValue, [panelId]);\n // resetAllFilter is a new function on every render, so do not add it as a\n // dependency to the useCallback hook! If needed, we should use a ref.\n const resetAllFilterCallback = useCallback(resetAllFilter, [panelId]);\n const previousPanelId = usePrevious(currentPanelId);\n const hasMatchingPanel = currentPanelId === panelId || currentPanelId === null;\n\n // Registering the panel item allows the panel to include it in its\n // automatically generated menu and determine its initial checked status.\n //\n // This is performed in a layout effect to ensure that the panel item\n // is registered before it is rendered preventing a rendering glitch.\n // See: https://github.com/WordPress/gutenberg/issues/56470\n useLayoutEffect(() => {\n if (hasMatchingPanel && previousPanelId !== null) {\n registerPanelItem({\n hasValue: hasValueCallback,\n isShownByDefault,\n label,\n panelId\n });\n }\n return () => {\n if (previousPanelId === null && !!currentPanelId || currentPanelId === panelId) {\n deregisterPanelItem(label);\n }\n };\n }, [currentPanelId, hasMatchingPanel, isShownByDefault, label, hasValueCallback, panelId, previousPanelId, registerPanelItem, deregisterPanelItem]);\n useEffect(() => {\n if (hasMatchingPanel) {\n registerResetAllFilter(resetAllFilterCallback);\n }\n return () => {\n if (hasMatchingPanel) {\n deregisterResetAllFilter(resetAllFilterCallback);\n }\n };\n }, [registerResetAllFilter, deregisterResetAllFilter, resetAllFilterCallback, hasMatchingPanel]);\n\n // Note: `label` is used as a key when building menu item state in\n // `ToolsPanel`.\n const menuGroup = isShownByDefault ? 'default' : 'optional';\n const isMenuItemChecked = menuItems?.[menuGroup]?.[label];\n const wasMenuItemChecked = usePrevious(isMenuItemChecked);\n const isRegistered = menuItems?.[menuGroup]?.[label] !== undefined;\n const isValueSet = hasValue();\n // Notify the panel when an item's value has changed except for optional\n // items without value because the item should not cause itself to hide.\n useEffect(() => {\n if (!isShownByDefault && !isValueSet) {\n return;\n }\n flagItemCustomization(isValueSet, label, menuGroup);\n }, [isValueSet, menuGroup, label, flagItemCustomization, isShownByDefault]);\n\n // Determine if the panel item's corresponding menu is being toggled and\n // trigger appropriate callback if it is.\n useEffect(() => {\n // We check whether this item is currently registered as items rendered\n // via fills can persist through the parent panel being remounted.\n // See: https://github.com/WordPress/gutenberg/pull/45673\n if (!isRegistered || isResetting || !hasMatchingPanel) {\n return;\n }\n if (isMenuItemChecked && !isValueSet && !wasMenuItemChecked) {\n onSelect?.();\n }\n if (!isMenuItemChecked && isValueSet && wasMenuItemChecked) {\n onDeselect?.();\n }\n }, [hasMatchingPanel, isMenuItemChecked, isRegistered, isResetting, isValueSet, wasMenuItemChecked, onSelect, onDeselect]);\n\n // The item is shown if it is a default control regardless of whether it\n // has a value. Optional items are shown when they are checked or have\n // a value.\n const isShown = isShownByDefault ? menuItems?.[menuGroup]?.[label] !== undefined : isMenuItemChecked;\n const shouldApplyPlaceholderStyles = shouldRenderPlaceholder && !isShown;\n const classes = clsx(styles['tools-panel-item'], shouldApplyPlaceholderStyles && styles['tools-panel-item-placeholder'], !shouldApplyPlaceholderStyles && className, firstDisplayedItem === label && __experimentalFirstVisibleItemClass, lastDisplayedItem === label && __experimentalLastVisibleItemClass);\n return {\n ...otherProps,\n isShown,\n shouldRenderPlaceholder,\n className: classes\n };\n}", "const STYLE_HASH_ATTRIBUTE = 'data-wp-hash';\n\n/**\n * Returns the shared style runtime registry.\n *\n * The registry is stored on `globalThis` so separately bundled copies of this\n * package can coordinate through the same document and style maps.\n *\n * @return The shared runtime registry.\n */\nfunction getRuntime() {\n const globalScope = globalThis;\n if (globalScope.__wpStyleRuntime) {\n return globalScope.__wpStyleRuntime;\n }\n globalScope.__wpStyleRuntime = {\n documents: new Map(),\n styles: new Map(),\n injectedStyles: new WeakMap()\n };\n if (typeof document !== 'undefined') {\n registerDocument(document);\n }\n return globalScope.__wpStyleRuntime;\n}\n\n/**\n * Checks whether a document already contains a style tag for a hash.\n *\n * @param targetDocument Document to inspect.\n * @param hash Stable hash for the transformed CSS.\n *\n * @return Whether the style hash already exists in the document.\n */\nfunction documentContainsStyleHash(targetDocument, hash) {\n if (!targetDocument.head) {\n return false;\n }\n for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {\n if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Injects a registered style into a document, unless that document already\n * contains a style tag for the same hash.\n *\n * @param targetDocument Document to inject the style into.\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nfunction injectStyle(targetDocument, hash, css) {\n if (!targetDocument.head) {\n return;\n }\n const runtime = getRuntime();\n let injectedStyles = runtime.injectedStyles.get(targetDocument);\n if (!injectedStyles) {\n injectedStyles = new Set();\n runtime.injectedStyles.set(targetDocument, injectedStyles);\n }\n if (injectedStyles.has(hash)) {\n return;\n }\n\n // Older generated CSS module output can still inject matching style tags\n // after this document's cache is created, so keep the DOM as the fallback\n // source of truth on cache misses.\n if (documentContainsStyleHash(targetDocument, hash)) {\n injectedStyles.add(hash);\n return;\n }\n const style = targetDocument.createElement('style');\n style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);\n style.appendChild(targetDocument.createTextNode(css));\n targetDocument.head.appendChild(style);\n injectedStyles.add(hash);\n}\n\n/**\n * Registers a document as a style injection target.\n *\n * Existing registered styles are replayed into the document immediately.\n * Documents are reference-counted so multiple providers can safely register the\n * same document without one cleanup removing it while another registration is\n * still active.\n *\n * @param targetDocument Document to receive registered styles.\n * @return Cleanup function that unregisters this document registration.\n */\nexport function registerDocument(targetDocument) {\n const runtime = getRuntime();\n runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);\n for (const [hash, css] of runtime.styles) {\n injectStyle(targetDocument, hash, css);\n }\n return () => {\n const count = runtime.documents.get(targetDocument);\n if (count === undefined) {\n return;\n }\n if (count <= 1) {\n runtime.documents.delete(targetDocument);\n return;\n }\n runtime.documents.set(targetDocument, count - 1);\n };\n}\n\n/**\n * Registers a style and injects it into all registered documents.\n *\n * The hash is used as the deduplication key, so calling this repeatedly with\n * the same hash will not add duplicate style tags to a document.\n * Registered styles are retained for the lifetime of the page so they can be\n * replayed into documents that are registered later.\n *\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nexport function registerStyle(hash, css) {\n const runtime = getRuntime();\n runtime.styles.set(hash, css);\n for (const targetDocument of runtime.documents.keys()) {\n injectStyle(targetDocument, hash, css);\n }\n}", "import { registerStyle } from '@wordpress/style-runtime';\nif (typeof process === 'undefined' || process.env.NODE_ENV !== 'test') {\n\tregisterStyle(\"29b739f451\", \"._62d714739f4dc308__tools-panel{border-top:1px solid #ddd;margin-top:-1px;padding:16px}._40db7f4f897b683d__tools-panel-with-inner-wrapper>div:not(:first-of-type){column-gap:16px;display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}._95a15674966f30a3__tools-panel-hidden-inner-wrapper>div:not(:first-of-type){display:none}._322a049b9b7d8674__tools-panel-header{gap:8px;grid-column:1/-1}._322a049b9b7d8674__tools-panel-header .components-dropdown-menu{line-height:0;margin:-4px 0}._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header._322a049b9b7d8674__tools-panel-header .components-dropdown-menu__toggle{min-width:24px;padding:0}.b92a382d3b30104d__tools-panel-heading.b92a382d3b30104d__tools-panel-heading{font-size:inherit;line-height:normal;margin:0}._8005d68fffa9db91__tools-panel-item{grid-column:1/-1}._8005d68fffa9db91__tools-panel-item>div,._8005d68fffa9db91__tools-panel-item>fieldset{margin-bottom:0;max-width:100%;padding-bottom:0}._8005d68fffa9db91__tools-panel-item .components-base-control__help,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control,._8005d68fffa9db91__tools-panel-item._8005d68fffa9db91__tools-panel-item .components-base-control .components-base-control__field:last-child{margin-bottom:0}._4f55e1a6e373746e__tools-panel-item-placeholder{display:none}.d40032517bff9e12__dropdown-menu{min-width:200px}.f135b96aa96ca6bb__reset-label{color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.4;margin-inline-start:12px;text-transform:uppercase}._69b138dfa5570d9c__default-controls-item{color:#1e1e1e}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]{color:#757575;opacity:1}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true]:hover{color:#757575}._69b138dfa5570d9c__default-controls-item._69b138dfa5570d9c__default-controls-item[aria-disabled=true] .f135b96aa96ca6bb__reset-label{opacity:.3}\");\n}\nexport default {\"tools-panel\":\"_62d714739f4dc308__tools-panel\",\"tools-panel-with-inner-wrapper\":\"_40db7f4f897b683d__tools-panel-with-inner-wrapper\",\"tools-panel-hidden-inner-wrapper\":\"_95a15674966f30a3__tools-panel-hidden-inner-wrapper\",\"tools-panel-header\":\"_322a049b9b7d8674__tools-panel-header\",\"tools-panel-heading\":\"b92a382d3b30104d__tools-panel-heading\",\"tools-panel-item\":\"_8005d68fffa9db91__tools-panel-item\",\"tools-panel-item-placeholder\":\"_4f55e1a6e373746e__tools-panel-item-placeholder\",\"dropdown-menu\":\"d40032517bff9e12__dropdown-menu\",\"reset-label\":\"f135b96aa96ca6bb__reset-label\",\"default-controls-item\":\"_69b138dfa5570d9c__default-controls-item\"};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,qBAA4B;AAC5B,qBAAwD;;;ACFxD,IAAM,uBAAuB;AAU7B,SAAS,aAAa;AACpB,QAAM,cAAc;AACpB,MAAI,YAAY,kBAAkB;AAChC,WAAO,YAAY;AAAA,EACrB;AACA,cAAY,mBAAmB;AAAA,IAC7B,WAAW,oBAAI,IAAI;AAAA,IACnB,QAAQ,oBAAI,IAAI;AAAA,IAChB,gBAAgB,oBAAI,QAAQ;AAAA,EAC9B;AACA,MAAI,OAAO,aAAa,aAAa;AACnC,qBAAiB,QAAQ;AAAA,EAC3B;AACA,SAAO,YAAY;AACrB;AAUA,SAAS,0BAA0B,gBAAgB,MAAM;AACvD,MAAI,CAAC,eAAe,MAAM;AACxB,WAAO;AAAA,EACT;AACA,aAAW,SAAS,eAAe,KAAK,iBAAiB,SAAS,oBAAoB,GAAG,GAAG;AAC1F,QAAI,MAAM,aAAa,oBAAoB,MAAM,MAAM;AACrD,aAAO;AAAA,IACT;AAAA,EACF;AACA,SAAO;AACT;AAUA,SAAS,YAAY,gBAAgB,MAAM,KAAK;AAC9C,MAAI,CAAC,eAAe,MAAM;AACxB;AAAA,EACF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7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/tree-grid/cell.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport TreeGridItem from './item';\nimport { Fragment as _Fragment, jsx as _jsx } from \"react/jsx-runtime\";\nfunction UnforwardedTreeGridCell({\n children,\n withoutGridItem = false,\n ...props\n}, ref) {\n return /*#__PURE__*/_jsx(\"td\", {\n ...props,\n role: \"gridcell\",\n children: withoutGridItem ? /*#__PURE__*/_jsx(_Fragment, {\n children: typeof children === 'function' ? children({\n ...props,\n ref\n }) : children\n }) : /*#__PURE__*/_jsx(TreeGridItem, {\n ref: ref,\n children: children\n })\n });\n}\n\n/**\n * `TreeGridCell` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGridCell = forwardRef(UnforwardedTreeGridCell);\nTreeGridCell.displayName = 'TreeGridCell';\nexport default TreeGridCell;"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA2B;AAK3B,kBAAyB;AACzB,yBAAmD;AACnD,SAAS,wBAAwB;AAAA,EAC/B;AAAA,EACA,kBAAkB;AAAA,EAClB,GAAG;AACL,GAAG,KAAK;AACN,SAAoB,uCAAAA,KAAK,MAAM;AAAA,IAC7B,GAAG;AAAA,IACH,MAAM;AAAA,IACN,UAAU,kBAA+B,uCAAAA,KAAK,mBAAAC,UAAW;AAAA,MACvD,UAAU,OAAO,aAAa,aAAa,SAAS;AAAA,QAClD,GAAG;AAAA,QACH;AAAA,MACF,CAAC,IAAI;AAAA,IACP,CAAC,IAAiB,uCAAAD,KAAK,YAAAE,SAAc;AAAA,MACnC;AAAA,MACA;AAAA,IACF,CAAC;AAAA,EACH,CAAC;AACH;AASO,IAAM,mBAAe,2BAAW,uBAAuB;AAC9D,aAAa,cAAc;AAC3B,IAAO,eAAQ;",
4
+ "sourcesContent": ["import { forwardRef } from '@wordpress/element';\nimport TreeGridItem from './item';\nimport { Fragment as _Fragment, jsx as _jsx } from \"react/jsx-runtime\";\nfunction UnforwardedTreeGridCell({\n children,\n withoutGridItem = false,\n ...props\n}, ref) {\n return /*#__PURE__*/_jsx(\"td\", {\n ...props,\n role: \"gridcell\",\n children: withoutGridItem ? /*#__PURE__*/_jsx(_Fragment, {\n children: typeof children === 'function' ? children({\n ...props,\n ref\n }) : children\n }) : /*#__PURE__*/_jsx(TreeGridItem, {\n ref: ref,\n children: children\n })\n });\n}\n\n/**\n * `TreeGridCell` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGridCell = forwardRef(UnforwardedTreeGridCell);\nTreeGridCell.displayName = 'TreeGridCell';\nexport default TreeGridCell;"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA2B;AAC3B,kBAAyB;AACzB,yBAAmD;AACnD,SAAS,wBAAwB;AAAA,EAC/B;AAAA,EACA,kBAAkB;AAAA,EAClB,GAAG;AACL,GAAG,KAAK;AACN,SAAoB,uCAAAA,KAAK,MAAM;AAAA,IAC7B,GAAG;AAAA,IACH,MAAM;AAAA,IACN,UAAU,kBAA+B,uCAAAA,KAAK,mBAAAC,UAAW;AAAA,MACvD,UAAU,OAAO,aAAa,aAAa,SAAS;AAAA,QAClD,GAAG;AAAA,QACH;AAAA,MACF,CAAC,IAAI;AAAA,IACP,CAAC,IAAiB,uCAAAD,KAAK,YAAAE,SAAc;AAAA,MACnC;AAAA,MACA;AAAA,IACF,CAAC;AAAA,EACH,CAAC;AACH;AASO,IAAM,mBAAe,2BAAW,uBAAuB;AAC9D,aAAa,cAAc;AAC3B,IAAO,eAAQ;",
6
6
  "names": ["_jsx", "_Fragment", "TreeGridItem"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/tree-grid/index.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { focus } from '@wordpress/dom';\nimport { forwardRef, useCallback } from '@wordpress/element';\nimport { UP, DOWN, LEFT, RIGHT, HOME, END } from '@wordpress/keycodes';\n\n/**\n * Internal dependencies\n */\nimport RovingTabIndexContainer from './roving-tab-index';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Return focusables in a row element, excluding those from other branches\n * nested within the row.\n *\n * @param rowElement The DOM element representing the row.\n *\n * @return The array of focusables in the row.\n */\nfunction getRowFocusables(rowElement) {\n const focusablesInRow = focus.focusable.find(rowElement, {\n sequential: true\n });\n return focusablesInRow.filter(focusable => {\n return focusable.closest('[role=\"row\"]') === rowElement;\n });\n}\n\n/**\n * Renders both a table and tbody element, used to create a tree hierarchy.\n *\n */\nfunction UnforwardedTreeGrid({\n children,\n onExpandRow = () => {},\n onCollapseRow = () => {},\n onFocusRow = () => {},\n applicationAriaLabel,\n ...props\n}, /** A ref to the underlying DOM table element. */\nref) {\n const onKeyDown = useCallback(event => {\n const {\n keyCode,\n metaKey,\n ctrlKey,\n altKey\n } = event;\n\n // The shift key is intentionally absent from the following list,\n // to enable shift + up/down to select items from the list.\n const hasModifierKeyPressed = metaKey || ctrlKey || altKey;\n if (hasModifierKeyPressed || ![UP, DOWN, LEFT, RIGHT, HOME, END].includes(keyCode)) {\n return;\n }\n\n // The event will be handled, stop propagation.\n event.stopPropagation();\n const {\n activeElement\n } = document;\n const {\n currentTarget: treeGridElement\n } = event;\n if (!activeElement || !treeGridElement.contains(activeElement)) {\n return;\n }\n\n // Calculate the columnIndex of the active element.\n const activeRow = activeElement.closest('[role=\"row\"]');\n if (!activeRow) {\n return;\n }\n const focusablesInRow = getRowFocusables(activeRow);\n const currentColumnIndex = focusablesInRow.indexOf(activeElement);\n const canExpandCollapse = 0 === currentColumnIndex;\n const cannotFocusNextColumn = canExpandCollapse && (activeRow.getAttribute('data-expanded') === 'false' || activeRow.getAttribute('aria-expanded') === 'false') && keyCode === RIGHT;\n if ([LEFT, RIGHT].includes(keyCode)) {\n // Calculate to the next element.\n let nextIndex;\n if (keyCode === LEFT) {\n nextIndex = Math.max(0, currentColumnIndex - 1);\n } else {\n nextIndex = Math.min(currentColumnIndex + 1, focusablesInRow.length - 1);\n }\n\n // Focus is at the left most column.\n if (canExpandCollapse) {\n if (keyCode === LEFT) {\n // Left:\n // If a row is focused, and it is expanded, collapses the current row.\n if (activeRow.getAttribute('data-expanded') === 'true' || activeRow.getAttribute('aria-expanded') === 'true') {\n onCollapseRow(activeRow);\n event.preventDefault();\n return;\n }\n // If a row is focused, and it is collapsed, moves to the parent row (if there is one).\n const level = Math.max(parseInt(activeRow?.getAttribute('aria-level') ?? '1', 10) - 1, 1);\n const rows = Array.from(treeGridElement.querySelectorAll('[role=\"row\"]'));\n let parentRow = activeRow;\n const currentRowIndex = rows.indexOf(activeRow);\n for (let i = currentRowIndex; i >= 0; i--) {\n const ariaLevel = rows[i].getAttribute('aria-level');\n if (ariaLevel !== null && parseInt(ariaLevel, 10) === level) {\n parentRow = rows[i];\n break;\n }\n }\n getRowFocusables(parentRow)?.[0]?.focus();\n }\n if (keyCode === RIGHT) {\n // Right:\n // If a row is focused, and it is collapsed, expands the current row.\n if (activeRow.getAttribute('data-expanded') === 'false' || activeRow.getAttribute('aria-expanded') === 'false') {\n onExpandRow(activeRow);\n event.preventDefault();\n return;\n }\n // If a row is focused, and it is expanded, focuses the next cell in the row.\n const focusableItems = getRowFocusables(activeRow);\n if (focusableItems.length > 0) {\n focusableItems[nextIndex]?.focus();\n }\n }\n // Prevent key use for anything else. For example, Voiceover\n // will start reading text on continued use of left/right arrow\n // keys.\n event.preventDefault();\n return;\n }\n\n // Focus the next element. If at most left column and row is collapsed, moving right is not allowed as this will expand. However, if row is collapsed, moving left is allowed.\n if (cannotFocusNextColumn) {\n return;\n }\n focusablesInRow[nextIndex].focus();\n\n // Prevent key use for anything else. This ensures Voiceover\n // doesn't try to handle key navigation.\n event.preventDefault();\n } else if ([UP, DOWN].includes(keyCode)) {\n // Calculate the rowIndex of the next row.\n const rows = Array.from(treeGridElement.querySelectorAll('[role=\"row\"]'));\n const currentRowIndex = rows.indexOf(activeRow);\n let nextRowIndex;\n if (keyCode === UP) {\n nextRowIndex = Math.max(0, currentRowIndex - 1);\n } else {\n nextRowIndex = Math.min(currentRowIndex + 1, rows.length - 1);\n }\n\n // Focus is either at the top or bottom edge of the grid. Do nothing.\n if (nextRowIndex === currentRowIndex) {\n // Prevent key use for anything else. For example, Voiceover\n // will start navigating horizontally when reaching the vertical\n // bounds of a table.\n event.preventDefault();\n return;\n }\n\n // Get the focusables in the next row.\n const focusablesInNextRow = getRowFocusables(rows[nextRowIndex]);\n\n // If for some reason there are no focusables in the next row, do nothing.\n if (!focusablesInNextRow || !focusablesInNextRow.length) {\n // Prevent key use for anything else. For example, Voiceover\n // will still focus text when using arrow keys, while this\n // component should limit navigation to focusables.\n event.preventDefault();\n return;\n }\n\n // Try to focus the element in the next row that's at a similar column to the activeElement.\n const nextIndex = Math.min(currentColumnIndex, focusablesInNextRow.length - 1);\n focusablesInNextRow[nextIndex].focus();\n\n // Let consumers know the row that was originally focused,\n // and the row that is now in focus.\n onFocusRow(event, activeRow, rows[nextRowIndex]);\n\n // Prevent key use for anything else. This ensures Voiceover\n // doesn't try to handle key navigation.\n event.preventDefault();\n } else if ([HOME, END].includes(keyCode)) {\n // Calculate the rowIndex of the next row.\n const rows = Array.from(treeGridElement.querySelectorAll('[role=\"row\"]'));\n const currentRowIndex = rows.indexOf(activeRow);\n let nextRowIndex;\n if (keyCode === HOME) {\n nextRowIndex = 0;\n } else {\n nextRowIndex = rows.length - 1;\n }\n\n // Focus is either at the top or bottom edge of the grid. Do nothing.\n if (nextRowIndex === currentRowIndex) {\n // Prevent key use for anything else. For example, Voiceover\n // will start navigating horizontally when reaching the vertical\n // bounds of a table.\n event.preventDefault();\n return;\n }\n\n // Get the focusables in the next row.\n const focusablesInNextRow = getRowFocusables(rows[nextRowIndex]);\n\n // If for some reason there are no focusables in the next row, do nothing.\n if (!focusablesInNextRow || !focusablesInNextRow.length) {\n // Prevent key use for anything else. For example, Voiceover\n // will still focus text when using arrow keys, while this\n // component should limit navigation to focusables.\n event.preventDefault();\n return;\n }\n\n // Try to focus the element in the next row that's at a similar column to the activeElement.\n const nextIndex = Math.min(currentColumnIndex, focusablesInNextRow.length - 1);\n focusablesInNextRow[nextIndex].focus();\n\n // Let consumers know the row that was originally focused,\n // and the row that is now in focus.\n onFocusRow(event, activeRow, rows[nextRowIndex]);\n\n // Prevent key use for anything else. This ensures Voiceover\n // doesn't try to handle key navigation.\n event.preventDefault();\n }\n }, [onExpandRow, onCollapseRow, onFocusRow]);\n\n /* Disable reason: A treegrid is implemented using a table element. */\n /* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */\n return /*#__PURE__*/_jsx(RovingTabIndexContainer, {\n children: /*#__PURE__*/_jsx(\"div\", {\n role: \"application\",\n \"aria-label\": applicationAriaLabel,\n children: /*#__PURE__*/_jsx(\"table\", {\n ...props,\n role: \"treegrid\",\n onKeyDown: onKeyDown,\n ref: ref,\n children: /*#__PURE__*/_jsx(\"tbody\", {\n children: children\n })\n })\n })\n });\n /* eslint-enable jsx-a11y/no-noninteractive-element-to-interactive-role */\n}\n\n/**\n * `TreeGrid` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * A tree grid is a hierarchical 2 dimensional UI component, for example it could be\n * used to implement a file system browser.\n *\n * A tree grid allows the user to navigate using arrow keys.\n * Up/down to navigate vertically across rows, and left/right to navigate horizontally\n * between focusables in a row.\n *\n * The `TreeGrid` renders both a `table` and `tbody` element, and is intended to be used\n * with `TreeGridRow` (`tr`) and `TreeGridCell` (`td`) to build out a grid.\n *\n * ```jsx\n * function TreeMenu() {\n * \treturn (\n * \t\t<TreeGrid>\n * \t\t\t<TreeGridRow level={ 1 } positionInSet={ 1 } setSize={ 2 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t\t<TreeGridRow level={ 1 } positionInSet={ 2 } setSize={ 2 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t\t<TreeGridRow level={ 2 } positionInSet={ 1 } setSize={ 1 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t</TreeGrid>\n * \t);\n * }\n * ```\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGrid = forwardRef(UnforwardedTreeGrid);\nTreeGrid.displayName = 'TreeGrid';\nexport default TreeGrid;\nexport { default as TreeGridRow } from './row';\nexport { default as TreeGridCell } from './cell';\nexport { default as TreeGridItem } from './item';"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,iBAAsB;AACtB,qBAAwC;AACxC,sBAAiD;AAKjD,8BAAoC;AACpC,yBAA4B;AAgT5B,iBAAuC;AACvC,kBAAwC;AACxC,kBAAwC;AAzSxC,SAAS,iBAAiB,YAAY;AACpC,QAAM,kBAAkB,iBAAM,UAAU,KAAK,YAAY;AAAA,IACvD,YAAY;AAAA,EACd,CAAC;AACD,SAAO,gBAAgB,OAAO,eAAa;AACzC,WAAO,UAAU,QAAQ,cAAc,MAAM;AAAA,EAC/C,CAAC;AACH;AAMA,SAAS,oBAAoB;AAAA,EAC3B;AAAA,EACA,cAAc,MAAM;AAAA,EAAC;AAAA,EACrB,gBAAgB,MAAM;AAAA,EAAC;AAAA,EACvB,aAAa,MAAM;AAAA,EAAC;AAAA,EACpB;AAAA,EACA,GAAG;AACL,GACA,KAAK;AACH,QAAM,gBAAY,4BAAY,WAAS;AACrC,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,IAAI;AAIJ,UAAM,wBAAwB,WAAW,WAAW;AACpD,QAAI,yBAAyB,CAAC,CAAC,oBAAI,sBAAM,sBAAM,uBAAO,sBAAM,mBAAG,EAAE,SAAS,OAAO,GAAG;AAClF;AAAA,IACF;AAGA,UAAM,gBAAgB;AACtB,UAAM;AAAA,MACJ;AAAA,IACF,IAAI;AACJ,UAAM;AAAA,MACJ,eAAe;AAAA,IAC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kBAAkB,KAAK,QAAQ,SAAS;AAC9C,UAAI;AACJ,UAAI,YAAY,sBAAM;AACpB,uBAAe;AAAA,MACjB,OAAO;AACL,uBAAe,KAAK,SAAS;AAAA,MAC/B;AAGA,UAAI,iBAAiB,iBAAiB;AAIpC,cAAM,eAAe;AACrB;AAAA,MACF;AAGA,YAAM,sBAAsB,iBAAiB,KAAK,YAAY,CAAC;AAG/D,UAAI,CAAC,uBAAuB,CAAC,oBAAoB,QAAQ;AAIvD,cAAM,eAAe;AACrB;AAAA,MACF;AAGA,YAAM,YAAY,KAAK,IAAI,oBAAoB,oBAAoB,SAAS,CAAC;AAC7E,0BAAoB,SAAS,EAAE,MAAM;AAIrC,iBAAW,OAAO,WAAW,KAAK,YAAY,CAAC;AAI/C,YAAM,eAAe;AAAA,IACvB;AAAA,EACF,GAAG,CAAC,aAAa,eAAe,UAAU,CAAC;AAI3C,SAAoB,uCAAAA,KAAK,wBAAAC,SAAyB;AAAA,IAChD,UAAuB,uCAAAD,KAAK,OAAO;AAAA,MACjC,MAAM;AAAA,MACN,cAAc;AAAA,MACd,UAAuB,uCAAAA,KAAK,SAAS;AAAA,QACnC,GAAG;AAAA,QACH,MAAM;AAAA,QACN;AAAA,QACA;AAAA,QACA,UAAuB,uCAAAA,KAAK,SAAS;AAAA,UACnC;AAAA,QACF,CAAC;AAAA,MACH,CAAC;AAAA,IACH,CAAC;AAAA,EACH,CAAC;AAEH;AAgEO,IAAM,eAAW,2BAAW,mBAAmB;AACtD,SAAS,cAAc;AACvB,IAAO,oBAAQ;",
4
+ "sourcesContent": ["import { focus } from '@wordpress/dom';\nimport { forwardRef, useCallback } from '@wordpress/element';\nimport { UP, DOWN, LEFT, RIGHT, HOME, END } from '@wordpress/keycodes';\nimport RovingTabIndexContainer from './roving-tab-index';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Return focusables in a row element, excluding those from other branches\n * nested within the row.\n *\n * @param rowElement The DOM element representing the row.\n *\n * @return The array of focusables in the row.\n */\nfunction getRowFocusables(rowElement) {\n const focusablesInRow = focus.focusable.find(rowElement, {\n sequential: true\n });\n return focusablesInRow.filter(focusable => {\n return focusable.closest('[role=\"row\"]') === rowElement;\n });\n}\n\n/**\n * Renders both a table and tbody element, used to create a tree hierarchy.\n *\n */\nfunction UnforwardedTreeGrid({\n children,\n onExpandRow = () => {},\n onCollapseRow = () => {},\n onFocusRow = () => {},\n applicationAriaLabel,\n ...props\n}, /** A ref to the underlying DOM table element. */\nref) {\n const onKeyDown = useCallback(event => {\n const {\n keyCode,\n metaKey,\n ctrlKey,\n altKey\n } = event;\n\n // The shift key is intentionally absent from the following list,\n // to enable shift + up/down to select items from the list.\n const hasModifierKeyPressed = metaKey || ctrlKey || altKey;\n if (hasModifierKeyPressed || ![UP, DOWN, LEFT, RIGHT, HOME, END].includes(keyCode)) {\n return;\n }\n\n // The event will be handled, stop propagation.\n event.stopPropagation();\n const {\n activeElement\n } = document;\n const {\n currentTarget: treeGridElement\n } = event;\n if (!activeElement || !treeGridElement.contains(activeElement)) {\n return;\n }\n\n // Calculate the columnIndex of the active element.\n const activeRow = activeElement.closest('[role=\"row\"]');\n if (!activeRow) {\n return;\n }\n const focusablesInRow = getRowFocusables(activeRow);\n const currentColumnIndex = focusablesInRow.indexOf(activeElement);\n const canExpandCollapse = 0 === currentColumnIndex;\n const cannotFocusNextColumn = canExpandCollapse && (activeRow.getAttribute('data-expanded') === 'false' || activeRow.getAttribute('aria-expanded') === 'false') && keyCode === RIGHT;\n if ([LEFT, RIGHT].includes(keyCode)) {\n // Calculate to the next element.\n let nextIndex;\n if (keyCode === LEFT) {\n nextIndex = Math.max(0, currentColumnIndex - 1);\n } else {\n nextIndex = Math.min(currentColumnIndex + 1, focusablesInRow.length - 1);\n }\n\n // Focus is at the left most column.\n if (canExpandCollapse) {\n if (keyCode === LEFT) {\n // Left:\n // If a row is focused, and it is expanded, collapses the current row.\n if (activeRow.getAttribute('data-expanded') === 'true' || activeRow.getAttribute('aria-expanded') === 'true') {\n onCollapseRow(activeRow);\n event.preventDefault();\n return;\n }\n // If a row is focused, and it is collapsed, moves to the parent row (if there is one).\n const level = Math.max(parseInt(activeRow?.getAttribute('aria-level') ?? '1', 10) - 1, 1);\n const rows = Array.from(treeGridElement.querySelectorAll('[role=\"row\"]'));\n let parentRow = activeRow;\n const currentRowIndex = rows.indexOf(activeRow);\n for (let i = currentRowIndex; i >= 0; i--) {\n const ariaLevel = rows[i].getAttribute('aria-level');\n if (ariaLevel !== null && parseInt(ariaLevel, 10) === level) {\n parentRow = rows[i];\n break;\n }\n }\n getRowFocusables(parentRow)?.[0]?.focus();\n }\n if (keyCode === RIGHT) {\n // Right:\n // If a row is focused, and it is collapsed, expands the current row.\n if (activeRow.getAttribute('data-expanded') === 'false' || activeRow.getAttribute('aria-expanded') === 'false') {\n onExpandRow(activeRow);\n event.preventDefault();\n return;\n }\n // If a row is focused, and it is expanded, focuses the next cell in the row.\n const focusableItems = getRowFocusables(activeRow);\n if (focusableItems.length > 0) {\n focusableItems[nextIndex]?.focus();\n }\n }\n // Prevent key use for anything else. For example, Voiceover\n // will start reading text on continued use of left/right arrow\n // keys.\n event.preventDefault();\n return;\n }\n\n // Focus the next element. If at most left column and row is collapsed, moving right is not allowed as this will expand. However, if row is collapsed, moving left is allowed.\n if (cannotFocusNextColumn) {\n return;\n }\n focusablesInRow[nextIndex].focus();\n\n // Prevent key use for anything else. This ensures Voiceover\n // doesn't try to handle key navigation.\n event.preventDefault();\n } else if ([UP, DOWN].includes(keyCode)) {\n // Calculate the rowIndex of the next row.\n const rows = Array.from(treeGridElement.querySelectorAll('[role=\"row\"]'));\n const currentRowIndex = rows.indexOf(activeRow);\n let nextRowIndex;\n if (keyCode === UP) {\n nextRowIndex = Math.max(0, currentRowIndex - 1);\n } else {\n nextRowIndex = Math.min(currentRowIndex + 1, rows.length - 1);\n }\n\n // Focus is either at the top or bottom edge of the grid. Do nothing.\n if (nextRowIndex === currentRowIndex) {\n // Prevent key use for anything else. For example, Voiceover\n // will start navigating horizontally when reaching the vertical\n // bounds of a table.\n event.preventDefault();\n return;\n }\n\n // Get the focusables in the next row.\n const focusablesInNextRow = getRowFocusables(rows[nextRowIndex]);\n\n // If for some reason there are no focusables in the next row, do nothing.\n if (!focusablesInNextRow || !focusablesInNextRow.length) {\n // Prevent key use for anything else. For example, Voiceover\n // will still focus text when using arrow keys, while this\n // component should limit navigation to focusables.\n event.preventDefault();\n return;\n }\n\n // Try to focus the element in the next row that's at a similar column to the activeElement.\n const nextIndex = Math.min(currentColumnIndex, focusablesInNextRow.length - 1);\n focusablesInNextRow[nextIndex].focus();\n\n // Let consumers know the row that was originally focused,\n // and the row that is now in focus.\n onFocusRow(event, activeRow, rows[nextRowIndex]);\n\n // Prevent key use for anything else. This ensures Voiceover\n // doesn't try to handle key navigation.\n event.preventDefault();\n } else if ([HOME, END].includes(keyCode)) {\n // Calculate the rowIndex of the next row.\n const rows = Array.from(treeGridElement.querySelectorAll('[role=\"row\"]'));\n const currentRowIndex = rows.indexOf(activeRow);\n let nextRowIndex;\n if (keyCode === HOME) {\n nextRowIndex = 0;\n } else {\n nextRowIndex = rows.length - 1;\n }\n\n // Focus is either at the top or bottom edge of the grid. Do nothing.\n if (nextRowIndex === currentRowIndex) {\n // Prevent key use for anything else. For example, Voiceover\n // will start navigating horizontally when reaching the vertical\n // bounds of a table.\n event.preventDefault();\n return;\n }\n\n // Get the focusables in the next row.\n const focusablesInNextRow = getRowFocusables(rows[nextRowIndex]);\n\n // If for some reason there are no focusables in the next row, do nothing.\n if (!focusablesInNextRow || !focusablesInNextRow.length) {\n // Prevent key use for anything else. For example, Voiceover\n // will still focus text when using arrow keys, while this\n // component should limit navigation to focusables.\n event.preventDefault();\n return;\n }\n\n // Try to focus the element in the next row that's at a similar column to the activeElement.\n const nextIndex = Math.min(currentColumnIndex, focusablesInNextRow.length - 1);\n focusablesInNextRow[nextIndex].focus();\n\n // Let consumers know the row that was originally focused,\n // and the row that is now in focus.\n onFocusRow(event, activeRow, rows[nextRowIndex]);\n\n // Prevent key use for anything else. This ensures Voiceover\n // doesn't try to handle key navigation.\n event.preventDefault();\n }\n }, [onExpandRow, onCollapseRow, onFocusRow]);\n\n /* Disable reason: A treegrid is implemented using a table element. */\n /* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */\n return /*#__PURE__*/_jsx(RovingTabIndexContainer, {\n children: /*#__PURE__*/_jsx(\"div\", {\n role: \"application\",\n \"aria-label\": applicationAriaLabel,\n children: /*#__PURE__*/_jsx(\"table\", {\n ...props,\n role: \"treegrid\",\n onKeyDown: onKeyDown,\n ref: ref,\n children: /*#__PURE__*/_jsx(\"tbody\", {\n children: children\n })\n })\n })\n });\n /* eslint-enable jsx-a11y/no-noninteractive-element-to-interactive-role */\n}\n\n/**\n * `TreeGrid` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * A tree grid is a hierarchical 2 dimensional UI component, for example it could be\n * used to implement a file system browser.\n *\n * A tree grid allows the user to navigate using arrow keys.\n * Up/down to navigate vertically across rows, and left/right to navigate horizontally\n * between focusables in a row.\n *\n * The `TreeGrid` renders both a `table` and `tbody` element, and is intended to be used\n * with `TreeGridRow` (`tr`) and `TreeGridCell` (`td`) to build out a grid.\n *\n * ```jsx\n * function TreeMenu() {\n * \treturn (\n * \t\t<TreeGrid>\n * \t\t\t<TreeGridRow level={ 1 } positionInSet={ 1 } setSize={ 2 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t\t<TreeGridRow level={ 1 } positionInSet={ 2 } setSize={ 2 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t\t<TreeGridRow level={ 2 } positionInSet={ 1 } setSize={ 1 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t</TreeGrid>\n * \t);\n * }\n * ```\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGrid = forwardRef(UnforwardedTreeGrid);\nTreeGrid.displayName = 'TreeGrid';\nexport default TreeGrid;\nexport { default as TreeGridRow } from './row';\nexport { default as TreeGridCell } from './cell';\nexport { default as TreeGridItem } from './item';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAsB;AACtB,qBAAwC;AACxC,sBAAiD;AACjD,8BAAoC;AACpC,yBAA4B;AAgT5B,iBAAuC;AACvC,kBAAwC;AACxC,kBAAwC;AAzSxC,SAAS,iBAAiB,YAAY;AACpC,QAAM,kBAAkB,iBAAM,UAAU,K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3C,SAAoB,uCAAAA,KAAK,wBAAAC,SAAyB;AAAA,IAChD,UAAuB,uCAAAD,KAAK,OAAO;AAAA,MACjC,MAAM;AAAA,MACN,cAAc;AAAA,MACd,UAAuB,uCAAAA,KAAK,SAAS;AAAA,QACnC,GAAG;AAAA,QACH,MAAM;AAAA,QACN;AAAA,QACA;AAAA,QACA,UAAuB,uCAAAA,KAAK,SAAS;AAAA,UACnC;AAAA,QACF,CAAC;AAAA,MACH,CAAC;AAAA,IACH,CAAC;AAAA,EACH,CAAC;AAEH;AAgEO,IAAM,eAAW,2BAAW,mBAAmB;AACtD,SAAS,cAAc;AACvB,IAAO,oBAAQ;",
6
6
  "names": ["_jsx", "RovingTabIndexContainer"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/tree-grid/item.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport RovingTabIndexItem from './roving-tab-index-item';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction UnforwardedTreeGridItem({\n children,\n ...props\n}, ref) {\n return /*#__PURE__*/_jsx(RovingTabIndexItem, {\n ref: ref,\n ...props,\n children: children\n });\n}\n\n/**\n * `TreeGridItem` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGridItem = forwardRef(UnforwardedTreeGridItem);\nTreeGridItem.displayName = 'TreeGridItem';\nexport default TreeGridItem;"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA2B;AAK3B,mCAA+B;AAC/B,yBAA4B;AAC5B,SAAS,wBAAwB;AAAA,EAC/B;AAAA,EACA,GAAG;AACL,GAAG,KAAK;AACN,SAAoB,uCAAAA,KAAK,6BAAAC,SAAoB;AAAA,IAC3C;AAAA,IACA,GAAG;AAAA,IACH;AAAA,EACF,CAAC;AACH;AASO,IAAM,mBAAe,2BAAW,uBAAuB;AAC9D,aAAa,cAAc;AAC3B,IAAO,eAAQ;",
4
+ "sourcesContent": ["import { forwardRef } from '@wordpress/element';\nimport RovingTabIndexItem from './roving-tab-index-item';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction UnforwardedTreeGridItem({\n children,\n ...props\n}, ref) {\n return /*#__PURE__*/_jsx(RovingTabIndexItem, {\n ref: ref,\n ...props,\n children: children\n });\n}\n\n/**\n * `TreeGridItem` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGridItem = forwardRef(UnforwardedTreeGridItem);\nTreeGridItem.displayName = 'TreeGridItem';\nexport default TreeGridItem;"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA2B;AAC3B,mCAA+B;AAC/B,yBAA4B;AAC5B,SAAS,wBAAwB;AAAA,EAC/B;AAAA,EACA,GAAG;AACL,GAAG,KAAK;AACN,SAAoB,uCAAAA,KAAK,6BAAAC,SAAoB;AAAA,IAC3C;AAAA,IACA,GAAG;AAAA,IACH;AAAA,EACF,CAAC;AACH;AASO,IAAM,mBAAe,2BAAW,uBAAuB;AAC9D,aAAa,cAAc;AAC3B,IAAO,eAAQ;",
6
6
  "names": ["_jsx", "RovingTabIndexItem"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/tree-grid/roving-tab-index-context.ts"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { createContext, useContext } from '@wordpress/element';\nconst RovingTabIndexContext = createContext(undefined);\nRovingTabIndexContext.displayName = 'RovingTabIndexContext';\nexport const useRovingTabIndexContext = () => useContext(RovingTabIndexContext);\nexport const RovingTabIndexProvider = RovingTabIndexContext.Provider;"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAA0C;AAC1C,IAAM,4BAAwB,8BAAc,MAAS;AACrD,sBAAsB,cAAc;AAC7B,IAAM,2BAA2B,UAAM,2BAAW,qBAAqB;AACvE,IAAM,yBAAyB,sBAAsB;",
4
+ "sourcesContent": ["import { createContext, useContext } from '@wordpress/element';\nconst RovingTabIndexContext = createContext(undefined);\nRovingTabIndexContext.displayName = 'RovingTabIndexContext';\nexport const useRovingTabIndexContext = () => useContext(RovingTabIndexContext);\nexport const RovingTabIndexProvider = RovingTabIndexContext.Provider;"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA0C;AAC1C,IAAM,4BAAwB,8BAAc,MAAS;AACrD,sBAAsB,cAAc;AAC7B,IAAM,2BAA2B,UAAM,2BAAW,qBAAqB;AACvE,IAAM,yBAAyB,sBAAsB;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/tree-grid/roving-tab-index-item.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useRef, forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { useRovingTabIndexContext } from './roving-tab-index-context';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const RovingTabIndexItem = forwardRef(function UnforwardedRovingTabIndexItem({\n children,\n as: Component,\n ...props\n}, forwardedRef) {\n const localRef = useRef(null);\n const ref = forwardedRef || localRef;\n // @ts-expect-error - We actually want to throw an error if this is undefined.\n const {\n lastFocusedElement,\n setLastFocusedElement\n } = useRovingTabIndexContext();\n let tabIndex;\n if (lastFocusedElement) {\n tabIndex = lastFocusedElement === (\n // TODO: The original implementation simply used `ref.current` here, assuming\n // that a forwarded ref would always be an object, which is not necessarily true.\n // This workaround maintains the original runtime behavior in a type-safe way,\n // but should be revisited.\n 'current' in ref ? ref.current : undefined) ? 0 : -1;\n }\n const onFocus = event => setLastFocusedElement?.(event.target);\n const allProps = {\n ref,\n tabIndex,\n onFocus,\n ...props\n };\n if (typeof children === 'function') {\n return children(allProps);\n }\n if (!Component) {\n return null;\n }\n return /*#__PURE__*/_jsx(Component, {\n ...allProps,\n children: children\n });\n});\nRovingTabIndexItem.displayName = 'RovingTabIndexItem';\nexport default RovingTabIndexItem;"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAmC;AAKnC,sCAAyC;AACzC,yBAA4B;AACrB,IAAM,yBAAqB,2BAAW,SAAS,8BAA8B;AAAA,EAClF;AAAA,EACA,IAAI;AAAA,EACJ,GAAG;AACL,GAAG,cAAc;AACf,QAAM,eAAW,uBAAO,IAAI;AAC5B,QAAM,MAAM,gBAAgB;AAE5B,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,EACF,QAAI,0DAAyB;AAC7B,MAAI;AACJ,MAAI,oBAAoB;AACtB,eAAW;AAAA;AAAA;AAAA;AAAA,KAKX,aAAa,MAAM,IAAI,UAAU,UAAa,IAAI;AAAA,EACpD;AACA,QAAM,UAAU,WAAS,wBAAwB,MAAM,MAAM;AAC7D,QAAM,WAAW;AAAA,IACf;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL;AACA,MAAI,OAAO,aAAa,YAAY;AAClC,WAAO,SAAS,QAAQ;AAAA,EAC1B;AACA,MAAI,CAAC,WAAW;AACd,WAAO;AAAA,EACT;AACA,SAAoB,uCAAAA,KAAK,WAAW;AAAA,IAClC,GAAG;AAAA,IACH;AAAA,EACF,CAAC;AACH,CAAC;AACD,mBAAmB,cAAc;AACjC,IAAO,gCAAQ;",
4
+ "sourcesContent": ["import { useRef, forwardRef } from '@wordpress/element';\nimport { useRovingTabIndexContext } from './roving-tab-index-context';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const RovingTabIndexItem = forwardRef(function UnforwardedRovingTabIndexItem({\n children,\n as: Component,\n ...props\n}, forwardedRef) {\n const localRef = useRef(null);\n const ref = forwardedRef || localRef;\n // @ts-expect-error - We actually want to throw an error if this is undefined.\n const {\n lastFocusedElement,\n setLastFocusedElement\n } = useRovingTabIndexContext();\n let tabIndex;\n if (lastFocusedElement) {\n tabIndex = lastFocusedElement === (\n // TODO: The original implementation simply used `ref.current` here, assuming\n // that a forwarded ref would always be an object, which is not necessarily true.\n // This workaround maintains the original runtime behavior in a type-safe way,\n // but should be revisited.\n 'current' in ref ? ref.current : undefined) ? 0 : -1;\n }\n const onFocus = event => setLastFocusedElement?.(event.target);\n const allProps = {\n ref,\n tabIndex,\n onFocus,\n ...props\n };\n if (typeof children === 'function') {\n return children(allProps);\n }\n if (!Component) {\n return null;\n }\n return /*#__PURE__*/_jsx(Component, {\n ...allProps,\n children: children\n });\n});\nRovingTabIndexItem.displayName = 'RovingTabIndexItem';\nexport default RovingTabIndexItem;"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAmC;AACnC,sCAAyC;AACzC,yBAA4B;AACrB,IAAM,yBAAqB,2BAAW,SAAS,8BAA8B;AAAA,EAClF;AAAA,EACA,IAAI;AAAA,EACJ,GAAG;AACL,GAAG,cAAc;AACf,QAAM,eAAW,uBAAO,IAAI;AAC5B,QAAM,MAAM,gBAAgB;AAE5B,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,EACF,QAAI,0DAAyB;AAC7B,MAAI;AACJ,MAAI,oBAAoB;AACtB,eAAW;AAAA;AAAA;AAAA;AAAA,KAKX,aAAa,MAAM,IAAI,UAAU,UAAa,IAAI;AAAA,EACpD;AACA,QAAM,UAAU,WAAS,wBAAwB,MAAM,MAAM;AAC7D,QAAM,WAAW;AAAA,IACf;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL;AACA,MAAI,OAAO,aAAa,YAAY;AAClC,WAAO,SAAS,QAAQ;AAAA,EAC1B;AACA,MAAI,CAAC,WAAW;AACd,WAAO;AAAA,EACT;AACA,SAAoB,uCAAAA,KAAK,WAAW;AAAA,IAClC,GAAG;AAAA,IACH;AAAA,EACF,CAAC;AACH,CAAC;AACD,mBAAmB,cAAc;AACjC,IAAO,gCAAQ;",
6
6
  "names": ["_jsx"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/tree-grid/roving-tab-index.tsx"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useState, useMemo } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { RovingTabIndexProvider } from './roving-tab-index-context';\n\n/**\n * Provider for adding roving tab index behaviors to tree grid structures.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/components/src/tree-grid/README.md\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function RovingTabIndex({\n children\n}) {\n const [lastFocusedElement, setLastFocusedElement] = useState();\n\n // Use `useMemo` to avoid creation of a new object for the providerValue\n // on every render. Only create a new object when the `lastFocusedElement`\n // value changes.\n const providerValue = useMemo(() => ({\n lastFocusedElement,\n setLastFocusedElement\n }), [lastFocusedElement]);\n return /*#__PURE__*/_jsx(RovingTabIndexProvider, {\n value: providerValue,\n children: children\n });\n}"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAkC;AAKlC,sCAAuC;AAOvC,yBAA4B;AACb,SAAR,eAAgC;AAAA,EACrC;AACF,GAAG;AACD,QAAM,CAAC,oBAAoB,qBAAqB,QAAI,yBAAS;AAK7D,QAAM,oBAAgB,wBAAQ,OAAO;AAAA,IACnC;AAAA,IACA;AAAA,EACF,IAAI,CAAC,kBAAkB,CAAC;AACxB,SAAoB,uCAAAA,KAAK,wDAAwB;AAAA,IAC/C,OAAO;AAAA,IACP;AAAA,EACF,CAAC;AACH;",
4
+ "sourcesContent": ["import { useState, useMemo } from '@wordpress/element';\nimport { RovingTabIndexProvider } from './roving-tab-index-context';\n\n/**\n * Provider for adding roving tab index behaviors to tree grid structures.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/components/src/tree-grid/README.md\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function RovingTabIndex({\n children\n}) {\n const [lastFocusedElement, setLastFocusedElement] = useState();\n\n // Use `useMemo` to avoid creation of a new object for the providerValue\n // on every render. Only create a new object when the `lastFocusedElement`\n // value changes.\n const providerValue = useMemo(() => ({\n lastFocusedElement,\n setLastFocusedElement\n }), [lastFocusedElement]);\n return /*#__PURE__*/_jsx(RovingTabIndexProvider, {\n value: providerValue,\n children: children\n });\n}"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAkC;AAClC,sCAAuC;AAOvC,yBAA4B;AACb,SAAR,eAAgC;AAAA,EACrC;AACF,GAAG;AACD,QAAM,CAAC,oBAAoB,qBAAqB,QAAI,yBAAS;AAK7D,QAAM,oBAAgB,wBAAQ,OAAO;AAAA,IACnC;AAAA,IACA;AAAA,EACF,IAAI,CAAC,kBAAkB,CAAC;AACxB,SAAoB,uCAAAA,KAAK,wDAAwB;AAAA,IAC/C,OAAO;AAAA,IACP;AAAA,EACF,CAAC;AACH;",
6
6
  "names": ["_jsx"]
7
7
  }