victory-pie 37.0.1-next.2 → 37.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -4
- package/dist/victory-pie.js +17 -23
- package/dist/victory-pie.min.js +1 -1
- package/es/helper-methods.d.ts +13 -13
- package/es/index.d.ts +2 -2
- package/es/slice.d.ts +28 -28
- package/es/slice.js +1 -4
- package/es/victory-pie.d.ts +116 -116
- package/lib/helper-methods.d.ts +13 -13
- package/lib/index.d.ts +2 -2
- package/lib/slice.d.ts +28 -28
- package/lib/slice.js +1 -4
- package/lib/victory-pie.d.ts +116 -116
- package/package.json +6 -3
- package/src/slice.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
# victory-pie
|
|
2
2
|
|
|
3
|
-
## 37.0.
|
|
3
|
+
## 37.0.2
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
- Ensure undefined props do not overwrite defaults ([#2852](https://github.com/FormidableLabs/victory/pull/2852))
|
|
8
|
+
|
|
9
|
+
## 37.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Fix the signature of class static functions in components ([#2840](https://github.com/FormidableLabs/victory/pull/2840))
|
|
10
14
|
|
|
11
15
|
## 37.0.0
|
|
12
16
|
|
package/dist/victory-pie.js
CHANGED
|
@@ -455,10 +455,7 @@ const defaultProps = {
|
|
|
455
455
|
shapeRendering: "auto"
|
|
456
456
|
};
|
|
457
457
|
const Slice = initialProps => {
|
|
458
|
-
const props = evaluateProps({
|
|
459
|
-
...defaultProps,
|
|
460
|
-
...initialProps
|
|
461
|
-
});
|
|
458
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
|
|
462
459
|
const defaultTransform = props.origin ? `translate(${props.origin.x}, ${props.origin.y})` : undefined;
|
|
463
460
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, {
|
|
464
461
|
...props.events,
|
|
@@ -5956,10 +5953,7 @@ const defaultProps = {
|
|
|
5956
5953
|
lineHeight: 1
|
|
5957
5954
|
};
|
|
5958
5955
|
const VictoryLabel = initialProps => {
|
|
5959
|
-
const props = evaluateProps({
|
|
5960
|
-
...defaultProps,
|
|
5961
|
-
...initialProps
|
|
5962
|
-
});
|
|
5956
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
|
|
5963
5957
|
if (props.text === null || props.text === undefined) {
|
|
5964
5958
|
return null;
|
|
5965
5959
|
}
|
|
@@ -6163,10 +6157,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6163
6157
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6164
6158
|
/* harmony export */ "LineSegment": function() { return /* binding */ LineSegment; }
|
|
6165
6159
|
/* harmony export */ });
|
|
6166
|
-
/* harmony import */ var
|
|
6167
|
-
/* harmony import */ var
|
|
6168
|
-
/* harmony import */ var
|
|
6169
|
-
/* harmony import */ var
|
|
6160
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
6161
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
6162
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
6163
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
6164
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
6165
|
+
/* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js");
|
|
6166
|
+
|
|
6170
6167
|
|
|
6171
6168
|
|
|
6172
6169
|
|
|
@@ -6179,13 +6176,13 @@ const evaluateProps = props => {
|
|
|
6179
6176
|
* `style`
|
|
6180
6177
|
* `tabIndex`
|
|
6181
6178
|
*/
|
|
6182
|
-
const ariaLabel =
|
|
6183
|
-
const desc =
|
|
6184
|
-
const id =
|
|
6185
|
-
const style =
|
|
6179
|
+
const ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
|
|
6180
|
+
const desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.desc, props);
|
|
6181
|
+
const id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
|
|
6182
|
+
const style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(Object.assign({
|
|
6186
6183
|
stroke: "black"
|
|
6187
6184
|
}, props.style), props);
|
|
6188
|
-
const tabIndex =
|
|
6185
|
+
const tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
|
|
6189
6186
|
return Object.assign({}, props, {
|
|
6190
6187
|
ariaLabel,
|
|
6191
6188
|
desc,
|
|
@@ -6195,16 +6192,13 @@ const evaluateProps = props => {
|
|
|
6195
6192
|
});
|
|
6196
6193
|
};
|
|
6197
6194
|
const defaultProps = {
|
|
6198
|
-
lineComponent: /*#__PURE__*/
|
|
6195
|
+
lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_line__WEBPACK_IMPORTED_MODULE_3__.Line, null),
|
|
6199
6196
|
role: "presentation",
|
|
6200
6197
|
shapeRendering: "auto"
|
|
6201
6198
|
};
|
|
6202
6199
|
const LineSegment = initialProps => {
|
|
6203
|
-
const props = evaluateProps({
|
|
6204
|
-
|
|
6205
|
-
...initialProps
|
|
6206
|
-
});
|
|
6207
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.lineComponent, {
|
|
6200
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
|
|
6201
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.lineComponent, {
|
|
6208
6202
|
...props.events,
|
|
6209
6203
|
"aria-label": props.ariaLabel,
|
|
6210
6204
|
style: props.style,
|