victory-create-container 37.1.1 → 37.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # victory-create-container
2
2
 
3
+ ## 37.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix victory-native container styles ([`eae3fe5dd`](https://github.com/FormidableLabs/victory/commit/eae3fe5dde175e68e146576655cb2e8054ad6456))
8
+
3
9
  ## 37.1.1
4
10
 
5
11
  ## 37.1.0
@@ -8569,6 +8569,432 @@ const TSpan = props => {
8569
8569
 
8570
8570
  /***/ }),
8571
8571
 
8572
+ /***/ "../../victory-core/es/victory-theme/clean.js":
8573
+ /*!****************************************************!*\
8574
+ !*** ../../victory-core/es/victory-theme/clean.js ***!
8575
+ \****************************************************/
8576
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8577
+
8578
+ "use strict";
8579
+ __webpack_require__.r(__webpack_exports__);
8580
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8581
+ /* harmony export */ "clean": function() { return /* binding */ clean; }
8582
+ /* harmony export */ });
8583
+ // *
8584
+ // * Colors
8585
+ // *
8586
+
8587
+ const gray = {
8588
+ white: "#FFFFFF",
8589
+ "50": "#FAFAFA",
8590
+ "100": "#F2F2F2",
8591
+ "200": "#E8E8E8",
8592
+ "300": "#E0E0E0",
8593
+ "400": "#D1D1D1",
8594
+ "500": "#757575",
8595
+ "600": "#5C5C5C",
8596
+ "700": "#424242",
8597
+ "800": "#333333",
8598
+ "900": "#292929",
8599
+ black: "#0F0F0F"
8600
+ };
8601
+ const yellow = {
8602
+ "100": "#FFEAB6",
8603
+ "300": "#FFD66E",
8604
+ "500": "#FCB400",
8605
+ "900": "#B87503"
8606
+ };
8607
+ const orange = {
8608
+ "100": "#FEE2D5",
8609
+ "300": "#FFA981",
8610
+ "500": "#FF6F2C",
8611
+ "900": "#D74D26"
8612
+ };
8613
+ const red = {
8614
+ "100": "#FFDCE5",
8615
+ "300": "#FF9EB7",
8616
+ "500": "#F82B60",
8617
+ "900": "#BA1E45"
8618
+ };
8619
+ const pink = {
8620
+ "100": "#FFDAF6",
8621
+ "300": "#F99DE2",
8622
+ "500": "#FF08C2",
8623
+ "900": "#B2158B"
8624
+ };
8625
+ const purple = {
8626
+ "100": "#EDE3FE",
8627
+ "300": "#CDB0FF",
8628
+ "500": "#8B46FF",
8629
+ "900": "#6B1CB0"
8630
+ };
8631
+ const blue = {
8632
+ "100": "#CFDFFF",
8633
+ "300": "#9CC7FF",
8634
+ "500": "#2D7FF9",
8635
+ "900": "#2750AE"
8636
+ };
8637
+ const cyan = {
8638
+ "100": "#D0F0FD",
8639
+ "300": "#77D1F3",
8640
+ "500": "#18BFFF",
8641
+ "900": "#0B76B7"
8642
+ };
8643
+ const teal = {
8644
+ "100": "#C2F5E9",
8645
+ "300": "#72DDC3",
8646
+ "500": "#20D9D2",
8647
+ "900": "#06A09B"
8648
+ };
8649
+ const green = {
8650
+ "100": "#D1F7C4",
8651
+ "300": "#93E088",
8652
+ "500": "#20C933",
8653
+ "900": "#338A17"
8654
+ };
8655
+ const colors = [blue["500"], pink["500"], teal["500"], purple["500"], green["500"], orange["500"], cyan["500"], red["500"], yellow["500"]];
8656
+ // *
8657
+ // * Typography
8658
+ // *
8659
+ const sansSerif = "'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif";
8660
+ const letterSpacing = "normal";
8661
+ const fontSize = 12;
8662
+ // *
8663
+ // * Layout
8664
+ // *
8665
+ const padding = 8;
8666
+ const baseProps = {
8667
+ width: 450,
8668
+ height: 300,
8669
+ padding: 50,
8670
+ colorScale: colors
8671
+ };
8672
+ // *
8673
+ // * Labels
8674
+ // *
8675
+ const baseLabelStyles = {
8676
+ fontFamily: sansSerif,
8677
+ fontSize,
8678
+ fontWeight: 300,
8679
+ letterSpacing,
8680
+ padding,
8681
+ fill: gray["900"],
8682
+ stroke: "transparent"
8683
+ };
8684
+ const centeredLabelStyles = Object.assign({
8685
+ textAnchor: "middle"
8686
+ }, baseLabelStyles);
8687
+
8688
+ // *
8689
+ // * Strokes
8690
+ // *
8691
+ const strokeDasharray = "10, 5";
8692
+ const strokeLinecap = "round";
8693
+ const strokeLinejoin = "round";
8694
+ const borderRadius = 1;
8695
+ // *
8696
+ // * Theme
8697
+ // *
8698
+ const clean = {
8699
+ area: Object.assign({
8700
+ style: {
8701
+ data: {
8702
+ fill: cyan["500"]
8703
+ },
8704
+ labels: baseLabelStyles
8705
+ }
8706
+ }, baseProps),
8707
+ axis: Object.assign({
8708
+ style: {
8709
+ axis: {
8710
+ fill: "transparent",
8711
+ stroke: gray["300"],
8712
+ strokeWidth: 1,
8713
+ strokeLinecap,
8714
+ strokeLinejoin
8715
+ },
8716
+ axisLabel: Object.assign({}, centeredLabelStyles, {
8717
+ padding,
8718
+ stroke: "transparent"
8719
+ }),
8720
+ grid: {
8721
+ fill: "none",
8722
+ stroke: "none",
8723
+ painterEvents: "painted"
8724
+ },
8725
+ ticks: {
8726
+ fill: "transparent",
8727
+ size: 5,
8728
+ stroke: "transparent"
8729
+ },
8730
+ tickLabels: baseLabelStyles
8731
+ }
8732
+ }, baseProps),
8733
+ polarAxis: Object.assign({
8734
+ style: {
8735
+ axis: {
8736
+ stroke: gray["300"]
8737
+ },
8738
+ grid: {
8739
+ stroke: gray["200"],
8740
+ strokeDasharray,
8741
+ strokeLinecap,
8742
+ strokeLinejoin,
8743
+ pointerEvents: "painted"
8744
+ },
8745
+ ticks: {
8746
+ fill: "transparent",
8747
+ size: 5,
8748
+ stroke: gray["200"],
8749
+ strokeWidth: 1,
8750
+ strokeLinecap,
8751
+ strokeLinejoin
8752
+ },
8753
+ tickLabels: baseLabelStyles
8754
+ }
8755
+ }),
8756
+ polarDependentAxis: Object.assign({
8757
+ style: {
8758
+ axis: {
8759
+ stroke: gray["300"]
8760
+ },
8761
+ grid: {
8762
+ stroke: gray["200"],
8763
+ strokeDasharray,
8764
+ strokeLinecap,
8765
+ strokeLinejoin,
8766
+ pointerEvents: "painted"
8767
+ },
8768
+ ticks: {
8769
+ fill: "transparent",
8770
+ size: 5,
8771
+ stroke: gray["200"],
8772
+ strokeWidth: 1,
8773
+ strokeLinecap,
8774
+ strokeLinejoin
8775
+ },
8776
+ tickLabels: baseLabelStyles
8777
+ }
8778
+ }),
8779
+ bar: Object.assign({
8780
+ style: {
8781
+ data: {
8782
+ fill: blue["500"],
8783
+ padding,
8784
+ strokeWidth: 0
8785
+ },
8786
+ labels: baseLabelStyles
8787
+ },
8788
+ cornerRadius: {
8789
+ top: borderRadius
8790
+ }
8791
+ }, baseProps),
8792
+ boxplot: Object.assign({
8793
+ style: {
8794
+ max: {
8795
+ padding,
8796
+ stroke: gray["400"],
8797
+ strokeWidth: 2
8798
+ },
8799
+ maxLabels: Object.assign({}, baseLabelStyles, {
8800
+ padding: 3
8801
+ }),
8802
+ median: {
8803
+ padding,
8804
+ stroke: gray.white,
8805
+ strokeWidth: 2
8806
+ },
8807
+ medianLabels: Object.assign({}, baseLabelStyles, {
8808
+ padding: 3
8809
+ }),
8810
+ min: {
8811
+ padding,
8812
+ stroke: gray["400"],
8813
+ strokeWidth: 2
8814
+ },
8815
+ minLabels: Object.assign({}, baseLabelStyles, {
8816
+ padding: 3
8817
+ }),
8818
+ q1: {
8819
+ padding,
8820
+ fill: teal["500"],
8821
+ rx: borderRadius
8822
+ },
8823
+ q1Labels: Object.assign({}, baseLabelStyles, {
8824
+ padding: 3
8825
+ }),
8826
+ q3: {
8827
+ padding,
8828
+ fill: teal["500"],
8829
+ rx: borderRadius
8830
+ },
8831
+ q3Labels: Object.assign({}, baseLabelStyles, {
8832
+ padding: 3
8833
+ })
8834
+ },
8835
+ boxWidth: 20
8836
+ }, baseProps),
8837
+ candlestick: Object.assign({
8838
+ style: {
8839
+ data: {
8840
+ stroke: gray["300"],
8841
+ strokeWidth: 0,
8842
+ rx: borderRadius
8843
+ },
8844
+ labels: Object.assign({}, baseLabelStyles, {
8845
+ padding: 5
8846
+ })
8847
+ },
8848
+ candleColors: {
8849
+ positive: teal["500"],
8850
+ negative: orange["500"]
8851
+ },
8852
+ wickStrokeWidth: 2
8853
+ }, baseProps),
8854
+ chart: baseProps,
8855
+ errorbar: Object.assign({
8856
+ borderWidth: 8,
8857
+ style: {
8858
+ data: {
8859
+ fill: "transparent",
8860
+ opacity: 1,
8861
+ stroke: gray["700"],
8862
+ strokeWidth: 2,
8863
+ strokeLinecap
8864
+ },
8865
+ labels: baseLabelStyles
8866
+ }
8867
+ }, baseProps),
8868
+ group: Object.assign({
8869
+ colorScale: colors
8870
+ }, baseProps),
8871
+ histogram: Object.assign({
8872
+ style: {
8873
+ data: {
8874
+ fill: cyan["500"],
8875
+ stroke: "transparent",
8876
+ strokeWidth: 0
8877
+ },
8878
+ labels: baseLabelStyles
8879
+ },
8880
+ binSpacing: 4,
8881
+ cornerRadius: {
8882
+ top: borderRadius
8883
+ }
8884
+ }, baseProps),
8885
+ label: baseLabelStyles,
8886
+ legend: {
8887
+ colorScale: colors,
8888
+ gutter: 10,
8889
+ orientation: "vertical",
8890
+ titleOrientation: "top",
8891
+ style: {
8892
+ data: {
8893
+ type: "circle"
8894
+ },
8895
+ labels: {
8896
+ ...baseLabelStyles,
8897
+ fontSize: 14
8898
+ },
8899
+ title: Object.assign({}, baseLabelStyles, {
8900
+ padding,
8901
+ fontSize: 20
8902
+ }),
8903
+ border: {
8904
+ stroke: gray["200"],
8905
+ strokeWidth: 2,
8906
+ padding: 16
8907
+ }
8908
+ }
8909
+ },
8910
+ line: Object.assign({
8911
+ style: {
8912
+ data: {
8913
+ fill: "transparent",
8914
+ opacity: 1,
8915
+ stroke: pink["500"],
8916
+ strokeWidth: 2,
8917
+ strokeLinecap,
8918
+ strokeLinejoin
8919
+ },
8920
+ labels: baseLabelStyles
8921
+ }
8922
+ }, baseProps),
8923
+ pie: Object.assign({
8924
+ style: {
8925
+ data: {
8926
+ padding,
8927
+ stroke: gray.white,
8928
+ strokeWidth: 1
8929
+ },
8930
+ labels: Object.assign({}, baseLabelStyles, {
8931
+ padding: 20
8932
+ })
8933
+ },
8934
+ colorScale: colors,
8935
+ cornerRadius: borderRadius
8936
+ }, baseProps),
8937
+ scatter: Object.assign({
8938
+ style: {
8939
+ data: {
8940
+ fill: purple["500"],
8941
+ opacity: 1,
8942
+ stroke: "transparent",
8943
+ strokeWidth: 0
8944
+ },
8945
+ labels: baseLabelStyles
8946
+ }
8947
+ }, baseProps),
8948
+ stack: Object.assign({
8949
+ colorScale: colors
8950
+ }, baseProps),
8951
+ tooltip: {
8952
+ style: Object.assign({}, baseLabelStyles, {
8953
+ padding: 0,
8954
+ pointerEvents: "none"
8955
+ }),
8956
+ flyoutStyle: {
8957
+ stroke: gray["500"],
8958
+ strokeWidth: 2,
8959
+ fill: gray.white,
8960
+ pointerEvents: "none"
8961
+ },
8962
+ flyoutPadding: {
8963
+ top: 8,
8964
+ bottom: 8,
8965
+ left: 16,
8966
+ right: 16
8967
+ },
8968
+ cornerRadius: borderRadius,
8969
+ pointerLength: 4
8970
+ },
8971
+ voronoi: Object.assign({
8972
+ style: {
8973
+ data: {
8974
+ fill: red["100"],
8975
+ stroke: red["500"],
8976
+ strokeWidth: 2
8977
+ },
8978
+ labels: Object.assign({}, baseLabelStyles, {
8979
+ padding: 5,
8980
+ pointerEvents: "none"
8981
+ }),
8982
+ flyout: {
8983
+ stroke: gray["900"],
8984
+ strokeWidth: 1,
8985
+ fill: gray["100"],
8986
+ pointerEvents: "none"
8987
+ },
8988
+ padding: {
8989
+ left: 2,
8990
+ bottom: 2
8991
+ }
8992
+ }
8993
+ }, baseProps)
8994
+ };
8995
+
8996
+ /***/ }),
8997
+
8572
8998
  /***/ "../../victory-core/es/victory-theme/grayscale.js":
