@wordpress/block-library 9.23.0 → 9.24.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 (422) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/code/index.js +2 -1
  3. package/build/code/index.js.map +1 -1
  4. package/build/details/index.js +2 -1
  5. package/build/details/index.js.map +1 -1
  6. package/build/html/index.js +2 -1
  7. package/build/html/index.js.map +1 -1
  8. package/build/image/constants.js +2 -1
  9. package/build/image/constants.js.map +1 -1
  10. package/build/image/edit.js +1 -1
  11. package/build/image/edit.js.map +1 -1
  12. package/build/image/image.js +1 -4
  13. package/build/image/image.js.map +1 -1
  14. package/build/more/index.js +2 -1
  15. package/build/more/index.js.map +1 -1
  16. package/build/post-excerpt/edit.js +3 -1
  17. package/build/post-excerpt/edit.js.map +1 -1
  18. package/build/post-excerpt/index.js +2 -1
  19. package/build/post-excerpt/index.js.map +1 -1
  20. package/build/post-navigation-link/edit.js +3 -1
  21. package/build/post-navigation-link/edit.js.map +1 -1
  22. package/build/post-navigation-link/index.js +2 -1
  23. package/build/post-navigation-link/index.js.map +1 -1
  24. package/build/post-navigation-link/variations.js +13 -13
  25. package/build/post-navigation-link/variations.js.map +1 -1
  26. package/build/post-template/edit.js +5 -3
  27. package/build/post-template/edit.js.map +1 -1
  28. package/build/post-terms/edit.js +3 -1
  29. package/build/post-terms/edit.js.map +1 -1
  30. package/build/post-terms/index.js +4 -2
  31. package/build/post-terms/index.js.map +1 -1
  32. package/build/preformatted/transforms.js +5 -1
  33. package/build/preformatted/transforms.js.map +1 -1
  34. package/build/read-more/index.js +2 -1
  35. package/build/read-more/index.js.map +1 -1
  36. package/build/rss/index.js +2 -1
  37. package/build/rss/index.js.map +1 -1
  38. package/build/search/edit.js +76 -86
  39. package/build/search/edit.js.map +1 -1
  40. package/build/table/edit.js +3 -2
  41. package/build/table/edit.js.map +1 -1
  42. package/build/table/index.js +8 -4
  43. package/build/table/index.js.map +1 -1
  44. package/build-module/code/index.js +2 -1
  45. package/build-module/code/index.js.map +1 -1
  46. package/build-module/details/index.js +2 -1
  47. package/build-module/details/index.js.map +1 -1
  48. package/build-module/html/index.js +2 -1
  49. package/build-module/html/index.js.map +1 -1
  50. package/build-module/image/constants.js +1 -0
  51. package/build-module/image/constants.js.map +1 -1
  52. package/build-module/image/edit.js +2 -2
  53. package/build-module/image/edit.js.map +1 -1
  54. package/build-module/image/image.js +2 -5
  55. package/build-module/image/image.js.map +1 -1
  56. package/build-module/more/index.js +2 -1
  57. package/build-module/more/index.js.map +1 -1
  58. package/build-module/post-excerpt/edit.js +4 -2
  59. package/build-module/post-excerpt/edit.js.map +1 -1
  60. package/build-module/post-excerpt/index.js +2 -1
  61. package/build-module/post-excerpt/index.js.map +1 -1
  62. package/build-module/post-navigation-link/edit.js +4 -2
  63. package/build-module/post-navigation-link/edit.js.map +1 -1
  64. package/build-module/post-navigation-link/index.js +2 -1
  65. package/build-module/post-navigation-link/index.js.map +1 -1
  66. package/build-module/post-navigation-link/variations.js +13 -13
  67. package/build-module/post-navigation-link/variations.js.map +1 -1
  68. package/build-module/post-template/edit.js +5 -3
  69. package/build-module/post-template/edit.js.map +1 -1
  70. package/build-module/post-terms/edit.js +4 -2
  71. package/build-module/post-terms/edit.js.map +1 -1
  72. package/build-module/post-terms/index.js +4 -2
  73. package/build-module/post-terms/index.js.map +1 -1
  74. package/build-module/preformatted/transforms.js +5 -1
  75. package/build-module/preformatted/transforms.js.map +1 -1
  76. package/build-module/read-more/index.js +2 -1
  77. package/build-module/read-more/index.js.map +1 -1
  78. package/build-module/rss/index.js +2 -1
  79. package/build-module/rss/index.js.map +1 -1
  80. package/build-module/search/edit.js +78 -88
  81. package/build-module/search/edit.js.map +1 -1
  82. package/build-module/table/edit.js +4 -3
  83. package/build-module/table/edit.js.map +1 -1
  84. package/build-module/table/index.js +8 -4
  85. package/build-module/table/index.js.map +1 -1
  86. package/build-style/archives/editor-rtl.css +47 -11
  87. package/build-style/archives/editor.css +47 -11
  88. package/build-style/archives/style-rtl.css +47 -11
  89. package/build-style/archives/style.css +47 -11
  90. package/build-style/audio/editor-rtl.css +47 -11
  91. package/build-style/audio/editor.css +47 -11
  92. package/build-style/audio/style-rtl.css +47 -11
  93. package/build-style/audio/style.css +47 -11
  94. package/build-style/audio/theme-rtl.css +47 -11
  95. package/build-style/audio/theme.css +47 -11
  96. package/build-style/avatar/editor-rtl.css +47 -11
  97. package/build-style/avatar/editor.css +47 -11
  98. package/build-style/avatar/style-rtl.css +47 -11
  99. package/build-style/avatar/style.css +47 -11
  100. package/build-style/button/editor-rtl.css +47 -11
  101. package/build-style/button/editor.css +47 -11
  102. package/build-style/button/style-rtl.css +47 -12
  103. package/build-style/button/style.css +47 -12
  104. package/build-style/buttons/editor-rtl.css +47 -11
  105. package/build-style/buttons/editor.css +47 -11
  106. package/build-style/buttons/style-rtl.css +50 -11
  107. package/build-style/buttons/style.css +50 -11
  108. package/build-style/calendar/style-rtl.css +47 -11
  109. package/build-style/calendar/style.css +47 -11
  110. package/build-style/categories/editor-rtl.css +47 -11
  111. package/build-style/categories/editor.css +47 -11
  112. package/build-style/categories/style-rtl.css +47 -11
  113. package/build-style/categories/style.css +47 -11
  114. package/build-style/classic-rtl.css +47 -11
  115. package/build-style/classic.css +47 -11
  116. package/build-style/code/editor-rtl.css +47 -11
  117. package/build-style/code/editor.css +47 -11
  118. package/build-style/code/style-rtl.css +47 -11
  119. package/build-style/code/style.css +47 -11
  120. package/build-style/code/theme-rtl.css +47 -11
  121. package/build-style/code/theme.css +47 -11
  122. package/build-style/columns/editor-rtl.css +47 -11
  123. package/build-style/columns/editor.css +47 -11
  124. package/build-style/columns/style-rtl.css +47 -11
  125. package/build-style/columns/style.css +47 -11
  126. package/build-style/comment-author-avatar/editor-rtl.css +47 -11
  127. package/build-style/comment-author-avatar/editor.css +47 -11
  128. package/build-style/comment-author-name/style-rtl.css +47 -11
  129. package/build-style/comment-author-name/style.css +47 -11
  130. package/build-style/comment-content/style-rtl.css +47 -11
  131. package/build-style/comment-content/style.css +47 -11
  132. package/build-style/comment-date/style-rtl.css +47 -11
  133. package/build-style/comment-date/style.css +47 -11
  134. package/build-style/comment-edit-link/style-rtl.css +47 -11
  135. package/build-style/comment-edit-link/style.css +47 -11
  136. package/build-style/comment-reply-link/style-rtl.css +47 -11
  137. package/build-style/comment-reply-link/style.css +47 -11
  138. package/build-style/comment-template/style-rtl.css +47 -11
  139. package/build-style/comment-template/style.css +47 -11
  140. package/build-style/comments/editor-rtl.css +47 -11
  141. package/build-style/comments/editor.css +47 -11
  142. package/build-style/comments/style-rtl.css +47 -11
  143. package/build-style/comments/style.css +47 -11
  144. package/build-style/comments-pagination/editor-rtl.css +47 -11
  145. package/build-style/comments-pagination/editor.css +47 -11
  146. package/build-style/comments-pagination/style-rtl.css +47 -11
  147. package/build-style/comments-pagination/style.css +47 -11
  148. package/build-style/comments-pagination-numbers/editor-rtl.css +47 -11
  149. package/build-style/comments-pagination-numbers/editor.css +47 -11
  150. package/build-style/comments-title/editor-rtl.css +47 -11
  151. package/build-style/comments-title/editor.css +47 -11
  152. package/build-style/common-rtl.css +130 -9
  153. package/build-style/common.css +130 -9
  154. package/build-style/cover/editor-rtl.css +47 -11
  155. package/build-style/cover/editor.css +47 -11
  156. package/build-style/cover/style-rtl.css +47 -11
  157. package/build-style/cover/style.css +47 -11
  158. package/build-style/details/editor-rtl.css +47 -11
  159. package/build-style/details/editor.css +47 -11
  160. package/build-style/details/style-rtl.css +47 -11
  161. package/build-style/details/style.css +47 -11
  162. package/build-style/editor-elements-rtl.css +47 -11
  163. package/build-style/editor-elements.css +47 -11
  164. package/build-style/editor-rtl.css +48 -11
  165. package/build-style/editor.css +48 -11
  166. package/build-style/elements-rtl.css +47 -11
  167. package/build-style/elements.css +47 -11
  168. package/build-style/embed/editor-rtl.css +47 -11
  169. package/build-style/embed/editor.css +47 -11
  170. package/build-style/embed/style-rtl.css +47 -11
  171. package/build-style/embed/style.css +47 -11
  172. package/build-style/embed/theme-rtl.css +47 -11
  173. package/build-style/embed/theme.css +47 -11
  174. package/build-style/file/editor-rtl.css +47 -11
  175. package/build-style/file/editor.css +47 -11
  176. package/build-style/file/style-rtl.css +47 -11
  177. package/build-style/file/style.css +47 -11
  178. package/build-style/footnotes/style-rtl.css +47 -11
  179. package/build-style/footnotes/style.css +47 -11
  180. package/build-style/form-input/editor-rtl.css +47 -11
  181. package/build-style/form-input/editor.css +47 -11
  182. package/build-style/form-input/style-rtl.css +47 -11
  183. package/build-style/form-input/style.css +47 -11
  184. package/build-style/form-submission-notification/editor-rtl.css +47 -11
  185. package/build-style/form-submission-notification/editor.css +47 -11
  186. package/build-style/form-submit-button/style-rtl.css +47 -11
  187. package/build-style/form-submit-button/style.css +47 -11
  188. package/build-style/freeform/editor-rtl.css +47 -11
  189. package/build-style/freeform/editor.css +47 -11
  190. package/build-style/gallery/editor-rtl.css +47 -11
  191. package/build-style/gallery/editor.css +47 -11
  192. package/build-style/gallery/style-rtl.css +47 -11
  193. package/build-style/gallery/style.css +47 -11
  194. package/build-style/gallery/theme-rtl.css +47 -11
  195. package/build-style/gallery/theme.css +47 -11
  196. package/build-style/group/editor-rtl.css +47 -11
  197. package/build-style/group/editor.css +47 -11
  198. package/build-style/group/style-rtl.css +47 -11
  199. package/build-style/group/style.css +47 -11
  200. package/build-style/group/theme-rtl.css +47 -11
  201. package/build-style/group/theme.css +47 -11
  202. package/build-style/heading/style-rtl.css +47 -11
  203. package/build-style/heading/style.css +47 -11
  204. package/build-style/html/editor-rtl.css +48 -11
  205. package/build-style/html/editor.css +48 -11
  206. package/build-style/image/editor-rtl.css +47 -11
  207. package/build-style/image/editor.css +47 -11
  208. package/build-style/image/style-rtl.css +47 -11
  209. package/build-style/image/style.css +47 -11
  210. package/build-style/image/theme-rtl.css +47 -11
  211. package/build-style/image/theme.css +47 -11
  212. package/build-style/latest-comments/style-rtl.css +47 -11
  213. package/build-style/latest-comments/style.css +47 -11
  214. package/build-style/latest-posts/editor-rtl.css +47 -11
  215. package/build-style/latest-posts/editor.css +47 -11
  216. package/build-style/latest-posts/style-rtl.css +47 -11
  217. package/build-style/latest-posts/style.css +47 -11
  218. package/build-style/list/style-rtl.css +47 -11
  219. package/build-style/list/style.css +47 -11
  220. package/build-style/loginout/style-rtl.css +47 -11
  221. package/build-style/loginout/style.css +47 -11
  222. package/build-style/media-text/editor-rtl.css +47 -11
  223. package/build-style/media-text/editor.css +47 -11
  224. package/build-style/media-text/style-rtl.css +47 -11
  225. package/build-style/media-text/style.css +47 -11
  226. package/build-style/more/editor-rtl.css +47 -11
  227. package/build-style/more/editor.css +47 -11
  228. package/build-style/navigation/editor-rtl.css +47 -11
  229. package/build-style/navigation/editor.css +47 -11
  230. package/build-style/navigation/style-rtl.css +47 -11
  231. package/build-style/navigation/style.css +47 -11
  232. package/build-style/navigation-link/editor-rtl.css +47 -11
  233. package/build-style/navigation-link/editor.css +47 -11
  234. package/build-style/navigation-link/style-rtl.css +47 -11
  235. package/build-style/navigation-link/style.css +47 -11
  236. package/build-style/navigation-submenu/editor-rtl.css +47 -11
  237. package/build-style/navigation-submenu/editor.css +47 -11
  238. package/build-style/nextpage/editor-rtl.css +47 -11
  239. package/build-style/nextpage/editor.css +47 -11
  240. package/build-style/page-list/editor-rtl.css +47 -11
  241. package/build-style/page-list/editor.css +47 -11
  242. package/build-style/page-list/style-rtl.css +47 -11
  243. package/build-style/page-list/style.css +47 -11
  244. package/build-style/paragraph/editor-rtl.css +47 -11
  245. package/build-style/paragraph/editor.css +47 -11
  246. package/build-style/paragraph/style-rtl.css +47 -11
  247. package/build-style/paragraph/style.css +47 -11
  248. package/build-style/post-author/editor-rtl.css +47 -11
  249. package/build-style/post-author/editor.css +47 -11
  250. package/build-style/post-author/style-rtl.css +47 -11
  251. package/build-style/post-author/style.css +47 -11
  252. package/build-style/post-author-biography/style-rtl.css +47 -11
  253. package/build-style/post-author-biography/style.css +47 -11
  254. package/build-style/post-author-name/style-rtl.css +47 -11
  255. package/build-style/post-author-name/style.css +47 -11
  256. package/build-style/post-comments-count/style-rtl.css +47 -11
  257. package/build-style/post-comments-count/style.css +47 -11
  258. package/build-style/post-comments-form/editor-rtl.css +47 -11
  259. package/build-style/post-comments-form/editor.css +47 -11
  260. package/build-style/post-comments-form/style-rtl.css +47 -14
  261. package/build-style/post-comments-form/style.css +47 -14
  262. package/build-style/post-comments-link/style-rtl.css +47 -11
  263. package/build-style/post-comments-link/style.css +47 -11
  264. package/build-style/post-content/style-rtl.css +47 -11
  265. package/build-style/post-content/style.css +47 -11
  266. package/build-style/post-date/style-rtl.css +47 -11
  267. package/build-style/post-date/style.css +47 -11
  268. package/build-style/post-excerpt/editor-rtl.css +47 -11
  269. package/build-style/post-excerpt/editor.css +47 -11
  270. package/build-style/post-excerpt/style-rtl.css +47 -11
  271. package/build-style/post-excerpt/style.css +47 -11
  272. package/build-style/post-featured-image/editor-rtl.css +47 -11
  273. package/build-style/post-featured-image/editor.css +47 -11
  274. package/build-style/post-featured-image/style-rtl.css +47 -11
  275. package/build-style/post-featured-image/style.css +47 -11
  276. package/build-style/post-navigation-link/style-rtl.css +47 -11
  277. package/build-style/post-navigation-link/style.css +47 -11
  278. package/build-style/post-template/style-rtl.css +47 -11
  279. package/build-style/post-template/style.css +47 -11
  280. package/build-style/post-terms/style-rtl.css +47 -11
  281. package/build-style/post-terms/style.css +47 -11
  282. package/build-style/post-time-to-read/style-rtl.css +47 -11
  283. package/build-style/post-time-to-read/style.css +47 -11
  284. package/build-style/post-title/style-rtl.css +47 -11
  285. package/build-style/post-title/style.css +47 -11
  286. package/build-style/preformatted/style-rtl.css +47 -11
  287. package/build-style/preformatted/style.css +47 -11
  288. package/build-style/pullquote/editor-rtl.css +47 -11
  289. package/build-style/pullquote/editor.css +47 -11
  290. package/build-style/pullquote/style-rtl.css +47 -11
  291. package/build-style/pullquote/style.css +47 -11
  292. package/build-style/pullquote/theme-rtl.css +47 -11
  293. package/build-style/pullquote/theme.css +47 -11
  294. package/build-style/query/editor-rtl.css +47 -11
  295. package/build-style/query/editor.css +47 -11
  296. package/build-style/query-pagination/editor-rtl.css +47 -11
  297. package/build-style/query-pagination/editor.css +47 -11
  298. package/build-style/query-pagination/style-rtl.css +47 -11
  299. package/build-style/query-pagination/style.css +47 -11
  300. package/build-style/query-pagination-numbers/editor-rtl.css +47 -11
  301. package/build-style/query-pagination-numbers/editor.css +47 -11
  302. package/build-style/query-title/style-rtl.css +47 -11
  303. package/build-style/query-title/style.css +47 -11
  304. package/build-style/query-total/style-rtl.css +47 -11
  305. package/build-style/query-total/style.css +47 -11
  306. package/build-style/quote/style-rtl.css +47 -11
  307. package/build-style/quote/style.css +47 -11
  308. package/build-style/quote/theme-rtl.css +47 -11
  309. package/build-style/quote/theme.css +47 -11
  310. package/build-style/read-more/style-rtl.css +47 -11
  311. package/build-style/read-more/style.css +47 -11
  312. package/build-style/reset-rtl.css +47 -11
  313. package/build-style/reset.css +47 -11
  314. package/build-style/rss/editor-rtl.css +47 -11
  315. package/build-style/rss/editor.css +47 -11
  316. package/build-style/rss/style-rtl.css +47 -11
  317. package/build-style/rss/style.css +47 -11
  318. package/build-style/search/editor-rtl.css +47 -11
  319. package/build-style/search/editor.css +47 -11
  320. package/build-style/search/style-rtl.css +47 -11
  321. package/build-style/search/style.css +47 -11
  322. package/build-style/search/theme-rtl.css +47 -11
  323. package/build-style/search/theme.css +47 -11
  324. package/build-style/separator/editor-rtl.css +47 -11
  325. package/build-style/separator/editor.css +47 -11
  326. package/build-style/separator/style-rtl.css +47 -11
  327. package/build-style/separator/style.css +47 -11
  328. package/build-style/separator/theme-rtl.css +47 -11
  329. package/build-style/separator/theme.css +47 -11
  330. package/build-style/shortcode/editor-rtl.css +47 -11
  331. package/build-style/shortcode/editor.css +47 -11
  332. package/build-style/site-logo/editor-rtl.css +47 -11
  333. package/build-style/site-logo/editor.css +47 -11
  334. package/build-style/site-logo/style-rtl.css +47 -11
  335. package/build-style/site-logo/style.css +47 -11
  336. package/build-style/site-tagline/editor-rtl.css +47 -11
  337. package/build-style/site-tagline/editor.css +47 -11
  338. package/build-style/site-tagline/style-rtl.css +47 -11
  339. package/build-style/site-tagline/style.css +47 -11
  340. package/build-style/site-title/editor-rtl.css +47 -11
  341. package/build-style/site-title/editor.css +47 -11
  342. package/build-style/site-title/style-rtl.css +47 -11
  343. package/build-style/site-title/style.css +47 -11
  344. package/build-style/social-link/editor-rtl.css +47 -11
  345. package/build-style/social-link/editor.css +47 -11
  346. package/build-style/social-links/editor-rtl.css +47 -11
  347. package/build-style/social-links/editor.css +47 -11
  348. package/build-style/social-links/style-rtl.css +47 -11
  349. package/build-style/social-links/style.css +47 -11
  350. package/build-style/spacer/editor-rtl.css +47 -11
  351. package/build-style/spacer/editor.css +47 -11
  352. package/build-style/spacer/style-rtl.css +47 -11
  353. package/build-style/spacer/style.css +47 -11
  354. package/build-style/style-rtl.css +50 -15
  355. package/build-style/style.css +50 -15
  356. package/build-style/table/editor-rtl.css +47 -11
  357. package/build-style/table/editor.css +47 -11
  358. package/build-style/table/style-rtl.css +47 -11
  359. package/build-style/table/style.css +47 -11
  360. package/build-style/table/theme-rtl.css +47 -11
  361. package/build-style/table/theme.css +47 -11
  362. package/build-style/table-of-contents/style-rtl.css +47 -11
  363. package/build-style/table-of-contents/style.css +47 -11
  364. package/build-style/tag-cloud/editor-rtl.css +47 -11
  365. package/build-style/tag-cloud/editor.css +47 -11
  366. package/build-style/tag-cloud/style-rtl.css +47 -11
  367. package/build-style/tag-cloud/style.css +47 -11
  368. package/build-style/template-part/editor-rtl.css +47 -11
  369. package/build-style/template-part/editor.css +47 -11
  370. package/build-style/template-part/theme-rtl.css +47 -11
  371. package/build-style/template-part/theme.css +47 -11
  372. package/build-style/term-description/style-rtl.css +47 -11
  373. package/build-style/term-description/style.css +47 -11
  374. package/build-style/text-columns/editor-rtl.css +47 -11
  375. package/build-style/text-columns/editor.css +47 -11
  376. package/build-style/text-columns/style-rtl.css +47 -11
  377. package/build-style/text-columns/style.css +47 -11
  378. package/build-style/theme-rtl.css +47 -11
  379. package/build-style/theme.css +47 -11
  380. package/build-style/verse/style-rtl.css +47 -11
  381. package/build-style/verse/style.css +47 -11
  382. package/build-style/video/editor-rtl.css +47 -11
  383. package/build-style/video/editor.css +47 -11
  384. package/build-style/video/style-rtl.css +47 -11
  385. package/build-style/video/style.css +47 -11
  386. package/build-style/video/theme-rtl.css +47 -11
  387. package/build-style/video/theme.css +47 -11
  388. package/package.json +35 -35
  389. package/src/button/style.scss +0 -1
  390. package/src/buttons/style.scss +5 -0
  391. package/src/code/block.json +2 -1
  392. package/src/details/block.json +2 -1
  393. package/src/html/block.json +2 -1
  394. package/src/html/editor.scss +1 -0
  395. package/src/image/constants.js +1 -0
  396. package/src/image/edit.js +2 -1
  397. package/src/image/image.js +7 -5
  398. package/src/more/block.json +2 -1
  399. package/src/post-comments-form/style.scss +0 -5
  400. package/src/post-excerpt/block.json +2 -1
  401. package/src/post-excerpt/edit.js +13 -8
  402. package/src/post-navigation-link/block.json +2 -1
  403. package/src/post-navigation-link/edit.js +13 -8
  404. package/src/post-navigation-link/variations.js +13 -13
  405. package/src/post-template/edit.js +4 -3
  406. package/src/post-terms/block.json +4 -2
  407. package/src/post-terms/edit.js +13 -8
  408. package/src/preformatted/test/__snapshots__/transforms.native.js.snap +6 -0
  409. package/src/preformatted/test/transforms.native.js +6 -1
  410. package/src/preformatted/transforms.js +7 -1
  411. package/src/read-more/block.json +2 -1
  412. package/src/rss/block.json +2 -1
  413. package/src/search/edit.js +84 -99
  414. package/src/table/block.json +8 -4
  415. package/src/table/edit.js +6 -2
  416. package/src/verse/test/__snapshots__/transforms.native.js.snap +6 -0
  417. package/src/verse/test/transforms.native.js +5 -1
  418. package/build/search/icons.js +0 -121
  419. package/build/search/icons.js.map +0 -1
  420. package/build-module/search/icons.js +0 -114
  421. package/build-module/search/icons.js.map +0 -1
  422. package/src/search/icons.js +0 -89
