@redsift/charts 11.6.0-muiv5 → 11.6.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.
Files changed (2) hide show
  1. package/index.d.ts +36 -11
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -112,7 +112,10 @@ 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, StyledAxisProps, never>;
115
+ declare const StyledAxis: styled_components.StyledComponent<_react_spring_web.AnimatedComponent<"g">, any, Omit<AxisProps, "size" | "scale" | "areXLabelsRotated"> & {
116
+ $theme: Theme;
117
+ $color?: string | undefined;
118
+ }, never>;
116
119
 
117
120
  type ChartAxesProps = {
118
121
  /** String to Date. */
@@ -419,8 +422,8 @@ declare const successDangerScheme: {
419
422
  };
420
423
  declare const getColorScale: ({ colorTheme, domain, isEmpty, theme, }: {
421
424
  colorTheme: ChartTheme;
422
- domain?: string[];
423
- isEmpty?: boolean;
425
+ domain?: string[] | undefined;
426
+ isEmpty?: boolean | undefined;
424
427
  theme: Theme;
425
428
  }) => ScaleOrdinal<string, string>;
426
429
 
@@ -483,7 +486,9 @@ declare const DataPoint: Comp<DataPointProps<any>, SVGGElement>;
483
486
  /**
484
487
  * Component style.
485
488
  */
486
- declare const StyledDataPoint: styled_components.StyledComponent<_react_spring_web.AnimatedComponent<"g">, any, StyledDataPointProps, never>;
489
+ declare const StyledDataPoint: styled_components.StyledComponent<_react_spring_web.AnimatedComponent<"g">, any, Omit<DataPointProps<any>, "data" | "dataset"> & {
490
+ $clickable: boolean;
491
+ }, never>;
487
492
 
488
493
  /**
489
494
  * Component props.
@@ -504,7 +509,12 @@ declare const Arc: Comp<ArcProps, SVGGElement>;
504
509
  /**
505
510
  * Component style.
506
511
  */
507
- declare const StyledArc: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, StyledArcProps, never>;
512
+ declare const StyledArc: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, Omit<DataPointProps<any>, "data" | "dataset"> & {
513
+ $clickable: boolean;
514
+ } & Omit<ArcProps, "createArc"> & {
515
+ $hasStroke: boolean | undefined;
516
+ $theme: Theme;
517
+ }, never>;
508
518
 
509
519
  /**
510
520
  * Component props.
@@ -571,7 +581,11 @@ declare const Bar: Comp<BarProps, SVGGElement>;
571
581
  /**
572
582
  * Component style.
573
583
  */
574
- declare const StyledBar: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, StyledBarProps, never>;
584
+ declare const StyledBar: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, Omit<DataPointProps<any>, "data" | "dataset"> & {
585
+ $clickable: boolean;
586
+ } & Omit<BarProps, "scale" | "scalePosition"> & {
587
+ $theme: Theme;
588
+ }, never>;
575
589
 
576
590
  /**
577
591
  * Component props.
@@ -624,8 +638,12 @@ declare const ChartContainerDescription: Comp<ComponentProps<'div'>, HTMLDivElem
624
638
  /**
625
639
  * Component style.
626
640
  */
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>;
641
+ declare const StyledChartContainer: styled_components.StyledComponent<"div", any, Omit<ChartContainerProps, "theme"> & {
642
+ $theme: Theme;
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>;
629
647
  declare const StyledChartContainerCaption: styled_components.StyledComponent<"p", any, Omit<StyledChartContainerProps, "onReset">, never>;
630
648
 
631
649
  /**
@@ -684,7 +702,9 @@ declare const Legend: Comp<LegendProps, HTMLUListElement>;
684
702
  /**
685
703
  * Component style.
686
704
  */
687
- declare const StyledLegend: styled_components.StyledComponent<"ul", any, StyledLegendProps, never>;
705
+ declare const StyledLegend: styled_components.StyledComponent<"ul", any, Omit<LegendProps, "data"> & {
706
+ $width?: string | number | undefined;
707
+ }, never>;
688
708
 
689
709
  type FormatMessage = (key: string, variables?: {
690
710
  [key: string]: any;
@@ -859,7 +879,7 @@ declare const BarChart: Comp<BarChartProps, HTMLDivElement> & {
859
879
  GroupedTooltip: React$1.FC<{
860
880
  dateFormatter: (date: Date) => string;
861
881
  categories: string[];
862
- categoryDecorator?: (category: string) => string;
882
+ categoryDecorator?: ((category: string) => string) | undefined;
863
883
  categoryColor: (category: string) => string;
864
884
  datum: BarDatum;
865
885
  groupedData: ComputedBarProps[] | undefined;
@@ -911,7 +931,12 @@ declare const Dot: Comp<DotProps, SVGGElement>;
911
931
  /**
912
932
  * Component style.
913
933
  */
914
- declare const StyledDot: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, StyledDotProps, never>;
934
+ declare const StyledDot: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, Omit<DataPointProps<any>, "data" | "dataset"> & {
935
+ $clickable: boolean;
936
+ } & Omit<DotProps, "scaleX" | "scaleY"> & {
937
+ $variant: DotVariant | undefined;
938
+ $theme: _redsift_design_system.Theme;
939
+ }, never>;
915
940
 
916
941
  /**
917
942
  * Component props.
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",
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": "bb24635749fe206ca9292503ef5ed0f9431669ea"
97
+ "gitHead": "97881c569fe6cb959f4cf6db32155c0e97265c67"
98
98
  }