@spscommerce/ds-react-charts 5.0.0-rc1 → 5.1.0
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 +23 -19
- package/lib/bar/SpsBarChart.examples.d.ts +2 -2
- package/lib/bar/SpsHorizontalBarChart.d.ts +24 -0
- package/lib/index.cjs.js +141 -34583
- package/lib/index.d.ts +6 -3
- package/lib/index.es.js +5707 -0
- package/lib/manifest.d.ts +2 -2
- package/lib/prop-types.d.ts +23 -25
- package/lib/setup-jest.d.ts +1 -1
- package/lib/stackedHorizontalBarChart/SpsStackedHorizontalBarChart.d.ts +29 -0
- package/lib/stackedHorizontalBarChart/SpsStackedHorizontalBarChart.examples.d.ts +2 -0
- package/package.json +33 -24
- package/vite.config.js +20 -0
- package/lib/bar/SpsBarChart.test-unit.d.ts +0 -1
- package/lib/index.esm.js +0 -34555
- package/rollup.config.js +0 -24
package/lib/bar/SpsBarChart.d.ts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ChartDataObject, ChartAxis } from "@spscommerce/ds-shared";
|
|
3
|
+
import * as PropTypes from "../prop-types";
|
|
4
|
+
declare const propTypes: {
|
|
5
|
+
barFillColor1: PropTypes.Requireable<string>;
|
|
6
|
+
barFillColor2: PropTypes.Requireable<string>;
|
|
7
|
+
barFillColorHover: PropTypes.Requireable<string>;
|
|
8
|
+
chartData: PropTypes.Requireable<ChartDataObject[]>;
|
|
9
|
+
chartHeight: PropTypes.Requireable<number>;
|
|
10
|
+
chartWidth: PropTypes.Requireable<number>;
|
|
11
|
+
barSize: PropTypes.Requireable<number>;
|
|
12
|
+
yAxis: PropTypes.Requireable<ChartAxis>;
|
|
13
|
+
xAxis: PropTypes.Requireable<ChartAxis>;
|
|
14
|
+
yMaxValue: PropTypes.Requireable<number>;
|
|
15
|
+
yTickFormat: PropTypes.Requireable<(i: number) => string>;
|
|
16
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
17
|
+
className: PropTypes.Requireable<string>;
|
|
18
|
+
"data-testid": PropTypes.Requireable<string>;
|
|
19
|
+
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
20
|
+
};
|
|
21
|
+
export declare type SpsBarChartProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
22
|
+
export declare function SpsBarChart(props: SpsBarChartProps): JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DSReactExamples } from
|
|
2
|
-
export declare const SpsBarChartExamples: DSReactExamples;
|
|
1
|
+
import type { DSReactExamples } from "@spscommerce/ds-shared";
|
|
2
|
+
export declare const SpsBarChartExamples: DSReactExamples;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ChartDataObject, ChartAxis } from "@spscommerce/ds-shared";
|
|
3
|
+
import * as PropTypes from "../prop-types";
|
|
4
|
+
declare const propTypes: {
|
|
5
|
+
barFillColor1: PropTypes.Requireable<string>;
|
|
6
|
+
barFillColor2: PropTypes.Requireable<string>;
|
|
7
|
+
barFillColorHover: PropTypes.Requireable<string>;
|
|
8
|
+
chartData: PropTypes.Requireable<ChartDataObject[]>;
|
|
9
|
+
chartHeight: PropTypes.Requireable<number>;
|
|
10
|
+
chartWidth: PropTypes.Requireable<number>;
|
|
11
|
+
barSize: PropTypes.Requireable<number>;
|
|
12
|
+
yAxis: PropTypes.Requireable<ChartAxis>;
|
|
13
|
+
xAxis: PropTypes.Requireable<ChartAxis>;
|
|
14
|
+
marginLeft: PropTypes.Requireable<number>;
|
|
15
|
+
xMaxValue: PropTypes.Requireable<number>;
|
|
16
|
+
xTickFormat: PropTypes.Requireable<(i: number) => string>;
|
|
17
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
18
|
+
className: PropTypes.Requireable<string>;
|
|
19
|
+
"data-testid": PropTypes.Requireable<string>;
|
|
20
|
+
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
21
|
+
};
|
|
22
|
+
export declare type SpsHorizontalBarChartProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
23
|
+
export declare function SpsHorizontalBarChart(props: SpsHorizontalBarChartProps): JSX.Element;
|
|
24
|
+
export {};
|