@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,84 @@
1
+ import type { BoxControlProps, BoxControlValue } from './types';
2
+ export declare const LABELS: {
3
+ all: string;
4
+ top: string;
5
+ bottom: string;
6
+ left: string;
7
+ right: string;
8
+ mixed: string;
9
+ vertical: string;
10
+ horizontal: string;
11
+ };
12
+ export declare const DEFAULT_VALUES: {
13
+ top: undefined;
14
+ right: undefined;
15
+ bottom: undefined;
16
+ left: undefined;
17
+ };
18
+ export declare const ALL_SIDES: readonly ["top", "right", "bottom", "left"];
19
+ /**
20
+ * Gets the 'all' input value and unit from values data.
21
+ *
22
+ * @param values Box values.
23
+ * @param selectedUnits Box units.
24
+ * @param availableSides Available box sides to evaluate.
25
+ *
26
+ * @return A value + unit for the 'all' input.
27
+ */
28
+ export declare function getAllValue(values?: BoxControlValue, selectedUnits?: BoxControlValue, availableSides?: BoxControlProps['sides']): string;
29
+ /**
30
+ * Determine the most common unit selection to use as a fallback option.
31
+ *
32
+ * @param selectedUnits Current unit selections for individual sides.
33
+ * @return Most common unit selection.
34
+ */
35
+ export declare function getAllUnitFallback(selectedUnits?: BoxControlValue): string | undefined;
36
+ /**
37
+ * Checks to determine if values are mixed.
38
+ *
39
+ * @param values Box values.
40
+ * @param selectedUnits Box units.
41
+ * @param sides Available box sides to evaluate.
42
+ *
43
+ * @return Whether values are mixed.
44
+ */
45
+ export declare function isValuesMixed(values?: BoxControlValue, selectedUnits?: BoxControlValue, sides?: BoxControlProps['sides']): boolean;
46
+ /**
47
+ * Checks to determine if values are defined.
48
+ *
49
+ * @param values Box values.
50
+ *
51
+ * @return Whether values are mixed.
52
+ */
53
+ export declare function isValuesDefined(values?: BoxControlValue): boolean;
54
+ /**
55
+ * Get initial selected side, factoring in whether the sides are linked,
56
+ * and whether the vertical / horizontal directions are grouped via splitOnAxis.
57
+ *
58
+ * @param isLinked Whether the box control's fields are linked.
59
+ * @param splitOnAxis Whether splitting by horizontal or vertical axis.
60
+ * @return The initial side.
61
+ */
62
+ export declare function getInitialSide(isLinked: boolean, splitOnAxis: boolean): "top" | "all" | "vertical";
63
+ /**
64
+ * Normalizes provided sides configuration to an array containing only top,
65
+ * right, bottom and left. This essentially just maps `horizontal` or `vertical`
66
+ * to their appropriate sides to facilitate correctly determining value for
67
+ * all input control.
68
+ *
69
+ * @param sides Available sides for box control.
70
+ * @return Normalized sides configuration.
71
+ */
72
+ export declare function normalizeSides(sides: BoxControlProps['sides']): readonly ["top", "right", "bottom", "left"] | (keyof BoxControlValue)[];
73
+ /**
74
+ * Applies a value to an object representing top, right, bottom and left sides
75
+ * while taking into account any custom side configuration.
76
+ *
77
+ * @param currentValues The current values for each side.
78
+ * @param newValue The value to apply to the sides object.
79
+ * @param sides Array defining valid sides.
80
+ *
81
+ * @return Object containing the updated values for each side.
82
+ */
83
+ export declare function applyValueToSides(currentValues: BoxControlValue, newValue?: string, sides?: BoxControlProps['sides']): BoxControlValue;
84
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/box-control/utils.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAEhE,eAAO,MAAM,MAAM;;;;;;;;;CASlB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;CAK1B,CAAC;AAEF,eAAO,MAAM,SAAS,6CAAgD,CAAC;AAmBvE;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAC1B,MAAM,GAAE,eAAoB,EAC5B,aAAa,CAAC,EAAE,eAAe,EAC/B,cAAc,GAAE,eAAe,CAAE,OAAO,CAAc,UAuCtD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAE,aAAa,CAAC,EAAE,eAAe,sBAQlE;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC5B,MAAM,GAAE,eAAoB,EAC5B,aAAa,CAAC,EAAE,eAAe,EAC/B,KAAK,GAAE,eAAe,CAAE,OAAO,CAAc,WAM7C;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAE,MAAM,CAAC,EAAE,eAAe,WAUxD;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,8BAQtE;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAE,KAAK,EAAE,eAAe,CAAE,OAAO,CAAE,2EAiBhE;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAChC,aAAa,EAAE,eAAe,EAC9B,QAAQ,CAAC,EAAE,MAAM,EACjB,KAAK,CAAC,EAAE,eAAe,CAAE,OAAO,CAAE,GAChC,eAAe,CAoBjB"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type { ComponentMeta, ComponentStory } from '@storybook/react';
5
+ /**
6
+ * Internal dependencies
7
+ */
8
+ import { default as CircularOptionPicker } from '..';
9
+ declare const meta: ComponentMeta<typeof CircularOptionPicker>;
10
+ export default meta;
11
+ export declare const Default: ComponentStory<typeof CircularOptionPicker>;
12
+ export declare const WithButtonAction: ComponentStory<typeof CircularOptionPicker>;
13
+ export declare const WithDropdownLinkAction: ComponentStory<typeof CircularOptionPicker>;
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/circular-option-picker/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAKtE;;GAEG;AACH,OAAO,EACN,OAAO,IAAI,oBAAoB,EAI/B,MAAM,IAAI,CAAC;AAOZ,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,oBAAoB,CAmCrD,CAAC;AACF,eAAe,IAAI,CAAC;AAiDpB,eAAO,MAAM,OAAO,6CAAsB,CAAC;AAG3C,eAAO,MAAM,gBAAgB,6CAAsB,CAAC;AAOpD,eAAO,MAAM,sBAAsB,6CAAsB,CAAC"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type { ReactNode } from 'react';
5
+ /**
6
+ * WordPress dependencies
7
+ */
8
+ import type { Icon } from '@wordpress/icons';
9
+ /**
10
+ * Internal dependencies
11
+ */
12
+ import type { ButtonAsButtonProps } from '../button/types';
13
+ import type Dropdown from '../dropdown';
14
+ import type { WordPressComponentProps } from '../ui/context';
15
+ export type CircularOptionPickerProps = {
16
+ /**
17
+ * A CSS class to apply to the wrapper element.
18
+ */
19
+ className?: string;
20
+ /**
21
+ * The action(s) to be rendered after the options,
22
+ * such as a 'clear' button as seen in `ColorPalette`.
23
+ * Usually a `CircularOptionPicker.ButtonAction` or
24
+ * `CircularOptionPicker.DropdownLinkAction` component.
25
+ */
26
+ actions?: ReactNode;
27
+ /**
28
+ * The options to be rendered, such as color swatches.
29
+ * Usually a `CircularOptionPicker.Option` component.
30
+ */
31
+ options: ReactNode;
32
+ /**
33
+ * The child elements.
34
+ */
35
+ children?: ReactNode;
36
+ };
37
+ export type DropdownLinkActionProps = {
38
+ buttonProps?: Omit<WordPressComponentProps<ButtonAsButtonProps, 'button', false>, 'children'>;
39
+ linkText: string;
40
+ dropdownProps: Omit<React.ComponentProps<typeof Dropdown>, 'className' | 'renderToggle'>;
41
+ className?: string;
42
+ };
43
+ export type OptionProps = Omit<WordPressComponentProps<ButtonAsButtonProps, 'button', false>, 'isPressed' | 'className'> & {
44
+ className?: string;
45
+ tooltipText?: string;
46
+ isSelected?: boolean;
47
+ selectedIconProps?: Omit<React.ComponentProps<typeof Icon>, 'icon' | 'size'>;
48
+ };
49
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/circular-option-picker/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C;;GAEG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAE7D,MAAM,MAAM,yBAAyB,GAAG;IACvC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACrC,WAAW,CAAC,EAAE,IAAI,CACjB,uBAAuB,CAAE,mBAAmB,EAAE,QAAQ,EAAE,KAAK,CAAE,EAC/D,UAAU,CACV,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,IAAI,CAClB,KAAK,CAAC,cAAc,CAAE,OAAO,QAAQ,CAAE,EACvC,WAAW,GAAG,cAAc,CAC5B,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,IAAI,CAC7B,uBAAuB,CAAE,mBAAmB,EAAE,QAAQ,EAAE,KAAK,CAAE,EAC/D,WAAW,GAAG,WAAW,CACzB,GAAG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IAKrB,iBAAiB,CAAC,EAAE,IAAI,CACvB,KAAK,CAAC,cAAc,CAAE,OAAO,IAAI,CAAE,EACnC,MAAM,GAAG,MAAM,CACf,CAAC;CACF,CAAC"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * External dependencies
4
+ */
5
+ import type { Colord } from 'colord';
6
+ import type { ColorType } from './types';
7
+ interface ColorDisplayProps {
8
+ color: Colord;
9
+ colorType: ColorType;
10
+ enableAlpha: boolean;
11
+ }
12
+ export declare const ColorDisplay: ({ color, colorType, enableAlpha, }: ColorDisplayProps) => JSX.Element;
13
+ export {};
14
+ //# sourceMappingURL=color-display.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-display.d.ts","sourceRoot":"","sources":["../../src/color-picker/color-display.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAerC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIzC,UAAU,iBAAiB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;CACrB;AA+ED,eAAO,MAAM,YAAY,uCAItB,iBAAiB,gBA2DnB,CAAC"}
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * External dependencies
4
+ */
5
+ import type { ComponentMeta, ComponentStory } from '@storybook/react';
6
+ /**
7
+ * Internal dependencies
8
+ */
9
+ import { ColorPicker } from '../component';
10
+ declare const meta: ComponentMeta<typeof ColorPicker>;
11
+ export default meta;
12
+ export declare const Default: ComponentStory<import("../../ui/context").WordPressComponent<import("react").ElementType<any>, {
13
+ enableAlpha?: boolean | undefined;
14
+ color?: string | undefined;
15
+ onChange?: ((color: string) => void) | undefined;
16
+ defaultValue?: string | undefined;
17
+ copyFormat?: import("../types").ColorType | undefined;
18
+ } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "defaultValue" | "onChange" | "color" | "children" | "as" | "enableAlpha" | "copyFormat"> & import("react").RefAttributes<any>, boolean>>;
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/color-picker/stories/index.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOtE;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,WAAW,CAc5C,CAAC;AACF,eAAe,IAAI,CAAC;AAoBpB,eAAO,MAAM,OAAO;;;;;;yTAAsB,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/color-picker/test/index.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,51 @@
1
+ /// <reference types="react" />
2
+ import type { ComboboxControlProps } from './types';
3
+ /**
4
+ * `ComboboxControl` is an enhanced version of a [`SelectControl`](../select-control/README.md) with the addition of
5
+ * being able to search for options using a search input.
6
+ *
7
+ * ```jsx
8
+ * import { ComboboxControl } from '@wordpress/components';
9
+ * import { useState } from '@wordpress/element';
10
+ *
11
+ * const options = [
12
+ * {
13
+ * value: 'small',
14
+ * label: 'Small',
15
+ * },
16
+ * {
17
+ * value: 'normal',
18
+ * label: 'Normal',
19
+ * },
20
+ * {
21
+ * value: 'large',
22
+ * label: 'Large',
23
+ * },
24
+ * ];
25
+ *
26
+ * function MyComboboxControl() {
27
+ * const [ fontSize, setFontSize ] = useState();
28
+ * const [ filteredOptions, setFilteredOptions ] = useState( options );
29
+ * return (
30
+ * <ComboboxControl
31
+ * label="Font Size"
32
+ * value={ fontSize }
33
+ * onChange={ setFontSize }
34
+ * options={ filteredOptions }
35
+ * onFilterValueChange={ ( inputValue ) =>
36
+ * setFilteredOptions(
37
+ * options.filter( ( option ) =>
38
+ * option.label
39
+ * .toLowerCase()
40
+ * .startsWith( inputValue.toLowerCase() )
41
+ * )
42
+ * )
43
+ * }
44
+ * />
45
+ * );
46
+ * }
47
+ * ```
48
+ */
49
+ declare function ComboboxControl(props: ComboboxControlProps): JSX.Element;
50
+ export default ComboboxControl;
51
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/combobox-control/index.tsx"],"names":[],"mappings":";AAgCA,OAAO,KAAK,EAAyB,oBAAoB,EAAE,MAAM,SAAS,CAAC;AA6B3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,iBAAS,eAAe,CAAE,KAAK,EAAE,oBAAoB,eAiRpD;AAED,eAAe,eAAe,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type { ComponentMeta, ComponentStory } from '@storybook/react';
5
+ /**
6
+ * Internal dependencies
7
+ */
8
+ import ComboboxControl from '..';
9
+ declare const meta: ComponentMeta<typeof ComboboxControl>;
10
+ export default meta;
11
+ export declare const Default: ComponentStory<typeof ComboboxControl>;
12
+ /**
13
+ * The rendered output of each suggestion can be customized by passing a
14
+ * render function to the `__experimentalRenderItem` prop. (This is still an experimental feature
15
+ * and is subject to change.)
16
+ */
17
+ export declare const WithCustomRenderItem: ComponentStory<typeof ComboboxControl>;
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/combobox-control/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOtE;;GAEG;AACH,OAAO,eAAe,MAAM,IAAI,CAAC;AAWjC,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,eAAe,CAWhD,CAAC;AACF,eAAe,IAAI,CAAC;AA6BpB,eAAO,MAAM,OAAO,wCAAsB,CAAC;AAO3C;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,wCAAsB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { ComboboxControlProps } from './types';
3
+ export declare const InputWrapperFlex: 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> & {
4
+ as?: keyof JSX.IntrinsicElements | undefined;
5
+ } & {
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ } & Pick<ComboboxControlProps, "__next40pxDefaultSize">, {}, {}>;
8
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/combobox-control/styles.ts"],"names":[],"mappings":";AAWA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAYpD,eAAO,MAAM,gBAAgB;;;;gEAM5B,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/combobox-control/test/index.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,69 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Internal dependencies
4
+ */
5
+ import type { BaseControlProps } from '../base-control/types';
6
+ export type ComboboxControlOption = {
7
+ label: string;
8
+ value: string;
9
+ [key: string]: any;
10
+ };
11
+ export type ComboboxControlProps = Pick<BaseControlProps, '__nextHasNoMarginBottom' | 'className' | 'label' | 'hideLabelFromVision' | 'help'> & {
12
+ /**
13
+ * Custom renderer invoked for each option in the suggestion list.
14
+ * The render prop receives as its argument an object containing, under the `item` key,
15
+ * the single option's data (directly from the array of data passed to the `options` prop).
16
+ */
17
+ __experimentalRenderItem?: (args: {
18
+ item: ComboboxControlOption;
19
+ }) => React.ReactNode;
20
+ /**
21
+ * Deprecated. Use `__next40pxDefaultSize` instead.
22
+ *
23
+ * @default false
24
+ * @deprecated
25
+ */
26
+ __next36pxDefaultSize?: boolean;
27
+ /**
28
+ * Start opting into the larger default height that will become the default size in a future version.
29
+ *
30
+ * @default false
31
+ */
32
+ __next40pxDefaultSize?: boolean;
33
+ /**
34
+ * Show a reset button to clear the input.
35
+ *
36
+ * @default true
37
+ */
38
+ allowReset?: boolean;
39
+ /**
40
+ * Customizable UI messages.
41
+ */
42
+ messages?: {
43
+ /**
44
+ * The message to announce to screen readers when a suggestion is selected.
45
+ *
46
+ * @default `__( 'Item selected.' )`
47
+ */
48
+ selected: string;
49
+ };
50
+ /**
51
+ * Function called with the selected value changes.
52
+ */
53
+ onChange?: (value: ComboboxControlProps['value']) => void;
54
+ /**
55
+ * Function called when the control's search input value changes. The argument contains the next input value.
56
+ *
57
+ * @default noop
58
+ */
59
+ onFilterValueChange?: (value: string) => void;
60
+ /**
61
+ * The options that can be chosen from.
62
+ */
63
+ options: ComboboxControlOption[];
64
+ /**
65
+ * The current value of the control.
66
+ */
67
+ value?: string | null;
68
+ };
69
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/combobox-control/types.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,MAAM,qBAAqB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,CAAE,GAAG,EAAE,MAAM,GAAI,GAAG,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACtC,gBAAgB,EACd,yBAAyB,GACzB,WAAW,GACX,OAAO,GACP,qBAAqB,GACrB,MAAM,CACR,GAAG;IACH;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,CAAE,IAAI,EAAE;QAClC,IAAI,EAAE,qBAAqB,CAAC;KAC5B,KAAM,KAAK,CAAC,SAAS,CAAC;IACvB;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE;QACV;;;;WAIG;QACH,QAAQ,EAAE,MAAM,CAAC;KACjB,CAAC;IACF;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAE,KAAK,EAAE,oBAAoB,CAAE,OAAO,CAAE,KAAM,IAAI,CAAC;IAC9D;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IAChD;;OAEG;IACH,OAAO,EAAE,qBAAqB,EAAE,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CAAC"}
@@ -0,0 +1,25 @@
1
+ export declare const DEFAULT_GRADIENT = "linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)";
2
+ export declare const DEFAULT_LINEAR_GRADIENT_ANGLE = 180;
3
+ export declare const HORIZONTAL_GRADIENT_ORIENTATION: {
4
+ readonly type: "angular";
5
+ readonly value: "90";
6
+ };
7
+ export declare const GRADIENT_OPTIONS: {
8
+ value: string;
9
+ label: string;
10
+ }[];
11
+ export declare const DIRECTIONAL_ORIENTATION_ANGLE_MAP: {
12
+ top: number;
13
+ 'top right': number;
14
+ 'right top': number;
15
+ right: number;
16
+ 'right bottom': number;
17
+ 'bottom right': number;
18
+ bottom: number;
19
+ 'bottom left': number;
20
+ 'left bottom': number;
21
+ left: number;
22
+ 'top left': number;
23
+ 'left top': number;
24
+ };
25
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/custom-gradient-picker/constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,6EAC8C,CAAC;AAE5E,eAAO,MAAM,6BAA6B,MAAM,CAAC;AAEjD,eAAO,MAAM,+BAA+B;;;CAGlC,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;GAG5B,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;CAa7C,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const GRADIENT_MARKERS_WIDTH = 16;
2
+ export declare const INSERT_POINT_WIDTH = 16;
3
+ export declare const MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT = 10;
4
+ export declare const MINIMUM_DISTANCE_BETWEEN_POINTS = 0;
5
+ export declare const MINIMUM_SIGNIFICANT_MOVE = 5;
6
+ export declare const KEYBOARD_CONTROL_POINT_VARIATION = 10;
7
+ export declare const MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_MARKER: number;
8
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/custom-gradient-picker/gradient-bar/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,2CAA2C,KAAK,CAAC;AAC9D,eAAO,MAAM,+BAA+B,IAAI,CAAC;AACjD,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C,eAAO,MAAM,gCAAgC,KACD,CAAC;AAC7C,eAAO,MAAM,4CAA4C,QACL,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { ControlPointsProps, InsertPointProps } from '../types';
3
+ declare function ControlPoints({ disableRemove, disableAlpha, gradientPickerDomRef, ignoreMarkerPosition, value: controlPoints, onChange, onStartControlPointChange, onStopControlPointChange, __experimentalIsRenderedInSidebar, }: ControlPointsProps): JSX.Element;
4
+ declare namespace ControlPoints {
5
+ var InsertPoint: ({ value: controlPoints, onChange, onOpenInserter, onCloseInserter, insertPosition, disableAlpha, __experimentalIsRenderedInSidebar, }: InsertPointProps) => JSX.Element;
6
+ }
7
+ export default ControlPoints;
8
+ //# sourceMappingURL=control-points.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-points.d.ts","sourceRoot":"","sources":["../../../src/custom-gradient-picker/gradient-bar/control-points.tsx"],"names":[],"mappings":";AAqCA,OAAO,KAAK,EAGX,kBAAkB,EAClB,gBAAgB,EAChB,MAAM,UAAU,CAAC;AAwElB,iBAAS,aAAa,CAAE,EACvB,aAAa,EACb,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,KAAK,EAAE,aAAa,EACpB,QAAQ,EACR,yBAAyB,EACzB,wBAAwB,EACxB,iCAAiC,GACjC,EAAE,kBAAkB,eAyMpB;kBAnNQ,aAAa;;;AA6RtB,eAAe,aAAa,CAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { CustomGradientBarProps } from '../types';
3
+ export default function CustomGradientBar({ background, hasGradient, value: controlPoints, onChange, disableInserter, disableAlpha, __experimentalIsRenderedInSidebar, }: CustomGradientBarProps): JSX.Element;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/custom-gradient-picker/gradient-bar/index.tsx"],"names":[],"mappings":";AAgBA,OAAO,KAAK,EACX,sBAAsB,EAItB,MAAM,UAAU,CAAC;AA2DlB,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAE,EAC1C,UAAU,EACV,WAAW,EACX,KAAK,EAAE,aAAa,EACpB,QAAQ,EACR,eAAuB,EACvB,YAAoB,EACpB,iCAAyC,GACzC,EAAE,sBAAsB,eAoHxB"}
@@ -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/custom-gradient-picker/gradient-bar/test/utils.ts"],"names":[],"mappings":""}
@@ -0,0 +1,90 @@
1
+ import type { ControlPoint } from '../types';
2
+ /**
3
+ * Clamps a number between 0 and 100.
4
+ *
5
+ * @param value Value to clamp.
6
+ *
7
+ * @return Value clamped between 0 and 100.
8
+ */
9
+ export declare function clampPercent(value: number): number;
10
+ /**
11
+ * Check if a control point is overlapping with another.
12
+ *
13
+ * @param value Array of control points.
14
+ * @param initialIndex Index of the position to test.
15
+ * @param newPosition New position of the control point.
16
+ * @param minDistance Distance considered to be overlapping.
17
+ *
18
+ * @return True if the point is overlapping.
19
+ */
20
+ export declare function isOverlapping(value: ControlPoint[], initialIndex: number, newPosition: number, minDistance?: number): boolean;
21
+ /**
22
+ * Adds a control point from an array and returns the new array.
23
+ *
24
+ * @param points Array of control points.
25
+ * @param position Position to insert the new point.
26
+ * @param color Color to update the control point at index.
27
+ *
28
+ * @return New array of control points.
29
+ */
30
+ export declare function addControlPoint(points: ControlPoint[], position: number, color: ControlPoint['color']): ControlPoint[];
31
+ /**
32
+ * Removes a control point from an array and returns the new array.
33
+ *
34
+ * @param points Array of control points.
35
+ * @param index Index to remove.
36
+ *
37
+ * @return New array of control points.
38
+ */
39
+ export declare function removeControlPoint(points: ControlPoint[], index: number): ControlPoint[];
40
+ /**
41
+ * Updates a control point from an array and returns the new array.
42
+ *
43
+ * @param points Array of control points.
44
+ * @param index Index to update.
45
+ * @param newPoint New control point to replace the index.
46
+ *
47
+ * @return New array of control points.
48
+ */
49
+ export declare function updateControlPoint(points: ControlPoint[], index: number, newPoint: ControlPoint): ControlPoint[];
50
+ /**
51
+ * Updates the position of a control point from an array and returns the new array.
52
+ *
53
+ * @param points Array of control points.
54
+ * @param index Index to update.
55
+ * @param newPosition Position to move the control point at index.
56
+ *
57
+ * @return New array of control points.
58
+ */
59
+ export declare function updateControlPointPosition(points: ControlPoint[], index: number, newPosition: ControlPoint['position']): ControlPoint[];
60
+ /**
61
+ * Updates the position of a control point from an array and returns the new array.
62
+ *
63
+ * @param points Array of control points.
64
+ * @param index Index to update.
65
+ * @param newColor Color to update the control point at index.
66
+ *
67
+ * @return New array of control points.
68
+ */
69
+ export declare function updateControlPointColor(points: ControlPoint[], index: number, newColor: ControlPoint['color']): ControlPoint[];
70
+ /**
71
+ * Updates the position of a control point from an array and returns the new array.
72
+ *
73
+ * @param points Array of control points.
74
+ * @param position Position of the color stop.
75
+ * @param newColor Color to update the control point at index.
76
+ *
77
+ * @return New array of control points.
78
+ */
79
+ export declare function updateControlPointColorByPosition(points: ControlPoint[], position: ControlPoint['position'], newColor: ControlPoint['color']): ControlPoint[];
80
+ /**
81
+ * Gets the horizontal coordinate when dragging a control point with the mouse.
82
+ *
83
+ * @param mouseXcoordinate Horizontal coordinate of the mouse position.
84
+ * @param containerElement Container for the gradient picker.
85
+ *
86
+ * @return Whole number percentage from the left.
87
+ */
88
+ export declare function getHorizontalRelativeGradientPosition(mouseXcoordinate: number, containerElement: HTMLDivElement): number;
89
+ export declare function getHorizontalRelativeGradientPosition(mouseXcoordinate: number, containerElement: null): undefined;
90
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/custom-gradient-picker/gradient-bar/utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAE,KAAK,EAAE,MAAM,UAE1C;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC5B,KAAK,EAAE,YAAY,EAAE,EACrB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,EACnB,WAAW,GAAE,MAAwC,WAarD;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC9B,MAAM,EAAE,YAAY,EAAE,EACtB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,YAAY,CAAE,OAAO,CAAE,kBAS9B;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAE,MAAM,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,MAAM,kBAIxE;AACD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CACjC,MAAM,EAAE,YAAY,EAAE,EACtB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,YAAY,kBAKtB;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACzC,MAAM,EAAE,YAAY,EAAE,EACtB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,YAAY,CAAE,UAAU,CAAE,kBAUvC;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,YAAY,EAAE,EACtB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,YAAY,CAAE,OAAO,CAAE,kBAOjC;AAED;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,CAChD,MAAM,EAAE,YAAY,EAAE,EACtB,QAAQ,EAAE,YAAY,CAAE,UAAU,CAAE,EACpC,QAAQ,EAAE,YAAY,CAAE,OAAO,CAAE,kBAIjC;AAED;;;;;;;GAOG;AACH,wBAAgB,qCAAqC,CACpD,gBAAgB,EAAE,MAAM,EACxB,gBAAgB,EAAE,cAAc,GAC9B,MAAM,CAAC;AACV,wBAAgB,qCAAqC,CACpD,gBAAgB,EAAE,MAAM,EACxB,gBAAgB,EAAE,IAAI,GACpB,SAAS,CAAC"}
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ import type { CustomGradientPickerProps } from './types';
3
+ /**
4
+ * CustomGradientPicker is a React component that renders a UI for specifying
5
+ * linear or radial gradients. Radial gradients are displayed in the picker as
6
+ * a slice of the gradient from the center to the outside.
7
+ *
8
+ * ```jsx
9
+ * import { CustomGradientPicker } from '@wordpress/components';
10
+ * import { useState } from '@wordpress/element';
11
+ *
12
+ * const MyCustomGradientPicker = () => {
13
+ * const [ gradient, setGradient ] = useState();
14
+ *
15
+ * return (
16
+ * <CustomGradientPicker
17
+ * value={ gradient }
18
+ * onChange={ setGradient }
19
+ * />
20
+ * );
21
+ * };
22
+ * ```
23
+ */
24
+ export declare function CustomGradientPicker({
25
+ /** Start opting into the new margin-free styles that will become the default in a future version. */
26
+ __nextHasNoMargin, value, onChange, __experimentalIsRenderedInSidebar, }: CustomGradientPickerProps): JSX.Element;
27
+ export default CustomGradientPicker;
28
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/custom-gradient-picker/index.tsx"],"names":[],"mappings":";AAoCA,OAAO,KAAK,EACX,yBAAyB,EAGzB,MAAM,SAAS,CAAC;AAiFjB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,oBAAoB,CAAE;AACrC,qGAAqG;AACrG,iBAAyB,EACzB,KAAK,EACL,QAAQ,EACR,iCAAyC,GACzC,EAAE,yBAAyB,eA+E3B;AAED,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type gradientParser from 'gradient-parser';
5
+ export declare function serializeGradientColor({ type, value, }: gradientParser.ColorStop): string;
6
+ export declare function serializeGradientPosition(position: gradientParser.ColorStop['length']): string;
7
+ export declare function serializeGradientColorStop({ type, value, length, }: gradientParser.ColorStop): string;
8
+ export declare function serializeGradientOrientation(orientation: gradientParser.GradientNode['orientation']): string | undefined;
9
+ export declare function serializeGradient({ type, orientation, colorStops, }: gradientParser.GradientNode): string;
10
+ //# sourceMappingURL=serializer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../../src/custom-gradient-picker/serializer.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,cAAc,MAAM,iBAAiB,CAAC;AAElD,wBAAgB,sBAAsB,CAAE,EACvC,IAAI,EACJ,KAAK,GACL,EAAE,cAAc,CAAC,SAAS,UAQ1B;AAED,wBAAgB,yBAAyB,CACxC,QAAQ,EAAE,cAAc,CAAC,SAAS,CAAE,QAAQ,CAAE,UAO9C;AAED,wBAAgB,0BAA0B,CAAE,EAC3C,IAAI,EACJ,KAAK,EACL,MAAM,GACN,EAAE,cAAc,CAAC,SAAS,UAK1B;AAED,wBAAgB,4BAA4B,CAC3C,WAAW,EAAE,cAAc,CAAC,YAAY,CAAE,aAAa,CAAE,sBAUzD;AAED,wBAAgB,iBAAiB,CAAE,EAClC,IAAI,EACJ,WAAW,EACX,UAAU,GACV,EAAE,cAAc,CAAC,YAAY,UAqB7B"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type { ComponentMeta, ComponentStory } from '@storybook/react';
5
+ /**
6
+ * Internal dependencies
7
+ */
8
+ import CustomGradientPicker from '../';
9
+ declare const meta: ComponentMeta<typeof CustomGradientPicker>;
10
+ export default meta;
11
+ export declare const Default: ComponentStory<typeof CustomGradientPicker>;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/custom-gradient-picker/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMtE;;GAEG;AACH,OAAO,oBAAoB,MAAM,KAAK,CAAC;AAEvC,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,oBAAoB,CAQrD,CAAC;AACF,eAAe,IAAI,CAAC;AAkBpB,eAAO,MAAM,OAAO,6CAA2C,CAAC"}