@connectif/ui-components 8.1.1 → 9.0.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,33 @@
1
1
  # Changelog
2
2
 
3
+ ## [9.0.1] - 2026-05-28
4
+
5
+ ### Added
6
+
7
+ - Added `minMenuWidth` prop to `Select` component to set a minimum width for the dropdown menu.
8
+ - Added `maxMenuWidth` prop to `Select` component to cap the dropdown menu's natural width.
9
+ - Added `view-week-outline` icon.
10
+
11
+ ### Changed
12
+
13
+ - `Select` dropdown menu no longer matches the trigger element's width. The menu now sizes to its content, constrained by `minMenuWidth` and `maxMenuWidth`
14
+
15
+ ## [9.0.0] - 2026-05-21
16
+
17
+ ### Added
18
+
19
+ - Added `file-document-outline` icon
20
+ - Added `containerSx` prop to `Table` component to allow styling the `TableContainer` wrapper
21
+
22
+ ### Changed
23
+
24
+ - Removed `DateIntervalPicker` `variant` prop (breaking change).
25
+ - Improved `PageSelector` default text calculation to avoid wrong number of elements being shown.
26
+
27
+ ### Fixed
28
+
29
+ - Fixed `ChipViewer` not recalculating visible chips when the container is resized.
30
+
3
31
  ## [8.1.1] - 2026-05-11
4
32
 
5
33
  ### Fixed
@@ -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;
@@ -1859,6 +1860,7 @@ export declare const icons: {
1859
1860
  'view-sequential': string;
1860
1861
  'view-stream': string;
1861
1862
  'view-week': string;
1863
+ 'view-week-outline': string;
1862
1864
  vimeo: string;
1863
1865
  vine: string;
1864
1866
  violin: string;
@@ -75,6 +75,17 @@ export type SelectProps<T extends string | number | undefined, Multiple extends
75
75
  * The max height of the menu when open
76
76
  */
77
77
  menuMaxHeight?: string;
78
+ /**
79
+ * The minimum width (in px) of the dropdown menu.
80
+ * Defaults to 200.
81
+ */
82
+ minMenuWidth?: number;
83
+ /**
84
+ * The maximum width (in px) of the dropdown menu. Defaults to 400.
85
+ * When `virtualized=true`, the menu width is fixed to `minMenuWidth` by default,
86
+ * but `maxMenuWidth` still acts as an upper cap if `virtualizedProps.width` exceeds it.
87
+ */
88
+ maxMenuWidth?: number;
78
89
  /**
79
90
  * Ref to inner HTMLSelectElement
80
91
  */
@@ -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;