victory-area 37.2.0 → 37.3.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # victory-area
2
2
 
3
+ ## 37.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Remove duplicate types from interfaces ([#2940](https://github.com/FormidableLabs/victory/pull/2940))
8
+
9
+ ## 37.3.0
10
+
3
11
  ## 37.2.0
4
12
 
5
13
  ## 37.1.2
@@ -6243,7 +6243,7 @@ const VictoryPortal = initialProps => {
6243
6243
  ...defaultProps,
6244
6244
  ...initialProps
6245
6245
  };
6246
- const id = lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()();
6246
+ const [id] = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()());
6247
6247
  const portalContext = (0,_portal_context__WEBPACK_IMPORTED_MODULE_3__.usePortalContext)();
6248
6248
  if (!portalContext) {
6249
6249
  const msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
@@ -6539,20 +6539,16 @@ const orange = {
6539
6539
  "100": "#FEE2D5",
6540
6540
  "300": "#FFA981",
6541
6541
  "500": "#FF6F2C",
6542
+ "700": "#FF4E1B",
6542
6543
  "900": "#D74D26"
6543
6544
  };
6544
6545
  const red = {
6545
6546
  "100": "#FFDCE5",
6546
6547
  "300": "#FF9EB7",
6547
6548
  "500": "#F82B60",
6549
+ "700": "#D31A3D",
6548
6550
  "900": "#BA1E45"
6549
6551
  };
6550
- const pink = {
6551
- "100": "#FFDAF6",
6552
- "300": "#F99DE2",
6553
- "500": "#FF08C2",
6554
- "900": "#B2158B"
6555
- };
6556
6552
  const purple = {
6557
6553
  "100": "#EDE3FE",
6558
6554
  "300": "#CDB0FF",
@@ -6563,6 +6559,7 @@ const blue = {
6563
6559
  "100": "#CFDFFF",
6564
6560
  "300": "#9CC7FF",
6565
6561
  "500": "#2D7FF9",
6562
+ "700": "#0056B3",
6566
6563
  "900": "#2750AE"
6567
6564
  };
6568
6565
  const cyan = {
@@ -6581,27 +6578,28 @@ const green = {
6581
6578
  "100": "#D1F7C4",
6582
6579
  "300": "#93E088",
6583
6580
  "500": "#20C933",
6581
+ "700": "#1B9B2A",
6584
6582
  "900": "#338A17"
6585
6583
  };
6586
6584
  const colors = {
6587
6585
  blue: blue["500"],
6588
- pink: pink["500"],
6589
- teal: teal["500"],
6590
- purple: purple["500"],
6586
+ cyan: cyan["500"],
6591
6587
  green: green["500"],
6588
+ yellow: yellow["500"],
6592
6589
  orange: orange["500"],
6593
- cyan: cyan["500"],
6594
6590
  red: red["500"],
6595
- yellow: yellow["500"]
6591
+ purple: purple["500"],
6592
+ teal: teal["500"]
6596
6593
  };
6597
6594
  const colorScale = Object.values(colors);
6598
- const grayscale = [gray["200"], gray["400"], gray["600"], gray["900"]];
6599
- const warm = [yellow["500"], orange["500"], red["500"], pink["500"]];
6600
- const cool = [cyan["500"], teal["500"], blue["500"], purple["500"]];
6601
- const heatmap = [green["500"], yellow["500"], red["500"]];
6602
- const redPalette = [red["500"], red["300"], red["100"]];
6603
- const greenPalette = [green["500"], green["300"], green["100"]];
6604
- const bluePalette = [blue["500"], blue["300"], blue["100"]];
6595
+ const grayscale = [gray["100"], gray["300"], gray["500"], gray["700"], gray["900"]];
6596
+ const warm = [yellow["300"], yellow["500"], orange["500"], orange["900"], red["500"]];
6597
+ const cool = [purple["500"], blue["500"], cyan["500"], teal["500"], green["500"]];
6598
+ const heatmap = [green["900"], green["500"], yellow["500"], orange["500"], red["500"]];
6599
+ const redPalette = Object.values(red);
6600
+ const greenPalette = Object.values(green);
6601
+ const bluePalette = Object.values(blue);
6602
+ const defaultColor = blue["500"];
6605
6603
 
6606
6604
  // *
6607
6605
  // * Typography
@@ -6616,7 +6614,7 @@ const padding = 8;
6616
6614
  const baseProps = {
6617
6615
  width: 450,
6618
6616
  height: 300,
6619
- padding: 50,
6617
+ padding: 60,
6620
6618
  colorScale
6621
6619
  };
6622
6620
  // *
@@ -6660,7 +6658,7 @@ const clean = {
6660
6658
  area: Object.assign({
6661
6659
  style: {
6662
6660
  data: {
6663
- fill: blue["500"],
6661
+ fill: defaultColor,
6664
6662
  strokeWidth: 2,
6665
6663
  fillOpacity: 0.5
6666
6664
  },
@@ -6677,7 +6675,7 @@ const clean = {
6677
6675
  strokeLinejoin
6678
6676
  },
6679
6677
  axisLabel: Object.assign({}, centeredLabelStyles, {
6680
- padding,
6678
+ padding: 35,
6681
6679
  stroke: "transparent"
6682
6680
  }),
6683
6681
  grid: {
@@ -6742,7 +6740,7 @@ const clean = {
6742
6740
  bar: Object.assign({
6743
6741
  style: {
6744
6742
  data: {
6745
- fill: blue["500"],
6743
+ fill: defaultColor,
6746
6744
  padding,
6747
6745
  strokeWidth: 1,
6748
6746
  fillOpacity: 0.5
@@ -6781,7 +6779,7 @@ const clean = {
6781
6779
  }),
6782
6780
  q1: {
6783
6781
  padding,
6784
- fill: teal["500"],
6782
+ fill: colorScale[0],
6785
6783
  rx: borderRadius,
6786
6784
  strokeWidth: 2
6787
6785
  },
@@ -6790,7 +6788,7 @@ const clean = {
6790
6788
  }),
6791
6789
  q3: {
6792
6790
  padding,
6793
- fill: cyan["500"],
6791
+ fill: colorScale[1],
6794
6792
  rx: borderRadius
6795
6793
  },
6796
6794
  q3Labels: Object.assign({}, baseLabelStyles, {
@@ -6811,8 +6809,8 @@ const clean = {
6811
6809
  })
6812
6810
  },
6813
6811
  candleColors: {
6814
- positive: teal["500"],
6815
- negative: orange["500"]
6812
+ positive: green["500"],
6813
+ negative: red["500"]
6816
6814
  },
6817
6815
  wickStrokeWidth: 2
6818
6816
  }, baseProps),
@@ -6878,7 +6876,7 @@ const clean = {
6878
6876
  data: {
6879
6877
  fill: "transparent",
6880
6878
  opacity: 1,
6881
- stroke: blue["500"],
6879
+ stroke: defaultColor,
6882
6880
  strokeWidth: 2,
6883
6881
  strokeLinecap,
6884
6882
  strokeLinejoin
@@ -6909,7 +6907,7 @@ const clean = {
6909
6907
  scatter: Object.assign({
6910
6908
  style: {
6911
6909
  data: {
6912
- fill: purple["500"],
6910
+ fill: defaultColor,
6913
6911
  opacity: 1,
6914
6912
  stroke: "transparent",
6915
6913
  strokeWidth: 0
@@ -6947,9 +6945,8 @@ const clean = {
6947
6945
  style: {
6948
6946
  data: {
6949
6947
  fill: blue["100"],
6950
- stroke: blue["500"],
6951
- strokeWidth: 2,
6952
- opacity: 0.4
6948
+ stroke: defaultColor,
6949
+ strokeWidth: 2
6953
6950
  },
6954
6951
  labels: Object.assign({}, baseLabelStyles, {
6955
6952
  padding: 5,