@apia/charts 0.2.4 → 0.3.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/dist/index.d.ts +10 -5
- package/dist/index.js +379 -131
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _apia_util from '@apia/util';
|
|
2
|
-
import React$1 from 'react';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
3
4
|
|
|
4
5
|
type TApiaChartCoordinate = {
|
|
5
6
|
/**
|
|
@@ -180,17 +181,21 @@ type TChartRendererProps = {
|
|
|
180
181
|
allowZoom?: boolean;
|
|
181
182
|
};
|
|
182
183
|
|
|
183
|
-
declare const ChartRenderer:
|
|
184
|
+
declare const ChartRenderer: React__default.FC<{
|
|
184
185
|
currentChart: TApiaChartDefinition;
|
|
185
186
|
chartConfig?: Partial<Omit<TApiaChartDefinition, "columns">> | undefined;
|
|
186
187
|
chartProps?: Partial<TChartRendererProps> | undefined;
|
|
187
188
|
allowScaleChange?: boolean | undefined;
|
|
188
189
|
chartId: string;
|
|
189
190
|
allowZoom?: boolean | undefined;
|
|
190
|
-
} &
|
|
191
|
+
} & React__default.RefAttributes<HTMLElement> & {
|
|
191
192
|
id: _apia_util.TId;
|
|
192
193
|
}>;
|
|
193
194
|
|
|
195
|
+
declare const EmptyGrid: ({ width }: {
|
|
196
|
+
width?: number | undefined;
|
|
197
|
+
}) => React$1.JSX.Element;
|
|
198
|
+
|
|
194
199
|
type TWidgetZone = {
|
|
195
200
|
minimum: number;
|
|
196
201
|
maximum: number;
|
|
@@ -232,6 +237,6 @@ type TWidgetData = {
|
|
|
232
237
|
|
|
233
238
|
declare const WidgetContainer: ({ data }: {
|
|
234
239
|
data: TWidgetData;
|
|
235
|
-
}) =>
|
|
240
|
+
}) => React__default.JSX.Element;
|
|
236
241
|
|
|
237
|
-
export { ChartRenderer, TApiaChartColumn, TApiaChartDefinition, TWidgetData, WidgetContainer };
|
|
242
|
+
export { ChartRenderer, EmptyGrid, TApiaChartColumn, TApiaChartDefinition, TWidgetData, WidgetContainer };
|