@connectif/ui-components 5.2.2 → 5.3.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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [5.3.0] - 2026-02-18
4
+
5
+ ### Added
6
+
7
+ - Extended options in `CategorizedPicker` component to allow groups and subcategories.
8
+
9
+ ## [5.2.3] - 2026-02-17
10
+
11
+ ### Added
12
+
13
+ - New prop `alignLeft` for optional alignment of the `Carousel` component.
14
+
3
15
  ## [5.2.2] - 2026-02-11
4
16
 
5
17
  ### Added
@@ -0,0 +1,14 @@
1
+ import { SxProps } from '@mui/material';
2
+ import { CategorizedPickerBaseOption, CategorizedPickerCategory } from '../../../models/CategorizedPicker';
3
+ export type CategorizedPickerProps<T extends CategorizedPickerBaseOption> = {
4
+ value?: T;
5
+ options: T[];
6
+ categories: CategorizedPickerCategory<T>[];
7
+ placeholder?: string;
8
+ disabled?: boolean;
9
+ sx?: SxProps;
10
+ dataTestId?: string;
11
+ onChange: (value: T, groupDataId?: string) => void;
12
+ };
13
+ declare const CategorizedPicker: <T extends CategorizedPickerBaseOption>({ value, options, categories, placeholder, disabled, sx, dataTestId, onChange }: CategorizedPickerProps<T>) => import("react/jsx-runtime").JSX.Element;
14
+ export default CategorizedPicker;
@@ -0,0 +1,12 @@
1
+ import { CategorizedPickerBaseOption, CategorizedPickerCategory } from '../../../models/CategorizedPicker';
2
+ export type CategorizedPickerCategoryPanelProps<T extends CategorizedPickerBaseOption> = {
3
+ value?: T;
4
+ selectedCategory?: CategorizedPickerCategory<T>;
5
+ isEmptyCategories: boolean;
6
+ categoryOptions: T[];
7
+ searchText?: string;
8
+ dataTestId?: string;
9
+ onSelect: (option: CategorizedPickerBaseOption) => void;
10
+ };
11
+ declare const CategorizedPickerCategoryPanel: <T extends CategorizedPickerBaseOption>({ value, selectedCategory, searchText, isEmptyCategories, categoryOptions, dataTestId, onSelect }: CategorizedPickerCategoryPanelProps<T>) => import("react/jsx-runtime").JSX.Element;
12
+ export default CategorizedPickerCategoryPanel;
@@ -0,0 +1,7 @@
1
+ import { CategorizedPickerBaseOption, CategorizedPickerCategory } from '../../../models/CategorizedPicker';
2
+ export type CategorizedPickerEmptyCategoryPanelProps<T extends CategorizedPickerBaseOption> = {
3
+ selectedCategory?: CategorizedPickerCategory<T>;
4
+ isEmptyCategories: boolean;
5
+ };
6
+ declare const CategorizedPickerEmptyCategoryPanel: <T extends CategorizedPickerBaseOption>({ selectedCategory, isEmptyCategories }: CategorizedPickerEmptyCategoryPanelProps<T>) => import("react/jsx-runtime").JSX.Element;
7
+ export default CategorizedPickerEmptyCategoryPanel;
@@ -0,0 +1,14 @@
1
+ import { CategorizedPickerBaseOption, CategorizedPickerItemType } from '../../../models/CategorizedPicker';
2
+ export type CategorizedPickerGroupItemProps = {
3
+ option: Extract<CategorizedPickerItemType, {
4
+ categorizedPickerItemType: 'group';
5
+ }>;
6
+ index: number;
7
+ selectedId: string;
8
+ searchText?: string;
9
+ dataTestId?: string;
10
+ onSelect: (option: CategorizedPickerBaseOption) => void;
11
+ onScrollToItem: (item: HTMLDivElement) => void;
12
+ };
13
+ declare const CategorizedPickerGroupItem: ({ option, selectedId, dataTestId, index, searchText, onSelect, onScrollToItem }: CategorizedPickerGroupItemProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default CategorizedPickerGroupItem;
@@ -0,0 +1,12 @@
1
+ import { CategorizedPickerBaseOption, CategorizedPickerItemType } from '../../../models/CategorizedPicker';
2
+ export type CategorizedPickerItemProps = {
3
+ option: CategorizedPickerItemType;
4
+ index: number;
5
+ selectedId: string;
6
+ searchText?: string;
7
+ dataTestId?: string;
8
+ onSelect: (option: CategorizedPickerBaseOption) => void;
9
+ onScrollToItem?: (item: HTMLDivElement) => void;
10
+ };
11
+ declare const CategorizedPickerItem: ({ option, selectedId, dataTestId, index, searchText, onSelect, onScrollToItem }: CategorizedPickerItemProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default CategorizedPickerItem;
@@ -0,0 +1,14 @@
1
+ import { CategorizedPickerBaseOption, CategorizedPickerItemType } from '../../../models/CategorizedPicker';
2
+ export type CategorizedPickerOptionItemProps = {
3
+ option: Extract<CategorizedPickerItemType, {
4
+ categorizedPickerItemType: 'option';
5
+ }>;
6
+ index: number;
7
+ selectedId: string;
8
+ searchText?: string;
9
+ dataTestId?: string;
10
+ onSelect: (option: CategorizedPickerBaseOption) => void;
11
+ onScrollToItem: (item: HTMLDivElement) => void;
12
+ };
13
+ declare const CategorizedPickerOptionItem: ({ option, selectedId, dataTestId, index, searchText, onSelect, onScrollToItem }: CategorizedPickerOptionItemProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default CategorizedPickerOptionItem;
@@ -0,0 +1,11 @@
1
+ import { CategorizedPickerItemType } from '../../../models/CategorizedPicker';
2
+ export type CategorizedPickerSubcategoryItemProps = {
3
+ option: Extract<CategorizedPickerItemType, {
4
+ categorizedPickerItemType: 'subcategory';
5
+ }>;
6
+ index: number;
7
+ searchText?: string;
8
+ dataTestId?: string;
9
+ };
10
+ declare const CategorizedPickerSubcategoryItem: ({ option, dataTestId, index, searchText }: CategorizedPickerSubcategoryItemProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default CategorizedPickerSubcategoryItem;
@@ -16,8 +16,8 @@ export { default as ColorPicker, colorPickerDefaultColors, isValidColor } from '
16
16
  export type { ColorPickerProps } from './ColorPicker';
17
17
  export { default as UploadClickableArea } from './UploadClickableArea';
18
18
  export type { UploadClickableAreaProps } from './UploadClickableArea';
19
- export { default as CategorizedPicker } from './CategorizedPicker';
20
- export type { CategorizedPickerProps } from './CategorizedPicker';
19
+ export { default as CategorizedPicker } from './categorized-picker/CategorizedPicker';
20
+ export type { CategorizedPickerProps } from './categorized-picker/CategorizedPicker';
21
21
  export { default as ItemSelector } from './ItemSelector';
22
22
  export type { ItemSelectorProps, ItemSelectorItem } from './ItemSelector';
23
23
  export { default as Autocomplete } from './autocomplete/Autocomplete';
@@ -4,6 +4,7 @@ export type CarouselProps<T> = {
4
4
  renderItem: (item: T, index: number) => React.ReactNode;
5
5
  gap?: number;
6
6
  padding?: number;
7
+ alignment?: 'left' | 'center';
7
8
  };
8
- declare function Carousel<T>({ items, renderItem, gap, padding }: CarouselProps<T>): import("react/jsx-runtime").JSX.Element;
9
+ declare function Carousel<T>({ items, renderItem, gap, padding, alignment }: CarouselProps<T>): import("react/jsx-runtime").JSX.Element;
9
10
  export default Carousel;