@wordpress/edit-site 6.25.0 → 6.26.1-next.719a03cbe.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-generic-template-modal-content.js +13 -6
- package/build/components/add-new-template/add-custom-generic-template-modal-content.js.map +1 -1
- package/build/components/add-new-template/add-custom-template-modal-content.js +37 -1
- package/build/components/add-new-template/add-custom-template-modal-content.js.map +1 -1
- package/build/components/add-new-template/index.js +16 -3
- package/build/components/add-new-template/index.js.map +1 -1
- package/build/components/add-new-template/utils.js +1 -1
- package/build/components/add-new-template/utils.js.map +1 -1
- package/build/components/global-styles/font-sizes/font-sizes.js +1 -2
- package/build/components/global-styles/font-sizes/font-sizes.js.map +1 -1
- package/build/components/global-styles/shadows-edit-panel.js +3 -7
- package/build/components/global-styles/shadows-edit-panel.js.map +1 -1
- package/build/components/style-book/index.js +61 -13
- package/build/components/style-book/index.js.map +1 -1
- package/build-module/components/add-new-template/add-custom-generic-template-modal-content.js +14 -7
- package/build-module/components/add-new-template/add-custom-generic-template-modal-content.js.map +1 -1
- package/build-module/components/add-new-template/add-custom-template-modal-content.js +37 -1
- 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 +17 -4
- package/build-module/components/add-new-template/index.js.map +1 -1
- package/build-module/components/add-new-template/utils.js +1 -1
- package/build-module/components/add-new-template/utils.js.map +1 -1
- package/build-module/components/global-styles/font-sizes/font-sizes.js +1 -2
- package/build-module/components/global-styles/font-sizes/font-sizes.js.map +1 -1
- package/build-module/components/global-styles/shadows-edit-panel.js +3 -7
- package/build-module/components/global-styles/shadows-edit-panel.js.map +1 -1
- package/build-module/components/style-book/index.js +61 -13
- package/build-module/components/style-book/index.js.map +1 -1
- package/build-style/posts-rtl.css +313 -19
- package/build-style/posts.css +313 -19
- package/build-style/style-rtl.css +315 -20
- package/build-style/style.css +315 -20
- package/package.json +42 -42
- package/src/components/add-new-template/add-custom-generic-template-modal-content.js +14 -6
- package/src/components/add-new-template/add-custom-template-modal-content.js +45 -1
- package/src/components/add-new-template/index.js +25 -3
- package/src/components/add-new-template/utils.js +1 -1
- package/src/components/global-styles/font-sizes/font-sizes.js +2 -2
- package/src/components/global-styles/shadows-edit-panel.js +1 -6
- package/src/components/global-styles/style.scss +2 -1
- package/src/components/style-book/index.js +76 -13
- package/tsconfig.tsbuildinfo +1 -1
package/build-style/style.css
CHANGED
|
@@ -344,6 +344,30 @@
|
|
|
344
344
|
border-radius: 2px;
|
|
345
345
|
}
|
|
346
346
|
|
|
347
|
+
/**
|
|
348
|
+
* Applying a consistent 24px padding when DataViews are placed within cards.
|
|
349
|
+
*/
|
|
350
|
+
.components-card__body:has(> .dataviews-wrapper) {
|
|
351
|
+
padding: 8px 0 0;
|
|
352
|
+
overflow: hidden;
|
|
353
|
+
}
|
|
354
|
+
.components-card__body:has(> .dataviews-wrapper) .dataviews__view-actions,
|
|
355
|
+
.components-card__body:has(> .dataviews-wrapper) .dataviews-filters__container,
|
|
356
|
+
.components-card__body:has(> .dataviews-wrapper) .dataviews-footer,
|
|
357
|
+
.components-card__body:has(> .dataviews-wrapper) .dataviews-view-grid,
|
|
358
|
+
.components-card__body:has(> .dataviews-wrapper) .dataviews-loading,
|
|
359
|
+
.components-card__body:has(> .dataviews-wrapper) .dataviews-no-results {
|
|
360
|
+
padding-inline: 24px;
|
|
361
|
+
}
|
|
362
|
+
.components-card__body:has(> .dataviews-wrapper) .dataviews-view-table tr td:first-child,
|
|
363
|
+
.components-card__body:has(> .dataviews-wrapper) .dataviews-view-table tr th:first-child {
|
|
364
|
+
padding-inline-start: 24px;
|
|
365
|
+
}
|
|
366
|
+
.components-card__body:has(> .dataviews-wrapper) .dataviews-view-table tr td:last-child,
|
|
367
|
+
.components-card__body:has(> .dataviews-wrapper) .dataviews-view-table tr th:last-child {
|
|
368
|
+
padding-inline-end: 24px;
|
|
369
|
+
}
|
|
370
|
+
|
|
347
371
|
.dataviews-bulk-actions-footer__item-count {
|
|
348
372
|
color: #1e1e1e;
|
|
349
373
|
font-weight: 500;
|
|
@@ -384,17 +408,26 @@
|
|
|
384
408
|
}
|
|
385
409
|
|
|
386
410
|
.dataviews-filters__summary-operators-container {
|
|
387
|
-
padding: 8px
|
|
411
|
+
padding: 8px 16px;
|
|
388
412
|
}
|
|
389
|
-
.dataviews-filters__summary-operators-container:has(+ .dataviews-filters__search-widget-listbox) {
|
|
413
|
+
.dataviews-filters__summary-operators-container:has(+ .dataviews-filters__search-widget-listbox), .dataviews-filters__summary-operators-container:has(+ .dataviews-filters__user-input-widget) {
|
|
390
414
|
border-bottom: 1px solid #e0e0e0;
|
|
391
|
-
padding-bottom: 8px;
|
|
392
415
|
}
|
|
393
416
|
.dataviews-filters__summary-operators-container:empty {
|
|
394
417
|
display: none;
|
|
395
418
|
}
|
|
396
419
|
.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-name {
|
|
397
420
|
color: #757575;
|
|
421
|
+
white-space: nowrap;
|
|
422
|
+
overflow: hidden;
|
|
423
|
+
text-overflow: ellipsis;
|
|
424
|
+
flex-shrink: 0; /* Prevents this element from shrinking */
|
|
425
|
+
max-width: calc(100% - 55px);
|
|
426
|
+
}
|
|
427
|
+
.dataviews-filters__summary-operators-container .dataviews-filters__summary-operators-filter-select {
|
|
428
|
+
width: 100%;
|
|
429
|
+
white-space: nowrap;
|
|
430
|
+
overflow: hidden;
|
|
398
431
|
}
|
|
399
432
|
|
|
400
433
|
.dataviews-filters__summary-chip-container {
|
|
@@ -492,9 +525,13 @@
|
|
|
492
525
|
gap: 8px;
|
|
493
526
|
border-radius: 2px;
|
|
494
527
|
box-sizing: border-box;
|
|
495
|
-
padding:
|
|
528
|
+
padding: 4px 12px;
|
|
496
529
|
cursor: default;
|
|
497
|
-
|
|
530
|
+
min-height: 32px;
|
|
531
|
+
font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
532
|
+
font-weight: 400;
|
|
533
|
+
font-size: 13px;
|
|
534
|
+
line-height: 20px;
|
|
498
535
|
}
|
|
499
536
|
.dataviews-filters__search-widget-listitem:last-child {
|
|
500
537
|
margin-block-end: 0;
|
|
@@ -503,16 +540,23 @@
|
|
|
503
540
|
background-color: var(--wp-admin-theme-color);
|
|
504
541
|
color: #fff;
|
|
505
542
|
}
|
|
506
|
-
.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-check, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-check, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-check {
|
|
507
|
-
fill: #fff;
|
|
508
|
-
}
|
|
509
543
|
.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-description, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-description, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-description {
|
|
510
544
|
color: #fff;
|
|
511
545
|
}
|
|
512
|
-
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
546
|
+
.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection {
|
|
547
|
+
border-color: var(--wp-admin-theme-color-darker-20, #183ad6);
|
|
548
|
+
background: #fff;
|
|
549
|
+
}
|
|
550
|
+
.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-single-selection.is-selected, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-single-selection.is-selected, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-single-selection.is-selected {
|
|
551
|
+
border-color: var(--wp-admin-theme-color-darker-20, #183ad6);
|
|
552
|
+
background: var(--wp-admin-theme-color-darker-20, #183ad6);
|
|
553
|
+
}
|
|
554
|
+
.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection {
|
|
555
|
+
border-color: var(--wp-admin-theme-color-darker-20, #183ad6);
|
|
556
|
+
}
|
|
557
|
+
.dataviews-filters__search-widget-listitem:hover .dataviews-filters__search-widget-listitem-multi-selection.is-selected, .dataviews-filters__search-widget-listitem[data-active-item] .dataviews-filters__search-widget-listitem-multi-selection.is-selected, .dataviews-filters__search-widget-listitem:focus .dataviews-filters__search-widget-listitem-multi-selection.is-selected {
|
|
558
|
+
border-color: var(--wp-admin-theme-color-darker-20, #183ad6);
|
|
559
|
+
background: var(--wp-admin-theme-color-darker-20, #183ad6);
|
|
516
560
|
}
|
|
517
561
|
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-description {
|
|
518
562
|
display: block;
|
|
@@ -522,6 +566,208 @@
|
|
|
522
566
|
line-height: 16px;
|
|
523
567
|
color: #757575;
|
|
524
568
|
}
|
|
569
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection {
|
|
570
|
+
border: 1px solid #1e1e1e;
|
|
571
|
+
margin-right: 12px;
|
|
572
|
+
transition: none;
|
|
573
|
+
border-radius: 50%;
|
|
574
|
+
width: 24px;
|
|
575
|
+
height: 24px;
|
|
576
|
+
min-width: 24px;
|
|
577
|
+
max-width: 24px;
|
|
578
|
+
position: relative;
|
|
579
|
+
margin: 0;
|
|
580
|
+
padding: 0;
|
|
581
|
+
}
|
|
582
|
+
@media not (prefers-reduced-motion) {
|
|
583
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection {
|
|
584
|
+
transition: box-shadow 0.1s linear;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
@media (min-width: 600px) {
|
|
588
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection {
|
|
589
|
+
height: 16px;
|
|
590
|
+
width: 16px;
|
|
591
|
+
min-width: 16px;
|
|
592
|
+
max-width: 16px;
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked::before {
|
|
596
|
+
box-sizing: inherit;
|
|
597
|
+
width: 12px;
|
|
598
|
+
height: 12px;
|
|
599
|
+
position: absolute;
|
|
600
|
+
top: 50%;
|
|
601
|
+
left: 50%;
|
|
602
|
+
transform: translate(-50%, -50%);
|
|
603
|
+
margin: 0;
|
|
604
|
+
background-color: #fff;
|
|
605
|
+
border: 4px solid #fff;
|
|
606
|
+
}
|
|
607
|
+
@media (min-width: 600px) {
|
|
608
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked::before {
|
|
609
|
+
width: 8px;
|
|
610
|
+
height: 8px;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:focus {
|
|
614
|
+
box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color);
|
|
615
|
+
outline: 2px solid transparent;
|
|
616
|
+
}
|
|
617
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection:checked {
|
|
618
|
+
background: var(--wp-admin-theme-color);
|
|
619
|
+
border: none;
|
|
620
|
+
}
|
|
621
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected {
|
|
622
|
+
background: var(--wp-admin-theme-color, #3858e9);
|
|
623
|
+
border-color: var(--wp-admin-theme-color, #3858e9);
|
|
624
|
+
}
|
|
625
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected::before {
|
|
626
|
+
content: "";
|
|
627
|
+
border-radius: 50%;
|
|
628
|
+
box-sizing: inherit;
|
|
629
|
+
width: 12px;
|
|
630
|
+
height: 12px;
|
|
631
|
+
position: absolute;
|
|
632
|
+
top: 50%;
|
|
633
|
+
left: 50%;
|
|
634
|
+
transform: translate(-50%, -50%);
|
|
635
|
+
margin: 0;
|
|
636
|
+
background-color: #fff;
|
|
637
|
+
border: 4px solid #fff;
|
|
638
|
+
}
|
|
639
|
+
@media (min-width: 600px) {
|
|
640
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-single-selection.is-selected::before {
|
|
641
|
+
width: 8px;
|
|
642
|
+
height: 8px;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection {
|
|
646
|
+
--checkbox-size: 24px;
|
|
647
|
+
border: 1px solid #1e1e1e;
|
|
648
|
+
margin-right: 12px;
|
|
649
|
+
transition: none;
|
|
650
|
+
border-radius: 2px;
|
|
651
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
652
|
+
padding: 6px 8px;
|
|
653
|
+
/* Fonts smaller than 16px causes mobile safari to zoom. */
|
|
654
|
+
font-size: 16px;
|
|
655
|
+
/* Override core line-height. To be reviewed. */
|
|
656
|
+
line-height: normal;
|
|
657
|
+
box-shadow: 0 0 0 transparent;
|
|
658
|
+
border-radius: 2px;
|
|
659
|
+
border: 1px solid #949494;
|
|
660
|
+
position: relative;
|
|
661
|
+
background: #fff;
|
|
662
|
+
color: #1e1e1e;
|
|
663
|
+
margin: 0;
|
|
664
|
+
padding: 0;
|
|
665
|
+
width: var(--checkbox-size);
|
|
666
|
+
height: var(--checkbox-size);
|
|
667
|
+
}
|
|
668
|
+
@media not (prefers-reduced-motion) {
|
|
669
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection {
|
|
670
|
+
transition: box-shadow 0.1s linear;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
@media (min-width: 600px) {
|
|
674
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection {
|
|
675
|
+
font-size: 13px;
|
|
676
|
+
/* Override core line-height. To be reviewed. */
|
|
677
|
+
line-height: normal;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus {
|
|
681
|
+
border-color: var(--wp-admin-theme-color);
|
|
682
|
+
box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color);
|
|
683
|
+
outline: 2px solid transparent;
|
|
684
|
+
}
|
|
685
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-webkit-input-placeholder {
|
|
686
|
+
color: rgba(30, 30, 30, 0.62);
|
|
687
|
+
}
|
|
688
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection::-moz-placeholder {
|
|
689
|
+
color: rgba(30, 30, 30, 0.62);
|
|
690
|
+
}
|
|
691
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:-ms-input-placeholder {
|
|
692
|
+
color: rgba(30, 30, 30, 0.62);
|
|
693
|
+
}
|
|
694
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:focus {
|
|
695
|
+
box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color);
|
|
696
|
+
outline: 2px solid transparent;
|
|
697
|
+
}
|
|
698
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked {
|
|
699
|
+
background: var(--wp-admin-theme-color);
|
|
700
|
+
border-color: var(--wp-admin-theme-color);
|
|
701
|
+
}
|
|
702
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked::-ms-check {
|
|
703
|
+
opacity: 0;
|
|
704
|
+
}
|
|
705
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked::before, .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]::before {
|
|
706
|
+
margin: -3px -5px;
|
|
707
|
+
color: #fff;
|
|
708
|
+
}
|
|
709
|
+
@media (min-width: 782px) {
|
|
710
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:checked::before, .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]::before {
|
|
711
|
+
margin: -4px 0 0 -5px;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed] {
|
|
715
|
+
background: var(--wp-admin-theme-color);
|
|
716
|
+
border-color: var(--wp-admin-theme-color);
|
|
717
|
+
}
|
|
718
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]::before {
|
|
719
|
+
content: "\f460";
|
|
720
|
+
float: left;
|
|
721
|
+
display: inline-block;
|
|
722
|
+
vertical-align: middle;
|
|
723
|
+
width: 16px;
|
|
724
|
+
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- dashicons don't need a generic family keyword. */
|
|
725
|
+
font: normal 30px/1 dashicons;
|
|
726
|
+
speak: none;
|
|
727
|
+
-webkit-font-smoothing: antialiased;
|
|
728
|
+
-moz-osx-font-smoothing: grayscale;
|
|
729
|
+
}
|
|
730
|
+
@media (min-width: 782px) {
|
|
731
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-checked=mixed]::before {
|
|
732
|
+
float: none;
|
|
733
|
+
font-size: 21px;
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection[aria-disabled=true], .dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection:disabled {
|
|
737
|
+
background: #f0f0f0;
|
|
738
|
+
border-color: #ddd;
|
|
739
|
+
cursor: default;
|
|
740
|
+
opacity: 1;
|
|
741
|
+
}
|
|
742
|
+
@media (min-width: 600px) {
|
|
743
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection {
|
|
744
|
+
--checkbox-size: 16px;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
@media not (prefers-reduced-motion) {
|
|
748
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection {
|
|
749
|
+
transition: 0.1s border-color ease-in-out;
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected {
|
|
753
|
+
background: var(--wp-admin-theme-color, #3858e9);
|
|
754
|
+
border-color: var(--wp-admin-theme-color, #3858e9);
|
|
755
|
+
}
|
|
756
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg {
|
|
757
|
+
--checkmark-size: var(--checkbox-size);
|
|
758
|
+
fill: #fff;
|
|
759
|
+
position: absolute;
|
|
760
|
+
left: 50%;
|
|
761
|
+
top: 50%;
|
|
762
|
+
transform: translate(-50%, -50%);
|
|
763
|
+
width: var(--checkmark-size);
|
|
764
|
+
height: var(--checkmark-size);
|
|
765
|
+
}
|
|
766
|
+
@media (min-width: 600px) {
|
|
767
|
+
.dataviews-filters__search-widget-listitem .dataviews-filters__search-widget-listitem-multi-selection.is-selected svg {
|
|
768
|
+
--checkmark-size: calc(var(--checkbox-size) + 4px);
|
|
769
|
+
}
|
|
770
|
+
}
|
|
525
771
|
|
|
526
772
|
.dataviews-filters__search-widget-filter-combobox__wrapper {
|
|
527
773
|
position: relative;
|
|
@@ -627,6 +873,13 @@
|
|
|
627
873
|
width: fit-content;
|
|
628
874
|
}
|
|
629
875
|
|
|
876
|
+
.dataviews-filters__user-input-widget {
|
|
877
|
+
padding: 16px;
|
|
878
|
+
}
|
|
879
|
+
.dataviews-filters__user-input-widget .components-input-control__prefix {
|
|
880
|
+
padding-left: 8px;
|
|
881
|
+
}
|
|
882
|
+
|
|
630
883
|
.dataviews-footer {
|
|
631
884
|
position: sticky;
|
|
632
885
|
bottom: 0;
|
|
@@ -1132,6 +1385,23 @@ div.dataviews-view-list {
|
|
|
1132
1385
|
.dataviews-view-table th.dataviews-view-table__actions-column {
|
|
1133
1386
|
text-align: right;
|
|
1134
1387
|
}
|
|
1388
|
+
.dataviews-view-table td.dataviews-view-table__actions-column--sticky,
|
|
1389
|
+
.dataviews-view-table th.dataviews-view-table__actions-column--sticky {
|
|
1390
|
+
position: sticky;
|
|
1391
|
+
right: 0;
|
|
1392
|
+
background-color: #fff;
|
|
1393
|
+
}
|
|
1394
|
+
.dataviews-view-table td.dataviews-view-table__actions-column--stuck::after,
|
|
1395
|
+
.dataviews-view-table th.dataviews-view-table__actions-column--stuck::after {
|
|
1396
|
+
display: block;
|
|
1397
|
+
content: "";
|
|
1398
|
+
position: absolute;
|
|
1399
|
+
top: 0;
|
|
1400
|
+
bottom: 0;
|
|
1401
|
+
left: 0;
|
|
1402
|
+
width: 1px;
|
|
1403
|
+
background-color: #f0f0f0;
|
|
1404
|
+
}
|
|
1135
1405
|
.dataviews-view-table td.dataviews-view-table__checkbox-column,
|
|
1136
1406
|
.dataviews-view-table th.dataviews-view-table__checkbox-column {
|
|
1137
1407
|
padding-right: 0;
|
|
@@ -1158,7 +1428,7 @@ div.dataviews-view-list {
|
|
|
1158
1428
|
.dataviews-view-table tr:last-child {
|
|
1159
1429
|
border-bottom: 0;
|
|
1160
1430
|
}
|
|
1161
|
-
.dataviews-view-table tr.is-hovered {
|
|
1431
|
+
.dataviews-view-table tr.is-hovered, .dataviews-view-table tr.is-hovered .dataviews-view-table__actions-column--sticky {
|
|
1162
1432
|
background-color: #f8f8f8;
|
|
1163
1433
|
}
|
|
1164
1434
|
.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input {
|
|
@@ -1192,6 +1462,12 @@ div.dataviews-view-list {
|
|
|
1192
1462
|
.dataviews-view-table tr.is-selected:hover {
|
|
1193
1463
|
background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08);
|
|
1194
1464
|
}
|
|
1465
|
+
.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky {
|
|
1466
|
+
background-color: color-mix(in srgb, rgb(var(--wp-admin-theme-color--rgb)) 4%, #fff);
|
|
1467
|
+
}
|
|
1468
|
+
.dataviews-view-table tr.is-selected:hover .dataviews-view-table__actions-column--sticky {
|
|
1469
|
+
background-color: color-mix(in srgb, rgb(var(--wp-admin-theme-color--rgb)) 8%, #fff);
|
|
1470
|
+
}
|
|
1195
1471
|
.dataviews-view-table thead {
|
|
1196
1472
|
position: sticky;
|
|
1197
1473
|
inset-block-start: 0;
|
|
@@ -1220,6 +1496,12 @@ div.dataviews-view-list {
|
|
|
1220
1496
|
display: flex;
|
|
1221
1497
|
align-items: center;
|
|
1222
1498
|
}
|
|
1499
|
+
.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end {
|
|
1500
|
+
justify-content: flex-end;
|
|
1501
|
+
}
|
|
1502
|
+
.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center {
|
|
1503
|
+
justify-content: center;
|
|
1504
|
+
}
|
|
1223
1505
|
.dataviews-view-table tbody .components-v-stack > .dataviews-view-table__cell-content-wrapper:not(:first-child) {
|
|
1224
1506
|
min-height: 0;
|
|
1225
1507
|
}
|
|
@@ -1292,6 +1574,11 @@ div.dataviews-view-list {
|
|
|
1292
1574
|
padding: 0;
|
|
1293
1575
|
}
|
|
1294
1576
|
|
|
1577
|
+
.dataviews-controls__datetime-number,
|
|
1578
|
+
.dataviews-controls__datetime-unit {
|
|
1579
|
+
flex: 1 1 50%;
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1295
1582
|
.dataforms-layouts-panel__field {
|
|
1296
1583
|
width: 100%;
|
|
1297
1584
|
min-height: 32px;
|
|
@@ -1305,10 +1592,12 @@ div.dataviews-view-list {
|
|
|
1305
1592
|
min-height: 32px;
|
|
1306
1593
|
display: flex;
|
|
1307
1594
|
align-items: center;
|
|
1308
|
-
padding: 6px 0;
|
|
1309
1595
|
line-height: 20px;
|
|
1310
1596
|
hyphens: auto;
|
|
1311
1597
|
}
|
|
1598
|
+
.dataforms-layouts-panel__field-label--label-position-side {
|
|
1599
|
+
align-self: center;
|
|
1600
|
+
}
|
|
1312
1601
|
|
|
1313
1602
|
.dataforms-layouts-panel__field-control {
|
|
1314
1603
|
flex-grow: 1;
|
|
@@ -1324,6 +1613,9 @@ div.dataviews-view-list {
|
|
|
1324
1613
|
text-wrap: pretty;
|
|
1325
1614
|
min-height: 32px;
|
|
1326
1615
|
}
|
|
1616
|
+
.dataforms-layouts-panel__field-control.components-button.is-link[aria-disabled=true] {
|
|
1617
|
+
text-decoration: none;
|
|
1618
|
+
}
|
|
1327
1619
|
.dataforms-layouts-panel__field-control .components-dropdown {
|
|
1328
1620
|
max-width: 100%;
|
|
1329
1621
|
}
|
|
@@ -1360,10 +1652,12 @@ div.dataviews-view-list {
|
|
|
1360
1652
|
min-height: 32px;
|
|
1361
1653
|
display: flex;
|
|
1362
1654
|
align-items: center;
|
|
1363
|
-
padding: 6px 0;
|
|
1364
1655
|
line-height: 20px;
|
|
1365
1656
|
hyphens: auto;
|
|
1366
1657
|
}
|
|
1658
|
+
.dataforms-layouts-regular__field-label--label-position-side {
|
|
1659
|
+
align-self: center;
|
|
1660
|
+
}
|
|
1367
1661
|
|
|
1368
1662
|
.dataforms-layouts-regular__field-control {
|
|
1369
1663
|
flex-grow: 1;
|
|
@@ -1859,7 +2153,8 @@ fieldset.fields-controls__featured-image .fields-controls__featured-image-remove
|
|
|
1859
2153
|
flex-shrink: 0;
|
|
1860
2154
|
}
|
|
1861
2155
|
|
|
1862
|
-
.edit-site-global-styles__shadows-panel__options-container
|
|
2156
|
+
.edit-site-global-styles__shadows-panel__options-container,
|
|
2157
|
+
.edit-site-global-styles__typography-panel__options-container {
|
|
1863
2158
|
height: 24px;
|
|
1864
2159
|
}
|
|
1865
2160
|
|
|
@@ -2903,7 +3198,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2903
3198
|
contain: content;
|
|
2904
3199
|
}
|
|
2905
3200
|
|
|
2906
|
-
@keyframes
|
|
3201
|
+
@keyframes _k22zn_slide-from-right {
|
|
2907
3202
|
from {
|
|
2908
3203
|
transform: translateX(50px);
|
|
2909
3204
|
opacity: 0;
|
|
@@ -2913,7 +3208,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2913
3208
|
opacity: 1;
|
|
2914
3209
|
}
|
|
2915
3210
|
}
|
|
2916
|
-
@keyframes
|
|
3211
|
+
@keyframes _k22zn_slide-from-left {
|
|
2917
3212
|
from {
|
|
2918
3213
|
transform: translateX(-50px);
|
|
2919
3214
|
opacity: 0;
|
|
@@ -2969,10 +3264,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2969
3264
|
}
|
|
2970
3265
|
}
|
|
2971
3266
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
2972
|
-
animation-name:
|
|
3267
|
+
animation-name: _k22zn_slide-from-left;
|
|
2973
3268
|
}
|
|
2974
3269
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
2975
|
-
animation-name:
|
|
3270
|
+
animation-name: _k22zn_slide-from-right;
|
|
2976
3271
|
}
|
|
2977
3272
|
|
|
2978
3273
|
.edit-site-sidebar-button {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.26.1-next.719a03cbe.0",
|
|
4
4
|
"description": "Edit Site Page module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -30,46 +30,46 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/runtime": "7.25.7",
|
|
32
32
|
"@react-spring/web": "^9.4.5",
|
|
33
|
-
"@wordpress/a11y": "^4.
|
|
34
|
-
"@wordpress/api-fetch": "^7.
|
|
35
|
-
"@wordpress/blob": "^4.
|
|
36
|
-
"@wordpress/block-editor": "^14.
|
|
37
|
-
"@wordpress/block-library": "^9.
|
|
38
|
-
"@wordpress/blocks": "^14.
|
|
39
|
-
"@wordpress/commands": "^1.
|
|
40
|
-
"@wordpress/components": "^29.
|
|
41
|
-
"@wordpress/compose": "^7.
|
|
42
|
-
"@wordpress/core-commands": "^1.
|
|
43
|
-
"@wordpress/core-data": "^7.
|
|
44
|
-
"@wordpress/data": "^10.
|
|
45
|
-
"@wordpress/dataviews": "^
|
|
46
|
-
"@wordpress/date": "^5.
|
|
47
|
-
"@wordpress/deprecated": "^4.
|
|
48
|
-
"@wordpress/dom": "^4.
|
|
49
|
-
"@wordpress/editor": "^14.
|
|
50
|
-
"@wordpress/element": "^6.
|
|
51
|
-
"@wordpress/escape-html": "^3.
|
|
52
|
-
"@wordpress/fields": "^0.
|
|
53
|
-
"@wordpress/hooks": "^4.
|
|
54
|
-
"@wordpress/html-entities": "^4.
|
|
55
|
-
"@wordpress/i18n": "^
|
|
56
|
-
"@wordpress/icons": "^10.
|
|
57
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
58
|
-
"@wordpress/keycodes": "^4.
|
|
59
|
-
"@wordpress/media-utils": "^5.
|
|
60
|
-
"@wordpress/notices": "^5.
|
|
61
|
-
"@wordpress/patterns": "^2.
|
|
62
|
-
"@wordpress/plugins": "^7.
|
|
63
|
-
"@wordpress/preferences": "^4.
|
|
64
|
-
"@wordpress/primitives": "^4.
|
|
65
|
-
"@wordpress/private-apis": "^1.
|
|
66
|
-
"@wordpress/reusable-blocks": "^5.
|
|
67
|
-
"@wordpress/router": "^1.
|
|
68
|
-
"@wordpress/style-engine": "^2.
|
|
69
|
-
"@wordpress/url": "^4.
|
|
70
|
-
"@wordpress/viewport": "^6.
|
|
71
|
-
"@wordpress/widgets": "^4.
|
|
72
|
-
"@wordpress/wordcount": "^4.
|
|
33
|
+
"@wordpress/a11y": "^4.26.1-next.719a03cbe.0",
|
|
34
|
+
"@wordpress/api-fetch": "^7.26.1-next.719a03cbe.0",
|
|
35
|
+
"@wordpress/blob": "^4.26.1-next.719a03cbe.0",
|
|
36
|
+
"@wordpress/block-editor": "^14.21.1-next.719a03cbe.0",
|
|
37
|
+
"@wordpress/block-library": "^9.26.1-next.719a03cbe.0",
|
|
38
|
+
"@wordpress/blocks": "^14.15.1-next.719a03cbe.0",
|
|
39
|
+
"@wordpress/commands": "^1.26.1-next.719a03cbe.0",
|
|
40
|
+
"@wordpress/components": "^29.13.1-next.719a03cbe.0",
|
|
41
|
+
"@wordpress/compose": "^7.26.1-next.719a03cbe.0",
|
|
42
|
+
"@wordpress/core-commands": "^1.26.1-next.719a03cbe.0",
|
|
43
|
+
"@wordpress/core-data": "^7.26.1-next.719a03cbe.0",
|
|
44
|
+
"@wordpress/data": "^10.26.1-next.719a03cbe.0",
|
|
45
|
+
"@wordpress/dataviews": "^5.0.1-next.719a03cbe.0",
|
|
46
|
+
"@wordpress/date": "^5.26.1-next.719a03cbe.0",
|
|
47
|
+
"@wordpress/deprecated": "^4.26.1-next.719a03cbe.0",
|
|
48
|
+
"@wordpress/dom": "^4.26.1-next.719a03cbe.0",
|
|
49
|
+
"@wordpress/editor": "^14.26.1-next.719a03cbe.0",
|
|
50
|
+
"@wordpress/element": "^6.26.1-next.719a03cbe.0",
|
|
51
|
+
"@wordpress/escape-html": "^3.26.1-next.719a03cbe.0",
|
|
52
|
+
"@wordpress/fields": "^0.18.1-next.719a03cbe.0",
|
|
53
|
+
"@wordpress/hooks": "^4.26.1-next.719a03cbe.0",
|
|
54
|
+
"@wordpress/html-entities": "^4.26.1-next.719a03cbe.0",
|
|
55
|
+
"@wordpress/i18n": "^6.0.1-next.719a03cbe.0",
|
|
56
|
+
"@wordpress/icons": "^10.26.2-next.719a03cbe.0",
|
|
57
|
+
"@wordpress/keyboard-shortcuts": "^5.26.1-next.719a03cbe.0",
|
|
58
|
+
"@wordpress/keycodes": "^4.26.1-next.719a03cbe.0",
|
|
59
|
+
"@wordpress/media-utils": "^5.26.1-next.719a03cbe.0",
|
|
60
|
+
"@wordpress/notices": "^5.26.1-next.719a03cbe.0",
|
|
61
|
+
"@wordpress/patterns": "^2.26.1-next.719a03cbe.0",
|
|
62
|
+
"@wordpress/plugins": "^7.26.1-next.719a03cbe.0",
|
|
63
|
+
"@wordpress/preferences": "^4.26.1-next.719a03cbe.0",
|
|
64
|
+
"@wordpress/primitives": "^4.26.1-next.719a03cbe.0",
|
|
65
|
+
"@wordpress/private-apis": "^1.26.1-next.719a03cbe.0",
|
|
66
|
+
"@wordpress/reusable-blocks": "^5.26.1-next.719a03cbe.0",
|
|
67
|
+
"@wordpress/router": "^1.26.1-next.719a03cbe.0",
|
|
68
|
+
"@wordpress/style-engine": "^2.26.1-next.719a03cbe.0",
|
|
69
|
+
"@wordpress/url": "^4.26.1-next.719a03cbe.0",
|
|
70
|
+
"@wordpress/viewport": "^6.26.1-next.719a03cbe.0",
|
|
71
|
+
"@wordpress/widgets": "^4.26.1-next.719a03cbe.0",
|
|
72
|
+
"@wordpress/wordcount": "^4.26.1-next.719a03cbe.0",
|
|
73
73
|
"change-case": "^4.1.2",
|
|
74
74
|
"clsx": "^2.1.1",
|
|
75
75
|
"colord": "^2.9.2",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"publishConfig": {
|
|
85
85
|
"access": "public"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "5e146e949c2765411a8310bcc2641a88d036a6d9"
|
|
88
88
|
}
|
|
@@ -6,7 +6,7 @@ import { paramCase as kebabCase } from 'change-case';
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
8
8
|
*/
|
|
9
|
-
import { useState } from '@wordpress/element';
|
|
9
|
+
import { useState, useEffect, useRef } from '@wordpress/element';
|
|
10
10
|
import { __ } from '@wordpress/i18n';
|
|
11
11
|
import {
|
|
12
12
|
Button,
|
|
@@ -15,10 +15,19 @@ import {
|
|
|
15
15
|
__experimentalVStack as VStack,
|
|
16
16
|
} from '@wordpress/components';
|
|
17
17
|
|
|
18
|
-
function AddCustomGenericTemplateModalContent( {
|
|
18
|
+
function AddCustomGenericTemplateModalContent( { createTemplate, onBack } ) {
|
|
19
19
|
const [ title, setTitle ] = useState( '' );
|
|
20
20
|
const defaultTitle = __( 'Custom Template' );
|
|
21
21
|
const [ isBusy, setIsBusy ] = useState( false );
|
|
22
|
+
const inputRef = useRef();
|
|
23
|
+
|
|
24
|
+
// Set focus to the name input when the component mounts
|
|
25
|
+
useEffect( () => {
|
|
26
|
+
if ( inputRef.current ) {
|
|
27
|
+
inputRef.current.focus();
|
|
28
|
+
}
|
|
29
|
+
}, [] );
|
|
30
|
+
|
|
22
31
|
async function onCreateTemplate( event ) {
|
|
23
32
|
event.preventDefault();
|
|
24
33
|
if ( isBusy ) {
|
|
@@ -50,6 +59,7 @@ function AddCustomGenericTemplateModalContent( { onClose, createTemplate } ) {
|
|
|
50
59
|
onChange={ setTitle }
|
|
51
60
|
placeholder={ defaultTitle }
|
|
52
61
|
disabled={ isBusy }
|
|
62
|
+
ref={ inputRef }
|
|
53
63
|
help={ __(
|
|
54
64
|
// eslint-disable-next-line no-restricted-syntax -- 'sidebar' is a common web design term for layouts
|
|
55
65
|
'Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.'
|
|
@@ -62,11 +72,9 @@ function AddCustomGenericTemplateModalContent( { onClose, createTemplate } ) {
|
|
|
62
72
|
<Button
|
|
63
73
|
__next40pxDefaultSize
|
|
64
74
|
variant="tertiary"
|
|
65
|
-
onClick={
|
|
66
|
-
onClose();
|
|
67
|
-
} }
|
|
75
|
+
onClick={ onBack }
|
|
68
76
|
>
|
|
69
|
-
{ __( '
|
|
77
|
+
{ __( 'Back' ) }
|
|
70
78
|
</Button>
|
|
71
79
|
<Button
|
|
72
80
|
__next40pxDefaultSize
|