@automattic/charts 4.15.0 → 4.15.1
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 +8 -0
- package/dist/index.cjs +13 -1170
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +27 -1
- package/dist/index.js +14 -886
- package/dist/index.js.map +1 -1
- package/package.json +1 -2
- package/src/charts/leaderboard-chart/leaderboard-chart.module.scss +43 -1
- package/src/charts/leaderboard-chart/leaderboard-chart.tsx +25 -20
- package/src/charts/leaderboard-chart/test/leaderboard-chart.test.tsx +15 -20
package/dist/index.css
CHANGED
|
@@ -776,6 +776,17 @@
|
|
|
776
776
|
overflow: hidden;
|
|
777
777
|
}
|
|
778
778
|
|
|
779
|
+
.a8ccharts-GovfoW-grid {
|
|
780
|
+
row-gap: var(--a8c-charts-dimension-leaderboard-row-gap);
|
|
781
|
+
column-gap: var(--a8c-charts-dimension-leaderboard-column-gap);
|
|
782
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
783
|
+
display: grid;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.a8ccharts-GovfoW-grid--comparison {
|
|
787
|
+
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
788
|
+
}
|
|
789
|
+
|
|
779
790
|
.a8ccharts-GovfoW-barWithLabelContainer {
|
|
780
791
|
isolation: isolate;
|
|
781
792
|
grid-template-columns: 1fr;
|
|
@@ -927,6 +938,21 @@
|
|
|
927
938
|
transition: opacity var(--wpds-motion-duration-sm, .1s) var(--wpds-motion-easing-subtle, cubic-bezier(.15, 0, .15, 1)), width var(--wpds-motion-duration-sm, .1s) var(--wpds-motion-easing-subtle, cubic-bezier(.15, 0, .15, 1));
|
|
928
939
|
}
|
|
929
940
|
|
|
941
|
+
.a8ccharts-GovfoW-interactiveRow .a8ccharts-GovfoW-barWithLabelContainer > :not(.a8ccharts-GovfoW-bar, .a8ccharts-GovfoW-barTrack) {
|
|
942
|
+
max-inline-size: 100%;
|
|
943
|
+
transition: max-inline-size var(--wpds-motion-duration-sm, .1s) var(--wpds-motion-easing-subtle, cubic-bezier(.15, 0, .15, 1));
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
.a8ccharts-GovfoW-interactiveRow .a8ccharts-GovfoW-label {
|
|
947
|
+
text-overflow: ellipsis;
|
|
948
|
+
white-space: nowrap;
|
|
949
|
+
overflow: hidden;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
.a8ccharts-GovfoW-interactiveRow:hover .a8ccharts-GovfoW-barWithLabelContainer > :not(.a8ccharts-GovfoW-bar, .a8ccharts-GovfoW-barTrack), .a8ccharts-GovfoW-interactiveRow:focus-visible .a8ccharts-GovfoW-barWithLabelContainer > :not(.a8ccharts-GovfoW-bar, .a8ccharts-GovfoW-barTrack), .a8ccharts-GovfoW-interactiveRow:has(:focus-visible) .a8ccharts-GovfoW-barWithLabelContainer > :not(.a8ccharts-GovfoW-bar, .a8ccharts-GovfoW-barTrack) {
|
|
953
|
+
max-inline-size: calc(100% - var(--wpds-dimension-gap-2xl, 32px));
|
|
954
|
+
}
|
|
955
|
+
|
|
930
956
|
.a8ccharts-GovfoW-interactiveRow .a8ccharts-GovfoW-valueContainer {
|
|
931
957
|
transition: transform var(--wpds-motion-duration-sm, .1s) var(--wpds-motion-easing-subtle, cubic-bezier(.15, 0, .15, 1));
|
|
932
958
|
}
|
|
@@ -1007,7 +1033,7 @@
|
|
|
1007
1033
|
}
|
|
1008
1034
|
|
|
1009
1035
|
@media (prefers-reduced-motion: reduce) {
|
|
1010
|
-
.a8ccharts-GovfoW-interactiveRow .a8ccharts-GovfoW-bar, .a8ccharts-GovfoW-interactiveRow .a8ccharts-GovfoW-valueContainer, .a8ccharts-GovfoW-interactiveRow .a8ccharts-GovfoW-chevron {
|
|
1036
|
+
.a8ccharts-GovfoW-interactiveRow .a8ccharts-GovfoW-bar, .a8ccharts-GovfoW-interactiveRow .a8ccharts-GovfoW-barWithLabelContainer > :not(.a8ccharts-GovfoW-bar, .a8ccharts-GovfoW-barTrack), .a8ccharts-GovfoW-interactiveRow .a8ccharts-GovfoW-valueContainer, .a8ccharts-GovfoW-interactiveRow .a8ccharts-GovfoW-chevron {
|
|
1011
1037
|
transition: none;
|
|
1012
1038
|
}
|
|
1013
1039
|
}
|