@wordpress/edit-site 6.6.1 → 6.7.1-next.5368f64a9.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.js +7 -13
- package/build/components/add-new-template/add-custom-template-modal-content.js.map +1 -1
- package/build/components/add-new-template/index.js +7 -10
- package/build/components/add-new-template/index.js.map +1 -1
- package/build/components/block-editor/use-site-editor-settings.js +0 -24
- package/build/components/block-editor/use-site-editor-settings.js.map +1 -1
- package/build/components/editor/index.js +6 -3
- package/build/components/editor/index.js.map +1 -1
- package/build/components/editor-canvas-container/index.js +4 -1
- package/build/components/editor-canvas-container/index.js.map +1 -1
- package/build/components/error-boundary/warning.js +4 -1
- package/build/components/error-boundary/warning.js.map +1 -1
- package/build/components/global-styles/font-library-modal/font-card.js +5 -2
- package/build/components/global-styles/font-library-modal/font-card.js.map +1 -1
- package/build/components/global-styles/font-library-modal/font-collection.js +27 -19
- package/build/components/global-styles/font-library-modal/font-collection.js.map +1 -1
- package/build/components/global-styles/font-library-modal/installed-fonts.js +21 -8
- package/build/components/global-styles/font-library-modal/installed-fonts.js.map +1 -1
- package/build/components/global-styles/font-library-modal/upload-fonts.js +4 -1
- package/build/components/global-styles/font-library-modal/upload-fonts.js.map +1 -1
- package/build/components/global-styles/font-sizes/font-size.js +10 -11
- package/build/components/global-styles/font-sizes/font-size.js.map +1 -1
- package/build/components/global-styles/font-sizes/font-sizes.js +4 -6
- package/build/components/global-styles/font-sizes/font-sizes.js.map +1 -1
- package/build/components/global-styles/header.js +1 -8
- package/build/components/global-styles/header.js.map +1 -1
- package/build/components/global-styles/navigation-button.js +1 -1
- package/build/components/global-styles/navigation-button.js.map +1 -1
- package/build/components/global-styles/palette.js +4 -1
- package/build/components/global-styles/palette.js.map +1 -1
- package/build/components/global-styles/preset-colors.js +1 -1
- package/build/components/global-styles/preset-colors.js.map +1 -1
- package/build/components/global-styles/screen-revisions/revisions-buttons.js +4 -1
- package/build/components/global-styles/screen-revisions/revisions-buttons.js.map +1 -1
- package/build/components/global-styles/shadows-edit-panel.js +20 -10
- package/build/components/global-styles/shadows-edit-panel.js.map +1 -1
- package/build/components/global-styles/typeset-button.js +5 -4
- package/build/components/global-styles/typeset-button.js.map +1 -1
- package/build/components/layout/index.js +1 -2
- package/build/components/layout/index.js.map +1 -1
- package/build/components/page-patterns/fields.js +5 -2
- package/build/components/page-patterns/fields.js.map +1 -1
- package/build/components/pagination/index.js +4 -4
- package/build/components/pagination/index.js.map +1 -1
- package/build/components/save-panel/index.js +4 -1
- package/build/components/save-panel/index.js.map +1 -1
- package/build/components/sidebar-button/index.js +4 -1
- package/build/components/sidebar-button/index.js.map +1 -1
- package/build/components/sidebar-dataviews/add-new-view.js +8 -2
- package/build/components/sidebar-dataviews/add-new-view.js.map +1 -1
- package/build/components/site-hub/index.js +30 -14
- package/build/components/site-hub/index.js.map +1 -1
- package/build/components/style-book/index.js +3 -9
- package/build/components/style-book/index.js.map +1 -1
- package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js +3 -4
- package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +1 -1
- package/build/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +12 -12
- package/build/components/sync-state-with-url/use-sync-canvas-mode-with-url.js.map +1 -1
- package/build/components/welcome-guide/template.js +20 -9
- package/build/components/welcome-guide/template.js.map +1 -1
- package/build/hooks/commands/use-common-commands.js +2 -4
- package/build/hooks/commands/use-common-commands.js.map +1 -1
- package/build/index.js +8 -1
- package/build/index.js.map +1 -1
- package/build/posts.js +2 -1
- package/build/posts.js.map +1 -1
- package/build-module/components/add-new-template/add-custom-template-modal-content.js +7 -13
- package/build-module/components/add-new-template/add-custom-template-modal-content.js.map +1 -1
- package/build-module/components/add-new-template/index.js +7 -10
- package/build-module/components/add-new-template/index.js.map +1 -1
- package/build-module/components/block-editor/use-site-editor-settings.js +0 -23
- package/build-module/components/block-editor/use-site-editor-settings.js.map +1 -1
- package/build-module/components/editor/index.js +6 -3
- package/build-module/components/editor/index.js.map +1 -1
- package/build-module/components/editor-canvas-container/index.js +4 -1
- package/build-module/components/editor-canvas-container/index.js.map +1 -1
- package/build-module/components/error-boundary/warning.js +4 -1
- package/build-module/components/error-boundary/warning.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/font-card.js +7 -4
- package/build-module/components/global-styles/font-library-modal/font-card.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/font-collection.js +29 -21
- package/build-module/components/global-styles/font-library-modal/font-collection.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/installed-fonts.js +24 -11
- package/build-module/components/global-styles/font-library-modal/installed-fonts.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/upload-fonts.js +4 -1
- package/build-module/components/global-styles/font-library-modal/upload-fonts.js.map +1 -1
- package/build-module/components/global-styles/font-sizes/font-size.js +15 -16
- package/build-module/components/global-styles/font-sizes/font-size.js.map +1 -1
- package/build-module/components/global-styles/font-sizes/font-sizes.js +4 -6
- package/build-module/components/global-styles/font-sizes/font-sizes.js.map +1 -1
- package/build-module/components/global-styles/header.js +2 -9
- package/build-module/components/global-styles/header.js.map +1 -1
- package/build-module/components/global-styles/navigation-button.js +2 -2
- package/build-module/components/global-styles/navigation-button.js.map +1 -1
- package/build-module/components/global-styles/palette.js +4 -1
- package/build-module/components/global-styles/palette.js.map +1 -1
- package/build-module/components/global-styles/preset-colors.js +1 -1
- package/build-module/components/global-styles/preset-colors.js.map +1 -1
- package/build-module/components/global-styles/screen-revisions/revisions-buttons.js +4 -1
- package/build-module/components/global-styles/screen-revisions/revisions-buttons.js.map +1 -1
- package/build-module/components/global-styles/shadows-edit-panel.js +20 -10
- package/build-module/components/global-styles/shadows-edit-panel.js.map +1 -1
- package/build-module/components/global-styles/typeset-button.js +6 -5
- package/build-module/components/global-styles/typeset-button.js.map +1 -1
- package/build-module/components/layout/index.js +1 -2
- package/build-module/components/layout/index.js.map +1 -1
- package/build-module/components/page-patterns/fields.js +5 -2
- package/build-module/components/page-patterns/fields.js.map +1 -1
- package/build-module/components/pagination/index.js +5 -5
- package/build-module/components/pagination/index.js.map +1 -1
- package/build-module/components/save-panel/index.js +4 -1
- package/build-module/components/save-panel/index.js.map +1 -1
- package/build-module/components/sidebar-button/index.js +4 -1
- package/build-module/components/sidebar-button/index.js.map +1 -1
- package/build-module/components/sidebar-dataviews/add-new-view.js +8 -2
- package/build-module/components/sidebar-dataviews/add-new-view.js.map +1 -1
- package/build-module/components/site-hub/index.js +30 -14
- package/build-module/components/site-hub/index.js.map +1 -1
- package/build-module/components/style-book/index.js +3 -9
- package/build-module/components/style-book/index.js.map +1 -1
- package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js +3 -4
- package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +1 -1
- package/build-module/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +12 -12
- package/build-module/components/sync-state-with-url/use-sync-canvas-mode-with-url.js.map +1 -1
- package/build-module/components/welcome-guide/template.js +19 -9
- package/build-module/components/welcome-guide/template.js.map +1 -1
- package/build-module/hooks/commands/use-common-commands.js +2 -4
- package/build-module/hooks/commands/use-common-commands.js.map +1 -1
- package/build-module/index.js +8 -1
- package/build-module/index.js.map +1 -1
- package/build-module/posts.js +2 -1
- package/build-module/posts.js.map +1 -1
- package/build-style/posts-rtl.css +90 -87
- package/build-style/posts.css +90 -87
- package/build-style/style-rtl.css +94 -103
- package/build-style/style.css +94 -103
- package/package.json +41 -41
- package/src/components/add-new-template/add-custom-template-modal-content.js +6 -12
- package/src/components/add-new-template/index.js +6 -8
- package/src/components/add-new-template/style.scss +1 -2
- package/src/components/block-editor/use-site-editor-settings.js +0 -18
- package/src/components/editor/index.js +4 -2
- package/src/components/editor-canvas-container/index.js +2 -0
- package/src/components/editor-canvas-container/style.scss +1 -1
- package/src/components/error-boundary/warning.js +6 -1
- package/src/components/global-styles/font-library-modal/font-card.js +5 -3
- package/src/components/global-styles/font-library-modal/font-collection.js +45 -27
- package/src/components/global-styles/font-library-modal/installed-fonts.js +36 -14
- package/src/components/global-styles/font-library-modal/upload-fonts.js +2 -0
- package/src/components/global-styles/font-sizes/font-size.js +18 -18
- package/src/components/global-styles/font-sizes/font-sizes.js +9 -11
- package/src/components/global-styles/header.js +2 -7
- package/src/components/global-styles/navigation-button.js +2 -4
- package/src/components/global-styles/palette.js +2 -0
- package/src/components/global-styles/preset-colors.js +1 -1
- package/src/components/global-styles/screen-revisions/revisions-buttons.js +2 -0
- package/src/components/global-styles/screen-revisions/style.scss +1 -1
- package/src/components/global-styles/shadows-edit-panel.js +23 -13
- package/src/components/global-styles/style.scss +5 -5
- package/src/components/global-styles/typeset-button.js +10 -3
- package/src/components/global-styles/variations/style.scss +1 -2
- package/src/components/layout/index.js +0 -2
- package/src/components/layout/style.scss +2 -24
- package/src/components/page/style.scss +5 -1
- package/src/components/page-patterns/fields.js +3 -1
- package/src/components/page-patterns/style.scss +2 -11
- package/src/components/page-templates/style.scss +1 -2
- package/src/components/pagination/index.js +5 -5
- package/src/components/post-list/style.scss +1 -1
- package/src/components/save-panel/index.js +2 -0
- package/src/components/sidebar-button/index.js +2 -0
- package/src/components/sidebar-dataviews/add-new-view.js +4 -0
- package/src/components/sidebar-dataviews/style.scss +1 -1
- package/src/components/sidebar-navigation-item/style.scss +0 -1
- package/src/components/sidebar-navigation-screen/style.scss +0 -1
- package/src/components/site-hub/index.js +18 -12
- package/src/components/style-book/index.js +5 -11
- package/src/components/style-book/style.scss +2 -2
- package/src/components/sync-state-with-url/use-init-edited-entity-from-url.js +3 -4
- package/src/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +15 -12
- package/src/components/welcome-guide/template.js +12 -18
- package/src/hooks/commands/use-common-commands.js +3 -5
- package/src/index.js +8 -0
- package/src/posts.js +1 -0
package/build-style/style.css
CHANGED
|
@@ -117,6 +117,8 @@
|
|
|
117
117
|
container: dataviews-wrapper/inline-size;
|
|
118
118
|
display: flex;
|
|
119
119
|
flex-direction: column;
|
|
120
|
+
font-size: 13px;
|
|
121
|
+
line-height: 1.4;
|
|
120
122
|
}
|
|
121
123
|
|
|
122
124
|
.dataviews__view-actions,
|
|
@@ -218,53 +220,16 @@
|
|
|
218
220
|
padding-right: 24px;
|
|
219
221
|
}
|
|
220
222
|
}
|
|
221
|
-
.dataviews-bulk-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
flex-shrink: 0;
|
|
223
|
+
.dataviews-bulk-actions-footer__item-count {
|
|
224
|
+
color: #1e1e1e;
|
|
225
|
+
font-weight: 500;
|
|
226
|
+
font-size: 11px;
|
|
227
|
+
text-transform: uppercase;
|
|
227
228
|
}
|
|
228
229
|
|
|
229
|
-
.dataviews-bulk-actions-
|
|
230
|
-
position: sticky;
|
|
231
|
-
display: flex;
|
|
232
|
-
flex-direction: column;
|
|
233
|
-
align-content: center;
|
|
234
|
-
flex-wrap: wrap;
|
|
235
|
-
width: -moz-fit-content;
|
|
236
|
-
width: fit-content;
|
|
237
|
-
margin-left: auto;
|
|
230
|
+
.dataviews-bulk-actions-footer__container {
|
|
238
231
|
margin-right: auto;
|
|
239
|
-
|
|
240
|
-
z-index: 2;
|
|
241
|
-
}
|
|
242
|
-
.dataviews-bulk-actions-toolbar .components-accessible-toolbar {
|
|
243
|
-
border-color: #ddd;
|
|
244
|
-
box-shadow: 0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1);
|
|
245
|
-
}
|
|
246
|
-
.dataviews-bulk-actions-toolbar .components-accessible-toolbar .components-toolbar-group {
|
|
247
|
-
border-color: #e0e0e0;
|
|
248
|
-
}
|
|
249
|
-
.dataviews-bulk-actions-toolbar .components-accessible-toolbar .components-toolbar-group:last-child {
|
|
250
|
-
border: 0;
|
|
251
|
-
}
|
|
252
|
-
.dataviews-bulk-actions-toolbar .dataviews-bulk-actions-toolbar__selection-count {
|
|
253
|
-
display: flex;
|
|
254
|
-
align-items: center;
|
|
255
|
-
margin: 0 8px 0 8px;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.dataviews-bulk-actions-toolbar__wrapper {
|
|
259
|
-
display: flex;
|
|
260
|
-
flex-grow: 1;
|
|
261
|
-
width: 100%;
|
|
262
|
-
}
|
|
263
|
-
.dataviews-bulk-actions-toolbar__wrapper .components-toolbar-group {
|
|
264
|
-
align-items: center;
|
|
265
|
-
}
|
|
266
|
-
.dataviews-bulk-actions-toolbar__wrapper .components-button.is-busy {
|
|
267
|
-
max-height: 36px;
|
|
232
|
+
min-height: 32px;
|
|
268
233
|
}
|
|
269
234
|
|
|
270
235
|
.dataviews-filters__button {
|
|
@@ -282,11 +247,17 @@
|
|
|
282
247
|
opacity: 1;
|
|
283
248
|
}
|
|
284
249
|
|
|
250
|
+
.dataviews-filters__summary-popover {
|
|
251
|
+
font-size: 13px;
|
|
252
|
+
line-height: 1.4;
|
|
253
|
+
}
|
|
285
254
|
.dataviews-filters__summary-popover .components-popover__content {
|
|
286
255
|
width: 230px;
|
|
287
|
-
padding: 0;
|
|
288
256
|
border-radius: 4px;
|
|
289
257
|
}
|
|
258
|
+
.dataviews-filters__summary-popover.components-dropdown__content .components-popover__content {
|
|
259
|
+
padding: 0;
|
|
260
|
+
}
|
|
290
261
|
|
|
291
262
|
.dataviews-filters__summary-operators-container {
|
|
292
263
|
padding: 8px 8px 0;
|
|
@@ -317,6 +288,7 @@
|
|
|
317
288
|
position: relative;
|
|
318
289
|
display: flex;
|
|
319
290
|
align-items: center;
|
|
291
|
+
box-sizing: border-box;
|
|
320
292
|
}
|
|
321
293
|
.dataviews-filters__summary-chip-container .dataviews-filters__summary-chip.has-reset {
|
|
322
294
|
padding-inline-end: 28px;
|
|
@@ -528,6 +500,7 @@
|
|
|
528
500
|
font-size: 11px;
|
|
529
501
|
outline: var(--wp-admin-border-width-focus) solid #fff;
|
|
530
502
|
color: #fff;
|
|
503
|
+
box-sizing: border-box;
|
|
531
504
|
}
|
|
532
505
|
|
|
533
506
|
.dataviews-search {
|
|
@@ -535,7 +508,7 @@
|
|
|
535
508
|
width: fit-content;
|
|
536
509
|
}
|
|
537
510
|
|
|
538
|
-
.dataviews-
|
|
511
|
+
.dataviews-footer {
|
|
539
512
|
position: sticky;
|
|
540
513
|
bottom: 0;
|
|
541
514
|
left: 0;
|
|
@@ -544,14 +517,37 @@
|
|
|
544
517
|
border-top: 1px solid #f0f0f0;
|
|
545
518
|
flex-shrink: 0;
|
|
546
519
|
transition: padding ease-out 0.1s;
|
|
520
|
+
z-index: 2;
|
|
547
521
|
}
|
|
548
522
|
@media (prefers-reduced-motion: reduce) {
|
|
549
|
-
.dataviews-
|
|
523
|
+
.dataviews-footer {
|
|
550
524
|
transition-duration: 0s;
|
|
551
525
|
transition-delay: 0s;
|
|
552
526
|
}
|
|
553
527
|
}
|
|
554
528
|
|
|
529
|
+
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
|
|
530
|
+
@container (max-width: 430px) {
|
|
531
|
+
.dataviews-footer {
|
|
532
|
+
padding: 12px 24px;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
|
|
536
|
+
@container (max-width: 560px) {
|
|
537
|
+
.dataviews-footer {
|
|
538
|
+
flex-direction: column !important;
|
|
539
|
+
}
|
|
540
|
+
.dataviews-footer .dataviews-bulk-actions-footer__container {
|
|
541
|
+
width: 100%;
|
|
542
|
+
}
|
|
543
|
+
.dataviews-footer .dataviews-bulk-actions-footer__item-count {
|
|
544
|
+
flex-grow: 1;
|
|
545
|
+
}
|
|
546
|
+
.dataviews-footer .dataviews-pagination {
|
|
547
|
+
width: 100%;
|
|
548
|
+
justify-content: space-between;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
555
551
|
.dataviews-pagination__page-select {
|
|
556
552
|
font-size: 11px;
|
|
557
553
|
font-weight: 500;
|
|
@@ -564,12 +560,6 @@
|
|
|
564
560
|
}
|
|
565
561
|
}
|
|
566
562
|
|
|
567
|
-
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
|
|
568
|
-
@container (max-width: 430px) {
|
|
569
|
-
.dataviews-pagination {
|
|
570
|
-
padding: 12px 24px;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
563
|
.dataviews-action-modal {
|
|
574
564
|
z-index: 1000001;
|
|
575
565
|
}
|
|
@@ -593,6 +583,8 @@
|
|
|
593
583
|
/* stylelint-disable-next-line property-no-unknown -- the linter needs to be updated to accepted the container-type property */
|
|
594
584
|
container-type: inline-size;
|
|
595
585
|
padding: 16px;
|
|
586
|
+
font-size: 13px;
|
|
587
|
+
line-height: 1.4;
|
|
596
588
|
}
|
|
597
589
|
|
|
598
590
|
.dataviews-view-config__sort-direction .components-toggle-group-control-option-base {
|
|
@@ -620,6 +612,10 @@
|
|
|
620
612
|
grid-column: span 4;
|
|
621
613
|
}
|
|
622
614
|
|
|
615
|
+
.dataviews-settings-section:has(.dataviews-settings-section__content:empty) {
|
|
616
|
+
display: none;
|
|
617
|
+
}
|
|
618
|
+
|
|
623
619
|
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
|
|
624
620
|
@container (max-width: 500px) {
|
|
625
621
|
.dataviews-settings-section.dataviews-settings-section {
|
|
@@ -632,6 +628,25 @@
|
|
|
632
628
|
grid-column: span 2;
|
|
633
629
|
}
|
|
634
630
|
}
|
|
631
|
+
.dataviews-field-control__field {
|
|
632
|
+
height: 32px;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
.dataviews-field-control__actions {
|
|
636
|
+
position: absolute;
|
|
637
|
+
top: -9999em;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.dataviews-field-control__actions.dataviews-field-control__actions {
|
|
641
|
+
gap: 4px;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
.dataviews-field-control__field:hover .dataviews-field-control__actions,
|
|
645
|
+
.dataviews-field-control__field:focus-within .dataviews-field-control__actions {
|
|
646
|
+
position: unset;
|
|
647
|
+
top: unset;
|
|
648
|
+
}
|
|
649
|
+
|
|
635
650
|
.dataviews-view-grid {
|
|
636
651
|
margin-bottom: auto;
|
|
637
652
|
grid-template-rows: max-content;
|
|
@@ -781,6 +796,10 @@
|
|
|
781
796
|
top: 8px;
|
|
782
797
|
}
|
|
783
798
|
|
|
799
|
+
ul.dataviews-view-list {
|
|
800
|
+
list-style-type: none;
|
|
801
|
+
}
|
|
802
|
+
|
|
784
803
|
.dataviews-view-list {
|
|
785
804
|
margin: 0 0 auto;
|
|
786
805
|
}
|
|
@@ -834,12 +853,13 @@
|
|
|
834
853
|
.dataviews-view-list li:not(.is-selected) .dataviews-view-list__primary-field {
|
|
835
854
|
color: #1e1e1e;
|
|
836
855
|
}
|
|
837
|
-
.dataviews-view-list li:not(.is-selected):hover, .dataviews-view-list li:not(.is-selected):focus-within {
|
|
856
|
+
.dataviews-view-list li:not(.is-selected):hover, .dataviews-view-list li:not(.is-selected).is-hovered, .dataviews-view-list li:not(.is-selected):focus-within {
|
|
838
857
|
color: var(--wp-admin-theme-color);
|
|
839
858
|
background-color: #f8f8f8;
|
|
840
859
|
}
|
|
841
860
|
.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__primary-field,
|
|
842
|
-
.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields, .dataviews-view-list li:not(.is-selected)
|
|
861
|
+
.dataviews-view-list li:not(.is-selected):hover .dataviews-view-list__fields, .dataviews-view-list li:not(.is-selected).is-hovered .dataviews-view-list__primary-field,
|
|
862
|
+
.dataviews-view-list li:not(.is-selected).is-hovered .dataviews-view-list__fields, .dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__primary-field,
|
|
843
863
|
.dataviews-view-list li:not(.is-selected):focus-within .dataviews-view-list__fields {
|
|
844
864
|
color: var(--wp-admin-theme-color);
|
|
845
865
|
}
|
|
@@ -855,6 +875,7 @@
|
|
|
855
875
|
color: var(--wp-admin-theme-color);
|
|
856
876
|
}
|
|
857
877
|
.dataviews-view-list .dataviews-view-list__item {
|
|
878
|
+
box-sizing: border-box;
|
|
858
879
|
padding: 16px 24px;
|
|
859
880
|
width: 100%;
|
|
860
881
|
scroll-margin: 8px 0;
|
|
@@ -862,7 +883,7 @@
|
|
|
862
883
|
.dataviews-view-list .dataviews-view-list__item:focus-visible::before {
|
|
863
884
|
position: absolute;
|
|
864
885
|
content: "";
|
|
865
|
-
top:
|
|
886
|
+
top: var(--wp-admin-border-width-focus);
|
|
866
887
|
right: var(--wp-admin-border-width-focus);
|
|
867
888
|
bottom: var(--wp-admin-border-width-focus);
|
|
868
889
|
left: var(--wp-admin-border-width-focus);
|
|
@@ -899,8 +920,8 @@
|
|
|
899
920
|
border-radius: 4px;
|
|
900
921
|
}
|
|
901
922
|
.dataviews-view-list .dataviews-view-list__media-placeholder {
|
|
902
|
-
|
|
903
|
-
height:
|
|
923
|
+
width: 52px;
|
|
924
|
+
height: 52px;
|
|
904
925
|
background-color: #e0e0e0;
|
|
905
926
|
}
|
|
906
927
|
.dataviews-view-list .dataviews-view-list__field-wrapper {
|
|
@@ -939,11 +960,6 @@
|
|
|
939
960
|
color: #757575;
|
|
940
961
|
margin-bottom: auto;
|
|
941
962
|
}
|
|
942
|
-
.dataviews-view-table a {
|
|
943
|
-
text-decoration: none;
|
|
944
|
-
color: #1e1e1e;
|
|
945
|
-
font-weight: 500;
|
|
946
|
-
}
|
|
947
963
|
.dataviews-view-table th {
|
|
948
964
|
text-align: left;
|
|
949
965
|
color: #1e1e1e;
|
|
@@ -1076,10 +1092,6 @@
|
|
|
1076
1092
|
opacity: 1;
|
|
1077
1093
|
}
|
|
1078
1094
|
|
|
1079
|
-
.dataviews-view-table__cell-content-wrapper:empty {
|
|
1080
|
-
display: none;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
1095
|
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
|
|
1084
1096
|
@container (max-width: 430px) {
|
|
1085
1097
|
.dataviews-view-table tr td:first-child,
|
|
@@ -1268,7 +1280,6 @@
|
|
|
1268
1280
|
.edit-site-custom-template-modal__contents > .components-button,
|
|
1269
1281
|
.edit-site-add-new-template__template-list__contents > .components-button {
|
|
1270
1282
|
padding: 32px;
|
|
1271
|
-
border-radius: 2px;
|
|
1272
1283
|
display: flex;
|
|
1273
1284
|
flex-direction: column;
|
|
1274
1285
|
border: 1px solid #ddd;
|
|
@@ -1399,7 +1410,7 @@
|
|
|
1399
1410
|
display: flex !important;
|
|
1400
1411
|
align-items: center;
|
|
1401
1412
|
justify-content: center;
|
|
1402
|
-
border-radius:
|
|
1413
|
+
border-radius: 1px;
|
|
1403
1414
|
}
|
|
1404
1415
|
|
|
1405
1416
|
.edit-site-global-styles-screen-typography__font-variants-count {
|
|
@@ -1464,14 +1475,14 @@
|
|
|
1464
1475
|
position: relative;
|
|
1465
1476
|
width: 100%;
|
|
1466
1477
|
border: #e0e0e0 1px solid;
|
|
1467
|
-
border-radius:
|
|
1478
|
+
border-radius: 4px;
|
|
1468
1479
|
overflow: hidden;
|
|
1469
1480
|
}
|
|
1470
1481
|
|
|
1471
1482
|
.edit-site-global-styles__shadow-preview-panel {
|
|
1472
1483
|
height: 144px;
|
|
1473
1484
|
border: #e0e0e0 1px solid;
|
|
1474
|
-
border-radius:
|
|
1485
|
+
border-radius: 4px;
|
|
1475
1486
|
overflow: auto;
|
|
1476
1487
|
background-image: repeating-linear-gradient(45deg, #f5f5f5 25%, #0000 0, #0000 75%, #f5f5f5 0, #f5f5f5), repeating-linear-gradient(45deg, #f5f5f5 25%, #0000 0, #0000 75%, #f5f5f5 0, #f5f5f5);
|
|
1477
1488
|
background-position: 0 0, 8px 8px;
|
|
@@ -1817,7 +1828,7 @@
|
|
|
1817
1828
|
.edit-site-page {
|
|
1818
1829
|
color: #2f2f2f;
|
|
1819
1830
|
background: #fff;
|
|
1820
|
-
height: 100
|
|
1831
|
+
height: calc(100% - 60px);
|
|
1821
1832
|
/* stylelint-disable-next-line property-no-unknown -- '@container' not globally permitted */
|
|
1822
1833
|
container: edit-site-page/inline-size;
|
|
1823
1834
|
transition: width ease-out 0.2s;
|
|
@@ -1828,6 +1839,11 @@
|
|
|
1828
1839
|
transition-delay: 0s;
|
|
1829
1840
|
}
|
|
1830
1841
|
}
|
|
1842
|
+
@media (min-width: 782px) {
|
|
1843
|
+
.edit-site-page {
|
|
1844
|
+
height: 100%;
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1831
1847
|
|
|
1832
1848
|
.edit-site-page-header {
|
|
1833
1849
|
padding: 16px 48px;
|
|
@@ -1886,10 +1902,6 @@
|
|
|
1886
1902
|
.dataviews-view-table .page-patterns-preview-field {
|
|
1887
1903
|
width: 96px;
|
|
1888
1904
|
flex-grow: 0;
|
|
1889
|
-
border-radius: 2px;
|
|
1890
|
-
}
|
|
1891
|
-
.dataviews-view-table .page-patterns-preview-field .page-patterns-preview-field__button {
|
|
1892
|
-
border-radius: 2px;
|
|
1893
1905
|
}
|
|
1894
1906
|
.page-patterns-preview-field .page-patterns-preview-field__button {
|
|
1895
1907
|
box-shadow: none;
|
|
@@ -1974,9 +1986,6 @@
|
|
|
1974
1986
|
fill: currentcolor;
|
|
1975
1987
|
}
|
|
1976
1988
|
|
|
1977
|
-
.edit-site-page-patterns-dataviews .dataviews-pagination {
|
|
1978
|
-
z-index: 2;
|
|
1979
|
-
}
|
|
1980
1989
|
.edit-site-page-patterns-dataviews .dataviews-view-grid__badge-fields .dataviews-view-grid__field-value:has(.edit-site-patterns__field-sync-status-fully) {
|
|
1981
1990
|
background: rgba(var(--wp-block-synced-color--rgb), 0.04);
|
|
1982
1991
|
color: var(--wp-block-synced-color);
|
|
@@ -2045,7 +2054,6 @@
|
|
|
2045
2054
|
height: 100%;
|
|
2046
2055
|
}
|
|
2047
2056
|
.dataviews-view-table .page-templates-preview-field {
|
|
2048
|
-
border-radius: 2px;
|
|
2049
2057
|
position: relative;
|
|
2050
2058
|
width: 120px;
|
|
2051
2059
|
max-height: 160px;
|
|
@@ -2058,7 +2066,7 @@
|
|
|
2058
2066
|
width: 100%;
|
|
2059
2067
|
height: 100%;
|
|
2060
2068
|
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
2061
|
-
border-radius:
|
|
2069
|
+
border-radius: 4px;
|
|
2062
2070
|
}
|
|
2063
2071
|
|
|
2064
2072
|
.page-templates-description {
|
|
@@ -2485,20 +2493,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2485
2493
|
padding-right: 16px;
|
|
2486
2494
|
}
|
|
2487
2495
|
|
|
2488
|
-
.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus-visible, .edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus {
|
|
2489
|
-
box-shadow: none;
|
|
2490
|
-
outline: none;
|
|
2491
|
-
outline-offset: 0;
|
|
2492
|
-
}
|
|
2493
|
-
.edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus-visible .edit-site-site-icon svg, .edit-site-layout.is-full-canvas .edit-site-layout__view-mode-toggle.components-button:focus .edit-site-site-icon svg {
|
|
2494
|
-
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color, #3858e9);
|
|
2495
|
-
outline: 3px solid #0000;
|
|
2496
|
-
height: 40px;
|
|
2497
|
-
width: 40px;
|
|
2498
|
-
padding: 2px;
|
|
2499
|
-
border-radius: 2px;
|
|
2500
|
-
}
|
|
2501
|
-
|
|
2502
2496
|
.edit-site-save-hub {
|
|
2503
2497
|
color: #949494;
|
|
2504
2498
|
border-top: 1px solid #2f2f2f;
|
|
@@ -2535,7 +2529,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2535
2529
|
contain: content;
|
|
2536
2530
|
}
|
|
2537
2531
|
|
|
2538
|
-
@keyframes
|
|
2532
|
+
@keyframes _g2zts_slide-from-right {
|
|
2539
2533
|
from {
|
|
2540
2534
|
transform: translateX(50px);
|
|
2541
2535
|
opacity: 0;
|
|
@@ -2545,7 +2539,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2545
2539
|
opacity: 1;
|
|
2546
2540
|
}
|
|
2547
2541
|
}
|
|
2548
|
-
@keyframes
|
|
2542
|
+
@keyframes _g2zts_slide-from-left {
|
|
2549
2543
|
from {
|
|
2550
2544
|
transform: translateX(-50px);
|
|
2551
2545
|
opacity: 0;
|
|
@@ -2601,10 +2595,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2601
2595
|
}
|
|
2602
2596
|
}
|
|
2603
2597
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
2604
|
-
animation-name:
|
|
2598
|
+
animation-name: _g2zts_slide-from-left;
|
|
2605
2599
|
}
|
|
2606
2600
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
2607
|
-
animation-name:
|
|
2601
|
+
animation-name: _g2zts_slide-from-right;
|
|
2608
2602
|
}
|
|
2609
2603
|
|
|
2610
2604
|
.edit-site-sidebar-button {
|
|
@@ -2628,7 +2622,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2628
2622
|
padding: 8px 6px 8px 16px;
|
|
2629
2623
|
border: none;
|
|
2630
2624
|
min-height: 40px;
|
|
2631
|
-
border-radius: 2px;
|
|
2632
2625
|
}
|
|
2633
2626
|
.edit-site-sidebar-navigation-item.components-item:hover, .edit-site-sidebar-navigation-item.components-item:focus, .edit-site-sidebar-navigation-item.components-item[aria-current] {
|
|
2634
2627
|
color: #e0e0e0;
|
|
@@ -2777,7 +2770,6 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2777
2770
|
.edit-site-sidebar-navigation-screen__input-control .components-input-control__input {
|
|
2778
2771
|
color: #e0e0e0 !important;
|
|
2779
2772
|
background: #2f2f2f !important;
|
|
2780
|
-
border-radius: 2px;
|
|
2781
2773
|
}
|
|
2782
2774
|
.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop {
|
|
2783
2775
|
border: 4px !important;
|
|
@@ -3047,7 +3039,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
3047
3039
|
|
|
3048
3040
|
.edit-site-editor-canvas-container__section {
|
|
3049
3041
|
background: #fff;
|
|
3050
|
-
border-radius:
|
|
3042
|
+
border-radius: 8px;
|
|
3051
3043
|
bottom: 0;
|
|
3052
3044
|
left: 0;
|
|
3053
3045
|
overflow: hidden;
|
|
@@ -3397,7 +3389,6 @@ button.font-library-modal__upload-area {
|
|
|
3397
3389
|
|
|
3398
3390
|
.edit-site-global-styles-variations_item {
|
|
3399
3391
|
box-sizing: border-box;
|
|
3400
|
-
border-radius: 2px;
|
|
3401
3392
|
cursor: pointer;
|
|
3402
3393
|
}
|
|
3403
3394
|
.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.1-next.5368f64a9.0",
|
|
4
4
|
"description": "Edit Site Page module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -29,45 +29,45 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@babel/runtime": "^7.16.0",
|
|
31
31
|
"@react-spring/web": "^9.4.5",
|
|
32
|
-
"@wordpress/a11y": "^4.
|
|
33
|
-
"@wordpress/api-fetch": "^7.
|
|
34
|
-
"@wordpress/blob": "^4.
|
|
35
|
-
"@wordpress/block-editor": "^14.1.0",
|
|
36
|
-
"@wordpress/block-library": "^9.
|
|
37
|
-
"@wordpress/blocks": "^13.
|
|
38
|
-
"@wordpress/commands": "^1.
|
|
39
|
-
"@wordpress/components": "^28.
|
|
40
|
-
"@wordpress/compose": "^7.
|
|
41
|
-
"@wordpress/core-commands": "^1.
|
|
42
|
-
"@wordpress/core-data": "^7.
|
|
43
|
-
"@wordpress/data": "^10.
|
|
44
|
-
"@wordpress/dataviews": "^4.
|
|
45
|
-
"@wordpress/date": "^5.
|
|
46
|
-
"@wordpress/deprecated": "^4.
|
|
47
|
-
"@wordpress/dom": "^4.
|
|
48
|
-
"@wordpress/editor": "^14.
|
|
49
|
-
"@wordpress/element": "^6.
|
|
50
|
-
"@wordpress/escape-html": "^3.
|
|
51
|
-
"@wordpress/hooks": "^4.
|
|
52
|
-
"@wordpress/html-entities": "^4.
|
|
53
|
-
"@wordpress/i18n": "^5.
|
|
54
|
-
"@wordpress/icons": "^10.
|
|
55
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
56
|
-
"@wordpress/keycodes": "^4.
|
|
57
|
-
"@wordpress/notices": "^5.
|
|
58
|
-
"@wordpress/patterns": "^2.
|
|
59
|
-
"@wordpress/plugins": "^7.
|
|
60
|
-
"@wordpress/preferences": "^4.
|
|
61
|
-
"@wordpress/primitives": "^4.
|
|
62
|
-
"@wordpress/priority-queue": "^3.
|
|
63
|
-
"@wordpress/private-apis": "^1.
|
|
64
|
-
"@wordpress/reusable-blocks": "^5.
|
|
65
|
-
"@wordpress/router": "^1.
|
|
66
|
-
"@wordpress/style-engine": "^2.
|
|
67
|
-
"@wordpress/url": "^4.
|
|
68
|
-
"@wordpress/viewport": "^6.
|
|
69
|
-
"@wordpress/widgets": "^4.
|
|
70
|
-
"@wordpress/wordcount": "^4.
|
|
32
|
+
"@wordpress/a11y": "^4.7.1-next.5368f64a9.0",
|
|
33
|
+
"@wordpress/api-fetch": "^7.7.1-next.5368f64a9.0",
|
|
34
|
+
"@wordpress/blob": "^4.7.1-next.5368f64a9.0",
|
|
35
|
+
"@wordpress/block-editor": "^14.2.1-next.5368f64a9.0",
|
|
36
|
+
"@wordpress/block-library": "^9.7.1-next.5368f64a9.0",
|
|
37
|
+
"@wordpress/blocks": "^13.7.1-next.5368f64a9.0",
|
|
38
|
+
"@wordpress/commands": "^1.7.1-next.5368f64a9.0",
|
|
39
|
+
"@wordpress/components": "^28.8.1-next.5368f64a9.0",
|
|
40
|
+
"@wordpress/compose": "^7.8.1-next.5368f64a9.0",
|
|
41
|
+
"@wordpress/core-commands": "^1.7.1-next.5368f64a9.0",
|
|
42
|
+
"@wordpress/core-data": "^7.7.1-next.5368f64a9.0",
|
|
43
|
+
"@wordpress/data": "^10.7.1-next.5368f64a9.0",
|
|
44
|
+
"@wordpress/dataviews": "^4.3.1-next.5368f64a9.0",
|
|
45
|
+
"@wordpress/date": "^5.7.1-next.5368f64a9.0",
|
|
46
|
+
"@wordpress/deprecated": "^4.7.1-next.5368f64a9.0",
|
|
47
|
+
"@wordpress/dom": "^4.7.1-next.5368f64a9.0",
|
|
48
|
+
"@wordpress/editor": "^14.7.1-next.5368f64a9.0",
|
|
49
|
+
"@wordpress/element": "^6.7.1-next.5368f64a9.0",
|
|
50
|
+
"@wordpress/escape-html": "^3.7.1-next.5368f64a9.0",
|
|
51
|
+
"@wordpress/hooks": "^4.7.1-next.5368f64a9.0",
|
|
52
|
+
"@wordpress/html-entities": "^4.7.1-next.5368f64a9.0",
|
|
53
|
+
"@wordpress/i18n": "^5.7.1-next.5368f64a9.0",
|
|
54
|
+
"@wordpress/icons": "^10.7.1-next.5368f64a9.0",
|
|
55
|
+
"@wordpress/keyboard-shortcuts": "^5.7.1-next.5368f64a9.0",
|
|
56
|
+
"@wordpress/keycodes": "^4.7.1-next.5368f64a9.0",
|
|
57
|
+
"@wordpress/notices": "^5.7.1-next.5368f64a9.0",
|
|
58
|
+
"@wordpress/patterns": "^2.7.1-next.5368f64a9.0",
|
|
59
|
+
"@wordpress/plugins": "^7.7.1-next.5368f64a9.0",
|
|
60
|
+
"@wordpress/preferences": "^4.7.1-next.5368f64a9.0",
|
|
61
|
+
"@wordpress/primitives": "^4.7.1-next.5368f64a9.0",
|
|
62
|
+
"@wordpress/priority-queue": "^3.7.1-next.5368f64a9.0",
|
|
63
|
+
"@wordpress/private-apis": "^1.7.1-next.5368f64a9.0",
|
|
64
|
+
"@wordpress/reusable-blocks": "^5.7.1-next.5368f64a9.0",
|
|
65
|
+
"@wordpress/router": "^1.7.1-next.5368f64a9.0",
|
|
66
|
+
"@wordpress/style-engine": "^2.7.1-next.5368f64a9.0",
|
|
67
|
+
"@wordpress/url": "^4.7.1-next.5368f64a9.0",
|
|
68
|
+
"@wordpress/viewport": "^6.7.1-next.5368f64a9.0",
|
|
69
|
+
"@wordpress/widgets": "^4.7.1-next.5368f64a9.0",
|
|
70
|
+
"@wordpress/wordcount": "^4.7.1-next.5368f64a9.0",
|
|
71
71
|
"change-case": "^4.1.2",
|
|
72
72
|
"clsx": "^2.1.1",
|
|
73
73
|
"colord": "^2.9.2",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "24934a1f5251bbee15045d1fd953d9c5650317cd"
|
|
86
86
|
}
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
FlexItem,
|
|
10
10
|
SearchControl,
|
|
11
11
|
TextHighlight,
|
|
12
|
-
|
|
12
|
+
Composite,
|
|
13
13
|
__experimentalText as Text,
|
|
14
14
|
__experimentalVStack as VStack,
|
|
15
15
|
} from '@wordpress/components';
|
|
@@ -20,15 +20,8 @@ import { useDebouncedInput } from '@wordpress/compose';
|
|
|
20
20
|
/**
|
|
21
21
|
* Internal dependencies
|
|
22
22
|
*/
|
|
23
|
-
import { unlock } from '../../lock-unlock';
|
|
24
23
|
import { mapToIHasNameAndId } from './utils';
|
|
25
24
|
|
|
26
|
-
const {
|
|
27
|
-
CompositeV2: Composite,
|
|
28
|
-
CompositeItemV2: CompositeItem,
|
|
29
|
-
useCompositeStoreV2: useCompositeStore,
|
|
30
|
-
} = unlock( componentsPrivateApis );
|
|
31
|
-
|
|
32
25
|
const EMPTY_ARRAY = [];
|
|
33
26
|
|
|
34
27
|
function SuggestionListItem( {
|
|
@@ -40,9 +33,11 @@ function SuggestionListItem( {
|
|
|
40
33
|
const baseCssClass =
|
|
41
34
|
'edit-site-custom-template-modal__suggestions_list__list-item';
|
|
42
35
|
return (
|
|
43
|
-
<
|
|
36
|
+
<Composite.Item
|
|
44
37
|
render={
|
|
45
38
|
<Button
|
|
39
|
+
// TODO: Switch to `true` (40px size) if possible
|
|
40
|
+
__next40pxDefaultSize={ false }
|
|
46
41
|
role="option"
|
|
47
42
|
className={ baseCssClass }
|
|
48
43
|
onClick={ () =>
|
|
@@ -75,7 +70,7 @@ function SuggestionListItem( {
|
|
|
75
70
|
{ suggestion.link }
|
|
76
71
|
</Text>
|
|
77
72
|
) }
|
|
78
|
-
</
|
|
73
|
+
</Composite.Item>
|
|
79
74
|
);
|
|
80
75
|
}
|
|
81
76
|
|
|
@@ -120,7 +115,6 @@ function useSearchSuggestions( entityForSuggestions, search ) {
|
|
|
120
115
|
}
|
|
121
116
|
|
|
122
117
|
function SuggestionList( { entityForSuggestions, onSelect } ) {
|
|
123
|
-
const composite = useCompositeStore( { orientation: 'vertical' } );
|
|
124
118
|
const [ search, setSearch, debouncedSearch ] = useDebouncedInput();
|
|
125
119
|
const suggestions = useSearchSuggestions(
|
|
126
120
|
entityForSuggestions,
|
|
@@ -144,7 +138,7 @@ function SuggestionList( { entityForSuggestions, onSelect } ) {
|
|
|
144
138
|
) }
|
|
145
139
|
{ !! suggestions?.length && (
|
|
146
140
|
<Composite
|
|
147
|
-
|
|
141
|
+
orientation="vertical"
|
|
148
142
|
role="listbox"
|
|
149
143
|
className="edit-site-custom-template-modal__suggestions_list"
|
|
150
144
|
aria-label={ __( 'Suggestions list' ) }
|
|
@@ -107,6 +107,8 @@ function TemplateListItem( {
|
|
|
107
107
|
} ) {
|
|
108
108
|
return (
|
|
109
109
|
<Button
|
|
110
|
+
// TODO: Switch to `true` (40px size) if possible
|
|
111
|
+
__next40pxDefaultSize={ false }
|
|
110
112
|
className={ className }
|
|
111
113
|
onClick={ onClick }
|
|
112
114
|
label={ description }
|
|
@@ -164,14 +166,10 @@ function NewTemplateModal( { onClose } ) {
|
|
|
164
166
|
|
|
165
167
|
const isMobile = useViewportMatch( 'medium', '<' );
|
|
166
168
|
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
return {
|
|
173
|
-
homeUrl: getUnstableBase()?.home,
|
|
174
|
-
};
|
|
169
|
+
const homeUrl = useSelect( ( select ) => {
|
|
170
|
+
// Site index.
|
|
171
|
+
return select( coreStore ).getEntityRecord( 'root', '__unstableBase' )
|
|
172
|
+
?.home;
|
|
175
173
|
}, [] );
|
|
176
174
|
|
|
177
175
|
const TEMPLATE_SHORT_DESCRIPTIONS = {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
|
|
83
83
|
.edit-site-custom-template-modal__no-results {
|
|
84
84
|
border: $border-width solid $gray-400;
|
|
85
|
-
border-radius: $radius-
|
|
85
|
+
border-radius: $radius-small;
|
|
86
86
|
padding: $grid-unit-20;
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -132,7 +132,6 @@
|
|
|
132
132
|
.edit-site-add-new-template__template-list__contents {
|
|
133
133
|
> .components-button {
|
|
134
134
|
padding: $grid-unit-40;
|
|
135
|
-
border-radius: $radius-block-ui;
|
|
136
135
|
display: flex;
|
|
137
136
|
flex-direction: column;
|
|
138
137
|
border: $border-width solid $gray-300;
|