victory-bar 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-bar
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
@@ -6899,6 +6899,432 @@ const TSpan = props => {
6899
6899
 
6900
6900
  /***/ }),
6901
6901
 
6902
+ /***/ "../../victory-core/es/victory-theme/clean.js":
6903
+ /*!****************************************************!*\
6904
+ !*** ../../victory-core/es/victory-theme/clean.js ***!
6905
+ \****************************************************/
6906
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6907
+
6908
+ "use strict";
6909
+ __webpack_require__.r(__webpack_exports__);
6910
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6911
+ /* harmony export */ "clean": function() { return /* binding */ clean; }
6912
+ /* harmony export */ });
6913
+ // *
6914
+ // * Colors
6915
+ // *
6916
+
6917
+ const gray = {
6918
+ white: "#FFFFFF",
6919
+ "50": "#FAFAFA",
6920
+ "100": "#F2F2F2",
6921
+ "200": "#E8E8E8",
6922
+ "300": "#E0E0E0",
6923
+ "400": "#D1D1D1",
6924
+ "500": "#757575",
6925
+ "600": "#5C5C5C",
6926
+ "700": "#424242",
6927
+ "800": "#333333",
6928
+ "900": "#292929",
6929
+ black: "#0F0F0F"
6930
+ };
6931
+ const yellow = {
6932
+ "100": "#FFEAB6",
6933
+ "300": "#FFD66E",
6934
+ "500": "#FCB400",
6935
+ "900": "#B87503"
6936
+ };
6937
+ const orange = {
6938
+ "100": "#FEE2D5",
6939
+ "300": "#FFA981",
6940
+ "500": "#FF6F2C",
6941
+ "900": "#D74D26"
6942
+ };
6943
+ const red = {
6944
+ "100": "#FFDCE5",
6945
+ "300": "#FF9EB7",
6946
+ "500": "#F82B60",
6947
+ "900": "#BA1E45"
6948
+ };
6949
+ const pink = {
6950
+ "100": "#FFDAF6",
6951
+ "300": "#F99DE2",
6952
+ "500": "#FF08C2",
6953
+ "900": "#B2158B"
6954
+ };
6955
+ const purple = {
6956
+ "100": "#EDE3FE",
6957
+ "300": "#CDB0FF",
6958
+ "500": "#8B46FF",
6959
+ "900": "#6B1CB0"
6960
+ };
6961
+ const blue = {
6962
+ "100": "#CFDFFF",
6963
+ "300": "#9CC7FF",
6964
+ "500": "#2D7FF9",
6965
+ "900": "#2750AE"
6966
+ };
6967
+ const cyan = {
6968
+ "100": "#D0F0FD",
6969
+ "300": "#77D1F3",
6970
+ "500": "#18BFFF",
6971
+ "900": "#0B76B7"
6972
+ };
6973
+ const teal = {
6974
+ "100": "#C2F5E9",
6975
+ "300": "#72DDC3",
6976
+ "500": "#20D9D2",
6977
+ "900": "#06A09B"
6978
+ };
6979
+ const green = {
6980
+ "100": "#D1F7C4",
6981
+ "300": "#93E088",
6982
+ "500": "#20C933",
6983
+ "900": "#338A17"
6984
+ };
6985
+ const colors = [blue["500"], pink["500"], teal["500"], purple["500"], green["500"], orange["500"], cyan["500"], red["500"], yellow["500"]];
6986
+ // *
6987
+ // * Typography
6988
+ // *
6989
+ const sansSerif = "'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif";
6990
+ const letterSpacing = "normal";
6991
+ const fontSize = 12;
6992
+ // *
6993
+ // * Layout
6994
+ // *
6995
+ const padding = 8;
6996
+ const baseProps = {
6997
+ width: 450,
6998
+ height: 300,
6999
+ padding: 50,
7000
+ colorScale: colors
7001
+ };
7002
+ // *
7003
+ // * Labels
7004
+ // *
7005
+ const baseLabelStyles = {
7006
+ fontFamily: sansSerif,
7007
+ fontSize,
7008
+ fontWeight: 300,
7009
+ letterSpacing,
7010
+ padding,
7011
+ fill: gray["900"],
7012
+ stroke: "transparent"
7013
+ };
7014
+ const centeredLabelStyles = Object.assign({
7015
+ textAnchor: "middle"
7016
+ }, baseLabelStyles);
7017
+
7018
+ // *
7019
+ // * Strokes
7020
+ // *
7021
+ const strokeDasharray = "10, 5";
7022
+ const strokeLinecap = "round";
7023
+ const strokeLinejoin = "round";
7024
+ const borderRadius = 1;
7025
+ // *
7026
+ // * Theme
7027
+ // *
7028
+ const clean = {
7029
+ area: Object.assign({
7030
+ style: {
7031
+ data: {
7032
+ fill: cyan["500"]
7033
+ },
7034
+ labels: baseLabelStyles
7035
+ }
7036
+ }, baseProps),
7037
+ axis: Object.assign({
7038
+ style: {
7039
+ axis: {
7040
+ fill: "transparent",
7041
+ stroke: gray["300"],
7042
+ strokeWidth: 1,
7043
+ strokeLinecap,
7044
+ strokeLinejoin
7045
+ },
7046
+ axisLabel: Object.assign({}, centeredLabelStyles, {
7047
+ padding,
7048
+ stroke: "transparent"
7049
+ }),
7050
+ grid: {
7051
+ fill: "none",
7052
+ stroke: "none",
7053
+ painterEvents: "painted"
7054
+ },
7055
+ ticks: {
7056
+ fill: "transparent",
7057
+ size: 5,
7058
+ stroke: "transparent"
7059
+ },
7060
+ tickLabels: baseLabelStyles
7061
+ }
7062
+ }, baseProps),
7063
+ polarAxis: Object.assign({
7064
+ style: {
7065
+ axis: {
7066
+ stroke: gray["300"]
7067
+ },
7068
+ grid: {
7069
+ stroke: gray["200"],
7070
+ strokeDasharray,
7071
+ strokeLinecap,
7072
+ strokeLinejoin,
7073
+ pointerEvents: "painted"
7074
+ },
7075
+ ticks: {
7076
+ fill: "transparent",
7077
+ size: 5,
7078
+ stroke: gray["200"],
7079
+ strokeWidth: 1,
7080
+ strokeLinecap,
7081
+ strokeLinejoin
7082
+ },
7083
+ tickLabels: baseLabelStyles
7084
+ }
7085
+ }),
7086
+ polarDependentAxis: Object.assign({
7087
+ style: {
7088
+ axis: {
7089
+ stroke: gray["300"]
7090
+ },
7091
+ grid: {
7092
+ stroke: gray["200"],
7093
+ strokeDasharray,
7094
+ strokeLinecap,
7095
+ strokeLinejoin,
7096
+ pointerEvents: "painted"
7097
+ },
7098
+ ticks: {
7099
+ fill: "transparent",
7100
+ size: 5,
7101
+ stroke: gray["200"],
7102
+ strokeWidth: 1,
7103
+ strokeLinecap,
7104
+ strokeLinejoin
7105
+ },
7106
+ tickLabels: baseLabelStyles
7107
+ }
7108
+ }),
7109
+ bar: Object.assign({
7110
+ style: {
7111
+ data: {
7112
+ fill: blue["500"],
7113
+ padding,
7114
+ strokeWidth: 0
7115
+ },
7116
+ labels: baseLabelStyles
7117
+ },
7118
+ cornerRadius: {
7119
+ top: borderRadius
7120
+ }
7121
+ }, baseProps),
7122
+ boxplot: Object.assign({
7123
+ style: {
7124
+ max: {
7125
+ padding,
7126
+ stroke: gray["400"],
7127
+ strokeWidth: 2
7128
+ },
7129
+ maxLabels: Object.assign({}, baseLabelStyles, {
7130
+ padding: 3
7131
+ }),
7132
+ median: {
7133
+ padding,
7134
+ stroke: gray.white,
7135
+ strokeWidth: 2
7136
+ },
7137
+ medianLabels: Object.assign({}, baseLabelStyles, {
7138
+ padding: 3
7139
+ }),
7140
+ min: {
7141
+ padding,
7142
+ stroke: gray["400"],
7143
+ strokeWidth: 2
7144
+ },
7145
+ minLabels: Object.assign({}, baseLabelStyles, {
7146
+ padding: 3
7147
+ }),
7148
+ q1: {
7149
+ padding,
7150
+ fill: teal["500"],
7151
+ rx: borderRadius
7152
+ },
7153
+ q1Labels: Object.assign({}, baseLabelStyles, {
7154
+ padding: 3
7155
+ }),
7156
+ q3: {
7157
+ padding,
7158
+ fill: teal["500"],
7159
+ rx: borderRadius
7160
+ },
7161
+ q3Labels: Object.assign({}, baseLabelStyles, {
7162
+ padding: 3
7163
+ })
7164
+ },
7165
+ boxWidth: 20
7166
+ }, baseProps),
7167
+ candlestick: Object.assign({
7168
+ style: {
7169
+ data: {
7170
+ stroke: gray["300"],
7171
+ strokeWidth: 0,
7172
+ rx: borderRadius
7173
+ },
7174
+ labels: Object.assign({}, baseLabelStyles, {
7175
+ padding: 5
7176
+ })
7177
+ },
7178
+ candleColors: {
7179
+ positive: teal["500"],
7180
+ negative: orange["500"]
7181
+ },
7182
+ wickStrokeWidth: 2
7183
+ }, baseProps),
7184
+ chart: baseProps,
7185
+ errorbar: Object.assign({
7186
+ borderWidth: 8,
7187
+ style: {
7188
+ data: {
7189
+ fill: "transparent",
7190
+ opacity: 1,
7191
+ stroke: gray["700"],
7192
+ strokeWidth: 2,
7193
+ strokeLinecap
7194
+ },
7195
+ labels: baseLabelStyles
7196
+ }
7197
+ }, baseProps),
7198
+ group: Object.assign({
7199
+ colorScale: colors
7200
+ }, baseProps),
7201
+ histogram: Object.assign({
7202
+ style: {
7203
+ data: {
7204
+ fill: cyan["500"],
7205
+ stroke: "transparent",
7206
+ strokeWidth: 0
7207
+ },
7208
+ labels: baseLabelStyles
7209
+ },
7210
+ binSpacing: 4,
7211
+ cornerRadius: {
7212
+ top: borderRadius
7213
+ }
7214
+ }, baseProps),
7215
+ label: baseLabelStyles,
7216
+ legend: {
7217
+ colorScale: colors,
7218
+ gutter: 10,
7219
+ orientation: "vertical",
7220
+ titleOrientation: "top",
7221
+ style: {
7222
+ data: {
7223
+ type: "circle"
7224
+ },
7225
+ labels: {
7226
+ ...baseLabelStyles,
7227
+ fontSize: 14
7228
+ },
7229
+ title: Object.assign({}, baseLabelStyles, {
7230
+ padding,
7231
+ fontSize: 20
7232
+ }),
7233
+ border: {
7234
+ stroke: gray["200"],
7235
+ strokeWidth: 2,
7236
+ padding: 16
7237
+ }
7238
+ }
7239
+ },
7240
+ line: Object.assign({
7241
+ style: {
7242
+ data: {
7243
+ fill: "transparent",
7244
+ opacity: 1,
7245
+ stroke: pink["500"],
7246
+ strokeWidth: 2,
7247
+ strokeLinecap,
7248
+ strokeLinejoin
7249
+ },
7250
+ labels: baseLabelStyles
7251
+ }
7252
+ }, baseProps),
7253
+ pie: Object.assign({
7254
+ style: {
7255
+ data: {
7256
+ padding,
7257
+ stroke: gray.white,
7258
+ strokeWidth: 1
7259
+ },
7260
+ labels: Object.assign({}, baseLabelStyles, {
7261
+ padding: 20
7262
+ })
7263
+ },
7264
+ colorScale: colors,
7265
+ cornerRadius: borderRadius
7266
+ }, baseProps),
7267
+ scatter: Object.assign({
7268
+ style: {
7269
+ data: {
7270
+ fill: purple["500"],
7271
+ opacity: 1,
7272
+ stroke: "transparent",
7273
+ strokeWidth: 0
7274
+ },
7275
+ labels: baseLabelStyles
7276
+ }
7277
+ }, baseProps),
7278
+ stack: Object.assign({
7279
+ colorScale: colors
7280
+ }, baseProps),
7281
+ tooltip: {
7282
+ style: Object.assign({}, baseLabelStyles, {
7283
+ padding: 0,
7284
+ pointerEvents: "none"
7285
+ }),
7286
+ flyoutStyle: {
7287
+ stroke: gray["500"],
7288
+ strokeWidth: 2,
7289
+ fill: gray.white,
7290
+ pointerEvents: "none"
7291
+ },
7292
+ flyoutPadding: {
7293
+ top: 8,
7294
+ bottom: 8,
7295
+ left: 16,
7296
+ right: 16
7297
+ },
7298
+ cornerRadius: borderRadius,
7299
+ pointerLength: 4
7300
+ },
7301
+ voronoi: Object.assign({
7302
+ style: {
7303
+ data: {
7304
+ fill: red["100"],
7305
+ stroke: red["500"],
7306
+ strokeWidth: 2
7307
+ },
7308
+ labels: Object.assign({}, baseLabelStyles, {
7309
+ padding: 5,
7310
+ pointerEvents: "none"
7311
+ }),
7312
+ flyout: {
7313
+ stroke: gray["900"],
7314
+ strokeWidth: 1,
7315
+ fill: gray["100"],
7316
+ pointerEvents: "none"
7317
+ },
7318
+ padding: {
7319
+ left: 2,
7320
+ bottom: 2
7321
+ }
7322
+ }
7323
+ }, baseProps)
7324
+ };
7325
+
7326
+ /***/ }),
7327
+
6902
7328
  /***/ "../../victory-core/es/victory-theme/grayscale.js":