@@ -8,7 +8,6 @@ import clsx from 'clsx';
8
8
  */
9
9
  import {
10
10
  useBlockProps,
11
- BlockControls,
12
11
  InspectorControls,
13
12
  RichText,
14
13
  __experimentalUseBorderProps as useBorderProps,
@@ -21,9 +20,8 @@ import {
21
20
  import { useDispatch, useSelect } from '@wordpress/data';
22
21
  import { useEffect, useRef } from '@wordpress/element';
23
22
  import {
24
- ToolbarDropdownMenu,
25
- ToolbarGroup,
26
- ToolbarButton,
23
+ SelectControl,
24
+ ToggleControl,
27
25
  ResizableBox,
28
26
  __experimentalUseCustomUnits as useCustomUnits,
29
27
  __experimentalUnitControl as UnitControl,
@@ -41,14 +39,6 @@ import { __unstableStripHTML as stripHTML } from '@wordpress/dom';
41
39
  /**
42
40
  * Internal dependencies
43
41
  */
44
- import {
45
- buttonOnly,
46
- buttonOutside,
47
- buttonInside,
48
- noButton,
49
- buttonWithIcon,
50
- toggleLabel,
51
- } from './icons';
52
42
  import {
53
43
  PC_WIDTH_DEFAULT,
54
44
  PX_WIDTH_DEFAULT,
@@ -201,68 +191,23 @@ export default function SearchEdit( {
201
191
 
202
192
  const buttonPositionControls = [
203
193
  {
204
- role: 'menuitemradio',
205
- title: __( 'Button outside' ),
206
- isActive: buttonPosition === 'button-outside',
207
- icon: buttonOutside,
208
- onClick: () => {
209
- setAttributes( {
210
- buttonPosition: 'button-outside',
211
- isSearchFieldHidden: false,
212
- } );
213
- },
194
+ label: __( 'Button outside' ),
195
+ value: 'button-outside',
214
196
  },
215
197
  {
216
- role: 'menuitemradio',
217
- title: __( 'Button inside' ),
218
- isActive: buttonPosition === 'button-inside',
219
- icon: buttonInside,
220
- onClick: () => {
221
- setAttributes( {
222
- buttonPosition: 'button-inside',
223
- isSearchFieldHidden: false,
224
- } );
225
- },
198
+ label: __( 'Button inside' ),
199
+ value: 'button-inside',
226
200
  },
227
201
  {
228
- role: 'menuitemradio',
229
- title: __( 'No button' ),
230
- isActive: buttonPosition === 'no-button',
231
- icon: noButton,
232
- onClick: () => {
233
- setAttributes( {
234
- buttonPosition: 'no-button',
235
- isSearchFieldHidden: false,
236
- } );
237
- },
202
+ label: __( 'No button' ),
203
+ value: 'no-button',
238
204
  },
239
205
  {
240
- role: 'menuitemradio',
241
- title: __( 'Button only' ),
242
- isActive: buttonPosition === 'button-only',
243
- icon: buttonOnly,
244
- onClick: () => {
245
- setAttributes( {
246
- buttonPosition: 'button-only',
247
- isSearchFieldHidden: true,
248
- } );
249
- },
206
+ label: __( 'Button only' ),
207
+ value: 'button-only',
250
208
  },
251
209
  ];
252
210
 
253
- const getButtonPositionIcon = () => {
254
- switch ( buttonPosition ) {
255
- case 'button-inside':
256
- return buttonInside;
257
- case 'button-outside':
258
- return buttonOutside;
259
- case 'no-button':
260
- return noButton;
261
- case 'button-only':
262
- return buttonOnly;
263
- }
264
- };
265
-
266
211
  const getResizableSides = () => {
267
212
  if ( hasOnlyButton ) {
268
213
  return {};
@@ -376,40 +321,6 @@ export default function SearchEdit( {
376
321
 
377
322
  const controls = (
378
323
  <>
379
- <BlockControls>
380
- <ToolbarGroup>
381
- <ToolbarButton
382
- title={ __( 'Show search label' ) }
383
- icon={ toggleLabel }
384
- onClick={ () => {
385
- setAttributes( {
386
- showLabel: ! showLabel,
387
- } );
388
- } }
389
- className={ showLabel ? 'is-pressed' : undefined }
390
- />
391
- <ToolbarDropdownMenu
392
- icon={ getButtonPositionIcon() }
393
- label={ __( 'Change button position' ) }
394
- controls={ buttonPositionControls }
395
- />
396
- { ! hasNoButton && (
397
- <ToolbarButton
398
- title={ __( 'Use button with icon' ) }
399
- icon={ buttonWithIcon }
400
- onClick={ () => {
401
- setAttributes( {
402
- buttonUseIcon: ! buttonUseIcon,
403
- } );
404
- } }
405
- className={
406
- buttonUseIcon ? 'is-pressed' : undefined
407
- }
408
- />
409
- ) }
410
- </ToolbarGroup>
411
- </BlockControls>
412
-
413
324
  <InspectorControls>
414
325
  <ToolsPanel
415
326
  label={ __( 'Settings' ) }
@@ -417,10 +328,84 @@ export default function SearchEdit( {
417
328
  setAttributes( {
418
329
  width: undefined,
419
330
  widthUnit: undefined,
331
+ showLabel: true,
332
+ buttonUseIcon: false,
333
+ buttonPosition: 'button-outside',
334
+ isSearchFieldHidden: false,
420
335
  } );
421
336
  } }
422
337
  dropdownMenuProps={ dropdownMenuProps }
423
338
  >
339
+ <ToolsPanelItem
340
+ hasValue={ () => ! showLabel }
341
+ label={ __( 'Show label' ) }
342
+ onDeselect={ () => {
343
+ setAttributes( {
344
+ showLabel: true,
345
+ } );
346
+ } }
347
+ isShownByDefault
348
+ >
349
+ <ToggleControl
350
+ __nextHasNoMarginBottom
351
+ checked={ showLabel }
352
+ label={ __( 'Show label' ) }
353
+ onChange={ ( value ) =>
354
+ setAttributes( {
355
+ showLabel: value,
356
+ } )
357
+ }
358
+ />
359
+ </ToolsPanelItem>
360
+ <ToolsPanelItem
361
+ hasValue={ () => buttonPosition !== 'button-outside' }
362
+ label={ __( 'Button position' ) }
363
+ onDeselect={ () => {
364
+ setAttributes( {
365
+ buttonPosition: 'button-outside',
366
+ isSearchFieldHidden: false,
367
+ } );
368
+ } }
369
+ isShownByDefault
370
+ >
371
+ <SelectControl
372
+ value={ buttonPosition }
373
+ __next40pxDefaultSize
374
+ __nextHasNoMarginBottom
375
+ label={ __( 'Button position' ) }
376
+ onChange={ ( value ) => {
377
+ setAttributes( {
378
+ buttonPosition: value,
379
+ isSearchFieldHidden:
380
+ value === 'button-only',
381
+ } );
382
+ } }
383
+ options={ buttonPositionControls }
384
+ />
385
+ </ToolsPanelItem>
386
+ { buttonPosition !== 'no-button' && (
387
+ <ToolsPanelItem
388
+ hasValue={ () => !! buttonUseIcon }
389
+ label={ __( 'Use button with icon' ) }
390
+ onDeselect={ () => {
391
+ setAttributes( {
392
+ buttonUseIcon: false,
393
+ } );
394
+ } }
395
+ isShownByDefault
396
+ >
397
+ <ToggleControl
398
+ __nextHasNoMarginBottom
399
+ checked={ buttonUseIcon }
400
+ label={ __( 'Use button with icon' ) }
401
+ onChange={ ( value ) =>
402
+ setAttributes( {
403
+ buttonUseIcon: value,
404
+ } )
405
+ }
406
+ />
407
+ </ToolsPanelItem>
408
+ ) }
424
409
  <ToolsPanelItem
425
410
  hasValue={ () => !! width }
426
411
  label={ __( 'Width' ) }
@@ -14,7 +14,8 @@
14
14
  "caption": {
15
15
  "type": "rich-text",
16
16
  "source": "rich-text",
17
- "selector": "figcaption"
17
+ "selector": "figcaption",
18
+ "role": "content"
18
19
  },
19
20
  "head": {
20
21
  "type": "array",
@@ -30,7 +31,8 @@
30
31
  "query": {
31
32
  "content": {
32
33
  "type": "rich-text",
33
- "source": "rich-text"
34
+ "source": "rich-text",
35
+ "role": "content"
34
36
  },
35
37
  "tag": {
36
38
  "type": "string",
@@ -75,7 +77,8 @@
75
77
  "query": {
76
78
  "content": {
77
79
  "type": "rich-text",
78
- "source": "rich-text"
80
+ "source": "rich-text",
81
+ "role": "content"
79
82
  },
80
83
  "tag": {
81
84
  "type": "string",
@@ -120,7 +123,8 @@
120
123
  "query": {
121
124
  "content": {
122
125
  "type": "rich-text",
123
- "source": "rich-text"
126
+ "source": "rich-text",
127
+ "role": "content"
124
128
  },
125
129
  "tag": {
126
130
  "type": "string",
package/src/table/edit.js CHANGED
@@ -16,6 +16,7 @@ import {
16
16
  useBlockProps,
17
17
  __experimentalUseColorProps as useColorProps,
18
18
  __experimentalUseBorderProps as useBorderProps,
19
+ useBlockEditingMode,
19
20
  } from '@wordpress/block-editor';
20
21
  import { __ } from '@wordpress/i18n';
21
22
  import {
@@ -106,6 +107,7 @@ function TableEdit( {
106
107
 
107
108
  const colorProps = useColorProps( attributes );
108
109
  const borderProps = useBorderProps( attributes );
110
+ const blockEditingMode = useBlockEditingMode();
109
111
 
110
112
  const tableRef = useRef();
111
113
  const [ hasTableCreated, setHasTableCreated ] = useState( false );
@@ -455,7 +457,7 @@ function TableEdit( {
455
457
 
456
458
  return (
457
459
  <figure { ...useBlockProps( { ref: tableRef } ) }>
458
- { ! isEmpty && (
460
+ { ! isEmpty && blockEditingMode === 'default' && (
459
461
  <>
460
462
  <BlockControls group="block">
461
463
  <AlignmentControl
@@ -605,7 +607,9 @@ function TableEdit( {
605
607
  isSelected={ isSingleSelected }
606
608
  insertBlocksAfter={ insertBlocksAfter }
607
609
  label={ __( 'Table caption text' ) }
608
- showToolbarButton={ isSingleSelected }
610
+ showToolbarButton={
611
+ isSingleSelected && blockEditingMode === 'default'
612
+ }
609
613
  />
610
614
  ) }
611
615
  </figure>
@@ -23,3 +23,9 @@ exports[`Verse block transforms to Paragraph block 1`] = `
23
23
  <p>Come<br />Home.</p>
24
24
  <!-- /wp:paragraph -->"
25
25
  `;
26
+
27
+ exports[`Verse block transforms to Preformatted block 1`] = `
28
+ "<!-- wp:preformatted -->
29
+ <pre class="wp-block-preformatted">Come<br />Home.</pre>
30
+ <!-- /wp:preformatted -->"
31
+ `;
@@ -16,7 +16,11 @@ const initialHtml = `
16
16
  <!-- /wp:verse -->`;
17
17
 
18
18
  const transformsWithInnerBlocks = [ 'Columns', 'Group' ];
19
- const blockTransforms = [ 'Paragraph', ...transformsWithInnerBlocks ];
19
+ const blockTransforms = [
20
+ 'Paragraph',
21
+ 'Preformatted',
22
+ ...transformsWithInnerBlocks,
23
+ ];
20
24
 
21
25
  setupCoreBlocks();
22
26
 
@@ -1,121 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.toggleLabel = exports.noButton = exports.buttonWithIcon = exports.buttonOutside = exports.buttonOnly = exports.buttonInside = void 0;
7
- var _components = require("@wordpress/components");
8
- var _jsxRuntime = require("react/jsx-runtime");
9
- /**
10
- * WordPress dependencies
11
- */
12
-
13
- const buttonOnly = exports.buttonOnly = /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SVG, {
14
- xmlns: "http://www.w3.org/2000/svg",
15
- viewBox: "0 0 24 24",
16
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Rect, {
17
- x: "7",
18
- y: "10",
19
- width: "10",
20
- height: "4",
21
- rx: "1",
22
- fill: "currentColor"
23
- })
24
- });
25
- const buttonOutside = exports.buttonOutside = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.SVG, {
26
- xmlns: "http://www.w3.org/2000/svg",
27
- viewBox: "0 0 24 24",
28
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Rect, {
29
- x: "4.75",
30
- y: "15.25",
31
- width: "6.5",
32
- height: "9.5",
33
- transform: "rotate(-90 4.75 15.25)",
34
- stroke: "currentColor",
35
- strokeWidth: "1.5",
36
- fill: "none"
37
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Rect, {
38
- x: "16",
39
- y: "10",
40
- width: "4",
41
- height: "4",
42
- rx: "1",
43
- fill: "currentColor"
44
- })]
45
- });
46
- const buttonInside = exports.buttonInside = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.SVG, {
47
- xmlns: "http://www.w3.org/2000/svg",
48
- viewBox: "0 0 24 24",
49
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Rect, {
50
- x: "4.75",
51
- y: "15.25",
52
- width: "6.5",
53
- height: "14.5",
54
- transform: "rotate(-90 4.75 15.25)",
55
- stroke: "currentColor",
56
- strokeWidth: "1.5",
57
- fill: "none"
58
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Rect, {
59
- x: "14",
60
- y: "10",
61
- width: "4",
62
- height: "4",
63
- rx: "1",
64
- fill: "currentColor"
65
- })]
66
- });
67
- const noButton = exports.noButton = /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SVG, {
68
- xmlns: "http://www.w3.org/2000/svg",
69
- viewBox: "0 0 24 24",
70
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Rect, {
71
- x: "4.75",
72
- y: "15.25",
73
- width: "6.5",
74
- height: "14.5",
75
- transform: "rotate(-90 4.75 15.25)",
76
- stroke: "currentColor",
77
- fill: "none",
78
- strokeWidth: "1.5"
79
- })
80
- });
81
- const buttonWithIcon = exports.buttonWithIcon = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.SVG, {
82
- xmlns: "http://www.w3.org/2000/svg",
83
- viewBox: "0 0 24 24",
84
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Rect, {
85
- x: "4.75",
86
- y: "7.75",
87
- width: "14.5",
88
- height: "8.5",
89
- rx: "1.25",
90
- stroke: "currentColor",
91
- fill: "none",
92
- strokeWidth: "1.5"
93
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Rect, {
94
- x: "8",
95
- y: "11",
96
- width: "8",
97
- height: "2",
98
- fill: "currentColor"
99
- })]
100
- });
101
- const toggleLabel = exports.toggleLabel = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.SVG, {
102
- xmlns: "http://www.w3.org/2000/svg",
103
- viewBox: "0 0 24 24",
104
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Rect, {
105
- x: "4.75",
106
- y: "17.25",
107
- width: "5.5",
108
- height: "14.5",
109
- transform: "rotate(-90 4.75 17.25)",
110
- stroke: "currentColor",
111
- fill: "none",
112
- strokeWidth: "1.5"
113
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Rect, {
114
- x: "4",
115
- y: "7",
116
- width: "10",
117
- height: "2",
118
- fill: "currentColor"
119
- })]
120
- });
121
- //# sourceMappingURL=icons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_components","require","_jsxRuntime","buttonOnly","exports","jsx","SVG","xmlns","viewBox","children","Rect","x","y","width","height","rx","fill","buttonOutside","jsxs","transform","stroke","strokeWidth","buttonInside","noButton","buttonWithIcon","toggleLabel"],"sources":["@wordpress/block-library/src/search/icons.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { SVG, Rect } from '@wordpress/components';\n\nexport const buttonOnly = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Rect x=\"7\" y=\"10\" width=\"10\" height=\"4\" rx=\"1\" fill=\"currentColor\" />\n\t</SVG>\n);\n\nexport const buttonOutside = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Rect\n\t\t\tx=\"4.75\"\n\t\t\ty=\"15.25\"\n\t\t\twidth=\"6.5\"\n\t\t\theight=\"9.5\"\n\t\t\ttransform=\"rotate(-90 4.75 15.25)\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstrokeWidth=\"1.5\"\n\t\t\tfill=\"none\"\n\t\t/>\n\t\t<Rect x=\"16\" y=\"10\" width=\"4\" height=\"4\" rx=\"1\" fill=\"currentColor\" />\n\t</SVG>\n);\n\nexport const buttonInside = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Rect\n\t\t\tx=\"4.75\"\n\t\t\ty=\"15.25\"\n\t\t\twidth=\"6.5\"\n\t\t\theight=\"14.5\"\n\t\t\ttransform=\"rotate(-90 4.75 15.25)\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstrokeWidth=\"1.5\"\n\t\t\tfill=\"none\"\n\t\t/>\n\t\t<Rect x=\"14\" y=\"10\" width=\"4\" height=\"4\" rx=\"1\" fill=\"currentColor\" />\n\t</SVG>\n);\n\nexport const noButton = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Rect\n\t\t\tx=\"4.75\"\n\t\t\ty=\"15.25\"\n\t\t\twidth=\"6.5\"\n\t\t\theight=\"14.5\"\n\t\t\ttransform=\"rotate(-90 4.75 15.25)\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tfill=\"none\"\n\t\t\tstrokeWidth=\"1.5\"\n\t\t/>\n\t</SVG>\n);\n\nexport const buttonWithIcon = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Rect\n\t\t\tx=\"4.75\"\n\t\t\ty=\"7.75\"\n\t\t\twidth=\"14.5\"\n\t\t\theight=\"8.5\"\n\t\t\trx=\"1.25\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tfill=\"none\"\n\t\t\tstrokeWidth=\"1.5\"\n\t\t/>\n\t\t<Rect x=\"8\" y=\"11\" width=\"8\" height=\"2\" fill=\"currentColor\" />\n\t</SVG>\n);\n\nexport const toggleLabel = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Rect\n\t\t\tx=\"4.75\"\n\t\t\ty=\"17.25\"\n\t\t\twidth=\"5.5\"\n\t\t\theight=\"14.5\"\n\t\t\ttransform=\"rotate(-90 4.75 17.25)\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tfill=\"none\"\n\t\t\tstrokeWidth=\"1.5\"\n\t\t/>\n\t\t<Rect x=\"4\" y=\"7\" width=\"10\" height=\"2\" fill=\"currentColor\" />\n\t</SVG>\n);\n"],"mappings":";;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AAAkD,IAAAC,WAAA,GAAAD,OAAA;AAHlD;AACA;AACA;;AAGO,MAAME,UAAU,GAAAC,OAAA,CAAAD,UAAA,gBACtB,IAAAD,WAAA,CAAAG,GAAA,EAACL,WAAA,CAAAM,GAAG;EAACC,KAAK,EAAC,4BAA4B;EAACC,OAAO,EAAC,WAAW;EAAAC,QAAA,eAC1D,IAAAP,WAAA,CAAAG,GAAA,EAACL,WAAA,CAAAU,IAAI;IAACC,CAAC,EAAC,GAAG;IAACC,CAAC,EAAC,IAAI;IAACC,KAAK,EAAC,IAAI;IAACC,MAAM,EAAC,GAAG;IAACC,EAAE,EAAC,GAAG;IAACC,IAAI,EAAC;EAAc,CAAE;AAAC,CAClE,CACL;AAEM,MAAMC,aAAa,GAAAb,OAAA,CAAAa,aAAA,gBACzB,IAAAf,WAAA,CAAAgB,IAAA,EAAClB,WAAA,CAAAM,GAAG;EAACC,KAAK,EAAC,4BAA4B;EAACC,OAAO,EAAC,WAAW;EAAAC,QAAA,gBAC1D,IAAAP,WAAA,CAA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AA,CAAAU,IAAI;IACJC,CAAC,EAAC,MAAM;IACRC,CAAC,EAAC,OAAO;IACTC,KAAK,EAAC,KAAK;IACXC,MAAM,EAAC,MAAM;IACbK,SAAS,EAAC,wBAAwB;IAClCC,MAAM,EAAC,cAAc;IACrBJ,IAAI,EAAC,MAAM;IACXK,WAAW,EAAC;EAAK,CACjB,CAAC,eACF,IAAAnB,WAAA,CAAAG,GAAA,EAACL,WAAA,CAAAU,IAAI;IAACC,CAAC,EAAC,GAAG;IAACC,CAAC,EAAC,GAAG;IAACC,KAAK,EAAC,IAAI;IAACC,MAAM,EAAC,GAAG;IAACE,IAAI,EAAC;EAAc,CAAE,CAAC;AAAA,CAC1D,CACL","ignoreList":[]}
@@ -1,114 +0,0 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
- import { SVG, Rect } from '@wordpress/components';
5
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
- export const buttonOnly = /*#__PURE__*/_jsx(SVG, {
7
- xmlns: "http://www.w3.org/2000/svg",
8
- viewBox: "0 0 24 24",
9
- children: /*#__PURE__*/_jsx(Rect, {
10
- x: "7",
11
- y: "10",
12
- width: "10",
13
- height: "4",
14
- rx: "1",
15
- fill: "currentColor"
16
- })
17
- });
18
- export const buttonOutside = /*#__PURE__*/_jsxs(SVG, {
19
- xmlns: "http://www.w3.org/2000/svg",
20
- viewBox: "0 0 24 24",
21
- children: [/*#__PURE__*/_jsx(Rect, {
22
- x: "4.75",
23
- y: "15.25",
24
- width: "6.5",
25
- height: "9.5",
26
- transform: "rotate(-90 4.75 15.25)",
27
- stroke: "currentColor",
28
- strokeWidth: "1.5",
29
- fill: "none"
30
- }), /*#__PURE__*/_jsx(Rect, {
31
- x: "16",
32
- y: "10",
33
- width: "4",
34
- height: "4",
35
- rx: "1",
36
- fill: "currentColor"
37
- })]
38
- });
39
- export const buttonInside = /*#__PURE__*/_jsxs(SVG, {
40
- xmlns: "http://www.w3.org/2000/svg",
41
- viewBox: "0 0 24 24",
42
- children: [/*#__PURE__*/_jsx(Rect, {
43
- x: "4.75",
44
- y: "15.25",
45
- width: "6.5",
46
- height: "14.5",
47
- transform: "rotate(-90 4.75 15.25)",
48
- stroke: "currentColor",
49
- strokeWidth: "1.5",
50
- fill: "none"
51
- }), /*#__PURE__*/_jsx(Rect, {
52
- x: "14",
53
- y: "10",
54
- width: "4",
55
- height: "4",
56
- rx: "1",
57
- fill: "currentColor"
58
- })]
59
- });
60
- export const noButton = /*#__PURE__*/_jsx(SVG, {
61
- xmlns: "http://www.w3.org/2000/svg",
62
- viewBox: "0 0 24 24",
63
- children: /*#__PURE__*/_jsx(Rect, {
64
- x: "4.75",
65
- y: "15.25",
66
- width: "6.5",
67
- height: "14.5",
68
- transform: "rotate(-90 4.75 15.25)",
69
- stroke: "currentColor",
70
- fill: "none",
71
- strokeWidth: "1.5"
72
- })
73
- });
74
- export const buttonWithIcon = /*#__PURE__*/_jsxs(SVG, {
75
- xmlns: "http://www.w3.org/2000/svg",
76
- viewBox: "0 0 24 24",
77
- children: [/*#__PURE__*/_jsx(Rect, {
78
- x: "4.75",
79
- y: "7.75",
80
- width: "14.5",
81
- height: "8.5",
82
- rx: "1.25",
83
- stroke: "currentColor",
84
- fill: "none",
85
- strokeWidth: "1.5"
86
- }), /*#__PURE__*/_jsx(Rect, {
87
- x: "8",
88
- y: "11",
89
- width: "8",
90
- height: "2",
91
- fill: "currentColor"
92
- })]
93
- });
94
- export const toggleLabel = /*#__PURE__*/_jsxs(SVG, {
95
- xmlns: "http://www.w3.org/2000/svg",
96
- viewBox: "0 0 24 24",
97
- children: [/*#__PURE__*/_jsx(Rect, {
98
- x: "4.75",
99
- y: "17.25",
100
- width: "5.5",
101
- height: "14.5",
102
- transform: "rotate(-90 4.75 17.25)",
103
- stroke: "currentColor",
104
- fill: "none",
105
- strokeWidth: "1.5"
106
- }), /*#__PURE__*/_jsx(Rect, {
107
- x: "4",
108
- y: "7",
109
- width: "10",
110
- height: "2",
111
- fill: "currentColor"
112
- })]
113
- });
114
- //# sourceMappingURL=icons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["SVG","Rect","jsx","_jsx","jsxs","_jsxs","buttonOnly","xmlns","viewBox","children","x","y","width","height","rx","fill","buttonOutside","transform","stroke","strokeWidth","buttonInside","noButton","buttonWithIcon","toggleLabel"],"sources":["@wordpress/block-library/src/search/icons.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { SVG, Rect } from '@wordpress/components';\n\nexport const buttonOnly = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Rect x=\"7\" y=\"10\" width=\"10\" height=\"4\" rx=\"1\" fill=\"currentColor\" />\n\t</SVG>\n);\n\nexport const buttonOutside = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Rect\n\t\t\tx=\"4.75\"\n\t\t\ty=\"15.25\"\n\t\t\twidth=\"6.5\"\n\t\t\theight=\"9.5\"\n\t\t\ttransform=\"rotate(-90 4.75 15.25)\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstrokeWidth=\"1.5\"\n\t\t\tfill=\"none\"\n\t\t/>\n\t\t<Rect x=\"16\" y=\"10\" width=\"4\" height=\"4\" rx=\"1\" fill=\"currentColor\" />\n\t</SVG>\n);\n\nexport const buttonInside = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Rect\n\t\t\tx=\"4.75\"\n\t\t\ty=\"15.25\"\n\t\t\twidth=\"6.5\"\n\t\t\theight=\"14.5\"\n\t\t\ttransform=\"rotate(-90 4.75 15.25)\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstrokeWidth=\"1.5\"\n\t\t\tfill=\"none\"\n\t\t/>\n\t\t<Rect x=\"14\" y=\"10\" width=\"4\" height=\"4\" rx=\"1\" fill=\"currentColor\" />\n\t</SVG>\n);\n\nexport const noButton = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Rect\n\t\t\tx=\"4.75\"\n\t\t\ty=\"15.25\"\n\t\t\twidth=\"6.5\"\n\t\t\theight=\"14.5\"\n\t\t\ttransform=\"rotate(-90 4.75 15.25)\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tfill=\"none\"\n\t\t\tstrokeWidth=\"1.5\"\n\t\t/>\n\t</SVG>\n);\n\nexport const buttonWithIcon = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Rect\n\t\t\tx=\"4.75\"\n\t\t\ty=\"7.75\"\n\t\t\twidth=\"14.5\"\n\t\t\theight=\"8.5\"\n\t\t\trx=\"1.25\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tfill=\"none\"\n\t\t\tstrokeWidth=\"1.5\"\n\t\t/>\n\t\t<Rect x=\"8\" y=\"11\" width=\"8\" height=\"2\" fill=\"currentColor\" />\n\t</SVG>\n);\n\nexport const toggleLabel = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Rect\n\t\t\tx=\"4.75\"\n\t\t\ty=\"17.25\"\n\t\t\twidth=\"5.5\"\n\t\t\theight=\"14.5\"\n\t\t\ttransform=\"rotate(-90 4.75 17.25)\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tfill=\"none\"\n\t\t\tstrokeWidth=\"1.5\"\n\t\t/>\n\t\t<Rect x=\"4\" y=\"7\" width=\"10\" height=\"2\" fill=\"currentColor\" />\n\t</SVG>\n);\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,GAAG,EAAEC,IAAI,QAAQ,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAElD,OAAO,MAAMC,UAAU,gBACtBH,IAAA,CAACH,GAAG;EAACO,KAAK,EAAC,4BAA4B;EAACC,OAAO,EAAC,WAAW;EAAAC,QAAA,eAC1DN,IAA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IACrBH,IAAI,EAAC,MAAM;IACXI,WAAW,EAAC;EAAK,CACjB,CAAC,eACFhB,IAAA,CAACF,IAAI;IAACS,CAAC,EAAC,GAAG;IAACC,CAAC,EAAC,GAAG;IAACC,KAAK,EAAC,IAAI;IAACC,MAAM,EAAC,GAAG;IAACE,IAAI,EAAC;EAAc,CAAE,CAAC;AAAA,CAC1D,CACL","ignoreList":[]}
@@ -1,89 +0,0 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
- import { SVG, Rect } from '@wordpress/components';
5
-
6
- export const buttonOnly = (
7
- <SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
8
- <Rect x="7" y="10" width="10" height="4" rx="1" fill="currentColor" />
9
- </SVG>
10
- );
11
-
12
- export const buttonOutside = (
13
- <SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
14
- <Rect
15
- x="4.75"
16
- y="15.25"
17
- width="6.5"
18
- height="9.5"
19
- transform="rotate(-90 4.75 15.25)"
20
- stroke="currentColor"
21
- strokeWidth="1.5"
22
- fill="none"
23
- />
24
- <Rect x="16" y="10" width="4" height="4" rx="1" fill="currentColor" />
25
- </SVG>
26
- );
27
-
28
- export const buttonInside = (
29
- <SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
30
- <Rect
31
- x="4.75"
32
- y="15.25"
33
- width="6.5"
34
- height="14.5"
35
- transform="rotate(-90 4.75 15.25)"
36
- stroke="currentColor"
37
- strokeWidth="1.5"
38
- fill="none"
39
- />
40
- <Rect x="14" y="10" width="4" height="4" rx="1" fill="currentColor" />
41
- </SVG>
42
- );
43
-
44
- export const noButton = (
45
- <SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
46
- <Rect
47
- x="4.75"
48
- y="15.25"
49
- width="6.5"
50
- height="14.5"
51
- transform="rotate(-90 4.75 15.25)"
52
- stroke="currentColor"
53
- fill="none"
54
- strokeWidth="1.5"
55
- />
56
- </SVG>
57
- );
58
-
59
- export const buttonWithIcon = (
60
- <SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
61
- <Rect
62
- x="4.75"
63
- y="7.75"
64
- width="14.5"
65
- height="8.5"
66
- rx="1.25"
67
- stroke="currentColor"
68
- fill="none"
69
- strokeWidth="1.5"
70
- />
71
- <Rect x="8" y="11" width="8" height="2" fill="currentColor" />
72
- </SVG>
73
- );
74
-
75
- export const toggleLabel = (
76
- <SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
77
- <Rect
78
- x="4.75"
79
- y="17.25"
80
- width="5.5"
81
- height="14.5"
82
- transform="rotate(-90 4.75 17.25)"
83
- stroke="currentColor"
84
- fill="none"
85
- strokeWidth="1.5"
86
- />
87
- <Rect x="4" y="7" width="10" height="2" fill="currentColor" />
88
- </SVG>
89
- );