@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.
- package/CHANGELOG.md +2 -0
- package/build/code/index.js +2 -1
- package/build/code/index.js.map +1 -1
- package/build/details/index.js +2 -1
- package/build/details/index.js.map +1 -1
- package/build/html/index.js +2 -1
- package/build/html/index.js.map +1 -1
- package/build/image/constants.js +2 -1
- package/build/image/constants.js.map +1 -1
- package/build/image/edit.js +1 -1
- package/build/image/edit.js.map +1 -1
- package/build/image/image.js +1 -4
- package/build/image/image.js.map +1 -1
- package/build/more/index.js +2 -1
- package/build/more/index.js.map +1 -1
- package/build/post-excerpt/edit.js +3 -1
- package/build/post-excerpt/edit.js.map +1 -1
- package/build/post-excerpt/index.js +2 -1
- package/build/post-excerpt/index.js.map +1 -1
- package/build/post-navigation-link/edit.js +3 -1
- package/build/post-navigation-link/edit.js.map +1 -1
- package/build/post-navigation-link/index.js +2 -1
- package/build/post-navigation-link/index.js.map +1 -1
- package/build/post-navigation-link/variations.js +13 -13
- package/build/post-navigation-link/variations.js.map +1 -1
- package/build/post-template/edit.js +5 -3
- package/build/post-template/edit.js.map +1 -1
- package/build/post-terms/edit.js +3 -1
- package/build/post-terms/edit.js.map +1 -1
- package/build/post-terms/index.js +4 -2
- package/build/post-terms/index.js.map +1 -1
- package/build/preformatted/transforms.js +5 -1
- package/build/preformatted/transforms.js.map +1 -1
- package/build/read-more/index.js +2 -1
- package/build/read-more/index.js.map +1 -1
- package/build/rss/index.js +2 -1
- package/build/rss/index.js.map +1 -1
- package/build/search/edit.js +76 -86
- package/build/search/edit.js.map +1 -1
- package/build/table/edit.js +3 -2
- package/build/table/edit.js.map +1 -1
- package/build/table/index.js +8 -4
- package/build/table/index.js.map +1 -1
- package/build-module/code/index.js +2 -1
- package/build-module/code/index.js.map +1 -1
- package/build-module/details/index.js +2 -1
- package/build-module/details/index.js.map +1 -1
- package/build-module/html/index.js +2 -1
- package/build-module/html/index.js.map +1 -1
- package/build-module/image/constants.js +1 -0
- package/build-module/image/constants.js.map +1 -1
- package/build-module/image/edit.js +2 -2
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/image.js +2 -5
- package/build-module/image/image.js.map +1 -1
- package/build-module/more/index.js +2 -1
- package/build-module/more/index.js.map +1 -1
- package/build-module/post-excerpt/edit.js +4 -2
- package/build-module/post-excerpt/edit.js.map +1 -1
- package/build-module/post-excerpt/index.js +2 -1
- package/build-module/post-excerpt/index.js.map +1 -1
- package/build-module/post-navigation-link/edit.js +4 -2
- package/build-module/post-navigation-link/edit.js.map +1 -1
- package/build-module/post-navigation-link/index.js +2 -1
- package/build-module/post-navigation-link/index.js.map +1 -1
- package/build-module/post-navigation-link/variations.js +13 -13
- package/build-module/post-navigation-link/variations.js.map +1 -1
- package/build-module/post-template/edit.js +5 -3
- package/build-module/post-template/edit.js.map +1 -1
- package/build-module/post-terms/edit.js +4 -2
- package/build-module/post-terms/edit.js.map +1 -1
- package/build-module/post-terms/index.js +4 -2
- package/build-module/post-terms/index.js.map +1 -1
- package/build-module/preformatted/transforms.js +5 -1
- package/build-module/preformatted/transforms.js.map +1 -1
- package/build-module/read-more/index.js +2 -1
- package/build-module/read-more/index.js.map +1 -1
- package/build-module/rss/index.js +2 -1
- package/build-module/rss/index.js.map +1 -1
- package/build-module/search/edit.js +78 -88
- package/build-module/search/edit.js.map +1 -1
- package/build-module/table/edit.js +4 -3
- package/build-module/table/edit.js.map +1 -1
- package/build-module/table/index.js +8 -4
- package/build-module/table/index.js.map +1 -1
- package/build-style/archives/editor-rtl.css +47 -11
- package/build-style/archives/editor.css +47 -11
- package/build-style/archives/style-rtl.css +47 -11
- package/build-style/archives/style.css +47 -11
- package/build-style/audio/editor-rtl.css +47 -11
- package/build-style/audio/editor.css +47 -11
- package/build-style/audio/style-rtl.css +47 -11
- package/build-style/audio/style.css +47 -11
- package/build-style/audio/theme-rtl.css +47 -11
- package/build-style/audio/theme.css +47 -11
- package/build-style/avatar/editor-rtl.css +47 -11
- package/build-style/avatar/editor.css +47 -11
- package/build-style/avatar/style-rtl.css +47 -11
- package/build-style/avatar/style.css +47 -11
- package/build-style/button/editor-rtl.css +47 -11
- package/build-style/button/editor.css +47 -11
- package/build-style/button/style-rtl.css +47 -12
- package/build-style/button/style.css +47 -12
- package/build-style/buttons/editor-rtl.css +47 -11
- package/build-style/buttons/editor.css +47 -11
- package/build-style/buttons/style-rtl.css +50 -11
- package/build-style/buttons/style.css +50 -11
- package/build-style/calendar/style-rtl.css +47 -11
- package/build-style/calendar/style.css +47 -11
- package/build-style/categories/editor-rtl.css +47 -11
- package/build-style/categories/editor.css +47 -11
- package/build-style/categories/style-rtl.css +47 -11
- package/build-style/categories/style.css +47 -11
- package/build-style/classic-rtl.css +47 -11
- package/build-style/classic.css +47 -11
- package/build-style/code/editor-rtl.css +47 -11
- package/build-style/code/editor.css +47 -11
- package/build-style/code/style-rtl.css +47 -11
- package/build-style/code/style.css +47 -11
- package/build-style/code/theme-rtl.css +47 -11
- package/build-style/code/theme.css +47 -11
- package/build-style/columns/editor-rtl.css +47 -11
- package/build-style/columns/editor.css +47 -11
- package/build-style/columns/style-rtl.css +47 -11
- package/build-style/columns/style.css +47 -11
- package/build-style/comment-author-avatar/editor-rtl.css +47 -11
- package/build-style/comment-author-avatar/editor.css +47 -11
- package/build-style/comment-author-name/style-rtl.css +47 -11
- package/build-style/comment-author-name/style.css +47 -11
- package/build-style/comment-content/style-rtl.css +47 -11
- package/build-style/comment-content/style.css +47 -11
- package/build-style/comment-date/style-rtl.css +47 -11
- package/build-style/comment-date/style.css +47 -11
- package/build-style/comment-edit-link/style-rtl.css +47 -11
- package/build-style/comment-edit-link/style.css +47 -11
- package/build-style/comment-reply-link/style-rtl.css +47 -11
- package/build-style/comment-reply-link/style.css +47 -11
- package/build-style/comment-template/style-rtl.css +47 -11
- package/build-style/comment-template/style.css +47 -11
- package/build-style/comments/editor-rtl.css +47 -11
- package/build-style/comments/editor.css +47 -11
- package/build-style/comments/style-rtl.css +47 -11
- package/build-style/comments/style.css +47 -11
- package/build-style/comments-pagination/editor-rtl.css +47 -11
- package/build-style/comments-pagination/editor.css +47 -11
- package/build-style/comments-pagination/style-rtl.css +47 -11
- package/build-style/comments-pagination/style.css +47 -11
- package/build-style/comments-pagination-numbers/editor-rtl.css +47 -11
- package/build-style/comments-pagination-numbers/editor.css +47 -11
- package/build-style/comments-title/editor-rtl.css +47 -11
- package/build-style/comments-title/editor.css +47 -11
- package/build-style/common-rtl.css +130 -9
- package/build-style/common.css +130 -9
- package/build-style/cover/editor-rtl.css +47 -11
- package/build-style/cover/editor.css +47 -11
- package/build-style/cover/style-rtl.css +47 -11
- package/build-style/cover/style.css +47 -11
- package/build-style/details/editor-rtl.css +47 -11
- package/build-style/details/editor.css +47 -11
- package/build-style/details/style-rtl.css +47 -11
- package/build-style/details/style.css +47 -11
- package/build-style/editor-elements-rtl.css +47 -11
- package/build-style/editor-elements.css +47 -11
- package/build-style/editor-rtl.css +48 -11
- package/build-style/editor.css +48 -11
- package/build-style/elements-rtl.css +47 -11
- package/build-style/elements.css +47 -11
- package/build-style/embed/editor-rtl.css +47 -11
- package/build-style/embed/editor.css +47 -11
- package/build-style/embed/style-rtl.css +47 -11
- package/build-style/embed/style.css +47 -11
- package/build-style/embed/theme-rtl.css +47 -11
- package/build-style/embed/theme.css +47 -11
- package/build-style/file/editor-rtl.css +47 -11
- package/build-style/file/editor.css +47 -11
- package/build-style/file/style-rtl.css +47 -11
- package/build-style/file/style.css +47 -11
- package/build-style/footnotes/style-rtl.css +47 -11
- package/build-style/footnotes/style.css +47 -11
- package/build-style/form-input/editor-rtl.css +47 -11
- package/build-style/form-input/editor.css +47 -11
- package/build-style/form-input/style-rtl.css +47 -11
- package/build-style/form-input/style.css +47 -11
- package/build-style/form-submission-notification/editor-rtl.css +47 -11
- package/build-style/form-submission-notification/editor.css +47 -11
- package/build-style/form-submit-button/style-rtl.css +47 -11
- package/build-style/form-submit-button/style.css +47 -11
- package/build-style/freeform/editor-rtl.css +47 -11
- package/build-style/freeform/editor.css +47 -11
- package/build-style/gallery/editor-rtl.css +47 -11
- package/build-style/gallery/editor.css +47 -11
- package/build-style/gallery/style-rtl.css +47 -11
- package/build-style/gallery/style.css +47 -11
- package/build-style/gallery/theme-rtl.css +47 -11
- package/build-style/gallery/theme.css +47 -11
- package/build-style/group/editor-rtl.css +47 -11
- package/build-style/group/editor.css +47 -11
- package/build-style/group/style-rtl.css +47 -11
- package/build-style/group/style.css +47 -11
- package/build-style/group/theme-rtl.css +47 -11
- package/build-style/group/theme.css +47 -11
- package/build-style/heading/style-rtl.css +47 -11
- package/build-style/heading/style.css +47 -11
- package/build-style/html/editor-rtl.css +48 -11
- package/build-style/html/editor.css +48 -11
- package/build-style/image/editor-rtl.css +47 -11
- package/build-style/image/editor.css +47 -11
- package/build-style/image/style-rtl.css +47 -11
- package/build-style/image/style.css +47 -11
- package/build-style/image/theme-rtl.css +47 -11
- package/build-style/image/theme.css +47 -11
- package/build-style/latest-comments/style-rtl.css +47 -11
- package/build-style/latest-comments/style.css +47 -11
- package/build-style/latest-posts/editor-rtl.css +47 -11
- package/build-style/latest-posts/editor.css +47 -11
- package/build-style/latest-posts/style-rtl.css +47 -11
- package/build-style/latest-posts/style.css +47 -11
- package/build-style/list/style-rtl.css +47 -11
- package/build-style/list/style.css +47 -11
- package/build-style/loginout/style-rtl.css +47 -11
- package/build-style/loginout/style.css +47 -11
- package/build-style/media-text/editor-rtl.css +47 -11
- package/build-style/media-text/editor.css +47 -11
- package/build-style/media-text/style-rtl.css +47 -11
- package/build-style/media-text/style.css +47 -11
- package/build-style/more/editor-rtl.css +47 -11
- package/build-style/more/editor.css +47 -11
- package/build-style/navigation/editor-rtl.css +47 -11
- package/build-style/navigation/editor.css +47 -11
- package/build-style/navigation/style-rtl.css +47 -11
- package/build-style/navigation/style.css +47 -11
- package/build-style/navigation-link/editor-rtl.css +47 -11
- package/build-style/navigation-link/editor.css +47 -11
- package/build-style/navigation-link/style-rtl.css +47 -11
- package/build-style/navigation-link/style.css +47 -11
- package/build-style/navigation-submenu/editor-rtl.css +47 -11
- package/build-style/navigation-submenu/editor.css +47 -11
- package/build-style/nextpage/editor-rtl.css +47 -11
- package/build-style/nextpage/editor.css +47 -11
- package/build-style/page-list/editor-rtl.css +47 -11
- package/build-style/page-list/editor.css +47 -11
- package/build-style/page-list/style-rtl.css +47 -11
- package/build-style/page-list/style.css +47 -11
- package/build-style/paragraph/editor-rtl.css +47 -11
- package/build-style/paragraph/editor.css +47 -11
- package/build-style/paragraph/style-rtl.css +47 -11
- package/build-style/paragraph/style.css +47 -11
- package/build-style/post-author/editor-rtl.css +47 -11
- package/build-style/post-author/editor.css +47 -11
- package/build-style/post-author/style-rtl.css +47 -11
- package/build-style/post-author/style.css +47 -11
- package/build-style/post-author-biography/style-rtl.css +47 -11
- package/build-style/post-author-biography/style.css +47 -11
- package/build-style/post-author-name/style-rtl.css +47 -11
- package/build-style/post-author-name/style.css +47 -11
- package/build-style/post-comments-count/style-rtl.css +47 -11
- package/build-style/post-comments-count/style.css +47 -11
- package/build-style/post-comments-form/editor-rtl.css +47 -11
- package/build-style/post-comments-form/editor.css +47 -11
- package/build-style/post-comments-form/style-rtl.css +47 -14
- package/build-style/post-comments-form/style.css +47 -14
- package/build-style/post-comments-link/style-rtl.css +47 -11
- package/build-style/post-comments-link/style.css +47 -11
- package/build-style/post-content/style-rtl.css +47 -11
- package/build-style/post-content/style.css +47 -11
- package/build-style/post-date/style-rtl.css +47 -11
- package/build-style/post-date/style.css +47 -11
- package/build-style/post-excerpt/editor-rtl.css +47 -11
- package/build-style/post-excerpt/editor.css +47 -11
- package/build-style/post-excerpt/style-rtl.css +47 -11
- package/build-style/post-excerpt/style.css +47 -11
- package/build-style/post-featured-image/editor-rtl.css +47 -11
- package/build-style/post-featured-image/editor.css +47 -11
- package/build-style/post-featured-image/style-rtl.css +47 -11
- package/build-style/post-featured-image/style.css +47 -11
- package/build-style/post-navigation-link/style-rtl.css +47 -11
- package/build-style/post-navigation-link/style.css +47 -11
- package/build-style/post-template/style-rtl.css +47 -11
- package/build-style/post-template/style.css +47 -11
- package/build-style/post-terms/style-rtl.css +47 -11
- package/build-style/post-terms/style.css +47 -11
- package/build-style/post-time-to-read/style-rtl.css +47 -11
- package/build-style/post-time-to-read/style.css +47 -11
- package/build-style/post-title/style-rtl.css +47 -11
- package/build-style/post-title/style.css +47 -11
- package/build-style/preformatted/style-rtl.css +47 -11
- package/build-style/preformatted/style.css +47 -11
- package/build-style/pullquote/editor-rtl.css +47 -11
- package/build-style/pullquote/editor.css +47 -11
- package/build-style/pullquote/style-rtl.css +47 -11
- package/build-style/pullquote/style.css +47 -11
- package/build-style/pullquote/theme-rtl.css +47 -11
- package/build-style/pullquote/theme.css +47 -11
- package/build-style/query/editor-rtl.css +47 -11
- package/build-style/query/editor.css +47 -11
- package/build-style/query-pagination/editor-rtl.css +47 -11
- package/build-style/query-pagination/editor.css +47 -11
- package/build-style/query-pagination/style-rtl.css +47 -11
- package/build-style/query-pagination/style.css +47 -11
- package/build-style/query-pagination-numbers/editor-rtl.css +47 -11
- package/build-style/query-pagination-numbers/editor.css +47 -11
- package/build-style/query-title/style-rtl.css +47 -11
- package/build-style/query-title/style.css +47 -11
- package/build-style/query-total/style-rtl.css +47 -11
- package/build-style/query-total/style.css +47 -11
- package/build-style/quote/style-rtl.css +47 -11
- package/build-style/quote/style.css +47 -11
- package/build-style/quote/theme-rtl.css +47 -11
- package/build-style/quote/theme.css +47 -11
- package/build-style/read-more/style-rtl.css +47 -11
- package/build-style/read-more/style.css +47 -11
- package/build-style/reset-rtl.css +47 -11
- package/build-style/reset.css +47 -11
- package/build-style/rss/editor-rtl.css +47 -11
- package/build-style/rss/editor.css +47 -11
- package/build-style/rss/style-rtl.css +47 -11
- package/build-style/rss/style.css +47 -11
- package/build-style/search/editor-rtl.css +47 -11
- package/build-style/search/editor.css +47 -11
- package/build-style/search/style-rtl.css +47 -11
- package/build-style/search/style.css +47 -11
- package/build-style/search/theme-rtl.css +47 -11
- package/build-style/search/theme.css +47 -11
- package/build-style/separator/editor-rtl.css +47 -11
- package/build-style/separator/editor.css +47 -11
- package/build-style/separator/style-rtl.css +47 -11
- package/build-style/separator/style.css +47 -11
- package/build-style/separator/theme-rtl.css +47 -11
- package/build-style/separator/theme.css +47 -11
- package/build-style/shortcode/editor-rtl.css +47 -11
- package/build-style/shortcode/editor.css +47 -11
- package/build-style/site-logo/editor-rtl.css +47 -11
- package/build-style/site-logo/editor.css +47 -11
- package/build-style/site-logo/style-rtl.css +47 -11
- package/build-style/site-logo/style.css +47 -11
- package/build-style/site-tagline/editor-rtl.css +47 -11
- package/build-style/site-tagline/editor.css +47 -11
- package/build-style/site-tagline/style-rtl.css +47 -11
- package/build-style/site-tagline/style.css +47 -11
- package/build-style/site-title/editor-rtl.css +47 -11
- package/build-style/site-title/editor.css +47 -11
- package/build-style/site-title/style-rtl.css +47 -11
- package/build-style/site-title/style.css +47 -11
- package/build-style/social-link/editor-rtl.css +47 -11
- package/build-style/social-link/editor.css +47 -11
- package/build-style/social-links/editor-rtl.css +47 -11
- package/build-style/social-links/editor.css +47 -11
- package/build-style/social-links/style-rtl.css +47 -11
- package/build-style/social-links/style.css +47 -11
- package/build-style/spacer/editor-rtl.css +47 -11
- package/build-style/spacer/editor.css +47 -11
- package/build-style/spacer/style-rtl.css +47 -11
- package/build-style/spacer/style.css +47 -11
- package/build-style/style-rtl.css +50 -15
- package/build-style/style.css +50 -15
- package/build-style/table/editor-rtl.css +47 -11
- package/build-style/table/editor.css +47 -11
- package/build-style/table/style-rtl.css +47 -11
- package/build-style/table/style.css +47 -11
- package/build-style/table/theme-rtl.css +47 -11
- package/build-style/table/theme.css +47 -11
- package/build-style/table-of-contents/style-rtl.css +47 -11
- package/build-style/table-of-contents/style.css +47 -11
- package/build-style/tag-cloud/editor-rtl.css +47 -11
- package/build-style/tag-cloud/editor.css +47 -11
- package/build-style/tag-cloud/style-rtl.css +47 -11
- package/build-style/tag-cloud/style.css +47 -11
- package/build-style/template-part/editor-rtl.css +47 -11
- package/build-style/template-part/editor.css +47 -11
- package/build-style/template-part/theme-rtl.css +47 -11
- package/build-style/template-part/theme.css +47 -11
- package/build-style/term-description/style-rtl.css +47 -11
- package/build-style/term-description/style.css +47 -11
- package/build-style/text-columns/editor-rtl.css +47 -11
- package/build-style/text-columns/editor.css +47 -11
- package/build-style/text-columns/style-rtl.css +47 -11
- package/build-style/text-columns/style.css +47 -11
- package/build-style/theme-rtl.css +47 -11
- package/build-style/theme.css +47 -11
- package/build-style/verse/style-rtl.css +47 -11
- package/build-style/verse/style.css +47 -11
- package/build-style/video/editor-rtl.css +47 -11
- package/build-style/video/editor.css +47 -11
- package/build-style/video/style-rtl.css +47 -11
- package/build-style/video/style.css +47 -11
- package/build-style/video/theme-rtl.css +47 -11
- package/build-style/video/theme.css +47 -11
- package/package.json +35 -35
- package/src/button/style.scss +0 -1
- package/src/buttons/style.scss +5 -0
- package/src/code/block.json +2 -1
- package/src/details/block.json +2 -1
- package/src/html/block.json +2 -1
- package/src/html/editor.scss +1 -0
- package/src/image/constants.js +1 -0
- package/src/image/edit.js +2 -1
- package/src/image/image.js +7 -5
- package/src/more/block.json +2 -1
- package/src/post-comments-form/style.scss +0 -5
- package/src/post-excerpt/block.json +2 -1
- package/src/post-excerpt/edit.js +13 -8
- package/src/post-navigation-link/block.json +2 -1
- package/src/post-navigation-link/edit.js +13 -8
- package/src/post-navigation-link/variations.js +13 -13
- package/src/post-template/edit.js +4 -3
- package/src/post-terms/block.json +4 -2
- package/src/post-terms/edit.js +13 -8
- package/src/preformatted/test/__snapshots__/transforms.native.js.snap +6 -0
- package/src/preformatted/test/transforms.native.js +6 -1
- package/src/preformatted/transforms.js +7 -1
- package/src/read-more/block.json +2 -1
- package/src/rss/block.json +2 -1
- package/src/search/edit.js +84 -99
- package/src/table/block.json +8 -4
- package/src/table/edit.js +6 -2
- package/src/verse/test/__snapshots__/transforms.native.js.snap +6 -0
- package/src/verse/test/transforms.native.js +5 -1
- package/build/search/icons.js +0 -121
- package/build/search/icons.js.map +0 -1
- package/build-module/search/icons.js +0 -114
- package/build-module/search/icons.js.map +0 -1
- package/src/search/icons.js +0 -89
package/src/search/edit.js
CHANGED
|
@@ -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
|
-
|
|
25
|
-
|
|
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
|
-
|
|
205
|
-
|
|
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
|
-
|
|
217
|
-
|
|
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
|
-
|
|
229
|
-
|
|
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
|
-
|
|
241
|
-
|
|
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' ) }
|
package/src/table/block.json
CHANGED
|
@@ -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={
|
|
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 = [
|
|
19
|
+
const blockTransforms = [
|
|
20
|
+
'Paragraph',
|
|
21
|
+
'Preformatted',
|
|
22
|
+
...transformsWithInnerBlocks,
|
|
23
|
+
];
|
|
20
24
|
|
|
21
25
|
setupCoreBlocks();
|
|
22
26
|
|
package/build/search/icons.js
DELETED
|
@@ -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":"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","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":"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","ignoreList":[]}
|
package/src/search/icons.js
DELETED
|
@@ -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
|
-
);
|