@mediaradar/design-components 0.16.0 → 0.16.2

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.d.cts CHANGED
@@ -936,7 +936,9 @@ declare function BarChartPlaceholder({ height }: BarChartPlaceholderProps): reac
936
936
  * the card, and a stretched `<circle>` would go oval. Same no-results use
937
937
  * as `BarChartPlaceholder` -- no real value ever appears, and the shape
938
938
  * holds the card's layout steady so nothing jumps when real data arrives.
939
- * @tokens border-border-strong, bg-subtle, border-border-default, rounded-xs
939
+ * Paths and points share the `bg-subtle` fill of the axis labels, so the
940
+ * whole placeholder reads as one tint, the way the bars do.
941
+ * @tokens bg-subtle, border-border-default, rounded-xs
940
942
  * @behavior Purely presentational -- `role="presentation"` and
941
943
  * `aria-hidden="true"` throughout (inherited from `AxisFrame`). The series
942
944
  * count and shapes are fixed; `height` is the only variable.
@@ -963,10 +965,11 @@ declare function LineChartPlaceholder({ height }: LineChartPlaceholderProps): re
963
965
  * `BarChartPlaceholder`: an unsatisfiable filter reads as "a chart belongs
964
966
  * here" rather than a failed load, with no real value (names, media types,
965
967
  * dollar amounts, percentages, series colors) ever appearing.
966
- * @tokens bg-subtle, border-border-default, rounded-xs
968
+ * @tokens bg-subtle, bg-surface, rounded-xs
967
969
  * @behavior Purely presentational -- `role="presentation"` and
968
970
  * `aria-hidden="true"` throughout. `legendRows` controls the blank legend
969
- * only; the disc's seam count is a fixed shape.
971
+ * only; the disc's seam count is a fixed shape. Seams are cut in the
972
+ * card's `bg-surface` color, as `StackedColumnPlaceholder`'s bands are.
970
973
  * @a11y role="presentation" with aria-hidden marks: it is a visual stand-in with
971
974
  * no data, deliberately invisible to assistive tech. Don't add a caption
972
975
  * expecting it to be announced.
@@ -992,12 +995,12 @@ declare function PieChartPlaceholder({ height, legendRows }: PieChartPlaceholder
992
995
  * `axis`, a bare stack with no scale (e.g. a share-of-voice column) omits
993
996
  * it. Same no-results use as `BarChartPlaceholder` -- no real value ever
994
997
  * appears, and the shape holds the card's layout steady.
995
- * @tokens bg-subtle, border-border-strong, border-border-default, rounded-control
998
+ * @tokens bg-subtle, bg-surface, border-border-default, rounded-control
996
999
  * @behavior Purely presentational -- `role="presentation"` and
997
- * `aria-hidden="true"` throughout. Band seams use `border-border-strong`
998
- * rather than the softer `border-border-default` gridline color: on a
999
- * `bg-subtle` fill the default-strength seam disappears and the stack reads
1000
- * as one undivided block. Legend rows are reversed (bottom-up) when `axis`
1000
+ * `aria-hidden="true"` throughout. Band seams are 1px gaps in the card's
1001
+ * `bg-surface` color rather than a border tone: a `border-border-default`
1002
+ * seam disappears on the `bg-subtle` fill, and `border-border-strong` reads
1003
+ * darker than the rest of the placeholder. Legend rows are reversed (bottom-up) when `axis`
1001
1004
  * is off, matching a bare stack's usual bottom-anchored reading order.
1002
1005
  * @a11y role="presentation" with aria-hidden marks: a visual stand-in with no
1003
1006
  * data, deliberately invisible to assistive tech.
package/dist/index.d.ts CHANGED
@@ -936,7 +936,9 @@ declare function BarChartPlaceholder({ height }: BarChartPlaceholderProps): reac
936
936
  * the card, and a stretched `<circle>` would go oval. Same no-results use
937
937
  * as `BarChartPlaceholder` -- no real value ever appears, and the shape
938
938
  * holds the card's layout steady so nothing jumps when real data arrives.
939
- * @tokens border-border-strong, bg-subtle, border-border-default, rounded-xs
939
+ * Paths and points share the `bg-subtle` fill of the axis labels, so the
940
+ * whole placeholder reads as one tint, the way the bars do.
941
+ * @tokens bg-subtle, border-border-default, rounded-xs
940
942
  * @behavior Purely presentational -- `role="presentation"` and
941
943
  * `aria-hidden="true"` throughout (inherited from `AxisFrame`). The series
942
944
  * count and shapes are fixed; `height` is the only variable.
@@ -963,10 +965,11 @@ declare function LineChartPlaceholder({ height }: LineChartPlaceholderProps): re
963
965
  * `BarChartPlaceholder`: an unsatisfiable filter reads as "a chart belongs
964
966
  * here" rather than a failed load, with no real value (names, media types,
965
967
  * dollar amounts, percentages, series colors) ever appearing.
