@sproutsocial/seeds-react-data-viz 0.2.0 → 0.2.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/esm/index.js +514 -5078
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +30 -3
- package/dist/index.d.ts +30 -3
- package/dist/index.js +570 -5103
- package/dist/index.js.map +1 -1
- package/package.json +22 -13
- package/dist/esm/index.css +0 -1006
- package/dist/esm/index.css.map +0 -1
- package/dist/index.css +0 -1006
- package/dist/index.css.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { TimeTicksInfoObject, AxisLabelsFormatterContextObject, Options, SeriesSplineOptions, SeriesAreasplineOptions,
|
|
3
|
+
import { TimeTicksInfoObject, AxisLabelsFormatterContextObject, Chart, TooltipFormatterContextObject, Options, SeriesSplineOptions, SeriesAreasplineOptions, AxisTickPositionsArray } from 'highcharts';
|
|
4
4
|
import * as _sproutsocial_seeds_react_box from '@sproutsocial/seeds-react-box';
|
|
5
5
|
import { TypeBoxProps } from '@sproutsocial/seeds-react-box';
|
|
6
|
-
import { Table } from '@sproutsocial/
|
|
6
|
+
import { Table } from '@sproutsocial/seeds-react-table';
|
|
7
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
8
|
import * as styled_components from 'styled-components';
|
|
9
9
|
|
|
@@ -152,6 +152,12 @@ type TypeChartTooltipHeaderProps = {
|
|
|
152
152
|
};
|
|
153
153
|
declare const ChartTooltipHeader: react.NamedExoticComponent<TypeChartTooltipHeaderProps>;
|
|
154
154
|
|
|
155
|
+
declare const generateChartTooltipPortalId: (chartId: number) => string;
|
|
156
|
+
declare const ChartTooltipPortal: react.NamedExoticComponent<Readonly<{
|
|
157
|
+
chart: Chart;
|
|
158
|
+
renderContent: (context: TooltipFormatterContextObject) => ReactNode;
|
|
159
|
+
}>>;
|
|
160
|
+
|
|
155
161
|
type TypeChartTooltipTableProps = {
|
|
156
162
|
rows: TypeChartTableProps["rows"];
|
|
157
163
|
};
|
|
@@ -336,4 +342,25 @@ type TypeYAxisLabelFormatterProps = Readonly<{
|
|
|
336
342
|
}>;
|
|
337
343
|
declare const yAxisLabelFormatter: ({ numberLocale, textLocale, tickPositions, value, currency, numberFormat, }: TypeYAxisLabelFormatterProps) => string;
|
|
338
344
|
|
|
339
|
-
|
|
345
|
+
declare const GlobalChartStyleOverrides: styled_components.GlobalStyleComponent<{}, styled_components.DefaultTheme>;
|
|
346
|
+
declare const baseChartStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<Readonly<{
|
|
347
|
+
$colors: ReadonlyArray<TypeChartStyleColor>;
|
|
348
|
+
}>, any>>;
|
|
349
|
+
declare const timeSeriesChartStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<Readonly<{
|
|
350
|
+
$colors: ReadonlyArray<TypeChartStyleColor>;
|
|
351
|
+
$hasOnClick: TypeChartStyleHasOnClick;
|
|
352
|
+
}>, any>>;
|
|
353
|
+
declare const lineChartStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<Readonly<{
|
|
354
|
+
$colors: ReadonlyArray<TypeChartStyleColor>;
|
|
355
|
+
$patterns: ReadonlyArray<TypeChartStylePattern>;
|
|
356
|
+
$hasOnClick: TypeChartStyleHasOnClick;
|
|
357
|
+
}>, any>>;
|
|
358
|
+
declare const areaChartStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<Readonly<{
|
|
359
|
+
$colors: ReadonlyArray<TypeChartStyleColor>;
|
|
360
|
+
$hasOnClick: TypeChartStyleHasOnClick;
|
|
361
|
+
}>, any>>;
|
|
362
|
+
declare const donutChartStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<Readonly<{
|
|
363
|
+
$colors: ReadonlyArray<TypeChartStyleColor>;
|
|
364
|
+
}>, any>>;
|
|
365
|
+
|
|
366
|
+
export { AreaChart, ChartLegend, ChartLegendLabel, ChartTable, ChartTooltip, ChartTooltipFooter, ChartTooltipHeader, ChartTooltipPortal, ChartTooltipTable, ChartTooltipTitle, ColorBox, DONUT_CHART_HALO_SIZE, DONUT_CHART_HEIGHT, DONUT_CHART_WIDTH, DatavizColorBox, DonutChart, DonutChartLegendTable, type ExtendedAxisLabelsFormatterContextObject, type ExtendedTimeTicksInfoObject, GlobalChartStyleOverrides, LineChart, NetworkColorBox, TIME_SERIES_CHART_HEIGHT, type TypeAreaChartProps, type TypeChartDataPoint, type TypeChartDataStyles, type TypeChartLegendLabelProps, type TypeChartLegendProps, type TypeChartNumberFormat, type TypeChartStyleColor, type TypeChartStyleHasOnClick, type TypeChartStylePattern, type TypeChartTableProps, type TypeChartTimeFormat, type TypeChartTooltipDateFormatter, type TypeChartTooltipProps, type TypeChartTooltipTableProps, type TypeChartYAxisLabelFormatter, type TypeColorBoxProps, type TypeDatavizColorBox, type TypeDatavizColorBoxProps, type TypeDonutChartLegendTableProps, type TypeDonutChartProps, type TypeDonutChartTooltipProps, type TypeLegendLabel, type TypeLineChartProps, areaChartOptions, areaChartStyles, baseChartOptions, baseChartStyles, donutChartOptions, donutChartStyles, generateChartTooltipPortalId, getDatavizColor, getDatavizColorWithAlpha, getDatavizOpacity, lineChartOptions, lineChartStyles, timeSeriesChartStyles, transformDataToSeries, transformTimeSeriesTooltipData, xAxisLabelFormatter, yAxisLabelFormatter };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { TimeTicksInfoObject, AxisLabelsFormatterContextObject, Options, SeriesSplineOptions, SeriesAreasplineOptions,
|
|
3
|
+
import { TimeTicksInfoObject, AxisLabelsFormatterContextObject, Chart, TooltipFormatterContextObject, Options, SeriesSplineOptions, SeriesAreasplineOptions, AxisTickPositionsArray } from 'highcharts';
|
|
4
4
|
import * as _sproutsocial_seeds_react_box from '@sproutsocial/seeds-react-box';
|
|
5
5
|
import { TypeBoxProps } from '@sproutsocial/seeds-react-box';
|
|
6
|
-
import { Table } from '@sproutsocial/
|
|
6
|
+
import { Table } from '@sproutsocial/seeds-react-table';
|
|
7
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
8
|
import * as styled_components from 'styled-components';
|
|
9
9
|
|
|
@@ -152,6 +152,12 @@ type TypeChartTooltipHeaderProps = {
|
|
|
152
152
|
};
|
|
153
153
|
declare const ChartTooltipHeader: react.NamedExoticComponent<TypeChartTooltipHeaderProps>;
|
|
154
154
|
|
|
155
|
+
declare const generateChartTooltipPortalId: (chartId: number) => string;
|
|
156
|
+
declare const ChartTooltipPortal: react.NamedExoticComponent<Readonly<{
|
|
157
|
+
chart: Chart;
|
|
158
|
+
renderContent: (context: TooltipFormatterContextObject) => ReactNode;
|
|
159
|
+
}>>;
|
|
160
|
+
|
|
155
161
|
type TypeChartTooltipTableProps = {
|
|
156
162
|
rows: TypeChartTableProps["rows"];
|
|
157
163
|
};
|
|
@@ -336,4 +342,25 @@ type TypeYAxisLabelFormatterProps = Readonly<{
|
|
|
336
342
|
}>;
|
|
337
343
|
declare const yAxisLabelFormatter: ({ numberLocale, textLocale, tickPositions, value, currency, numberFormat, }: TypeYAxisLabelFormatterProps) => string;
|
|
338
344
|
|
|
339
|
-
|
|
345
|
+
declare const GlobalChartStyleOverrides: styled_components.GlobalStyleComponent<{}, styled_components.DefaultTheme>;
|
|
346
|
+
declare const baseChartStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<Readonly<{
|
|
347
|
+
$colors: ReadonlyArray<TypeChartStyleColor>;
|
|
348
|
+
}>, any>>;
|
|
349
|
+
declare const timeSeriesChartStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<Readonly<{
|
|
350
|
+
$colors: ReadonlyArray<TypeChartStyleColor>;
|
|
351
|
+
$hasOnClick: TypeChartStyleHasOnClick;
|
|
352
|
+
}>, any>>;
|
|
353
|
+
declare const lineChartStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<Readonly<{
|
|
354
|
+
$colors: ReadonlyArray<TypeChartStyleColor>;
|
|
355
|
+
$patterns: ReadonlyArray<TypeChartStylePattern>;
|
|
356
|
+
$hasOnClick: TypeChartStyleHasOnClick;
|
|
357
|
+
}>, any>>;
|
|
358
|
+
declare const areaChartStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<Readonly<{
|
|
359
|
+
$colors: ReadonlyArray<TypeChartStyleColor>;
|
|
360
|
+
$hasOnClick: TypeChartStyleHasOnClick;
|
|
361
|
+
}>, any>>;
|
|
362
|
+
declare const donutChartStyles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<Readonly<{
|
|
363
|
+
$colors: ReadonlyArray<TypeChartStyleColor>;
|
|
364
|
+
}>, any>>;
|
|
365
|
+
|
|
366
|
+
export { AreaChart, ChartLegend, ChartLegendLabel, ChartTable, ChartTooltip, ChartTooltipFooter, ChartTooltipHeader, ChartTooltipPortal, ChartTooltipTable, ChartTooltipTitle, ColorBox, DONUT_CHART_HALO_SIZE, DONUT_CHART_HEIGHT, DONUT_CHART_WIDTH, DatavizColorBox, DonutChart, DonutChartLegendTable, type ExtendedAxisLabelsFormatterContextObject, type ExtendedTimeTicksInfoObject, GlobalChartStyleOverrides, LineChart, NetworkColorBox, TIME_SERIES_CHART_HEIGHT, type TypeAreaChartProps, type TypeChartDataPoint, type TypeChartDataStyles, type TypeChartLegendLabelProps, type TypeChartLegendProps, type TypeChartNumberFormat, type TypeChartStyleColor, type TypeChartStyleHasOnClick, type TypeChartStylePattern, type TypeChartTableProps, type TypeChartTimeFormat, type TypeChartTooltipDateFormatter, type TypeChartTooltipProps, type TypeChartTooltipTableProps, type TypeChartYAxisLabelFormatter, type TypeColorBoxProps, type TypeDatavizColorBox, type TypeDatavizColorBoxProps, type TypeDonutChartLegendTableProps, type TypeDonutChartProps, type TypeDonutChartTooltipProps, type TypeLegendLabel, type TypeLineChartProps, areaChartOptions, areaChartStyles, baseChartOptions, baseChartStyles, donutChartOptions, donutChartStyles, generateChartTooltipPortalId, getDatavizColor, getDatavizColorWithAlpha, getDatavizOpacity, lineChartOptions, lineChartStyles, timeSeriesChartStyles, transformDataToSeries, transformTimeSeriesTooltipData, xAxisLabelFormatter, yAxisLabelFormatter };
|