6903
7329
  /*!********************************************************!*\
6904
7330
  !*** ../../victory-core/es/victory-theme/grayscale.js ***!
@@ -7479,12 +7905,15 @@ __webpack_require__.r(__webpack_exports__);
7479
7905
  /* harmony export */ });
7480
7906
  /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
7481
7907
  /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
7908
+ /* harmony import */ var _clean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./clean */ "../../victory-core/es/victory-theme/clean.js");
7909
+
7482
7910
 
7483
7911
 
7484
7912
 
7485
7913
  const VictoryTheme = {
7486
7914
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
7487
- material: _material__WEBPACK_IMPORTED_MODULE_1__.material
7915
+ material: _material__WEBPACK_IMPORTED_MODULE_1__.material,
7916
+ clean: _clean__WEBPACK_IMPORTED_MODULE_2__.clean
7488
7917
  };
7489
7918
 
7490
7919
  /***/ }),
@@ -10361,6 +10790,7 @@ __webpack_require__.r(__webpack_exports__);
10361
10790
  /* eslint-disable no-magic-numbers */
10362
10791
  // Based on measuring specific character widths
10363
10792
  // as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
10793
+ // For new fonts: pull gist, open index.html locally, add font files (if not generic), enter font name in `font-family` input
10364
10794
  // prettier-ignore
10365
10795
  const fonts = {
10366
10796
  "American Typewriter": {
@@ -10419,6 +10849,10 @@ const fonts = {
10419
10849
  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],
10420
10850
  avg: 0.5116447368421051
10421
10851
  },
10852
+ "Inter": {
10853
+ 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],
10854
+ avg: 0.5624362664473683
10855
+ },
10422
10856
  "Montserrat": {
10423
10857
  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],
10424
10858
  avg: 0.571792763157895