@wordpress/components 23.3.6 → 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 (450) hide show
  1. package/build-types/angle-picker-control/angle-circle.d.ts +6 -0
  2. package/build-types/angle-picker-control/angle-circle.d.ts.map +1 -0
  3. package/build-types/angle-picker-control/index.d.ts +29 -0
  4. package/build-types/angle-picker-control/index.d.ts.map +1 -0
  5. package/build-types/angle-picker-control/stories/index.d.ts +15 -0
  6. package/build-types/angle-picker-control/stories/index.d.ts.map +1 -0
  7. package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts +25 -0
  8. package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts.map +1 -0
  9. package/build-types/angle-picker-control/types.d.ts +26 -0
  10. package/build-types/angle-picker-control/types.d.ts.map +1 -0
  11. package/build-types/animate/stories/index.d.ts +18 -0
  12. package/build-types/animate/stories/index.d.ts.map +1 -0
  13. package/build-types/animate/types.d.ts +30 -0
  14. package/build-types/animate/types.d.ts.map +1 -0
  15. package/build-types/autocomplete/autocompleter-ui.d.ts +4 -0
  16. package/build-types/autocomplete/autocompleter-ui.d.ts.map +1 -0
  17. package/build-types/autocomplete/get-default-use-items.d.ts +3 -0
  18. package/build-types/autocomplete/get-default-use-items.d.ts.map +1 -0
  19. package/build-types/autocomplete/index.d.ts +23 -0
  20. package/build-types/autocomplete/index.d.ts.map +1 -0
  21. package/build-types/autocomplete/test/index.d.ts +2 -0
  22. package/build-types/autocomplete/test/index.d.ts.map +1 -0
  23. package/build-types/autocomplete/types.d.ts +185 -0
  24. package/build-types/autocomplete/types.d.ts.map +1 -0
  25. package/build-types/border-box-control/test/index.d.ts +2 -0
  26. package/build-types/border-box-control/test/index.d.ts.map +1 -0
  27. package/build-types/border-box-control/test/utils.d.ts +2 -0
  28. package/build-types/border-box-control/test/utils.d.ts.map +1 -0
  29. package/build-types/box-control/all-input-control.d.ts +4 -0
  30. package/build-types/box-control/all-input-control.d.ts.map +1 -0
  31. package/build-types/box-control/axial-input-controls.d.ts +4 -0
  32. package/build-types/box-control/axial-input-controls.d.ts.map +1 -0
  33. package/build-types/box-control/icon.d.ts +8 -0
  34. package/build-types/box-control/icon.d.ts.map +1 -0
  35. package/build-types/box-control/index.d.ts +31 -0
  36. package/build-types/box-control/index.d.ts.map +1 -0
  37. package/build-types/box-control/input-controls.d.ts +4 -0
  38. package/build-types/box-control/input-controls.d.ts.map +1 -0
  39. package/build-types/box-control/linked-button.d.ts +9 -0
  40. package/build-types/box-control/linked-button.d.ts.map +1 -0
  41. package/build-types/box-control/styles/box-control-icon-styles.d.ts +42 -0
  42. package/build-types/box-control/styles/box-control-icon-styles.d.ts.map +1 -0
  43. package/build-types/box-control/styles/box-control-styles.d.ts +42 -0
  44. package/build-types/box-control/styles/box-control-styles.d.ts.map +1 -0
  45. package/build-types/box-control/styles/box-control-visualizer-styles.d.ts +46 -0
  46. package/build-types/box-control/styles/box-control-visualizer-styles.d.ts.map +1 -0
  47. package/build-types/box-control/test/index.d.ts +2 -0
  48. package/build-types/box-control/test/index.d.ts.map +1 -0
  49. package/build-types/box-control/types.d.ts +99 -0
  50. package/build-types/box-control/types.d.ts.map +1 -0
  51. package/build-types/box-control/unit-control.d.ts +4 -0
  52. package/build-types/box-control/unit-control.d.ts.map +1 -0
  53. package/build-types/box-control/utils.d.ts +84 -0
  54. package/build-types/box-control/utils.d.ts.map +1 -0
  55. package/build-types/circular-option-picker/stories/index.d.ts +14 -0
  56. package/build-types/circular-option-picker/stories/index.d.ts.map +1 -0
  57. package/build-types/circular-option-picker/types.d.ts +49 -0
  58. package/build-types/circular-option-picker/types.d.ts.map +1 -0
  59. package/build-types/color-picker/color-display.d.ts +14 -0
  60. package/build-types/color-picker/color-display.d.ts.map +1 -0
  61. package/build-types/color-picker/stories/index.d.ts +19 -0
  62. package/build-types/color-picker/stories/index.d.ts.map +1 -0
  63. package/build-types/color-picker/test/index.d.ts +2 -0
  64. package/build-types/color-picker/test/index.d.ts.map +1 -0
  65. package/build-types/combobox-control/index.d.ts +51 -0
  66. package/build-types/combobox-control/index.d.ts.map +1 -0
  67. package/build-types/combobox-control/stories/index.d.ts +18 -0
  68. package/build-types/combobox-control/stories/index.d.ts.map +1 -0
  69. package/build-types/combobox-control/styles.d.ts +8 -0
  70. package/build-types/combobox-control/styles.d.ts.map +1 -0
  71. package/build-types/combobox-control/test/index.d.ts +2 -0
  72. package/build-types/combobox-control/test/index.d.ts.map +1 -0
  73. package/build-types/combobox-control/types.d.ts +69 -0
  74. package/build-types/combobox-control/types.d.ts.map +1 -0
  75. package/build-types/custom-gradient-picker/constants.d.ts +25 -0
  76. package/build-types/custom-gradient-picker/constants.d.ts.map +1 -0
  77. package/build-types/custom-gradient-picker/gradient-bar/constants.d.ts +8 -0
  78. package/build-types/custom-gradient-picker/gradient-bar/constants.d.ts.map +1 -0
  79. package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts +8 -0
  80. package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -0
  81. package/build-types/custom-gradient-picker/gradient-bar/index.d.ts +4 -0
  82. package/build-types/custom-gradient-picker/gradient-bar/index.d.ts.map +1 -0
  83. package/build-types/custom-gradient-picker/gradient-bar/test/utils.d.ts +2 -0
  84. package/build-types/custom-gradient-picker/gradient-bar/test/utils.d.ts.map +1 -0
  85. package/build-types/custom-gradient-picker/gradient-bar/utils.d.ts +90 -0
  86. package/build-types/custom-gradient-picker/gradient-bar/utils.d.ts.map +1 -0
  87. package/build-types/custom-gradient-picker/index.d.ts +28 -0
  88. package/build-types/custom-gradient-picker/index.d.ts.map +1 -0
  89. package/build-types/custom-gradient-picker/serializer.d.ts +10 -0
  90. package/build-types/custom-gradient-picker/serializer.d.ts.map +1 -0
  91. package/build-types/custom-gradient-picker/stories/index.d.ts +12 -0
  92. package/build-types/custom-gradient-picker/stories/index.d.ts.map +1 -0
  93. package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts +12 -0
  94. package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts.map +1 -0
  95. package/build-types/custom-gradient-picker/test/serializer.d.ts +2 -0
  96. package/build-types/custom-gradient-picker/test/serializer.d.ts.map +1 -0
  97. package/build-types/custom-gradient-picker/types.d.ts +118 -0
  98. package/build-types/custom-gradient-picker/types.d.ts.map +1 -0
  99. package/build-types/custom-gradient-picker/utils.d.ts +13 -0
  100. package/build-types/custom-gradient-picker/utils.d.ts.map +1 -0
  101. package/build-types/date-time/date/test/utils.d.ts +2 -0
  102. package/build-types/date-time/date/test/utils.d.ts.map +1 -0
  103. package/build-types/date-time/date/utils.d.ts +15 -0
  104. package/build-types/date-time/date/utils.d.ts.map +1 -0
  105. package/build-types/date-time/date.d.ts +24 -0
  106. package/build-types/date-time/date.d.ts.map +1 -0
  107. package/build-types/date-time/stories/index.d.ts +14 -0
  108. package/build-types/date-time/stories/index.d.ts.map +1 -0
  109. package/build-types/date-time/test/date.d.ts +2 -0
  110. package/build-types/date-time/test/date.d.ts.map +1 -0
  111. package/build-types/date-time/test/time.d.ts +2 -0
  112. package/build-types/date-time/test/time.d.ts.map +1 -0
  113. package/build-types/date-time/test/utils.d.ts +2 -0
  114. package/build-types/date-time/test/utils.d.ts.map +1 -0
  115. package/build-types/date-time/time.d.ts +25 -0
  116. package/build-types/date-time/time.d.ts.map +1 -0
  117. package/build-types/date-time/timezone.d.ts +7 -0
  118. package/build-types/date-time/timezone.d.ts.map +1 -0
  119. package/build-types/dimension-control/index.d.ts +28 -0
  120. package/build-types/dimension-control/index.d.ts.map +1 -0
  121. package/build-types/dimension-control/sizes.d.ts +26 -0
  122. package/build-types/dimension-control/sizes.d.ts.map +1 -0
  123. package/build-types/dimension-control/stories/index.d.ts +12 -0
  124. package/build-types/dimension-control/stories/index.d.ts.map +1 -0
  125. package/build-types/dimension-control/types.d.ts +47 -0
  126. package/build-types/dimension-control/types.d.ts.map +1 -0
  127. package/build-types/duotone-picker/color-list-picker/index.d.ts +5 -0
  128. package/build-types/duotone-picker/color-list-picker/index.d.ts.map +1 -0
  129. package/build-types/duotone-picker/color-list-picker/types.d.ts +42 -0
  130. package/build-types/duotone-picker/color-list-picker/types.d.ts.map +1 -0
  131. package/build-types/duotone-picker/custom-duotone-bar.d.ts +6 -0
  132. package/build-types/duotone-picker/custom-duotone-bar.d.ts.map +1 -0
  133. package/build-types/duotone-picker/duotone-picker.d.ts +38 -0
  134. package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -0
  135. package/build-types/duotone-picker/duotone-swatch.d.ts +5 -0
  136. package/build-types/duotone-picker/duotone-swatch.d.ts.map +1 -0
  137. package/build-types/duotone-picker/index.d.ts +3 -0
  138. package/build-types/duotone-picker/index.d.ts.map +1 -0
  139. package/build-types/duotone-picker/stories/duotone-picker.d.ts +12 -0
  140. package/build-types/duotone-picker/stories/duotone-picker.d.ts.map +1 -0
  141. package/build-types/duotone-picker/stories/duotone-swatch.d.ts +14 -0
  142. package/build-types/duotone-picker/stories/duotone-swatch.d.ts.map +1 -0
  143. package/build-types/duotone-picker/types.d.ts +60 -0
  144. package/build-types/duotone-picker/types.d.ts.map +1 -0
  145. package/build-types/duotone-picker/utils.d.ts +52 -0
  146. package/build-types/duotone-picker/utils.d.ts.map +1 -0
  147. package/build-types/experiments.d.ts +4 -0
  148. package/build-types/experiments.d.ts.map +1 -0
  149. package/build-types/flyout/context.d.ts +6 -0
  150. package/build-types/flyout/context.d.ts.map +1 -0
  151. package/build-types/flyout/flyout/component.d.ts +21 -0
  152. package/build-types/flyout/flyout/component.d.ts.map +1 -0
  153. package/build-types/flyout/flyout/hook.d.ts +270 -0
  154. package/build-types/flyout/flyout/hook.d.ts.map +1 -0
  155. package/build-types/flyout/flyout/index.d.ts +3 -0
  156. package/build-types/flyout/flyout/index.d.ts.map +1 -0
  157. package/build-types/flyout/flyout-content/component.d.ts +3 -0
  158. package/build-types/flyout/flyout-content/component.d.ts.map +1 -0
  159. package/build-types/flyout/flyout-content/index.d.ts +2 -0
  160. package/build-types/flyout/flyout-content/index.d.ts.map +1 -0
  161. package/build-types/flyout/index.d.ts +2 -0
  162. package/build-types/flyout/index.d.ts.map +1 -0
  163. package/build-types/flyout/styles.d.ts +22 -0
  164. package/build-types/flyout/styles.d.ts.map +1 -0
  165. package/build-types/flyout/types.d.ts +80 -0
  166. package/build-types/flyout/types.d.ts.map +1 -0
  167. package/build-types/flyout/utils.d.ts +8 -0
  168. package/build-types/flyout/utils.d.ts.map +1 -0
  169. package/build-types/form-token-field/test/lib/fixtures.d.ts +26 -0
  170. package/build-types/form-token-field/test/lib/fixtures.d.ts.map +1 -0
  171. package/build-types/form-token-field/test/lib/token-field-wrapper.d.ts +21 -0
  172. package/build-types/form-token-field/test/lib/token-field-wrapper.d.ts.map +1 -0
  173. package/build-types/gradient-picker/index.d.ts +50 -0
  174. package/build-types/gradient-picker/index.d.ts.map +1 -0
  175. package/build-types/gradient-picker/stories/index.d.ts +14 -0
  176. package/build-types/gradient-picker/stories/index.d.ts.map +1 -0
  177. package/build-types/gradient-picker/types.d.ts +87 -0
  178. package/build-types/gradient-picker/types.d.ts.map +1 -0
  179. package/build-types/guide/icons.d.ts +5 -0
  180. package/build-types/guide/icons.d.ts.map +1 -0
  181. package/build-types/guide/index.d.ts +37 -0
  182. package/build-types/guide/index.d.ts.map +1 -0
  183. package/build-types/guide/page-control.d.ts +4 -0
  184. package/build-types/guide/page-control.d.ts.map +1 -0
  185. package/build-types/guide/page.d.ts +7 -0
  186. package/build-types/guide/page.d.ts.map +1 -0
  187. package/build-types/guide/stories/index.d.ts +9 -0
  188. package/build-types/guide/stories/index.d.ts.map +1 -0
  189. package/build-types/guide/test/index.d.ts +2 -0
  190. package/build-types/guide/test/index.d.ts.map +1 -0
  191. package/build-types/guide/types.d.ts +65 -0
  192. package/build-types/guide/types.d.ts.map +1 -0
  193. package/build-types/h-stack/stories/e2e/index.d.ts +9 -0
  194. package/build-types/h-stack/stories/e2e/index.d.ts.map +1 -0
  195. package/build-types/higher-order/navigate-regions/index.d.ts +46 -0
  196. package/build-types/higher-order/navigate-regions/index.d.ts.map +1 -0
  197. package/build-types/higher-order/with-fallback-styles/index.d.ts +44 -0
  198. package/build-types/higher-order/with-fallback-styles/index.d.ts.map +1 -0
  199. package/build-types/higher-order/with-filters/index.d.ts +89 -0
  200. package/build-types/higher-order/with-filters/index.d.ts.map +1 -0
  201. package/build-types/higher-order/with-filters/test/index.d.ts +2 -0
  202. package/build-types/higher-order/with-filters/test/index.d.ts.map +1 -0
  203. package/build-types/higher-order/with-focus-return/index.d.ts +20 -0
  204. package/build-types/higher-order/with-focus-return/index.d.ts.map +1 -0
  205. package/build-types/higher-order/with-focus-return/test/index.d.ts +2 -0
  206. package/build-types/higher-order/with-focus-return/test/index.d.ts.map +1 -0
  207. package/build-types/higher-order/with-notices/index.d.ts +37 -0
  208. package/build-types/higher-order/with-notices/index.d.ts.map +1 -0
  209. package/build-types/higher-order/with-notices/test/index.d.ts +2 -0
  210. package/build-types/higher-order/with-notices/test/index.d.ts.map +1 -0
  211. package/build-types/higher-order/with-notices/types.d.ts +34 -0
  212. package/build-types/higher-order/with-notices/types.d.ts.map +1 -0
  213. package/build-types/higher-order/with-spoken-messages/test/index.d.ts +2 -0
  214. package/build-types/higher-order/with-spoken-messages/test/index.d.ts.map +1 -0
  215. package/build-types/icon/test/index.d.ts +2 -0
  216. package/build-types/icon/test/index.d.ts.map +1 -0
  217. package/build-types/index.d.ts +129 -0
  218. package/build-types/index.d.ts.map +1 -0
  219. package/build-types/menu-items-choice/index.d.ts +38 -0
  220. package/build-types/menu-items-choice/index.d.ts.map +1 -0
  221. package/build-types/menu-items-choice/stories/index.d.ts +12 -0
  222. package/build-types/menu-items-choice/stories/index.d.ts.map +1 -0
  223. package/build-types/menu-items-choice/types.d.ts +53 -0
  224. package/build-types/menu-items-choice/types.d.ts.map +1 -0
  225. package/build-types/navigable-container/stories/navigable-menu.d.ts +12 -0
  226. package/build-types/navigable-container/stories/navigable-menu.d.ts.map +1 -0
  227. package/build-types/navigable-container/stories/tabbable-container.d.ts +12 -0
  228. package/build-types/navigable-container/stories/tabbable-container.d.ts.map +1 -0
  229. package/build-types/navigable-container/test/navigable-menu.d.ts +2 -0
  230. package/build-types/navigable-container/test/navigable-menu.d.ts.map +1 -0
  231. package/build-types/navigable-container/test/tababble-container.d.ts +2 -0
  232. package/build-types/navigable-container/test/tababble-container.d.ts.map +1 -0
  233. package/build-types/navigable-container/types.d.ts +61 -0
  234. package/build-types/navigable-container/types.d.ts.map +1 -0
  235. package/build-types/navigation/back-button/index.d.ts +5 -0
  236. package/build-types/navigation/back-button/index.d.ts.map +1 -0
  237. package/build-types/navigation/constants.d.ts +3 -0
  238. package/build-types/navigation/constants.d.ts.map +1 -0
  239. package/build-types/navigation/context.d.ts +5 -0
  240. package/build-types/navigation/context.d.ts.map +1 -0
  241. package/build-types/navigation/group/context.d.ts +8 -0
  242. package/build-types/navigation/group/context.d.ts.map +1 -0
  243. package/build-types/navigation/group/index.d.ts +5 -0
  244. package/build-types/navigation/group/index.d.ts.map +1 -0
  245. package/build-types/navigation/index.d.ts +46 -0
  246. package/build-types/navigation/index.d.ts.map +1 -0
  247. package/build-types/navigation/item/base-content.d.ts +4 -0
  248. package/build-types/navigation/item/base-content.d.ts.map +1 -0
  249. package/build-types/navigation/item/base.d.ts +4 -0
  250. package/build-types/navigation/item/base.d.ts.map +1 -0
  251. package/build-types/navigation/item/index.d.ts +5 -0
  252. package/build-types/navigation/item/index.d.ts.map +1 -0
  253. package/build-types/navigation/item/use-navigation-tree-item.d.ts +3 -0
  254. package/build-types/navigation/item/use-navigation-tree-item.d.ts.map +1 -0
  255. package/build-types/navigation/menu/context.d.ts +8 -0
  256. package/build-types/navigation/menu/context.d.ts.map +1 -0
  257. package/build-types/navigation/menu/index.d.ts +5 -0
  258. package/build-types/navigation/menu/index.d.ts.map +1 -0
  259. package/build-types/navigation/menu/menu-title-search.d.ts +4 -0
  260. package/build-types/navigation/menu/menu-title-search.d.ts.map +1 -0
  261. package/build-types/navigation/menu/menu-title.d.ts +4 -0
  262. package/build-types/navigation/menu/menu-title.d.ts.map +1 -0
  263. package/build-types/navigation/menu/search-no-results-found.d.ts +4 -0
  264. package/build-types/navigation/menu/search-no-results-found.d.ts.map +1 -0
  265. package/build-types/navigation/menu/use-navigation-tree-menu.d.ts +3 -0
  266. package/build-types/navigation/menu/use-navigation-tree-menu.d.ts.map +1 -0
  267. package/build-types/navigation/stories/index.d.ts +18 -0
  268. package/build-types/navigation/stories/index.d.ts.map +1 -0
  269. package/build-types/navigation/stories/utils/controlled-state.d.ts +7 -0
  270. package/build-types/navigation/stories/utils/controlled-state.d.ts.map +1 -0
  271. package/build-types/navigation/stories/utils/default.d.ts +10 -0
  272. package/build-types/navigation/stories/utils/default.d.ts.map +1 -0
  273. package/build-types/navigation/stories/utils/group.d.ts +10 -0
  274. package/build-types/navigation/stories/utils/group.d.ts.map +1 -0
  275. package/build-types/navigation/stories/utils/hide-if-empty.d.ts +10 -0
  276. package/build-types/navigation/stories/utils/hide-if-empty.d.ts.map +1 -0
  277. package/build-types/navigation/stories/utils/more-examples.d.ts +10 -0
  278. package/build-types/navigation/stories/utils/more-examples.d.ts.map +1 -0
  279. package/build-types/navigation/stories/utils/search.d.ts +10 -0
  280. package/build-types/navigation/stories/utils/search.d.ts.map +1 -0
  281. package/build-types/navigation/styles/navigation-styles.d.ts +58 -0
  282. package/build-types/navigation/styles/navigation-styles.d.ts.map +1 -0
  283. package/build-types/navigation/test/index.d.ts +2 -0
  284. package/build-types/navigation/test/index.d.ts.map +1 -0
  285. package/build-types/navigation/types.d.ts +267 -0
  286. package/build-types/navigation/types.d.ts.map +1 -0
  287. package/build-types/navigation/use-create-navigation-tree.d.ts +15 -0
  288. package/build-types/navigation/use-create-navigation-tree.d.ts.map +1 -0
  289. package/build-types/navigation/use-navigation-tree-nodes.d.ts +11 -0
  290. package/build-types/navigation/use-navigation-tree-nodes.d.ts.map +1 -0
  291. package/build-types/navigation/utils.d.ts +3 -0
  292. package/build-types/navigation/utils.d.ts.map +1 -0
  293. package/build-types/palette-edit/index.d.ts +37 -0
  294. package/build-types/palette-edit/index.d.ts.map +1 -0
  295. package/build-types/palette-edit/stories/index.d.ts +13 -0
  296. package/build-types/palette-edit/stories/index.d.ts.map +1 -0
  297. package/build-types/palette-edit/styles.d.ts +57 -0
  298. package/build-types/palette-edit/styles.d.ts.map +1 -0
  299. package/build-types/palette-edit/test/index.d.ts +2 -0
  300. package/build-types/palette-edit/test/index.d.ts.map +1 -0
  301. package/build-types/palette-edit/types.d.ts +122 -0
  302. package/build-types/palette-edit/types.d.ts.map +1 -0
  303. package/build-types/panel/body.d.ts +9 -0
  304. package/build-types/panel/body.d.ts.map +1 -0
  305. package/build-types/panel/header.d.ts +13 -0
  306. package/build-types/panel/header.d.ts.map +1 -0
  307. package/build-types/panel/index.d.ts +21 -0
  308. package/build-types/panel/index.d.ts.map +1 -0
  309. package/build-types/panel/row.d.ts +12 -0
  310. package/build-types/panel/row.d.ts.map +1 -0
  311. package/build-types/panel/stories/index.d.ts +19 -0
  312. package/build-types/panel/stories/index.d.ts.map +1 -0
  313. package/build-types/panel/test/body.d.ts +2 -0
  314. package/build-types/panel/test/body.d.ts.map +1 -0
  315. package/build-types/panel/test/header.d.ts +2 -0
  316. package/build-types/panel/test/header.d.ts.map +1 -0
  317. package/build-types/panel/test/index.d.ts +2 -0
  318. package/build-types/panel/test/index.d.ts.map +1 -0
  319. package/build-types/panel/test/row.d.ts +2 -0
  320. package/build-types/panel/test/row.d.ts.map +1 -0
  321. package/build-types/panel/types.d.ts +108 -0
  322. package/build-types/panel/types.d.ts.map +1 -0
  323. package/build-types/popover/overlay-middlewares.d.ts +9 -0
  324. package/build-types/popover/overlay-middlewares.d.ts.map +1 -0
  325. package/build-types/radio-context/index.d.ts +6 -0
  326. package/build-types/radio-context/index.d.ts.map +1 -0
  327. package/build-types/spinner/styles/spinner-styles.d.ts +5 -0
  328. package/build-types/spinner/styles/spinner-styles.d.ts.map +1 -0
  329. package/build-types/swatch/index.d.ts +5 -0
  330. package/build-types/swatch/index.d.ts.map +1 -0
  331. package/build-types/swatch/types.d.ts +11 -0
  332. package/build-types/swatch/types.d.ts.map +1 -0
  333. package/build-types/toggle-group-control/component.d.ts +4 -0
  334. package/build-types/toggle-group-control/component.d.ts.map +1 -0
  335. package/build-types/toggle-group-control/styles.d.ts +25 -0
  336. package/build-types/toggle-group-control/styles.d.ts.map +1 -0
  337. package/build-types/toggle-group-control/toggle-group-control-backdrop.d.ts +9 -0
  338. package/build-types/toggle-group-control/toggle-group-control-backdrop.d.ts.map +1 -0
  339. package/build-types/toggle-group-control/toggle-group-control-button.d.ts +6 -0
  340. package/build-types/toggle-group-control/toggle-group-control-button.d.ts.map +1 -0
  341. package/build-types/toggle-group-control/toggle-group-control-context.d.ts +9 -0
  342. package/build-types/toggle-group-control/toggle-group-control-context.d.ts.map +1 -0
  343. package/build-types/toggle-group-control/toggle-group-control-option/styles.d.ts +15 -0
  344. package/build-types/toggle-group-control/toggle-group-control-option/styles.d.ts.map +1 -0
  345. package/build-types/toggle-group-control/toggle-group-control-option.d.ts +4 -0
  346. package/build-types/toggle-group-control/toggle-group-control-option.d.ts.map +1 -0
  347. package/build-types/toolbar/index.d.ts +7 -0
  348. package/build-types/toolbar/index.d.ts.map +1 -0
  349. package/build-types/toolbar/stories/index.d.ts +14 -0
  350. package/build-types/toolbar/stories/index.d.ts.map +1 -0
  351. package/build-types/toolbar/test/index.d.ts +2 -0
  352. package/build-types/toolbar/test/index.d.ts.map +1 -0
  353. package/build-types/toolbar/test/toolbar-group.d.ts +2 -0
  354. package/build-types/toolbar/test/toolbar-group.d.ts.map +1 -0
  355. package/build-types/toolbar/toolbar/index.d.ts +25 -0
  356. package/build-types/toolbar/toolbar/index.d.ts.map +1 -0
  357. package/build-types/toolbar/toolbar/toolbar-container.d.ts +5 -0
  358. package/build-types/toolbar/toolbar/toolbar-container.d.ts.map +1 -0
  359. package/build-types/toolbar/toolbar/types.d.ts +15 -0
  360. package/build-types/toolbar/toolbar/types.d.ts.map +1 -0
  361. package/build-types/toolbar/toolbar-button/index.d.ts +166 -0
  362. package/build-types/toolbar/toolbar-button/index.d.ts.map +1 -0
  363. package/build-types/toolbar/toolbar-button/toolbar-button-container.d.ts +8 -0
  364. package/build-types/toolbar/toolbar-button/toolbar-button-container.d.ts.map +1 -0
  365. package/build-types/toolbar/toolbar-button/types.d.ts +45 -0
  366. package/build-types/toolbar/toolbar-button/types.d.ts.map +1 -0
  367. package/build-types/toolbar/toolbar-context/index.d.ts +8 -0
  368. package/build-types/toolbar/toolbar-context/index.d.ts.map +1 -0
  369. package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts +3 -0
  370. package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts.map +1 -0
  371. package/build-types/toolbar/toolbar-group/index.d.ts +39 -0
  372. package/build-types/toolbar/toolbar-group/index.d.ts.map +1 -0
  373. package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts +7 -0
  374. package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts.map +1 -0
  375. package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts +7 -0
  376. package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts.map +1 -0
  377. package/build-types/toolbar/toolbar-item/index.d.ts +9 -0
  378. package/build-types/toolbar/toolbar-item/index.d.ts.map +1 -0
  379. package/build-types/tools-panel/stories/index.d.ts +17 -0
  380. package/build-types/tools-panel/stories/index.d.ts.map +1 -0
  381. package/build-types/tools-panel/test/index.d.ts +2 -0
  382. package/build-types/tools-panel/test/index.d.ts.map +1 -0
  383. package/build-types/tree-grid/cell.d.ts +13 -0
  384. package/build-types/tree-grid/cell.d.ts.map +1 -0
  385. package/build-types/tree-grid/index.d.ts +70 -0
  386. package/build-types/tree-grid/index.d.ts.map +1 -0
  387. package/build-types/tree-grid/item.d.ts +12 -0
  388. package/build-types/tree-grid/item.d.ts.map +1 -0
  389. package/build-types/tree-grid/roving-tab-index-context.d.ts +10 -0
  390. package/build-types/tree-grid/roving-tab-index-context.d.ts.map +1 -0
  391. package/build-types/tree-grid/roving-tab-index-item.d.ts +5 -0
  392. package/build-types/tree-grid/roving-tab-index-item.d.ts.map +1 -0
  393. package/build-types/tree-grid/roving-tab-index.d.ts +10 -0
  394. package/build-types/tree-grid/roving-tab-index.d.ts.map +1 -0
  395. package/build-types/tree-grid/row.d.ts +12 -0
  396. package/build-types/tree-grid/row.d.ts.map +1 -0
  397. package/build-types/tree-grid/stories/index.d.ts +13 -0
  398. package/build-types/tree-grid/stories/index.d.ts.map +1 -0
  399. package/build-types/tree-grid/test/cell.d.ts +2 -0
  400. package/build-types/tree-grid/test/cell.d.ts.map +1 -0
  401. package/build-types/tree-grid/test/index.d.ts +2 -0
  402. package/build-types/tree-grid/test/index.d.ts.map +1 -0
  403. package/build-types/tree-grid/test/roving-tab-index-item.d.ts +2 -0
  404. package/build-types/tree-grid/test/roving-tab-index-item.d.ts.map +1 -0
  405. package/build-types/tree-grid/test/roving-tab-index.d.ts +2 -0
  406. package/build-types/tree-grid/test/roving-tab-index.d.ts.map +1 -0
  407. package/build-types/tree-grid/test/row.d.ts +2 -0
  408. package/build-types/tree-grid/test/row.d.ts.map +1 -0
  409. package/build-types/tree-grid/types.d.ts +116 -0
  410. package/build-types/tree-grid/types.d.ts.map +1 -0
  411. package/build-types/ui/color-picker/color-display.d.ts +13 -0
  412. package/build-types/ui/color-picker/color-display.d.ts.map +1 -0
  413. package/build-types/ui/color-picker/color-input.d.ts +13 -0
  414. package/build-types/ui/color-picker/color-input.d.ts.map +1 -0
  415. package/build-types/ui/color-picker/component.d.ts +12 -0
  416. package/build-types/ui/color-picker/component.d.ts.map +1 -0
  417. package/build-types/ui/color-picker/hex-input.d.ts +12 -0
  418. package/build-types/ui/color-picker/hex-input.d.ts.map +1 -0
  419. package/build-types/ui/color-picker/hsl-input.d.ts +12 -0
  420. package/build-types/ui/color-picker/hsl-input.d.ts.map +1 -0
  421. package/build-types/ui/color-picker/index.d.ts +2 -0
  422. package/build-types/ui/color-picker/index.d.ts.map +1 -0
  423. package/build-types/ui/color-picker/input-with-slider.d.ts +11 -0
  424. package/build-types/ui/color-picker/input-with-slider.d.ts.map +1 -0
  425. package/build-types/ui/color-picker/legacy-adapter.d.ts +5 -0
  426. package/build-types/ui/color-picker/legacy-adapter.d.ts.map +1 -0
  427. package/build-types/ui/color-picker/picker.d.ts +12 -0
  428. package/build-types/ui/color-picker/picker.d.ts.map +1 -0
  429. package/build-types/ui/color-picker/rgb-input.d.ts +12 -0
  430. package/build-types/ui/color-picker/rgb-input.d.ts.map +1 -0
  431. package/build-types/ui/color-picker/styles.d.ts +76 -0
  432. package/build-types/ui/color-picker/styles.d.ts.map +1 -0
  433. package/build-types/ui/color-picker/types.d.ts +2 -0
  434. package/build-types/ui/color-picker/types.d.ts.map +1 -0
  435. package/build-types/ui/color-picker/use-deprecated-props.d.ts +50 -0
  436. package/build-types/ui/color-picker/use-deprecated-props.d.ts.map +1 -0
  437. package/build-types/ui/utils/create-component.d.ts +21 -0
  438. package/build-types/ui/utils/create-component.d.ts.map +1 -0
  439. package/build-types/utils/hooks/use-combined-ref.d.ts +8 -0
  440. package/build-types/utils/hooks/use-combined-ref.d.ts.map +1 -0
  441. package/build-types/utils/hooks/use-jump-step.d.ts +25 -0
  442. package/build-types/utils/hooks/use-jump-step.d.ts.map +1 -0
  443. package/build-types/utils/keyboard.d.ts +12 -0
  444. package/build-types/utils/keyboard.d.ts.map +1 -0
  445. package/build-types/utils/use-deprecated-props.d.ts +9 -0
  446. package/build-types/utils/use-deprecated-props.d.ts.map +1 -0
  447. package/build-types/v-stack/stories/e2e/index.d.ts +9 -0
  448. package/build-types/v-stack/stories/e2e/index.d.ts.map +1 -0
  449. package/package.json +3 -3
  450. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Internal dependencies
