@wordpress/components 23.6.0 → 23.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/CHANGELOG.md +32 -4
  2. package/build/angle-picker-control/angle-circle.js +1 -4
  3. package/build/angle-picker-control/angle-circle.js.map +1 -1
  4. package/build/angle-picker-control/index.js +10 -22
  5. package/build/angle-picker-control/index.js.map +1 -1
  6. package/build/angle-picker-control/styles/angle-picker-control-styles.js +24 -15
  7. package/build/angle-picker-control/styles/angle-picker-control-styles.js.map +1 -1
  8. package/build/animate/index.js +27 -19
  9. package/build/animate/index.js.map +1 -1
  10. package/build/animate/types.js.map +1 -0
  11. package/build/box-control/axial-input-controls.js.map +1 -1
  12. package/build/color-picker/color-input.js +0 -4
  13. package/build/color-picker/color-input.js.map +1 -1
  14. package/build/color-picker/component.js +5 -4
  15. package/build/color-picker/component.js.map +1 -1
  16. package/build/color-picker/hex-input.js.map +1 -1
  17. package/build/color-picker/hsl-input.js.map +1 -1
  18. package/build/color-picker/input-with-slider.js.map +1 -1
  19. package/build/color-picker/legacy-adapter.js.map +1 -1
  20. package/build/color-picker/picker.js.map +1 -1
  21. package/build/color-picker/rgb-input.js.map +1 -1
  22. package/build/color-picker/use-deprecated-props.js.map +1 -1
  23. package/build/custom-gradient-picker/constants.js +1 -1
  24. package/build/custom-gradient-picker/constants.js.map +1 -1
  25. package/build/custom-gradient-picker/gradient-bar/constants.js.map +1 -1
  26. package/build/custom-gradient-picker/gradient-bar/control-points.js +9 -5
  27. package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  28. package/build/custom-gradient-picker/gradient-bar/index.js +14 -9
  29. package/build/custom-gradient-picker/gradient-bar/index.js.map +1 -1
  30. package/build/custom-gradient-picker/gradient-bar/utils.js +34 -54
  31. package/build/custom-gradient-picker/gradient-bar/utils.js.map +1 -1
  32. package/build/custom-gradient-picker/index.js +45 -16
  33. package/build/custom-gradient-picker/index.js.map +1 -1
  34. package/build/custom-gradient-picker/serializer.js +14 -4
  35. package/build/custom-gradient-picker/serializer.js.map +1 -1
  36. package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.js +6 -6
  37. package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.js.map +1 -1
  38. package/build/custom-gradient-picker/types.js +6 -0
  39. package/build/custom-gradient-picker/types.js.map +1 -0
  40. package/build/custom-gradient-picker/utils.js +17 -12
  41. package/build/custom-gradient-picker/utils.js.map +1 -1
  42. package/build/{color-list-picker → duotone-picker/color-list-picker}/index.js +5 -5
  43. package/build/duotone-picker/color-list-picker/index.js.map +1 -0
  44. package/build/duotone-picker/color-list-picker/types.js +6 -0
  45. package/build/duotone-picker/color-list-picker/types.js.map +1 -0
  46. package/build/duotone-picker/custom-duotone-bar.js.map +1 -1
  47. package/build/duotone-picker/duotone-picker.js +39 -2
  48. package/build/duotone-picker/duotone-picker.js.map +1 -1
  49. package/build/duotone-picker/duotone-swatch.js.map +1 -1
  50. package/build/duotone-picker/index.js.map +1 -1
  51. package/build/duotone-picker/types.js +6 -0
  52. package/build/duotone-picker/types.js.map +1 -0
  53. package/build/duotone-picker/utils.js +13 -11
  54. package/build/duotone-picker/utils.js.map +1 -1
  55. package/build/form-token-field/index.js +9 -3
  56. package/build/form-token-field/index.js.map +1 -1
  57. package/build/gradient-picker/index.js +61 -9
  58. package/build/gradient-picker/index.js.map +1 -1
  59. package/build/gradient-picker/types.js +6 -0
  60. package/build/gradient-picker/types.js.map +1 -0
  61. package/build/palette-edit/index.js +1 -2
  62. package/build/palette-edit/index.js.map +1 -1
  63. package/build/resizable-box/resize-tooltip/utils.js.map +1 -1
  64. package/build/sandbox/index.native.js +80 -67
  65. package/build/sandbox/index.native.js.map +1 -1
  66. package/build/tab-panel/index.js +1 -1
  67. package/build/tab-panel/index.js.map +1 -1
  68. package/build/tools-panel/tools-panel/hook.js +45 -6
  69. package/build/tools-panel/tools-panel/hook.js.map +1 -1
  70. package/build/utils/input/input-control.js +1 -1
  71. package/build/utils/input/input-control.js.map +1 -1
  72. package/build-module/angle-picker-control/angle-circle.js +1 -4
  73. package/build-module/angle-picker-control/angle-circle.js.map +1 -1
  74. package/build-module/angle-picker-control/index.js +12 -21
  75. package/build-module/angle-picker-control/index.js.map +1 -1
  76. package/build-module/angle-picker-control/styles/angle-picker-control-styles.js +20 -13
  77. package/build-module/angle-picker-control/styles/angle-picker-control-styles.js.map +1 -1
  78. package/build-module/animate/index.js +25 -17
  79. package/build-module/animate/index.js.map +1 -1
  80. package/build-module/box-control/axial-input-controls.js.map +1 -1
  81. package/build-module/color-picker/color-input.js +0 -4
  82. package/build-module/color-picker/color-input.js.map +1 -1
  83. package/build-module/color-picker/component.js +3 -3
  84. package/build-module/color-picker/component.js.map +1 -1
  85. package/build-module/color-picker/hex-input.js.map +1 -1
  86. package/build-module/color-picker/hsl-input.js.map +1 -1
  87. package/build-module/color-picker/input-with-slider.js.map +1 -1
  88. package/build-module/color-picker/legacy-adapter.js.map +1 -1
  89. package/build-module/color-picker/picker.js +4 -0
  90. package/build-module/color-picker/picker.js.map +1 -1
  91. package/build-module/color-picker/rgb-input.js.map +1 -1
  92. package/build-module/color-picker/use-deprecated-props.js.map +1 -1
  93. package/build-module/custom-gradient-picker/constants.js +1 -1
  94. package/build-module/custom-gradient-picker/constants.js.map +1 -1
  95. package/build-module/custom-gradient-picker/gradient-bar/constants.js.map +1 -1
  96. package/build-module/custom-gradient-picker/gradient-bar/control-points.js +9 -4
  97. package/build-module/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
  98. package/build-module/custom-gradient-picker/gradient-bar/index.js +14 -8
  99. package/build-module/custom-gradient-picker/gradient-bar/index.js.map +1 -1
  100. package/build-module/custom-gradient-picker/gradient-bar/utils.js +34 -54
  101. package/build-module/custom-gradient-picker/gradient-bar/utils.js.map +1 -1
  102. package/build-module/custom-gradient-picker/index.js +44 -17
  103. package/build-module/custom-gradient-picker/index.js.map +1 -1
  104. package/build-module/custom-gradient-picker/serializer.js +14 -4
  105. package/build-module/custom-gradient-picker/serializer.js.map +1 -1
  106. package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.js +6 -6
  107. package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.js.map +1 -1
  108. package/build-module/custom-gradient-picker/types.js +2 -0
  109. package/build-module/custom-gradient-picker/utils.js +17 -12
  110. package/build-module/custom-gradient-picker/utils.js.map +1 -1
  111. package/build-module/{color-list-picker → duotone-picker/color-list-picker}/index.js +5 -5
  112. package/build-module/duotone-picker/color-list-picker/index.js.map +1 -0
  113. package/build-module/duotone-picker/color-list-picker/types.js +2 -0
  114. package/build-module/duotone-picker/color-list-picker/types.js.map +1 -0
  115. package/build-module/duotone-picker/custom-duotone-bar.js.map +1 -1
  116. package/build-module/duotone-picker/duotone-picker.js +38 -2
  117. package/build-module/duotone-picker/duotone-picker.js.map +1 -1
  118. package/build-module/duotone-picker/duotone-swatch.js.map +1 -1
  119. package/build-module/duotone-picker/index.js.map +1 -1
  120. package/build-module/duotone-picker/types.js +2 -0
  121. package/build-module/duotone-picker/types.js.map +1 -0
  122. package/build-module/duotone-picker/utils.js +17 -11
  123. package/build-module/duotone-picker/utils.js.map +1 -1
  124. package/build-module/form-token-field/index.js +9 -4
  125. package/build-module/form-token-field/index.js.map +1 -1
  126. package/build-module/gradient-picker/index.js +61 -10
  127. package/build-module/gradient-picker/index.js.map +1 -1
  128. package/build-module/gradient-picker/types.js +2 -0
  129. package/build-module/gradient-picker/types.js.map +1 -0
  130. package/build-module/palette-edit/index.js +1 -2
  131. package/build-module/palette-edit/index.js.map +1 -1
  132. package/build-module/resizable-box/resize-tooltip/utils.js.map +1 -1
  133. package/build-module/sandbox/index.native.js +70 -58
  134. package/build-module/sandbox/index.native.js.map +1 -1
  135. package/build-module/tab-panel/index.js +2 -2
  136. package/build-module/tab-panel/index.js.map +1 -1
  137. package/build-module/tools-panel/tools-panel/hook.js +45 -6
  138. package/build-module/tools-panel/tools-panel/hook.js.map +1 -1
  139. package/build-module/utils/input/input-control.js +1 -1
  140. package/build-module/utils/input/input-control.js.map +1 -1
  141. package/build-style/style-rtl.css +40 -28
  142. package/build-style/style.css +42 -28
  143. package/build-types/angle-picker-control/angle-circle.d.ts.map +1 -1
  144. package/build-types/angle-picker-control/index.d.ts.map +1 -1
  145. package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts +5 -0
  146. package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts.map +1 -1
  147. package/build-types/animate/index.d.ts +27 -22
  148. package/build-types/animate/index.d.ts.map +1 -1
  149. package/build-types/animate/stories/index.d.ts +18 -0
  150. package/build-types/animate/stories/index.d.ts.map +1 -0
  151. package/build-types/animate/types.d.ts +30 -0
  152. package/build-types/animate/types.d.ts.map +1 -0
  153. package/build-types/color-picker/color-input.d.ts +1 -11
  154. package/build-types/color-picker/color-input.d.ts.map +1 -1
  155. package/build-types/color-picker/component.d.ts +8 -9
  156. package/build-types/color-picker/component.d.ts.map +1 -1
  157. package/build-types/color-picker/hex-input.d.ts +1 -10
  158. package/build-types/color-picker/hex-input.d.ts.map +1 -1
  159. package/build-types/color-picker/hsl-input.d.ts +1 -10
  160. package/build-types/color-picker/hsl-input.d.ts.map +1 -1
  161. package/build-types/color-picker/input-with-slider.d.ts +1 -9
  162. package/build-types/color-picker/input-with-slider.d.ts.map +1 -1
  163. package/build-types/color-picker/legacy-adapter.d.ts +1 -3
  164. package/build-types/color-picker/legacy-adapter.d.ts.map +1 -1
  165. package/build-types/color-picker/picker.d.ts +4 -7
  166. package/build-types/color-picker/picker.d.ts.map +1 -1
  167. package/build-types/color-picker/rgb-input.d.ts +1 -10
  168. package/build-types/color-picker/rgb-input.d.ts.map +1 -1
  169. package/build-types/color-picker/stories/index.d.ts +19 -0
  170. package/build-types/color-picker/stories/index.d.ts.map +1 -0
  171. package/build-types/color-picker/test/index.d.ts +2 -0
  172. package/build-types/color-picker/test/index.d.ts.map +1 -0
  173. package/build-types/color-picker/types.d.ts +105 -1
  174. package/build-types/color-picker/types.d.ts.map +1 -1
  175. package/build-types/color-picker/use-deprecated-props.d.ts +1 -44
  176. package/build-types/color-picker/use-deprecated-props.d.ts.map +1 -1
  177. package/build-types/custom-gradient-picker/constants.d.ts +8 -8
  178. package/build-types/custom-gradient-picker/constants.d.ts.map +1 -1
  179. package/build-types/custom-gradient-picker/gradient-bar/constants.d.ts +7 -7
  180. package/build-types/custom-gradient-picker/gradient-bar/constants.d.ts.map +1 -1
  181. package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts +5 -22
  182. package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -1
  183. package/build-types/custom-gradient-picker/gradient-bar/index.d.ts +3 -9
  184. package/build-types/custom-gradient-picker/gradient-bar/index.d.ts.map +1 -1
  185. package/build-types/custom-gradient-picker/gradient-bar/test/utils.d.ts +2 -0
  186. package/build-types/custom-gradient-picker/gradient-bar/test/utils.d.ts.map +1 -0
  187. package/build-types/custom-gradient-picker/gradient-bar/utils.d.ts +44 -92
  188. package/build-types/custom-gradient-picker/gradient-bar/utils.d.ts.map +1 -1
  189. package/build-types/custom-gradient-picker/index.d.ts +27 -6
  190. package/build-types/custom-gradient-picker/index.d.ts.map +1 -1
  191. package/build-types/custom-gradient-picker/serializer.d.ts +13 -16
  192. package/build-types/custom-gradient-picker/serializer.d.ts.map +1 -1
  193. package/build-types/custom-gradient-picker/stories/index.d.ts +12 -0
  194. package/build-types/custom-gradient-picker/stories/index.d.ts.map +1 -0
  195. package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts +3 -2
  196. package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts.map +1 -1
  197. package/build-types/custom-gradient-picker/test/serializer.d.ts +2 -0
  198. package/build-types/custom-gradient-picker/test/serializer.d.ts.map +1 -0
  199. package/build-types/custom-gradient-picker/types.d.ts +120 -0
  200. package/build-types/custom-gradient-picker/types.d.ts.map +1 -0
  201. package/build-types/custom-gradient-picker/utils.d.ts +12 -4
  202. package/build-types/custom-gradient-picker/utils.d.ts.map +1 -1
  203. package/build-types/duotone-picker/color-list-picker/index.d.ts.map +1 -0
  204. package/build-types/{color-list-picker → duotone-picker/color-list-picker}/types.d.ts +2 -2
  205. package/build-types/duotone-picker/color-list-picker/types.d.ts.map +1 -0
  206. package/build-types/duotone-picker/custom-duotone-bar.d.ts +6 -0
  207. package/build-types/duotone-picker/custom-duotone-bar.d.ts.map +1 -0
  208. package/build-types/duotone-picker/duotone-picker.d.ts +38 -0
  209. package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -0
  210. package/build-types/duotone-picker/duotone-swatch.d.ts +5 -0
  211. package/build-types/duotone-picker/duotone-swatch.d.ts.map +1 -0
  212. package/build-types/duotone-picker/index.d.ts +3 -0
  213. package/build-types/duotone-picker/index.d.ts.map +1 -0
  214. package/build-types/duotone-picker/stories/duotone-picker.d.ts +12 -0
  215. package/build-types/duotone-picker/stories/duotone-picker.d.ts.map +1 -0
  216. package/build-types/duotone-picker/stories/duotone-swatch.d.ts +14 -0
  217. package/build-types/duotone-picker/stories/duotone-swatch.d.ts.map +1 -0
  218. package/build-types/duotone-picker/types.d.ts +60 -0
  219. package/build-types/duotone-picker/types.d.ts.map +1 -0
  220. package/build-types/duotone-picker/utils.d.ts +52 -0
  221. package/build-types/duotone-picker/utils.d.ts.map +1 -0
  222. package/build-types/form-token-field/index.d.ts.map +1 -1
  223. package/build-types/form-token-field/types.d.ts +6 -0
  224. package/build-types/form-token-field/types.d.ts.map +1 -1
  225. package/build-types/gradient-picker/index.d.ts +49 -11
  226. package/build-types/gradient-picker/index.d.ts.map +1 -1
  227. package/build-types/gradient-picker/stories/index.d.ts +14 -0
  228. package/build-types/gradient-picker/stories/index.d.ts.map +1 -0
  229. package/build-types/gradient-picker/types.d.ts +87 -0
  230. package/build-types/gradient-picker/types.d.ts.map +1 -0
  231. package/build-types/palette-edit/index.d.ts.map +1 -1
  232. package/build-types/resizable-box/resize-tooltip/utils.d.ts +1 -1
  233. package/build-types/resizable-box/resize-tooltip/utils.d.ts.map +1 -1
  234. package/build-types/tab-panel/index.d.ts.map +1 -1
  235. package/build-types/tools-panel/tools-panel/hook.d.ts.map +1 -1
  236. package/build-types/tools-panel/types.d.ts +1 -0
  237. package/build-types/tools-panel/types.d.ts.map +1 -1
  238. package/build-types/utils/input/input-control.d.ts.map +1 -1
  239. package/package.json +19 -19
  240. package/src/angle-picker-control/angle-circle.tsx +0 -1
  241. package/src/angle-picker-control/index.tsx +14 -27
  242. package/src/angle-picker-control/styles/angle-picker-control-styles.tsx +16 -9
  243. package/src/animate/index.tsx +75 -0
  244. package/src/animate/stories/index.tsx +102 -0
  245. package/src/animate/types.ts +32 -0
  246. package/src/border-box-control/stories/index.tsx +1 -1
  247. package/src/box-control/axial-input-controls.tsx +1 -1
  248. package/src/circular-option-picker/style.scss +10 -0
  249. package/src/color-indicator/style.scss +1 -0
  250. package/src/color-picker/README.md +2 -2
  251. package/src/color-picker/color-input.tsx +1 -12
  252. package/src/color-picker/component.tsx +9 -18
  253. package/src/color-picker/hex-input.tsx +2 -7
  254. package/src/color-picker/hsl-input.tsx +2 -7
  255. package/src/color-picker/input-with-slider.tsx +1 -9
  256. package/src/color-picker/legacy-adapter.tsx +1 -2
  257. package/src/color-picker/picker.tsx +5 -6
  258. package/src/color-picker/rgb-input.tsx +2 -7
  259. package/src/color-picker/stories/index.tsx +51 -0
  260. package/src/color-picker/test/{index.js → index.tsx} +36 -18
  261. package/src/color-picker/types.ts +128 -1
  262. package/src/color-picker/use-deprecated-props.ts +2 -53
  263. package/src/combobox-control/stories/index.tsx +1 -1
  264. package/src/custom-gradient-picker/{constants.js → constants.ts} +2 -2
  265. package/src/custom-gradient-picker/gradient-bar/{control-points.js → control-points.tsx} +171 -134
  266. package/src/custom-gradient-picker/gradient-bar/{index.js → index.tsx} +32 -10
  267. package/src/custom-gradient-picker/gradient-bar/test/{utils.js → utils.ts} +58 -31
  268. package/src/custom-gradient-picker/gradient-bar/utils.ts +193 -0
  269. package/src/custom-gradient-picker/{index.js → index.tsx} +63 -22
  270. package/src/custom-gradient-picker/serializer.ts +82 -0
  271. package/src/custom-gradient-picker/stories/index.tsx +45 -0
  272. package/src/custom-gradient-picker/style.scss +25 -4
  273. package/src/custom-gradient-picker/test/{serializer.js → serializer.ts} +39 -33
  274. package/src/custom-gradient-picker/types.ts +137 -0
  275. package/src/custom-gradient-picker/{utils.js → utils.ts} +37 -22
  276. package/src/custom-select-control/test/index.js +6 -4
  277. package/src/{color-list-picker → duotone-picker/color-list-picker}/index.tsx +7 -6
  278. package/src/{color-list-picker → duotone-picker/color-list-picker}/types.ts +2 -2
  279. package/src/duotone-picker/{custom-duotone-bar.js → custom-duotone-bar.tsx} +7 -1
  280. package/src/duotone-picker/{duotone-picker.js → duotone-picker.tsx} +39 -2
  281. package/src/duotone-picker/{duotone-swatch.js → duotone-swatch.tsx} +2 -1
  282. package/src/duotone-picker/stories/{duotone-picker.js → duotone-picker.tsx} +15 -8
  283. package/src/duotone-picker/stories/{duotone-swatch.js → duotone-swatch.tsx} +9 -3
  284. package/src/duotone-picker/types.ts +61 -0
  285. package/src/duotone-picker/{utils.js → utils.ts} +29 -14
  286. package/src/flex/flex-item/README.md +1 -1
  287. package/src/form-token-field/README.md +1 -0
  288. package/src/form-token-field/index.tsx +10 -3
  289. package/src/form-token-field/style.scss +0 -7
  290. package/src/form-token-field/test/index.tsx +1 -0
  291. package/src/form-token-field/types.ts +6 -0
  292. package/src/gradient-picker/README.md +16 -23
  293. package/src/gradient-picker/{index.js → index.tsx} +70 -16
  294. package/src/gradient-picker/stories/{index.js → index.tsx} +19 -8
  295. package/src/gradient-picker/types.ts +89 -0
  296. package/src/item-group/test/index.js +5 -3
  297. package/src/palette-edit/index.tsx +4 -5
  298. package/src/resizable-box/resize-tooltip/utils.ts +1 -1
  299. package/src/sandbox/index.native.js +71 -78
  300. package/src/slot-fill/test/slot.js +8 -6
  301. package/src/style.scss +1 -1
  302. package/src/tab-panel/index.tsx +7 -2
  303. package/src/tools-panel/test/index.tsx +86 -0
  304. package/src/tools-panel/tools-panel/hook.ts +44 -4
  305. package/src/tools-panel/types.ts +1 -0
  306. package/src/tooltip/test/index.js +251 -301
  307. package/src/utils/input/input-control.js +1 -0
  308. package/tsconfig.json +1 -2
  309. package/tsconfig.tsbuildinfo +1 -1
  310. package/build/color-list-picker/index.js.map +0 -1
  311. package/build-module/color-list-picker/index.js.map +0 -1
  312. package/build-types/color-list-picker/index.d.ts.map +0 -1
  313. package/build-types/color-list-picker/types.d.ts.map +0 -1
  314. package/src/animate/index.js +0 -60
  315. package/src/animate/stories/index.js +0 -53
  316. package/src/color-picker/stories/index.js +0 -41
  317. package/src/custom-gradient-picker/gradient-bar/utils.js +0 -189
  318. package/src/custom-gradient-picker/serializer.js +0 -48
  319. package/src/custom-gradient-picker/stories/index.js +0 -33
  320. /package/build/{color-list-picker → animate}/types.js +0 -0
  321. /package/build-module/{color-list-picker → animate}/types.js +0 -0
  322. /package/build-module/{color-list-picker → animate}/types.js.map +0 -0
  323. /package/{build/color-list-picker → build-module/custom-gradient-picker}/types.js.map +0 -0
  324. /package/build-types/{color-list-picker → duotone-picker/color-list-picker}/index.d.ts +0 -0
  325. /package/src/custom-gradient-picker/gradient-bar/{constants.js → constants.ts} +0 -0
  326. /package/src/custom-gradient-picker/styles/{custom-gradient-picker-styles.js → custom-gradient-picker-styles.tsx} +0 -0
  327. /package/src/{color-list-picker → duotone-picker/color-list-picker}/style.scss +0 -0
  328. /package/src/duotone-picker/{index.js → index.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/components/src/utils/input/input-control.js"],"names":["css","inputStyleNeutral","inputStyleFocus","font","COLORS","breakpoint","inputControl","ui","darkGrayPlaceholder","lightGrayPlaceholder"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,GAAT,QAAoB,gBAApB;AAEA;AACA;AACA;;AACA,SAASC,iBAAT,EAA4BC,eAA5B,QAAmD,QAAnD;AACA,SAASC,IAAT,QAAqB,SAArB;AACA,SAASC,MAAT,QAAuB,kBAAvB;AACA,SAASC,UAAT,QAA2B,eAA3B;AAEA,OAAO,MAAMC,YAAY,gBAAGN,GAAH,iBACRG,IAAI,CAAE,oBAAF,CADI,uBAGrBF,iBAHqB,iBAMVE,IAAI,CAAE,uBAAF,CANM,0BAUrBE,UAAU,CAAE,OAAF,CAVW,iBAWTF,IAAI,CAAE,kBAAF,CAXK,mCAiBpBD,eAjBoB,2CAsBbE,MAAM,CAACG,EAAP,CAAUC,mBAtBG,4CA2BbJ,MAAM,CAACG,EAAP,CAAUC,mBA3BG,sCA+BbJ,MAAM,CAACG,EAAP,CAAUC,mBA/BG,4DAoCZJ,MAAM,CAACG,EAAP,CAAUE,oBApCE,4CAyCZL,MAAM,CAACG,EAAP,CAAUE,oBAzCE,sCA6CZL,MAAM,CAACG,EAAP,CAAUE,oBA7CE,ghFAAlB","sourcesContent":["/**\n * External dependencies\n */\nimport { css } from '@emotion/react';\n\n/**\n * Internal dependencies\n */\nimport { inputStyleNeutral, inputStyleFocus } from './base';\nimport { font } from '../font';\nimport { COLORS } from '../colors-values';\nimport { breakpoint } from '../breakpoint';\n\nexport const inputControl = css`\n\tfont-family: ${ font( 'default.fontFamily' ) };\n\tpadding: 6px 8px;\n\t${ inputStyleNeutral };\n\n\t/* Fonts smaller than 16px causes mobile safari to zoom. */\n\tfont-size: ${ font( 'mobileTextMinFontSize' ) };\n\t/* Override core line-height. To be reviewed. */\n\tline-height: normal;\n\n\t${ breakpoint( 'small' ) } {\n\t\tfont-size: ${ font( 'default.fontSize' ) };\n\t\t/* Override core line-height. To be reviewed. */\n\t\tline-height: normal;\n\t}\n\n\t&:focus {\n\t\t${ inputStyleFocus }\n\t}\n\n\t// Use opacity to work in various editor styles.\n\t&::-webkit-input-placeholder {\n\t\tcolor: ${ COLORS.ui.darkGrayPlaceholder };\n\t}\n\n\t&::-moz-placeholder {\n\t\topacity: 1; // Necessary because Firefox reduces this from 1.\n\t\tcolor: ${ COLORS.ui.darkGrayPlaceholder };\n\t}\n\n\t&:-ms-input-placeholder {\n\t\tcolor: ${ COLORS.ui.darkGrayPlaceholder };\n\t}\n\n\t.is-dark-theme & {\n\t\t&::-webkit-input-placeholder {\n\t\t\tcolor: ${ COLORS.ui.lightGrayPlaceholder };\n\t\t}\n\n\t\t&::-moz-placeholder {\n\t\t\topacity: 1; // Necessary because Firefox reduces this from 1.\n\t\t\tcolor: ${ COLORS.ui.lightGrayPlaceholder };\n\t\t}\n\n\t\t&:-ms-input-placeholder {\n\t\t\tcolor: ${ COLORS.ui.lightGrayPlaceholder };\n\t\t}\n\t}\n`;\n"]}
