@wordpress/components 23.3.5 → 23.3.7

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 (456) hide show
  1. package/build/tooltip/index.js +18 -6
  2. package/build/tooltip/index.js.map +1 -1
  3. package/build-module/tooltip/index.js +16 -6
  4. package/build-module/tooltip/index.js.map +1 -1
  5. package/build-types/angle-picker-control/angle-circle.d.ts +6 -0
  6. package/build-types/angle-picker-control/angle-circle.d.ts.map +1 -0
  7. package/build-types/angle-picker-control/index.d.ts +29 -0
  8. package/build-types/angle-picker-control/index.d.ts.map +1 -0
  9. package/build-types/angle-picker-control/stories/index.d.ts +15 -0
  10. package/build-types/angle-picker-control/stories/index.d.ts.map +1 -0
  11. package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts +25 -0
  12. package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts.map +1 -0
  13. package/build-types/angle-picker-control/types.d.ts +26 -0
  14. package/build-types/angle-picker-control/types.d.ts.map +1 -0
  15. package/build-types/animate/stories/index.d.ts +18 -0
  16. package/build-types/animate/stories/index.d.ts.map +1 -0
  17. package/build-types/animate/types.d.ts +30 -0
  18. package/build-types/animate/types.d.ts.map +1 -0
  19. package/build-types/autocomplete/autocompleter-ui.d.ts +4 -0
  20. package/build-types/autocomplete/autocompleter-ui.d.ts.map +1 -0
  21. package/build-types/autocomplete/get-default-use-items.d.ts +3 -0
  22. package/build-types/autocomplete/get-default-use-items.d.ts.map +1 -0
  23. package/build-types/autocomplete/index.d.ts +23 -0
  24. package/build-types/autocomplete/index.d.ts.map +1 -0
  25. package/build-types/autocomplete/test/index.d.ts +2 -0
  26. package/build-types/autocomplete/test/index.d.ts.map +1 -0
  27. package/build-types/autocomplete/types.d.ts +185 -0
  28. package/build-types/autocomplete/types.d.ts.map +1 -0
  29. package/build-types/border-box-control/test/index.d.ts +2 -0
  30. package/build-types/border-box-control/test/index.d.ts.map +1 -0
  31. package/build-types/border-box-control/test/utils.d.ts +2 -0
  32. package/build-types/border-box-control/test/utils.d.ts.map +1 -0
  33. package/build-types/box-control/all-input-control.d.ts +4 -0
  34. package/build-types/box-control/all-input-control.d.ts.map +1 -0
  35. package/build-types/box-control/axial-input-controls.d.ts +4 -0
  36. package/build-types/box-control/axial-input-controls.d.ts.map +1 -0
  37. package/build-types/box-control/icon.d.ts +8 -0
  38. package/build-types/box-control/icon.d.ts.map +1 -0
  39. package/build-types/box-control/index.d.ts +31 -0
  40. package/build-types/box-control/index.d.ts.map +1 -0
  41. package/build-types/box-control/input-controls.d.ts +4 -0
  42. package/build-types/box-control/input-controls.d.ts.map +1 -0
  43. package/build-types/box-control/linked-button.d.ts +9 -0
  44. package/build-types/box-control/linked-button.d.ts.map +1 -0
  45. package/build-types/box-control/styles/box-control-icon-styles.d.ts +42 -0
  46. package/build-types/box-control/styles/box-control-icon-styles.d.ts.map +1 -0
  47. package/build-types/box-control/styles/box-control-styles.d.ts +42 -0
  48. package/build-types/box-control/styles/box-control-styles.d.ts.map +1 -0
  49. package/build-types/box-control/styles/box-control-visualizer-styles.d.ts +46 -0
  50. package/build-types/box-control/styles/box-control-visualizer-styles.d.ts.map +1 -0
  51. package/build-types/box-control/test/index.d.ts +2 -0
  52. package/build-types/box-control/test/index.d.ts.map +1 -0
  53. package/build-types/box-control/types.d.ts +99 -0
  54. package/build-types/box-control/types.d.ts.map +1 -0
  55. package/build-types/box-control/unit-control.d.ts +4 -0
  56. package/build-types/box-control/unit-control.d.ts.map +1 -0
  57. package/build-types/box-control/utils.d.ts +84 -0
  58. package/build-types/box-control/utils.d.ts.map +1 -0
  59. package/build-types/circular-option-picker/stories/index.d.ts +14 -0
  60. package/build-types/circular-option-picker/stories/index.d.ts.map +1 -0
  61. package/build-types/circular-option-picker/types.d.ts +49 -0
  62. package/build-types/circular-option-picker/types.d.ts.map +1 -0
  63. package/build-types/color-picker/color-display.d.ts +14 -0
  64. package/build-types/color-picker/color-display.d.ts.map +1 -0
  65. package/build-types/color-picker/stories/index.d.ts +19 -0
  66. package/build-types/color-picker/stories/index.d.ts.map +1 -0
  67. package/build-types/color-picker/test/index.d.ts +2 -0
  68. package/build-types/color-picker/test/index.d.ts.map +1 -0
  69. package/build-types/combobox-control/index.d.ts +51 -0
  70. package/build-types/combobox-control/index.d.ts.map +1 -0
  71. package/build-types/combobox-control/stories/index.d.ts +18 -0
  72. package/build-types/combobox-control/stories/index.d.ts.map +1 -0
  73. package/build-types/combobox-control/styles.d.ts +8 -0
  74. package/build-types/combobox-control/styles.d.ts.map +1 -0
  75. package/build-types/combobox-control/test/index.d.ts +2 -0
  76. package/build-types/combobox-control/test/index.d.ts.map +1 -0
  77. package/build-types/combobox-control/types.d.ts +69 -0
  78. package/build-types/combobox-control/types.d.ts.map +1 -0
  79. package/build-types/custom-gradient-picker/constants.d.ts +25 -0
  80. package/build-types/custom-gradient-picker/constants.d.ts.map +1 -0
  81. package/build-types/custom-gradient-picker/gradient-bar/constants.d.ts +8 -0
  82. package/build-types/custom-gradient-picker/gradient-bar/constants.d.ts.map +1 -0
  83. package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts +8 -0
  84. package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -0
  85. package/build-types/custom-gradient-picker/gradient-bar/index.d.ts +4 -0
  86. package/build-types/custom-gradient-picker/gradient-bar/index.d.ts.map +1 -0
  87. package/build-types/custom-gradient-picker/gradient-bar/test/utils.d.ts +2 -0
  88. package/build-types/custom-gradient-picker/gradient-bar/test/utils.d.ts.map +1 -0
  89. package/build-types/custom-gradient-picker/gradient-bar/utils.d.ts +90 -0
  90. package/build-types/custom-gradient-picker/gradient-bar/utils.d.ts.map +1 -0
  91. package/build-types/custom-gradient-picker/index.d.ts +28 -0
  92. package/build-types/custom-gradient-picker/index.d.ts.map +1 -0
  93. package/build-types/custom-gradient-picker/serializer.d.ts +10 -0
  94. package/build-types/custom-gradient-picker/serializer.d.ts.map +1 -0
  95. package/build-types/custom-gradient-picker/stories/index.d.ts +12 -0
  96. package/build-types/custom-gradient-picker/stories/index.d.ts.map +1 -0
  97. package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts +12 -0
  98. package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts.map +1 -0
  99. package/build-types/custom-gradient-picker/test/serializer.d.ts +2 -0
  100. package/build-types/custom-gradient-picker/test/serializer.d.ts.map +1 -0
  101. package/build-types/custom-gradient-picker/types.d.ts +118 -0
  102. package/build-types/custom-gradient-picker/types.d.ts.map +1 -0
  103. package/build-types/custom-gradient-picker/utils.d.ts +13 -0
  104. package/build-types/custom-gradient-picker/utils.d.ts.map +1 -0
  105. package/build-types/date-time/date/test/utils.d.ts +2 -0
  106. package/build-types/date-time/date/test/utils.d.ts.map +1 -0
  107. package/build-types/date-time/date/utils.d.ts +15 -0
  108. package/build-types/date-time/date/utils.d.ts.map +1 -0
  109. package/build-types/date-time/date.d.ts +24 -0
  110. package/build-types/date-time/date.d.ts.map +1 -0
  111. package/build-types/date-time/stories/index.d.ts +14 -0
  112. package/build-types/date-time/stories/index.d.ts.map +1 -0
  113. package/build-types/date-time/test/date.d.ts +2 -0
  114. package/build-types/date-time/test/date.d.ts.map +1 -0
  115. package/build-types/date-time/test/time.d.ts +2 -0
  116. package/build-types/date-time/test/time.d.ts.map +1 -0
  117. package/build-types/date-time/test/utils.d.ts +2 -0
  118. package/build-types/date-time/test/utils.d.ts.map +1 -0
  119. package/build-types/date-time/time.d.ts +25 -0
  120. package/build-types/date-time/time.d.ts.map +1 -0
  121. package/build-types/date-time/timezone.d.ts +7 -0
  122. package/build-types/date-time/timezone.d.ts.map +1 -0
  123. package/build-types/dimension-control/index.d.ts +28 -0
  124. package/build-types/dimension-control/index.d.ts.map +1 -0
  125. package/build-types/dimension-control/sizes.d.ts +26 -0
  126. package/build-types/dimension-control/sizes.d.ts.map +1 -0
  127. package/build-types/dimension-control/stories/index.d.ts +12 -0
  128. package/build-types/dimension-control/stories/index.d.ts.map +1 -0
  129. package/build-types/dimension-control/types.d.ts +47 -0
  130. package/build-types/dimension-control/types.d.ts.map +1 -0
  131. package/build-types/duotone-picker/color-list-picker/index.d.ts +5 -0
  132. package/build-types/duotone-picker/color-list-picker/index.d.ts.map +1 -0
  133. package/build-types/duotone-picker/color-list-picker/types.d.ts +42 -0
  134. package/build-types/duotone-picker/color-list-picker/types.d.ts.map +1 -0
  135. package/build-types/duotone-picker/custom-duotone-bar.d.ts +6 -0
  136. package/build-types/duotone-picker/custom-duotone-bar.d.ts.map +1 -0
  137. package/build-types/duotone-picker/duotone-picker.d.ts +38 -0
  138. package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -0
  139. package/build-types/duotone-picker/duotone-swatch.d.ts +5 -0
  140. package/build-types/duotone-picker/duotone-swatch.d.ts.map +1 -0
  141. package/build-types/duotone-picker/index.d.ts +3 -0
  142. package/build-types/duotone-picker/index.d.ts.map +1 -0
  143. package/build-types/duotone-picker/stories/duotone-picker.d.ts +12 -0
  144. package/build-types/duotone-picker/stories/duotone-picker.d.ts.map +1 -0
  145. package/build-types/duotone-picker/stories/duotone-swatch.d.ts +14 -0
  146. package/build-types/duotone-picker/stories/duotone-swatch.d.ts.map +1 -0
  147. package/build-types/duotone-picker/types.d.ts +60 -0
  148. package/build-types/duotone-picker/types.d.ts.map +1 -0
  149. package/build-types/duotone-picker/utils.d.ts +52 -0
  150. package/build-types/duotone-picker/utils.d.ts.map +1 -0
  151. package/build-types/experiments.d.ts +4 -0
  152. package/build-types/experiments.d.ts.map +1 -0
  153. package/build-types/flyout/context.d.ts +6 -0
  154. package/build-types/flyout/context.d.ts.map +1 -0
  155. package/build-types/flyout/flyout/component.d.ts +21 -0
  156. package/build-types/flyout/flyout/component.d.ts.map +1 -0
  157. package/build-types/flyout/flyout/hook.d.ts +270 -0
  158. package/build-types/flyout/flyout/hook.d.ts.map +1 -0
  159. package/build-types/flyout/flyout/index.d.ts +3 -0
  160. package/build-types/flyout/flyout/index.d.ts.map +1 -0
  161. package/build-types/flyout/flyout-content/component.d.ts +3 -0
  162. package/build-types/flyout/flyout-content/component.d.ts.map +1 -0
  163. package/build-types/flyout/flyout-content/index.d.ts +2 -0
  164. package/build-types/flyout/flyout-content/index.d.ts.map +1 -0
  165. package/build-types/flyout/index.d.ts +2 -0
  166. package/build-types/flyout/index.d.ts.map +1 -0
  167. package/build-types/flyout/styles.d.ts +22 -0
  168. package/build-types/flyout/styles.d.ts.map +1 -0
  169. package/build-types/flyout/types.d.ts +80 -0
  170. package/build-types/flyout/types.d.ts.map +1 -0
  171. package/build-types/flyout/utils.d.ts +8 -0
  172. package/build-types/flyout/utils.d.ts.map +1 -0
  173. package/build-types/form-token-field/test/lib/fixtures.d.ts +26 -0
  174. package/build-types/form-token-field/test/lib/fixtures.d.ts.map +1 -0
  175. package/build-types/form-token-field/test/lib/token-field-wrapper.d.ts +21 -0
  176. package/build-types/form-token-field/test/lib/token-field-wrapper.d.ts.map +1 -0
  177. package/build-types/gradient-picker/index.d.ts +50 -0
  178. package/build-types/gradient-picker/index.d.ts.map +1 -0
  179. package/build-types/gradient-picker/stories/index.d.ts +14 -0
  180. package/build-types/gradient-picker/stories/index.d.ts.map +1 -0
  181. package/build-types/gradient-picker/types.d.ts +87 -0
  182. package/build-types/gradient-picker/types.d.ts.map +1 -0
  183. package/build-types/guide/icons.d.ts +5 -0
  184. package/build-types/guide/icons.d.ts.map +1 -0
  185. package/build-types/guide/index.d.ts +37 -0
  186. package/build-types/guide/index.d.ts.map +1 -0
  187. package/build-types/guide/page-control.d.ts +4 -0
  188. package/build-types/guide/page-control.d.ts.map +1 -0
  189. package/build-types/guide/page.d.ts +7 -0
  190. package/build-types/guide/page.d.ts.map +1 -0
  191. package/build-types/guide/stories/index.d.ts +9 -0
  192. package/build-types/guide/stories/index.d.ts.map +1 -0
  193. package/build-types/guide/test/index.d.ts +2 -0
  194. package/build-types/guide/test/index.d.ts.map +1 -0
  195. package/build-types/guide/types.d.ts +65 -0
  196. package/build-types/guide/types.d.ts.map +1 -0
  197. package/build-types/h-stack/stories/e2e/index.d.ts +9 -0
  198. package/build-types/h-stack/stories/e2e/index.d.ts.map +1 -0
  199. package/build-types/higher-order/navigate-regions/index.d.ts +46 -0
  200. package/build-types/higher-order/navigate-regions/index.d.ts.map +1 -0
  201. package/build-types/higher-order/with-fallback-styles/index.d.ts +44 -0
  202. package/build-types/higher-order/with-fallback-styles/index.d.ts.map +1 -0
  203. package/build-types/higher-order/with-filters/index.d.ts +89 -0
  204. package/build-types/higher-order/with-filters/index.d.ts.map +1 -0
  205. package/build-types/higher-order/with-filters/test/index.d.ts +2 -0
  206. package/build-types/higher-order/with-filters/test/index.d.ts.map +1 -0
  207. package/build-types/higher-order/with-focus-return/index.d.ts +20 -0
  208. package/build-types/higher-order/with-focus-return/index.d.ts.map +1 -0
  209. package/build-types/higher-order/with-focus-return/test/index.d.ts +2 -0
  210. package/build-types/higher-order/with-focus-return/test/index.d.ts.map +1 -0
  211. package/build-types/higher-order/with-notices/index.d.ts +37 -0
  212. package/build-types/higher-order/with-notices/index.d.ts.map +1 -0
  213. package/build-types/higher-order/with-notices/test/index.d.ts +2 -0
  214. package/build-types/higher-order/with-notices/test/index.d.ts.map +1 -0
  215. package/build-types/higher-order/with-notices/types.d.ts +34 -0
  216. package/build-types/higher-order/with-notices/types.d.ts.map +1 -0
  217. package/build-types/higher-order/with-spoken-messages/test/index.d.ts +2 -0
  218. package/build-types/higher-order/with-spoken-messages/test/index.d.ts.map +1 -0
  219. package/build-types/icon/test/index.d.ts +2 -0
  220. package/build-types/icon/test/index.d.ts.map +1 -0
  221. package/build-types/index.d.ts +129 -0
  222. package/build-types/index.d.ts.map +1 -0
  223. package/build-types/menu-items-choice/index.d.ts +38 -0
  224. package/build-types/menu-items-choice/index.d.ts.map +1 -0
  225. package/build-types/menu-items-choice/stories/index.d.ts +12 -0
  226. package/build-types/menu-items-choice/stories/index.d.ts.map +1 -0
  227. package/build-types/menu-items-choice/types.d.ts +53 -0
  228. package/build-types/menu-items-choice/types.d.ts.map +1 -0
  229. package/build-types/navigable-container/stories/navigable-menu.d.ts +12 -0
  230. package/build-types/navigable-container/stories/navigable-menu.d.ts.map +1 -0
  231. package/build-types/navigable-container/stories/tabbable-container.d.ts +12 -0
  232. package/build-types/navigable-container/stories/tabbable-container.d.ts.map +1 -0
  233. package/build-types/navigable-container/test/navigable-menu.d.ts +2 -0
  234. package/build-types/navigable-container/test/navigable-menu.d.ts.map +1 -0
  235. package/build-types/navigable-container/test/tababble-container.d.ts +2 -0
  236. package/build-types/navigable-container/test/tababble-container.d.ts.map +1 -0
  237. package/build-types/navigable-container/types.d.ts +61 -0
  238. package/build-types/navigable-container/types.d.ts.map +1 -0
  239. package/build-types/navigation/back-button/index.d.ts +5 -0
  240. package/build-types/navigation/back-button/index.d.ts.map +1 -0
  241. package/build-types/navigation/constants.d.ts +3 -0
  242. package/build-types/navigation/constants.d.ts.map +1 -0
  243. package/build-types/navigation/context.d.ts +5 -0
  244. package/build-types/navigation/context.d.ts.map +1 -0
  245. package/build-types/navigation/group/context.d.ts +8 -0
  246. package/build-types/navigation/group/context.d.ts.map +1 -0
  247. package/build-types/navigation/group/index.d.ts +5 -0
  248. package/build-types/navigation/group/index.d.ts.map +1 -0
  249. package/build-types/navigation/index.d.ts +46 -0
  250. package/build-types/navigation/index.d.ts.map +1 -0
  251. package/build-types/navigation/item/base-content.d.ts +4 -0
  252. package/build-types/navigation/item/base-content.d.ts.map +1 -0
  253. package/build-types/navigation/item/base.d.ts +4 -0
  254. package/build-types/navigation/item/base.d.ts.map +1 -0
  255. package/build-types/navigation/item/index.d.ts +5 -0
  256. package/build-types/navigation/item/index.d.ts.map +1 -0
  257. package/build-types/navigation/item/use-navigation-tree-item.d.ts +3 -0
  258. package/build-types/navigation/item/use-navigation-tree-item.d.ts.map +1 -0
  259. package/build-types/navigation/menu/context.d.ts +8 -0
  260. package/build-types/navigation/menu/context.d.ts.map +1 -0
  261. package/build-types/navigation/menu/index.d.ts +5 -0
  262. package/build-types/navigation/menu/index.d.ts.map +1 -0
  263. package/build-types/navigation/menu/menu-title-search.d.ts +4 -0
  264. package/build-types/navigation/menu/menu-title-search.d.ts.map +1 -0
  265. package/build-types/navigation/menu/menu-title.d.ts +4 -0
  266. package/build-types/navigation/menu/menu-title.d.ts.map +1 -0
  267. package/build-types/navigation/menu/search-no-results-found.d.ts +4 -0
  268. package/build-types/navigation/menu/search-no-results-found.d.ts.map +1 -0
  269. package/build-types/navigation/menu/use-navigation-tree-menu.d.ts +3 -0
  270. package/build-types/navigation/menu/use-navigation-tree-menu.d.ts.map +1 -0
  271. package/build-types/navigation/stories/index.d.ts +18 -0
  272. package/build-types/navigation/stories/index.d.ts.map +1 -0
  273. package/build-types/navigation/stories/utils/controlled-state.d.ts +7 -0
  274. package/build-types/navigation/stories/utils/controlled-state.d.ts.map +1 -0
  275. package/build-types/navigation/stories/utils/default.d.ts +10 -0
  276. package/build-types/navigation/stories/utils/default.d.ts.map +1 -0
  277. package/build-types/navigation/stories/utils/group.d.ts +10 -0
  278. package/build-types/navigation/stories/utils/group.d.ts.map +1 -0
  279. package/build-types/navigation/stories/utils/hide-if-empty.d.ts +10 -0
  280. package/build-types/navigation/stories/utils/hide-if-empty.d.ts.map +1 -0
  281. package/build-types/navigation/stories/utils/more-examples.d.ts +10 -0
  282. package/build-types/navigation/stories/utils/more-examples.d.ts.map +1 -0
  283. package/build-types/navigation/stories/utils/search.d.ts +10 -0
  284. package/build-types/navigation/stories/utils/search.d.ts.map +1 -0
  285. package/build-types/navigation/styles/navigation-styles.d.ts +58 -0
  286. package/build-types/navigation/styles/navigation-styles.d.ts.map +1 -0
  287. package/build-types/navigation/test/index.d.ts +2 -0
  288. package/build-types/navigation/test/index.d.ts.map +1 -0
  289. package/build-types/navigation/types.d.ts +267 -0
  290. package/build-types/navigation/types.d.ts.map +1 -0
  291. package/build-types/navigation/use-create-navigation-tree.d.ts +15 -0
  292. package/build-types/navigation/use-create-navigation-tree.d.ts.map +1 -0
  293. package/build-types/navigation/use-navigation-tree-nodes.d.ts +11 -0
  294. package/build-types/navigation/use-navigation-tree-nodes.d.ts.map +1 -0
  295. package/build-types/navigation/utils.d.ts +3 -0
  296. package/build-types/navigation/utils.d.ts.map +1 -0
  297. package/build-types/palette-edit/index.d.ts +37 -0
  298. package/build-types/palette-edit/index.d.ts.map +1 -0
  299. package/build-types/palette-edit/stories/index.d.ts +13 -0
  300. package/build-types/palette-edit/stories/index.d.ts.map +1 -0
  301. package/build-types/palette-edit/styles.d.ts +57 -0
  302. package/build-types/palette-edit/styles.d.ts.map +1 -0
  303. package/build-types/palette-edit/test/index.d.ts +2 -0
  304. package/build-types/palette-edit/test/index.d.ts.map +1 -0
  305. package/build-types/palette-edit/types.d.ts +122 -0
  306. package/build-types/palette-edit/types.d.ts.map +1 -0
  307. package/build-types/panel/body.d.ts +9 -0
  308. package/build-types/panel/body.d.ts.map +1 -0
  309. package/build-types/panel/header.d.ts +13 -0
  310. package/build-types/panel/header.d.ts.map +1 -0
  311. package/build-types/panel/index.d.ts +21 -0
  312. package/build-types/panel/index.d.ts.map +1 -0
  313. package/build-types/panel/row.d.ts +12 -0
  314. package/build-types/panel/row.d.ts.map +1 -0
  315. package/build-types/panel/stories/index.d.ts +19 -0
  316. package/build-types/panel/stories/index.d.ts.map +1 -0
  317. package/build-types/panel/test/body.d.ts +2 -0
  318. package/build-types/panel/test/body.d.ts.map +1 -0
  319. package/build-types/panel/test/header.d.ts +2 -0
  320. package/build-types/panel/test/header.d.ts.map +1 -0
  321. package/build-types/panel/test/index.d.ts +2 -0
  322. package/build-types/panel/test/index.d.ts.map +1 -0
  323. package/build-types/panel/test/row.d.ts +2 -0
  324. package/build-types/panel/test/row.d.ts.map +1 -0
  325. package/build-types/panel/types.d.ts +108 -0
  326. package/build-types/panel/types.d.ts.map +1 -0
  327. package/build-types/popover/overlay-middlewares.d.ts +9 -0
  328. package/build-types/popover/overlay-middlewares.d.ts.map +1 -0
  329. package/build-types/radio-context/index.d.ts +6 -0
  330. package/build-types/radio-context/index.d.ts.map +1 -0
  331. package/build-types/spinner/styles/spinner-styles.d.ts +5 -0
  332. package/build-types/spinner/styles/spinner-styles.d.ts.map +1 -0
  333. package/build-types/swatch/index.d.ts +5 -0
  334. package/build-types/swatch/index.d.ts.map +1 -0
  335. package/build-types/swatch/types.d.ts +11 -0
  336. package/build-types/swatch/types.d.ts.map +1 -0
  337. package/build-types/toggle-group-control/component.d.ts +4 -0
  338. package/build-types/toggle-group-control/component.d.ts.map +1 -0
  339. package/build-types/toggle-group-control/styles.d.ts +25 -0
  340. package/build-types/toggle-group-control/styles.d.ts.map +1 -0
  341. package/build-types/toggle-group-control/toggle-group-control-backdrop.d.ts +9 -0
  342. package/build-types/toggle-group-control/toggle-group-control-backdrop.d.ts.map +1 -0
  343. package/build-types/toggle-group-control/toggle-group-control-button.d.ts +6 -0
  344. package/build-types/toggle-group-control/toggle-group-control-button.d.ts.map +1 -0
  345. package/build-types/toggle-group-control/toggle-group-control-context.d.ts +9 -0
  346. package/build-types/toggle-group-control/toggle-group-control-context.d.ts.map +1 -0
  347. package/build-types/toggle-group-control/toggle-group-control-option/styles.d.ts +15 -0
  348. package/build-types/toggle-group-control/toggle-group-control-option/styles.d.ts.map +1 -0
  349. package/build-types/toggle-group-control/toggle-group-control-option.d.ts +4 -0
  350. package/build-types/toggle-group-control/toggle-group-control-option.d.ts.map +1 -0
  351. package/build-types/toolbar/index.d.ts +7 -0
  352. package/build-types/toolbar/index.d.ts.map +1 -0
  353. package/build-types/toolbar/stories/index.d.ts +14 -0
  354. package/build-types/toolbar/stories/index.d.ts.map +1 -0
  355. package/build-types/toolbar/test/index.d.ts +2 -0
  356. package/build-types/toolbar/test/index.d.ts.map +1 -0
  357. package/build-types/toolbar/test/toolbar-group.d.ts +2 -0
  358. package/build-types/toolbar/test/toolbar-group.d.ts.map +1 -0
  359. package/build-types/toolbar/toolbar/index.d.ts +25 -0
  360. package/build-types/toolbar/toolbar/index.d.ts.map +1 -0
  361. package/build-types/toolbar/toolbar/toolbar-container.d.ts +5 -0
  362. package/build-types/toolbar/toolbar/toolbar-container.d.ts.map +1 -0
  363. package/build-types/toolbar/toolbar/types.d.ts +15 -0
  364. package/build-types/toolbar/toolbar/types.d.ts.map +1 -0
  365. package/build-types/toolbar/toolbar-button/index.d.ts +166 -0
  366. package/build-types/toolbar/toolbar-button/index.d.ts.map +1 -0
  367. package/build-types/toolbar/toolbar-button/toolbar-button-container.d.ts +8 -0
  368. package/build-types/toolbar/toolbar-button/toolbar-button-container.d.ts.map +1 -0
  369. package/build-types/toolbar/toolbar-button/types.d.ts +45 -0
  370. package/build-types/toolbar/toolbar-button/types.d.ts.map +1 -0
  371. package/build-types/toolbar/toolbar-context/index.d.ts +8 -0
  372. package/build-types/toolbar/toolbar-context/index.d.ts.map +1 -0
  373. package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts +3 -0
  374. package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts.map +1 -0
  375. package/build-types/toolbar/toolbar-group/index.d.ts +39 -0
  376. package/build-types/toolbar/toolbar-group/index.d.ts.map +1 -0
  377. package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts +7 -0
  378. package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts.map +1 -0
  379. package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts +7 -0
  380. package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts.map +1 -0
  381. package/build-types/toolbar/toolbar-item/index.d.ts +9 -0
  382. package/build-types/toolbar/toolbar-item/index.d.ts.map +1 -0
  383. package/build-types/tools-panel/stories/index.d.ts +17 -0
  384. package/build-types/tools-panel/stories/index.d.ts.map +1 -0
  385. package/build-types/tools-panel/test/index.d.ts +2 -0
  386. package/build-types/tools-panel/test/index.d.ts.map +1 -0
  387. package/build-types/tooltip/index.d.ts.map +1 -1
  388. package/build-types/tree-grid/cell.d.ts +13 -0
  389. package/build-types/tree-grid/cell.d.ts.map +1 -0
  390. package/build-types/tree-grid/index.d.ts +70 -0
  391. package/build-types/tree-grid/index.d.ts.map +1 -0
  392. package/build-types/tree-grid/item.d.ts +12 -0
  393. package/build-types/tree-grid/item.d.ts.map +1 -0
  394. package/build-types/tree-grid/roving-tab-index-context.d.ts +10 -0
  395. package/build-types/tree-grid/roving-tab-index-context.d.ts.map +1 -0
  396. package/build-types/tree-grid/roving-tab-index-item.d.ts +5 -0
  397. package/build-types/tree-grid/roving-tab-index-item.d.ts.map +1 -0
  398. package/build-types/tree-grid/roving-tab-index.d.ts +10 -0
  399. package/build-types/tree-grid/roving-tab-index.d.ts.map +1 -0
  400. package/build-types/tree-grid/row.d.ts +12 -0
  401. package/build-types/tree-grid/row.d.ts.map +1 -0
  402. package/build-types/tree-grid/stories/index.d.ts +13 -0
  403. package/build-types/tree-grid/stories/index.d.ts.map +1 -0
  404. package/build-types/tree-grid/test/cell.d.ts +2 -0
  405. package/build-types/tree-grid/test/cell.d.ts.map +1 -0
  406. package/build-types/tree-grid/test/index.d.ts +2 -0
  407. package/build-types/tree-grid/test/index.d.ts.map +1 -0
  408. package/build-types/tree-grid/test/roving-tab-index-item.d.ts +2 -0
  409. package/build-types/tree-grid/test/roving-tab-index-item.d.ts.map +1 -0
  410. package/build-types/tree-grid/test/roving-tab-index.d.ts +2 -0
  411. package/build-types/tree-grid/test/roving-tab-index.d.ts.map +1 -0
  412. package/build-types/tree-grid/test/row.d.ts +2 -0
  413. package/build-types/tree-grid/test/row.d.ts.map +1 -0
  414. package/build-types/tree-grid/types.d.ts +116 -0
  415. package/build-types/tree-grid/types.d.ts.map +1 -0
  416. package/build-types/ui/color-picker/color-display.d.ts +13 -0
  417. package/build-types/ui/color-picker/color-display.d.ts.map +1 -0
  418. package/build-types/ui/color-picker/color-input.d.ts +13 -0
  419. package/build-types/ui/color-picker/color-input.d.ts.map +1 -0
  420. package/build-types/ui/color-picker/component.d.ts +12 -0
  421. package/build-types/ui/color-picker/component.d.ts.map +1 -0
  422. package/build-types/ui/color-picker/hex-input.d.ts +12 -0
  423. package/build-types/ui/color-picker/hex-input.d.ts.map +1 -0
  424. package/build-types/ui/color-picker/hsl-input.d.ts +12 -0
  425. package/build-types/ui/color-picker/hsl-input.d.ts.map +1 -0
  426. package/build-types/ui/color-picker/index.d.ts +2 -0
  427. package/build-types/ui/color-picker/index.d.ts.map +1 -0
  428. package/build-types/ui/color-picker/input-with-slider.d.ts +11 -0
  429. package/build-types/ui/color-picker/input-with-slider.d.ts.map +1 -0
  430. package/build-types/ui/color-picker/legacy-adapter.d.ts +5 -0
  431. package/build-types/ui/color-picker/legacy-adapter.d.ts.map +1 -0
  432. package/build-types/ui/color-picker/picker.d.ts +12 -0
  433. package/build-types/ui/color-picker/picker.d.ts.map +1 -0
  434. package/build-types/ui/color-picker/rgb-input.d.ts +12 -0
  435. package/build-types/ui/color-picker/rgb-input.d.ts.map +1 -0
  436. package/build-types/ui/color-picker/styles.d.ts +76 -0
  437. package/build-types/ui/color-picker/styles.d.ts.map +1 -0
  438. package/build-types/ui/color-picker/types.d.ts +2 -0
  439. package/build-types/ui/color-picker/types.d.ts.map +1 -0
  440. package/build-types/ui/color-picker/use-deprecated-props.d.ts +50 -0
  441. package/build-types/ui/color-picker/use-deprecated-props.d.ts.map +1 -0
  442. package/build-types/ui/utils/create-component.d.ts +21 -0
  443. package/build-types/ui/utils/create-component.d.ts.map +1 -0
  444. package/build-types/utils/hooks/use-combined-ref.d.ts +8 -0
  445. package/build-types/utils/hooks/use-combined-ref.d.ts.map +1 -0
  446. package/build-types/utils/hooks/use-jump-step.d.ts +25 -0
  447. package/build-types/utils/hooks/use-jump-step.d.ts.map +1 -0
  448. package/build-types/utils/keyboard.d.ts +12 -0
  449. package/build-types/utils/keyboard.d.ts.map +1 -0
  450. package/build-types/utils/use-deprecated-props.d.ts +9 -0
  451. package/build-types/utils/use-deprecated-props.d.ts.map +1 -0
  452. package/build-types/v-stack/stories/e2e/index.d.ts +9 -0
  453. package/build-types/v-stack/stories/e2e/index.d.ts.map +1 -0
  454. package/package.json +3 -3
  455. package/src/tooltip/index.js +11 -1
  456. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,185 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * WordPress dependencies
