@connectif/ui-components 2.0.0 → 2.0.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.
@@ -1,5 +1,6 @@
1
1
  import './EchartsConfig';
2
2
  import ReactEChartsCore from 'echarts-for-react/lib/core';
3
+ import { sizes } from '../../theme/Typography';
3
4
  import { IncrementLabelType } from '../../propTypes/IncrementLabel';
4
5
  import { ChartTooltipEntryFormatter } from '../../utils/ChartUtils';
5
6
  type YAxisLabelFormatter = (value: number) => string;
@@ -13,6 +14,18 @@ export type BarChartProps = {
13
14
  * The categories to display on the x axis.
14
15
  */
15
16
  categories: string[];
17
+ /**
18
+ * labels color
19
+ */
20
+ labelColor?: string;
21
+ /**
22
+ * font size to X labels
23
+ */
24
+ gridLabelSize?: keyof typeof sizes;
25
+ /**
26
+ * Grid lines color
27
+ */
28
+ gridLineColor?: string;
16
29
  /**
17
30
  * Optional callback to be called when the chart is clicked.
18
31
  */
@@ -49,6 +62,10 @@ export type BarChartProps = {
49
62
  * The text to use for this item as name in tooltip.
50
63
  */
51
64
  comparisonTooltipName?: string;
65
+ /**
66
+ * Set to show background color in bar when not is comparison
67
+ */
68
+ showBackgroundColorBar?: boolean;
52
69
  data: {
53
70
  /**
54
71
  * The value to display in the chart for this serie item.
@@ -80,5 +97,5 @@ export type BarChartProps = {
80
97
  /**
81
98
  * A bar chart component to display numeric data grouped by categories and series.
82
99
  */
83
- declare const BarChart: ({ style, isLoading, series, categories, yAxisLabelFormatter, tooltipEntryFormatter, onClick }: BarChartProps) => import("react/jsx-runtime").JSX.Element;
100
+ declare const BarChart: ({ style, isLoading, series, categories, labelColor, gridLineColor, gridLabelSize, yAxisLabelFormatter, tooltipEntryFormatter, onClick }: BarChartProps) => import("react/jsx-runtime").JSX.Element;
84
101
  export default BarChart;
@@ -59,6 +59,24 @@ export type LineChartProps = CategorizedChartProps & {
59
59
  * The yAxis for this serie
60
60
  */
61
61
  yAxisIndex: number;
62
+ /**
63
+ * The area color. With color will be a solid color. With startColor and endColor will be gradient color.
64
+ */
65
+ areaColor?: {
66
+ color: string;
67
+ startColor?: never;
68
+ endColor?: never;
69
+ } | {
70
+ color?: never;
71
+ startColor: {
72
+ offset: number;
73
+ color: string;
74
+ };
75
+ endColor: {
76
+ offset: number;
77
+ color: string;
78
+ };
79
+ };
62
80
  }[];
63
81
  /**
64
82
  * Option to disable the display of series names.
@@ -88,10 +106,14 @@ export type LineChartProps = CategorizedChartProps & {
88
106
  * Option to set the position of the Y axis when there is only one.
89
107
  */
90
108
  yAxisPosition?: 'left' | 'right';
109
+ /**
110
+ * Margin to add between labels and x axis. It will be in px
111
+ */
112
+ xAxisMargin?: number;
91
113
  };
92
114
  /**
93
115
  * A line chart component to display numeric data grouped by categories and series.
94
116
  * Commonly, categories use to be sorted dates.
95
117
  */
96
- declare const LineChart: ({ style, isLoading, series, categories, yAxisLabelFormatter, ySecondaryAxisLabelFormatter, onClick, disableSeriesNames, disableAxes, disableSplitLine, fullGrid, axisFontSize, axisFontColor, yAxisPosition }: LineChartProps) => import("react/jsx-runtime").JSX.Element;
118
+ declare const LineChart: ({ style, isLoading, series, categories, yAxisLabelFormatter, ySecondaryAxisLabelFormatter, onClick, disableSeriesNames, disableAxes, disableSplitLine, fullGrid, axisFontSize, axisFontColor, yAxisPosition, xAxisMargin }: LineChartProps) => import("react/jsx-runtime").JSX.Element;
97
119
  export default LineChart;
@@ -8,10 +8,14 @@ export type ChatProps = React.PropsWithChildren<{
8
8
  * Background color
9
9
  */
10
10
  backgroundColor?: string;
11
+ /**
12
+ * Class name to move scroll on new message. If undefined, scroll to bottom.
13
+ */
14
+ scrollToLastClassName?: string;
15
+ /**
16
+ * Scrollbar color
17
+ */
18
+ scrollbarColor?: string;
11
19
  }>;
12
- /**
13
- * Shows a list of chat message, in a vertical layout.
14
- *
15
- */
16
- declare const Chat: ({ children, header, backgroundColor }: ChatProps) => import("react/jsx-runtime").JSX.Element;
20
+ declare const Chat: ({ children, header, backgroundColor, scrollToLastClassName, scrollbarColor }: ChatProps) => import("react/jsx-runtime").JSX.Element;
17
21
  export default Chat;
@@ -1953,3 +1953,4 @@ export declare const icons: {
1953
1953
  'zoom-out': string;
1954
1954
  'database-export': string;
1955
1955
  };
1956
+ export declare const iconIds: string[];
@@ -1,2 +1,4 @@
1
1
  export { default as Icon, iconSizes } from './Icon';
2
2
  export type { IconProps, IconId } from './Icon';
3
+ export { iconIds } from './icons';
4
+ export { default as StackedIcons, StackedIconsProps } from './StackedIcons';
@@ -46,7 +46,7 @@ export type { PhoneFieldProps } from './PhoneField';
46
46
  export type { NumberFieldProps } from './NumberField';
47
47
  export type { DatePickerProps } from './DatePicker';
48
48
  export type { InputLabelProps } from './InputLabel';
49
- export type { SelectPopoverProps } from './SelectPopover';
49
+ export type { SelectPopoverProps, SelectableItem } from './SelectPopover';
50
50
  export type { CheckboxProps } from './Checkbox';
51
51
  export type { RadioProps } from './Radio';
52
52
  export type { PageSelectorProps } from './PageSelector';