@redsift/charts 11.8.1-muiv5 → 11.8.1

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.
@@ -2,15 +2,15 @@ import { _ as _objectWithoutProperties, a as _extends, b as _objectSpread2 } fro
2
2
  import React__default, { forwardRef, useRef, createContext, useContext, useEffect, useMemo } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import { useTheme, useMessageFormatter, Flexbox, Text, Number as Number$1, isComponent, RedsiftColorGreenD1, RedsiftColorRedD1, RedsiftColorNeutralBlack, useId } from '@redsift/design-system';
5
+ import { L as LegendVariant, T as TooltipVariant } from './legend2.js';
6
+ import { C as ChartSize, g as getSortingMethod, i as isValidDate, u as useColor, m as mergeLegends, a as ColorTheme } from './theme.js';
5
7
  import { scaleLinear, sum, scaleBand, scaleOrdinal, extent, scaleUtc, scalePoint, utcParse, scaleLog } from 'd3';
6
8
  import styled, { css } from 'styled-components';
7
9
  import { C as ChartContainer, a as ChartContainerTitle, b as ChartContainerDescription } from './ChartContainer2.js';
8
- import { C as ChartSize, g as getSortingMethod, i as isValidDate, u as useColor, m as mergeLegends, a as ColorTheme } from './theme.js';
9
10
  import { A as Axis, a as AxisVariant, g as getAxisType } from './Axis2.js';
10
11
  import { u as useFormatCategoricalData } from './useFormatCategoricalData.js';
11
12
  import { a as BarOrientation, B as Bar, b as BarDirection } from './Bar2.js';
12
13
  import { L as Legend } from './Legend3.js';
13
- import { L as LegendVariant, T as TooltipVariant } from './legend2.js';
14
14
  import { L as LegendItem } from './LegendItem2.js';
15
15
 
16
16
  /**
@@ -4,8 +4,8 @@ import classNames from 'classnames';
4
4
  import { sum } from 'd3';
5
5
  import styled from 'styled-components';
6
6
  import { baseContainer } from '@redsift/design-system';
7
- import { L as LegendItem } from './LegendItem2.js';
8
7
  import { L as LegendVariant } from './legend2.js';
8
+ import { L as LegendItem } from './LegendItem2.js';
9
9
 
10
10
  /**
11
11
  * Component style.
@@ -2,15 +2,15 @@ import { _ as _objectWithoutProperties, a as _extends, b as _objectSpread2 } fro
2
2
  import React__default, { forwardRef, useRef, useEffect } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import { useTheme, useMessageFormatter, Flexbox, useId } from '@redsift/design-system';
5
+ import { L as LegendVariant, T as TooltipVariant } from './legend2.js';
6
+ import { C as ChartSize, g as getSortingMethod, i as isValidDate, u as useColor, m as mergeLegends, a as ColorTheme } from './theme.js';
5
7
  import styled from 'styled-components';
6
8
  import { C as ChartContainer } from './ChartContainer2.js';
7
9
  import { scaleLinear, extent, scaleTime, scalePoint, line } from 'd3';
8
- import { C as ChartSize, g as getSortingMethod, i as isValidDate, u as useColor, m as mergeLegends, a as ColorTheme } from './theme.js';
9
10
  import { A as Axis, a as AxisVariant } from './Axis2.js';
10
11
  import { L as Line } from './Line2.js';
11
12
  import { D as Dot, a as DotVariant } from './Dot2.js';
12
13
  import { L as Legend } from './Legend3.js';
13
- import { L as LegendVariant, T as TooltipVariant } from './legend2.js';
14
14
 
15
15
  /**
16
16
  * Component's labels variant.
@@ -2,13 +2,13 @@ import { _ as _objectWithoutProperties, a as _extends, b as _objectSpread2 } fro
2
2
  import React__default, { forwardRef, useRef, useEffect } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import { Theme, useTheme, useMessageFormatter, useId } from '@redsift/design-system';
5
+ import { L as LegendVariant, T as TooltipVariant } from './legend2.js';
6
+ import { C as ChartSize, m as mergeLegends, g as getSortingMethod, a as ColorTheme } from './theme.js';
5
7
  import styled, { css } from 'styled-components';
6
8
  import { C as ChartContainer } from './ChartContainer2.js';
7
9
  import { arc, pie, sum } from 'd3';
8
10
  import { e as empty } from './scheme.js';
9
- import { C as ChartSize, m as mergeLegends, g as getSortingMethod, a as ColorTheme } from './theme.js';
10
11
  import { A as Arcs } from './Arcs2.js';
11
- import { L as LegendVariant, T as TooltipVariant } from './legend2.js';
12
12
  import { u as useFormatCategoricalData } from './useFormatCategoricalData.js';
13
13
  import { L as Legend } from './Legend3.js';
14
14
 
@@ -2,15 +2,15 @@ import { _ as _objectWithoutProperties, a as _extends, b as _objectSpread2 } fro
2
2
  import React__default, { useRef, useEffect, useState, forwardRef } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import { useTheme, useMessageFormatter, Flexbox, Button, Text, useId } from '@redsift/design-system';
5
+ import { L as LegendVariant, T as TooltipVariant } from './legend2.js';
6
+ import { C as ChartSize, g as getSortingMethod, u as useColor, m as mergeLegends, a as ColorTheme } from './theme.js';
5
7
  import styled from 'styled-components';
6
8
  import { C as ChartContainer } from './ChartContainer2.js';
7
9
  import { brush, select, zoom, interpolateRound, scaleLinear, min, extent, descending, scaleSqrt, max } from 'd3';
8
- import { C as ChartSize, g as getSortingMethod, u as useColor, m as mergeLegends, a as ColorTheme } from './theme.js';
9
10
  import { A as Axis, a as AxisVariant } from './Axis2.js';
10
11
  import { Popover } from '@redsift/popovers';
11
12
  import { D as Dot } from './Dot2.js';
12
13
  import { L as Legend } from './Legend3.js';
13
- import { L as LegendVariant, T as TooltipVariant } from './legend2.js';
14
14
 
15
15
  const getRoundedIntermediaryPoint = (selection, scaleX, scaleY) => {
16
16
  if (!selection) {
package/index.d.ts CHANGED
@@ -117,7 +117,10 @@ declare const Axis: Comp<AxisProps, SVGGElement>;
117
117
  /**
118
118
  * Component style.
119
119
  */