8573
8999
  /*!********************************************************!*\
8574
9000
  !*** ../../victory-core/es/victory-theme/grayscale.js ***!
@@ -9149,12 +9575,15 @@ __webpack_require__.r(__webpack_exports__);
9149
9575
  /* harmony export */ });
9150
9576
  /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
9151
9577
  /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
9578
+ /* harmony import */ var _clean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./clean */ "../../victory-core/es/victory-theme/clean.js");
9579
+
9152
9580
 
9153
9581
 
9154
9582
 
9155
9583
  const VictoryTheme = {
9156
9584
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
9157
- material: _material__WEBPACK_IMPORTED_MODULE_1__.material
9585
+ material: _material__WEBPACK_IMPORTED_MODULE_1__.material,
9586
+ clean: _clean__WEBPACK_IMPORTED_MODULE_2__.clean
9158
9587
  };
9159
9588
 
9160
9589
  /***/ }),
@@ -12034,6 +12463,7 @@ __webpack_require__.r(__webpack_exports__);
12034
12463
  /* eslint-disable no-magic-numbers */
12035
12464
  // Based on measuring specific character widths
12036
12465
  // as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
12466
+ // For new fonts: pull gist, open index.html locally, add font files (if not generic), enter font name in `font-family` input
12037
12467
  // prettier-ignore
