@wordpress/block-library 8.20.1 → 8.21.1-next.f8d8eceb.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 +7 -0
- package/README.md +12 -0
- package/build/avatar/index.js +5 -1
- package/build/avatar/index.js.map +1 -1
- package/build/block/edit-title.native.js +11 -3
- package/build/block/edit-title.native.js.map +1 -1
- package/build/block/index.js +2 -1
- package/build/block/index.js.map +1 -1
- package/build/code/edit.native.js +8 -2
- package/build/code/edit.native.js.map +1 -1
- package/build/column/edit.js +2 -1
- package/build/column/edit.js.map +1 -1
- package/build/column/edit.native.js +2 -1
- package/build/column/edit.native.js.map +1 -1
- package/build/columns/edit.native.js +2 -1
- package/build/columns/edit.native.js.map +1 -1
- package/build/cover/controls.native.js +2 -1
- package/build/cover/controls.native.js.map +1 -1
- package/build/cover/deprecated.js +110 -1
- package/build/cover/deprecated.js.map +1 -1
- package/build/cover/edit/index.js +11 -4
- package/build/cover/edit/index.js.map +1 -1
- package/build/cover/edit/inspector-controls.js +3 -3
- package/build/cover/edit/inspector-controls.js.map +1 -1
- package/build/cover/index.js +0 -3
- package/build/cover/index.js.map +1 -1
- package/build/cover/save.js +2 -1
- package/build/cover/save.js.map +1 -1
- package/build/cover/shared.js +1 -1
- package/build/cover/shared.js.map +1 -1
- package/build/file/view.js +1 -1
- package/build/file/view.js.map +1 -1
- package/build/footnotes/index.js +1 -0
- package/build/footnotes/index.js.map +1 -1
- package/build/form/edit.js +138 -0
- package/build/form/edit.js.map +1 -0
- package/build/form/index.js +92 -0
- package/build/form/index.js.map +1 -0
- package/build/form/init.js +13 -0
- package/build/form/init.js.map +1 -0
- package/build/form/save.js +28 -0
- package/build/form/save.js.map +1 -0
- package/build/form/utils.js +24 -0
- package/build/form/utils.js.map +1 -0
- package/build/form/variations.js +95 -0
- package/build/form/variations.js.map +1 -0
- package/build/form/view.js +42 -0
- package/build/form/view.js.map +1 -0
- package/build/form-input/edit.js +124 -0
- package/build/form-input/edit.js.map +1 -0
- package/build/form-input/index.js +105 -0
- package/build/form-input/index.js.map +1 -0
- package/build/form-input/init.js +13 -0
- package/build/form-input/init.js.map +1 -0
- package/build/form-input/save.js +87 -0
- package/build/form-input/save.js.map +1 -0
- package/build/form-input/variations.js +93 -0
- package/build/form-input/variations.js.map +1 -0
- package/build/form-submission-notification/edit.js +59 -0
- package/build/form-submission-notification/edit.js.map +1 -0
- package/build/form-submission-notification/index.js +56 -0
- package/build/form-submission-notification/index.js.map +1 -0
- package/build/form-submission-notification/init.js +13 -0
- package/build/form-submission-notification/init.js.map +1 -0
- package/build/form-submission-notification/save.js +33 -0
- package/build/form-submission-notification/save.js.map +1 -0
- package/build/form-submission-notification/variations.js +63 -0
- package/build/form-submission-notification/variations.js.map +1 -0
- package/build/form-submit-button/edit.js +32 -0
- package/build/form-submit-button/edit.js.map +1 -0
- package/build/form-submit-button/index.js +44 -0
- package/build/form-submit-button/index.js.map +1 -0
- package/build/form-submit-button/init.js +13 -0
- package/build/form-submit-button/init.js.map +1 -0
- package/build/form-submit-button/save.js +22 -0
- package/build/form-submit-button/save.js.map +1 -0
- package/build/group/edit.js +2 -11
- package/build/group/edit.js.map +1 -1
- package/build/group/index.js +0 -1
- package/build/group/index.js.map +1 -1
- package/build/heading/index.js +3 -2
- package/build/heading/index.js.map +1 -1
- package/build/html/preview.js +2 -4
- package/build/html/preview.js.map +1 -1
- package/build/image/image.js +15 -6
- package/build/image/image.js.map +1 -1
- package/build/image/view.js +71 -39
- package/build/image/view.js.map +1 -1
- package/build/index.js +10 -0
- package/build/index.js.map +1 -1
- package/build/latest-posts/edit.js +6 -2
- package/build/latest-posts/edit.js.map +1 -1
- package/build/list-item/hooks/use-merge.js +15 -15
- package/build/list-item/hooks/use-merge.js.map +1 -1
- package/build/lock-unlock.js +1 -1
- package/build/lock-unlock.js.map +1 -1
- package/build/missing/edit.native.js +54 -64
- package/build/missing/edit.native.js.map +1 -1
- package/build/navigation/edit/index.js +0 -1
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/index.js +2 -1
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/view.js +27 -5
- package/build/navigation/view.js.map +1 -1
- package/build/page-list-item/edit.js +3 -1
- package/build/page-list-item/edit.js.map +1 -1
- package/build/paragraph/edit.js +1 -1
- package/build/paragraph/edit.js.map +1 -1
- package/build/paragraph/index.js +7 -0
- package/build/paragraph/index.js.map +1 -1
- package/build/pattern/index.js +2 -1
- package/build/pattern/index.js.map +1 -1
- package/build/post-featured-image/dimension-controls.js +2 -2
- package/build/post-featured-image/dimension-controls.js.map +1 -1
- package/build/query/edit/enhanced-pagination-modal.js +27 -13
- package/build/query/edit/enhanced-pagination-modal.js.map +1 -1
- package/build/query/edit/inspector-controls/enhanced-pagination-control.js +15 -12
- package/build/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
- package/build/query/utils.js +29 -8
- package/build/query/utils.js.map +1 -1
- package/build/query/view.js +4 -2
- package/build/query/view.js.map +1 -1
- package/build/search/edit.js +1 -2
- package/build/search/edit.js.map +1 -1
- package/build/social-link/edit.native.js +7 -19
- package/build/social-link/edit.native.js.map +1 -1
- package/build/spacer/controls.js +3 -3
- package/build/spacer/controls.js.map +1 -1
- package/build/spacer/controls.native.js +2 -1
- package/build/spacer/controls.native.js.map +1 -1
- package/build/spacer/edit.js +1 -1
- package/build/spacer/edit.js.map +1 -1
- package/build/spacer/edit.native.js +5 -1
- package/build/spacer/edit.native.js.map +1 -1
- package/build/tag-cloud/edit.js +2 -1
- package/build/tag-cloud/edit.js.map +1 -1
- package/build/template-part/edit/inner-blocks.js +2 -2
- package/build/template-part/edit/inner-blocks.js.map +1 -1
- package/build/template-part/index.js +2 -1
- package/build/template-part/index.js.map +1 -1
- package/build/term-description/index.js +0 -1
- package/build/term-description/index.js.map +1 -1
- package/build-module/avatar/index.js +5 -1
- package/build-module/avatar/index.js.map +1 -1
- package/build-module/block/edit-title.native.js +12 -4
- package/build-module/block/edit-title.native.js.map +1 -1
- package/build-module/block/index.js +2 -1
- package/build-module/block/index.js.map +1 -1
- package/build-module/code/edit.native.js +8 -2
- package/build-module/code/edit.native.js.map +1 -1
- package/build-module/column/edit.js +3 -2
- package/build-module/column/edit.js.map +1 -1
- package/build-module/column/edit.native.js +3 -2
- package/build-module/column/edit.native.js.map +1 -1
- package/build-module/columns/edit.native.js +3 -2
- package/build-module/columns/edit.native.js.map +1 -1
- package/build-module/cover/controls.native.js +3 -2
- package/build-module/cover/controls.native.js.map +1 -1
- package/build-module/cover/deprecated.js +110 -1
- package/build-module/cover/deprecated.js.map +1 -1
- package/build-module/cover/edit/index.js +12 -5
- package/build-module/cover/edit/index.js.map +1 -1
- package/build-module/cover/edit/inspector-controls.js +4 -4
- package/build-module/cover/edit/inspector-controls.js.map +1 -1
- package/build-module/cover/index.js +0 -3
- package/build-module/cover/index.js.map +1 -1
- package/build-module/cover/save.js +2 -1
- package/build-module/cover/save.js.map +1 -1
- package/build-module/cover/shared.js +1 -1
- package/build-module/cover/shared.js.map +1 -1
- package/build-module/file/view.js +2 -2
- package/build-module/file/view.js.map +1 -1
- package/build-module/footnotes/index.js +1 -0
- package/build-module/footnotes/index.js.map +1 -1
- package/build-module/form/edit.js +130 -0
- package/build-module/form/edit.js.map +1 -0
- package/build-module/form/index.js +82 -0
- package/build-module/form/index.js.map +1 -0
- package/build-module/form/init.js +6 -0
- package/build-module/form/init.js.map +1 -0
- package/build-module/form/save.js +20 -0
- package/build-module/form/save.js.map +1 -0
- package/build-module/form/utils.js +15 -0
- package/build-module/form/utils.js.map +1 -0
- package/build-module/form/variations.js +86 -0
- package/build-module/form/variations.js.map +1 -0
- package/build-module/form/view.js +40 -0
- package/build-module/form/view.js.map +1 -0
- package/build-module/form-input/edit.js +115 -0
- package/build-module/form-input/edit.js.map +1 -0
- package/build-module/form-input/index.js +95 -0
- package/build-module/form-input/index.js.map +1 -0
- package/build-module/form-input/init.js +6 -0
- package/build-module/form-input/init.js.map +1 -0
- package/build-module/form-input/save.js +80 -0
- package/build-module/form-input/save.js.map +1 -0
- package/build-module/form-input/variations.js +85 -0
- package/build-module/form-input/variations.js.map +1 -0
- package/build-module/form-submission-notification/edit.js +50 -0
- package/build-module/form-submission-notification/edit.js.map +1 -0
- package/build-module/form-submission-notification/index.js +47 -0
- package/build-module/form-submission-notification/index.js.map +1 -0
- package/build-module/form-submission-notification/init.js +6 -0
- package/build-module/form-submission-notification/init.js.map +1 -0
- package/build-module/form-submission-notification/save.js +25 -0
- package/build-module/form-submission-notification/save.js.map +1 -0
- package/build-module/form-submission-notification/variations.js +55 -0
- package/build-module/form-submission-notification/variations.js.map +1 -0
- package/build-module/form-submit-button/edit.js +24 -0
- package/build-module/form-submit-button/edit.js.map +1 -0
- package/build-module/form-submit-button/index.js +34 -0
- package/build-module/form-submit-button/index.js.map +1 -0
- package/build-module/form-submit-button/init.js +6 -0
- package/build-module/form-submit-button/init.js.map +1 -0
- package/build-module/form-submit-button/save.js +14 -0
- package/build-module/form-submit-button/save.js.map +1 -0
- package/build-module/group/edit.js +3 -12
- package/build-module/group/edit.js.map +1 -1
- package/build-module/group/index.js +0 -1
- package/build-module/group/index.js.map +1 -1
- package/build-module/heading/index.js +3 -2
- package/build-module/heading/index.js.map +1 -1
- package/build-module/html/preview.js +2 -4
- package/build-module/html/preview.js.map +1 -1
- package/build-module/image/image.js +16 -7
- package/build-module/image/image.js.map +1 -1
- package/build-module/image/view.js +71 -39
- package/build-module/image/view.js.map +1 -1
- package/build-module/index.js +10 -0
- package/build-module/index.js.map +1 -1
- package/build-module/latest-posts/edit.js +6 -2
- package/build-module/latest-posts/edit.js.map +1 -1
- package/build-module/list-item/hooks/use-merge.js +15 -15
- package/build-module/list-item/hooks/use-merge.js.map +1 -1
- package/build-module/lock-unlock.js +1 -1
- package/build-module/lock-unlock.js.map +1 -1
- package/build-module/missing/edit.native.js +58 -68
- package/build-module/missing/edit.native.js.map +1 -1
- package/build-module/navigation/edit/index.js +0 -1
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/index.js +2 -1
- package/build-module/navigation/index.js.map +1 -1
- package/build-module/navigation/view.js +27 -5
- package/build-module/navigation/view.js.map +1 -1
- package/build-module/page-list-item/edit.js +3 -1
- package/build-module/page-list-item/edit.js.map +1 -1
- package/build-module/paragraph/edit.js +2 -2
- package/build-module/paragraph/edit.js.map +1 -1
- package/build-module/paragraph/index.js +7 -0
- package/build-module/paragraph/index.js.map +1 -1
- package/build-module/pattern/index.js +2 -1
- package/build-module/pattern/index.js.map +1 -1
- package/build-module/post-featured-image/dimension-controls.js +3 -3
- package/build-module/post-featured-image/dimension-controls.js.map +1 -1
- package/build-module/query/edit/enhanced-pagination-modal.js +28 -14
- package/build-module/query/edit/enhanced-pagination-modal.js.map +1 -1
- package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js +17 -14
- package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
- package/build-module/query/utils.js +27 -5
- package/build-module/query/utils.js.map +1 -1
- package/build-module/query/view.js +4 -2
- package/build-module/query/view.js.map +1 -1
- package/build-module/search/edit.js +2 -3
- package/build-module/search/edit.js.map +1 -1
- package/build-module/social-link/edit.native.js +8 -20
- package/build-module/social-link/edit.native.js.map +1 -1
- package/build-module/spacer/controls.js +4 -4
- package/build-module/spacer/controls.js.map +1 -1
- package/build-module/spacer/controls.native.js +3 -2
- package/build-module/spacer/controls.native.js.map +1 -1
- package/build-module/spacer/edit.js +2 -2
- package/build-module/spacer/edit.js.map +1 -1
- package/build-module/spacer/edit.native.js +6 -2
- package/build-module/spacer/edit.native.js.map +1 -1
- package/build-module/tag-cloud/edit.js +3 -2
- package/build-module/tag-cloud/edit.js.map +1 -1
- package/build-module/template-part/edit/inner-blocks.js +3 -3
- package/build-module/template-part/edit/inner-blocks.js.map +1 -1
- package/build-module/template-part/index.js +2 -1
- package/build-module/template-part/index.js.map +1 -1
- package/build-module/term-description/index.js +0 -1
- package/build-module/term-description/index.js.map +1 -1
- package/build-style/editor-rtl.css +50 -0
- package/build-style/editor.css +50 -0
- package/build-style/file/style-rtl.css +0 -5
- package/build-style/file/style.css +0 -5
- package/build-style/form-input/editor-rtl.css +106 -0
- package/build-style/form-input/editor.css +106 -0
- package/build-style/form-input/style-rtl.css +135 -0
- package/build-style/form-input/style.css +135 -0
- package/build-style/form-submission-notification/editor-rtl.css +118 -0
- package/build-style/form-submission-notification/editor.css +118 -0
- package/build-style/form-submit-button/style-rtl.css +91 -0
- package/build-style/form-submit-button/style.css +91 -0
- package/build-style/image/style-rtl.css +39 -5
- package/build-style/image/style.css +39 -5
- package/build-style/navigation/style-rtl.css +5 -0
- package/build-style/navigation/style.css +5 -0
- package/build-style/query/style-rtl.css +0 -10
- package/build-style/query/style.css +0 -10
- package/build-style/style-rtl.css +92 -10
- package/build-style/style.css +92 -10
- package/package.json +32 -32
- package/src/avatar/block.json +5 -1
- package/src/block/block.json +2 -1
- package/src/block/edit-title.native.js +16 -13
- package/src/calendar/index.php +2 -6
- package/src/code/edit.native.js +15 -1
- package/src/column/edit.js +3 -8
- package/src/column/edit.native.js +3 -8
- package/src/columns/edit.native.js +3 -8
- package/src/comment-author-avatar/index.php +1 -1
- package/src/cover/block.json +0 -3
- package/src/cover/controls.native.js +3 -8
- package/src/cover/deprecated.js +151 -1
- package/src/cover/edit/index.js +15 -5
- package/src/cover/edit/inspector-controls.js +22 -33
- package/src/cover/save.js +2 -1
- package/src/cover/shared.js +1 -1
- package/src/editor.scss +2 -0
- package/src/file/index.php +2 -1
- package/src/file/style.scss +0 -6
- package/src/file/view.js +2 -2
- package/src/footnotes/block.json +1 -0
- package/src/form/block.json +60 -0
- package/src/form/edit.js +179 -0
- package/src/form/index.js +20 -0
- package/src/form/index.php +214 -0
- package/src/form/init.js +6 -0
- package/src/form/save.js +20 -0
- package/src/form/utils.js +39 -0
- package/src/form/variations.js +139 -0
- package/src/form/view.js +41 -0
- package/src/form-input/block.json +73 -0
- package/src/form-input/edit.js +151 -0
- package/src/form-input/editor.scss +24 -0
- package/src/form-input/index.js +20 -0
- package/src/form-input/index.php +45 -0
- package/src/form-input/init.js +6 -0
- package/src/form-input/save.js +83 -0
- package/src/form-input/style.scss +61 -0
- package/src/form-input/variations.js +82 -0
- package/src/form-submission-notification/block.json +19 -0
- package/src/form-submission-notification/edit.js +63 -0
- package/src/form-submission-notification/editor.scss +45 -0
- package/src/form-submission-notification/index.js +26 -0
- package/src/form-submission-notification/index.php +48 -0
- package/src/form-submission-notification/init.js +6 -0
- package/src/form-submission-notification/save.js +28 -0
- package/src/form-submission-notification/variations.js +59 -0
- package/src/form-submit-button/block.json +14 -0
- package/src/form-submit-button/edit.js +33 -0
- package/src/form-submit-button/index.js +18 -0
- package/src/form-submit-button/init.js +6 -0
- package/src/form-submit-button/save.js +14 -0
- package/src/form-submit-button/style.scss +3 -0
- package/src/freeform/test/__snapshots__/index.native.js.snap +7 -0
- package/src/freeform/test/index.native.js +57 -0
- package/src/group/block.json +0 -1
- package/src/group/edit.js +2 -7
- package/src/heading/index.js +4 -2
- package/src/html/preview.js +9 -4
- package/src/image/image.js +27 -6
- package/src/image/index.php +128 -83
- package/src/image/style.scss +49 -5
- package/src/image/view.js +93 -51
- package/src/index.js +10 -0
- package/src/latest-posts/edit.js +11 -2
- package/src/latest-posts/index.php +17 -8
- package/src/list-item/hooks/use-merge.js +20 -23
- package/src/lock-unlock.js +1 -1
- package/src/missing/edit.native.js +56 -117
- package/src/missing/style.native.scss +0 -67
- package/src/missing/test/edit-integration.native.js +135 -49
- package/src/missing/test/edit.native.js +0 -41
- package/src/navigation/block.json +2 -1
- package/src/navigation/edit/index.js +0 -1
- package/src/navigation/index.php +28 -8
- package/src/navigation/style.scss +6 -1
- package/src/navigation/view.js +25 -6
- package/src/page-list-item/edit.js +2 -0
- package/src/paragraph/edit.js +2 -2
- package/src/paragraph/index.js +10 -0
- package/src/pattern/block.json +2 -1
- package/src/pattern/index.php +0 -3
- package/src/post-featured-image/dimension-controls.js +3 -3
- package/src/post-navigation-link/index.php +2 -1
- package/src/preformatted/test/edit.native.js +38 -0
- package/src/query/edit/enhanced-pagination-modal.js +37 -21
- package/src/query/edit/inspector-controls/enhanced-pagination-control.js +18 -22
- package/src/query/index.php +100 -10
- package/src/query/style.scss +0 -11
- package/src/query/utils.js +29 -8
- package/src/query/view.js +11 -2
- package/src/query-pagination-next/index.php +1 -1
- package/src/query-pagination-previous/index.php +1 -1
- package/src/search/edit.js +5 -3
- package/src/search/index.php +0 -4
- package/src/social-link/edit.native.js +12 -26
- package/src/social-link/editor.native.scss +0 -9
- package/src/social-link/index.php +2 -2
- package/src/spacer/controls.js +9 -12
- package/src/spacer/controls.native.js +3 -8
- package/src/spacer/edit.js +2 -2
- package/src/spacer/edit.native.js +6 -5
- package/src/style.scss +1 -0
- package/src/tag-cloud/edit.js +3 -7
- package/src/template-part/block.json +2 -1
- package/src/template-part/edit/inner-blocks.js +3 -3
- package/src/template-part/index.php +4 -7
- package/src/term-description/block.json +0 -1
- package/src/verse/test/edit.native.js +37 -0
|
@@ -296,6 +296,7 @@ button.wp-block-navigation-item__content {
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle {
|
|
299
|
+
padding-left: 0;
|
|
299
300
|
padding-right: 0.85em;
|
|
300
301
|
}
|
|
301
302
|
.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle + .wp-block-navigation__submenu-icon {
|
|
@@ -303,6 +304,10 @@ button.wp-block-navigation-item__content {
|
|
|
303
304
|
pointer-events: none;
|
|
304
305
|
}
|
|
305
306
|
|
|
307
|
+
.wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle) {
|
|
308
|
+
padding: 0;
|
|
309
|
+
}
|
|
310
|
+
|
|
306
311
|
/**
|
|
307
312
|
* Margins
|
|
308
313
|
*/
|
|
@@ -127,14 +127,4 @@
|
|
|
127
127
|
100% {
|
|
128
128
|
opacity: 0;
|
|
129
129
|
}
|
|
130
|
-
}
|
|
131
|
-
.wp-block-query__enhanced-pagination-navigation-announce {
|
|
132
|
-
position: absolute;
|
|
133
|
-
clip: rect(0, 0, 0, 0);
|
|
134
|
-
width: 1px;
|
|
135
|
-
height: 1px;
|
|
136
|
-
padding: 0;
|
|
137
|
-
margin: -1px;
|
|
138
|
-
overflow: hidden;
|
|
139
|
-
border: 0;
|
|
140
130
|
}
|
|
@@ -127,14 +127,4 @@
|
|
|
127
127
|
100% {
|
|
128
128
|
opacity: 0;
|
|
129
129
|
}
|
|
130
|
-
}
|
|
131
|
-
.wp-block-query__enhanced-pagination-navigation-announce {
|
|
132
|
-
position: absolute;
|
|
133
|
-
clip: rect(0, 0, 0, 0);
|
|
134
|
-
width: 1px;
|
|
135
|
-
height: 1px;
|
|
136
|
-
padding: 0;
|
|
137
|
-
margin: -1px;
|
|
138
|
-
overflow: hidden;
|
|
139
|
-
border: 0;
|
|
140
130
|
}
|
|
@@ -1137,11 +1137,6 @@ section.wp-block-cover-image > h2,
|
|
|
1137
1137
|
margin-bottom: 1em;
|
|
1138
1138
|
}
|
|
1139
1139
|
|
|
1140
|
-
@media (max-width: 768px) {
|
|
1141
|
-
.wp-block-file__embed {
|
|
1142
|
-
display: none;
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
1140
|
:where(.wp-block-file__button) {
|
|
1146
1141
|
border-radius: 2em;
|
|
1147
1142
|
padding: 0.5em 1em;
|
|
@@ -1154,6 +1149,54 @@ section.wp-block-cover-image > h2,
|
|
|
1154
1149
|
text-decoration: none;
|
|
1155
1150
|
}
|
|
1156
1151
|
|
|
1152
|
+
.wp-block-form-input__label {
|
|
1153
|
+
width: 100%;
|
|
1154
|
+
display: flex;
|
|
1155
|
+
flex-direction: column;
|
|
1156
|
+
gap: 0.25em;
|
|
1157
|
+
margin-bottom: 0.5em;
|
|
1158
|
+
/*
|
|
1159
|
+
Small tweak to left-align the checkbox.
|
|
1160
|
+
Even though `:has` is not currently supported in Firefox, this is a small tweak
|
|
1161
|
+
and does not affect the functionality of the block or the user's experience.
|
|
1162
|
+
There will be a minor inconsistency between browsers. However, it's more important to provide
|
|
1163
|
+
a better experience for 80+% of users, until Firefox catches up and supports `:has`.
|
|
1164
|
+
*/
|
|
1165
|
+
}
|
|
1166
|
+
.wp-block-form-input__label.is-label-inline {
|
|
1167
|
+
flex-direction: row;
|
|
1168
|
+
gap: 0.5em;
|
|
1169
|
+
align-items: center;
|
|
1170
|
+
}
|
|
1171
|
+
.wp-block-form-input__label.is-label-inline .wp-block-form-input__label-content {
|
|
1172
|
+
margin-bottom: 0.5em;
|
|
1173
|
+
}
|
|
1174
|
+
.wp-block-form-input__label:has(input[type=checkbox]) {
|
|
1175
|
+
width: -moz-fit-content;
|
|
1176
|
+
width: fit-content;
|
|
1177
|
+
flex-direction: row-reverse;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
.wp-block-form-input__label-content {
|
|
1181
|
+
width: -moz-fit-content;
|
|
1182
|
+
width: fit-content;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
.wp-block-form-input__input {
|
|
1186
|
+
padding: 0 0.5em;
|
|
1187
|
+
font-size: 1em;
|
|
1188
|
+
margin-bottom: 0.5em;
|
|
1189
|
+
}
|
|
1190
|
+
.wp-block-form-input__input[type=text], .wp-block-form-input__input[type=password], .wp-block-form-input__input[type=date], .wp-block-form-input__input[type=datetime], .wp-block-form-input__input[type=datetime-local], .wp-block-form-input__input[type=email], .wp-block-form-input__input[type=month], .wp-block-form-input__input[type=number], .wp-block-form-input__input[type=search], .wp-block-form-input__input[type=tel], .wp-block-form-input__input[type=time], .wp-block-form-input__input[type=url], .wp-block-form-input__input[type=week] {
|
|
1191
|
+
min-height: 2em;
|
|
1192
|
+
line-height: 2;
|
|
1193
|
+
border: 1px solid;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
textarea.wp-block-form-input__input {
|
|
1197
|
+
min-height: 10em;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1157
1200
|
.wp-block-gallery:not(.has-nested-images),
|
|
1158
1201
|
.blocks-gallery-grid:not(.has-nested-images) {
|
|
1159
1202
|
display: flex;
|
|
@@ -1617,21 +1660,46 @@ h6.has-text-align-left[style*=writing-mode]:where([style*="vertical-lr"]) {
|
|
|
1617
1660
|
|
|
1618
1661
|
.wp-lightbox-container {
|
|
1619
1662
|
position: relative;
|
|
1663
|
+
display: flex;
|
|
1664
|
+
flex-direction: column;
|
|
1665
|
+
}
|
|
1666
|
+
.wp-lightbox-container img {
|
|
1667
|
+
cursor: zoom-in;
|
|
1668
|
+
}
|
|
1669
|
+
.wp-lightbox-container img:hover + button {
|
|
1670
|
+
opacity: 1;
|
|
1620
1671
|
}
|
|
1621
1672
|
.wp-lightbox-container button {
|
|
1673
|
+
opacity: 0;
|
|
1622
1674
|
border: none;
|
|
1623
|
-
background:
|
|
1675
|
+
background: #000;
|
|
1624
1676
|
cursor: zoom-in;
|
|
1625
|
-
width:
|
|
1626
|
-
height:
|
|
1677
|
+
width: 24px;
|
|
1678
|
+
height: 24px;
|
|
1627
1679
|
position: absolute;
|
|
1628
1680
|
z-index: 100;
|
|
1681
|
+
top: 10px;
|
|
1682
|
+
left: 10px;
|
|
1683
|
+
text-align: center;
|
|
1684
|
+
padding: 0;
|
|
1685
|
+
border-radius: 10%;
|
|
1629
1686
|
}
|
|
1630
1687
|
.wp-lightbox-container button:focus-visible {
|
|
1631
1688
|
outline: 5px auto #212121;
|
|
1632
1689
|
outline: 5px auto -webkit-focus-ring-color;
|
|
1633
1690
|
outline-offset: 5px;
|
|
1634
1691
|
}
|
|
1692
|
+
.wp-lightbox-container button:hover {
|
|
1693
|
+
cursor: pointer;
|
|
1694
|
+
opacity: 1;
|
|
1695
|
+
}
|
|
1696
|
+
.wp-lightbox-container button:focus {
|
|
1697
|
+
opacity: 1;
|
|
1698
|
+
}
|
|
1699
|
+
.wp-lightbox-container button:hover, .wp-lightbox-container button:focus, .wp-lightbox-container button:not(:hover):not(:active):not(.has-background) {
|
|
1700
|
+
background: #000;
|
|
1701
|
+
border: none;
|
|
1702
|
+
}
|
|
1635
1703
|
|
|
1636
1704
|
.wp-lightbox-overlay {
|
|
1637
1705
|
position: fixed;
|
|
@@ -1647,11 +1715,20 @@ h6.has-text-align-left[style*=writing-mode]:where([style*="vertical-lr"]) {
|
|
|
1647
1715
|
}
|
|
1648
1716
|
.wp-lightbox-overlay .close-button {
|
|
1649
1717
|
position: absolute;
|
|
1650
|
-
top: calc(env(safe-area-inset-top) +
|
|
1651
|
-
left: calc(env(safe-area-inset-left) +
|
|
1718
|
+
top: calc(env(safe-area-inset-top) + 16px);
|
|
1719
|
+
left: calc(env(safe-area-inset-left) + 16px);
|
|
1652
1720
|
padding: 0;
|
|
1653
1721
|
cursor: pointer;
|
|
1654
1722
|
z-index: 5000000;
|
|
1723
|
+
min-width: 40px;
|
|
1724
|
+
min-height: 40px;
|
|
1725
|
+
display: flex;
|
|
1726
|
+
align-items: center;
|
|
1727
|
+
justify-content: center;
|
|
1728
|
+
}
|
|
1729
|
+
.wp-lightbox-overlay .close-button:hover, .wp-lightbox-overlay .close-button:focus, .wp-lightbox-overlay .close-button:not(:hover):not(:active):not(.has-background) {
|
|
1730
|
+
background: none;
|
|
1731
|
+
border: none;
|
|
1655
1732
|
}
|
|
1656
1733
|
.wp-lightbox-overlay .lightbox-image-container {
|
|
1657
1734
|
position: absolute;
|
|
@@ -2253,6 +2330,7 @@ button.wp-block-navigation-item__content {
|
|
|
2253
2330
|
}
|
|
2254
2331
|
|
|
2255
2332
|
.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle {
|
|
2333
|
+
padding-right: 0;
|
|
2256
2334
|
padding-left: 0.85em;
|
|
2257
2335
|
}
|
|
2258
2336
|
.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle + .wp-block-navigation__submenu-icon {
|
|
@@ -2260,6 +2338,10 @@ button.wp-block-navigation-item__content {
|
|
|
2260
2338
|
pointer-events: none;
|
|
2261
2339
|
}
|
|
2262
2340
|
|
|
2341
|
+
.wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle) {
|
|
2342
|
+
padding: 0;
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2263
2345
|
/**
|
|
2264
2346
|
* Margins
|
|
2265
2347
|
*/
|
package/build-style/style.css
CHANGED
|
@@ -1145,11 +1145,6 @@ section.wp-block-cover-image > h2,
|
|
|
1145
1145
|
margin-bottom: 1em;
|
|
1146
1146
|
}
|
|
1147
1147
|
|
|
1148
|
-
@media (max-width: 768px) {
|
|
1149
|
-
.wp-block-file__embed {
|
|
1150
|
-
display: none;
|
|
1151
|
-
}
|
|
1152
|
-
}
|
|
1153
1148
|
:where(.wp-block-file__button) {
|
|
1154
1149
|
border-radius: 2em;
|
|
1155
1150
|
padding: 0.5em 1em;
|
|
@@ -1162,6 +1157,54 @@ section.wp-block-cover-image > h2,
|
|
|
1162
1157
|
text-decoration: none;
|
|
1163
1158
|
}
|
|
1164
1159
|
|
|
1160
|
+
.wp-block-form-input__label {
|
|
1161
|
+
width: 100%;
|
|
1162
|
+
display: flex;
|
|
1163
|
+
flex-direction: column;
|
|
1164
|
+
gap: 0.25em;
|
|
1165
|
+
margin-bottom: 0.5em;
|
|
1166
|
+
/*
|
|
1167
|
+
Small tweak to left-align the checkbox.
|
|
1168
|
+
Even though `:has` is not currently supported in Firefox, this is a small tweak
|
|
1169
|
+
and does not affect the functionality of the block or the user's experience.
|
|
1170
|
+
There will be a minor inconsistency between browsers. However, it's more important to provide
|
|
1171
|
+
a better experience for 80+% of users, until Firefox catches up and supports `:has`.
|
|
1172
|
+
*/
|
|
1173
|
+
}
|
|
1174
|
+
.wp-block-form-input__label.is-label-inline {
|
|
1175
|
+
flex-direction: row;
|
|
1176
|
+
gap: 0.5em;
|
|
1177
|
+
align-items: center;
|
|
1178
|
+
}
|
|
1179
|
+
.wp-block-form-input__label.is-label-inline .wp-block-form-input__label-content {
|
|
1180
|
+
margin-bottom: 0.5em;
|
|
1181
|
+
}
|
|
1182
|
+
.wp-block-form-input__label:has(input[type=checkbox]) {
|
|
1183
|
+
width: -moz-fit-content;
|
|
1184
|
+
width: fit-content;
|
|
1185
|
+
flex-direction: row-reverse;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
.wp-block-form-input__label-content {
|
|
1189
|
+
width: -moz-fit-content;
|
|
1190
|
+
width: fit-content;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
.wp-block-form-input__input {
|
|
1194
|
+
padding: 0 0.5em;
|
|
1195
|
+
font-size: 1em;
|
|
1196
|
+
margin-bottom: 0.5em;
|
|
1197
|
+
}
|
|
1198
|
+
.wp-block-form-input__input[type=text], .wp-block-form-input__input[type=password], .wp-block-form-input__input[type=date], .wp-block-form-input__input[type=datetime], .wp-block-form-input__input[type=datetime-local], .wp-block-form-input__input[type=email], .wp-block-form-input__input[type=month], .wp-block-form-input__input[type=number], .wp-block-form-input__input[type=search], .wp-block-form-input__input[type=tel], .wp-block-form-input__input[type=time], .wp-block-form-input__input[type=url], .wp-block-form-input__input[type=week] {
|
|
1199
|
+
min-height: 2em;
|
|
1200
|
+
line-height: 2;
|
|
1201
|
+
border: 1px solid;
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
textarea.wp-block-form-input__input {
|
|
1205
|
+
min-height: 10em;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1165
1208
|
.wp-block-gallery:not(.has-nested-images),
|
|
1166
1209
|
.blocks-gallery-grid:not(.has-nested-images) {
|
|
1167
1210
|
display: flex;
|
|
@@ -1631,21 +1674,46 @@ h6.has-text-align-left[style*=writing-mode]:where([style*="vertical-lr"]) {
|
|
|
1631
1674
|
|
|
1632
1675
|
.wp-lightbox-container {
|
|
1633
1676
|
position: relative;
|
|
1677
|
+
display: flex;
|
|
1678
|
+
flex-direction: column;
|
|
1679
|
+
}
|
|
1680
|
+
.wp-lightbox-container img {
|
|
1681
|
+
cursor: zoom-in;
|
|
1682
|
+
}
|
|
1683
|
+
.wp-lightbox-container img:hover + button {
|
|
1684
|
+
opacity: 1;
|
|
1634
1685
|
}
|
|
1635
1686
|
.wp-lightbox-container button {
|
|
1687
|
+
opacity: 0;
|
|
1636
1688
|
border: none;
|
|
1637
|
-
background:
|
|
1689
|
+
background: #000;
|
|
1638
1690
|
cursor: zoom-in;
|
|
1639
|
-
width:
|
|
1640
|
-
height:
|
|
1691
|
+
width: 24px;
|
|
1692
|
+
height: 24px;
|
|
1641
1693
|
position: absolute;
|
|
1642
1694
|
z-index: 100;
|
|
1695
|
+
top: 10px;
|
|
1696
|
+
right: 10px;
|
|
1697
|
+
text-align: center;
|
|
1698
|
+
padding: 0;
|
|
1699
|
+
border-radius: 10%;
|
|
1643
1700
|
}
|
|
1644
1701
|
.wp-lightbox-container button:focus-visible {
|
|
1645
1702
|
outline: 5px auto #212121;
|
|
1646
1703
|
outline: 5px auto -webkit-focus-ring-color;
|
|
1647
1704
|
outline-offset: 5px;
|
|
1648
1705
|
}
|
|
1706
|
+
.wp-lightbox-container button:hover {
|
|
1707
|
+
cursor: pointer;
|
|
1708
|
+
opacity: 1;
|
|
1709
|
+
}
|
|
1710
|
+
.wp-lightbox-container button:focus {
|
|
1711
|
+
opacity: 1;
|
|
1712
|
+
}
|
|
1713
|
+
.wp-lightbox-container button:hover, .wp-lightbox-container button:focus, .wp-lightbox-container button:not(:hover):not(:active):not(.has-background) {
|
|
1714
|
+
background: #000;
|
|
1715
|
+
border: none;
|
|
1716
|
+
}
|
|
1649
1717
|
|
|
1650
1718
|
.wp-lightbox-overlay {
|
|
1651
1719
|
position: fixed;
|
|
@@ -1661,11 +1729,20 @@ h6.has-text-align-left[style*=writing-mode]:where([style*="vertical-lr"]) {
|
|
|
1661
1729
|
}
|
|
1662
1730
|
.wp-lightbox-overlay .close-button {
|
|
1663
1731
|
position: absolute;
|
|
1664
|
-
top: calc(env(safe-area-inset-top) +
|
|
1665
|
-
right: calc(env(safe-area-inset-right) +
|
|
1732
|
+
top: calc(env(safe-area-inset-top) + 16px);
|
|
1733
|
+
right: calc(env(safe-area-inset-right) + 16px);
|
|
1666
1734
|
padding: 0;
|
|
1667
1735
|
cursor: pointer;
|
|
1668
1736
|
z-index: 5000000;
|
|
1737
|
+
min-width: 40px;
|
|
1738
|
+
min-height: 40px;
|
|
1739
|
+
display: flex;
|
|
1740
|
+
align-items: center;
|
|
1741
|
+
justify-content: center;
|
|
1742
|
+
}
|
|
1743
|
+
.wp-lightbox-overlay .close-button:hover, .wp-lightbox-overlay .close-button:focus, .wp-lightbox-overlay .close-button:not(:hover):not(:active):not(.has-background) {
|
|
1744
|
+
background: none;
|
|
1745
|
+
border: none;
|
|
1669
1746
|
}
|
|
1670
1747
|
.wp-lightbox-overlay .lightbox-image-container {
|
|
1671
1748
|
position: absolute;
|
|
@@ -2283,6 +2360,7 @@ button.wp-block-navigation-item__content {
|
|
|
2283
2360
|
}
|
|
2284
2361
|
|
|
2285
2362
|
.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle {
|
|
2363
|
+
padding-left: 0;
|
|
2286
2364
|
padding-right: 0.85em;
|
|
2287
2365
|
}
|
|
2288
2366
|
.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle + .wp-block-navigation__submenu-icon {
|
|
@@ -2290,6 +2368,10 @@ button.wp-block-navigation-item__content {
|
|
|
2290
2368
|
pointer-events: none;
|
|
2291
2369
|
}
|
|
2292
2370
|
|
|
2371
|
+
.wp-block-navigation-item.open-on-click button.wp-block-navigation-item__content:not(.wp-block-navigation-submenu__toggle) {
|
|
2372
|
+
padding: 0;
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2293
2375
|
/**
|
|
2294
2376
|
* Margins
|
|
2295
2377
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.21.1-next.f8d8eceb.0",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -31,36 +31,36 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.16.0",
|
|
34
|
-
"@wordpress/a11y": "^3.
|
|
35
|
-
"@wordpress/api-fetch": "^6.
|
|
36
|
-
"@wordpress/autop": "^3.
|
|
37
|
-
"@wordpress/blob": "^3.
|
|
38
|
-
"@wordpress/block-editor": "^12.
|
|
39
|
-
"@wordpress/blocks": "^12.
|
|
40
|
-
"@wordpress/components": "^25.
|
|
41
|
-
"@wordpress/compose": "^6.
|
|
42
|
-
"@wordpress/core-data": "^6.
|
|
43
|
-
"@wordpress/data": "^9.
|
|
44
|
-
"@wordpress/date": "^4.
|
|
45
|
-
"@wordpress/deprecated": "^3.
|
|
46
|
-
"@wordpress/dom": "^3.
|
|
47
|
-
"@wordpress/element": "^5.
|
|
48
|
-
"@wordpress/escape-html": "^2.
|
|
49
|
-
"@wordpress/hooks": "^3.
|
|
50
|
-
"@wordpress/html-entities": "^3.
|
|
51
|
-
"@wordpress/i18n": "^4.
|
|
52
|
-
"@wordpress/icons": "^9.
|
|
53
|
-
"@wordpress/interactivity": "^2.
|
|
54
|
-
"@wordpress/keycodes": "^3.
|
|
55
|
-
"@wordpress/notices": "^4.
|
|
56
|
-
"@wordpress/primitives": "^3.
|
|
57
|
-
"@wordpress/private-apis": "^0.
|
|
58
|
-
"@wordpress/reusable-blocks": "^4.
|
|
59
|
-
"@wordpress/rich-text": "^6.
|
|
60
|
-
"@wordpress/server-side-render": "^4.
|
|
61
|
-
"@wordpress/url": "^3.
|
|
62
|
-
"@wordpress/viewport": "^5.
|
|
63
|
-
"@wordpress/wordcount": "^3.
|
|
34
|
+
"@wordpress/a11y": "^3.44.1-next.f8d8eceb.0",
|
|
35
|
+
"@wordpress/api-fetch": "^6.41.1-next.f8d8eceb.0",
|
|
36
|
+
"@wordpress/autop": "^3.44.1-next.f8d8eceb.0",
|
|
37
|
+
"@wordpress/blob": "^3.44.1-next.f8d8eceb.0",
|
|
38
|
+
"@wordpress/block-editor": "^12.12.2-next.f8d8eceb.0",
|
|
39
|
+
"@wordpress/blocks": "^12.21.1-next.f8d8eceb.0",
|
|
40
|
+
"@wordpress/components": "^25.11.1-next.f8d8eceb.0",
|
|
41
|
+
"@wordpress/compose": "^6.21.1-next.f8d8eceb.0",
|
|
42
|
+
"@wordpress/core-data": "^6.21.1-next.f8d8eceb.0",
|
|
43
|
+
"@wordpress/data": "^9.14.1-next.f8d8eceb.0",
|
|
44
|
+
"@wordpress/date": "^4.44.1-next.f8d8eceb.0",
|
|
45
|
+
"@wordpress/deprecated": "^3.44.1-next.f8d8eceb.0",
|
|
46
|
+
"@wordpress/dom": "^3.44.1-next.f8d8eceb.0",
|
|
47
|
+
"@wordpress/element": "^5.21.1-next.f8d8eceb.0",
|
|
48
|
+
"@wordpress/escape-html": "^2.44.1-next.f8d8eceb.0",
|
|
49
|
+
"@wordpress/hooks": "^3.44.1-next.f8d8eceb.0",
|
|
50
|
+
"@wordpress/html-entities": "^3.44.1-next.f8d8eceb.0",
|
|
51
|
+
"@wordpress/i18n": "^4.44.1-next.f8d8eceb.0",
|
|
52
|
+
"@wordpress/icons": "^9.35.1-next.f8d8eceb.0",
|
|
53
|
+
"@wordpress/interactivity": "^2.5.2-next.f8d8eceb.0",
|
|
54
|
+
"@wordpress/keycodes": "^3.44.1-next.f8d8eceb.0",
|
|
55
|
+
"@wordpress/notices": "^4.12.1-next.f8d8eceb.0",
|
|
56
|
+
"@wordpress/primitives": "^3.42.1-next.f8d8eceb.0",
|
|
57
|
+
"@wordpress/private-apis": "^0.26.1-next.f8d8eceb.0",
|
|
58
|
+
"@wordpress/reusable-blocks": "^4.21.1-next.f8d8eceb.0",
|
|
59
|
+
"@wordpress/rich-text": "^6.21.1-next.f8d8eceb.0",
|
|
60
|
+
"@wordpress/server-side-render": "^4.21.1-next.f8d8eceb.0",
|
|
61
|
+
"@wordpress/url": "^3.45.1-next.f8d8eceb.0",
|
|
62
|
+
"@wordpress/viewport": "^5.21.1-next.f8d8eceb.0",
|
|
63
|
+
"@wordpress/wordcount": "^3.44.1-next.f8d8eceb.0",
|
|
64
64
|
"change-case": "^4.1.2",
|
|
65
65
|
"classnames": "^2.3.1",
|
|
66
66
|
"colord": "^2.7.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "8d8fd197e202b8104ffb1cb83048efd0a6c3faf4"
|
|
82
82
|
}
|
package/src/avatar/block.json
CHANGED
|
@@ -30,7 +30,11 @@
|
|
|
30
30
|
"alignWide": false,
|
|
31
31
|
"spacing": {
|
|
32
32
|
"margin": true,
|
|
33
|
-
"padding": true
|
|
33
|
+
"padding": true,
|
|
34
|
+
"__experimentalDefaultControls": {
|
|
35
|
+
"margin": false,
|
|
36
|
+
"padding": false
|
|
37
|
+
}
|
|
34
38
|
},
|
|
35
39
|
"__experimentalBorder": {
|
|
36
40
|
"__experimentalSkipSerialization": true,
|
package/src/block/block.json
CHANGED
|
@@ -6,7 +6,7 @@ import { Text, View } from 'react-native';
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
8
8
|
*/
|
|
9
|
-
import { Icon } from '@wordpress/components';
|
|
9
|
+
import { Icon, useGlobalStyles } from '@wordpress/components';
|
|
10
10
|
import { __ } from '@wordpress/i18n';
|
|
11
11
|
import { withPreferredColorScheme } from '@wordpress/compose';
|
|
12
12
|
import { help, lock } from '@wordpress/icons';
|
|
@@ -17,18 +17,21 @@ import { help, lock } from '@wordpress/icons';
|
|
|
17
17
|
import styles from './editor.scss';
|
|
18
18
|
|
|
19
19
|
function EditTitle( { getStylesFromColorScheme, title } ) {
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
const globalStyles = useGlobalStyles();
|
|
21
|
+
const baseColors = globalStyles?.baseColors?.color;
|
|
22
|
+
|
|
23
|
+
const lockIconStyle = [
|
|
24
|
+
getStylesFromColorScheme( styles.lockIcon, styles.lockIconDark ),
|
|
25
|
+
baseColors && { color: baseColors.text },
|
|
26
|
+
];
|
|
27
|
+
const titleStyle = [
|
|
28
|
+
getStylesFromColorScheme( styles.title, styles.titleDark ),
|
|
29
|
+
baseColors && { color: baseColors.text },
|
|
30
|
+
];
|
|
31
|
+
const infoIconStyle = [
|
|
32
|
+
getStylesFromColorScheme( styles.infoIcon, styles.infoIconDark ),
|
|
33
|
+
baseColors && { color: baseColors.text },
|
|
34
|
+
];
|
|
32
35
|
const separatorStyle = getStylesFromColorScheme(
|
|
33
36
|
styles.separator,
|
|
34
37
|
styles.separatorDark
|
package/src/calendar/index.php
CHANGED
|
@@ -33,10 +33,8 @@ function render_block_core_calendar( $attributes ) {
|
|
|
33
33
|
str_contains( $permalink_structure, '%monthnum%' ) &&
|
|
34
34
|
str_contains( $permalink_structure, '%year%' )
|
|
35
35
|
) {
|
|
36
|
-
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
|
|
37
36
|
$monthnum = $attributes['month'];
|
|
38
|
-
|
|
39
|
-
$year = $attributes['year'];
|
|
37
|
+
$year = $attributes['year'];
|
|
40
38
|
}
|
|
41
39
|
}
|
|
42
40
|
|
|
@@ -70,10 +68,8 @@ function render_block_core_calendar( $attributes ) {
|
|
|
70
68
|
$calendar
|
|
71
69
|
);
|
|
72
70
|
|
|
73
|
-
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
|
|
74
71
|
$monthnum = $previous_monthnum;
|
|
75
|
-
|
|
76
|
-
$year = $previous_year;
|
|
72
|
+
$year = $previous_year;
|
|
77
73
|
|
|
78
74
|
return $output;
|
|
79
75
|
}
|
package/src/code/edit.native.js
CHANGED
|
@@ -9,6 +9,7 @@ import { View } from 'react-native';
|
|
|
9
9
|
import { PlainText } from '@wordpress/block-editor';
|
|
10
10
|
import { __ } from '@wordpress/i18n';
|
|
11
11
|
import { usePreferredColorSchemeStyle } from '@wordpress/compose';
|
|
12
|
+
import { createBlock, getDefaultBlockName } from '@wordpress/blocks';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Internal dependencies
|
|
@@ -22,7 +23,15 @@ import styles from './theme.scss';
|
|
|
22
23
|
// Note: styling is applied directly to the (nested) PlainText component. Web-side components
|
|
23
24
|
// apply it to the container 'div' but we don't have a proper proposal for cascading styling yet.
|
|
24
25
|
export function CodeEdit( props ) {
|
|
25
|
-
const {
|
|
26
|
+
const {
|
|
27
|
+
attributes,
|
|
28
|
+
setAttributes,
|
|
29
|
+
onFocus,
|
|
30
|
+
onBlur,
|
|
31
|
+
style,
|
|
32
|
+
insertBlocksAfter,
|
|
33
|
+
mergeBlocks,
|
|
34
|
+
} = props;
|
|
26
35
|
const codeStyle = {
|
|
27
36
|
...usePreferredColorSchemeStyle(
|
|
28
37
|
styles.blockCode,
|
|
@@ -40,16 +49,21 @@ export function CodeEdit( props ) {
|
|
|
40
49
|
<View>
|
|
41
50
|
<PlainText
|
|
42
51
|
value={ attributes.content }
|
|
52
|
+
identifier="content"
|
|
43
53
|
style={ codeStyle }
|
|
44
54
|
multiline={ true }
|
|
45
55
|
underlineColorAndroid="transparent"
|
|
46
56
|
onChange={ ( content ) => setAttributes( { content } ) }
|
|
57
|
+
onMerge={ mergeBlocks }
|
|
47
58
|
placeholder={ __( 'Write code…' ) }
|
|
48
59
|
aria-label={ __( 'Code' ) }
|
|
49
60
|
isSelected={ props.isSelected }
|
|
50
61
|
onFocus={ onFocus }
|
|
51
62
|
onBlur={ onBlur }
|
|
52
63
|
placeholderTextColor={ placeholderStyle.color }
|
|
64
|
+
__unstableOnSplitAtDoubleLineEnd={ () =>
|
|
65
|
+
insertBlocksAfter( createBlock( getDefaultBlockName() ) )
|
|
66
|
+
}
|
|
53
67
|
/>
|
|
54
68
|
</View>
|
|
55
69
|
);
|
package/src/column/edit.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
BlockVerticalAlignmentToolbar,
|
|
13
13
|
InspectorControls,
|
|
14
14
|
useBlockProps,
|
|
15
|
-
|
|
15
|
+
useSettings,
|
|
16
16
|
useInnerBlocksProps,
|
|
17
17
|
store as blockEditorStore,
|
|
18
18
|
} from '@wordpress/block-editor';
|
|
@@ -33,14 +33,9 @@ function ColumnEdit( {
|
|
|
33
33
|
[ `is-vertically-aligned-${ verticalAlignment }` ]: verticalAlignment,
|
|
34
34
|
} );
|
|
35
35
|
|
|
36
|
+
const [ availableUnits ] = useSettings( 'spacing.units' );
|
|
36
37
|
const units = useCustomUnits( {
|
|
37
|
-
availableUnits:
|
|
38
|
-
'%',
|
|
39
|
-
'px',
|
|
40
|
-
'em',
|
|
41
|
-
'rem',
|
|
42
|
-
'vw',
|
|
43
|
-
],
|
|
38
|
+
availableUnits: availableUnits || [ '%', 'px', 'em', 'rem', 'vw' ],
|
|
44
39
|
} );
|
|
45
40
|
|
|
46
41
|
const { columnsIds, hasChildBlocks, rootClientId } = useSelect(
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
BlockVerticalAlignmentToolbar,
|
|
16
16
|
InspectorControls,
|
|
17
17
|
store as blockEditorStore,
|
|
18
|
-
|
|
18
|
+
useSettings,
|
|
19
19
|
} from '@wordpress/block-editor';
|
|
20
20
|
import {
|
|
21
21
|
PanelBody,
|
|
@@ -60,14 +60,9 @@ function ColumnEdit( {
|
|
|
60
60
|
|
|
61
61
|
const [ widthUnit, setWidthUnit ] = useState( valueUnit || '%' );
|
|
62
62
|
|
|
63
|
+
const [ availableUnits ] = useSettings( 'spacing.units' );
|
|
63
64
|
const units = useCustomUnits( {
|
|
64
|
-
availableUnits:
|
|
65
|
-
'%',
|
|
66
|
-
'px',
|
|
67
|
-
'em',
|
|
68
|
-
'rem',
|
|
69
|
-
'vw',
|
|
70
|
-
],
|
|
65
|
+
availableUnits: availableUnits || [ '%', 'px', 'em', 'rem', 'vw' ],
|
|
71
66
|
} );
|
|
72
67
|
|
|
73
68
|
const updateAlignment = ( alignment ) => {
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
BlockControls,
|
|
24
24
|
BlockVerticalAlignmentToolbar,
|
|
25
25
|
BlockVariationPicker,
|
|
26
|
-
|
|
26
|
+
useSettings,
|
|
27
27
|
store as blockEditorStore,
|
|
28
28
|
} from '@wordpress/block-editor';
|
|
29
29
|
import { withDispatch, useSelect } from '@wordpress/data';
|
|
@@ -106,14 +106,9 @@ function ColumnsEditContainer( {
|
|
|
106
106
|
const { verticalAlignment, align } = attributes;
|
|
107
107
|
const { width } = sizes || {};
|
|
108
108
|
|
|
109
|
+
const [ availableUnits ] = useSettings( 'spacing.units' );
|
|
109
110
|
const units = useCustomUnits( {
|
|
110
|
-
availableUnits:
|
|
111
|
-
'%',
|
|
112
|
-
'px',
|
|
113
|
-
'em',
|
|
114
|
-
'rem',
|
|
115
|
-
'vw',
|
|
116
|
-
],
|
|
111
|
+
availableUnits: availableUnits || [ '%', 'px', 'em', 'rem', 'vw' ],
|
|
117
112
|
} );
|
|
118
113
|
|
|
119
114
|
useEffect( () => {
|
|
@@ -23,7 +23,7 @@ function render_block_core_comment_author_avatar( $attributes, $content, $block
|
|
|
23
23
|
return '';
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
// This is the only way to
|
|
26
|
+
// This is the only way to retrieve style and classes on different instances.
|
|
27
27
|
$wrapper_attributes = WP_Block_Supports::get_instance()->apply_block_supports();
|
|
28
28
|
|
|
29
29
|
/**
|