@redsift/charts 11.7.0-muiv5 → 11.7.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;
@@ -872,7 +892,7 @@ declare const BarChart: Comp<BarChartProps, HTMLDivElement> & {
872
892
  GroupedTooltip: React$1.FC<{
873
893
  dateFormatter: (date: Date) => string;
874
894
  categories: string[];
875
- categoryDecorator?: (category: string) => string;
895
+ categoryDecorator?: ((category: string) => string) | undefined;
876
896
  categoryColor: (category: string) => string;
877
897
  datum: BarDatum;
878
898
  groupedData: ComputedBarProps[] | undefined;
@@ -925,7 +945,12 @@ declare const Dot: Comp<DotProps, SVGGElement>;
925
945
  /**
926
946
  * Component style.
927
947
  */
928
- declare const StyledDot: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, StyledDotProps, never>;
948
+ declare const StyledDot: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, Omit<DataPointProps<any>, "data" | "dataset"> & {
949
+ $clickable: boolean;
950
+ } & Omit<DotProps, "scaleX" | "scaleY"> & {
951
+ $variant: DotVariant | undefined;
952
+ $theme: _redsift_design_system.Theme;
953
+ }, never>;
929
954
 
930
955
  /**
931
956
  * 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.7.0-muiv5",
33
+ "version": "11.7.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": "e856e8e96da93e98c9fe870a76a502616d8fe65c"
97
+ "gitHead": "df42b62ddbb8844ad4eeeb151549e746f829fde4"
98
98
  }