@entropix/data 1.0.0 → 1.0.1
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/dist/area-chart.cjs +14 -0
- package/dist/area-chart.css +144 -0
- package/dist/area-chart.d.cts +19 -0
- package/dist/area-chart.d.ts +19 -0
- package/dist/area-chart.js +5 -0
- package/dist/bar-chart.cjs +14 -0
- package/dist/bar-chart.css +144 -0
- package/dist/bar-chart.d.cts +18 -0
- package/dist/bar-chart.d.ts +18 -0
- package/dist/bar-chart.js +5 -0
- package/dist/chunk-42HKJHUY.js +96 -0
- package/dist/chunk-4WXLJDQU.js +74 -0
- package/dist/chunk-6YAOO76S.cjs +142 -0
- package/dist/chunk-CMAQ7DZD.js +135 -0
- package/dist/chunk-FQACLZYR.js +137 -0
- package/dist/chunk-GCZSXJAA.cjs +77 -0
- package/dist/chunk-K6ZRQYSZ.cjs +131 -0
- package/dist/chunk-QBI5NOHT.cjs +126 -0
- package/dist/chunk-SDCNTA7E.cjs +275 -0
- package/dist/chunk-VCSKHJLZ.js +124 -0
- package/dist/chunk-VGT2QF7D.cjs +98 -0
- package/dist/chunk-WOVSQALY.cjs +137 -0
- package/dist/chunk-X7GZD7KZ.js +129 -0
- package/dist/chunk-YINCJQN6.js +271 -0
- package/dist/data-table.cjs +20 -0
- package/dist/data-table.css +227 -0
- package/dist/data-table.d.cts +20 -0
- package/dist/data-table.d.ts +20 -0
- package/dist/data-table.js +3 -0
- package/dist/index.cjs +35 -913
- package/dist/index.d.cts +7 -75
- package/dist/index.d.ts +7 -75
- package/dist/index.js +7 -910
- package/dist/line-chart.cjs +14 -0
- package/dist/line-chart.css +144 -0
- package/dist/line-chart.d.cts +19 -0
- package/dist/line-chart.d.ts +19 -0
- package/dist/line-chart.js +5 -0
- package/dist/pie-chart.cjs +13 -0
- package/dist/pie-chart.css +144 -0
- package/dist/pie-chart.d.cts +15 -0
- package/dist/pie-chart.d.ts +15 -0
- package/dist/pie-chart.js +4 -0
- package/dist/styles/chart.css +1 -193
- package/dist/styles/data-table.css +1 -304
- package/package.json +54 -3
- package/dist/index.cjs.map +0 -1
- package/dist/index.css.map +0 -1
- package/dist/index.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,76 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export { DataTable, DataTableContext, DataTableContextValue, DataTableProps, useDataTableContext } from './data-table.cjs';
|
|
2
|
+
export { BarChart, BarChartProps } from './bar-chart.cjs';
|
|
3
|
+
export { LineChart, LineChartProps } from './line-chart.cjs';
|
|
4
|
+
export { AreaChart, AreaChartProps } from './area-chart.cjs';
|
|
5
|
+
export { PieChart, PieChartProps } from './pie-chart.cjs';
|
|
5
6
|
export { ArcSlice, AxisConfig, BandScale, BarRect, ChartData, ChartDataPoint, ChartMargins, ChartSeries, ColumnDef, LegendItem, LinePoint, LinearScale, NormalizedSeries, SortDirection, SortState, TooltipData, UseTableOptions, UseTableReturn } from '@entropix/core';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
className?: string;
|
|
9
|
-
emptyMessage?: string;
|
|
10
|
-
renderCell?: (value: unknown, row: TData, column: ColumnDef<TData>) => React__default.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
declare function DataTable<TData = unknown>(props: DataTableProps<TData>): react_jsx_runtime.JSX.Element;
|
|
13
|
-
|
|
14
|
-
interface DataTableContextValue<TData = unknown> extends UseTableReturn<TData> {
|
|
15
|
-
columns: ColumnDef<TData>[];
|
|
16
|
-
getRowKey: (row: TData, index: number) => string;
|
|
17
|
-
}
|
|
18
|
-
declare const DataTableContext: React.Context<DataTableContextValue<unknown> | null>;
|
|
19
|
-
declare function useDataTableContext<TData = unknown>(): DataTableContextValue<TData>;
|
|
20
|
-
|
|
21
|
-
interface BarChartProps {
|
|
22
|
-
data: ChartData;
|
|
23
|
-
height?: number;
|
|
24
|
-
colors?: string[];
|
|
25
|
-
stacked?: boolean;
|
|
26
|
-
showGrid?: boolean;
|
|
27
|
-
showTooltip?: boolean;
|
|
28
|
-
showLegend?: boolean;
|
|
29
|
-
xAxis?: AxisConfig;
|
|
30
|
-
yAxis?: AxisConfig;
|
|
31
|
-
className?: string;
|
|
32
|
-
}
|
|
33
|
-
declare function BarChart({ data, height, colors, stacked, showGrid, showTooltip, showLegend, xAxis, yAxis, className, }: BarChartProps): react_jsx_runtime.JSX.Element;
|
|
34
|
-
|
|
35
|
-
interface LineChartProps {
|
|
36
|
-
data: ChartData;
|
|
37
|
-
height?: number;
|
|
38
|
-
colors?: string[];
|
|
39
|
-
curved?: boolean;
|
|
40
|
-
showPoints?: boolean;
|
|
41
|
-
showGrid?: boolean;
|
|
42
|
-
showTooltip?: boolean;
|
|
43
|
-
showLegend?: boolean;
|
|
44
|
-
xAxis?: AxisConfig;
|
|
45
|
-
yAxis?: AxisConfig;
|
|
46
|
-
className?: string;
|
|
47
|
-
}
|
|
48
|
-
declare function LineChart({ data, height, colors, curved, showPoints, showGrid, showTooltip, showLegend, xAxis, yAxis, className, }: LineChartProps): react_jsx_runtime.JSX.Element;
|
|
49
|
-
|
|
50
|
-
interface AreaChartProps {
|
|
51
|
-
data: ChartData;
|
|
52
|
-
height?: number;
|
|
53
|
-
colors?: string[];
|
|
54
|
-
curved?: boolean;
|
|
55
|
-
opacity?: number;
|
|
56
|
-
showGrid?: boolean;
|
|
57
|
-
showTooltip?: boolean;
|
|
58
|
-
showLegend?: boolean;
|
|
59
|
-
xAxis?: AxisConfig;
|
|
60
|
-
yAxis?: AxisConfig;
|
|
61
|
-
className?: string;
|
|
62
|
-
}
|
|
63
|
-
declare function AreaChart({ data, height, colors, curved, opacity, showGrid, showTooltip, showLegend, xAxis, yAxis, className, }: AreaChartProps): react_jsx_runtime.JSX.Element;
|
|
64
|
-
|
|
65
|
-
interface PieChartProps {
|
|
66
|
-
data: ChartDataPoint[];
|
|
67
|
-
height?: number;
|
|
68
|
-
colors?: string[];
|
|
69
|
-
innerRadius?: number;
|
|
70
|
-
showTooltip?: boolean;
|
|
71
|
-
showLegend?: boolean;
|
|
72
|
-
className?: string;
|
|
73
|
-
}
|
|
74
|
-
declare function PieChart({ data, height, colors, innerRadius, showTooltip, showLegend, className, }: PieChartProps): react_jsx_runtime.JSX.Element;
|
|
75
|
-
|
|
76
|
-
export { AreaChart, type AreaChartProps, BarChart, type BarChartProps, DataTable, DataTableContext, type DataTableContextValue, type DataTableProps, LineChart, type LineChartProps, PieChart, type PieChartProps, useDataTableContext };
|
|
7
|
+
import 'react/jsx-runtime';
|
|
8
|
+
import 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,76 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export { DataTable, DataTableContext, DataTableContextValue, DataTableProps, useDataTableContext } from './data-table.js';
|
|
2
|
+
export { BarChart, BarChartProps } from './bar-chart.js';
|
|
3
|
+
export { LineChart, LineChartProps } from './line-chart.js';
|
|
4
|
+
export { AreaChart, AreaChartProps } from './area-chart.js';
|
|
5
|
+
export { PieChart, PieChartProps } from './pie-chart.js';
|
|
5
6
|
export { ArcSlice, AxisConfig, BandScale, BarRect, ChartData, ChartDataPoint, ChartMargins, ChartSeries, ColumnDef, LegendItem, LinePoint, LinearScale, NormalizedSeries, SortDirection, SortState, TooltipData, UseTableOptions, UseTableReturn } from '@entropix/core';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
className?: string;
|
|
9
|
-
emptyMessage?: string;
|
|
10
|
-
renderCell?: (value: unknown, row: TData, column: ColumnDef<TData>) => React__default.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
declare function DataTable<TData = unknown>(props: DataTableProps<TData>): react_jsx_runtime.JSX.Element;
|
|
13
|
-
|
|
14
|
-
interface DataTableContextValue<TData = unknown> extends UseTableReturn<TData> {
|
|
15
|
-
columns: ColumnDef<TData>[];
|
|
16
|
-
getRowKey: (row: TData, index: number) => string;
|
|
17
|
-
}
|
|
18
|
-
declare const DataTableContext: React.Context<DataTableContextValue<unknown> | null>;
|
|
19
|
-
declare function useDataTableContext<TData = unknown>(): DataTableContextValue<TData>;
|
|
20
|
-
|
|
21
|
-
interface BarChartProps {
|
|
22
|
-
data: ChartData;
|
|
23
|
-
height?: number;
|
|
24
|
-
colors?: string[];
|
|
25
|
-
stacked?: boolean;
|
|
26
|
-
showGrid?: boolean;
|
|
27
|
-
showTooltip?: boolean;
|
|
28
|
-
showLegend?: boolean;
|
|
29
|
-
xAxis?: AxisConfig;
|
|
30
|
-
yAxis?: AxisConfig;
|
|
31
|
-
className?: string;
|
|
32
|
-
}
|
|
33
|
-
declare function BarChart({ data, height, colors, stacked, showGrid, showTooltip, showLegend, xAxis, yAxis, className, }: BarChartProps): react_jsx_runtime.JSX.Element;
|
|
34
|
-
|
|
35
|
-
interface LineChartProps {
|
|
36
|
-
data: ChartData;
|
|
37
|
-
height?: number;
|
|
38
|
-
colors?: string[];
|
|
39
|
-
curved?: boolean;
|
|
40
|
-
showPoints?: boolean;
|
|
41
|
-
showGrid?: boolean;
|
|
42
|
-
showTooltip?: boolean;
|
|
43
|
-
showLegend?: boolean;
|
|
44
|
-
xAxis?: AxisConfig;
|
|
45
|
-
yAxis?: AxisConfig;
|
|
46
|
-
className?: string;
|
|
47
|
-
}
|
|
48
|
-
declare function LineChart({ data, height, colors, curved, showPoints, showGrid, showTooltip, showLegend, xAxis, yAxis, className, }: LineChartProps): react_jsx_runtime.JSX.Element;
|
|
49
|
-
|
|
50
|
-
interface AreaChartProps {
|
|
51
|
-
data: ChartData;
|
|
52
|
-
height?: number;
|
|
53
|
-
colors?: string[];
|
|
54
|
-
curved?: boolean;
|
|
55
|
-
opacity?: number;
|
|
56
|
-
showGrid?: boolean;
|
|
57
|
-
showTooltip?: boolean;
|
|
58
|
-
showLegend?: boolean;
|
|
59
|
-
xAxis?: AxisConfig;
|
|
60
|
-
yAxis?: AxisConfig;
|
|
61
|
-
className?: string;
|
|
62
|
-
}
|
|
63
|
-
declare function AreaChart({ data, height, colors, curved, opacity, showGrid, showTooltip, showLegend, xAxis, yAxis, className, }: AreaChartProps): react_jsx_runtime.JSX.Element;
|
|
64
|
-
|
|
65
|
-
interface PieChartProps {
|
|
66
|
-
data: ChartDataPoint[];
|
|
67
|
-
height?: number;
|
|
68
|
-
colors?: string[];
|
|
69
|
-
innerRadius?: number;
|
|
70
|
-
showTooltip?: boolean;
|
|
71
|
-
showLegend?: boolean;
|
|
72
|
-
className?: string;
|
|
73
|
-
}
|
|
74
|
-
declare function PieChart({ data, height, colors, innerRadius, showTooltip, showLegend, className, }: PieChartProps): react_jsx_runtime.JSX.Element;
|
|
75
|
-
|
|
76
|
-
export { AreaChart, type AreaChartProps, BarChart, type BarChartProps, DataTable, DataTableContext, type DataTableContextValue, type DataTableProps, LineChart, type LineChartProps, PieChart, type PieChartProps, useDataTableContext };
|
|
7
|
+
import 'react/jsx-runtime';
|
|
8
|
+
import 'react';
|