3
+ */
4
+ import type { IconType } from '../icon';
5
+ export type Size = {
6
+ /**
7
+ * Human-readable name of the size.
8
+ */
9
+ name: string;
10
+ /**
11
+ * Short unique identifying name of the size.
12
+ */
13
+ slug: string;
14
+ };
15
+ export type DimensionControlProps = {
16
+ /**
17
+ * Label for the control.
18
+ */
19
+ label: string;
20
+ /**
21
+ * An array of sizes to choose from.
22
+ *
23
+ * @default DEFAULT_SIZES
24
+ *
25
+ * @see packages/components/src/dimension-control/sizes.ts
26
+ */
27
+ sizes?: Size[];
28
+ /**
29
+ * Optional icon rendered in front on the label.
30
+ */
31
+ icon?: IconType;
32
+ /**
33
+ * Used to externally control the current value of the control.
34
+ */
35
+ value?: string;
36
+ /**
37
+ * Function called with the control's internal state changes. The `value` property is equal to a given size slug.
38
+ */
39
+ onChange?: (value?: string) => void;
40
+ /**
41
+ * CSS class applied to `SelectControl`.
42
+ *
43
+ * @default ''
44
+ */
45
+ className?: string;
46
+ };
47
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/dimension-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,MAAM,IAAI,GAAG;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAE,KAAK,CAAC,EAAE,MAAM,KAAM,IAAI,CAAC;IACtC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import type { ColorListPickerProps } from './types';
3
+ declare function ColorListPicker({ colors, labels, value, disableCustomColors, enableAlpha, onChange, }: ColorListPickerProps): JSX.Element;
4
+ export default ColorListPicker;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/duotone-picker/color-list-picker/index.tsx"],"names":[],"mappings":";AAcA,OAAO,KAAK,EAAE,oBAAoB,EAAoB,MAAM,SAAS,CAAC;AA4CtE,iBAAS,eAAe,CAAE,EACzB,MAAM,EACN,MAAM,EACN,KAAU,EACV,mBAAmB,EACnB,WAAW,EACX,QAAQ,GACR,EAAE,oBAAoB,eAqBtB;AAED,eAAe,eAAe,CAAC"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type { CSSProperties } from 'react';
5
+ export type ColorListPickerProps = {
6
+ /**
7
+ * A list of predefined colors. Each color is an object with a `name` and a
8
+ * `color` value.
9
+ * The `name` is a string used to identify the color in the UI.
10
+ * The `color` is a valid CSS color string.
11
+ */
12
+ colors: Array<{
13
+ name: string;
14
+ color: NonNullable<CSSProperties['color']>;
15
+ }>;
16
+ /**
17
+ * A list of labels for each of the options displayed in the UI.
18
+ */
19
+ labels: Array<string>;
20
+ /**
21
+ * An array containing the currently selected colors.
22
+ */
23
+ value?: Array<string>;
24
+ /**
25
+ * Controls whether the custom color picker is displayed.
26
+ */
27
+ disableCustomColors?: boolean;
28
+ /**
29
+ * Controls whether the ColorPalette should show an alpha channel control.
30
+ */
31
+ enableAlpha?: boolean;
32
+ /**
33
+ * A function that receives the updated color value.
34
+ */
35
+ onChange: (newValue: Array<string | undefined>) => void;
36
+ };
37
+ export type ColorOptionProps = Pick<ColorListPickerProps, 'colors' | 'disableCustomColors' | 'enableAlpha'> & {
38
+ label: ColorListPickerProps['labels'][number];
39
+ value: string | undefined;
40
+ onChange: (newValue: string | undefined) => void;
41
+ };
42
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/duotone-picker/color-list-picker/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,MAAM,oBAAoB,GAAG;IAClC;;;;;OAKG;IACH,MAAM,EAAE,KAAK,CAAE;QACd,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,WAAW,CAAE,aAAa,CAAE,OAAO,CAAE,CAAE,CAAC;KAC/C,CAAE,CAAC;IACJ;;OAEG;IACH,MAAM,EAAE,KAAK,CAAE,MAAM,CAAE,CAAC;IACxB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAE,MAAM,CAAE,CAAC;IACxB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,CAAE,QAAQ,EAAE,KAAK,CAAE,MAAM,GAAG,SAAS,CAAE,KAAM,IAAI,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAClC,oBAAoB,EACpB,QAAQ,GAAG,qBAAqB,GAAG,aAAa,CAChD,GAAG;IACH,KAAK,EAAE,oBAAoB,CAAE,QAAQ,CAAE,CAAE,MAAM,CAAE,CAAC;IAClD,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,CAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,KAAM,IAAI,CAAC;CACnD,CAAC"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export default function CustomDuotoneBar({ value, onChange, }: {
3
+ value?: string[];
4
+ onChange: (value?: string[]) => void;
5
+ }): JSX.Element;
6
+ //# sourceMappingURL=custom-duotone-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-duotone-bar.d.ts","sourceRoot":"","sources":["../../src/duotone-picker/custom-duotone-bar.tsx"],"names":[],"mappings":";AAaA,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAE,EACzC,KAAK,EACL,QAAQ,GACR,EAAE;IACF,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,CAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAM,IAAI,CAAC;CACvC,eAiBA"}
@@ -0,0 +1,38 @@
1
+ /// <reference types="react" />
2
+ import type { DuotonePickerProps } from './types';
3
+ /**
4
+ * ```jsx
5
+ * import { DuotonePicker, DuotoneSwatch } from '@wordpress/components';
6
+ * import { useState } from '@wordpress/element';
7
+ *
8
+ * const DUOTONE_PALETTE = [
9
+ * { colors: [ '#8c00b7', '#fcff41' ], name: 'Purple and yellow', slug: 'purple-yellow' },
10
+ * { colors: [ '#000097', '#ff4747' ], name: 'Blue and red', slug: 'blue-red' },
11
+ * ];
12
+ *
13
+ * const COLOR_PALETTE = [
14
+ * { color: '#ff4747', name: 'Red', slug: 'red' },
15
+ * { color: '#fcff41', name: 'Yellow', slug: 'yellow' },
16
+ * { color: '#000097', name: 'Blue', slug: 'blue' },
17
+ * { color: '#8c00b7', name: 'Purple', slug: 'purple' },
18
+ * ];
19
+ *
20
+ * const Example = () => {
21
+ * const [ duotone, setDuotone ] = useState( [ '#000000', '#ffffff' ] );
22
+ * return (
23
+ * <>
24
+ * <DuotonePicker
25
+ * duotonePalette={ DUOTONE_PALETTE }
26
+ * colorPalette={ COLOR_PALETTE }
27
+ * value={ duotone }
28
+ * onChange={ setDuotone }
29
+ * />
30
+ * <DuotoneSwatch values={ duotone } />
31
+ * </>
32
+ * );
33
+ * };
34
+ * ```
35
+ */
36
+ declare function DuotonePicker({ clearable, unsetable, colorPalette, duotonePalette, disableCustomColors, disableCustomDuotone, value, onChange, }: DuotonePickerProps): JSX.Element;
37
+ export default DuotonePicker;
38
+ //# sourceMappingURL=duotone-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"duotone-picker.d.ts","sourceRoot":"","sources":["../../src/duotone-picker/duotone-picker.tsx"],"names":[],"mappings":";AAqBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,iBAAS,aAAa,CAAE,EACvB,SAAgB,EAChB,SAAgB,EAChB,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,KAAK,EACL,QAAQ,GACR,EAAE,kBAAkB,eA2GpB;AAED,eAAe,aAAa,CAAC"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import type { DuotoneSwatchProps } from './types';
3
+ declare function DuotoneSwatch({ values }: DuotoneSwatchProps): JSX.Element;
4
+ export default DuotoneSwatch;
5
+ //# sourceMappingURL=duotone-swatch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"duotone-swatch.d.ts","sourceRoot":"","sources":["../../src/duotone-picker/duotone-swatch.tsx"],"names":[],"mappings":";AAWA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,iBAAS,aAAa,CAAE,EAAE,MAAM,EAAE,EAAE,kBAAkB,eAQrD;AAED,eAAe,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as DuotonePicker } from './duotone-picker';
2
+ export { default as DuotoneSwatch } from './duotone-swatch';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/duotone-picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type { ComponentMeta, ComponentStory } from '@storybook/react';
5
+ /**
6
+ * Internal dependencies
7
+ */
8
+ import { DuotonePicker } from '..';
9
+ declare const meta: ComponentMeta<typeof DuotonePicker>;
10
+ export default meta;
11
+ export declare const Default: ComponentStory<typeof DuotonePicker>;
12
+ //# sourceMappingURL=duotone-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"duotone-picker.d.ts","sourceRoot":"","sources":["../../../src/duotone-picker/stories/duotone-picker.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOtE;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAGnC,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,aAAa,CAW9C,CAAC;AACF,eAAe,IAAI,CAAC;AAwCpB,eAAO,MAAM,OAAO,sCAAsB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import type { ComponentMeta, ComponentStory } from '@storybook/react';
5
+ /**
6
+ * Internal dependencies
7
+ */
8
+ import { DuotoneSwatch } from '..';
9
+ declare const meta: ComponentMeta<typeof DuotoneSwatch>;
10
+ export default meta;
11
+ export declare const Default: ComponentStory<typeof DuotoneSwatch>;
12
+ export declare const SingleColor: ComponentStory<typeof DuotoneSwatch>;
13
+ export declare const Null: ComponentStory<typeof DuotoneSwatch>;
14
+ //# sourceMappingURL=duotone-swatch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"duotone-swatch.d.ts","sourceRoot":"","sources":["../../../src/duotone-picker/stories/duotone-swatch.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEtE;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAEnC,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,aAAa,CAO9C,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,sCAAsB,CAAC;AAK3C,eAAO,MAAM,WAAW,sCAAsB,CAAC;AAK/C,eAAO,MAAM,IAAI,sCAAsB,CAAC"}
@@ -0,0 +1,60 @@
1
+ export type DuotonePickerProps = {
2
+ /**
3
+ * Whether there should be a button to clear the duotone value.
4
+ *
5
+ * @default true
6
+ */
7
+ clearable?: boolean;
8
+ /**
9
+ * Whether there should be an `unset` option.
10
+ *
11
+ * @default true
12
+ */
13
+ unsetable?: boolean;
14
+ /**
15
+ * Array of color presets of the form `{ color: '#000000', name: 'Black', slug: 'black' }`.
16
+ */
17
+ colorPalette: Color[];
18
+ /**
19
+ * Array of duotone presets of the form `{ colors: [ '#000000', '#ffffff' ], name: 'Grayscale', slug: 'grayscale' }`.
20
+ */
21
+ duotonePalette: DuotoneColor[];
22
+ /**
23
+ * Whether custom colors should be disabled.
24
+ *
25
+ * @default false
26
+ */
27
+ disableCustomColors?: boolean;
28
+ /**
29
+ * Whether custom duotone values should be disabled.
30
+ *
31
+ * @default false
32
+ */
33
+ disableCustomDuotone?: boolean;
34
+ /**
35
+ * An array of colors for the duotone effect.
36
+ */
37
+ value?: string[] | 'unset';
38
+ /**
39
+ * Callback which is called when the duotone colors change.
40
+ */
41
+ onChange: (value: DuotonePickerProps['value'] | undefined) => void;
42
+ };
43
+ type Color = {
44
+ color: string;
45
+ name: string;
46
+ slug: string;
47
+ };
48
+ type DuotoneColor = {
49
+ colors: string[];
50
+ name: string;
51
+ slug: string;
52
+ };
53
+ export type DuotoneSwatchProps = {
54
+ /**
55
+ * An array of colors to show or `null` to show the placeholder swatch icon.
56
+ */
57
+ values?: string[] | null;
58
+ };
59
+ export {};
60
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/duotone-picker/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,KAAK,EAAE,CAAC;IACtB;;OAEG;IACH,cAAc,EAAE,YAAY,EAAE,CAAC;IAC/B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC3B;;OAEG;IACH,QAAQ,EAAE,CAAE,KAAK,EAAE,kBAAkB,CAAE,OAAO,CAAE,GAAG,SAAS,KAAM,IAAI,CAAC;CACvE,CAAC;AAEF,KAAK,KAAK,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,KAAK,YAAY,GAAG;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACzB,CAAC"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Internal dependencies
3
+ */
4
+ import type { DuotonePickerProps } from './types';
5
+ /**
6
+ * Object representation for a color.
7
+ *
8
+ * @typedef {Object} RGBColor
9
+ * @property {number} r Red component of the color in the range [0,1].
10
+ * @property {number} g Green component of the color in the range [0,1].
11
+ * @property {number} b Blue component of the color in the range [0,1].
12
+ */
13
+ /**
14
+ * Calculate the brightest and darkest values from a color palette.
15
+ *
16
+ * @param palette Color palette for the theme.
17
+ *
18
+ * @return Tuple of the darkest color and brightest color.
19
+ */
20
+ export declare function getDefaultColors(palette: DuotonePickerProps['colorPalette']): string[];
21
+ /**
22
+ * Generate a duotone gradient from a list of colors.
23
+ *
24
+ * @param colors CSS color strings.
25
+ * @param angle CSS gradient angle.
26
+ *
27
+ * @return CSS gradient string for the duotone swatch.
28
+ */
29
+ export declare function getGradientFromCSSColors(colors?: string[], angle?: string): string;
30
+ /**
31
+ * Convert a color array to an array of color stops.
32
+ *
33
+ * @param colors CSS colors array
34
+ *
35
+ * @return Color stop information.
36
+ */
37
+ export declare function getColorStopsFromColors(colors: string[]): {
38
+ position: number;
39
+ color: string;
40
+ }[];
41
+ /**
42
+ * Convert a color stop array to an array colors.
43
+ *
44
+ * @param colorStops Color stop information.
45
+ *
46
+ * @return CSS colors array.
47
+ */
48
+ export declare function getColorsFromColorStops(colorStops?: {
49
+ position: number;
50
+ color: string;
51
+ }[]): string[];
52
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/duotone-picker/utils.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAIlD;;;;;;;GAOG;AAEH;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC/B,OAAO,EAAE,kBAAkB,CAAE,cAAc,CAAE,YAuB7C;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACvC,MAAM,GAAE,MAAM,EAAO,EACrB,KAAK,SAAU,UASf;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAE,MAAM,EAAE,MAAM,EAAE;;;IAKxD;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACtC,UAAU,GAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAO,YAGtD"}
@@ -0,0 +1,4 @@
1
+ export const lock: (object: any, privateData: any) => void;
2
+ export const unlock: (object: any) => any;
3
+ export const experiments: {};
4
+ //# sourceMappingURL=experiments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"experiments.d.ts","sourceRoot":"","sources":["../src/experiments.js"],"names":[],"mappings":";;AAiBA,6BAA8B"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @type {import('react').Context<import('./types').Context>}
3
+ */
4
+ export const FlyoutContext: import('react').Context<import('./types').Context>;
5
+ export function useFlyoutContext(): import("./types").Context;
6
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/flyout/context.js"],"names":[],"mappings":"AAKA;;GAEG;AACH,4BAFU,OAAO,OAAO,EAAE,OAAO,CAAC,OAAO,SAAS,EAAE,OAAO,CAAC,CAEX;AAC1C,8DAA0D"}
@@ -0,0 +1,21 @@
1
+ export default ConnectedFlyout;
2
+ /**
3
+ * `Flyout` is a component to render a floating content modal.
4
+ * It is similar in purpose to a tooltip, but renders content of any sort,
5
+ * not only simple text.
6
+ *
7
+ * @example
8
+ * ```jsx
9
+ * import { Button, __experimentalFlyout as Flyout, __experimentalText as } from '@wordpress/components';
10
+ *
11
+ * function Example() {
12
+ * return (
13
+ * <Flyout trigger={ <Button>Show/Hide content</Button> }>
14
+ * <Text>Code is Poetry</Text>
15
+ * </Flyout>
16
+ * );
17
+ * }
18
+ * ```
19
+ */
20
+ declare const ConnectedFlyout: import("../../ui/context").WordPressComponent<"div", import("../types").Props, false>;
21
+ //# sourceMappingURL=component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/flyout/flyout/component.js"],"names":[],"mappings":";AA0FA;;;;;;;;;;;;;;;;;GAiBG;AACH,qHAA2D"}