1
+ {"version":3,"sources":["@wordpress/components/src/utils/input/input-control.js"],"names":["css","inputStyleNeutral","inputStyleFocus","font","COLORS","breakpoint","inputControl","ui","darkGrayPlaceholder","lightGrayPlaceholder"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,GAAT,QAAoB,gBAApB;AAEA;AACA;AACA;;AACA,SAASC,iBAAT,EAA4BC,eAA5B,QAAmD,QAAnD;AACA,SAASC,IAAT,QAAqB,SAArB;AACA,SAASC,MAAT,QAAuB,kBAAvB;AACA,SAASC,UAAT,QAA2B,eAA3B;AAEA,OAAO,MAAMC,YAAY,gBAAGN,GAAH,+BAERG,IAAI,CAAE,oBAAF,CAFI,uBAIrBF,iBAJqB,iBAOVE,IAAI,CAAE,uBAAF,CAPM,0BAWrBE,UAAU,CAAE,OAAF,CAXW,iBAYTF,IAAI,CAAE,kBAAF,CAZK,mCAkBpBD,eAlBoB,2CAuBbE,MAAM,CAACG,EAAP,CAAUC,mBAvBG,4CA4BbJ,MAAM,CAACG,EAAP,CAAUC,mBA5BG,sCAgCbJ,MAAM,CAACG,EAAP,CAAUC,mBAhCG,4DAqCZJ,MAAM,CAACG,EAAP,CAAUE,oBArCE,4CA0CZL,MAAM,CAACG,EAAP,CAAUE,oBA1CE,sCA8CZL,MAAM,CAACG,EAAP,CAAUE,oBA9CE,wiFAAlB","sourcesContent":["/**\n * External dependencies\n */\nimport { css } from '@emotion/react';\n\n/**\n * Internal dependencies\n */\nimport { inputStyleNeutral, inputStyleFocus } from './base';\nimport { font } from '../font';\nimport { COLORS } from '../colors-values';\nimport { breakpoint } from '../breakpoint';\n\nexport const inputControl = css`\n\tdisplay: block;\n\tfont-family: ${ font( 'default.fontFamily' ) };\n\tpadding: 6px 8px;\n\t${ inputStyleNeutral };\n\n\t/* Fonts smaller than 16px causes mobile safari to zoom. */\n\tfont-size: ${ font( 'mobileTextMinFontSize' ) };\n\t/* Override core line-height. To be reviewed. */\n\tline-height: normal;\n\n\t${ breakpoint( 'small' ) } {\n\t\tfont-size: ${ font( 'default.fontSize' ) };\n\t\t/* Override core line-height. To be reviewed. */\n\t\tline-height: normal;\n\t}\n\n\t&:focus {\n\t\t${ inputStyleFocus }\n\t}\n\n\t// Use opacity to work in various editor styles.\n\t&::-webkit-input-placeholder {\n\t\tcolor: ${ COLORS.ui.darkGrayPlaceholder };\n\t}\n\n\t&::-moz-placeholder {\n\t\topacity: 1; // Necessary because Firefox reduces this from 1.\n\t\tcolor: ${ COLORS.ui.darkGrayPlaceholder };\n\t}\n\n\t&:-ms-input-placeholder {\n\t\tcolor: ${ COLORS.ui.darkGrayPlaceholder };\n\t}\n\n\t.is-dark-theme & {\n\t\t&::-webkit-input-placeholder {\n\t\t\tcolor: ${ COLORS.ui.lightGrayPlaceholder };\n\t\t}\n\n\t\t&::-moz-placeholder {\n\t\t\topacity: 1; // Necessary because Firefox reduces this from 1.\n\t\t\tcolor: ${ COLORS.ui.lightGrayPlaceholder };\n\t\t}\n\n\t\t&:-ms-input-placeholder {\n\t\t\tcolor: ${ COLORS.ui.lightGrayPlaceholder };\n\t\t}\n\t}\n`;\n"]}
@@ -653,6 +653,12 @@ svg.components-checkbox-control__indeterminate {
653
653
  display: flex;
654
654
  flex-wrap: wrap;
655
655
  gap: 12px;
656
+ position: relative;
657
+ z-index: 1;
658
+ }
659
+ .components-circular-option-picker > *:not(.components-circular-option-picker__swatches) {
660
+ position: relative;
661
+ z-index: 0;
656
662
  }
657
663
 
658
664
  .components-circular-option-picker__option-wrapper {
@@ -783,6 +789,7 @@ svg.components-checkbox-control__indeterminate {
783
789
  border-radius: 50%;
784
790
  display: inline-block;
785
791
  padding: 0;
792
+ background: #fff linear-gradient(45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
786
793
  }
787
794
 
788
795
  .components-combobox-control {
@@ -868,23 +875,6 @@ input.components-combobox-control__input[type=text]:focus {
868
875
  padding: 0;
869
876
  }
870
877
 
871
- .components-color-list-picker,
872
- .components-color-list-picker__swatch-button {
873
- width: 100%;
874
- }
875
-
876
- .components-color-list-picker__color-picker {
877
- margin: 8px 0;
878
- }
879
-
880
- .components-color-list-picker__swatch-button {
881
- padding: 6px;
882
- }
883
-
884
- .components-color-list-picker__swatch-color {
885
- margin: 2px;
886
- }
887
-
888
878
  .components-color-palette__custom-color {
889
879
  position: relative;
890
880
  border: none;
@@ -922,14 +912,21 @@ input.components-combobox-control__input[type=text]:focus {
922
912
  margin-bottom: 24px;
923
913
  }
924
914
 
925
- .components-custom-gradient-picker__gradient-bar:not(.has-gradient) {
926
- opacity: 0.4;
927
- }
928
-
929
915
  .components-custom-gradient-picker__gradient-bar {
930
916
  border-radius: 2px;
931
917
  width: 100%;
932
918
  height: 48px;
919
+ position: relative;
920
+ z-index: 1;
921
+ }
922
+ .components-custom-gradient-picker__gradient-bar.has-gradient {
923
+ background-image: repeating-linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0), repeating-linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0);
924
+ background-position: 0 0, 12px 12px;
925
+ background-size: calc(2 * 12px) calc(2 * 12px);
926
+ }
927
+ .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background {
928
+ position: absolute;
929
+ inset: 0;
933
930
  }
934
931
  .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container {
935
932
  position: relative;
@@ -998,6 +995,11 @@ input.components-combobox-control__input[type=text]:focus {
998
995
  border-radius: 2px;
999
996
  }
1000
997
 
998
+ .components-custom-gradient-picker__ui-line {
999
+ position: relative;
1000
+ z-index: 0;
1001
+ }
1002
+
1001
1003
  .components-custom-select-control {
1002
1004
  position: relative;
1003
1005
  font-size: 13px;
@@ -1255,6 +1257,23 @@ body.is-dragging-components-draggable {
1255
1257
  color: transparent;
1256
1258
  }
1257
1259
 
1260
+ .components-color-list-picker,
1261
+ .components-color-list-picker__swatch-button {
1262
+ width: 100%;
1263
+ }
1264
+
1265
+ .components-color-list-picker__color-picker {
1266
+ margin: 8px 0;
1267
+ }
1268
+
1269
+ .components-color-list-picker__swatch-button {
1270
+ padding: 6px;
1271
+ }
1272
+
1273
+ .components-color-list-picker__swatch-color {
1274
+ margin: 2px;
1275
+ }
1276
+
1258
1277
  .components-form-toggle {
1259
1278
  position: relative;
1260
1279
  display: inline-block;
@@ -1346,7 +1365,6 @@ body.is-dragging-components-draggable {
1346
1365
  /* Override core line-height. To be reviewed. */
1347
1366
  line-height: normal;
1348
1367
  width: 100%;
1349
- margin: 0 0 8px 0;
1350
1368
  padding: 0;
1351
1369
  cursor: text;
1352
1370
  }
@@ -1416,12 +1434,6 @@ body.is-dragging-components-draggable {
1416
1434
  width: auto;
1417
1435
  }
1418
1436
 
1419
- .components-form-token-field__help {
1420
- font-size: 12px;
1421
- font-style: normal;
1422
- color: #757575;
1423
- }
1424
-
1425
1437
  .components-form-token-field__token {
1426
1438
  font-size: 13px;
1427
1439
  display: flex;
@@ -653,6 +653,12 @@ svg.components-checkbox-control__indeterminate {
653
653
  display: flex;
654
654
  flex-wrap: wrap;
655
655
  gap: 12px;
656
+ position: relative;
657
+ z-index: 1;
658
+ }
659
+ .components-circular-option-picker > *:not(.components-circular-option-picker__swatches) {
660
+ position: relative;
661
+ z-index: 0;
656
662
  }
657
663
 
658
664
  .components-circular-option-picker__option-wrapper {
@@ -783,6 +789,7 @@ svg.components-checkbox-control__indeterminate {
783
789
  border-radius: 50%;
784
790
  display: inline-block;
785
791
  padding: 0;
792
+ background: #fff linear-gradient(-45deg, transparent 48%, #ddd 48%, #ddd 52%, transparent 52%);
786
793
  }
787
794
 
788
795
  .components-combobox-control {
@@ -868,23 +875,6 @@ input.components-combobox-control__input[type=text]:focus {
868
875
  padding: 0;
869
876
  }
870
877
 
871
- .components-color-list-picker,
872
- .components-color-list-picker__swatch-button {
873
- width: 100%;
874
- }
875
-
876
- .components-color-list-picker__color-picker {
877
- margin: 8px 0;
878
- }
879
-
880
- .components-color-list-picker__swatch-button {
881
- padding: 6px;
882
- }
883
-
884
- .components-color-list-picker__swatch-color {
885
- margin: 2px;
886
- }
887
-
888
878
  .components-color-palette__custom-color {
889
879
  position: relative;
890
880
  border: none;
@@ -924,14 +914,23 @@ input.components-combobox-control__input[type=text]:focus {
924
914
  margin-bottom: 24px;
925
915
  }
926
916
 
927
- .components-custom-gradient-picker__gradient-bar:not(.has-gradient) {
928
- opacity: 0.4;
929
- }
930
-
931
917
  .components-custom-gradient-picker__gradient-bar {
932
918
  border-radius: 2px;
933
919
  width: 100%;
934
920
  height: 48px;
921
+ position: relative;
922
+ z-index: 1;
923
+ }
924
+ .components-custom-gradient-picker__gradient-bar.has-gradient {
925
+ /*rtl:begin:ignore*/
926
+ background-image: repeating-linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0), repeating-linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0);
927
+ background-position: 0 0, 12px 12px;
928
+ /*rtl:end:ignore*/
929
+ background-size: calc(2 * 12px) calc(2 * 12px);
930
+ }
931
+ .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background {
932
+ position: absolute;
933
+ inset: 0;
935
934
  }
936
935
  .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container {
937
936
  position: relative;
@@ -1001,6 +1000,11 @@ input.components-combobox-control__input[type=text]:focus {
1001
1000
  border-radius: 2px;
1002
1001
  }
1003
1002
 
1003
+ .components-custom-gradient-picker__ui-line {
1004
+ position: relative;
1005
+ z-index: 0;
1006
+ }
1007
+
1004
1008
  .components-custom-select-control {
1005
1009
  position: relative;
1006
1010
  font-size: 13px;
@@ -1258,6 +1262,23 @@ body.is-dragging-components-draggable {
1258
1262
  color: transparent;
1259
1263
  }
1260
1264
 
1265
+ .components-color-list-picker,
1266
+ .components-color-list-picker__swatch-button {
1267
+ width: 100%;
1268
+ }
1269
+
1270
+ .components-color-list-picker__color-picker {
1271
+ margin: 8px 0;
1272
+ }
1273
+
1274
+ .components-color-list-picker__swatch-button {
1275
+ padding: 6px;
1276
+ }
1277
+
1278
+ .components-color-list-picker__swatch-color {
1279
+ margin: 2px;
1280
+ }
1281
+
1261
1282
  .components-form-toggle {
1262
1283
  position: relative;
1263
1284
  display: inline-block;
@@ -1349,7 +1370,6 @@ body.is-dragging-components-draggable {
1349
1370
  /* Override core line-height. To be reviewed. */
1350
1371
  line-height: normal;
1351
1372
  width: 100%;
1352
- margin: 0 0 8px 0;
1353
1373
  padding: 0;
1354
1374
  cursor: text;
1355
1375
  }
@@ -1419,12 +1439,6 @@ body.is-dragging-components-draggable {
1419
1439
  width: auto;
1420
1440
  }
1421
1441
 
1422
- .components-form-token-field__help {
1423
- font-size: 12px;
1424
- font-style: normal;
1425
- color: #757575;
1426
- }
1427
-
1428
1442
  .components-form-token-field__token {
1429
1443
  font-size: 13px;
1430
1444
  display: flex;
@@ -1 +1 @@
1
- {"version":3,"file":"angle-circle.d.ts","sourceRoot":"","sources":["../../src/angle-picker-control/angle-circle.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAQhD,iBAAS,WAAW,CAAE,EACrB,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,uBAAuB,CAAE,gBAAgB,EAAE,KAAK,CAAE,eA+EpD;AAmBD,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"angle-circle.d.ts","sourceRoot":"","sources":["../../src/angle-picker-control/angle-circle.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAQhD,iBAAS,WAAW,CAAE,EACrB,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,uBAAuB,CAAE,gBAAgB,EAAE,KAAK,CAAE,eA8EpD;AAmBD,eAAe,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/angle-picker-control/index.tsx"],"names":[],"mappings":";AA0BA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAyFvD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,kBAAkB;;uCAA8C,CAAC;AAE9E,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/angle-picker-control/index.tsx"],"names":[],"mappings":";AAuBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AA+EvD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,kBAAkB;;uCAA8C,CAAC;AAE9E,eAAe,kBAAkB,CAAC"}
@@ -17,4 +17,9 @@ export declare const CircleIndicator: import("@emotion/styled").StyledComponent<
17
17
  theme?: import("@emotion/react").Theme | undefined;
18
18
  as?: import("react").ElementType<any> | undefined;
19
19
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
20
+ export declare const UnitText: import("@emotion/styled").StyledComponent<import("../../text/types").Props & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>>, "as" | keyof import("react").RefAttributes<any> | keyof import("../../text/types").Props> & {
21
+ as?: keyof JSX.IntrinsicElements | undefined;
22
+ } & {
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ }, {}, {}>;
20
25
  //# sourceMappingURL=angle-picker-control-styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"angle-picker-control-styles.d.ts","sourceRoot":"","sources":["../../../src/angle-picker-control/styles/angle-picker-control-styles.tsx"],"names":[],"mappings":";AAcA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAexD,eAAO,MAAM,IAAI;;;;qEAEhB,CAAC;AAEF,eAAO,MAAM,UAAU;;;yGAQtB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;yGASlC,CAAC;AAEF,eAAO,MAAM,eAAe;;;yGAc3B,CAAC"}
1
+ {"version":3,"file":"angle-picker-control-styles.d.ts","sourceRoot":"","sources":["../../../src/angle-picker-control/styles/angle-picker-control-styles.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAexD,eAAO,MAAM,IAAI;;;;qEAEhB,CAAC;AAEF,eAAO,MAAM,UAAU;;;yGAYtB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;yGASlC,CAAC;AAEF,eAAO,MAAM,eAAe;;;yGAW3B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;UAGpB,CAAC"}
@@ -1,26 +1,31 @@
1
+ /// <reference types="react" />
1
2
  /**
2
- * @param {GetAnimateOptions} options
3
+ * Internal dependencies
4
+ */
5
+ import type { AnimateProps, GetAnimateOptions } from './types';
6
+ /**
7
+ * @param options
8
+ *
9
+ * @return ClassName that applies the animations
10
+ */
11
+ export declare function getAnimateClassName(options: GetAnimateOptions): string | undefined;
12
+ /**
13
+ * Simple interface to introduce animations to components.
14
+ *
15
+ * ```jsx
16
+ * import { Animate, Notice } from '@wordpress/components';
3
17
  *
4
- * @return {string | undefined} ClassName that applies the animations
18
+ * const MyAnimatedNotice = () => (
19
+ * <Animate type="slide-in" options={ { origin: 'top' } }>
20
+ * { ( { className } ) => (
21
+ * <Notice className={ className } status="success">
22
+ * <p>Animation finished.</p>
23
+ * </Notice>
24
+ * ) }
25
+ * </Animate>
26
+ * );
27
+ * ```
5
28
  */
6
- export function getAnimateClassName(options: GetAnimateOptions): string | undefined;
7
- export default function Animate({ type, options, children }: {
8
- type: any;
9
- options?: {} | undefined;
10
- children: any;
11
- }): any;
12
- export type AppearOrigin = 'top' | 'top left' | 'top right' | 'middle' | 'middle left' | 'middle right' | 'bottom' | 'bottom left' | 'bottom right';
13
- export type SlideInOrigin = 'left' | 'right';
14
- export type AppearOptions = {
15
- type: 'appear';
16
- origin?: AppearOrigin;
17
- };
18
- export type SlideInOptions = {
19
- type: 'slide-in';
20
- origin?: SlideInOrigin;
21
- };
22
- export type LoadingOptions = {
23
- type: 'loading';
24
- };
25
- export type GetAnimateOptions = AppearOptions | SlideInOptions | LoadingOptions;
29
+ export declare function Animate({ type, options, children }: AnimateProps): JSX.Element;
30
+ export default Animate;
26
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/animate/index.js"],"names":[],"mappings":"AAwBA;;;;GAIG;AACH,6CAJW,iBAAiB,GAEhB,MAAM,GAAG,SAAS,CAyB7B;AAGD;;;;QAIC;2BArDY,KAAK,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,aAAa,GAAG,cAAc,GAAG,QAAQ,GAAG,aAAa,GAAG,cAAc;4BACxH,MAAM,GAAG,OAAO;4BAChB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,CAAC,EAAE,YAAY,CAAA;CAAE;6BACzC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,MAAM,CAAC,EAAE,aAAa,CAAA;CAAE;6BAC5C;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE;gCACnB,aAAa,GAAG,cAAc,GAAG,cAAc"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/animate/index.tsx"],"names":[],"mappings":";AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAU/D;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAE,OAAO,EAAE,iBAAiB,sBAuB9D;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,OAAO,CAAE,EAAE,IAAI,EAAE,OAAY,EAAE,QAAQ,EAAE,EAAE,YAAY,eAOtE;AAED,eAAe,OAAO,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 { Animate } from '..';
9
+ declare const meta: ComponentMeta<typeof Animate>;
10
+ export default meta;
11
+ export declare const Default: ComponentStory<typeof Animate>;
12
+ export declare const AppearTopLeft: ComponentStory<typeof Animate>;
13
+ export declare const AppearTopRight: ComponentStory<typeof Animate>;
14
+ export declare const AppearBottomLeft: ComponentStory<typeof Animate>;
15
+ export declare const AppearBottomRight: ComponentStory<typeof Animate>;
16
+ export declare const Loading: ComponentStory<typeof Animate>;
17
+ export declare const SlideIn: ComponentStory<typeof Animate>;
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/animate/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEtE;;GAEG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAG7B,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,OAAO,CAOxC,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,OAAO,CAAwB,CAAC;AAS7E,eAAO,MAAM,aAAa,EAAE,cAAc,CAAE,OAAO,OAAO,CAEzD,CAAC;AAUF,eAAO,MAAM,cAAc,EAAE,cAAc,CAAE,OAAO,OAAO,CAE1D,CAAC;AAUF,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAAE,OAAO,OAAO,CAE5D,CAAC;AAUF,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAE,OAAO,OAAO,CAC1C,CAAC;AAWrB,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,OAAO,CAAwB,CAAC;AAU7E,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,OAAO,CAAwB,CAAC"}
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ export type AppearOptions = {
3
+ type: 'appear';
4
+ origin?: 'top' | 'top left' | 'top right' | 'middle' | 'middle left' | 'middle right' | 'bottom' | 'bottom left' | 'bottom right';
5
+ };
6
+ type SlideInOptions = {
7
+ type: 'slide-in';
8
+ origin?: 'left' | 'right';
9
+ };
10
+ type LoadingOptions = {
11
+ type: 'loading';
12
+ origin?: never;
13
+ };
14
+ type NoAnimationOptions = {
15
+ type?: never;
16
+ origin?: never;
17
+ };
18
+ export type GetAnimateOptions = AppearOptions | SlideInOptions | LoadingOptions | NoAnimationOptions;
19
+ type DistributiveTypeAndOptions<T extends {
20
+ type?: any;
21
+ }> = T extends any ? Pick<T, 'type'> & {
22
+ options?: Omit<T, 'type'>;
23
+ } : never;
24
+ export type AnimateProps = DistributiveTypeAndOptions<GetAnimateOptions> & {
25
+ children: (props: {
26
+ className?: string;
27
+ }) => JSX.Element;
28
+ };
29
+ export {};
30
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/animate/types.ts"],"names":[],"mappings":";AAAA,MAAM,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,CAAC,EACJ,KAAK,GACL,UAAU,GACV,WAAW,GACX,QAAQ,GACR,aAAa,GACb,cAAc,GACd,QAAQ,GACR,aAAa,GACb,cAAc,CAAC;CAClB,CAAC;AACF,KAAK,cAAc,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AACtE,KAAK,cAAc,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAC1D,KAAK,kBAAkB,GAAG;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC;IAAC,MAAM,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAE3D,MAAM,MAAM,iBAAiB,GAC1B,aAAa,GACb,cAAc,GACd,cAAc,GACd,kBAAkB,CAAC;AAItB,KAAK,0BAA0B,CAAE,CAAC,SAAS;IAAE,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,IAAK,CAAC,SAAS,GAAG,GACxE,IAAI,CAAE,CAAC,EAAE,MAAM,CAAE,GAAG;IAAE,OAAO,CAAC,EAAE,IAAI,CAAE,CAAC,EAAE,MAAM,CAAE,CAAA;CAAE,GACnD,KAAK,CAAC;AAET,MAAM,MAAM,YAAY,GAAG,0BAA0B,CAAE,iBAAiB,CAAE,GAAG;IAC5E,QAAQ,EAAE,CAAE,KAAK,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,KAAM,GAAG,CAAC,OAAO,CAAC;CAC3D,CAAC"}
@@ -1,14 +1,4 @@
1
1
  /// <reference types="react" />
2
- /**
3
- * External dependencies
4
- */
5
- import type { Colord } from 'colord';
6
- interface ColorInputProps {
7
- colorType: 'hsl' | 'hex' | 'rgb';
8
- color: Colord;
9
- onChange: (nextColor: Colord) => void;
10
- enableAlpha: boolean;
11
- }
2
+ import type { ColorInputProps } from './types';
12
3
  export declare const ColorInput: ({ colorType, color, onChange, enableAlpha, }: ColorInputProps) => JSX.Element;
13
- export {};
14
4
  //# sourceMappingURL=color-input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"color-input.d.ts","sourceRoot":"","sources":["../../src/color-picker/color-input.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AASrC,UAAU,eAAe;IACxB,SAAS,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAE,SAAS,EAAE,MAAM,KAAM,IAAI,CAAC;IACxC,WAAW,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,iDAKpB,eAAe,gBAWjB,CAAC"}
1
+ {"version":3,"file":"color-input.d.ts","sourceRoot":"","sources":["../../src/color-picker/color-input.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,eAAO,MAAM,UAAU,iDAKpB,eAAe,gBAWjB,CAAC"}
@@ -1,12 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import type { ColorType } from './types';
3
- export interface ColorPickerProps {
4
- enableAlpha?: boolean;
5
- color?: string;
6
- onChange?: (color: string) => void;
7
- defaultValue?: string;
8
- copyFormat?: ColorType;
9
- }
10
- declare const ConnectedColorPicker: import("../ui/context").WordPressComponent<"div", ColorPickerProps & import("react").RefAttributes<any>, false>;
11
- export default ConnectedColorPicker;
3
+ export declare const ColorPicker: import("../ui/context").WordPressComponent<import("react").ElementType<any>, {
4
+ enableAlpha?: boolean | undefined;
5
+ color?: string | undefined;
6
+ onChange?: ((color: string) => void) | undefined;
7
+ defaultValue?: string | undefined;
8
+ copyFormat?: ColorType | undefined;
9
+ } & 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>;
10
+ export default ColorPicker;
12
11
  //# sourceMappingURL=component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/color-picker/component.tsx"],"names":[],"mappings":";AAkCA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIzC,MAAM,WAAW,gBAAgB;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,SAAS,CAAC;CACvB;AAkFD,QAAA,MAAM,oBAAoB,iHAA+C,CAAC;AAE1E,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/color-picker/component.tsx"],"names":[],"mappings":";AA8BA,OAAO,KAAK,EAAoB,SAAS,EAAE,MAAM,SAAS,CAAC;AAoF3D,eAAO,MAAM,WAAW;;;;;;wTAGvB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,13 +1,4 @@
1
1
  /// <reference types="react" />
2
- /**
3
- * External dependencies
4
- */
5
- import { Colord } from 'colord';
6
- interface HexInputProps {
7
- color: Colord;
8
- onChange: (nextColor: Colord) => void;
9
- enableAlpha: boolean;
10
- }
2
+ import type { HexInputProps } from './types';
11
3
  export declare const HexInput: ({ color, onChange, enableAlpha }: HexInputProps) => JSX.Element;
12
- export {};
13
4
  //# sourceMappingURL=hex-input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hex-input.d.ts","sourceRoot":"","sources":["../../src/color-picker/hex-input.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAC;AAiBxC,UAAU,aAAa;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAE,SAAS,EAAE,MAAM,KAAM,IAAI,CAAC;IACxC,WAAW,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,QAAQ,qCAAuC,aAAa,gBA8CxE,CAAC"}
1
+ {"version":3,"file":"hex-input.d.ts","sourceRoot":"","sources":["../../src/color-picker/hex-input.tsx"],"names":[],"mappings":";AAmBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,QAAQ,qCAAuC,aAAa,gBA8CxE,CAAC"}
@@ -1,13 +1,4 @@
1
1
  /// <reference types="react" />
2
- /**
3
- * External dependencies
4
- */
5
- import { Colord } from 'colord';
6
- interface HslInputProps {
7
- color: Colord;
8
- onChange: (nextColor: Colord) => void;
9
- enableAlpha: boolean;
10
- }
2
+ import type { HslInputProps } from './types';
11
3
  export declare const HslInput: ({ color, onChange, enableAlpha }: HslInputProps) => JSX.Element;
12
- export {};
13
4
  //# sourceMappingURL=hsl-input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hsl-input.d.ts","sourceRoot":"","sources":["../../src/color-picker/hsl-input.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAC;AAOxC,UAAU,aAAa;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAE,SAAS,EAAE,MAAM,KAAM,IAAI,CAAC;IACxC,WAAW,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,QAAQ,qCAAuC,aAAa,gBAsExE,CAAC"}
1
+ {"version":3,"file":"hsl-input.d.ts","sourceRoot":"","sources":["../../src/color-picker/hsl-input.tsx"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,QAAQ,qCAAuC,aAAa,gBAsExE,CAAC"}
@@ -1,12 +1,4 @@
1
1
  /// <reference types="react" />
2
- interface InputWithSliderProps {
3
- min: number;
4
- max: number;
5
- value: number;
6
- label: string;
7
- abbreviation: string;
8
- onChange: (value: number) => void;
9
- }
2
+ import type { InputWithSliderProps } from './types';
10
3
  export declare const InputWithSlider: ({ min, max, label, abbreviation, onChange, value, }: InputWithSliderProps) => JSX.Element;
11
- export {};
12
4
  //# sourceMappingURL=input-with-slider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-with-slider.d.ts","sourceRoot":"","sources":["../../src/color-picker/input-with-slider.tsx"],"names":[],"mappings":";AAUA,UAAU,oBAAoB;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,eAAe,wDAOzB,oBAAoB,gBAiDtB,CAAC"}
1
+ {"version":3,"file":"input-with-slider.d.ts","sourceRoot":"","sources":["../../src/color-picker/input-with-slider.tsx"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,eAAO,MAAM,eAAe,wDAOzB,oBAAoB,gBAiDtB,CAAC"}
@@ -1,6 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { useDeprecatedProps } from './use-deprecated-props';
3
- type LegacyAdapterProps = Parameters<typeof useDeprecatedProps>[0];
2
+ import type { LegacyAdapterProps } from './types';
4
3
  export declare const LegacyAdapter: (props: LegacyAdapterProps) => JSX.Element;
5
- export {};
6
4
  //# sourceMappingURL=legacy-adapter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"legacy-adapter.d.ts","sourceRoot":"","sources":["../../src/color-picker/legacy-adapter.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,KAAK,kBAAkB,GAAG,UAAU,CAAE,OAAO,kBAAkB,CAAE,CAAE,CAAC,CAAE,CAAC;AAEvE,eAAO,MAAM,aAAa,UAAY,kBAAkB,gBAEvD,CAAC"}
1
+ {"version":3,"file":"legacy-adapter.d.ts","sourceRoot":"","sources":["../../src/color-picker/legacy-adapter.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGlD,eAAO,MAAM,aAAa,UAAY,kBAAkB,gBAEvD,CAAC"}
@@ -1,10 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { Colord } from 'colord';
3
- interface PickerProps {
4
- color: Colord;
5
- enableAlpha: boolean;
6
- onChange: (nextColor: Colord) => void;
7
- }
2
+ /**
3
+ * Internal dependencies
4
+ */
5
+ import type { PickerProps } from './types';
8
6
  export declare const Picker: ({ color, enableAlpha, onChange }: PickerProps) => JSX.Element;
9
- export {};
10
7
  //# sourceMappingURL=picker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"picker.d.ts","sourceRoot":"","sources":["../../src/color-picker/picker.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAC;AAMxC,UAAU,WAAW;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAE,SAAS,EAAE,MAAM,KAAM,IAAI,CAAC;CACxC;AAED,eAAO,MAAM,MAAM,qCAAuC,WAAW,gBAcpE,CAAC"}
1
+ {"version":3,"file":"picker.d.ts","sourceRoot":"","sources":["../../src/color-picker/picker.tsx"],"names":[],"mappings":";AAUA;;GAEG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,MAAM,qCAAuC,WAAW,gBAcpE,CAAC"}
@@ -1,13 +1,4 @@
1
1
  /// <reference types="react" />
2
- /**
3
- * External dependencies
4
- */
5
- import { Colord } from 'colord';
6
- interface RgbInputProps {
7
- color: Colord;
8
- onChange: (nextColor: Colord) => void;
9
- enableAlpha: boolean;
10
- }
2
+ import type { RgbInputProps } from './types';
11
3
  export declare const RgbInput: ({ color, onChange, enableAlpha }: RgbInputProps) => JSX.Element;
12
- export {};
13
4
  //# sourceMappingURL=rgb-input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rgb-input.d.ts","sourceRoot":"","sources":["../../src/color-picker/rgb-input.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAC;AAOxC,UAAU,aAAa;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAE,SAAS,EAAE,MAAM,KAAM,IAAI,CAAC;IACxC,WAAW,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,QAAQ,qCAAuC,aAAa,gBAwDxE,CAAC"}
1
+ {"version":3,"file":"rgb-input.d.ts","sourceRoot":"","sources":["../../src/color-picker/rgb-input.tsx"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,QAAQ,qCAAuC,aAAa,gBAwDxE,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":""}