4
+ */
5
+ import type { WPElement } from '@wordpress/element';
6
+ import type { RichTextValue } from '@wordpress/rich-text';
7
+ /**
8
+ * Internal dependencies
9
+ */
10
+ import type { useAutocomplete } from '.';
11
+ export type InsertOption = {
12
+ action: 'insert-at-caret';
13
+ value: React.ReactNode;
14
+ };
15
+ export type ReplaceOption = {
16
+ action: 'replace';
17
+ value: RichTextValue;
18
+ };
19
+ export type OptionCompletion = React.ReactNode | InsertOption | ReplaceOption;
20
+ type OptionLabel = string | WPElement | Array<string | WPElement>;
21
+ export type KeyedOption = {
22
+ key: string;
23
+ value: any;
24
+ label: OptionLabel;
25
+ keywords: Array<string>;
26
+ isDisabled: boolean;
27
+ };
28
+ export type WPCompleter<TCompleterOption = any> = {
29
+ /**
30
+ * The name of the completer. Useful for identifying a specific completer to
31
+ * be overridden via extensibility hooks.
32
+ */
33
+ name: string;
34
+ /**
35
+ * The string prefix that should trigger the completer. For example,
36
+ * Gutenberg's block completer is triggered when the '/' character is
37
+ * entered.
38
+ */
39
+ triggerPrefix: string;
40
+ /**
41
+ * The raw options for completion. May be an array, a function that returns
42
+ * an array, or a function that returns a promise for an array.
43
+ * Options may be of any type or shape. The completer declares how those
44
+ * options are rendered and what their completions should be when selected.
45
+ */
46
+ options: ((query: string) => PromiseLike<readonly TCompleterOption[]> | readonly TCompleterOption[]) | readonly TCompleterOption[];
47
+ /**
48
+ * A function that returns the keywords for the specified option.
49
+ */
50
+ getOptionKeywords?: (option: TCompleterOption) => Array<string>;
51
+ /**
52
+ * A function that returns whether or not the specified option is disabled.
53
+ * Disabled options cannot be selected.
54
+ */
55
+ isOptionDisabled?: (option: TCompleterOption) => boolean;
56
+ /**
57
+ * A function that returns the label for a given option. A label may be a
58
+ * string or a mixed array of strings, elements, and components.
59
+ */
60
+ getOptionLabel: (option: TCompleterOption) => OptionLabel;
61
+ /**
62
+ * A function that takes a Range before and a Range after the autocomplete
63
+ * trigger and query text and returns a boolean indicating whether the
64
+ * completer should be considered for that context.
65
+ */
66
+ allowContext?: (before: string, after: string) => boolean;
67
+ /**
68
+ * A function that takes an option and returns how the option should
69
+ * be completed. By default, the result is a value to be inserted in the
70
+ * text.
71
+ * However, a completer may explicitly declare how a completion should be
72
+ * treated by returning an object with `action` and `value` properties. The
73
+ * `action` declares what should be done with the `value`.
74
+ */
75
+ getOptionCompletion?: (option: TCompleterOption, query: string) => OptionCompletion;
76
+ /**
77
+ * A function that returns an array of items to be displayed in the
78
+ * Autocomplete UI. These items have uniform shape and have been filtered by
79
+ * `AutocompleterUIProps.filterValue`.
80
+ */
81
+ useItems?: (filterValue: string) => readonly [Array<KeyedOption>];
82
+ /**
83
+ * Whether or not changes to the `filterValue` should be debounced.
84
+ */
85
+ isDebounced?: boolean;
86
+ /**
87
+ * A CSS class name to be applied to the completion menu.
88
+ */
89
+ className?: string;
90
+ };
91
+ type ContentRef = React.RefObject<HTMLElement>;
92
+ export type AutocompleterUIProps = {
93
+ /**
94
+ * The value to filter the options by.
95
+ */
96
+ filterValue: string;
97
+ /**
98
+ * An id unique to each instance of the component, used in the IDs of the
99
+ * buttons generated for individual options.
100
+ */
101
+ instanceId: number;
102
+ /**
103
+ * The id of to be applied to the listbox of options.
104
+ */
105
+ listBoxId: string | undefined;
106
+ /**
107
+ * The class to apply to the wrapper element.
108
+ */
109
+ className?: string;
110
+ /**
111
+ * The index of the currently selected option.
112
+ */
113
+ selectedIndex: number;
114
+ /**
115
+ * A function to be called when the filterValue changes.
116
+ */
117
+ onChangeOptions: (items: Array<KeyedOption>) => void;
118
+ /**
119
+ * A function to be called when an option is selected.
120
+ */
121
+ onSelect: (option: KeyedOption) => void;
122
+ /**
123
+ * A function to be called when the completer is reset
124
+ * (e.g. when the user hits the escape key).
125
+ */
126
+ onReset?: () => void;
127
+ /**
128
+ * A function that defines the behavior of the completer when it is reset
129
+ */
130
+ reset: (event: Event) => void;
131
+ /**
132
+ * The rich text value object the autocompleter is being applied to.
133
+ */
134
+ value?: RichTextValue;
135
+ /**
136
+ * A ref containing the editable element that will serve as the anchor for
137
+ * `Autocomplete`'s `Popover`.
138
+ */
139
+ contentRef: ContentRef;
140
+ };
141
+ export type CancelablePromise<T = void> = Promise<T> & {
142
+ canceled?: boolean;
143
+ };
144
+ export type UseAutocompleteProps = {
145
+ /**
146
+ * The rich text value object the autocompleter is being applied to.
147
+ */
148
+ record: RichTextValue & {
149
+ start: NonNullable<RichTextValue['start']>;
150
+ end: NonNullable<RichTextValue['end']>;
151
+ };
152
+ /**
153
+ * A function to be called when an option is selected to insert into the
154
+ * existing text.
155
+ */
156
+ onChange: (value: RichTextValue) => void;
157
+ /**
158
+ * A function to be called when an option is selected to replace the
159
+ * existing text.
160
+ */
161
+ onReplace: (values: RichTextValue[]) => void;
162
+ /**
163
+ * An array of all of the completers to apply to the current element.
164
+ */
165
+ completers: Array<WPCompleter>;
166
+ /**
167
+ * A ref containing the editable element that will serve as the anchor for
168
+ * `Autocomplete`'s `Popover`.
169
+ */
170
+ contentRef: ContentRef;
171
+ };
172
+ export type AutocompleteProps = UseAutocompleteProps & {
173
+ /**
174
+ * A function that returns nodes to be rendered within the Autocomplete.
175
+ */
176
+ children: (props: Omit<ReturnType<typeof useAutocomplete>, 'popover'>) => React.ReactNode;
177
+ /**
178
+ * Whether or not the Autocomplte componenet is selected, and if its
179
+ * `Popover`
180
+ * should be displayed.
181
+ */
182
+ isSelected: boolean;
183
+ };
184
+ export {};
185
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/autocomplete/types.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE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AAEF,MAAM,MAAM,iBAAiB,CAAE,CAAC,GAAG,IAAI,IAAK,OAAO,CAAE,CAAC,CAAE,GAAG;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IAClC;;OAEG;IACH,MAAM,EAAE,aAAa,GAAG;QACvB,KAAK,EAAE,WAAW,CAAE,aAAa,CAAE,OAAO,CAAE,CAAE,CAAC;QAC/C,GAAG,EAAE,WAAW,CAAE,aAAa,CAAE,KAAK,CAAE,CAAE,CAAC;KAC3C,CAAC;IACF;;;OAGG;IACH,QAAQ,EAAE,CAAE,KAAK,EAAE,aAAa,KAAM,IAAI,CAAC;IAC3C;;;OAGG;IACH,SAAS,EAAE,CAAE,MAAM,EAAE,aAAa,EAAE,KAAM,IAAI,CAAC;IAC/C;;OAEG;IACH,UAAU,EAAE,KAAK,CAAE,WAAW,CAAE,CAAC;IACjC;;;OAGG;IACH,UAAU,EAAE,UAAU,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAAG;IACtD;;OAEG;IACH,QAAQ,EAAE,CACT,KAAK,EAAE,IAAI,CAAE,UAAU,CAAE,OAAO,eAAe,CAAE,EAAE,SAAS,CAAE,KAC1D,KAAK,CAAC,SAAS,CAAC;IACrB;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;CACpB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/border-box-control/test/index.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/border-box-control/test/utils.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { BoxControlInputControlProps } from './types';
3
+ export default function AllInputControl({ onChange, onFocus, onHoverOn, onHoverOff, values, sides, selectedUnits, setSelectedUnits, ...props }: BoxControlInputControlProps): JSX.Element;
4
+ //# sourceMappingURL=all-input-control.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"all-input-control.d.ts","sourceRoot":"","sources":["../../src/box-control/all-input-control.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAY3D,MAAM,CAAC,OAAO,UAAU,eAAe,CAAE,EACxC,QAAe,EACf,OAAc,EACd,SAAgB,EAChB,UAAiB,EACjB,MAAM,EACN,KAAK,EACL,aAAa,EACb,gBAAgB,EAChB,GAAG,KAAK,EACR,EAAE,2BAA2B,eA2D7B"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { BoxControlInputControlProps } from './types';
3
+ export default function AxialInputControls({ onChange, onFocus, onHoverOn, onHoverOff, values, selectedUnits, setSelectedUnits, sides, ...props }: BoxControlInputControlProps): JSX.Element;
4
+ //# sourceMappingURL=axial-input-controls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axial-input-controls.d.ts","sourceRoot":"","sources":["../../src/box-control/axial-input-controls.tsx"],"names":[],"mappings":";AAOA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAK3D,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,EAC3C,QAAQ,EACR,OAAO,EACP,SAAS,EACT,UAAU,EACV,MAAM,EACN,aAAa,EACb,gBAAgB,EAChB,KAAK,EACL,GAAG,KAAK,EACR,EAAE,2BAA2B,eAkI7B"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Internal dependencies
4
+ */
5
+ import type { WordPressComponentProps } from '../ui/context';
6
+ import type { BoxControlIconProps } from './types';
7
+ export default function BoxControlIcon({ size, side, sides, ...props }: WordPressComponentProps<BoxControlIconProps, 'span'>): JSX.Element;
8
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/box-control/icon.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAS7D,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,SAAS,CAAC;AAIpE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAE,EACvC,IAAS,EACT,IAAY,EACZ,KAAK,EACL,GAAG,KAAK,EACR,EAAE,uBAAuB,CAAE,mBAAmB,EAAE,MAAM,CAAE,eAiCxD"}
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ import type { BoxControlProps } from './types';
3
+ /**
4
+ * BoxControl components let users set values for Top, Right, Bottom, and Left.
5
+ * This can be used as an input control for values like `padding` or `margin`.
6
+ *
7
+ * ```jsx
8
+ * import { __experimentalBoxControl as BoxControl } from '@wordpress/components';
9
+ * import { useState } from '@wordpress/element';
10
+ *
11
+ * const Example = () => {
12
+ * const [ values, setValues ] = useState( {
13
+ * top: '50px',
14
+ * left: '10%',
15
+ * right: '10%',
16
+ * bottom: '50px',
17
+ * } );
18
+ *
19
+ * return (
20
+ * <BoxControl
21
+ * values={ values }
22
+ * onChange={ ( nextValues ) => setValues( nextValues ) }
23
+ * />
24
+ * );
25
+ * };
26
+ * ```
27
+ */
28
+ declare function BoxControl({ id: idProp, inputProps, onChange, label, values: valuesProp, units, sides, splitOnAxis, allowReset, resetValues, onMouseOver, onMouseOut, }: BoxControlProps): JSX.Element;
29
+ export { applyValueToSides } from './utils';
30
+ export default BoxControl;
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/box-control/index.tsx"],"names":[],"mappings":";AA+BA,OAAO,KAAK,EAEX,eAAe,EAEf,MAAM,SAAS,CAAC;AAcjB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,iBAAS,UAAU,CAAE,EACpB,EAAE,EAAE,MAAM,EACV,UAA8B,EAC9B,QAAe,EACf,KAA2B,EAC3B,MAAM,EAAE,UAAU,EAClB,KAAK,EACL,KAAK,EACL,WAAmB,EACnB,UAAiB,EACjB,WAA4B,EAC5B,WAAW,EACX,UAAU,GACV,EAAE,eAAe,eA0HjB;AAED,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { BoxControlInputControlProps } from './types';
3
+ export default function BoxInputControls({ onChange, onFocus, onHoverOn, onHoverOff, values, selectedUnits, setSelectedUnits, sides, ...props }: BoxControlInputControlProps): JSX.Element;
4
+ //# sourceMappingURL=input-controls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-controls.d.ts","sourceRoot":"","sources":["../../src/box-control/input-controls.tsx"],"names":[],"mappings":";AAOA,OAAO,KAAK,EAAE,2BAA2B,EAAmB,MAAM,SAAS,CAAC;AAK5E,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAE,EACzC,QAAe,EACf,OAAc,EACd,SAAgB,EAChB,UAAiB,EACjB,MAAM,EACN,aAAa,EACb,gBAAgB,EAChB,KAAK,EACL,GAAG,KAAK,EACR,EAAE,2BAA2B,eA+G7B"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Internal dependencies
4
+ */
5
+ import Button from '../button';
6
+ export default function LinkedButton({ isLinked, ...props }: {
7
+ isLinked?: boolean;
8
+ } & React.ComponentProps<typeof Button>): JSX.Element;
9
+ //# sourceMappingURL=linked-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linked-button.d.ts","sourceRoot":"","sources":["../../src/box-control/linked-button.tsx"],"names":[],"mappings":";AAMA;;GAEG;AACH,OAAO,MAAM,MAAM,WAAW,CAAC;AAG/B,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,EACrC,QAAQ,EACR,GAAG,KAAK,EACR,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,KAAK,CAAC,cAAc,CAAE,OAAO,MAAM,CAAE,eAehE"}
@@ -0,0 +1,42 @@
1
+ /// <reference types="react" />
2
+ export declare const Root: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
6
+ export declare const Viewbox: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: import("react").ElementType<any> | undefined;
9
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
10
+ export declare const TopStroke: import("@emotion/styled").StyledComponent<{
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ } & {
14
+ isFocused: boolean;
15
+ } & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ }, {}, {}>;
18
+ export declare const RightStroke: import("@emotion/styled").StyledComponent<{
19
+ theme?: import("@emotion/react").Theme | undefined;
20
+ as?: import("react").ElementType<any> | undefined;
21
+ } & {
22
+ isFocused: boolean;
23
+ } & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
24
+ theme?: import("@emotion/react").Theme | undefined;
25
+ }, {}, {}>;
26
+ export declare const BottomStroke: import("@emotion/styled").StyledComponent<{
27
+ theme?: import("@emotion/react").Theme | undefined;
28
+ as?: import("react").ElementType<any> | undefined;
29
+ } & {
30
+ isFocused: boolean;
31
+ } & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
32
+ theme?: import("@emotion/react").Theme | undefined;
33
+ }, {}, {}>;
34
+ export declare const LeftStroke: import("@emotion/styled").StyledComponent<{
35
+ theme?: import("@emotion/react").Theme | undefined;
36
+ as?: import("react").ElementType<any> | undefined;
37
+ } & {
38
+ isFocused: boolean;
39
+ } & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
40
+ theme?: import("@emotion/react").Theme | undefined;
41
+ }, {}, {}>;
42
+ //# sourceMappingURL=box-control-icon-styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box-control-icon-styles.d.ts","sourceRoot":"","sources":["../../../src/box-control/styles/box-control-icon-styles.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,IAAI;;;2GAOhB,CAAC;AAEF,eAAO,MAAM,OAAO;;;2GAMnB,CAAC;AA6BF,eAAO,MAAM,SAAS;;;;eA3B4B,OAAO;;;UA6BxD,CAAC;AAEF,eAAO,MAAM,WAAW;;;;eA/B0B,OAAO;;;UAiCxD,CAAC;AAEF,eAAO,MAAM,YAAY;;;;eAnCyB,OAAO;;;UAqCxD,CAAC;AAEF,eAAO,MAAM,UAAU;;;;eAvC2B,OAAO;;;UAyCxD,CAAC"}
@@ -0,0 +1,42 @@
1
+ /// <reference types="react" />
2
+ import type { BoxUnitControlProps } from '../types';
3
+ export declare const Root: import("@emotion/styled").StyledComponent<{
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
+ export declare const Header: import("@emotion/styled").StyledComponent<import("../../flex/types").FlexProps & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "as" | keyof import("react").RefAttributes<any> | keyof import("../../flex/types").FlexProps> & {
8
+ as?: keyof JSX.IntrinsicElements | undefined;
9
+ } & {
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ }, {}, {}>;
12
+ export declare const HeaderControlWrapper: import("@emotion/styled").StyledComponent<import("../../flex/types").FlexProps & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "as" | keyof import("react").RefAttributes<any> | keyof import("../../flex/types").FlexProps> & {
13
+ as?: keyof JSX.IntrinsicElements | undefined;
14
+ } & {
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ }, {}, {}>;
17
+ export declare const UnitControlWrapper: import("@emotion/styled").StyledComponent<{
18
+ theme?: import("@emotion/react").Theme | undefined;
19
+ as?: import("react").ElementType<any> | undefined;
20
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
21
+ export declare const LayoutContainer: import("@emotion/styled").StyledComponent<import("../../flex/types").FlexProps & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "as" | keyof import("react").RefAttributes<any> | keyof import("../../flex/types").FlexProps> & {
22
+ as?: keyof JSX.IntrinsicElements | undefined;
23
+ } & {
24
+ theme?: import("@emotion/react").Theme | undefined;
25
+ }, {}, {}>;
26
+ export declare const Layout: import("@emotion/styled").StyledComponent<import("../../flex/types").FlexProps & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "as" | keyof import("react").RefAttributes<any> | keyof import("../../flex/types").FlexProps> & {
27
+ as?: keyof JSX.IntrinsicElements | undefined;
28
+ } & {
29
+ theme?: import("@emotion/react").Theme | undefined;
30
+ }, {}, {}>;
31
+ export declare const UnitControl: import("@emotion/styled").StyledComponent<Omit<import("../../unit-control/types").UnitSelectControlProps, "unit"> & Omit<import("../../number-control/types").NumberControlProps, "type" | "suffix" | "spinControls"> & {
32
+ disableUnits?: boolean | undefined;
33
+ isResetValueOnUnitChange?: boolean | undefined;
34
+ onUnitChange?: import("../../unit-control/types").UnitControlOnChangeCallback | undefined;
35
+ unit?: string | undefined;
36
+ value?: string | number | undefined;
37
+ onBlur?: import("react").FocusEventHandler<HTMLInputElement | HTMLSelectElement> | undefined;
38
+ onFocus?: import("react").FocusEventHandler<HTMLInputElement | HTMLSelectElement> | undefined;
39
+ } & Omit<Pick<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement>>, "defaultValue" | "onChange" | "value" | "name" | "color" | "height" | "translate" | "width" | "hidden" | "size" | "style" | "help" | "multiple" | "disabled" | "key" | "children" | "form" | "label" | "slot" | "title" | "pattern" | "as" | "id" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "step" | "max" | "min" | "crossOrigin" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "autoComplete" | "maxLength" | "minLength" | "readOnly" | "required" | "src" | "alt" | "accept" | "capture" | "checked" | "enterKeyHint" | "__next36pxDefaultSize" | "__unstableInputWidth" | "hideLabelFromVision" | "labelPosition" | "dragDirection" | "dragThreshold" | "isDragEnabled" | "isPressEnterToChange" | "onValidate" | "__unstableStateReducer" | "hideHTMLArrows" | "isShiftStepEnabled" | "shiftStep" | "disableUnits" | "unit" | "isUnitSelectTabbable" | "units" | "isResetValueOnUnitChange" | "onUnitChange"> & import("react").RefAttributes<any> & {
40
+ theme?: import("@emotion/react").Theme | undefined;
41
+ } & Pick<BoxUnitControlProps, "isFirst" | "isLast" | "isOnly">, {}, {}>;
42
+ //# sourceMappingURL=box-control-styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box-control-styles.d.ts","sourceRoot":"","sources":["../../../src/box-control/styles/box-control-styles.ts"],"names":[],"mappings":";AAWA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,eAAO,MAAM,IAAI;;;yGAKhB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;UAElB,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;UAGhC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;yGAG9B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;UAG3B,CAAC;AAEF,eAAO,MAAM,MAAM;;;;UAKlB,CAAC;AA+BF,eAAO,MAAM,WAAW;;;;;;;;;;uEAIvB,CAAC"}
@@ -0,0 +1,46 @@
1
+ /// <reference types="react" />
2
+ export declare const Container: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ } & {
6
+ isPositionAbsolute: boolean;
7
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
+ export declare const Side: import("@emotion/styled").StyledComponent<{
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
+ } & {
12
+ isActive: boolean;
13
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
+ export declare const TopView: import("@emotion/styled").StyledComponent<{
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any> | undefined;
17
+ } & {
18
+ isActive: boolean;
19
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
20
+ theme?: import("@emotion/react").Theme | undefined;
21
+ }, {}, {}>;
22
+ export declare const RightView: import("@emotion/styled").StyledComponent<{
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ as?: import("react").ElementType<any> | undefined;
25
+ } & {
26
+ isActive: boolean;
27
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
28
+ theme?: import("@emotion/react").Theme | undefined;
29
+ }, {}, {}>;
30
+ export declare const BottomView: import("@emotion/styled").StyledComponent<{
31
+ theme?: import("@emotion/react").Theme | undefined;
32
+ as?: import("react").ElementType<any> | undefined;
33
+ } & {
34
+ isActive: boolean;
35
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
36
+ theme?: import("@emotion/react").Theme | undefined;
37
+ }, {}, {}>;
38
+ export declare const LeftView: import("@emotion/styled").StyledComponent<{
39
+ theme?: import("@emotion/react").Theme | undefined;
40
+ as?: import("react").ElementType<any> | undefined;
41
+ } & {
42
+ isActive: boolean;
43
+ } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
44
+ theme?: import("@emotion/react").Theme | undefined;
45
+ }, {}, {}>;
46
+ //# sourceMappingURL=box-control-visualizer-styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box-control-visualizer-styles.d.ts","sourceRoot":"","sources":["../../../src/box-control/styles/box-control-visualizer-styles.ts"],"names":[],"mappings":";AA6BA,eAAO,MAAM,SAAS;;;;wBAfD,OAAO;yGAmB3B,CAAC;AAEF,eAAO,MAAM,IAAI;;;;cAUe,OAAO;yGAKtC,CAAC;AAEF,eAAO,MAAM,OAAO;;;;cAPY,OAAO;;;UAWtC,CAAC;AAEF,eAAO,MAAM,SAAS;;;;cAbU,OAAO;;;UAiBtC,CAAC;AAEF,eAAO,MAAM,UAAU;;;;cAnBS,OAAO;;;UAuBtC,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;cAzBW,OAAO;;;UA6BtC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/box-control/test/index.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,99 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * External dependencies
4
+ */
5
+ import type { useHover } from '@use-gesture/react';
6
+ /**
7
+ * Internal dependencies
8
+ */
9
+ import type { UnitControlProps } from '../unit-control/types';
10
+ import type { LABELS } from './utils';
11
+ export type BoxControlValue = {
12
+ top?: string;
13
+ right?: string;
14
+ bottom?: string;
15
+ left?: string;
16
+ };
17
+ type UnitControlPassthroughProps = Omit<UnitControlProps, 'label' | 'onChange' | 'onFocus' | 'onMouseOver' | 'onMouseOut' | 'units'>;
18
+ export type BoxControlProps = Pick<UnitControlProps, 'onMouseOver' | 'onMouseOut' | 'units'> & {
19
+ /**
20
+ * If this property is true, a button to reset the box control is rendered.
21
+ *
22
+ * @default true
23
+ */
24
+ allowReset?: boolean;
25
+ /**
26
+ * The id to use as a base for the unique HTML id attribute of the control.
27
+ */
28
+ id?: string;
29
+ /**
30
+ * Props for the internal `UnitControl` components.
31
+ *
32
+ * @default `{ min: 0 }`
33
+ */
34
+ inputProps?: UnitControlPassthroughProps;
35
+ /**
36
+ * Heading label for the control.
37
+ *
38
+ * @default `__( 'Box Control' )`
39
+ */
40
+ label?: string;
41
+ /**
42
+ * A callback function when an input value changes.
43
+ */
44
+ onChange: (next: BoxControlValue) => void;
45
+ /**
46
+ * The `top`, `right`, `bottom`, and `left` box dimension values to use when the control is reset.
47
+ *
48
+ * @default `{ top: undefined, right: undefined, bottom: undefined, left: undefined }`
49
+ */
50
+ resetValues?: BoxControlValue;
51
+ /**
52
+ * Collection of sides to allow control of. If omitted or empty, all sides will be available.
53
+ */
54
+ sides?: readonly (keyof BoxControlValue | 'horizontal' | 'vertical')[];
55
+ /**
56
+ * If this property is true, when the box control is unlinked, vertical and horizontal controls
57
+ * can be used instead of updating individual sides.
58
+ *
59
+ * @default false
60
+ */
61
+ splitOnAxis?: boolean;
62
+ /**
63
+ * The current values of the control, expressed as an object of `top`, `right`, `bottom`, and `left` values.
64
+ */
65
+ values?: BoxControlValue;
66
+ };
67
+ export type BoxControlInputControlProps = UnitControlPassthroughProps & {
68
+ onChange?: (nextValues: BoxControlValue) => void;
69
+ onFocus?: (_event: React.FocusEvent<HTMLInputElement>, { side }: {
70
+ side: keyof typeof LABELS;
71
+ }) => void;
72
+ onHoverOff?: (sides: Partial<Record<keyof BoxControlValue, boolean>>) => void;
73
+ onHoverOn?: (sides: Partial<Record<keyof BoxControlValue, boolean>>) => void;
74
+ selectedUnits: BoxControlValue;
75
+ setSelectedUnits: React.Dispatch<React.SetStateAction<BoxControlValue>>;
76
+ sides: BoxControlProps['sides'];
77
+ values: BoxControlValue;
78
+ };
79
+ export type BoxUnitControlProps = UnitControlPassthroughProps & Pick<UnitControlProps, 'onChange' | 'onFocus'> & {
80
+ isFirst?: boolean;
81
+ isLast?: boolean;
82
+ isOnly?: boolean;
83
+ label?: string;
84
+ onHoverOff?: (event: ReturnType<typeof useHover>['event'], state: Omit<ReturnType<typeof useHover>, 'event'>) => void;
85
+ onHoverOn?: (event: ReturnType<typeof useHover>['event'], state: Omit<ReturnType<typeof useHover>, 'event'>) => void;
86
+ };
87
+ export type BoxControlIconProps = {
88
+ /**
89
+ * @default 24
90
+ */
91
+ size?: number;
92
+ /**
93
+ * @default 'all'
94
+ */
95
+ side?: keyof typeof LABELS;
96
+ sides?: BoxControlProps['sides'];
97
+ };
98
+ export {};
99
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/box-control/types.ts"],"names":[],"mappings":";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E,OAAO,QAAQ,CAAE,EAAE,OAAO,CAAE,KACjD,IAAI,CAAC;CACV,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,eAAe,CAAE,OAAO,CAAE,CAAC;CACnC,CAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { BoxUnitControlProps } from './types';
3
+ export default function BoxUnitControl({ isFirst, isLast, isOnly, onHoverOn, onHoverOff, label, value, ...props }: BoxUnitControlProps): JSX.Element;
4
+ //# sourceMappingURL=unit-control.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unit-control.d.ts","sourceRoot":"","sources":["../../src/box-control/unit-control.tsx"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAInD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAE,EACvC,OAAO,EACP,MAAM,EACN,MAAM,EACN,SAAgB,EAChB,UAAiB,EACjB,KAAK,EACL,KAAK,EACL,GAAG,KAAK,EACR,EAAE,mBAAmB,eA0BrB"}