@luminati-io/uikit 3.6.6 → 3.6.8
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.
@@ -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,13 @@ 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);
|
29541
|
+
console.log('barPatterns', barPatterns);
|
29196
29542
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(XYChart, {
|
29197
29543
|
theme: chartTheme,
|
29198
29544
|
xScale: config.x,
|
@@ -29212,15 +29558,34 @@ var BarChart = function BarChart(props) {
|
|
29212
29558
|
columns: showGridColumns,
|
29213
29559
|
animationTrajectory: animationTrajectory,
|
29214
29560
|
numTicks: numTicks
|
29215
|
-
}),
|
29561
|
+
}), barPatterns.map(function (_ref2) {
|
29562
|
+
var id = _ref2.id,
|
29563
|
+
type = _ref2.type,
|
29564
|
+
patternProps = _objectWithoutProperties(_ref2, _excluded);
|
29565
|
+
var Pattern = _visx_pattern__WEBPACK_IMPORTED_MODULE_9__[type] || _visx_pattern__WEBPACK_IMPORTED_MODULE_10__["default"];
|
29566
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Pattern, _extends({
|
29567
|
+
key: id,
|
29568
|
+
id: id
|
29569
|
+
}, patternProps));
|
29570
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Group, null, data.map(function (_ref3, i) {
|
29571
|
+
var name = _ref3.name,
|
29572
|
+
datapoints = _ref3.datapoints,
|
29573
|
+
accessors = _ref3.accessors,
|
29574
|
+
barProps = _ref3.barProps;
|
29575
|
+
var _ref4 = barProps || {},
|
29576
|
+
pattern = _ref4.pattern,
|
29577
|
+
restProps = _objectWithoutProperties(_ref4, _excluded2);
|
29578
|
+
var colorAccessor = pattern ? function () {
|
29579
|
+
return "url(#pattern_".concat(i, ")");
|
29580
|
+
} : accessors.colorAccessor;
|
29216
29581
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(BarSeries, _extends({
|
29217
|
-
key:
|
29218
|
-
dataKey:
|
29219
|
-
data:
|
29220
|
-
xAccessor:
|
29221
|
-
yAccessor:
|
29222
|
-
colorAccessor:
|
29223
|
-
},
|
29582
|
+
key: name,
|
29583
|
+
dataKey: name,
|
29584
|
+
data: datapoints,
|
29585
|
+
xAccessor: accessors[horizontal ? 'yAccessor' : 'xAccessor'],
|
29586
|
+
yAccessor: accessors[horizontal ? 'xAccessor' : 'yAccessor'],
|
29587
|
+
colorAccessor: colorAccessor
|
29588
|
+
}, restProps));
|
29224
29589
|
})), !!showAnnotations && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_bar_annotation__WEBPACK_IMPORTED_MODULE_3__.AnnotationGroup, null, data.map(function (lineData) {
|
29225
29590
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_bar_annotation__WEBPACK_IMPORTED_MODULE_3__.Annotation, {
|
29226
29591
|
key: lineData.name,
|
@@ -29294,7 +29659,7 @@ Bar.propTypes = {
|
|
29294
29659
|
yAccessor: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func).isRequired,
|
29295
29660
|
colorAccessor: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)
|
29296
29661
|
}).isRequired,
|
29297
|
-
datapoints: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().
|
29662
|
+
datapoints: prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().any)).isRequired,
|
29298
29663
|
barProps: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object)
|
29299
29664
|
})).isRequired,
|
29300
29665
|
xAxis: prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({
|
@@ -29325,7 +29690,8 @@ Bar.propTypes = {
|
|
29325
29690
|
onPointerOut: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
29326
29691
|
onPointerUp: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
29327
29692
|
onPointerDown: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
29328
|
-
pointerEventsDataKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['all', 'nearest'])
|
29693
|
+
pointerEventsDataKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['all', 'nearest']),
|
29694
|
+
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
29329
29695
|
};
|
29330
29696
|
|
29331
29697
|
/***/ }),
|
@@ -29615,7 +29981,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
29615
29981
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
29616
29982
|
/* harmony export */ ChartContainer: () => (/* binding */ ChartContainer)
|
29617
29983
|
/* harmony export */ });
|
29618
|
-
/* harmony import */ var
|
29984
|
+
/* 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
29985
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
29620
29986
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
29621
29987
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
@@ -29624,16 +29990,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
29624
29990
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
29625
29991
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
29626
29992
|
/* 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
|
29993
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
29994
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
29995
|
+
/* harmony import */ var _error_boundary__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./error_boundary */ "./src/chart/error_boundary.js");
|
29996
|
+
/* harmony import */ var _legend__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./legend */ "./src/chart/legend.js");
|
29997
|
+
/* harmony import */ var _loading__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./loading */ "./src/chart/loading.js");
|
29998
|
+
/* harmony import */ var _no_data__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./no_data */ "./src/chart/no_data.js");
|
29632
29999
|
// LICENSE_CODE ZON
|
29633
30000
|
|
29634
30001
|
|
29635
30002
|
/*jslint react:true*/
|
29636
|
-
var _excluded = ["header", "description", "actions", "data", "palette", "loading", "Chart", "legendItem", "chartProps", "showLegend", "variant", "width", "height"];
|
30003
|
+
var _excluded = ["header", "description", "actions", "data", "palette", "loading", "Chart", "legendItem", "chartProps", "showLegend", "variant", "width", "height", "classNamePrefix"];
|
29637
30004
|
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
30005
|
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
30006
|
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 +30015,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
29648
30015
|
|
29649
30016
|
|
29650
30017
|
|
30018
|
+
|
29651
30019
|
var ChartContainer = function ChartContainer(props) {
|
29652
30020
|
var header = props.header,
|
29653
30021
|
description = props.description,
|
@@ -29662,6 +30030,7 @@ var ChartContainer = function ChartContainer(props) {
|
|
29662
30030
|
variant = props.variant,
|
29663
30031
|
_width = props.width,
|
29664
30032
|
_height = props.height,
|
30033
|
+
classNamePrefix = props.classNamePrefix,
|
29665
30034
|
rest = _objectWithoutProperties(props, _excluded);
|
29666
30035
|
var outerWidth = _width ? Math.max(410, _width) : undefined;
|
29667
30036
|
var outerHeight = Math.max(176, _height || 0);
|
@@ -29670,12 +30039,32 @@ var ChartContainer = function ChartContainer(props) {
|
|
29670
30039
|
$variant: variant,
|
29671
30040
|
$width: outerWidth,
|
29672
30041
|
$height: outerHeight
|
29673
|
-
}), !!header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderWrapper,
|
30042
|
+
}), !!header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HeaderWrapper, {
|
30043
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
30044
|
+
header: true
|
30045
|
+
})
|
30046
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Header, {
|
29674
30047
|
color: "gray_11_75"
|
29675
30048
|
}, header), !!description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
29676
30049
|
variant: "sm",
|
29677
30050
|
color: "gray_11_75"
|
29678
|
-
}, description)), !!actions && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ActionsWrapper,
|
30051
|
+
}, description)), !!actions && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ActionsWrapper, {
|
30052
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
30053
|
+
actions: true
|
30054
|
+
})
|
30055
|
+
}, actions), !!loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_loading__WEBPACK_IMPORTED_MODULE_9__.Loading, {
|
30056
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
30057
|
+
loader: true
|
30058
|
+
})
|
30059
|
+
}), !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, {
|
30060
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
30061
|
+
placeholder: true
|
30062
|
+
})
|
30063
|
+
}), !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, {
|
30064
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
30065
|
+
container: true
|
30066
|
+
})
|
30067
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_visx_responsive_lib_components_ParentSize__WEBPACK_IMPORTED_MODULE_11__["default"], null, function (_ref) {
|
29679
30068
|
var width = _ref.width,
|
29680
30069
|
height = _ref.height;
|
29681
30070
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Chart, _extends({}, chartProps, {
|
@@ -29684,7 +30073,10 @@ var ChartContainer = function ChartContainer(props) {
|
|
29684
30073
|
width: width,
|
29685
30074
|
height: height
|
29686
30075
|
}));
|
29687
|
-
})), !!showLegend && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
30076
|
+
})), !!showLegend && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_legend__WEBPACK_IMPORTED_MODULE_8__.Legend, {
|
30077
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_5__.classNames)(classNamePrefix, {
|
30078
|
+
legend: true
|
30079
|
+
}),
|
29688
30080
|
data: data,
|
29689
30081
|
palette: palette,
|
29690
30082
|
item: legendItem
|
@@ -29711,9 +30103,9 @@ var ChartContainerWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___defau
|
|
29711
30103
|
displayName: "ChartContainerWrapper",
|
29712
30104
|
componentId: "sc-13xkdxv-0"
|
29713
30105
|
})(["display:flex;flex-direction:column;", " height:", ";", ""], function (props) {
|
29714
|
-
return props.$width ? "width: ".concat((0,
|
30106
|
+
return props.$width ? "width: ".concat((0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$width), ";") : undefined;
|
29715
30107
|
}, function (props) {
|
29716
|
-
return (0,
|
30108
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_6__.toPixel)(props.$height);
|
29717
30109
|
}, function (props) {
|
29718
30110
|
if (props.$variant != 'ghost') {
|
29719
30111
|
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 +30508,8 @@ var Legend = function Legend(props) {
|
|
30116
30508
|
var data = props.data,
|
30117
30509
|
palette = props.palette,
|
30118
30510
|
_props$item = props.item,
|
30119
|
-
item = _props$item === void 0 ? DefaultItem : _props$item
|
30511
|
+
item = _props$item === void 0 ? DefaultItem : _props$item,
|
30512
|
+
className = props.className;
|
30120
30513
|
if (!data || !data.length) return null;
|
30121
30514
|
var ordinalColorScale = (0,_visx_scale__WEBPACK_IMPORTED_MODULE_8__["default"])({
|
30122
30515
|
domain: data.map(function (d) {
|
@@ -30124,7 +30517,9 @@ var Legend = function Legend(props) {
|
|
30124
30517
|
}),
|
30125
30518
|
range: palette
|
30126
30519
|
});
|
30127
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(LegendWrapper,
|
30520
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(LegendWrapper, {
|
30521
|
+
className: className
|
30522
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_visx_legend__WEBPACK_IMPORTED_MODULE_9__["default"], {
|
30128
30523
|
scale: ordinalColorScale
|
30129
30524
|
}, function (labels) {
|
30130
30525
|
return labels.map(function (label, i) {
|
@@ -30374,7 +30769,8 @@ Line.propTypes = {
|
|
30374
30769
|
onPointerOut: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
30375
30770
|
onPointerUp: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
30376
30771
|
onPointerDown: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
30377
|
-
pointerEventsDataKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['all', 'nearest'])
|
30772
|
+
pointerEventsDataKey: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['all', 'nearest']),
|
30773
|
+
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
30378
30774
|
};
|
30379
30775
|
|
30380
30776
|
/***/ }),
|
@@ -35971,6 +36367,7 @@ var TextboxList = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
|
|
35971
36367
|
var addItem = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (reinit) {
|
35972
36368
|
if (!inputValue) {
|
35973
36369
|
setShowInput(false);
|
36370
|
+
setError();
|
35974
36371
|
return;
|
35975
36372
|
}
|
35976
36373
|
void _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
@@ -40626,12 +41023,16 @@ var RowMenuCell = function RowMenuCell(_ref) {
|
|
40626
41023
|
return item && !item.hidden && item.key;
|
40627
41024
|
});
|
40628
41025
|
}, [rowActions, column, row]);
|
41026
|
+
var popoverProps = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
41027
|
+
return {
|
41028
|
+
allActions: allActions,
|
41029
|
+
row: row,
|
41030
|
+
portalTarget: document.body
|
41031
|
+
};
|
41032
|
+
}, [allActions, row]);
|
40629
41033
|
if (!allActions.length) return null;
|
40630
41034
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RowMenuCellPopover, {
|
40631
|
-
popoverProps:
|
40632
|
-
allActions: allActions,
|
40633
|
-
row: row
|
40634
|
-
}
|
41035
|
+
popoverProps: popoverProps
|
40635
41036
|
});
|
40636
41037
|
};
|
40637
41038
|
RowMenuCell.displayName = 'RowMenuCell';
|