@moderneinc/react-charts 1.6.0-next.37564c → 1.6.0-next.3fe2fe

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.js CHANGED
@@ -2892,8 +2892,11 @@ var ma = 4.5, ha = .12, ga = .96, _a = /* @__PURE__ */ new Set(), va = (e, t) =>
2892
2892
  }, Ua = [
2893
2893
  "#30F284",
2894
2894
  "#FFD34D",
2895
+ "#FFC045",
2895
2896
  "#FFA83D",
2897
+ "#FF9B48",
2896
2898
  "#FF8F52",
2899
+ "#FF7F5A",
2897
2900
  "#FF6F61"
2898
2901
  ], Wa = {
2899
2902
  "#30F284": "#1D5937",
@@ -8611,7 +8614,11 @@ var Pg = ({ data: t, categories: n, mode: r, paletteMode: i, width: a = 900, hei
8611
8614
  right: 30,
8612
8615
  left: 60,
8613
8616
  bottom: 30
8614
- }), []), ce = g(() => Wg(t), [t]), J = g(() => Ug(t, G), [t, G]), le = g(() => {
8617
+ }), []), ce = g(() => Wg(t), [t]), J = g(() => C ? Ug(t, G) : [], [
8618
+ t,
8619
+ G,
8620
+ C
8621
+ ]), le = g(() => {
8615
8622
  let e = t.timeSeries[t.timeSeries.length - 1];
8616
8623
  return e ? Object.values(e.values).reduce((e, t) => e + t, 0) : 0;
8617
8624
  }, [t.timeSeries]), ue = g(() => Ig({ repositoryCount: le }), [le]), de = g(() => Lg({ repositoryCount: le }), [le]), fe = g(() => {
@@ -8696,7 +8703,7 @@ var Pg = ({ data: t, categories: n, mode: r, paletteMode: i, width: a = 900, hei
8696
8703
  crosshairDashArray: z
8697
8704
  })
8698
8705
  }),
8699
- /* @__PURE__ */ b(Vg, {
8706
+ C && /* @__PURE__ */ b(Vg, {
8700
8707
  categories: J,
8701
8708
  activeCategory: V,
8702
8709
  onCategoryHover: H,
@@ -17,11 +17,14 @@ export declare const DEFAULT_CHART_COLORS: {
17
17
  * Measure gradient colors used for progress/distance categories.
18
18
  * Shared between ParliamentChart and StackedAreaChart for visual consistency.
19
19
  *
20
- * Values measured from the Morpheus prototype (light theme):
20
+ * 5 anchors measured from the Morpheus prototype (light theme):
21
21
  * https://moderneinc.github.io/prototypes/morpheus.html
22
- * Progression: green (best/complete) → red (worst/farthest).
22
+ * The 3 intermediate steps come from the 8-entry ramp consumers were already
23
+ * maintaining, so the gradient yields 8 distinct colors instead of 5. Beyond
24
+ * 8 categories it still repeats.
25
+ * Progression: green (best/complete) → coral (worst/farthest).
23
26
  */
24
- export declare const MEASURE_GRADIENT_COLORS: readonly ["#30F284", "#FFD34D", "#FFA83D", "#FF8F52", "#FF6F61"];
27
+ export declare const MEASURE_GRADIENT_COLORS: readonly ["#30F284", "#FFD34D", "#FFC045", "#FFA83D", "#FF9B48", "#FF8F52", "#FF7F5A", "#FF6F61"];
25
28
  /**
26
29
  * Explicit border color for each seat fill, measured from the Morpheus
27
30
  * prototype. Borders are hand-picked darker, more-saturated shades — not a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moderneinc/react-charts",
3
- "version": "1.6.0-next.37564c",
3
+ "version": "1.6.0-next.3fe2fe",
4
4
  "description": "Parliament chart visualization library for React",
5
5
  "type": "module",
6
6
  "devEngines": {