@connectif/ui-components 8.1.0 → 9.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## [9.0.0] - 2026-05-21
4
+
5
+ ### Added
6
+
7
+ - Added `file-document-outline` icon
8
+ - Added `containerSx` prop to `Table` component to allow styling the `TableContainer` wrapper
9
+
10
+ ### Changed
11
+
12
+ - Removed `DateIntervalPicker` `variant` prop (breaking change).
13
+ - Improved `PageSelector` default text calculation to avoid wrong number of elements being shown.
14
+
15
+ ### Fixed
16
+
17
+ - Fixed `ChipViewer` not recalculating visible chips when the container is resized.
18
+
19
+ ## [8.1.1] - 2026-05-11
20
+
21
+ ### Fixed
22
+
23
+ - Fixed `PageSelector` default text translations
24
+
3
25
  ## [8.1.0] - 2026-05-08
4
26
 
5
27
  ### Added
@@ -709,6 +709,7 @@ export declare const icons: {
709
709
  'file-delimited': string;
710
710
  'file-document': string;
711
711
  'file-document-box': string;
712
+ 'file-document-outline': string;
712
713
  'file-excel': string;
713
714
  'file-excel-box': string;
714
715
  'file-export': string;
@@ -1,6 +1,5 @@
1
1
  import { DateInterval } from '../../../models/DateInterval';
2
2
  import { ComparisonInterval } from '../../../models/ComparisonInterval';
3
- export declare const dateIntervalPickerVariants: readonly ["default", "input"];
4
3
  export type DateIntervalValues = {
5
4
  interval: DateInterval;
6
5
  startDate: Date;
@@ -9,11 +8,7 @@ export type DateIntervalValues = {
9
8
  comparisonStartDate: Date | null;
10
9
  comparisonEndDate: Date | null;
11
10
  };
12
- type DateIntervalPickerDefault = {
13
- /**
14
- * Component variant.
15
- */
16
- variant?: 'default';
11
+ export type DateIntervalPickerProps = {
17
12
  /**
18
13
  * The start date of the date interval
19
14
  */
@@ -58,30 +53,6 @@ type DateIntervalPickerDefault = {
58
53
  * Color to be used when represent intersection of intervals
59
54
  */
60
55
  intersectionColor?: string;
61
- /**
62
- * Function to be called when the date interval changes
63
- */
64
- onChange?: (values: DateIntervalValues) => void;
65
- };
66
- type DateIntervalPickerInput = {
67
- /**
68
- * Component variant.
69
- */
70
- variant: 'input';
71
- /**
72
- * The start date of the date interval
73
- */
74
- startDate?: Date;
75
- /**
76
- * The end date of the date interval
77
- */
78
- endDate?: Date;
79
- /**
80
- * Function to be called when the date interval changes
81
- */
82
- onChange: (values: Partial<Pick<DateIntervalValues, 'startDate' | 'endDate'>>) => void;
83
- };
84
- export type DateIntervalPickerProps = (DateIntervalPickerDefault | DateIntervalPickerInput) & {
85
56
  /**
86
57
  * The color to mark the selected interval. If not provided, the Theme primary color will be used.
87
58
  */
@@ -96,21 +67,21 @@ export type DateIntervalPickerProps = (DateIntervalPickerDefault | DateIntervalP
96
67
  disabled?: boolean;
97
68
  /**
98
69
  * The minimum date allowed to be selected in the date interval.
99
- * By default:
100
- * Input variant: it will allow selecting dates from 1900-01-01 in input.
101
- * Other variant: it will be the maxDate minus the maxSelectableDays
70
+ * By default it will be the maxDate minus the maxSelectableDays.
102
71
  */
103
72
  minDate?: Date;
104
73
  /**
105
74
  * The maximum date allowed to be selected in the date interval.
106
- * By default:
107
- * Input variant: it will be the current date, or 2100-12-31 when maxDate is not provided.
108
- * Other variant: it will be the current date
75
+ * By default it will be the current date.
109
76
  */
110
77
  maxDate?: Date;
78
+ /**
79
+ * Function to be called when the date interval changes
80
+ */
81
+ onChange?: (values: DateIntervalValues) => void;
111
82
  };
112
83
  /**
113
84
  * Date interval picker component, which allows to select an interval between two Dates.
114
85
  */
115
- declare const DateIntervalPicker: ({ color, maxSelectableDays, disabled, minDate, maxDate, ...rest }: DateIntervalPickerProps) => import("react/jsx-runtime").JSX.Element;
86
+ declare const DateIntervalPicker: ({ color, maxSelectableDays, disabled, minDate, maxDate, startDate, endDate, interval, allowCompare, showTime, allowedIntervals, comparisonInterval, comparisonStartDate, comparisonEndDate, comparisonColor, intersectionColor, onChange }: DateIntervalPickerProps) => import("react/jsx-runtime").JSX.Element;
116
87
  export default DateIntervalPicker;
@@ -0,0 +1,7 @@
1
+ import { DateIntervalPickerProps } from './DateIntervalPicker';
2
+ type DateIntervalPickerButtonProps = Pick<DateIntervalPickerProps, 'startDate' | 'endDate' | 'interval' | 'showTime' | 'comparisonStartDate' | 'comparisonEndDate' | 'disabled'> & {
3
+ isEndDateVisible: boolean;
4
+ onClick: (anchorEl: HTMLButtonElement) => void;
5
+ };
6
+ declare const DateIntervalPickerButton: ({ interval, startDate, endDate, disabled, comparisonStartDate, comparisonEndDate, showTime, isEndDateVisible, onClick }: DateIntervalPickerButtonProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default DateIntervalPickerButton;
@@ -1,4 +1,3 @@
1
- import { DateIntervalValues } from '../date-interval-picker/DateIntervalPicker';
2
1
  export type DateRangePickerProps = {
3
2
  /**
4
3
  * The start date of the date interval
@@ -11,7 +10,10 @@ export type DateRangePickerProps = {
11
10
  /**
12
11
  * Function to be called when the date interval changes
13
12
  */
14
- onChange: (values: Partial<Pick<DateIntervalValues, 'startDate' | 'endDate'>>) => void;
13
+ onChange: (values: {
14
+ startDate?: Date;
15
+ endDate?: Date;
16
+ }) => void;
15
17
  /**
16
18
  * The color to mark the selected interval. If not provided, the Theme primary color will be used.
17
19
  */
@@ -0,0 +1,10 @@
1
+ type DateRangePickerButtonProps = {
2
+ startDate?: Date;
3
+ endDate?: Date;
4
+ disabled?: boolean;
5
+ isPopoverOpen: boolean;
6
+ isEndDateVisible: boolean;
7
+ onClick: (anchorEl: HTMLInputElement) => void;
8
+ };
9
+ declare const DateRangePickerButton: ({ startDate, endDate, disabled, isPopoverOpen, isEndDateVisible, onClick }: DateRangePickerButtonProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default DateRangePickerButton;
@@ -1,4 +1,6 @@
1
- import { TableProps as MuiTableProps } from '@mui/material';
2
- export type TableProps = Pick<MuiTableProps, 'sx' | 'children' | 'className'>;
3
- declare const Table: ({ children, sx, className }: TableProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { TableProps as MuiTableProps, TableContainerProps } from '@mui/material';
2
+ export type TableProps = Pick<MuiTableProps, 'sx' | 'children' | 'className'> & {
3
+ containerSx?: TableContainerProps['sx'];
4
+ };
5
+ declare const Table: ({ children, sx, className, containerSx }: TableProps) => import("react/jsx-runtime").JSX.Element;
4
6
  export default Table;