12038
12468
  const fonts = {
12039
12469
  "American Typewriter": {
@@ -12092,6 +12522,10 @@ const fonts = {
12092
12522
  widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2359375, 0.2234375, 0.3921875, 0.7125, 0.49375, 0.8859375, 0.771875, 0.2125, 0.3078125, 0.309375, 0.375, 0.4234375, 0.234375, 0.3125, 0.234375, 0.3, 0.5828125, 0.365625, 0.434375, 0.3921875, 0.5234375, 0.3984375, 0.5125, 0.4328125, 0.46875, 0.5125, 0.234375, 0.234375, 0.515625, 0.4234375, 0.515625, 0.340625, 0.7609375, 0.7359375, 0.6359375, 0.721875, 0.8125, 0.6375, 0.5875, 0.8078125, 0.853125, 0.4296875, 0.503125, 0.78125, 0.609375, 0.9609375, 0.8515625, 0.8140625, 0.6125, 0.8140625, 0.71875, 0.49375, 0.7125, 0.76875, 0.771875, 1.125, 0.7765625, 0.7734375, 0.65625, 0.321875, 0.3078125, 0.321875, 0.3546875, 0.5, 0.3375, 0.446875, 0.5359375, 0.45, 0.5296875, 0.4546875, 0.425, 0.4921875, 0.54375, 0.2671875, 0.240625, 0.5390625, 0.25, 0.815625, 0.5375, 0.5234375, 0.5390625, 0.5421875, 0.365625, 0.36875, 0.35625, 0.5171875, 0.5015625, 0.75, 0.5, 0.509375, 0.44375, 0.2421875, 0.14375, 0.2421875, 0.35],
12093
12523
  avg: 0.5116447368421051
12094
12524
  },
12525
+ "Inter": {
12526
+ widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2796875, 0.2890625, 0.4671875, 0.634375, 0.6421875, 0.9828125, 0.6453125, 0.3, 0.365625, 0.365625, 0.5015625, 0.6625, 0.2890625, 0.4609375, 0.2890625, 0.3609375, 0.63125, 0.4078125, 0.6109375, 0.61875, 0.646875, 0.59375, 0.6203125, 0.5671875, 0.61875, 0.6203125, 0.2890625, 0.303125, 0.6625, 0.6625, 0.6625, 0.5125, 0.9671875, 0.690625, 0.6546875, 0.73125, 0.721875, 0.6015625, 0.590625, 0.746875, 0.74375, 0.26875, 0.571875, 0.671875, 0.565625, 0.9046875, 0.7546875, 0.765625, 0.6390625, 0.765625, 0.64375, 0.6421875, 0.646875, 0.7453125, 0.690625, 0.9859375, 0.6828125, 0.6796875, 0.6296875, 0.365625, 0.3609375, 0.365625, 0.471875, 0.45625, 0.3234375, 0.5625, 0.6125, 0.571875, 0.6125, 0.584375, 0.3703125, 0.6140625, 0.5921875, 0.2421875, 0.2548828125, 0.55, 0.2421875, 0.8765625, 0.5921875, 0.6, 0.6125, 0.6125, 0.3765625, 0.528125, 0.328125, 0.5921875, 0.5625, 0.81875, 0.546875, 0.5625, 0.553125, 0.4265625, 0.3328125, 0.4265625, 0.6625],
12527
+ avg: 0.5624362664473683
12528
+ },
12095
12529
  "Montserrat": {
12096
12530
  widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2625, 0.2609375, 0.3734375, 0.696875, 0.615625, 0.8296875, 0.6703125, 0.203125, 0.3296875, 0.3296875, 0.3875, 0.575, 0.2125, 0.3828125, 0.2125, 0.3953125, 0.6625, 0.3625, 0.56875, 0.5640625, 0.6625, 0.5671875, 0.609375, 0.5890625, 0.6390625, 0.609375, 0.2125, 0.2125, 0.575, 0.575, 0.575, 0.5671875, 1.034375, 0.7171875, 0.7546875, 0.7203125, 0.8265625, 0.6703125, 0.634375, 0.7734375, 0.8140625, 0.303125, 0.5078125, 0.7125, 0.5890625, 0.95625, 0.8140625, 0.8390625, 0.71875, 0.8390625, 0.7234375, 0.615625, 0.575, 0.7921875, 0.6984375, 1.1125, 0.65625, 0.6359375, 0.6515625, 0.31875, 0.396875, 0.31875, 0.5765625, 0.5, 0.6, 0.590625, 0.678125, 0.5640625, 0.678125, 0.6046875, 0.375, 0.6875, 0.678125, 0.2703125, 0.365625, 0.6015625, 0.2703125, 1.0625, 0.678125, 0.628125, 0.678125, 0.678125, 0.4015625, 0.4890625, 0.40625, 0.6734375, 0.5421875, 0.8796875, 0.534375, 0.5671875, 0.5125, 0.334375, 0.2953125, 0.334375, 0.575],
12097
12531
  avg: 0.571792763157895