@luminati-io/uikit 3.6.7 → 3.6.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -8154,6 +8154,197 @@ var PatternOrientation = {
|
|
8154
8154
|
|
8155
8155
|
/***/ }),
|
8156
8156
|
|
8157
|
+
/***/ "./node_modules/@visx/pattern/esm/index.js":
|
8158
|
+
/*!*************************************************!*\
|
8159
|
+
!*** ./node_modules/@visx/pattern/esm/index.js ***!
|
8160
|
+
\*************************************************/
|
8161
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
8162
|
+
|
8163
|
+
"use strict";
|
8164
|
+
__webpack_require__.r(__webpack_exports__);
|
8165
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
8166
|
+
/* harmony export */ Pattern: () => (/* reexport safe */ _patterns_Pattern__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
8167
|
+
/* harmony export */ PatternCircles: () => (/* reexport safe */ _patterns_Circles__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
8168
|
+
/* harmony export */ PatternHexagons: () => (/* reexport safe */ _patterns_Hexagons__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
8169
|
+
/* harmony export */ PatternLines: () => (/* reexport safe */ _patterns_Lines__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
8170
|
+
/* harmony export */ PatternOrientation: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_6__.PatternOrientation),
|
8171
|
+
/* harmony export */ PatternPath: () => (/* reexport safe */ _patterns_Path__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
8172
|
+
/* harmony export */ PatternWaves: () => (/* reexport safe */ _patterns_Waves__WEBPACK_IMPORTED_MODULE_3__["default"])
|
8173
|
+
/* harmony export */ });
|
8174
|
+
/* harmony import */ var _patterns_Pattern__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./patterns/Pattern */ "./node_modules/@visx/pattern/esm/patterns/Pattern.js");
|
8175
|
+
/* harmony import */ var _patterns_Lines__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./patterns/Lines */ "./node_modules/@visx/pattern/esm/patterns/Lines.js");
|
8176
|
+
/* harmony import */ var _patterns_Circles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./patterns/Circles */ "./node_modules/@visx/pattern/esm/patterns/Circles.js");
|
8177
|
+
/* harmony import */ var _patterns_Waves__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./patterns/Waves */ "./node_modules/@visx/pattern/esm/patterns/Waves.js");
|
8178
|
+
/* harmony import */ var _patterns_Hexagons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./patterns/Hexagons */ "./node_modules/@visx/pattern/esm/patterns/Hexagons.js");
|
8179
|
+
/* harmony import */ var _patterns_Path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./patterns/Path */ "./node_modules/@visx/pattern/esm/patterns/Path.js");
|
8180
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./constants */ "./node_modules/@visx/pattern/esm/constants/index.js");
|
8181
|
+
|
8182
|
+
|
8183
|
+
|
8184
|
+
|
8185
|
+
|
8186
|
+
|
8187
|
+
|
8188
|
+
|
8189
|
+
/***/ }),
|
8190
|
+
|
8191
|
+
/***/ "./node_modules/@visx/pattern/esm/patterns/Circles.js":
|
8192
|
+
/*!************************************************************!*\
|
8193
|
+
!*** ./node_modules/@visx/pattern/esm/patterns/Circles.js ***!
|
8194
|
+
\************************************************************/
|
8195
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
8196
|
+
|
8197
|
+
"use strict";
|
8198
|
+
__webpack_require__.r(__webpack_exports__);
|
8199
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
8200
|
+
/* harmony export */ "default": () => (/* binding */ Circles)
|
8201
|
+
/* harmony export */ });
|
8202
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
8203
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
8204
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
8205
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
8206
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
8207
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
8208
|
+
/* harmony import */ var _Pattern__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Pattern */ "./node_modules/@visx/pattern/esm/patterns/Pattern.js");
|
8209
|
+
|
8210
|
+
|
8211
|
+
|
8212
|
+
|
8213
|
+
function Circles(_ref) {
|
8214
|
+
var _corners;
|
8215
|
+
var id = _ref.id,
|
8216
|
+
width = _ref.width,
|
8217
|
+
height = _ref.height,
|
8218
|
+
_ref$radius = _ref.radius,
|
8219
|
+
radius = _ref$radius === void 0 ? 2 : _ref$radius,
|
8220
|
+
fill = _ref.fill,
|
8221
|
+
stroke = _ref.stroke,
|
8222
|
+
strokeWidth = _ref.strokeWidth,
|
8223
|
+
strokeDasharray = _ref.strokeDasharray,
|
8224
|
+
background = _ref.background,
|
8225
|
+
_ref$complement = _ref.complement,
|
8226
|
+
complement = _ref$complement === void 0 ? false : _ref$complement,
|
8227
|
+
className = _ref.className;
|
8228
|
+
var corners;
|
8229
|
+
if (complement) {
|
8230
|
+
corners = [[0, 0], [0, height], [width, 0], [width, height]];
|
8231
|
+
}
|
8232
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Pattern__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
8233
|
+
id: id,
|
8234
|
+
width: width,
|
8235
|
+
height: height
|
8236
|
+
}, !!background && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("rect", {
|
8237
|
+
width: width,
|
8238
|
+
height: height,
|
8239
|
+
fill: background
|
8240
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("circle", {
|
8241
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('visx-pattern-circle', className),
|
8242
|
+
cx: width / 2,
|
8243
|
+
cy: height / 2,
|
8244
|
+
r: radius,
|
8245
|
+
fill: fill,
|
8246
|
+
stroke: stroke,
|
8247
|
+
strokeWidth: strokeWidth,
|
8248
|
+
strokeDasharray: strokeDasharray
|
8249
|
+
}), (_corners = corners) == null ? void 0 : _corners.map(function (_ref2) {
|
8250
|
+
var cornerX = _ref2[0],
|
8251
|
+
cornerY = _ref2[1];
|
8252
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("circle", {
|
8253
|
+
key: id + "-complement-" + cornerX + "-" + cornerY,
|
8254
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('visx-pattern-circle visx-pattern-circle-complement', className),
|
8255
|
+
cx: cornerX,
|
8256
|
+
cy: cornerY,
|
8257
|
+
r: radius,
|
8258
|
+
fill: fill,
|
8259
|
+
stroke: stroke,
|
8260
|
+
strokeWidth: strokeWidth,
|
8261
|
+
strokeDasharray: strokeDasharray
|
8262
|
+
});
|
8263
|
+
}));
|
8264
|
+
}
|
8265
|
+
Circles.propTypes = {
|
8266
|
+
id: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string).isRequired,
|
8267
|
+
width: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number).isRequired,
|
8268
|
+
height: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number).isRequired,
|
8269
|
+
radius: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
8270
|
+
fill: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
8271
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
8272
|
+
stroke: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
8273
|
+
strokeWidth: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
8274
|
+
strokeDasharray: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
8275
|
+
complement: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
8276
|
+
background: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
8277
|
+
};
|
8278
|
+
|
8279
|
+
/***/ }),
|
8280
|
+
|
8281
|
+
/***/ "./node_modules/@visx/pattern/esm/patterns/Hexagons.js":
|
8282
|
+
/*!*************************************************************!*\
|
8283
|
+
!*** ./node_modules/@visx/pattern/esm/patterns/Hexagons.js ***!
|
8284
|
+
\*************************************************************/
|
8285
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
8286
|
+
|
8287
|
+
"use strict";
|
8288
|
+
__webpack_require__.r(__webpack_exports__);
|
8289
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
8290
|
+
/* harmony export */ "default": () => (/* binding */ Hexagons)
|
8291
|
+
/* harmony export */ });
|
8292
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
8293
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
8294
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
8295
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
8296
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
8297
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
8298
|
+
/* harmony import */ var _Path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Path */ "./node_modules/@visx/pattern/esm/patterns/Path.js");
|
8299
|
+
|
8300
|
+
|
8301
|
+
|
8302
|
+
|
8303
|
+
function Hexagons(_ref) {
|
8304
|
+
var id = _ref.id,
|
8305
|
+
height = _ref.height,
|
8306
|
+
fill = _ref.fill,
|
8307
|
+
stroke = _ref.stroke,
|
8308
|
+
strokeWidth = _ref.strokeWidth,
|
8309
|
+
strokeDasharray = _ref.strokeDasharray,
|
8310
|
+
strokeLinecap = _ref.strokeLinecap,
|
8311
|
+
shapeRendering = _ref.shapeRendering,
|
8312
|
+
background = _ref.background,
|
8313
|
+
className = _ref.className,
|
8314
|
+
_ref$size = _ref.size,
|
8315
|
+
size = _ref$size === void 0 ? 3 : _ref$size;
|
8316
|
+
var sqrtSize = Math.sqrt(size);
|
8317
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Path__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
8318
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('visx-pattern-hexagon', className),
|
8319
|
+
path: "M " + height + ",0 l " + height + ",0 l " + height / 2 + "," + height * sqrtSize / 2 + " l " + -height / 2 + "," + height * sqrtSize / 2 + " l " + -height + ",0 l " + -height / 2 + "," + -height * sqrtSize / 2 + " Z M 0," + height * sqrtSize / 2 + " l " + height / 2 + ",0 M " + 3 * height + "," + height * sqrtSize / 2 + " l " + -height / 2 + ",0",
|
8320
|
+
id: id,
|
8321
|
+
width: size,
|
8322
|
+
height: sqrtSize,
|
8323
|
+
fill: fill,
|
8324
|
+
stroke: stroke,
|
8325
|
+
strokeWidth: strokeWidth,
|
8326
|
+
strokeDasharray: strokeDasharray,
|
8327
|
+
strokeLinecap: strokeLinecap,
|
8328
|
+
shapeRendering: shapeRendering,
|
8329
|
+
background: background
|
8330
|
+
});
|
8331
|
+
}
|
8332
|
+
Hexagons.propTypes = {
|
8333
|
+
id: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string).isRequired,
|
8334
|
+
height: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number).isRequired,
|
8335
|
+
size: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
8336
|
+
fill: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
8337
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
8338
|
+
background: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
8339
|
+
stroke: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
8340
|
+
strokeWidth: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
8341
|
+
strokeDasharray: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)]),
|
8342
|
+
strokeLinecap: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['square', 'butt', 'round', 'inherit']),
|
8343
|
+
shapeRendering: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)])
|
8344
|
+
};
|
8345
|
+
|
8346
|
+
/***/ }),
|
8347
|
+
|
8157
8348
|
/***/ "./node_modules/@visx/pattern/esm/patterns/Lines.js":
|
8158
8349
|
/*!**********************************************************!*\
|
8159
8350
|
!*** ./node_modules/@visx/pattern/esm/patterns/Lines.js ***!
|
@@ -8251,6 +8442,80 @@ Lines.propTypes = {
|
|
8251
8442
|
|
8252
8443
|
/***/ }),
|
8253
8444
|
|
8445
|
+
/***/ "./node_modules/@visx/pattern/esm/patterns/Path.js":
|
8446
|
+
/*!*********************************************************!*\
|
8447
|
+
!*** ./node_modules/@visx/pattern/esm/patterns/Path.js ***!
|
8448
|
+
\*********************************************************/
|
8449
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
8450
|
+
|
8451
|
+
"use strict";
|
8452
|
+
__webpack_require__.r(__webpack_exports__);
|
8453
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
8454
|
+
/* harmony export */ "default": () => (/* binding */ Path)
|
8455
|
+
/* harmony export */ });
|
8456
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
8457
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
8458
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
8459
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
8460
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
8461
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
8462
|
+
/* harmony import */ var _Pattern__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Pattern */ "./node_modules/@visx/pattern/esm/patterns/Pattern.js");
|
8463
|
+
|
8464
|
+
|
8465
|
+
|
8466
|
+
|
8467
|
+
function Path(_ref) {
|
8468
|
+
var id = _ref.id,
|
8469
|
+
width = _ref.width,
|
8470
|
+
height = _ref.height,
|
8471
|
+
path = _ref.path,
|
8472
|
+
_ref$fill = _ref.fill,
|
8473
|
+
fill = _ref$fill === void 0 ? 'transparent' : _ref$fill,
|
8474
|
+
stroke = _ref.stroke,
|
8475
|
+
strokeWidth = _ref.strokeWidth,
|
8476
|
+
strokeDasharray = _ref.strokeDasharray,
|
8477
|
+
_ref$strokeLinecap = _ref.strokeLinecap,
|
8478
|
+
strokeLinecap = _ref$strokeLinecap === void 0 ? 'square' : _ref$strokeLinecap,
|
8479
|
+
_ref$shapeRendering = _ref.shapeRendering,
|
8480
|
+
shapeRendering = _ref$shapeRendering === void 0 ? 'auto' : _ref$shapeRendering,
|
8481
|
+
background = _ref.background,
|
8482
|
+
className = _ref.className;
|
8483
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Pattern__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
8484
|
+
id: id,
|
8485
|
+
width: width,
|
8486
|
+
height: height
|
8487
|
+
}, !!background && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("rect", {
|
8488
|
+
width: width,
|
8489
|
+
height: height,
|
8490
|
+
fill: background
|
8491
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("path", {
|
8492
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('visx-pattern-path', className),
|
8493
|
+
d: path,
|
8494
|
+
fill: fill,
|
8495
|
+
stroke: stroke,
|
8496
|
+
strokeWidth: strokeWidth,
|
8497
|
+
strokeDasharray: strokeDasharray,
|
8498
|
+
strokeLinecap: strokeLinecap,
|
8499
|
+
shapeRendering: shapeRendering
|
8500
|
+
}));
|
8501
|
+
}
|
8502
|
+
Path.propTypes = {
|
8503
|
+
id: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string).isRequired,
|
8504
|
+
width: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number).isRequired,
|
8505
|
+
height: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number).isRequired,
|
8506
|
+
path: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
8507
|
+
fill: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
8508
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
8509
|
+
background: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
8510
|
+
stroke: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
8511
|
+
strokeWidth: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
8512
|
+
strokeDasharray: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)]),
|
8513
|
+
strokeLinecap: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['square', 'butt', 'round', 'inherit']),
|
8514
|
+
shapeRendering: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)])
|
8515
|
+
};
|
8516
|
+
|
8517
|
+
/***/ }),
|
8518
|
+
|
8254
8519
|
/***/ "./node_modules/@visx/pattern/esm/patterns/Pattern.js":
|
8255
8520
|
/*!************************************************************!*\
|
8256
8521
|
!*** ./node_modules/@visx/pattern/esm/patterns/Pattern.js ***!
|
@@ -8289,6 +8554,71 @@ Pattern.propTypes = {
|
|
8289
8554
|
|
8290
8555
|
/***/ }),
|
8291
8556
|
|
8557
|
+
/***/ "./node_modules/@visx/pattern/esm/patterns/Waves.js":
|
8558
|
+
/*!**********************************************************!*\
|
8559
|
+
!*** ./node_modules/@visx/pattern/esm/patterns/Waves.js ***!
|
8560
|
+
\**********************************************************/
|
8561
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
8562
|
+
|
8563
|
+
"use strict";
|
8564
|
+
__webpack_require__.r(__webpack_exports__);
|
8565
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
8566
|
+
/* harmony export */ "default": () => (/* binding */ Waves)
|
8567
|
+
/* harmony export */ });
|
8568
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
8569
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
8570
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
8571
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
8572
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
8573
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
|
8574
|
+
/* harmony import */ var _Path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Path */ "./node_modules/@visx/pattern/esm/patterns/Path.js");
|
8575
|
+
|
8576
|
+
|
8577
|
+
|
8578
|
+
|
8579
|
+
function Waves(_ref) {
|
8580
|
+
var id = _ref.id,
|
8581
|
+
width = _ref.width,
|
8582
|
+
height = _ref.height,
|
8583
|
+
fill = _ref.fill,
|
8584
|
+
stroke = _ref.stroke,
|
8585
|
+
strokeWidth = _ref.strokeWidth,
|
8586
|
+
strokeDasharray = _ref.strokeDasharray,
|
8587
|
+
strokeLinecap = _ref.strokeLinecap,
|
8588
|
+
shapeRendering = _ref.shapeRendering,
|
8589
|
+
background = _ref.background,
|
8590
|
+
className = _ref.className;
|
8591
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Path__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
8592
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_2___default()('visx-pattern-wave', className),
|
8593
|
+
path: "M 0 " + height / 2 + " c " + height / 8 + " " + -height / 4 + " , " + height * 3 / 8 + " " + -height / 4 + " , " + height / 2 + " 0\n c " + height / 8 + " " + height / 4 + " , " + height * 3 / 8 + " " + height / 4 + " , " + height / 2 + " 0 M " + -height / 2 + " " + height / 2 + "\n c " + height / 8 + " " + height / 4 + " , " + height * 3 / 8 + " " + height / 4 + " , " + height / 2 + " 0 M " + height + " " + height / 2 + "\n c " + height / 8 + " " + -height / 4 + " , " + height * 3 / 8 + " " + -height / 4 + " , " + height / 2 + " 0",
|
8594
|
+
id: id,
|
8595
|
+
width: width,
|
8596
|
+
height: height,
|
8597
|
+
fill: fill,
|
8598
|
+
stroke: stroke,
|
8599
|
+
strokeWidth: strokeWidth,
|
8600
|
+
strokeDasharray: strokeDasharray,
|
8601
|
+
strokeLinecap: strokeLinecap,
|
8602
|
+
shapeRendering: shapeRendering,
|
8603
|
+
background: background
|
8604
|
+
});
|
8605
|
+
}
|
8606
|
+
Waves.propTypes = {
|
8607
|
+
id: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string).isRequired,
|
8608
|
+
width: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number).isRequired,
|
8609
|
+
height: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number).isRequired,
|
8610
|
+
fill: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
8611
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
8612
|
+
background: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
8613
|
+
stroke: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
8614
|
+
strokeWidth: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
8615
|
+
strokeDasharray: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)]),
|
8616
|
+
strokeLinecap: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['square', 'butt', 'round', 'inherit']),
|
8617
|
+
shapeRendering: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)])
|
8618
|
+
};
|
8619
|
+
|
8620
|
+
/***/ }),
|
8621
|
+
|
8292
8622
|
/***/ "./node_modules/@visx/point/esm/Point.js":
|
8293
8623
|
/*!***********************************************!*\
|
8294
8624
|
!*** ./node_modules/@visx/point/esm/Point.js ***!
|
@@ -29043,7 +29373,8 @@ Area.defaultProps = {
|
|
29043
29373
|
animated: true,
|
29044
29374
|
showGridRows: false,
|
29045
29375
|
showGridColumns: false,
|
29046
|
-
stacked: false
|
29376
|
+
stacked: false,
|
29377
|
+
className: 'area-class'
|
29047
29378
|
};
|
29048
29379
|
Area.propTypes = {
|
29049
29380
|
animated: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
@@ -29057,7 +29388,7 @@ Area.propTypes = {
|
|
29057
29388
|
yAccessor: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func).isRequired,
|
29058
29389
|
colorAccessor: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)
|
29059
29390
|
}).isRequired,
|
29060
|
-
datapoints: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().
|
29391
|
+
datapoints: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().any)).isRequired,
|
29061
29392
|
areaProps: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object)
|
29062
29393
|
})).isRequired,
|
29063
29394
|
xAxis: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({
|
@@ -29087,7 +29418,8 @@ Area.propTypes = {
|
|
29087
29418
|
onPointerOut: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
29088
29419
|
onPointerUp: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
29089
29420
|
onPointerDown: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
29090
|
-
pointerEventsDataKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['all', 'nearest'])
|
29421
|
+
pointerEventsDataKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['all', 'nearest']),
|
29422
|
+
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
29091
29423
|
};
|
29092
29424
|
|
29093
29425
|
/***/ }),
|
@@ -29107,6 +29439,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
29107
29439
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
29108
29440
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
|
29109
29441
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
29442
|
+
/* harmony import */ var _visx_pattern__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @visx/pattern */ "./node_modules/@visx/pattern/esm/index.js");
|
29443
|
+
/* harmony import */ var _visx_pattern__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @visx/pattern */ "./node_modules/@visx/pattern/esm/patterns/Lines.js");
|
29110
29444
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
29111
29445
|
/* harmony import */ var _bar_annotation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bar_annotation */ "./src/chart/bar_annotation.js");
|
29112
29446
|
/* harmony import */ var _chart_container__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chart_container */ "./src/chart/chart_container.js");
|
@@ -29118,6 +29452,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
29118
29452
|
|
29119
29453
|
|
29120
29454
|
/*jslint react:true*/
|
29455
|
+
var _excluded = ["id", "type"],
|
29456
|
+
_excluded2 = ["pattern"];
|
29121
29457
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
29122
29458
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
29123
29459
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
@@ -29125,12 +29461,15 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
29125
29461
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
29126
29462
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
29127
29463
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
29464
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
29465
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
29466
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
29128
29467
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
29129
29468
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
29130
29469
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
29131
29470
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
29132
29471
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
29133
|
-
|
29472
|
+
|
29134
29473
|
|
29135
29474
|
|
29136
29475
|
|
@@ -29193,6 +29532,12 @@ var BarChart = function BarChart(props) {
|
|
29193
29532
|
var Group = stacked ? BarStack : BarGroup;
|
29194
29533
|
var chartTheme = (0,_use_chart_theme__WEBPACK_IMPORTED_MODULE_8__.useChartTheme)(palette);
|
29195
29534
|
if (!data || !data.length) return null;
|
29535
|
+
var barPatterns = data.map(function (_ref, i) {
|
29536
|
+
var barProps = _ref.barProps;
|
29537
|
+
if (barProps !== null && barProps !== void 0 && barProps.pattern) return _objectSpread({
|
29538
|
+
id: "pattern_".concat(i)
|
29539
|
+
}, barProps.pattern);
|
29540
|
+
}).filter(Boolean);
|
29196
29541
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(XYChart, {
|
29197
29542
|
theme: chartTheme,
|
29198
29543
|
xScale: config.x,
|
@@ -29212,15 +29557,34 @@ var BarChart = function BarChart(props) {
|
|
29212
29557
|
columns: showGridColumns,
|
29213
29558
|
animationTrajectory: animationTrajectory,
|
29214
29559
|
numTicks: numTicks
|
29215
|
-
}),
|
29560
|
+
}), barPatterns.map(function (_ref2) {
|
29561
|
+
var id = _ref2.id,
|
29562
|
+
type = _ref2.type,
|
29563
|
+
patternProps = _objectWithoutProperties(_ref2, _excluded);
|
29564
|
+
var Pattern = _visx_pattern__WEBPACK_IMPORTED_MODULE_9__[type] || _visx_pattern__WEBPACK_IMPORTED_MODULE_10__["default"];
|
29565
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Pattern, _extends({
|
29566
|
+
key: id,
|
29567
|
+
id: id
|
29568
|
+
}, patternProps));
|
29569
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Group, null, data.map(function (_ref3, i) {
|
29570
|
+
var name = _ref3.name,
|
29571
|
+
datapoints = _ref3.datapoints,
|
29572
|
+
accessors = _ref3.accessors,
|
29573
|
+
barProps = _ref3.barProps;
|
29574
|
+
var _ref4 = barProps || {},
|
29575
|
+
pattern = _ref4.pattern,
|
29576
|
+
restProps = _objectWithoutProperties(_ref4, _excluded2);
|
29577
|
+
var colorAccessor = pattern ? function () {
|
29578
|
+
return "url(#pattern_".concat(i, ")");
|
29579
|
+
} : accessors.colorAccessor;
|
29216
29580
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(BarSeries, _extends({
|
29217
|
-
key:
|
29218
|
-
dataKey:
|
29219
|
-
data:
|
29220
|
-
xAccessor:
|
29221
|
-
yAccessor:
|
29222
|
-
colorAccessor:
|
29223
|
-
},
|
29581
|
+
key: name,
|
29582
|
+
dataKey: name,
|
29583
|
+
data: datapoints,
|
29584
|
+
xAccessor: accessors[horizontal ? 'yAccessor' : 'xAccessor'],
|
29585
|
+
yAccessor: accessors[horizontal ? 'xAccessor' : 'yAccessor'],
|
29586
|
+
colorAccessor: colorAccessor
|
29587
|
+
}, restProps));
|
29224
29588
|
})), !!showAnnotations && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_bar_annotation__WEBPACK_IMPORTED_MODULE_3__.AnnotationGroup, null, data.map(function (lineData) {
|
29225
29589
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_bar_annotation__WEBPACK_IMPORTED_MODULE_3__.Annotation, {
|
29226
29590
|
key: lineData.name,
|
@@ -29294,7 +29658,7 @@ Bar.propTypes = {
|
|
29294
29658
|
yAccessor: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func).isRequired,
|
29295
29659
|
colorAccessor: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)
|
29296
29660
|
}).isRequired,
|
29297
|
-
datapoints: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().
|
29661
|
+
datapoints: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().any)).isRequired,
|
29298
29662
|
barProps: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object)
|
29299
29663
|
})).isRequired,
|
29300
29664
|
xAxis: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({
|
@@ -29325,7 +29689,8 @@ Bar.propTypes = {
|
|
29325
29689
|
onPointerOut: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
29326
29690
|
onPointerUp: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
29327
29691
|
onPointerDown: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
29328
|
-
pointerEventsDataKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['all', 'nearest'])
|
29692
|
+
pointerEventsDataKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['all', 'nearest']),
|
29693
|
+
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
29329
29694
|
};
|
29330
29695
|
|
29331
29696
|
/***/ }),
|
@@ -29615,7 +29980,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
29615
29980
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
29616
29981
|
/* harmony export */ ChartContainer: () => (/* binding */ ChartContainer)
|
29617
29982
|
/* harmony export */ });
|
29618
|
-
/* harmony import */ var
|
29983
|
+
/* harmony import */ var _visx_responsive_lib_components_ParentSize__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @visx/responsive/lib/components/ParentSize */ "./node_modules/@visx/responsive/lib/components/ParentSize.js");
|
29619
29984
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
29620
29985
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
29621
29986
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
@@ -29624,16 +29989,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
29624
29989
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
29625
29990
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
29626
29991
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
29627
|
-
/* harmony import */ var
|
29628
|
-
/* harmony import */ var
|
29629
|
-
/* harmony import */ var
|
29630
|
-
/* harmony import */ var
|
29631
|
-
/* harmony import */ var
|
29992
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
29993
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
29994
|
+
/* harmony import */ var _error_boundary__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./error_boundary */ "./src/chart/error_boundary.js");
|
29995
|
+
/* harmony import */ var _legend__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./legend */ "./src/chart/legend.js");
|
29996
|
+
/* harmony import */ var _loading__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./loading */ "./src/chart/loading.js");
|
29997
|
+
/* harmony import */ var _no_data__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./no_data */ "./src/chart/no_data.js");
|
29632
29998
|
// LICENSE_CODE ZON
|
29633
29999
|
|
29634
30000
|
|
29635
30001
|
/*jslint react:true*/
|
29636
|
-
var _excluded = ["header", "description", "actions", "data", "palette", "loading", "Chart", "legendItem", "chartProps", "showLegend", "variant", "width", "height"];
|
30002
|
+
var _excluded = ["header", "description", "actions", "data", "palette", "loading", "Chart", "legendItem", "chartProps", "showLegend", "variant", "width", "height", "classNamePrefix"];
|
29637
30003
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
29638
30004
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
29639
30005
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
@@ -29648,6 +30014,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
29648
30014
|
|
29649
30015
|
|
29650
30016
|
|
30017
|
+
|
29651
30018
|
var ChartContainer = function ChartContainer(props) {
|
29652
30019
|
var header = props.header,
|
29653
30020
|
description = props.description,
|
@@ -29662,6 +30029,7 @@ var ChartContainer = function ChartContainer(props) {
|
|
29662
30029
|
variant = props.variant,
|
29663
30030
|
_width = props.width,
|
29664
30031
|
_height = props.height,
|
30032
|
+
classNamePrefix = props.classNamePrefix,
|
29665
30033
|
rest = _objectWithoutProperties(props, _excluded);
|
29666
30034
|
var outerWidth = _width ? Math.max(410, _width) : undefined;
|
29667
30035
|
var outerHeight = Math.max(176, _height || 0);
|
@@ -29670,12 +30038,32 @@ var ChartContainer = function ChartContainer(props) {
|
|
29670
30038
|
$variant: variant,
|
29671
30039
|
$width: outerWidth,
|
29672
30040
|
$height: outerHeight
|
29673
|
-
}), !!header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderWrapper,
|
30041
|
+
}), !!header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderWrapper, {
|
30042
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
30043
|
+
header: true
|
30044
|
+
})
|
30045
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Header, {
|
29674
30046
|
color: "gray_11_75"
|
29675
30047
|
}, header), !!description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
29676
30048
|
variant: "sm",
|
29677
30049
|
color: "gray_11_75"
|
29678
|
-
}, description)), !!actions && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ActionsWrapper,
|
30050
|
+
}, description)), !!actions && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ActionsWrapper, {
|
30051
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
30052
|
+
actions: true
|
30053
|
+
})
|
30054
|
+
}, actions), !!loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_loading__WEBPACK_IMPORTED_MODULE_9__.Loading, {
|
30055
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
30056
|
+
loader: true
|
30057
|
+
})
|
30058
|
+
}), !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, noData && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_no_data__WEBPACK_IMPORTED_MODULE_10__.NoData, {
|
30059
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
30060
|
+
placeholder: true
|
30061
|
+
})
|
30062
|
+
}), !noData && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_error_boundary__WEBPACK_IMPORTED_MODULE_7__.ErrorBoundary, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(SvgWrapper, {
|
30063
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
30064
|
+
container: true
|
30065
|
+
})
|
30066
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_visx_responsive_lib_components_ParentSize__WEBPACK_IMPORTED_MODULE_11__["default"], null, function (_ref) {
|
29679
30067
|
var width = _ref.width,
|
29680
30068
|
height = _ref.height;
|
29681
30069
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Chart, _extends({}, chartProps, {
|
@@ -29684,7 +30072,10 @@ var ChartContainer = function ChartContainer(props) {
|
|
29684
30072
|
width: width,
|
29685
30073
|
height: height
|
29686
30074
|
}));
|
29687
|
-
})), !!showLegend && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
30075
|
+
})), !!showLegend && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_legend__WEBPACK_IMPORTED_MODULE_8__.Legend, {
|
30076
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
30077
|
+
legend: true
|
30078
|
+
}),
|
29688
30079
|
data: data,
|
29689
30080
|
palette: palette,
|
29690
30081
|
item: legendItem
|
@@ -29711,9 +30102,9 @@ var ChartContainerWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___defau
|
|
29711
30102
|
displayName: "ChartContainerWrapper",
|
29712
30103
|
componentId: "sc-13xkdxv-0"
|
29713
30104
|
})(["display:flex;flex-direction:column;", " height:", ";", ""], function (props) {
|
29714
|
-
return props.$width ? "width: ".concat((0,
|
30105
|
+
return props.$width ? "width: ".concat((0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$width), ";") : undefined;
|
29715
30106
|
}, function (props) {
|
29716
|
-
return (0,
|
30107
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$height);
|
29717
30108
|
}, function (props) {
|
29718
30109
|
if (props.$variant != 'ghost') {
|
29719
30110
|
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["padding:", ";border-radius:8px;border:1px solid ", ";"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].spacing['06'], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.gray_5);
|
@@ -30116,7 +30507,8 @@ var Legend = function Legend(props) {
|
|
30116
30507
|
var data = props.data,
|
30117
30508
|
palette = props.palette,
|
30118
30509
|
_props$item = props.item,
|
30119
|
-
item = _props$item === void 0 ? DefaultItem : _props$item
|
30510
|
+
item = _props$item === void 0 ? DefaultItem : _props$item,
|
30511
|
+
className = props.className;
|
30120
30512
|
if (!data || !data.length) return null;
|
30121
30513
|
var ordinalColorScale = (0,_visx_scale__WEBPACK_IMPORTED_MODULE_8__["default"])({
|
30122
30514
|
domain: data.map(function (d) {
|
@@ -30124,7 +30516,9 @@ var Legend = function Legend(props) {
|
|
30124
30516
|
}),
|
30125
30517
|
range: palette
|
30126
30518
|
});
|
30127
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(LegendWrapper,
|
30519
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(LegendWrapper, {
|
30520
|
+
className: className
|
30521
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_visx_legend__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
30128
30522
|
scale: ordinalColorScale
|
30129
30523
|
}, function (labels) {
|
30130
30524
|
return labels.map(function (label, i) {
|
@@ -30374,7 +30768,8 @@ Line.propTypes = {
|
|
30374
30768
|
onPointerOut: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
30375
30769
|
onPointerUp: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
30376
30770
|
onPointerDown: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
30377
|
-
pointerEventsDataKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['all', 'nearest'])
|
30771
|
+
pointerEventsDataKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['all', 'nearest']),
|
30772
|
+
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
30378
30773
|
};
|
30379
30774
|
|
30380
30775
|
/***/ }),
|
@@ -40627,12 +41022,16 @@ var RowMenuCell = function RowMenuCell(_ref) {
|
|
40627
41022
|
return item && !item.hidden && item.key;
|
40628
41023
|
});
|
40629
41024
|
}, [rowActions, column, row]);
|
41025
|
+
var popoverProps = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
41026
|
+
return {
|
41027
|
+
allActions: allActions,
|
41028
|
+
row: row,
|
41029
|
+
portalTarget: document.body
|
41030
|
+
};
|
41031
|
+
}, [allActions, row]);
|
40630
41032
|
if (!allActions.length) return null;
|
40631
41033
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RowMenuCellPopover, {
|
40632
|
-
popoverProps:
|
40633
|
-
allActions: allActions,
|
40634
|
-
row: row
|
40635
|
-
}
|
41034
|
+
popoverProps: popoverProps
|
40636
41035
|
});
|
40637
41036
|
};
|
40638
41037
|
RowMenuCell.displayName = 'RowMenuCell';
|