966
- * @tokens bg-subtle, border-border-default, rounded-xs
968
+ * @tokens bg-subtle, bg-surface, rounded-xs
967
969
  * @behavior Purely presentational -- `role="presentation"` and
968
970
  * `aria-hidden="true"` throughout. `legendRows` controls the blank legend
969
- * only; the disc's seam count is a fixed shape.
971
+ * only; the disc's seam count is a fixed shape. Seams are cut in the
972
+ * card's `bg-surface` color, as `StackedColumnPlaceholder`'s bands are.
970
973
  * @a11y role="presentation" with aria-hidden marks: it is a visual stand-in with
971
974
  * no data, deliberately invisible to assistive tech. Don't add a caption
972
975
  * expecting it to be announced.
@@ -992,12 +995,12 @@ declare function PieChartPlaceholder({ height, legendRows }: PieChartPlaceholder
992
995
  * `axis`, a bare stack with no scale (e.g. a share-of-voice column) omits
993
996
  * it. Same no-results use as `BarChartPlaceholder` -- no real value ever
994
997
  * appears, and the shape holds the card's layout steady.
995
- * @tokens bg-subtle, border-border-strong, border-border-default, rounded-control
998
+ * @tokens bg-subtle, bg-surface, border-border-default, rounded-control
996
999
  * @behavior Purely presentational -- `role="presentation"` and
997
- * `aria-hidden="true"` throughout. Band seams use `border-border-strong`
998
- * rather than the softer `border-border-default` gridline color: on a
999
- * `bg-subtle` fill the default-strength seam disappears and the stack reads
1000
- * as one undivided block. Legend rows are reversed (bottom-up) when `axis`
1000
+ * `aria-hidden="true"` throughout. Band seams are 1px gaps in the card's
1001
+ * `bg-surface` color rather than a border tone: a `border-border-default`
1002
+ * seam disappears on the `bg-subtle` fill, and `border-border-strong` reads
1003
+ * darker than the rest of the placeholder. Legend rows are reversed (bottom-up) when `axis`
1001
1004
  * is off, matching a bare stack's usual bottom-anchored reading order.
1002
1005
  * @a11y role="presentation" with aria-hidden marks: a visual stand-in with no
1003
1006
  * data, deliberately invisible to assistive tech.
package/dist/index.js CHANGED
@@ -1755,7 +1755,7 @@ function LineChartPlaceholder({ height = 280 }) {
1755
1755
  {
1756
1756
  points: toPath(pts, 0, LINE_FORECAST_FROM + 1),
1757
1757
  fill: "none",
1758
- stroke: "var(--mr-color-border-strong)",
1758
+ stroke: "var(--mr-color-subtle)",
1759
1759
  strokeWidth: "2",
1760
1760
  vectorEffect: "non-scaling-stroke",
1761
1761
  strokeLinecap: "round",
@@ -1767,7 +1767,7 @@ function LineChartPlaceholder({ height = 280 }) {
1767
1767
  {
1768
1768
  points: toPath(pts, LINE_FORECAST_FROM, pts.length),
1769
1769
  fill: "none",
1770
- stroke: "var(--mr-color-border-strong)",
1770
+ stroke: "var(--mr-color-subtle)",
1771
1771
  strokeWidth: "2",
1772
1772
  strokeDasharray: "5 4",
1773
1773
  vectorEffect: "non-scaling-stroke",
@@ -1784,7 +1784,7 @@ function LineChartPlaceholder({ height = 280 }) {
1784
1784
  style: {
1785
1785
  left: `${i / (pts.length - 1) * 100}%`,
1786
1786
  top: `${y}%`,
1787
- backgroundColor: "var(--mr-color-border-strong)"
1787
+ backgroundColor: "var(--mr-color-subtle)"
1788
1788
  }
1789
1789
  },
1790
1790
  `${s}-${i}`
@@ -1810,7 +1810,7 @@ function PieChartPlaceholder({ height = 220, legendRows = 8 }) {
1810
1810
  y1: "50",
1811
1811
  x2: 50 + r * Math.cos(rad),
1812
1812
  y2: 50 + r * Math.sin(rad),
1813
- stroke: "var(--mr-color-border-default)",
1813
+ stroke: "var(--mr-color-surface)",
1814
1814
  strokeWidth: "1"
1815
1815
  },
1816
1816
  deg
@@ -1840,9 +1840,9 @@ function StackedColumnPlaceholder({
1840
1840
  {
1841
1841
  style: {
1842
1842
  height: `${pct}%`,
1843
- /* border-strong, not border-default: on a subtle fill the softer
1844
- seam disappears and the stack reads as one undivided block. */
1845
- borderTop: i === 0 ? void 0 : "1px solid var(--mr-color-border-strong)"
1843
+ /* A gap in the card's color, not a border tone: border-default
1844
+ disappears on the subtle fill, border-strong reads darker. */
1845
+ borderTop: i === 0 ? void 0 : "1px solid var(--mr-color-surface)"
1846
1846
  }
1847
1847
  },
1848
1848
  i