@spscommerce/ds-react-charts 8.20.10 → 8.20.12
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/lib/bar/SpsBarChart.d.ts +1 -1
- package/lib/bar/SpsHorizontalBarChart.d.ts +1 -1
- package/lib/index.cjs.js +13 -13
- package/lib/index.es.js +4964 -5772
- package/lib/lineChart/SpsLineChart.d.ts +1 -1
- package/lib/prop-types.d.ts +4 -4
- package/lib/stackedHorizontalBarChart/SpsStackedHorizontalBarChart.d.ts +1 -1
- package/package.json +14 -14
@@ -19,7 +19,7 @@ export interface LineTooltipProps {
|
|
19
19
|
xLineName?: string;
|
20
20
|
value?: number;
|
21
21
|
}
|
22
|
-
export
|
22
|
+
export type SpsLineChartProps = React.PropsWithChildren<{
|
23
23
|
barTooltip?: (props: LineTooltipProps) => JSX.Element;
|
24
24
|
grid?: GridProps;
|
25
25
|
labels: string[];
|
package/lib/prop-types.d.ts
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
import type { MutableRefObject, HTMLProps } from "react";
|
2
2
|
import * as PropTypes from "prop-types";
|
3
|
-
export
|
3
|
+
export type Deprecated<T> = PropTypes.Requireable<T>;
|
4
4
|
export declare function deprecated<T>(type: PropTypes.Requireable<T>): Deprecated<T>;
|
5
5
|
export declare function enumValue<T>(e: any): PropTypes.Requireable<T>;
|
6
6
|
export declare function fun<T extends (...args: any[]) => any>(): PropTypes.Requireable<T>;
|
7
7
|
export declare function impl<T>(): PropTypes.Requireable<T>;
|
8
8
|
export declare function ref<T>(): PropTypes.Requireable<MutableRefObject<T>>;
|
9
|
-
export
|
9
|
+
export type ReactNodeOrRenderFn = PropTypes.ReactNodeLike | (() => PropTypes.ReactNodeLike);
|
10
10
|
export declare const nodeOrRenderFn: PropTypes.Requireable<NonNullable<ReactNodeOrRenderFn>>;
|
11
|
-
export
|
11
|
+
export type TypeDoc = Record<string, string | {
|
12
12
|
type: string;
|
13
13
|
required?: boolean;
|
14
14
|
deprecated?: boolean;
|
15
15
|
}>;
|
16
|
-
export
|
16
|
+
export type InferTS<T, K extends HTMLElement> = PropTypes.InferProps<T> & Omit<HTMLProps<K>, keyof T>;
|
17
17
|
export declare const spsGlobalPropTypes: {
|
18
18
|
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
19
19
|
className: PropTypes.Requireable<string>;
|
@@ -15,7 +15,7 @@ export interface BarTooltipProps {
|
|
15
15
|
absoluteValue: number;
|
16
16
|
relativeValue: number;
|
17
17
|
}
|
18
|
-
export
|
18
|
+
export type SpsStackedHorizontalBarChartProps = React.PropsWithChildren<{
|
19
19
|
chartData?: ChartDataProps[];
|
20
20
|
chartHeight?: number;
|
21
21
|
chartWidth?: number;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spscommerce/ds-react-charts",
|
3
3
|
"description": "SPS Design System React Chart components",
|
4
|
-
"version": "8.20.
|
4
|
+
"version": "8.20.12",
|
5
5
|
"author": "SPS Commerce",
|
6
6
|
"license": "UNLICENSED",
|
7
7
|
"repository": "https://github.com/spscommerce/woodland/tree/main/packages/@spscommerce/ds-react-charts",
|
@@ -21,15 +21,15 @@
|
|
21
21
|
},
|
22
22
|
"dependencies": {
|
23
23
|
"@juggle/resize-observer": "^3.3.1",
|
24
|
-
"@visx/axis": "^
|
24
|
+
"@visx/axis": "^3.10.1",
|
25
25
|
"@visx/glyph": "^2.1.2",
|
26
26
|
"@visx/gradient": "^2.1.0",
|
27
|
-
"@visx/grid": "^
|
27
|
+
"@visx/grid": "^3.5.0",
|
28
28
|
"@visx/group": "^2.1.0",
|
29
|
-
"@visx/legend": "^
|
30
|
-
"@visx/scale": "^
|
31
|
-
"@visx/shape": "^
|
32
|
-
"@visx/xychart": "^
|
29
|
+
"@visx/legend": "^3.10.3",
|
30
|
+
"@visx/scale": "^3.5.0",
|
31
|
+
"@visx/shape": "^3.5.0",
|
32
|
+
"@visx/xychart": "^3.11.0",
|
33
33
|
"nanoid": "^3.3.4",
|
34
34
|
"react-spring": "^8.0.27"
|
35
35
|
},
|
@@ -37,9 +37,9 @@
|
|
37
37
|
"@spscommerce/utils": "^7.0.0",
|
38
38
|
"react": "^16.9.0",
|
39
39
|
"react-dom": "^16.9.0",
|
40
|
-
"@spscommerce/ds-colors": "8.20.
|
41
|
-
"@spscommerce/ds-react": "8.20.
|
42
|
-
"@spscommerce/ds-shared": "8.20.
|
40
|
+
"@spscommerce/ds-colors": "8.20.12",
|
41
|
+
"@spscommerce/ds-react": "8.20.12",
|
42
|
+
"@spscommerce/ds-shared": "8.20.12"
|
43
43
|
},
|
44
44
|
"devDependencies": {
|
45
45
|
"@spscommerce/utils": "^7.0.0",
|
@@ -50,10 +50,10 @@
|
|
50
50
|
"prop-types": "^15.7.2",
|
51
51
|
"react": "^16.9.0",
|
52
52
|
"react-dom": "^16.9.0",
|
53
|
-
"@spscommerce/ds-colors": "8.20.
|
54
|
-
"@spscommerce/ds-react": "8.20.
|
55
|
-
"@spscommerce/ds-shared": "8.20.
|
56
|
-
"test": "8.20.
|
53
|
+
"@spscommerce/ds-colors": "8.20.12",
|
54
|
+
"@spscommerce/ds-react": "8.20.12",
|
55
|
+
"@spscommerce/ds-shared": "8.20.12",
|
56
|
+
"test": "8.20.12"
|
57
57
|
},
|
58
58
|
"scripts": {
|
59
59
|
"build": "pnpm run build:js && pnpm run build:types",
|