@connectif/ui-components 9.0.7 → 9.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## [9.1.1] - 2026-07-14
4
+
5
+ ### Added
6
+
7
+ - `dateCalendar`: fake date for today in date calendar story.
8
+ - `BarChart` added coverage for bar color assignment with fallback to the series color.
9
+
10
+ ### Changed
11
+
12
+ - `Autocomplete`: Now click away when dropdown menu is open does not close dialogs.
13
+ - `BarChart`: added optional `barBorderRadius` prop and support for per-item `color` / `comparisonColor` overrides in series data.
14
+
15
+ ## [9.1.0] - 2026-07-09
16
+
17
+ ### Added
18
+
19
+ - Added `DateCalendar` input component with month navigation, selectable day, optional min/max bounds, and optional highlighted date.
20
+
21
+ ### Changed
22
+
23
+ - Upgraded to TypeScript 6.
24
+ - `CalendarMonth`: added optional `todayForegroundColor` and `hideMonthLabel` props and switched internal highlight color usage to theme-aware values.
25
+ - `DaysOfWeekRow`: added optional `transparentBackground` and `dayLabelFormat` props to support reusable day-label rendering
26
+
3
27
  ## [9.0.7] - 2026-06-24
4
28
 
5
29
  ### Fixed
@@ -37,7 +37,7 @@ declare const ButtonWithActions: React.ForwardRefExoticComponent<Pick<MuiButtonP
37
37
  size?: "M" | "L" | "XL";
38
38
  component?: "label" | "button";
39
39
  text: string;
40
- iconId?: import("../icon").IconId;
40
+ iconId?: import("..").IconId;
41
41
  icon?: React.ReactNode;
42
42
  iconSize?: import("../icon/Icon").IconSize;
43
43
  iconEnd?: boolean;
@@ -27,6 +27,10 @@ export type BarChartProps = {
27
27
  * Grid lines color
28
28
  */
29
29
  gridLineColor?: string;
30
+ /**
31
+ * Border radius applied to bars.
32
+ */
33
+ barBorderRadius?: number;
30
34
  /**
31
35
  * Optional callback to be called when the chart is clicked.
32
36
  */
@@ -76,6 +80,10 @@ export type BarChartProps = {
76
80
  * The value to display in the chart for this serie item.
77
81
  */
78
82
  value: number;
83
+ /**
84
+ * The color to use for this specific bar.
85
+ */
86
+ color?: string;
79
87
  /**
80
88
  * The text shown in label to represent the increment value of this item.
81
89
  */
@@ -92,6 +100,10 @@ export type BarChartProps = {
92
100
  * The comparison value to display in the chart for this serie item.
93
101
  */
94
102
  comparisonValue?: number;
103
+ /**
104
+ * The comparison color to use for this specific bar.
105
+ */
106
+ comparisonColor?: string;
95
107
  /**
96
108
  * The text to use for this item as value in tooltip.
97
109
  */
@@ -102,5 +114,5 @@ export type BarChartProps = {
102
114
  /**
103
115
  * A bar chart component to display numeric data grouped by categories and series.
104
116
  */
105
- declare const BarChart: ({ style, isLoading, series, categories, labelColor, gridLineColor, gridLabelSize, chartRef, yAxisLabelFormatter, tooltipEntryFormatter, onClick }: BarChartProps) => import("react/jsx-runtime").JSX.Element;
117
+ declare const BarChart: ({ style, isLoading, series, categories, labelColor, gridLineColor, barBorderRadius, gridLabelSize, chartRef, yAxisLabelFormatter, tooltipEntryFormatter, onClick }: BarChartProps) => import("react/jsx-runtime").JSX.Element;
106
118
  export default BarChart;
@@ -14,6 +14,8 @@ export type CalendarMonthProps = {
14
14
  onSelect?: (day: number) => void;
15
15
  allowKeyboardNavigation?: boolean;
16
16
  focusedDate?: SimpleDate | null;
17
+ todayForegroundColor?: string;
18
+ hideMonthLabel?: boolean;
17
19
  };
18
- declare const CalendarMonth: ({ minDate, maxDate, year, month, selections, intersectionColor, onSelect, allowKeyboardNavigation, focusedDate }: CalendarMonthProps) => import("react/jsx-runtime").JSX.Element;
20
+ declare const CalendarMonth: ({ minDate, maxDate, year, month, selections, intersectionColor, onSelect, allowKeyboardNavigation, focusedDate, todayForegroundColor, hideMonthLabel }: CalendarMonthProps) => import("react/jsx-runtime").JSX.Element;
19
21
  export default CalendarMonth;
@@ -0,0 +1,8 @@
1
+ export type DateCalendarProps = {
2
+ value?: Date | null;
3
+ onSelect?: (date: Date | null) => void;
4
+ minDate?: Date | null;
5
+ maxDate?: Date | null;
6
+ };
7
+ declare const DateCalendar: ({ value, onSelect, minDate, maxDate }: DateCalendarProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default DateCalendar;
@@ -1,2 +1,6 @@
1
- declare const DaysOfWeekRow: () => import("react/jsx-runtime").JSX.Element;
1
+ export type DaysOfWeekRowProps = {
2
+ transparentBackground?: boolean;
3
+ dayLabelFormat?: 'narrow' | 'short-lowercase';
4
+ };
5
+ declare const DaysOfWeekRow: ({ transparentBackground, dayLabelFormat }: DaysOfWeekRowProps) => import("react/jsx-runtime").JSX.Element;
2
6
  export default DaysOfWeekRow;
@@ -97,7 +97,7 @@ export type SelectProps<T extends string | number | undefined, Multiple extends
97
97
  open?: boolean;
98
98
  onOpen?: () => void;
99
99
  };
100
- export declare const BootstrapInput: import("@emotion/styled").StyledComponent<import("@mui/material/InputBase").InputBaseProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
100
+ export declare const BootstrapInput: import("@emotion/styled").StyledComponent<import("@mui/material").InputBaseProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
101
101
  type SelectComponent = <T extends string | number | undefined = string | number | undefined, Multiple extends boolean | undefined = undefined, Value = SelectValue<T, Multiple>>(props: SelectProps<T, Multiple, Value>) => React.ReactElement | null;
102
102
  declare const _default: SelectComponent;
103
103
  export default _default;
@@ -37,6 +37,7 @@ export { default as SelectPopover } from './SelectPopover';
37
37
  export { default as Checkbox } from './Checkbox';
38
38
  export { default as Radio } from './Radio';
39
39
  export { default as PageSelector } from './PageSelector';
40
+ export { default as DateCalendar } from './DateCalendar';
40
41
  export type { AutocompleteProps } from './autocomplete/Autocomplete';
41
42
  export type { SelectProps } from './Select';
42
43
  export type { SwitchProps } from './Switch';
@@ -53,3 +54,4 @@ export type { SelectableItem } from '../../models/SelectableItem';
53
54
  export type { CheckboxProps } from './Checkbox';
54
55
  export type { RadioProps } from './Radio';
55
56
  export type { PageSelectorProps } from './PageSelector';
57
+ export type { DateCalendarProps } from './DateCalendar';