@wordpress/block-library 9.48.1 → 10.0.1-next.v.202606191442.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 +11 -0
- package/build/breadcrumbs/edit.cjs +1 -1
- package/build/breadcrumbs/edit.cjs.map +1 -1
- package/build/button/edit.cjs +1 -1
- package/build/button/edit.cjs.map +2 -2
- package/build/categories/edit.cjs +1 -1
- package/build/categories/edit.cjs.map +1 -1
- package/build/code/edit.cjs +1 -1
- package/build/code/edit.cjs.map +2 -2
- package/build/code/index.cjs +1 -1
- package/build/code/index.cjs.map +1 -1
- package/build/columns/utils.cjs.map +1 -1
- package/build/comments/edit/comments-legacy.cjs +1 -1
- package/build/comments/edit/comments-legacy.cjs.map +1 -1
- package/build/comments/edit/placeholder.cjs +4 -4
- package/build/comments/edit/placeholder.cjs.map +1 -1
- package/build/comments-pagination-next/edit.cjs +2 -2
- package/build/comments-pagination-next/edit.cjs.map +1 -1
- package/build/comments-pagination-previous/edit.cjs +2 -2
- package/build/comments-pagination-previous/edit.cjs.map +1 -1
- package/build/cover/deprecated.cjs +3 -3
- package/build/cover/deprecated.cjs.map +2 -2
- package/build/cover/edit/block-controls.cjs +13 -0
- package/build/cover/edit/block-controls.cjs.map +2 -2
- package/build/cover/edit/index.cjs +61 -2
- package/build/cover/edit/index.cjs.map +3 -3
- package/build/cover/edit/inspector-controls.cjs +93 -35
- package/build/cover/edit/inspector-controls.cjs.map +2 -2
- package/build/details/edit.cjs +1 -1
- package/build/details/edit.cjs.map +2 -2
- package/build/embed/embed-placeholder.cjs +1 -1
- package/build/embed/embed-placeholder.cjs.map +2 -2
- package/build/file/edit.cjs +3 -11
- package/build/file/edit.cjs.map +2 -2
- package/build/file/index.cjs +3 -1
- package/build/file/index.cjs.map +3 -3
- package/build/file/transforms.cjs +11 -32
- package/build/file/transforms.cjs.map +2 -2
- package/build/file/variations.cjs +38 -0
- package/build/file/variations.cjs.map +7 -0
- package/build/footnotes/edit.cjs +1 -1
- package/build/footnotes/edit.cjs.map +2 -2
- package/build/form-input/edit.cjs +1 -1
- package/build/form-input/edit.cjs.map +2 -2
- package/build/freeform/edit.cjs +1 -1
- package/build/freeform/edit.cjs.map +1 -1
- package/build/gallery/edit.cjs +2 -2
- package/build/gallery/edit.cjs.map +2 -2
- package/build/home-link/edit.cjs +1 -1
- package/build/home-link/edit.cjs.map +2 -2
- package/build/html/index.cjs +1 -1
- package/build/html/index.cjs.map +2 -2
- package/build/html/modal.cjs +3 -3
- package/build/html/modal.cjs.map +2 -2
- package/build/icon/block.json +12 -0
- package/build/icon/edit.cjs +90 -39
- package/build/icon/edit.cjs.map +3 -3
- package/build/icon/index.cjs +3 -1
- package/build/icon/index.cjs.map +3 -3
- package/build/{tab/save.cjs → icon/variations.cjs} +14 -15
- package/build/icon/variations.cjs.map +7 -0
- package/build/image/block.json +1 -0
- package/build/image/edit.cjs +4 -3
- package/build/image/edit.cjs.map +2 -2
- package/build/image/image.cjs +91 -27
- package/build/image/image.cjs.map +2 -2
- package/build/image/index.cjs +1 -1
- package/build/image/index.cjs.map +2 -2
- package/build/image/transforms.cjs +9 -3
- package/build/image/transforms.cjs.map +2 -2
- package/build/index.cjs +1 -3
- package/build/index.cjs.map +2 -2
- package/build/latest-posts/edit.cjs +1 -1
- package/build/latest-posts/edit.cjs.map +1 -1
- package/build/math/edit.cjs +1 -1
- package/build/math/index.cjs +1 -1
- package/build/math/index.cjs.map +1 -1
- package/build/media-text/constants.cjs +1 -1
- package/build/media-text/constants.cjs.map +2 -2
- package/build/media-text/index.cjs +1 -1
- package/build/media-text/index.cjs.map +2 -2
- package/build/missing/edit.cjs +2 -2
- package/build/missing/edit.cjs.map +1 -1
- package/build/navigation/edit/index.cjs +14 -8
- package/build/navigation/edit/index.cjs.map +2 -2
- package/build/navigation/edit/navigation-menu-selector.cjs +1 -1
- package/build/navigation/edit/navigation-menu-selector.cjs.map +2 -2
- package/build/navigation/edit/placeholder/index.cjs +1 -1
- package/build/navigation/edit/placeholder/index.cjs.map +2 -2
- package/build/navigation-link/edit.cjs +1 -1
- package/build/navigation-link/edit.cjs.map +2 -2
- package/build/navigation-submenu/block.json +7 -0
- package/build/navigation-submenu/edit.cjs +1 -1
- package/build/navigation-submenu/edit.cjs.map +2 -2
- package/build/page-list/block.json +2 -5
- package/build/page-list/edit.cjs +1 -11
- package/build/page-list/edit.cjs.map +2 -2
- package/build/post-author/edit.cjs +1 -1
- package/build/post-author/edit.cjs.map +2 -2
- package/build/post-author/utils.cjs +1 -1
- package/build/post-author/utils.cjs.map +2 -2
- package/build/post-date/edit.cjs +2 -2
- package/build/post-date/edit.cjs.map +2 -2
- package/build/post-excerpt/edit.cjs +2 -2
- package/build/post-excerpt/edit.cjs.map +2 -2
- package/build/post-featured-image/block.json +1 -0
- package/build/post-featured-image/dimension-controls.cjs +90 -178
- package/build/post-featured-image/dimension-controls.cjs.map +3 -3
- package/build/post-featured-image/edit.cjs +47 -17
- package/build/post-featured-image/edit.cjs.map +2 -2
- package/build/post-navigation-link/edit.cjs +2 -2
- package/build/post-navigation-link/edit.cjs.map +2 -2
- package/build/post-time-to-read/edit.cjs +1 -1
- package/build/post-time-to-read/edit.cjs.map +1 -1
- package/build/preformatted/edit.cjs +1 -1
- package/build/preformatted/edit.cjs.map +2 -2
- package/build/pullquote/block.json +1 -3
- package/build/pullquote/deprecated.cjs +114 -9
- package/build/pullquote/deprecated.cjs.map +3 -3
- package/build/pullquote/edit.cjs +43 -61
- package/build/pullquote/edit.cjs.map +3 -3
- package/build/pullquote/save.cjs +5 -26
- package/build/pullquote/save.cjs.map +3 -3
- package/build/query/edit/inspector-controls/enhanced-pagination-control.cjs +1 -1
- package/build/query/edit/inspector-controls/enhanced-pagination-control.cjs.map +1 -1
- package/build/query/edit/inspector-controls/order-control.cjs +2 -2
- package/build/query/edit/inspector-controls/order-control.cjs.map +2 -2
- package/build/query/utils.cjs +2 -2
- package/build/query/utils.cjs.map +2 -2
- package/build/query-pagination-next/edit.cjs +2 -2
- package/build/query-pagination-next/edit.cjs.map +1 -1
- package/build/query-pagination-previous/edit.cjs +2 -2
- package/build/query-pagination-previous/edit.cjs.map +1 -1
- package/build/query-title/edit.cjs +1 -1
- package/build/query-title/edit.cjs.map +2 -2
- package/build/query-total/edit.cjs +1 -1
- package/build/query-total/edit.cjs.map +2 -2
- package/build/quote/index.cjs +1 -1
- package/build/quote/index.cjs.map +2 -2
- package/build/read-more/edit.cjs +1 -1
- package/build/read-more/edit.cjs.map +2 -2
- package/build/rss/edit.cjs +1 -1
- package/build/rss/edit.cjs.map +2 -2
- package/build/search/edit.cjs +3 -3
- package/build/search/edit.cjs.map +2 -2
- package/build/shortcode/edit.cjs +1 -1
- package/build/shortcode/edit.cjs.map +2 -2
- package/build/site-tagline/edit.cjs +1 -1
- package/build/site-tagline/edit.cjs.map +2 -2
- package/build/site-title/edit.cjs +1 -1
- package/build/site-title/edit.cjs.map +2 -2
- package/build/tab-list/block.json +34 -21
- package/build/tab-list/edit.cjs +116 -12
- package/build/tab-list/edit.cjs.map +3 -3
- package/build/tab-list/save.cjs +33 -3
- package/build/tab-list/save.cjs.map +3 -3
- package/build/tab-panel/add-tab-toolbar-control.cjs +19 -8
- package/build/tab-panel/add-tab-toolbar-control.cjs.map +2 -2
- package/build/tab-panel/block.json +2 -6
- package/build/tab-panel/remove-tab-toolbar-control.cjs +9 -14
- package/build/tab-panel/remove-tab-toolbar-control.cjs.map +2 -2
- package/build/tab-panels/block.json +2 -27
- package/build/table/index.cjs +1 -1
- package/build/table/index.cjs.map +2 -2
- package/build/tabs/block.json +3 -17
- package/build/tabs/edit.cjs +7 -21
- package/build/tabs/edit.cjs.map +3 -3
- package/build/tabs/index.cjs +6 -10
- package/build/tabs/index.cjs.map +2 -2
- package/build/tabs/use-tab-list-items-sync.cjs +53 -0
- package/build/tabs/use-tab-list-items-sync.cjs.map +7 -0
- package/build/tabs/view.cjs +2 -10
- package/build/tabs/view.cjs.map +2 -2
- package/build/terms-query/edit/inspector-controls/order-control.cjs +2 -2
- package/build/terms-query/edit/inspector-controls/order-control.cjs.map +2 -2
- package/build/utils/style-state.cjs +164 -0
- package/build/utils/style-state.cjs.map +7 -0
- package/build/utils/waveform-player.cjs +1 -1
- package/build/verse/edit.cjs +1 -1
- package/build/verse/edit.cjs.map +2 -2
- package/build-module/breadcrumbs/edit.mjs +1 -1
- package/build-module/breadcrumbs/edit.mjs.map +1 -1
- package/build-module/button/edit.mjs +1 -1
- package/build-module/button/edit.mjs.map +2 -2
- package/build-module/categories/edit.mjs +1 -1
- package/build-module/categories/edit.mjs.map +1 -1
- package/build-module/code/edit.mjs +1 -1
- package/build-module/code/edit.mjs.map +2 -2
- package/build-module/code/index.mjs +1 -1
- package/build-module/code/index.mjs.map +1 -1
- package/build-module/columns/utils.mjs.map +1 -1
- package/build-module/comments/edit/comments-legacy.mjs +1 -1
- package/build-module/comments/edit/comments-legacy.mjs.map +1 -1
- package/build-module/comments/edit/placeholder.mjs +4 -4
- package/build-module/comments/edit/placeholder.mjs.map +1 -1
- package/build-module/comments-pagination-next/edit.mjs +2 -2
- package/build-module/comments-pagination-next/edit.mjs.map +1 -1
- package/build-module/comments-pagination-previous/edit.mjs +2 -2
- package/build-module/comments-pagination-previous/edit.mjs.map +1 -1
- package/build-module/cover/deprecated.mjs +3 -3
- package/build-module/cover/deprecated.mjs.map +2 -2
- package/build-module/cover/edit/block-controls.mjs +15 -2
- package/build-module/cover/edit/block-controls.mjs.map +2 -2
- package/build-module/cover/edit/index.mjs +64 -3
- package/build-module/cover/edit/index.mjs.map +2 -2
- package/build-module/cover/edit/inspector-controls.mjs +98 -35
- package/build-module/cover/edit/inspector-controls.mjs.map +2 -2
- package/build-module/details/edit.mjs +1 -1
- package/build-module/details/edit.mjs.map +2 -2
- package/build-module/embed/embed-placeholder.mjs +1 -1
- package/build-module/embed/embed-placeholder.mjs.map +2 -2
- package/build-module/file/edit.mjs +5 -13
- package/build-module/file/edit.mjs.map +2 -2
- package/build-module/file/index.mjs +3 -1
- package/build-module/file/index.mjs.map +2 -2
- package/build-module/file/transforms.mjs +11 -32
- package/build-module/file/transforms.mjs.map +2 -2
- package/build-module/file/variations.mjs +17 -0
- package/build-module/file/variations.mjs.map +7 -0
- package/build-module/footnotes/edit.mjs +1 -1
- package/build-module/footnotes/edit.mjs.map +2 -2
- package/build-module/form-input/edit.mjs +1 -1
- package/build-module/form-input/edit.mjs.map +2 -2
- package/build-module/freeform/edit.mjs +1 -1
- package/build-module/freeform/edit.mjs.map +1 -1
- package/build-module/gallery/edit.mjs +2 -2
- package/build-module/gallery/edit.mjs.map +2 -2
- package/build-module/home-link/edit.mjs +1 -1
- package/build-module/home-link/edit.mjs.map +2 -2
- package/build-module/html/index.mjs +1 -1
- package/build-module/html/index.mjs.map +2 -2
- package/build-module/html/modal.mjs +3 -3
- package/build-module/html/modal.mjs.map +2 -2
- package/build-module/icon/block.json +12 -0
- package/build-module/icon/edit.mjs +94 -40
- package/build-module/icon/edit.mjs.map +2 -2
- package/build-module/icon/index.mjs +3 -1
- package/build-module/icon/index.mjs.map +2 -2
- package/build-module/icon/variations.mjs +13 -0
- package/build-module/icon/variations.mjs.map +7 -0
- package/build-module/image/block.json +1 -0
- package/build-module/image/edit.mjs +4 -3
- package/build-module/image/edit.mjs.map +2 -2
- package/build-module/image/image.mjs +96 -27
- package/build-module/image/image.mjs.map +2 -2
- package/build-module/image/index.mjs +1 -1
- package/build-module/image/index.mjs.map +2 -2
- package/build-module/image/transforms.mjs +9 -3
- package/build-module/image/transforms.mjs.map +2 -2
- package/build-module/index.mjs +1 -3
- package/build-module/index.mjs.map +2 -2
- package/build-module/latest-posts/edit.mjs +1 -1
- package/build-module/latest-posts/edit.mjs.map +1 -1
- package/build-module/math/edit.mjs +1 -1
- package/build-module/math/index.mjs +1 -1
- package/build-module/math/index.mjs.map +1 -1
- package/build-module/media-text/constants.mjs +1 -1
- package/build-module/media-text/constants.mjs.map +2 -2
- package/build-module/media-text/index.mjs +1 -1
- package/build-module/media-text/index.mjs.map +2 -2
- package/build-module/missing/edit.mjs +2 -2
- package/build-module/missing/edit.mjs.map +1 -1
- package/build-module/navigation/edit/index.mjs +14 -8
- package/build-module/navigation/edit/index.mjs.map +2 -2
- package/build-module/navigation/edit/navigation-menu-selector.mjs +1 -1
- package/build-module/navigation/edit/navigation-menu-selector.mjs.map +2 -2
- package/build-module/navigation/edit/placeholder/index.mjs +1 -1
- package/build-module/navigation/edit/placeholder/index.mjs.map +2 -2
- package/build-module/navigation-link/edit.mjs +1 -1
- package/build-module/navigation-link/edit.mjs.map +2 -2
- package/build-module/navigation-submenu/block.json +7 -0
- package/build-module/navigation-submenu/edit.mjs +1 -1
- package/build-module/navigation-submenu/edit.mjs.map +2 -2
- package/build-module/page-list/block.json +2 -5
- package/build-module/page-list/edit.mjs +1 -11
- package/build-module/page-list/edit.mjs.map +2 -2
- package/build-module/post-author/edit.mjs +1 -1
- package/build-module/post-author/edit.mjs.map +2 -2
- package/build-module/post-author/utils.mjs +1 -1
- package/build-module/post-author/utils.mjs.map +2 -2
- package/build-module/post-date/edit.mjs +2 -2
- package/build-module/post-date/edit.mjs.map +2 -2
- package/build-module/post-excerpt/edit.mjs +2 -2
- package/build-module/post-excerpt/edit.mjs.map +2 -2
- package/build-module/post-featured-image/block.json +1 -0
- package/build-module/post-featured-image/dimension-controls.mjs +99 -187
- package/build-module/post-featured-image/dimension-controls.mjs.map +2 -2
- package/build-module/post-featured-image/edit.mjs +47 -17
- package/build-module/post-featured-image/edit.mjs.map +2 -2
- package/build-module/post-navigation-link/edit.mjs +2 -2
- package/build-module/post-navigation-link/edit.mjs.map +2 -2
- package/build-module/post-time-to-read/edit.mjs +1 -1
- package/build-module/post-time-to-read/edit.mjs.map +1 -1
- package/build-module/preformatted/edit.mjs +1 -1
- package/build-module/preformatted/edit.mjs.map +2 -2
- package/build-module/pullquote/block.json +1 -3
- package/build-module/pullquote/deprecated.mjs +114 -9
- package/build-module/pullquote/deprecated.mjs.map +2 -2
- package/build-module/pullquote/edit.mjs +44 -67
- package/build-module/pullquote/edit.mjs.map +2 -2
- package/build-module/pullquote/save.mjs +5 -16
- package/build-module/pullquote/save.mjs.map +2 -2
- package/build-module/query/edit/inspector-controls/enhanced-pagination-control.mjs +1 -1
- package/build-module/query/edit/inspector-controls/enhanced-pagination-control.mjs.map +1 -1
- package/build-module/query/edit/inspector-controls/order-control.mjs +2 -2
- package/build-module/query/edit/inspector-controls/order-control.mjs.map +2 -2
- package/build-module/query/utils.mjs +2 -2
- package/build-module/query/utils.mjs.map +2 -2
- package/build-module/query-pagination-next/edit.mjs +2 -2
- package/build-module/query-pagination-next/edit.mjs.map +1 -1
- package/build-module/query-pagination-previous/edit.mjs +2 -2
- package/build-module/query-pagination-previous/edit.mjs.map +1 -1
- package/build-module/query-title/edit.mjs +1 -1
- package/build-module/query-title/edit.mjs.map +2 -2
- package/build-module/query-total/edit.mjs +1 -1
- package/build-module/query-total/edit.mjs.map +2 -2
- package/build-module/quote/index.mjs +1 -1
- package/build-module/quote/index.mjs.map +2 -2
- package/build-module/read-more/edit.mjs +1 -1
- package/build-module/read-more/edit.mjs.map +2 -2
- package/build-module/rss/edit.mjs +1 -1
- package/build-module/rss/edit.mjs.map +2 -2
- package/build-module/search/edit.mjs +3 -3
- package/build-module/search/edit.mjs.map +2 -2
- package/build-module/shortcode/edit.mjs +1 -1
- package/build-module/shortcode/edit.mjs.map +2 -2
- package/build-module/site-tagline/edit.mjs +1 -1
- package/build-module/site-tagline/edit.mjs.map +2 -2
- package/build-module/site-title/edit.mjs +1 -1
- package/build-module/site-title/edit.mjs.map +2 -2
- package/build-module/tab-list/block.json +34 -21
- package/build-module/tab-list/edit.mjs +122 -15
- package/build-module/tab-list/edit.mjs.map +2 -2
- package/build-module/tab-list/save.mjs +29 -4
- package/build-module/tab-list/save.mjs.map +2 -2
- package/build-module/tab-panel/add-tab-toolbar-control.mjs +19 -8
- package/build-module/tab-panel/add-tab-toolbar-control.mjs.map +2 -2
- package/build-module/tab-panel/block.json +2 -6
- package/build-module/tab-panel/remove-tab-toolbar-control.mjs +9 -14
- package/build-module/tab-panel/remove-tab-toolbar-control.mjs.map +2 -2
- package/build-module/tab-panels/block.json +2 -27
- package/build-module/table/index.mjs +1 -1
- package/build-module/table/index.mjs.map +2 -2
- package/build-module/tabs/block.json +3 -17
- package/build-module/tabs/edit.mjs +7 -21
- package/build-module/tabs/edit.mjs.map +2 -2
- package/build-module/tabs/index.mjs +6 -10
- package/build-module/tabs/index.mjs.map +2 -2
- package/build-module/tabs/use-tab-list-items-sync.mjs +32 -0
- package/build-module/tabs/use-tab-list-items-sync.mjs.map +7 -0
- package/build-module/tabs/view.mjs +2 -10
- package/build-module/tabs/view.mjs.map +2 -2
- package/build-module/terms-query/edit/inspector-controls/order-control.mjs +2 -2
- package/build-module/terms-query/edit/inspector-controls/order-control.mjs.map +2 -2
- package/build-module/utils/style-state.mjs +132 -0
- package/build-module/utils/style-state.mjs.map +7 -0
- package/build-module/utils/waveform-player.mjs +1 -1
- package/build-module/verse/edit.mjs +1 -1
- package/build-module/verse/edit.mjs.map +2 -2
- package/build-style/editor-rtl.css +12 -16
- package/build-style/editor.css +12 -16
- package/build-style/icon/style-rtl.css +9 -0
- package/build-style/icon/style.css +9 -0
- package/build-style/style-rtl.css +11 -24
- package/build-style/style.css +11 -24
- package/build-style/tab-list/editor-rtl.css +12 -4
- package/build-style/tab-list/editor.css +12 -4
- package/build-style/{tab → tab-list}/style-rtl.css +2 -2
- package/build-style/{tab → tab-list}/style.css +2 -2
- package/build-style/tab-panel/style-rtl.css +0 -17
- package/build-style/tab-panel/style.css +0 -17
- package/package.json +48 -45
- package/src/avatar/index.php +2 -2
- package/src/block/index.php +2 -26
- package/src/comment-author-avatar/index.php +3 -3
- package/src/comment-author-name/index.php +1 -1
- package/src/comment-date/index.php +1 -1
- package/src/cover/edit/block-controls.js +14 -2
- package/src/cover/edit/index.js +86 -0
- package/src/cover/edit/inspector-controls.js +124 -54
- package/src/editor.scss +0 -1
- package/src/file/edit.js +3 -16
- package/src/file/index.js +2 -0
- package/src/file/transforms.js +12 -31
- package/src/file/variations.js +17 -0
- package/src/gallery/edit.js +13 -13
- package/src/icon/README.md +3 -0
- package/src/icon/block.json +12 -0
- package/src/icon/edit.js +86 -36
- package/src/icon/index.js +3 -1
- package/src/icon/index.php +23 -0
- package/src/icon/style.scss +12 -0
- package/src/icon/variations.js +9 -0
- package/src/image/README.md +1 -0
- package/src/image/block.json +1 -0
- package/src/image/edit.js +8 -3
- package/src/image/image.js +120 -54
- package/src/image/index.php +0 -1
- package/src/image/transforms.js +34 -8
- package/src/index.js +4 -11
- package/src/navigation/edit/index.js +23 -10
- package/src/navigation/index.php +58 -0
- package/src/navigation-submenu/README.md +5 -0
- package/src/navigation-submenu/block.json +7 -0
- package/src/page-list/README.md +1 -1
- package/src/page-list/block.json +2 -5
- package/src/page-list/edit.js +0 -11
- package/src/page-list/index.php +1 -1
- package/src/post-date/edit.js +2 -2
- package/src/post-featured-image/README.md +1 -0
- package/src/post-featured-image/block.json +1 -0
- package/src/post-featured-image/dimension-controls.js +105 -184
- package/src/post-featured-image/edit.js +53 -21
- package/src/post-featured-image/index.php +24 -22
- package/src/pullquote/README.md +1 -1
- package/src/pullquote/block.json +1 -3
- package/src/pullquote/deprecated.js +121 -9
- package/src/pullquote/edit.js +7 -31
- package/src/pullquote/save.js +2 -13
- package/src/search/index.php +1 -1
- package/src/style.scss +1 -2
- package/src/tab-list/README.md +19 -17
- package/src/tab-list/block.json +34 -21
- package/src/tab-list/edit.js +147 -15
- package/src/tab-list/editor.scss +13 -6
- package/src/tab-list/index.php +23 -30
- package/src/tab-list/save.js +39 -4
- package/src/{tab → tab-list}/style.scss +1 -1
- package/src/tab-panel/README.md +0 -3
- package/src/tab-panel/add-tab-toolbar-control.js +24 -11
- package/src/tab-panel/block.json +2 -6
- package/src/tab-panel/remove-tab-toolbar-control.js +10 -14
- package/src/tab-panel/style.scss +0 -17
- package/src/tab-panels/README.md +0 -16
- package/src/tab-panels/block.json +2 -27
- package/src/tabs/README.md +1 -7
- package/src/tabs/block.json +3 -17
- package/src/tabs/edit.js +8 -19
- package/src/tabs/index.js +6 -10
- package/src/tabs/index.php +0 -13
- package/src/tabs/use-tab-list-items-sync.js +49 -0
- package/src/tabs/view.js +2 -10
- package/src/utils/style-state.js +151 -0
- package/src/utils/test/style-state.js +307 -0
- package/babel-plugin.cjs +0 -150
- package/build/tab/block.json +0 -56
- package/build/tab/controls.cjs +0 -46
- package/build/tab/controls.cjs.map +0 -7
- package/build/tab/edit.cjs +0 -135
- package/build/tab/edit.cjs.map +0 -7
- package/build/tab/index.cjs +0 -58
- package/build/tab/index.cjs.map +0 -7
- package/build/tab/save.cjs.map +0 -7
- package/build/tabs/use-tab-list-sync.cjs +0 -190
- package/build/tabs/use-tab-list-sync.cjs.map +0 -7
- package/build-module/tab/block.json +0 -56
- package/build-module/tab/controls.mjs +0 -15
- package/build-module/tab/controls.mjs.map +0 -7
- package/build-module/tab/edit.mjs +0 -108
- package/build-module/tab/edit.mjs.map +0 -7
- package/build-module/tab/index.mjs +0 -20
- package/build-module/tab/index.mjs.map +0 -7
- package/build-module/tab/save.mjs +0 -14
- package/build-module/tab/save.mjs.map +0 -7
- package/build-module/tabs/use-tab-list-sync.mjs +0 -169
- package/build-module/tabs/use-tab-list-sync.mjs.map +0 -7
- package/build-style/tab/editor-rtl.css +0 -11
- package/build-style/tab/editor.css +0 -11
- package/build-style/tab-panels/style-rtl.css +0 -4
- package/build-style/tab-panels/style.css +0 -4
- package/src/tab/README.md +0 -69
- package/src/tab/block.json +0 -56
- package/src/tab/controls.js +0 -19
- package/src/tab/edit.js +0 -141
- package/src/tab/editor.scss +0 -14
- package/src/tab/index.js +0 -24
- package/src/tab/index.php +0 -70
- package/src/tab/save.js +0 -13
- package/src/tab-panels/style.scss +0 -4
- package/src/tabs/use-tab-list-sync.js +0 -237
|
@@ -9,11 +9,11 @@ function OrderControl({ orderBy, order, onChange, ...props }) {
|
|
|
9
9
|
__next40pxDefaultSize: true,
|
|
10
10
|
options: [
|
|
11
11
|
{
|
|
12
|
-
label: __("Name: A
|
|
12
|
+
label: __("Name: A → Z"),
|
|
13
13
|
value: "name/asc"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
label: __("Name: Z
|
|
16
|
+
label: __("Name: Z → A"),
|
|
17
17
|
value: "name/desc"
|
|
18
18
|
},
|
|
19
19
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/terms-query/edit/inspector-controls/order-control.js"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { SelectControl } from '@wordpress/components';\n\nexport default function OrderControl( { orderBy, order, onChange, ...props } ) {\n\treturn (\n\t\t<SelectControl\n\t\t\t__next40pxDefaultSize\n\t\t\toptions={ [\n\t\t\t\t{\n\t\t\t\t\tlabel: __( 'Name: A
|
|
5
|
-
"mappings": ";AAGA,SAAS,UAAU;AACnB,SAAS,qBAAqB;AAI5B;AAFa,SAAR,aAA+B,EAAE,SAAS,OAAO,UAAU,GAAG,MAAM,GAAI;AAC9E,SACC;AAAA,IAAC;AAAA;AAAA,MACA,uBAAqB;AAAA,MACrB,SAAU;AAAA,QACT;AAAA,UACC,OAAO,GAAI,
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { SelectControl } from '@wordpress/components';\n\nexport default function OrderControl( { orderBy, order, onChange, ...props } ) {\n\treturn (\n\t\t<SelectControl\n\t\t\t__next40pxDefaultSize\n\t\t\toptions={ [\n\t\t\t\t{\n\t\t\t\t\tlabel: __( 'Name: A → Z' ),\n\t\t\t\t\tvalue: 'name/asc',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: __( 'Name: Z → A' ),\n\t\t\t\t\tvalue: 'name/desc',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: __( 'Count, high to low' ),\n\t\t\t\t\tvalue: 'count/desc',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: __( 'Count, low to high' ),\n\t\t\t\t\tvalue: 'count/asc',\n\t\t\t\t},\n\t\t\t] }\n\t\t\tvalue={ orderBy + '/' + order }\n\t\t\tonChange={ ( value ) => {\n\t\t\t\tconst [ newOrderBy, newOrder ] = value.split( '/' );\n\t\t\t\tonChange( newOrderBy, newOrder );\n\t\t\t} }\n\t\t\t{ ...props }\n\t\t/>\n\t);\n}\n"],
|
|
5
|
+
"mappings": ";AAGA,SAAS,UAAU;AACnB,SAAS,qBAAqB;AAI5B;AAFa,SAAR,aAA+B,EAAE,SAAS,OAAO,UAAU,GAAG,MAAM,GAAI;AAC9E,SACC;AAAA,IAAC;AAAA;AAAA,MACA,uBAAqB;AAAA,MACrB,SAAU;AAAA,QACT;AAAA,UACC,OAAO,GAAI,aAAc;AAAA,UACzB,OAAO;AAAA,QACR;AAAA,QACA;AAAA,UACC,OAAO,GAAI,aAAc;AAAA,UACzB,OAAO;AAAA,QACR;AAAA,QACA;AAAA,UACC,OAAO,GAAI,oBAAqB;AAAA,UAChC,OAAO;AAAA,QACR;AAAA,QACA;AAAA,UACC,OAAO,GAAI,oBAAqB;AAAA,UAChC,OAAO;AAAA,QACR;AAAA,MACD;AAAA,MACA,OAAQ,UAAU,MAAM;AAAA,MACxB,UAAW,CAAE,UAAW;AACvB,cAAM,CAAE,YAAY,QAAS,IAAI,MAAM,MAAO,GAAI;AAClD,iBAAU,YAAY,QAAS;AAAA,MAChC;AAAA,MACE,GAAG;AAAA;AAAA,EACN;AAEF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
// packages/block-library/src/utils/style-state.js
|
|
2
|
+
import { privateApis as blockEditorPrivateApis } from "@wordpress/block-editor";
|
|
3
|
+
import { unlock } from "../lock-unlock.mjs";
|
|
4
|
+
var { cleanEmptyObject, getStyleForState, setStyleForState } = unlock(
|
|
5
|
+
blockEditorPrivateApis
|
|
6
|
+
);
|
|
7
|
+
function getStateStyle(style, selectedState) {
|
|
8
|
+
return getStyleForState(style, selectedState) || {};
|
|
9
|
+
}
|
|
10
|
+
function getMappedDimensions(dimensions, dimensionKeyMap = {}) {
|
|
11
|
+
return Object.fromEntries(
|
|
12
|
+
Object.entries(dimensions).map(([key, value]) => [
|
|
13
|
+
dimensionKeyMap[key] || key,
|
|
14
|
+
value
|
|
15
|
+
])
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
function getControlledDimensions(dimensions, dimensionKeys) {
|
|
19
|
+
if (!dimensionKeys) {
|
|
20
|
+
return dimensions;
|
|
21
|
+
}
|
|
22
|
+
return Object.fromEntries(
|
|
23
|
+
dimensionKeys.map((key) => [key, dimensions[key]])
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
function getStyleStateKey(selectedState) {
|
|
27
|
+
return [
|
|
28
|
+
selectedState?.viewport || "default",
|
|
29
|
+
selectedState?.pseudo || "default"
|
|
30
|
+
].join(":");
|
|
31
|
+
}
|
|
32
|
+
function getStateDimensions(style, selectedState) {
|
|
33
|
+
return getStateStyle(style, selectedState)?.dimensions || {};
|
|
34
|
+
}
|
|
35
|
+
function getActiveDimensionValue(options = {}) {
|
|
36
|
+
const {
|
|
37
|
+
attributes = {},
|
|
38
|
+
style = attributes?.style,
|
|
39
|
+
selectedState,
|
|
40
|
+
hasSelectedStyleState,
|
|
41
|
+
attributeKey,
|
|
42
|
+
styleKey = attributeKey,
|
|
43
|
+
rootValue
|
|
44
|
+
} = options;
|
|
45
|
+
if (hasSelectedStyleState) {
|
|
46
|
+
return getStateDimensions(style, selectedState)?.[styleKey];
|
|
47
|
+
}
|
|
48
|
+
if (Object.hasOwn(options, "rootValue")) {
|
|
49
|
+
return rootValue;
|
|
50
|
+
}
|
|
51
|
+
return attributes?.[attributeKey];
|
|
52
|
+
}
|
|
53
|
+
function setStateDimensions(style, selectedState, nextDimensions) {
|
|
54
|
+
const stateStyle = getStateStyle(style, selectedState);
|
|
55
|
+
return setStyleForState(
|
|
56
|
+
style,
|
|
57
|
+
selectedState,
|
|
58
|
+
cleanEmptyObject({
|
|
59
|
+
...stateStyle,
|
|
60
|
+
dimensions: cleanEmptyObject({
|
|
61
|
+
...stateStyle?.dimensions,
|
|
62
|
+
...nextDimensions
|
|
63
|
+
})
|
|
64
|
+
})
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
function getDimensionUpdateAttributes({
|
|
68
|
+
style,
|
|
69
|
+
selectedState,
|
|
70
|
+
hasSelectedStyleState,
|
|
71
|
+
nextDimensions,
|
|
72
|
+
dimensionKeyMap,
|
|
73
|
+
dimensionKeys
|
|
74
|
+
}) {
|
|
75
|
+
const controlledDimensions = getControlledDimensions(
|
|
76
|
+
nextDimensions,
|
|
77
|
+
dimensionKeys
|
|
78
|
+
);
|
|
79
|
+
if (!hasSelectedStyleState) {
|
|
80
|
+
return controlledDimensions;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
style: setStateDimensions(
|
|
84
|
+
style,
|
|
85
|
+
selectedState,
|
|
86
|
+
getMappedDimensions(controlledDimensions, dimensionKeyMap)
|
|
87
|
+
)
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function resetDimensions(style, keys) {
|
|
91
|
+
const dimensionsReset = Object.fromEntries(
|
|
92
|
+
keys.map((key) => [key, void 0])
|
|
93
|
+
);
|
|
94
|
+
return cleanEmptyObject({
|
|
95
|
+
...style,
|
|
96
|
+
dimensions: cleanEmptyObject({
|
|
97
|
+
...style?.dimensions,
|
|
98
|
+
...dimensionsReset
|
|
99
|
+
})
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function resetStateDimensions(style, selectedState, keys) {
|
|
103
|
+
return setStyleForState(
|
|
104
|
+
style,
|
|
105
|
+
selectedState,
|
|
106
|
+
resetDimensions(getStateStyle(style, selectedState), keys)
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
function getDimensionResetAttributes({
|
|
110
|
+
attributes = {},
|
|
111
|
+
style = attributes?.style,
|
|
112
|
+
selectedState,
|
|
113
|
+
hasSelectedStyleState,
|
|
114
|
+
keys,
|
|
115
|
+
defaultAttributes = {}
|
|
116
|
+
}) {
|
|
117
|
+
return {
|
|
118
|
+
...hasSelectedStyleState ? {} : { ...attributes, ...defaultAttributes },
|
|
119
|
+
style: hasSelectedStyleState ? resetStateDimensions(style, selectedState, keys) : resetDimensions(style, keys)
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
export {
|
|
123
|
+
getActiveDimensionValue,
|
|
124
|
+
getDimensionResetAttributes,
|
|
125
|
+
getDimensionUpdateAttributes,
|
|
126
|
+
getStateDimensions,
|
|
127
|
+
getStyleStateKey,
|
|
128
|
+
resetDimensions,
|
|
129
|
+
resetStateDimensions,
|
|
130
|
+
setStateDimensions
|
|
131
|
+
};
|
|
132
|
+
//# sourceMappingURL=style-state.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/style-state.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../lock-unlock';\n\nconst { cleanEmptyObject, getStyleForState, setStyleForState } = unlock(\n\tblockEditorPrivateApis\n);\n\nfunction getStateStyle( style, selectedState ) {\n\treturn getStyleForState( style, selectedState ) || {};\n}\n\nfunction getMappedDimensions( dimensions, dimensionKeyMap = {} ) {\n\treturn Object.fromEntries(\n\t\tObject.entries( dimensions ).map( ( [ key, value ] ) => [\n\t\t\tdimensionKeyMap[ key ] || key,\n\t\t\tvalue,\n\t\t] )\n\t);\n}\n\nfunction getControlledDimensions( dimensions, dimensionKeys ) {\n\tif ( ! dimensionKeys ) {\n\t\treturn dimensions;\n\t}\n\n\treturn Object.fromEntries(\n\t\tdimensionKeys.map( ( key ) => [ key, dimensions[ key ] ] )\n\t);\n}\n\nexport function getStyleStateKey( selectedState ) {\n\treturn [\n\t\tselectedState?.viewport || 'default',\n\t\tselectedState?.pseudo || 'default',\n\t].join( ':' );\n}\n\nexport function getStateDimensions( style, selectedState ) {\n\treturn getStateStyle( style, selectedState )?.dimensions || {};\n}\n\nexport function getActiveDimensionValue( options = {} ) {\n\tconst {\n\t\tattributes = {},\n\t\tstyle = attributes?.style,\n\t\tselectedState,\n\t\thasSelectedStyleState,\n\t\tattributeKey,\n\t\tstyleKey = attributeKey,\n\t\trootValue,\n\t} = options;\n\n\tif ( hasSelectedStyleState ) {\n\t\treturn getStateDimensions( style, selectedState )?.[ styleKey ];\n\t}\n\n\tif ( Object.hasOwn( options, 'rootValue' ) ) {\n\t\treturn rootValue;\n\t}\n\n\treturn attributes?.[ attributeKey ];\n}\n\nexport function setStateDimensions( style, selectedState, nextDimensions ) {\n\tconst stateStyle = getStateStyle( style, selectedState );\n\n\treturn setStyleForState(\n\t\tstyle,\n\t\tselectedState,\n\t\tcleanEmptyObject( {\n\t\t\t...stateStyle,\n\t\t\tdimensions: cleanEmptyObject( {\n\t\t\t\t...stateStyle?.dimensions,\n\t\t\t\t...nextDimensions,\n\t\t\t} ),\n\t\t} )\n\t);\n}\n\nexport function getDimensionUpdateAttributes( {\n\tstyle,\n\tselectedState,\n\thasSelectedStyleState,\n\tnextDimensions,\n\tdimensionKeyMap,\n\tdimensionKeys,\n} ) {\n\tconst controlledDimensions = getControlledDimensions(\n\t\tnextDimensions,\n\t\tdimensionKeys\n\t);\n\n\tif ( ! hasSelectedStyleState ) {\n\t\treturn controlledDimensions;\n\t}\n\n\treturn {\n\t\tstyle: setStateDimensions(\n\t\t\tstyle,\n\t\t\tselectedState,\n\t\t\tgetMappedDimensions( controlledDimensions, dimensionKeyMap )\n\t\t),\n\t};\n}\n\nexport function resetDimensions( style, keys ) {\n\tconst dimensionsReset = Object.fromEntries(\n\t\tkeys.map( ( key ) => [ key, undefined ] )\n\t);\n\n\treturn cleanEmptyObject( {\n\t\t...style,\n\t\tdimensions: cleanEmptyObject( {\n\t\t\t...style?.dimensions,\n\t\t\t...dimensionsReset,\n\t\t} ),\n\t} );\n}\n\nexport function resetStateDimensions( style, selectedState, keys ) {\n\treturn setStyleForState(\n\t\tstyle,\n\t\tselectedState,\n\t\tresetDimensions( getStateStyle( style, selectedState ), keys )\n\t);\n}\n\nexport function getDimensionResetAttributes( {\n\tattributes = {},\n\tstyle = attributes?.style,\n\tselectedState,\n\thasSelectedStyleState,\n\tkeys,\n\tdefaultAttributes = {},\n} ) {\n\treturn {\n\t\t...( hasSelectedStyleState\n\t\t\t? {}\n\t\t\t: { ...attributes, ...defaultAttributes } ),\n\t\tstyle: hasSelectedStyleState\n\t\t\t? resetStateDimensions( style, selectedState, keys )\n\t\t\t: resetDimensions( style, keys ),\n\t};\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -3,7 +3,7 @@ import { useEffect, useRef } from "@wordpress/element";
|
|
|
3
3
|
import { useEvent, useRefEffect } from "@wordpress/compose";
|
|
4
4
|
import { initWaveformPlayer } from "./waveform-utils.mjs";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
var EMPTY_ARTIST_PLACEHOLDER = "
|
|
6
|
+
var EMPTY_ARTIST_PLACEHOLDER = " ";
|
|
7
7
|
function updatePlayerMetadata(instance, { title, artist, image }) {
|
|
8
8
|
if (instance.titleEl) {
|
|
9
9
|
instance.titleEl.textContent = title ?? "";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/verse/edit.js"],
|
|
4
|
-
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { RichText, useBlockProps } from '@wordpress/block-editor';\nimport { createBlock, getDefaultBlockName } from '@wordpress/blocks';\n\n/**\n * Internal dependencies\n */\nimport useDeprecatedTextAlign from '../utils/deprecated-text-align-attributes';\n\nexport default function VerseEdit( props ) {\n\tconst {\n\t\tattributes,\n\t\tsetAttributes,\n\t\tmergeBlocks,\n\t\tonRemove,\n\t\tinsertBlocksAfter,\n\t\tstyle,\n\t} = props;\n\tconst { content } = attributes;\n\tuseDeprecatedTextAlign( props );\n\tconst blockProps = useBlockProps( { style } );\n\n\treturn (\n\t\t<RichText\n\t\t\ttagName=\"pre\"\n\t\t\tidentifier=\"content\"\n\t\t\tpreserveWhiteSpace\n\t\t\tvalue={ content }\n\t\t\tonChange={ ( nextContent ) => {\n\t\t\t\tsetAttributes( {\n\t\t\t\t\tcontent: nextContent,\n\t\t\t\t} );\n\t\t\t} }\n\t\t\taria-label={ __( 'Poetry text' ) }\n\t\t\tplaceholder={ __( 'Write poetry
|
|
5
|
-
"mappings": ";AAGA,SAAS,UAAU;AACnB,SAAS,UAAU,qBAAqB;AACxC,SAAS,aAAa,2BAA2B;AAKjD,OAAO,4BAA4B;AAgBjC;AAda,SAAR,UAA4B,OAAQ;AAC1C,QAAM;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD,IAAI;AACJ,QAAM,EAAE,QAAQ,IAAI;AACpB,yBAAwB,KAAM;AAC9B,QAAM,aAAa,cAAe,EAAE,MAAM,CAAE;AAE5C,SACC;AAAA,IAAC;AAAA;AAAA,MACA,SAAQ;AAAA,MACR,YAAW;AAAA,MACX,oBAAkB;AAAA,MAClB,OAAQ;AAAA,MACR,UAAW,CAAE,gBAAiB;AAC7B,sBAAe;AAAA,UACd,SAAS;AAAA,QACV,CAAE;AAAA,MACH;AAAA,MACA,cAAa,GAAI,aAAc;AAAA,MAC/B,aAAc,GAAI,
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { RichText, useBlockProps } from '@wordpress/block-editor';\nimport { createBlock, getDefaultBlockName } from '@wordpress/blocks';\n\n/**\n * Internal dependencies\n */\nimport useDeprecatedTextAlign from '../utils/deprecated-text-align-attributes';\n\nexport default function VerseEdit( props ) {\n\tconst {\n\t\tattributes,\n\t\tsetAttributes,\n\t\tmergeBlocks,\n\t\tonRemove,\n\t\tinsertBlocksAfter,\n\t\tstyle,\n\t} = props;\n\tconst { content } = attributes;\n\tuseDeprecatedTextAlign( props );\n\tconst blockProps = useBlockProps( { style } );\n\n\treturn (\n\t\t<RichText\n\t\t\ttagName=\"pre\"\n\t\t\tidentifier=\"content\"\n\t\t\tpreserveWhiteSpace\n\t\t\tvalue={ content }\n\t\t\tonChange={ ( nextContent ) => {\n\t\t\t\tsetAttributes( {\n\t\t\t\t\tcontent: nextContent,\n\t\t\t\t} );\n\t\t\t} }\n\t\t\taria-label={ __( 'Poetry text' ) }\n\t\t\tplaceholder={ __( 'Write poetry…' ) }\n\t\t\tonRemove={ onRemove }\n\t\t\tonMerge={ mergeBlocks }\n\t\t\t{ ...blockProps }\n\t\t\t__unstablePastePlainText\n\t\t\t__unstableOnSplitAtDoubleLineEnd={ () =>\n\t\t\t\tinsertBlocksAfter( createBlock( getDefaultBlockName() ) )\n\t\t\t}\n\t\t/>\n\t);\n}\n"],
|
|
5
|
+
"mappings": ";AAGA,SAAS,UAAU;AACnB,SAAS,UAAU,qBAAqB;AACxC,SAAS,aAAa,2BAA2B;AAKjD,OAAO,4BAA4B;AAgBjC;AAda,SAAR,UAA4B,OAAQ;AAC1C,QAAM;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD,IAAI;AACJ,QAAM,EAAE,QAAQ,IAAI;AACpB,yBAAwB,KAAM;AAC9B,QAAM,aAAa,cAAe,EAAE,MAAM,CAAE;AAE5C,SACC;AAAA,IAAC;AAAA;AAAA,MACA,SAAQ;AAAA,MACR,YAAW;AAAA,MACX,oBAAkB;AAAA,MAClB,OAAQ;AAAA,MACR,UAAW,CAAE,gBAAiB;AAC7B,sBAAe;AAAA,UACd,SAAS;AAAA,QACV,CAAE;AAAA,MACH;AAAA,MACA,cAAa,GAAI,aAAc;AAAA,MAC/B,aAAc,GAAI,eAAgB;AAAA,MAClC;AAAA,MACA,SAAU;AAAA,MACR,GAAG;AAAA,MACL,0BAAwB;AAAA,MACxB,kCAAmC,MAClC,kBAAmB,YAAa,oBAAoB,CAAE,CAAE;AAAA;AAAA,EAE1D;AAEF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2365,23 +2365,19 @@ html[dir=rtl] .has-drop-cap:not(:focus)::first-letter {
|
|
|
2365
2365
|
width: 112px;
|
|
2366
2366
|
}
|
|
2367
2367
|
|
|
2368
|
-
.wp-block-tab-list
|
|
2369
|
-
display:
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
display: contents;
|
|
2373
|
-
}
|
|
2374
|
-
|
|
2375
|
-
.wp-block-tab.is-selected {
|
|
2376
|
-
outline-offset: 2px;
|
|
2377
|
-
}
|
|
2378
|
-
|
|
2379
|
-
.block-editor-block-preview__live-content:has(.wp-block-tab) {
|
|
2380
|
-
flex-basis: inherit !important;
|
|
2381
|
-
flex-grow: inherit !important;
|
|
2368
|
+
.wp-block-tab-list {
|
|
2369
|
+
display: flex;
|
|
2370
|
+
flex-wrap: nowrap;
|
|
2371
|
+
gap: 0.5em;
|
|
2382
2372
|
}
|
|
2383
|
-
.
|
|
2384
|
-
|
|
2373
|
+
.wp-block-tab-list button.is-active::before {
|
|
2374
|
+
content: "";
|
|
2375
|
+
position: absolute;
|
|
2376
|
+
border-bottom: 2px solid currentColor;
|
|
2377
|
+
pointer-events: none;
|
|
2378
|
+
right: 0;
|
|
2379
|
+
width: 100%;
|
|
2380
|
+
bottom: 0;
|
|
2385
2381
|
}
|
|
2386
2382
|
|
|
2387
2383
|
.block-editor-template-part__selection-modal {
|
package/build-style/editor.css
CHANGED
|
@@ -2369,23 +2369,19 @@ html[dir=rtl] .has-drop-cap:not(:focus)::first-letter {
|
|
|
2369
2369
|
width: 112px;
|
|
2370
2370
|
}
|
|
2371
2371
|
|
|
2372
|
-
.wp-block-tab-list
|
|
2373
|
-
display:
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
display: contents;
|
|
2377
|
-
}
|
|
2378
|
-
|
|
2379
|
-
.wp-block-tab.is-selected {
|
|
2380
|
-
outline-offset: 2px;
|
|
2381
|
-
}
|
|
2382
|
-
|
|
2383
|
-
.block-editor-block-preview__live-content:has(.wp-block-tab) {
|
|
2384
|
-
flex-basis: inherit !important;
|
|
2385
|
-
flex-grow: inherit !important;
|
|
2372
|
+
.wp-block-tab-list {
|
|
2373
|
+
display: flex;
|
|
2374
|
+
flex-wrap: nowrap;
|
|
2375
|
+
gap: 0.5em;
|
|
2386
2376
|
}
|
|
2387
|
-
.
|
|
2388
|
-
|
|
2377
|
+
.wp-block-tab-list button.is-active::before {
|
|
2378
|
+
content: "";
|
|
2379
|
+
position: absolute;
|
|
2380
|
+
border-bottom: 2px solid currentColor;
|
|
2381
|
+
pointer-events: none;
|
|
2382
|
+
left: 0;
|
|
2383
|
+
width: 100%;
|
|
2384
|
+
bottom: 0;
|
|
2389
2385
|
}
|
|
2390
2386
|
|
|
2391
2387
|
.block-editor-template-part__selection-modal {
|
|
@@ -13,6 +13,15 @@
|
|
|
13
13
|
box-sizing: border-box;
|
|
14
14
|
fill: currentColor;
|
|
15
15
|
}
|
|
16
|
+
.wp-block-icon svg.is-flip-horizontal {
|
|
17
|
+
transform: scaleX(-1);
|
|
18
|
+
}
|
|
19
|
+
.wp-block-icon svg.is-flip-vertical {
|
|
20
|
+
transform: scaleY(-1);
|
|
21
|
+
}
|
|
22
|
+
.wp-block-icon svg.is-flip-horizontal.is-flip-vertical {
|
|
23
|
+
transform: scaleX(-1) scaleY(-1);
|
|
24
|
+
}
|
|
16
25
|
|
|
17
26
|
:where(.wp-block-icon) svg {
|
|
18
27
|
width: 100%;
|
|
@@ -13,6 +13,15 @@
|
|
|
13
13
|
box-sizing: border-box;
|
|
14
14
|
fill: currentColor;
|
|
15
15
|
}
|
|
16
|
+
.wp-block-icon svg.is-flip-horizontal {
|
|
17
|
+
transform: scaleX(-1);
|
|
18
|
+
}
|
|
19
|
+
.wp-block-icon svg.is-flip-vertical {
|
|
20
|
+
transform: scaleY(-1);
|
|
21
|
+
}
|
|
22
|
+
.wp-block-icon svg.is-flip-horizontal.is-flip-vertical {
|
|
23
|
+
transform: scaleX(-1) scaleY(-1);
|
|
24
|
+
}
|
|
16
25
|
|
|
17
26
|
:where(.wp-block-icon) svg {
|
|
18
27
|
width: 100%;
|
|
@@ -1765,6 +1765,15 @@ h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]) {
|
|
|
1765
1765
|
box-sizing: border-box;
|
|
1766
1766
|
fill: currentColor;
|
|
1767
1767
|
}
|
|
1768
|
+
.wp-block-icon svg.is-flip-horizontal {
|
|
1769
|
+
transform: scaleX(-1);
|
|
1770
|
+
}
|
|
1771
|
+
.wp-block-icon svg.is-flip-vertical {
|
|
1772
|
+
transform: scaleY(-1);
|
|
1773
|
+
}
|
|
1774
|
+
.wp-block-icon svg.is-flip-horizontal.is-flip-vertical {
|
|
1775
|
+
transform: scaleX(-1) scaleY(-1);
|
|
1776
|
+
}
|
|
1768
1777
|
|
|
1769
1778
|
:where(.wp-block-icon) svg {
|
|
1770
1779
|
width: 100%;
|
|
@@ -4762,7 +4771,7 @@ ul.wp-block-rss.is-grid li {
|
|
|
4762
4771
|
text-decoration: none !important;
|
|
4763
4772
|
}
|
|
4764
4773
|
|
|
4765
|
-
.wp-block-tab {
|
|
4774
|
+
:where(.wp-block-tab-list button) {
|
|
4766
4775
|
box-sizing: border-box;
|
|
4767
4776
|
color: inherit;
|
|
4768
4777
|
display: block;
|
|
@@ -4788,7 +4797,7 @@ ul.wp-block-rss.is-grid li {
|
|
|
4788
4797
|
text-transform: inherit;
|
|
4789
4798
|
text-align: inherit;
|
|
4790
4799
|
}
|
|
4791
|
-
.wp-block-tab[aria-selected=true]::before, .wp-block-tab.is-active::before {
|
|
4800
|
+
:where(.wp-block-tab-list button)[aria-selected=true]::before, :where(.wp-block-tab-list button).is-active::before {
|
|
4792
4801
|
content: "";
|
|
4793
4802
|
position: absolute;
|
|
4794
4803
|
border-bottom: 2px solid currentColor;
|
|
@@ -4798,32 +4807,10 @@ ul.wp-block-rss.is-grid li {
|
|
|
4798
4807
|
bottom: 0;
|
|
4799
4808
|
}
|
|
4800
4809
|
|
|
4801
|
-
.wp-block-tab-panel {
|
|
4802
|
-
max-width: 100%;
|
|
4803
|
-
flex-basis: 100%;
|
|
4804
|
-
flex-grow: 1;
|
|
4805
|
-
box-sizing: border-box;
|
|
4806
|
-
}
|
|
4807
|
-
.wp-block-tab-panel > *:first-child {
|
|
4808
|
-
margin-top: 0;
|
|
4809
|
-
}
|
|
4810
|
-
.wp-block-tab-panel > *:last-child {
|
|
4811
|
-
margin-bottom: 0;
|
|
4812
|
-
}
|
|
4813
4810
|
.wp-block-tab-panel[hidden], .wp-block-tab-panel:empty {
|
|
4814
4811
|
display: none !important;
|
|
4815
4812
|
}
|
|
4816
4813
|
|
|
4817
|
-
.wp-block-tab-panel.wp-block.has-background,
|
|
4818
|
-
.wp-block-tab-panel:not(.wp-block).has-background {
|
|
4819
|
-
padding: var(--wp--preset--spacing--30);
|
|
4820
|
-
}
|
|
4821
|
-
|
|
4822
|
-
.wp-block-tab-panels {
|
|
4823
|
-
flex-grow: 1;
|
|
4824
|
-
min-width: 0;
|
|
4825
|
-
}
|
|
4826
|
-
|
|
4827
4814
|
.wp-block-table {
|
|
4828
4815
|
overflow-x: auto;
|
|
4829
4816
|
}
|
package/build-style/style.css
CHANGED
|
@@ -1773,6 +1773,15 @@ h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]) {
|
|
|
1773
1773
|
box-sizing: border-box;
|
|
1774
1774
|
fill: currentColor;
|
|
1775
1775
|
}
|
|
1776
|
+
.wp-block-icon svg.is-flip-horizontal {
|
|
1777
|
+
transform: scaleX(-1);
|
|
1778
|
+
}
|
|
1779
|
+
.wp-block-icon svg.is-flip-vertical {
|
|
1780
|
+
transform: scaleY(-1);
|
|
1781
|
+
}
|
|
1782
|
+
.wp-block-icon svg.is-flip-horizontal.is-flip-vertical {
|
|
1783
|
+
transform: scaleX(-1) scaleY(-1);
|
|
1784
|
+
}
|
|
1776
1785
|
|
|
1777
1786
|
:where(.wp-block-icon) svg {
|
|
1778
1787
|
width: 100%;
|
|
@@ -4795,7 +4804,7 @@ ul.wp-block-rss.is-grid li {
|
|
|
4795
4804
|
text-decoration: none !important;
|
|
4796
4805
|
}
|
|
4797
4806
|
|
|
4798
|
-
.wp-block-tab {
|
|
4807
|
+
:where(.wp-block-tab-list button) {
|
|
4799
4808
|
box-sizing: border-box;
|
|
4800
4809
|
color: inherit;
|
|
4801
4810
|
display: block;
|
|
@@ -4821,7 +4830,7 @@ ul.wp-block-rss.is-grid li {
|
|
|
4821
4830
|
text-transform: inherit;
|
|
4822
4831
|
text-align: inherit;
|
|
4823
4832
|
}
|
|
4824
|
-
.wp-block-tab[aria-selected=true]::before, .wp-block-tab.is-active::before {
|
|
4833
|
+
:where(.wp-block-tab-list button)[aria-selected=true]::before, :where(.wp-block-tab-list button).is-active::before {
|
|
4825
4834
|
content: "";
|
|
4826
4835
|
position: absolute;
|
|
4827
4836
|
border-bottom: 2px solid currentColor;
|
|
@@ -4831,32 +4840,10 @@ ul.wp-block-rss.is-grid li {
|
|
|
4831
4840
|
bottom: 0;
|
|
4832
4841
|
}
|
|
4833
4842
|
|
|
4834
|
-
.wp-block-tab-panel {
|
|
4835
|
-
max-width: 100%;
|
|
4836
|
-
flex-basis: 100%;
|
|
4837
|
-
flex-grow: 1;
|
|
4838
|
-
box-sizing: border-box;
|
|
4839
|
-
}
|
|
4840
|
-
.wp-block-tab-panel > *:first-child {
|
|
4841
|
-
margin-top: 0;
|
|
4842
|
-
}
|
|
4843
|
-
.wp-block-tab-panel > *:last-child {
|
|
4844
|
-
margin-bottom: 0;
|
|
4845
|
-
}
|
|
4846
4843
|
.wp-block-tab-panel[hidden], .wp-block-tab-panel:empty {
|
|
4847
4844
|
display: none !important;
|
|
4848
4845
|
}
|
|
4849
4846
|
|
|
4850
|
-
.wp-block-tab-panel.wp-block.has-background,
|
|
4851
|
-
.wp-block-tab-panel:not(.wp-block).has-background {
|
|
4852
|
-
padding: var(--wp--preset--spacing--30);
|
|
4853
|
-
}
|
|
4854
|
-
|
|
4855
|
-
.wp-block-tab-panels {
|
|
4856
|
-
flex-grow: 1;
|
|
4857
|
-
min-width: 0;
|
|
4858
|
-
}
|
|
4859
|
-
|
|
4860
4847
|
.wp-block-table {
|
|
4861
4848
|
overflow-x: auto;
|
|
4862
4849
|
}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
.wp-block-tab-list
|
|
2
|
-
display:
|
|
1
|
+
.wp-block-tab-list {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: nowrap;
|
|
4
|
+
gap: 0.5em;
|
|
3
5
|
}
|
|
4
|
-
.wp-block-tab-list .
|
|
5
|
-
|
|
6
|
+
.wp-block-tab-list button.is-active::before {
|
|
7
|
+
content: "";
|
|
8
|
+
position: absolute;
|
|
9
|
+
border-bottom: 2px solid currentColor;
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
right: 0;
|
|
12
|
+
width: 100%;
|
|
13
|
+
bottom: 0;
|
|
6
14
|
}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
.wp-block-tab-list
|
|
2
|
-
display:
|
|
1
|
+
.wp-block-tab-list {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: nowrap;
|
|
4
|
+
gap: 0.5em;
|
|
3
5
|
}
|
|
4
|
-
.wp-block-tab-list .
|
|
5
|
-
|
|
6
|
+
.wp-block-tab-list button.is-active::before {
|
|
7
|
+
content: "";
|
|
8
|
+
position: absolute;
|
|
9
|
+
border-bottom: 2px solid currentColor;
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
left: 0;
|
|
12
|
+
width: 100%;
|
|
13
|
+
bottom: 0;
|
|
6
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.wp-block-tab {
|
|
1
|
+
:where(.wp-block-tab-list button) {
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
color: inherit;
|
|
4
4
|
display: block;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
text-transform: inherit;
|
|
25
25
|
text-align: inherit;
|
|
26
26
|
}
|
|
27
|
-
.wp-block-tab[aria-selected=true]::before, .wp-block-tab.is-active::before {
|
|
27
|
+
:where(.wp-block-tab-list button)[aria-selected=true]::before, :where(.wp-block-tab-list button).is-active::before {
|
|
28
28
|
content: "";
|
|
29
29
|
position: absolute;
|
|
30
30
|
border-bottom: 2px solid currentColor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.wp-block-tab {
|
|
1
|
+
:where(.wp-block-tab-list button) {
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
color: inherit;
|
|
4
4
|
display: block;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
text-transform: inherit;
|
|
25
25
|
text-align: inherit;
|
|
26
26
|
}
|
|
27
|
-
.wp-block-tab[aria-selected=true]::before, .wp-block-tab.is-active::before {
|
|
27
|
+
:where(.wp-block-tab-list button)[aria-selected=true]::before, :where(.wp-block-tab-list button).is-active::before {
|
|
28
28
|
content: "";
|
|
29
29
|
position: absolute;
|
|
30
30
|
border-bottom: 2px solid currentColor;
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
.wp-block-tab-panel {
|
|
2
|
-
max-width: 100%;
|
|
3
|
-
flex-basis: 100%;
|
|
4
|
-
flex-grow: 1;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
}
|
|
7
|
-
.wp-block-tab-panel > *:first-child {
|
|
8
|
-
margin-top: 0;
|
|
9
|
-
}
|
|
10
|
-
.wp-block-tab-panel > *:last-child {
|
|
11
|
-
margin-bottom: 0;
|
|
12
|
-
}
|
|
13
1
|
.wp-block-tab-panel[hidden], .wp-block-tab-panel:empty {
|
|
14
2
|
display: none !important;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.wp-block-tab-panel.wp-block.has-background,
|
|
18
|
-
.wp-block-tab-panel:not(.wp-block).has-background {
|
|
19
|
-
padding: var(--wp--preset--spacing--30);
|
|
20
3
|
}
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
.wp-block-tab-panel {
|
|
2
|
-
max-width: 100%;
|
|
3
|
-
flex-basis: 100%;
|
|
4
|
-
flex-grow: 1;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
}
|
|
7
|
-
.wp-block-tab-panel > *:first-child {
|
|
8
|
-
margin-top: 0;
|
|
9
|
-
}
|
|
10
|
-
.wp-block-tab-panel > *:last-child {
|
|
11
|
-
margin-bottom: 0;
|
|
12
|
-
}
|
|
13
1
|
.wp-block-tab-panel[hidden], .wp-block-tab-panel:empty {
|
|
14
2
|
display: none !important;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.wp-block-tab-panel.wp-block.has-background,
|
|
18
|
-
.wp-block-tab-panel:not(.wp-block).has-background {
|
|
19
|
-
padding: var(--wp--preset--spacing--30);
|
|
20
3
|
}
|