120
- declare const StyledAxis: styled_components.StyledComponent<_react_spring_web.AnimatedComponent<"g">, any, StyledAxisProps, never>;
120
+ declare const StyledAxis: styled_components.StyledComponent<_react_spring_web.AnimatedComponent<"g">, any, Omit<AxisProps, "size" | "scale" | "areXLabelsRotated"> & {
121
+ $theme: Theme;
122
+ $color?: string | undefined;
123
+ }, never>;
121
124
 
122
125
  type ChartAxesProps = {
123
126
  /** String to Date. */
@@ -424,8 +427,8 @@ declare const successDangerScheme: {
424
427
  };
425
428
  declare const getColorScale: ({ colorTheme, domain, isEmpty, theme, }: {
426
429
  colorTheme: ChartTheme;
427
- domain?: string[];
428
- isEmpty?: boolean;
430
+ domain?: string[] | undefined;
431
+ isEmpty?: boolean | undefined;
429
432
  theme: Theme;
430
433
  }) => ScaleOrdinal<string, string>;
431
434
 
@@ -488,7 +491,9 @@ declare const DataPoint: Comp<DataPointProps<any>, SVGGElement>;
488
491
  /**
489
492
  * Component style.
490
493
  */
491
- declare const StyledDataPoint: styled_components.StyledComponent<_react_spring_web.AnimatedComponent<"g">, any, StyledDataPointProps, never>;
494
+ declare const StyledDataPoint: styled_components.StyledComponent<_react_spring_web.AnimatedComponent<"g">, any, Omit<DataPointProps<any>, "data" | "dataset"> & {
495
+ $clickable: boolean;
496
+ }, never>;
492
497
 
493
498
  /**
494
499
  * Component props.
@@ -509,7 +514,12 @@ declare const Arc: Comp<ArcProps, SVGGElement>;
509
514
  /**
510
515
  * Component style.
511
516
  */
512
- declare const StyledArc: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, StyledArcProps, never>;
517
+ declare const StyledArc: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, Omit<DataPointProps<any>, "data" | "dataset"> & {
518
+ $clickable: boolean;
519
+ } & Omit<ArcProps, "createArc"> & {
520
+ $hasStroke: boolean | undefined;
521
+ $theme: Theme;
522
+ }, never>;
513
523
 
514
524
  /**
515
525
  * Component props.
@@ -576,7 +586,11 @@ declare const Bar: Comp<BarProps, SVGGElement>;
576
586
  /**
577
587
  * Component style.
578
588
  */
579
- declare const StyledBar: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, StyledBarProps, never>;
589
+ declare const StyledBar: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, Omit<DataPointProps<any>, "data" | "dataset"> & {
590
+ $clickable: boolean;
591
+ } & Omit<BarProps, "scale" | "scalePosition"> & {
592
+ $theme: Theme;
593
+ }, never>;
580
594
 
581
595
  /**
582
596
  * Component props.
@@ -629,8 +643,12 @@ declare const ChartContainerDescription: Comp<ComponentProps<'div'>, HTMLDivElem
629
643
  /**
630
644
  * Component style.
631
645
  */
632
- declare const StyledChartContainer: styled_components.StyledComponent<"div", any, StyledChartContainerProps, never>;
633
- declare const StyledChartContainerTitle: styled_components.StyledComponent<_redsift_design_system.Comp<_redsift_design_system.FlexboxProps, HTMLDivElement>, any, StyledChartContainerProps, never>;
646
+ declare const StyledChartContainer: styled_components.StyledComponent<"div", any, Omit<ChartContainerProps, "theme"> & {
647
+ $theme: Theme;
648
+ }, never>;
649
+ declare const StyledChartContainerTitle: styled_components.StyledComponent<_redsift_design_system.Comp<_redsift_design_system.FlexboxProps, HTMLDivElement>, any, Omit<ChartContainerProps, "theme"> & {
650
+ $theme: Theme;
651
+ }, never>;
634
652
  declare const StyledChartContainerCaption: styled_components.StyledComponent<"p", any, Omit<StyledChartContainerProps, "onReset">, never>;
635
653
 
636
654
  /**
@@ -689,7 +707,9 @@ declare const Legend: Comp<LegendProps, HTMLUListElement>;
689
707
  /**
690
708
  * Component style.
691
709
  */
692
- declare const StyledLegend: styled_components.StyledComponent<"ul", any, StyledLegendProps, never>;
710
+ declare const StyledLegend: styled_components.StyledComponent<"ul", any, Omit<LegendProps, "data"> & {
711
+ $width?: string | number | undefined;
712
+ }, never>;
693
713
 
694
714
  type FormatMessage = (key: string, variables?: {
695
715
  [key: string]: any;
@@ -882,7 +902,7 @@ declare const BarChart: Comp<BarChartProps, HTMLDivElement> & {
882
902
  GroupedTooltip: React$1.FC<{
883
903
  dateFormatter: (date: Date) => string;
884
904
  categories: string[];
885
- categoryDecorator?: (category: string) => string;
905
+ categoryDecorator?: ((category: string) => string) | undefined;
886
906
  categoryColor: (category: string) => string;
887
907
  children?: React$1.ReactNode;
888
908
  datum: BarDatum;
@@ -936,7 +956,12 @@ declare const Dot: Comp<DotProps, SVGGElement>;
936
956
  /**
937
957
  * Component style.
938
958
  */
939
- declare const StyledDot: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, StyledDotProps, never>;
959
+ declare const StyledDot: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, Omit<DataPointProps<any>, "data" | "dataset"> & {
960
+ $clickable: boolean;
961
+ } & Omit<DotProps, "scaleX" | "scaleY"> & {
962
+ $variant: DotVariant | undefined;
963
+ $theme: _redsift_design_system.Theme;
964
+ }, never>;
940
965
 
941
966
  /**
942
967
  * Component props.
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
- export { e as empty, g as getColorScale, m as monochrome, s as scheme, a as successDangerScheme } from './_internal/scheme.js';
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.8.1-muiv5",
33
+ "version": "11.8.1",
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": "04b4ec7b4ae3bbfc6f3857bc1325ffca917ebb36"
97
+ "gitHead": "00fd6d0377d339bd6bae4073a921e55f8d3e1fb9"
98
98
  }