@wordpress/edit-site 6.26.0 → 6.27.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/utils.js +9 -2
- package/build/components/add-new-template/utils.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/utils.js +9 -2
- package/build-module/components/add-new-template/utils.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 +319 -17
- package/build-style/posts.css +319 -17
- package/build-style/style-rtl.css +322 -17
- package/build-style/style.css +322 -17
- package/package.json +42 -42
- package/src/components/add-new-template/utils.js +15 -5
- package/src/components/global-styles/font-library-modal/style.scss +4 -0
- 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;
|
|
@@ -949,6 +1202,14 @@
|
|
|
949
1202
|
cursor: pointer;
|
|
950
1203
|
}
|
|
951
1204
|
|
|
1205
|
+
.dataviews-view-grid__group-header {
|
|
1206
|
+
font-size: 16px;
|
|
1207
|
+
font-weight: 600;
|
|
1208
|
+
color: #1e1e1e;
|
|
1209
|
+
margin: 0 0 8px 0;
|
|
1210
|
+
padding: 0 48px;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
952
1213
|
div.dataviews-view-list {
|
|
953
1214
|
list-style-type: none;
|
|
954
1215
|
}
|
|
@@ -1132,6 +1393,23 @@ div.dataviews-view-list {
|
|
|
1132
1393
|
.dataviews-view-table th.dataviews-view-table__actions-column {
|
|
1133
1394
|
text-align: right;
|
|
1134
1395
|
}
|
|
1396
|
+
.dataviews-view-table td.dataviews-view-table__actions-column--sticky,
|
|
1397
|
+
.dataviews-view-table th.dataviews-view-table__actions-column--sticky {
|
|
1398
|
+
position: sticky;
|
|
1399
|
+
right: 0;
|
|
1400
|
+
background-color: #fff;
|
|
1401
|
+
}
|
|
1402
|
+
.dataviews-view-table td.dataviews-view-table__actions-column--stuck::after,
|
|
1403
|
+
.dataviews-view-table th.dataviews-view-table__actions-column--stuck::after {
|
|
1404
|
+
display: block;
|
|
1405
|
+
content: "";
|
|
1406
|
+
position: absolute;
|
|
1407
|
+
top: 0;
|
|
1408
|
+
bottom: 0;
|
|
1409
|
+
left: 0;
|
|
1410
|
+
width: 1px;
|
|
1411
|
+
background-color: #f0f0f0;
|
|
1412
|
+
}
|
|
1135
1413
|
.dataviews-view-table td.dataviews-view-table__checkbox-column,
|
|
1136
1414
|
.dataviews-view-table th.dataviews-view-table__checkbox-column {
|
|
1137
1415
|
padding-right: 0;
|
|
@@ -1158,7 +1436,7 @@ div.dataviews-view-list {
|
|
|
1158
1436
|
.dataviews-view-table tr:last-child {
|
|
1159
1437
|
border-bottom: 0;
|
|
1160
1438
|
}
|
|
1161
|
-
.dataviews-view-table tr.is-hovered {
|
|
1439
|
+
.dataviews-view-table tr.is-hovered, .dataviews-view-table tr.is-hovered .dataviews-view-table__actions-column--sticky {
|
|
1162
1440
|
background-color: #f8f8f8;
|
|
1163
1441
|
}
|
|
1164
1442
|
.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input {
|
|
@@ -1192,6 +1470,12 @@ div.dataviews-view-list {
|
|
|
1192
1470
|
.dataviews-view-table tr.is-selected:hover {
|
|
1193
1471
|
background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08);
|
|
1194
1472
|
}
|
|
1473
|
+
.dataviews-view-table tr.is-selected .dataviews-view-table__actions-column--sticky {
|
|
1474
|
+
background-color: color-mix(in srgb, rgb(var(--wp-admin-theme-color--rgb)) 4%, #fff);
|
|
1475
|
+
}
|
|
1476
|
+
.dataviews-view-table tr.is-selected:hover .dataviews-view-table__actions-column--sticky {
|
|
1477
|
+
background-color: color-mix(in srgb, rgb(var(--wp-admin-theme-color--rgb)) 8%, #fff);
|
|
1478
|
+
}
|
|
1195
1479
|
.dataviews-view-table thead {
|
|
1196
1480
|
position: sticky;
|
|
1197
1481
|
inset-block-start: 0;
|
|
@@ -1220,6 +1504,12 @@ div.dataviews-view-list {
|
|
|
1220
1504
|
display: flex;
|
|
1221
1505
|
align-items: center;
|
|
1222
1506
|
}
|
|
1507
|
+
.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-end {
|
|
1508
|
+
justify-content: flex-end;
|
|
1509
|
+
}
|
|
1510
|
+
.dataviews-view-table tbody .dataviews-view-table__cell-content-wrapper.dataviews-view-table__cell-align-center {
|
|
1511
|
+
justify-content: center;
|
|
1512
|
+
}
|
|
1223
1513
|
.dataviews-view-table tbody .components-v-stack > .dataviews-view-table__cell-content-wrapper:not(:first-child) {
|
|
1224
1514
|
min-height: 0;
|
|
1225
1515
|
}
|
|
@@ -1292,6 +1582,11 @@ div.dataviews-view-list {
|
|
|
1292
1582
|
padding: 0;
|
|
1293
1583
|
}
|
|
1294
1584
|
|
|
1585
|
+
.dataviews-controls__datetime-number,
|
|
1586
|
+
.dataviews-controls__datetime-unit {
|
|
1587
|
+
flex: 1 1 50%;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1295
1590
|
.dataforms-layouts-panel__field {
|
|
1296
1591
|
width: 100%;
|
|
1297
1592
|
min-height: 32px;
|
|
@@ -1307,6 +1602,8 @@ div.dataviews-view-list {
|
|
|
1307
1602
|
align-items: center;
|
|
1308
1603
|
line-height: 20px;
|
|
1309
1604
|
hyphens: auto;
|
|
1605
|
+
}
|
|
1606
|
+
.dataforms-layouts-panel__field-label--label-position-side {
|
|
1310
1607
|
align-self: center;
|
|
1311
1608
|
}
|
|
1312
1609
|
|
|
@@ -1324,6 +1621,9 @@ div.dataviews-view-list {
|
|
|
1324
1621
|
text-wrap: pretty;
|
|
1325
1622
|
min-height: 32px;
|
|
1326
1623
|
}
|
|
1624
|
+
.dataforms-layouts-panel__field-control.components-button.is-link[aria-disabled=true] {
|
|
1625
|
+
text-decoration: none;
|
|
1626
|
+
}
|
|
1327
1627
|
.dataforms-layouts-panel__field-control .components-dropdown {
|
|
1328
1628
|
max-width: 100%;
|
|
1329
1629
|
}
|
|
@@ -1362,6 +1662,8 @@ div.dataviews-view-list {
|
|
|
1362
1662
|
align-items: center;
|
|
1363
1663
|
line-height: 20px;
|
|
1364
1664
|
hyphens: auto;
|
|
1665
|
+
}
|
|
1666
|
+
.dataforms-layouts-regular__field-label--label-position-side {
|
|
1365
1667
|
align-self: center;
|
|
1366
1668
|
}
|
|
1367
1669
|
|
|
@@ -2904,7 +3206,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2904
3206
|
contain: content;
|
|
2905
3207
|
}
|
|
2906
3208
|
|
|
2907
|
-
@keyframes
|
|
3209
|
+
@keyframes _uamd0_slide-from-right {
|
|
2908
3210
|
from {
|
|
2909
3211
|
transform: translateX(50px);
|
|
2910
3212
|
opacity: 0;
|
|
@@ -2914,7 +3216,7 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2914
3216
|
opacity: 1;
|
|
2915
3217
|
}
|
|
2916
3218
|
}
|
|
2917
|
-
@keyframes
|
|
3219
|
+
@keyframes _uamd0_slide-from-left {
|
|
2918
3220
|
from {
|
|
2919
3221
|
transform: translateX(-50px);
|
|
2920
3222
|
opacity: 0;
|
|
@@ -2970,10 +3272,10 @@ html.canvas-mode-edit-transition::view-transition-group(toggle) {
|
|
|
2970
3272
|
}
|
|
2971
3273
|
}
|
|
2972
3274
|
.edit-site-sidebar__screen-wrapper.slide-from-left {
|
|
2973
|
-
animation-name:
|
|
3275
|
+
animation-name: _uamd0_slide-from-left;
|
|
2974
3276
|
}
|
|
2975
3277
|
.edit-site-sidebar__screen-wrapper.slide-from-right {
|
|
2976
|
-
animation-name:
|
|
3278
|
+
animation-name: _uamd0_slide-from-right;
|
|
2977
3279
|
}
|
|
2978
3280
|
|
|
2979
3281
|
.edit-site-sidebar-button {
|
|
@@ -3671,6 +3973,9 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
|
|
|
3671
3973
|
.font-library-modal__font-card:hover {
|
|
3672
3974
|
background-color: #f0f0f0;
|
|
3673
3975
|
}
|
|
3976
|
+
.font-library-modal__font-card:focus {
|
|
3977
|
+
position: relative;
|
|
3978
|
+
}
|
|
3674
3979
|
.font-library-modal__font-card .font-library-modal__font-card__name {
|
|
3675
3980
|
font-weight: bold;
|
|
3676
3981
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.27.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": "^
|
|
37
|
-
"@wordpress/block-library": "^9.
|
|
38
|
-
"@wordpress/blocks": "^
|
|
39
|
-
"@wordpress/commands": "^1.
|
|
40
|
-
"@wordpress/components": "^
|
|
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.27.0",
|
|
34
|
+
"@wordpress/api-fetch": "^7.27.0",
|
|
35
|
+
"@wordpress/blob": "^4.27.0",
|
|
36
|
+
"@wordpress/block-editor": "^15.0.0",
|
|
37
|
+
"@wordpress/block-library": "^9.27.0",
|
|
38
|
+
"@wordpress/blocks": "^15.0.0",
|
|
39
|
+
"@wordpress/commands": "^1.27.0",
|
|
40
|
+
"@wordpress/components": "^30.0.0",
|
|
41
|
+
"@wordpress/compose": "^7.27.0",
|
|
42
|
+
"@wordpress/core-commands": "^1.27.0",
|
|
43
|
+
"@wordpress/core-data": "^7.27.0",
|
|
44
|
+
"@wordpress/data": "^10.27.0",
|
|
45
|
+
"@wordpress/dataviews": "^5.0.0",
|
|
46
|
+
"@wordpress/date": "^5.27.0",
|
|
47
|
+
"@wordpress/deprecated": "^4.27.0",
|
|
48
|
+
"@wordpress/dom": "^4.27.0",
|
|
49
|
+
"@wordpress/editor": "^14.27.0",
|
|
50
|
+
"@wordpress/element": "^6.27.0",
|
|
51
|
+
"@wordpress/escape-html": "^3.27.0",
|
|
52
|
+
"@wordpress/fields": "^0.19.0",
|
|
53
|
+
"@wordpress/hooks": "^4.27.0",
|
|
54
|
+
"@wordpress/html-entities": "^4.27.0",
|
|
55
|
+
"@wordpress/i18n": "^6.0.0",
|
|
56
|
+
"@wordpress/icons": "^10.27.0",
|
|
57
|
+
"@wordpress/keyboard-shortcuts": "^5.27.0",
|
|
58
|
+
"@wordpress/keycodes": "^4.27.0",
|
|
59
|
+
"@wordpress/media-utils": "^5.27.0",
|
|
60
|
+
"@wordpress/notices": "^5.27.0",
|
|
61
|
+
"@wordpress/patterns": "^2.27.0",
|
|
62
|
+
"@wordpress/plugins": "^7.27.0",
|
|
63
|
+
"@wordpress/preferences": "^4.27.0",
|
|
64
|
+
"@wordpress/primitives": "^4.27.0",
|
|
65
|
+
"@wordpress/private-apis": "^1.27.0",
|
|
66
|
+
"@wordpress/reusable-blocks": "^5.27.0",
|
|
67
|
+
"@wordpress/router": "^1.27.0",
|
|
68
|
+
"@wordpress/style-engine": "^2.27.0",
|
|
69
|
+
"@wordpress/url": "^4.27.0",
|
|
70
|
+
"@wordpress/viewport": "^6.27.0",
|
|
71
|
+
"@wordpress/widgets": "^4.27.0",
|
|
72
|
+
"@wordpress/wordcount": "^4.27.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": "abe06a6f2aef8d03c30ea9d5b3e133f041e523b1"
|
|
88
88
|
}
|
|
@@ -80,10 +80,20 @@ const usePublicPostTypes = () => {
|
|
|
80
80
|
);
|
|
81
81
|
return useMemo( () => {
|
|
82
82
|
const excludedPostTypes = [ 'attachment' ];
|
|
83
|
-
return postTypes
|
|
84
|
-
(
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
return postTypes
|
|
84
|
+
?.filter(
|
|
85
|
+
( { viewable, slug } ) =>
|
|
86
|
+
viewable && ! excludedPostTypes.includes( slug )
|
|
87
|
+
)
|
|
88
|
+
.sort( ( a, b ) => {
|
|
89
|
+
// Sort post types alphabetically by name,
|
|
90
|
+
// but exclude the built-in 'post' type from sorting.
|
|
91
|
+
if ( a.slug === 'post' || b.slug === 'post' ) {
|
|
92
|
+
return 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return a.name.localeCompare( b.name );
|
|
96
|
+
} );
|
|
87
97
|
}, [ postTypes ] );
|
|
88
98
|
};
|
|
89
99
|
|
|
@@ -412,7 +422,7 @@ export const useTaxonomiesMenuItems = ( onClickMenuItem ) => {
|
|
|
412
422
|
if ( _needsUniqueIdentifier ) {
|
|
413
423
|
menuItemTitle = labels.template_name
|
|
414
424
|
? sprintf(
|
|
415
|
-
// translators: 1: Name of the template e.g: "Products by Category".
|
|
425
|
+
// translators: 1: Name of the template e.g: "Products by Category". 2: Slug of the taxonomy e.g: "product_cat".
|
|
416
426
|
_x( '%1$s (%2$s)', 'taxonomy template menu label' ),
|
|
417
427
|
labels.template_name,
|
|
418
428
|
slug
|