@wordpress/edit-site 6.44.0 → 6.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/build/components/add-new-template/add-custom-template-modal-content.cjs.map +3 -3
- package/build/components/add-new-template/index.cjs.map +2 -2
- package/build/components/add-new-template-legacy/add-custom-template-modal-content.cjs.map +3 -3
- package/build/components/add-new-template-legacy/index.cjs.map +2 -2
- package/build/components/page-patterns/index.cjs +1 -0
- package/build/components/page-patterns/index.cjs.map +2 -2
- package/build/components/page-templates/fields.cjs +4 -4
- package/build/components/page-templates/fields.cjs.map +2 -2
- package/build/components/page-templates/index-legacy.cjs +1 -0
- package/build/components/page-templates/index-legacy.cjs.map +2 -2
- package/build/components/page-templates/index.cjs +1 -0
- package/build/components/page-templates/index.cjs.map +2 -2
- package/build/components/pagination/index.cjs.map +3 -3
- package/build/components/post-list/index.cjs +1 -0
- package/build/components/post-list/index.cjs.map +2 -2
- package/build/components/sidebar-global-styles/index.cjs +2 -1
- package/build/components/sidebar-global-styles/index.cjs.map +2 -2
- package/build/components/sidebar-identity/index.cjs +1 -1
- package/build/components/sidebar-identity/index.cjs.map +2 -2
- package/build/components/site-hub/index.cjs +3 -2
- package/build/components/site-hub/index.cjs.map +2 -2
- package/build-module/components/add-new-template/add-custom-template-modal-content.mjs +10 -10
- package/build-module/components/add-new-template/add-custom-template-modal-content.mjs.map +2 -2
- package/build-module/components/add-new-template/index.mjs +3 -3
- package/build-module/components/add-new-template/index.mjs.map +1 -1
- package/build-module/components/add-new-template-legacy/add-custom-template-modal-content.mjs +10 -10
- package/build-module/components/add-new-template-legacy/add-custom-template-modal-content.mjs.map +2 -2
- package/build-module/components/add-new-template-legacy/index.mjs +3 -3
- package/build-module/components/add-new-template-legacy/index.mjs.map +1 -1
- package/build-module/components/page-patterns/index.mjs +1 -0
- package/build-module/components/page-patterns/index.mjs.map +2 -2
- package/build-module/components/page-templates/fields.mjs +4 -4
- package/build-module/components/page-templates/fields.mjs.map +2 -2
- package/build-module/components/page-templates/index-legacy.mjs +1 -0
- package/build-module/components/page-templates/index-legacy.mjs.map +2 -2
- package/build-module/components/page-templates/index.mjs +1 -0
- package/build-module/components/page-templates/index.mjs.map +2 -2
- package/build-module/components/pagination/index.mjs +3 -3
- package/build-module/components/pagination/index.mjs.map +2 -2
- package/build-module/components/post-list/index.mjs +1 -0
- package/build-module/components/post-list/index.mjs.map +2 -2
- package/build-module/components/sidebar-global-styles/index.mjs +2 -1
- package/build-module/components/sidebar-global-styles/index.mjs.map +2 -2
- package/build-module/components/sidebar-identity/index.mjs +1 -1
- package/build-module/components/sidebar-identity/index.mjs.map +2 -2
- package/build-module/components/site-hub/index.mjs +3 -6
- package/build-module/components/site-hub/index.mjs.map +2 -2
- package/build-style/style-rtl.css +32 -201
- package/build-style/style.css +32 -201
- package/package.json +47 -46
- package/src/components/add-new-template/add-custom-template-modal-content.js +19 -19
- package/src/components/add-new-template/index.js +5 -5
- package/src/components/add-new-template-legacy/add-custom-template-modal-content.js +19 -19
- package/src/components/add-new-template-legacy/index.js +5 -5
- package/src/components/page-patterns/index.js +1 -0
- package/src/components/page-patterns/style.scss +18 -0
- package/src/components/page-templates/fields.js +5 -5
- package/src/components/page-templates/index-legacy.js +1 -0
- package/src/components/page-templates/index.js +1 -0
- package/src/components/pagination/index.js +5 -5
- package/src/components/post-list/index.js +1 -0
- package/src/components/post-list/style.scss +0 -67
- package/src/components/sidebar-global-styles/index.js +2 -1
- package/src/components/sidebar-global-styles/style.scss +19 -0
- package/src/components/sidebar-identity/index.js +1 -1
- package/src/components/site-hub/index.js +3 -6
- package/src/style.scss +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.45.0",
|
|
4
4
|
"description": "Edit Site Page module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -48,50 +48,51 @@
|
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@react-spring/web": "^9.4.5",
|
|
51
|
-
"@wordpress/a11y": "^4.
|
|
52
|
-
"@wordpress/admin-ui": "^
|
|
53
|
-
"@wordpress/api-fetch": "^7.
|
|
54
|
-
"@wordpress/base-styles": "^
|
|
55
|
-
"@wordpress/blob": "^4.
|
|
56
|
-
"@wordpress/block-editor": "^15.
|
|
57
|
-
"@wordpress/block-library": "^9.
|
|
58
|
-
"@wordpress/blocks": "^15.
|
|
59
|
-
"@wordpress/commands": "^1.
|
|
60
|
-
"@wordpress/components": "^
|
|
61
|
-
"@wordpress/compose": "^7.
|
|
62
|
-
"@wordpress/core-data": "^7.
|
|
63
|
-
"@wordpress/data": "^10.
|
|
64
|
-
"@wordpress/dataviews": "^14.
|
|
65
|
-
"@wordpress/date": "^5.
|
|
66
|
-
"@wordpress/deprecated": "^4.
|
|
67
|
-
"@wordpress/dom": "^4.
|
|
68
|
-
"@wordpress/editor": "^14.
|
|
69
|
-
"@wordpress/element": "^6.
|
|
70
|
-
"@wordpress/escape-html": "^3.
|
|
71
|
-
"@wordpress/fields": "^0.
|
|
72
|
-
"@wordpress/global-styles-engine": "^1.
|
|
73
|
-
"@wordpress/global-styles-ui": "^1.
|
|
74
|
-
"@wordpress/hooks": "^4.
|
|
75
|
-
"@wordpress/html-entities": "^4.
|
|
76
|
-
"@wordpress/i18n": "^6.
|
|
77
|
-
"@wordpress/icons": "^
|
|
78
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
79
|
-
"@wordpress/keycodes": "^4.
|
|
80
|
-
"@wordpress/media-utils": "^5.
|
|
81
|
-
"@wordpress/notices": "^5.
|
|
82
|
-
"@wordpress/patterns": "^2.
|
|
83
|
-
"@wordpress/plugins": "^7.
|
|
84
|
-
"@wordpress/preferences": "^4.
|
|
85
|
-
"@wordpress/primitives": "^4.
|
|
86
|
-
"@wordpress/private-apis": "^1.
|
|
87
|
-
"@wordpress/reusable-blocks": "^5.
|
|
88
|
-
"@wordpress/router": "^1.
|
|
89
|
-
"@wordpress/style-engine": "^2.
|
|
90
|
-
"@wordpress/
|
|
91
|
-
"@wordpress/
|
|
92
|
-
"@wordpress/
|
|
93
|
-
"@wordpress/
|
|
94
|
-
"@wordpress/
|
|
51
|
+
"@wordpress/a11y": "^4.45.0",
|
|
52
|
+
"@wordpress/admin-ui": "^2.0.0",
|
|
53
|
+
"@wordpress/api-fetch": "^7.45.0",
|
|
54
|
+
"@wordpress/base-styles": "^7.0.0",
|
|
55
|
+
"@wordpress/blob": "^4.45.0",
|
|
56
|
+
"@wordpress/block-editor": "^15.18.0",
|
|
57
|
+
"@wordpress/block-library": "^9.45.0",
|
|
58
|
+
"@wordpress/blocks": "^15.18.0",
|
|
59
|
+
"@wordpress/commands": "^1.45.0",
|
|
60
|
+
"@wordpress/components": "^33.0.0",
|
|
61
|
+
"@wordpress/compose": "^7.45.0",
|
|
62
|
+
"@wordpress/core-data": "^7.45.0",
|
|
63
|
+
"@wordpress/data": "^10.45.0",
|
|
64
|
+
"@wordpress/dataviews": "^14.2.0",
|
|
65
|
+
"@wordpress/date": "^5.45.0",
|
|
66
|
+
"@wordpress/deprecated": "^4.45.0",
|
|
67
|
+
"@wordpress/dom": "^4.45.0",
|
|
68
|
+
"@wordpress/editor": "^14.45.0",
|
|
69
|
+
"@wordpress/element": "^6.45.0",
|
|
70
|
+
"@wordpress/escape-html": "^3.45.0",
|
|
71
|
+
"@wordpress/fields": "^0.37.0",
|
|
72
|
+
"@wordpress/global-styles-engine": "^1.12.0",
|
|
73
|
+
"@wordpress/global-styles-ui": "^1.12.0",
|
|
74
|
+
"@wordpress/hooks": "^4.45.0",
|
|
75
|
+
"@wordpress/html-entities": "^4.45.0",
|
|
76
|
+
"@wordpress/i18n": "^6.18.0",
|
|
77
|
+
"@wordpress/icons": "^13.0.0",
|
|
78
|
+
"@wordpress/keyboard-shortcuts": "^5.45.0",
|
|
79
|
+
"@wordpress/keycodes": "^4.45.0",
|
|
80
|
+
"@wordpress/media-utils": "^5.45.0",
|
|
81
|
+
"@wordpress/notices": "^5.45.0",
|
|
82
|
+
"@wordpress/patterns": "^2.45.0",
|
|
83
|
+
"@wordpress/plugins": "^7.45.0",
|
|
84
|
+
"@wordpress/preferences": "^4.45.0",
|
|
85
|
+
"@wordpress/primitives": "^4.45.0",
|
|
86
|
+
"@wordpress/private-apis": "^1.45.0",
|
|
87
|
+
"@wordpress/reusable-blocks": "^5.45.0",
|
|
88
|
+
"@wordpress/router": "^1.45.0",
|
|
89
|
+
"@wordpress/style-engine": "^2.45.0",
|
|
90
|
+
"@wordpress/ui": "^0.12.0",
|
|
91
|
+
"@wordpress/url": "^4.45.0",
|
|
92
|
+
"@wordpress/viewport": "^6.45.0",
|
|
93
|
+
"@wordpress/views": "^1.12.0",
|
|
94
|
+
"@wordpress/widgets": "^4.45.0",
|
|
95
|
+
"@wordpress/wordcount": "^4.45.0",
|
|
95
96
|
"change-case": "^4.1.2",
|
|
96
97
|
"clsx": "^2.1.1",
|
|
97
98
|
"colord": "^2.9.2",
|
|
@@ -106,5 +107,5 @@
|
|
|
106
107
|
"publishConfig": {
|
|
107
108
|
"access": "public"
|
|
108
109
|
},
|
|
109
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "8c229eaed0e88c9827e2da3d73a78f9ddd77714b"
|
|
110
111
|
}
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
SearchControl,
|
|
11
11
|
TextHighlight,
|
|
12
12
|
Composite,
|
|
13
|
-
__experimentalText as
|
|
13
|
+
__experimentalText as WCText,
|
|
14
14
|
__experimentalVStack as VStack,
|
|
15
15
|
} from '@wordpress/components';
|
|
16
16
|
import { useEntityRecords } from '@wordpress/core-data';
|
|
@@ -51,7 +51,7 @@ function SuggestionListItem( {
|
|
|
51
51
|
/>
|
|
52
52
|
}
|
|
53
53
|
>
|
|
54
|
-
<
|
|
54
|
+
<WCText
|
|
55
55
|
size="body"
|
|
56
56
|
lineHeight={ 1.53846153846 } // 20px
|
|
57
57
|
weight={ 500 }
|
|
@@ -61,15 +61,15 @@ function SuggestionListItem( {
|
|
|
61
61
|
text={ decodeEntities( suggestion.name ) }
|
|
62
62
|
highlight={ search }
|
|
63
63
|
/>
|
|
64
|
-
</
|
|
64
|
+
</WCText>
|
|
65
65
|
{ suggestion.link && (
|
|
66
|
-
<
|
|
66
|
+
<WCText
|
|
67
67
|
size="body"
|
|
68
68
|
lineHeight={ 1.53846153846 } // 20px
|
|
69
69
|
className={ `${ baseCssClass }__info` }
|
|
70
70
|
>
|
|
71
71
|
{ safeDecodeURI( suggestion.link ) }
|
|
72
|
-
</
|
|
72
|
+
</WCText>
|
|
73
73
|
) }
|
|
74
74
|
</Composite.Item>
|
|
75
75
|
);
|
|
@@ -155,12 +155,12 @@ function SuggestionList( { entityForSuggestions, onSelect } ) {
|
|
|
155
155
|
</Composite>
|
|
156
156
|
) }
|
|
157
157
|
{ debouncedSearch && ! suggestions?.length && (
|
|
158
|
-
<
|
|
158
|
+
<WCText
|
|
159
159
|
as="p"
|
|
160
160
|
className="edit-site-custom-template-modal__no-results"
|
|
161
161
|
>
|
|
162
162
|
{ labels.not_found }
|
|
163
|
-
</
|
|
163
|
+
</WCText>
|
|
164
164
|
) }
|
|
165
165
|
</>
|
|
166
166
|
);
|
|
@@ -193,11 +193,11 @@ function AddCustomTemplateModalContent( {
|
|
|
193
193
|
>
|
|
194
194
|
{ ! showSearchEntities && (
|
|
195
195
|
<>
|
|
196
|
-
<
|
|
196
|
+
<WCText as="p">
|
|
197
197
|
{ __(
|
|
198
198
|
'Select whether to create a single template for all items or a specific one.'
|
|
199
199
|
) }
|
|
200
|
-
</
|
|
200
|
+
</WCText>
|
|
201
201
|
<Flex
|
|
202
202
|
className="edit-site-custom-template-modal__contents"
|
|
203
203
|
gap="4"
|
|
@@ -221,14 +221,14 @@ function AddCustomTemplateModalContent( {
|
|
|
221
221
|
} );
|
|
222
222
|
} }
|
|
223
223
|
>
|
|
224
|
-
<
|
|
224
|
+
<WCText
|
|
225
225
|
as="span"
|
|
226
226
|
weight={ 500 }
|
|
227
227
|
lineHeight={ 1.53846153846 } // 20px
|
|
228
228
|
>
|
|
229
229
|
{ entityForSuggestions.labels.all_items }
|
|
230
|
-
</
|
|
231
|
-
<
|
|
230
|
+
</WCText>
|
|
231
|
+
<WCText
|
|
232
232
|
as="span"
|
|
233
233
|
lineHeight={ 1.53846153846 } // 20px
|
|
234
234
|
>
|
|
@@ -236,7 +236,7 @@ function AddCustomTemplateModalContent( {
|
|
|
236
236
|
// translators: The user is given the choice to set up a template for all items of a post type or taxonomy, or just a specific one.
|
|
237
237
|
__( 'For all items' )
|
|
238
238
|
}
|
|
239
|
-
</
|
|
239
|
+
</WCText>
|
|
240
240
|
</FlexItem>
|
|
241
241
|
<FlexItem
|
|
242
242
|
isBlock
|
|
@@ -245,14 +245,14 @@ function AddCustomTemplateModalContent( {
|
|
|
245
245
|
setShowSearchEntities( true );
|
|
246
246
|
} }
|
|
247
247
|
>
|
|
248
|
-
<
|
|
248
|
+
<WCText
|
|
249
249
|
as="span"
|
|
250
250
|
weight={ 500 }
|
|
251
251
|
lineHeight={ 1.53846153846 } // 20px
|
|
252
252
|
>
|
|
253
253
|
{ entityForSuggestions.labels.singular_name }
|
|
254
|
-
</
|
|
255
|
-
<
|
|
254
|
+
</WCText>
|
|
255
|
+
<WCText
|
|
256
256
|
as="span"
|
|
257
257
|
lineHeight={ 1.53846153846 } // 20px
|
|
258
258
|
>
|
|
@@ -260,7 +260,7 @@ function AddCustomTemplateModalContent( {
|
|
|
260
260
|
// translators: The user is given the choice to set up a template for all items of a post type or taxonomy, or just a specific one.
|
|
261
261
|
__( 'For a specific item' )
|
|
262
262
|
}
|
|
263
|
-
</
|
|
263
|
+
</WCText>
|
|
264
264
|
</FlexItem>
|
|
265
265
|
</Flex>
|
|
266
266
|
<Flex justify="right">
|
|
@@ -276,11 +276,11 @@ function AddCustomTemplateModalContent( {
|
|
|
276
276
|
) }
|
|
277
277
|
{ showSearchEntities && (
|
|
278
278
|
<>
|
|
279
|
-
<
|
|
279
|
+
<WCText as="p">
|
|
280
280
|
{ __(
|
|
281
281
|
'This template will be used only for the specific item chosen.'
|
|
282
282
|
) }
|
|
283
|
-
</
|
|
283
|
+
</WCText>
|
|
284
284
|
<SuggestionList
|
|
285
285
|
entityForSuggestions={ entityForSuggestions }
|
|
286
286
|
onSelect={ onSelect }
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
Button,
|
|
11
11
|
Modal,
|
|
12
12
|
__experimentalGrid as Grid,
|
|
13
|
-
__experimentalText as
|
|
13
|
+
__experimentalText as WCText,
|
|
14
14
|
__experimentalVStack as VStack,
|
|
15
15
|
Flex,
|
|
16
16
|
Icon,
|
|
@@ -129,13 +129,13 @@ function TemplateListItem( {
|
|
|
129
129
|
alignment="center"
|
|
130
130
|
spacing={ 0 }
|
|
131
131
|
>
|
|
132
|
-
<
|
|
132
|
+
<WCText
|
|
133
133
|
align="center"
|
|
134
134
|
weight={ 500 }
|
|
135
135
|
lineHeight={ 1.53846153846 } // 20px
|
|
136
136
|
>
|
|
137
137
|
{ title }
|
|
138
|
-
</
|
|
138
|
+
</WCText>
|
|
139
139
|
{ children }
|
|
140
140
|
</VStack>
|
|
141
141
|
</Flex>
|
|
@@ -324,13 +324,13 @@ function NewTemplateModal( { onClose } ) {
|
|
|
324
324
|
)
|
|
325
325
|
}
|
|
326
326
|
>
|
|
327
|
-
<
|
|
327
|
+
<WCText
|
|
328
328
|
lineHeight={ 1.53846153846 } // 20px
|
|
329
329
|
>
|
|
330
330
|
{ __(
|
|
331
331
|
'A custom template can be manually applied to any post or page.'
|
|
332
332
|
) }
|
|
333
|
-
</
|
|
333
|
+
</WCText>
|
|
334
334
|
</TemplateListItem>
|
|
335
335
|
</Grid>
|
|
336
336
|
) }
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
SearchControl,
|
|
11
11
|
TextHighlight,
|
|
12
12
|
Composite,
|
|
13
|
-
__experimentalText as
|
|
13
|
+
__experimentalText as WCText,
|
|
14
14
|
__experimentalVStack as VStack,
|
|
15
15
|
} from '@wordpress/components';
|
|
16
16
|
import { useEntityRecords } from '@wordpress/core-data';
|
|
@@ -51,7 +51,7 @@ function SuggestionListItem( {
|
|
|
51
51
|
/>
|
|
52
52
|
}
|
|
53
53
|
>
|
|
54
|
-
<
|
|
54
|
+
<WCText
|
|
55
55
|
size="body"
|
|
56
56
|
lineHeight={ 1.53846153846 } // 20px
|
|
57
57
|
weight={ 500 }
|
|
@@ -61,15 +61,15 @@ function SuggestionListItem( {
|
|
|
61
61
|
text={ decodeEntities( suggestion.name ) }
|
|
62
62
|
highlight={ search }
|
|
63
63
|
/>
|
|
64
|
-
</
|
|
64
|
+
</WCText>
|
|
65
65
|
{ suggestion.link && (
|
|
66
|
-
<
|
|
66
|
+
<WCText
|
|
67
67
|
size="body"
|
|
68
68
|
lineHeight={ 1.53846153846 } // 20px
|
|
69
69
|
className={ `${ baseCssClass }__info` }
|
|
70
70
|
>
|
|
71
71
|
{ safeDecodeURI( suggestion.link ) }
|
|
72
|
-
</
|
|
72
|
+
</WCText>
|
|
73
73
|
) }
|
|
74
74
|
</Composite.Item>
|
|
75
75
|
);
|
|
@@ -155,12 +155,12 @@ function SuggestionList( { entityForSuggestions, onSelect } ) {
|
|
|
155
155
|
</Composite>
|
|
156
156
|
) }
|
|
157
157
|
{ debouncedSearch && ! suggestions?.length && (
|
|
158
|
-
<
|
|
158
|
+
<WCText
|
|
159
159
|
as="p"
|
|
160
160
|
className="edit-site-custom-template-modal__no-results"
|
|
161
161
|
>
|
|
162
162
|
{ labels.not_found }
|
|
163
|
-
</
|
|
163
|
+
</WCText>
|
|
164
164
|
) }
|
|
165
165
|
</>
|
|
166
166
|
);
|
|
@@ -195,11 +195,11 @@ function AddCustomTemplateModalContent( {
|
|
|
195
195
|
>
|
|
196
196
|
{ ! showSearchEntities && (
|
|
197
197
|
<>
|
|
198
|
-
<
|
|
198
|
+
<WCText as="p">
|
|
199
199
|
{ __(
|
|
200
200
|
'Select whether to create a single template for all items or a specific one.'
|
|
201
201
|
) }
|
|
202
|
-
</
|
|
202
|
+
</WCText>
|
|
203
203
|
<Flex
|
|
204
204
|
className="edit-site-custom-template-modal__contents"
|
|
205
205
|
gap="4"
|
|
@@ -223,14 +223,14 @@ function AddCustomTemplateModalContent( {
|
|
|
223
223
|
} );
|
|
224
224
|
} }
|
|
225
225
|
>
|
|
226
|
-
<
|
|
226
|
+
<WCText
|
|
227
227
|
as="span"
|
|
228
228
|
weight={ 500 }
|
|
229
229
|
lineHeight={ 1.53846153846 } // 20px
|
|
230
230
|
>
|
|
231
231
|
{ entityForSuggestions.labels.all_items }
|
|
232
|
-
</
|
|
233
|
-
<
|
|
232
|
+
</WCText>
|
|
233
|
+
<WCText
|
|
234
234
|
as="span"
|
|
235
235
|
lineHeight={ 1.53846153846 } // 20px
|
|
236
236
|
>
|
|
@@ -238,7 +238,7 @@ function AddCustomTemplateModalContent( {
|
|
|
238
238
|
// translators: The user is given the choice to set up a template for all items of a post type or taxonomy, or just a specific one.
|
|
239
239
|
__( 'For all items' )
|
|
240
240
|
}
|
|
241
|
-
</
|
|
241
|
+
</WCText>
|
|
242
242
|
</FlexItem>
|
|
243
243
|
<FlexItem
|
|
244
244
|
isBlock
|
|
@@ -247,14 +247,14 @@ function AddCustomTemplateModalContent( {
|
|
|
247
247
|
setShowSearchEntities( true );
|
|
248
248
|
} }
|
|
249
249
|
>
|
|
250
|
-
<
|
|
250
|
+
<WCText
|
|
251
251
|
as="span"
|
|
252
252
|
weight={ 500 }
|
|
253
253
|
lineHeight={ 1.53846153846 } // 20px
|
|
254
254
|
>
|
|
255
255
|
{ entityForSuggestions.labels.singular_name }
|
|
256
|
-
</
|
|
257
|
-
<
|
|
256
|
+
</WCText>
|
|
257
|
+
<WCText
|
|
258
258
|
as="span"
|
|
259
259
|
lineHeight={ 1.53846153846 } // 20px
|
|
260
260
|
>
|
|
@@ -262,7 +262,7 @@ function AddCustomTemplateModalContent( {
|
|
|
262
262
|
// translators: The user is given the choice to set up a template for all items of a post type or taxonomy, or just a specific one.
|
|
263
263
|
__( 'For a specific item' )
|
|
264
264
|
}
|
|
265
|
-
</
|
|
265
|
+
</WCText>
|
|
266
266
|
</FlexItem>
|
|
267
267
|
</Flex>
|
|
268
268
|
<Flex justify="right">
|
|
@@ -278,11 +278,11 @@ function AddCustomTemplateModalContent( {
|
|
|
278
278
|
) }
|
|
279
279
|
{ showSearchEntities && (
|
|
280
280
|
<>
|
|
281
|
-
<
|
|
281
|
+
<WCText as="p">
|
|
282
282
|
{ __(
|
|
283
283
|
'This template will be used only for the specific item chosen.'
|
|
284
284
|
) }
|
|
285
|
-
</
|
|
285
|
+
</WCText>
|
|
286
286
|
<SuggestionList
|
|
287
287
|
entityForSuggestions={ entityForSuggestions }
|
|
288
288
|
onSelect={ onSelect }
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
Button,
|
|
11
11
|
Modal,
|
|
12
12
|
__experimentalGrid as Grid,
|
|
13
|
-
__experimentalText as
|
|
13
|
+
__experimentalText as WCText,
|
|
14
14
|
__experimentalVStack as VStack,
|
|
15
15
|
Flex,
|
|
16
16
|
Icon,
|
|
@@ -130,13 +130,13 @@ function TemplateListItem( {
|
|
|
130
130
|
alignment="center"
|
|
131
131
|
spacing={ 0 }
|
|
132
132
|
>
|
|
133
|
-
<
|
|
133
|
+
<WCText
|
|
134
134
|
align="center"
|
|
135
135
|
weight={ 500 }
|
|
136
136
|
lineHeight={ 1.53846153846 } // 20px
|
|
137
137
|
>
|
|
138
138
|
{ title }
|
|
139
|
-
</
|
|
139
|
+
</WCText>
|
|
140
140
|
{ children }
|
|
141
141
|
</VStack>
|
|
142
142
|
</Flex>
|
|
@@ -323,13 +323,13 @@ function NewTemplateModal( { onClose } ) {
|
|
|
323
323
|
)
|
|
324
324
|
}
|
|
325
325
|
>
|
|
326
|
-
<
|
|
326
|
+
<WCText
|
|
327
327
|
lineHeight={ 1.53846153846 } // 20px
|
|
328
328
|
>
|
|
329
329
|
{ __(
|
|
330
330
|
'A custom template can be manually applied to any post or page.'
|
|
331
331
|
) }
|
|
332
|
-
</
|
|
332
|
+
</WCText>
|
|
333
333
|
</TemplateListItem>
|
|
334
334
|
</Grid>
|
|
335
335
|
) }
|
|
@@ -115,3 +115,21 @@
|
|
|
115
115
|
padding-right: $grid-unit-30;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
+
|
|
119
|
+
// Show button text labels when preference is enabled.
|
|
120
|
+
.show-icon-labels {
|
|
121
|
+
.edit-site-patterns__button.has-icon {
|
|
122
|
+
width: auto;
|
|
123
|
+
padding: 0 var(--wpds-dimension-padding-xs);
|
|
124
|
+
|
|
125
|
+
// Hide the button icons when labels are set to display...
|
|
126
|
+
svg {
|
|
127
|
+
display: none;
|
|
128
|
+
}
|
|
129
|
+
// ... and display labels.
|
|
130
|
+
&::after {
|
|
131
|
+
content: attr(aria-label);
|
|
132
|
+
font-size: var(--wpds-typography-font-size-sm);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -34,7 +34,7 @@ import { useDefaultTemplateTypes } from '../add-new-template/utils';
|
|
|
34
34
|
import usePatternSettings from '../page-patterns/use-pattern-settings';
|
|
35
35
|
import { unlock } from '../../lock-unlock';
|
|
36
36
|
|
|
37
|
-
const { Badge } = unlock( componentsPrivateApis );
|
|
37
|
+
const { Badge: WCBadge } = unlock( componentsPrivateApis );
|
|
38
38
|
const { useEntityRecordsWithPermissions } = unlock( corePrivateApis );
|
|
39
39
|
const { useStyle } = unlock( editorPrivateApis );
|
|
40
40
|
|
|
@@ -165,9 +165,9 @@ export const activeField = {
|
|
|
165
165
|
const activeIntent = item._isCustom ? 'info' : 'success';
|
|
166
166
|
const isActive = item._isActive;
|
|
167
167
|
return (
|
|
168
|
-
<
|
|
168
|
+
<WCBadge intent={ isActive ? activeIntent : 'default' }>
|
|
169
169
|
{ isActive ? activeLabel : _x( 'Inactive', 'template' ) }
|
|
170
|
-
</
|
|
170
|
+
</WCBadge>
|
|
171
171
|
);
|
|
172
172
|
},
|
|
173
173
|
};
|
|
@@ -183,9 +183,9 @@ export const useThemeField = () => {
|
|
|
183
183
|
getValue: ( { item } ) => item.theme,
|
|
184
184
|
render: function Render( { item } ) {
|
|
185
185
|
if ( item.theme === activeTheme.stylesheet ) {
|
|
186
|
-
return <
|
|
186
|
+
return <WCBadge intent="success">{ item.theme }</WCBadge>;
|
|
187
187
|
}
|
|
188
|
-
return <
|
|
188
|
+
return <WCBadge intent="error">{ item.theme }</WCBadge>;
|
|
189
189
|
},
|
|
190
190
|
} ),
|
|
191
191
|
[ activeTheme ]
|
|
@@ -8,7 +8,7 @@ import clsx from 'clsx';
|
|
|
8
8
|
*/
|
|
9
9
|
import {
|
|
10
10
|
__experimentalHStack as HStack,
|
|
11
|
-
__experimentalText as
|
|
11
|
+
__experimentalText as WCText,
|
|
12
12
|
Button,
|
|
13
13
|
} from '@wordpress/components';
|
|
14
14
|
import { __, _x, _n, sprintf, isRTL } from '@wordpress/i18n';
|
|
@@ -33,7 +33,7 @@ export default function Pagination( {
|
|
|
33
33
|
justify="flex-start"
|
|
34
34
|
className={ clsx( 'edit-site-pagination', className ) }
|
|
35
35
|
>
|
|
36
|
-
<
|
|
36
|
+
<WCText variant="muted" className="edit-site-pagination__total">
|
|
37
37
|
{
|
|
38
38
|
// translators: %s: Total number of patterns.
|
|
39
39
|
sprintf(
|
|
@@ -42,7 +42,7 @@ export default function Pagination( {
|
|
|
42
42
|
totalItems
|
|
43
43
|
)
|
|
44
44
|
}
|
|
45
|
-
</
|
|
45
|
+
</WCText>
|
|
46
46
|
<HStack expanded={ false } spacing={ 1 }>
|
|
47
47
|
<Button
|
|
48
48
|
variant={ buttonVariant }
|
|
@@ -63,14 +63,14 @@ export default function Pagination( {
|
|
|
63
63
|
size="compact"
|
|
64
64
|
/>
|
|
65
65
|
</HStack>
|
|
66
|
-
<
|
|
66
|
+
<WCText variant="muted">
|
|
67
67
|
{ sprintf(
|
|
68
68
|
// translators: 1: Current page number. 2: Total number of pages.
|
|
69
69
|
_x( '%1$s of %2$s', 'paging' ),
|
|
70
70
|
currentPage,
|
|
71
71
|
numPages
|
|
72
72
|
) }
|
|
73
|
-
</
|
|
73
|
+
</WCText>
|
|
74
74
|
<HStack expanded={ false } spacing={ 1 }>
|
|
75
75
|
<Button
|
|
76
76
|
variant={ buttonVariant }
|
|
@@ -1,73 +1,6 @@
|
|
|
1
1
|
@use "@wordpress/base-styles/colors" as *;
|
|
2
2
|
@use "@wordpress/base-styles/variables" as *;
|
|
3
3
|
|
|
4
|
-
.edit-site-post-list__featured-image {
|
|
5
|
-
height: 100%;
|
|
6
|
-
object-fit: cover;
|
|
7
|
-
width: 100%;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.edit-site-post-list__featured-image-wrapper {
|
|
11
|
-
height: 100%;
|
|
12
|
-
width: 100%;
|
|
13
|
-
border-radius: $grid-unit-05;
|
|
14
|
-
|
|
15
|
-
&.is-layout-table:not(
|
|
16
|
-
:has(.edit-site-post-list__featured-image-button)
|
|
17
|
-
),
|
|
18
|
-
&.is-layout-table .edit-site-post-list__featured-image-button {
|
|
19
|
-
width: $grid-unit-40;
|
|
20
|
-
height: $grid-unit-40;
|
|
21
|
-
display: block;
|
|
22
|
-
border-radius: $grid-unit-05;
|
|
23
|
-
position: relative;
|
|
24
|
-
overflow: hidden;
|
|
25
|
-
background-color: $gray-100;
|
|
26
|
-
flex-grow: 0 !important;
|
|
27
|
-
|
|
28
|
-
&::after {
|
|
29
|
-
border-radius: 4px;
|
|
30
|
-
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
31
|
-
content: "";
|
|
32
|
-
height: 100%;
|
|
33
|
-
left: 0;
|
|
34
|
-
position: absolute;
|
|
35
|
-
top: 0;
|
|
36
|
-
width: 100%;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.edit-site-post-list__featured-image-button {
|
|
42
|
-
box-shadow: none;
|
|
43
|
-
border: none;
|
|
44
|
-
padding: 0;
|
|
45
|
-
background-color: unset;
|
|
46
|
-
box-sizing: border-box;
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
overflow: hidden;
|
|
49
|
-
height: 100%;
|
|
50
|
-
width: 100%;
|
|
51
|
-
border-radius: $grid-unit-05;
|
|
52
|
-
|
|
53
|
-
&:focus-visible {
|
|
54
|
-
box-shadow:
|
|
55
|
-
0 0 0 var(--wp-admin-border-width-focus)
|
|
56
|
-
var(--wp-admin-theme-color);
|
|
57
|
-
// Windows High Contrast mode will show this outline, but not the box-shadow.
|
|
58
|
-
outline: 2px solid transparent;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.dataviews-view-grid__card.is-selected {
|
|
63
|
-
.edit-site-post-list__featured-image-button::after {
|
|
64
|
-
box-shadow:
|
|
65
|
-
inset 0 0 0 var(--wp-admin-border-width-focus)
|
|
66
|
-
var(--wp-admin-theme-color);
|
|
67
|
-
background: rgba(var(--wp-admin-theme-color--rgb), 0.04);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
4
|
// TODO: These styles should be absorbed by DataForm API.
|
|
72
5
|
// @see https://github.com/WordPress/gutenberg/issues/75916
|
|
73
6
|
.fields-controls__password {
|