@redsift/charts 11.6.0-muiv5-alpha.13 → 11.6.0-muiv5
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/_internal/BarChart2.js +2 -2
- package/_internal/Legend3.js +1 -1
- package/_internal/LineChart2.js +2 -2
- package/_internal/PieChart2.js +2 -2
- package/_internal/ScatterPlot2.js +4 -7
- package/_internal/ScatterPlot2.js.map +1 -1
- package/index.d.ts +11 -36
- package/index.js +2 -2
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -112,10 +112,7 @@ declare const Axis: Comp<AxisProps, SVGGElement>;
|
|
|
112
112
|
/**
|
|
113
113
|
* Component style.
|
|
114
114
|
*/
|
|
115
|
-
declare const StyledAxis: styled_components.StyledComponent<_react_spring_web.AnimatedComponent<"g">, any,
|
|
116
|
-
$theme: Theme;
|
|
117
|
-
$color?: string | undefined;
|
|
118
|
-
}, never>;
|
|
115
|
+
declare const StyledAxis: styled_components.StyledComponent<_react_spring_web.AnimatedComponent<"g">, any, StyledAxisProps, never>;
|
|
119
116
|
|
|
120
117
|
type ChartAxesProps = {
|
|
121
118
|
/** String to Date. */
|
|
@@ -422,8 +419,8 @@ declare const successDangerScheme: {
|
|
|
422
419
|
};
|
|
423
420
|
declare const getColorScale: ({ colorTheme, domain, isEmpty, theme, }: {
|
|
424
421
|
colorTheme: ChartTheme;
|
|
425
|
-
domain?: string[]
|
|
426
|
-
isEmpty?: boolean
|
|
422
|
+
domain?: string[];
|
|
423
|
+
isEmpty?: boolean;
|
|
427
424
|
theme: Theme;
|
|
428
425
|
}) => ScaleOrdinal<string, string>;
|
|
429
426
|
|
|
@@ -486,9 +483,7 @@ declare const DataPoint: Comp<DataPointProps<any>, SVGGElement>;
|
|
|
486
483
|
/**
|
|
487
484
|
* Component style.
|
|
488
485
|
*/
|
|
489
|
-
declare const StyledDataPoint: styled_components.StyledComponent<_react_spring_web.AnimatedComponent<"g">, any,
|
|
490
|
-
$clickable: boolean;
|
|
491
|
-
}, never>;
|
|
486
|
+
declare const StyledDataPoint: styled_components.StyledComponent<_react_spring_web.AnimatedComponent<"g">, any, StyledDataPointProps, never>;
|
|
492
487
|
|
|
493
488
|
/**
|
|
494
489
|
* Component props.
|
|
@@ -509,12 +504,7 @@ declare const Arc: Comp<ArcProps, SVGGElement>;
|
|
|
509
504
|
/**
|
|
510
505
|
* Component style.
|
|
511
506
|
*/
|
|
512
|
-
declare const StyledArc: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any,
|
|
513
|
-
$clickable: boolean;
|
|
514
|
-
} & Omit<ArcProps, "createArc"> & {
|
|
515
|
-
$hasStroke: boolean | undefined;
|
|
516
|
-
$theme: Theme;
|
|
517
|
-
}, never>;
|
|
507
|
+
declare const StyledArc: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, StyledArcProps, never>;
|
|
518
508
|
|
|
519
509
|
/**
|
|
520
510
|
* Component props.
|
|
@@ -581,11 +571,7 @@ declare const Bar: Comp<BarProps, SVGGElement>;
|
|
|
581
571
|
/**
|
|
582
572
|
* Component style.
|
|
583
573
|
*/
|
|
584
|
-
declare const StyledBar: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any,
|
|
585
|
-
$clickable: boolean;
|
|
586
|
-
} & Omit<BarProps, "scale" | "scalePosition"> & {
|
|
587
|
-
$theme: Theme;
|
|
588
|
-
}, never>;
|
|
574
|
+
declare const StyledBar: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, StyledBarProps, never>;
|
|
589
575
|
|
|
590
576
|
/**
|
|
591
577
|
* Component props.
|
|
@@ -638,12 +624,8 @@ declare const ChartContainerDescription: Comp<ComponentProps<'div'>, HTMLDivElem
|
|
|
638
624
|
/**
|
|
639
625
|
* Component style.
|
|
640
626
|
*/
|
|
641
|
-
declare const StyledChartContainer: styled_components.StyledComponent<"div", any,
|
|
642
|
-
|
|
643
|
-
}, never>;
|
|
644
|
-
declare const StyledChartContainerTitle: styled_components.StyledComponent<_redsift_design_system.Comp<_redsift_design_system.FlexboxProps, HTMLDivElement>, any, Omit<ChartContainerProps, "theme"> & {
|
|
645
|
-
$theme: Theme;
|
|
646
|
-
}, never>;
|
|
627
|
+
declare const StyledChartContainer: styled_components.StyledComponent<"div", any, StyledChartContainerProps, never>;
|
|
628
|
+
declare const StyledChartContainerTitle: styled_components.StyledComponent<_redsift_design_system.Comp<_redsift_design_system.FlexboxProps, HTMLDivElement>, any, StyledChartContainerProps, never>;
|
|
647
629
|
declare const StyledChartContainerCaption: styled_components.StyledComponent<"p", any, Omit<StyledChartContainerProps, "onReset">, never>;
|
|
648
630
|
|
|
649
631
|
/**
|
|
@@ -702,9 +684,7 @@ declare const Legend: Comp<LegendProps, HTMLUListElement>;
|
|
|
702
684
|
/**
|
|
703
685
|
* Component style.
|
|
704
686
|
*/
|
|
705
|
-
declare const StyledLegend: styled_components.StyledComponent<"ul", any,
|
|
706
|
-
$width?: string | number | undefined;
|
|
707
|
-
}, never>;
|
|
687
|
+
declare const StyledLegend: styled_components.StyledComponent<"ul", any, StyledLegendProps, never>;
|
|
708
688
|
|
|
709
689
|
type FormatMessage = (key: string, variables?: {
|
|
710
690
|
[key: string]: any;
|
|
@@ -879,7 +859,7 @@ declare const BarChart: Comp<BarChartProps, HTMLDivElement> & {
|
|
|
879
859
|
GroupedTooltip: React$1.FC<{
|
|
880
860
|
dateFormatter: (date: Date) => string;
|
|
881
861
|
categories: string[];
|
|
882
|
-
categoryDecorator?: (
|
|
862
|
+
categoryDecorator?: (category: string) => string;
|
|
883
863
|
categoryColor: (category: string) => string;
|
|
884
864
|
datum: BarDatum;
|
|
885
865
|
groupedData: ComputedBarProps[] | undefined;
|
|
@@ -931,12 +911,7 @@ declare const Dot: Comp<DotProps, SVGGElement>;
|
|
|
931
911
|
/**
|
|
932
912
|
* Component style.
|
|
933
913
|
*/
|
|
934
|
-
declare const StyledDot: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any,
|
|
935
|
-
$clickable: boolean;
|
|
936
|
-
} & Omit<DotProps, "scaleX" | "scaleY"> & {
|
|
937
|
-
$variant: DotVariant | undefined;
|
|
938
|
-
$theme: _redsift_design_system.Theme;
|
|
939
|
-
}, never>;
|
|
914
|
+
declare const StyledDot: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, StyledDotProps, never>;
|
|
940
915
|
|
|
941
916
|
/**
|
|
942
917
|
* Component props.
|
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a as LabelVariant, L as LegendVariant, T as TooltipVariant } from './_internal/legend2.js';
|
|
2
2
|
export { C as ChartSize, a as ColorTheme, g as getSortingMethod, i as isValidDate, m as mergeLegends, u as useColor } from './_internal/theme.js';
|
|
3
|
+
export { e as empty, g as getColorScale, m as monochrome, s as scheme, a as successDangerScheme } from './_internal/scheme.js';
|
|
3
4
|
export { S as ScatterPlot, c as ScatterPlotLegendVariant, b as ScatterPlotVariant, d as StyledScatterPlot, e as StyledScatterPlotEmptyText, u as useBrush, a as useZoom } from './_internal/ScatterPlot2.js';
|
|
4
5
|
export { u as useFormatCategoricalData } from './_internal/useFormatCategoricalData.js';
|
|
5
|
-
export { a as LabelVariant, L as LegendVariant, T as TooltipVariant } from './_internal/legend2.js';
|
|
6
6
|
export { A as Arc, S as StyledArc } from './_internal/Arc2.js';
|
|
7
7
|
export { A as Arcs, S as StyledArcs } from './_internal/Arcs2.js';
|
|
8
8
|
export { A as Axis, b as AxisPosition, a as AxisVariant, S as StyledAxis, g as getAxisType } from './_internal/Axis2.js';
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"test": "yarn test:unit && yarn test:storybook"
|
|
31
31
|
},
|
|
32
32
|
"types": "types.d.ts",
|
|
33
|
-
"version": "11.6.0-muiv5
|
|
33
|
+
"version": "11.6.0-muiv5",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@emotion/react": "^11.10.4",
|
|
36
36
|
"@emotion/styled": "^11.10.4",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"react-dom": ">=17",
|
|
95
95
|
"styled-components": "^5.3.5"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "bb24635749fe206ca9292503ef5ed0f9431669ea"
|
|
98
98
|
}
|