@automattic/charts 1.10.2 → 1.10.3

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/dist/index.css CHANGED
@@ -607,23 +607,23 @@
607
607
  font-style: italic;
608
608
  }
609
609
 
610
- .a8ccharts-GovfoW-interactiveRow {
610
+ .a8ccharts-GovfoW-row {
611
611
  --focus-ring-width: var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px));
612
612
  grid-column: 1 / -1;
613
613
  grid-template-columns: subgrid;
614
- box-sizing: border-box;
615
- appearance: none;
616
- width: 100%;
617
614
  padding: var(--focus-ring-width);
615
+ align-items: center;
616
+ display: grid;
617
+ }
618
+
619
+ .a8ccharts-GovfoW-interactiveRow {
620
+ appearance: none;
618
621
  color: inherit;
619
622
  font: inherit;
620
623
  text-align: inherit;
621
624
  cursor: pointer;
622
625
  background: none;
623
626
  border: 0;
624
- align-items: center;
625
- margin: 0;
626
- display: grid;
627
627
  position: relative;
628
628
  }
629
629
 
package/dist/index.d.cts CHANGED
@@ -946,7 +946,7 @@ declare const BarListChartResponsive: ({
946
946
  width,
947
947
  height,
948
948
  ...chartProps
949
- }: Omit<BarListChartProps, "size" | "width" | "height"> & {
949
+ }: Omit<BarListChartProps, "width" | "height" | "size"> & {
950
950
  width?: number;
951
951
  height?: number;
952
952
  size?: number;
@@ -1100,7 +1100,7 @@ declare const GeoChartResponsive: ({
1100
1100
  width,
1101
1101
  height,
1102
1102
  ...chartProps
1103
- }: Omit<GeoChartProps, "size" | "width" | "height"> & {
1103
+ }: Omit<GeoChartProps, "width" | "height" | "size"> & {
1104
1104
  width?: number;
1105
1105
  height?: number;
1106
1106
  size?: number;
@@ -1271,7 +1271,7 @@ declare const LeaderboardChartResponsive: (({
1271
1271
  width,
1272
1272
  height,
1273
1273
  ...chartProps
1274
- }: Omit<LeaderboardChartProps, "size" | "width" | "height"> & {
1274
+ }: Omit<LeaderboardChartProps, "width" | "height" | "size"> & {
1275
1275
  width?: number;
1276
1276
  height?: number;
1277
1277
  size?: number;
@@ -1804,7 +1804,7 @@ declare const Sparkline: ({
1804
1804
  width,
1805
1805
  height,
1806
1806
  ...chartProps
1807
- }: Omit<SparklineProps, "size" | "width" | "height"> & {
1807
+ }: Omit<SparklineProps, "width" | "height" | "size"> & {
1808
1808
  width?: number;
1809
1809
  height?: number;
1810
1810
  size?: number;
package/dist/index.d.ts CHANGED
@@ -946,7 +946,7 @@ declare const BarListChartResponsive: ({
946
946
  width,
947
947
  height,
948
948
  ...chartProps
949
- }: Omit<BarListChartProps, "size" | "width" | "height"> & {
949
+ }: Omit<BarListChartProps, "width" | "height" | "size"> & {
950
950
  width?: number;
951
951
  height?: number;
952
952
  size?: number;
@@ -1100,7 +1100,7 @@ declare const GeoChartResponsive: ({
1100
1100
  width,
1101
1101
  height,
1102
1102
  ...chartProps
1103
- }: Omit<GeoChartProps, "size" | "width" | "height"> & {
1103
+ }: Omit<GeoChartProps, "width" | "height" | "size"> & {
1104
1104
  width?: number;
1105
1105
  height?: number;
1106
1106
  size?: number;
@@ -1271,7 +1271,7 @@ declare const LeaderboardChartResponsive: (({
1271
1271
  width,
1272
1272
  height,
1273
1273
  ...chartProps
1274
- }: Omit<LeaderboardChartProps, "size" | "width" | "height"> & {
1274
+ }: Omit<LeaderboardChartProps, "width" | "height" | "size"> & {
1275
1275
  width?: number;
1276
1276
  height?: number;
1277
1277
  size?: number;
@@ -1804,7 +1804,7 @@ declare const Sparkline: ({
1804
1804
  width,
1805
1805
  height,
1806
1806
  ...chartProps
1807
- }: Omit<SparklineProps, "size" | "width" | "height"> & {
1807
+ }: Omit<SparklineProps, "width" | "height" | "size"> & {
1808
1808
  width?: number;
1809
1809
  height?: number;
1810
1810
  size?: number;
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { AnimatedAreaSeries, AnimatedAreaStack, AreaSeries, Axis, BarGroup, BarS
4
4
  import { __, sprintf } from "@wordpress/i18n";
5
5
  import clsx from "clsx";
6
6
  import * as React from "react";
7
- import { Children, Fragment, Fragment as Fragment$2, createContext, createContext as createContext$1, createElement, forwardRef, forwardRef as forwardRef$1, isValidElement, memo, useCallback, useCallback as useCallback$1, useContext, useContext as useContext$1, useEffect, useEffect as useEffect$1, useId, useImperativeHandle, useLayoutEffect, useMemo, useMemo as useMemo$1, useRef, useRef as useRef$1, useState, useState as useState$1 } from "react";
7
+ import { Children, Fragment, createContext, createContext as createContext$1, createElement, forwardRef, forwardRef as forwardRef$1, isValidElement, memo, useCallback, useCallback as useCallback$1, useContext, useContext as useContext$1, useEffect, useEffect as useEffect$1, useId, useImperativeHandle, useLayoutEffect, useMemo, useMemo as useMemo$1, useRef, useRef as useRef$1, useState, useState as useState$1 } from "react";
8
8
  import { color, hsl } from "@visx/vendor/d3-color";
9
9
  import { addDays, differenceInCalendarWeeks, differenceInHours, differenceInYears, format, isValid, parse, parseISO, startOfWeek } from "date-fns";
10
10
  import { Text, getStringWidth } from "@visx/text";
@@ -8708,6 +8708,7 @@ var leaderboard_chart_module_default = {
8708
8708
  "leaderboardChart--responsive": "a8ccharts-GovfoW-leaderboardChart--responsive",
8709
8709
  "overlap": "a8ccharts-GovfoW-overlap",
8710
8710
  "overlayLabel": "a8ccharts-GovfoW-overlayLabel",
8711
+ "row": "a8ccharts-GovfoW-row",
8711
8712
  "stretch": "a8ccharts-GovfoW-stretch",
8712
8713
  "valueContainer": "a8ccharts-GovfoW-valueContainer"
8713
8714
  };
@@ -8978,7 +8979,7 @@ const LeaderboardChartInternal = ({ data, chartId: providedChartId, width: propW
8978
8979
  })] });
8979
8980
  if (entry.onClick) return /* @__PURE__ */ jsxs("button", {
8980
8981
  type: "button",
8981
- className: leaderboard_chart_module_default.interactiveRow,
8982
+ className: clsx(leaderboard_chart_module_default.row, leaderboard_chart_module_default.interactiveRow),
8982
8983
  onClick: entry.onClick,
8983
8984
  "aria-label": entry.ariaLabel,
8984
8985
  children: [rowCells, /* @__PURE__ */ jsx(Icon, {
@@ -8987,7 +8988,10 @@ const LeaderboardChartInternal = ({ data, chartId: providedChartId, width: propW
8987
8988
  size: 24
8988
8989
  })]
8989
8990
  }, entry.id);
8990
- return /* @__PURE__ */ jsx(Fragment$2, { children: rowCells }, entry.id);
8991
+ return /* @__PURE__ */ jsx("div", {
8992
+ className: leaderboard_chart_module_default.row,
8993
+ children: rowCells
8994
+ }, entry.id);
8991
8995
  })
8992
8996
  })
8993
8997
  })