@connectif/ui-components 5.2.3 → 5.4.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 +18 -0
- package/dist/components/input/categorized-picker/CategorizedPicker.d.ts +15 -0
- package/dist/components/input/categorized-picker/CategorizedPickerCategoryPanel.d.ts +12 -0
- package/dist/components/input/categorized-picker/CategorizedPickerEmptyCategoryPanel.d.ts +7 -0
- package/dist/components/input/categorized-picker/CategorizedPickerGroupItem.d.ts +14 -0
- package/dist/components/input/categorized-picker/CategorizedPickerItem.d.ts +12 -0
- package/dist/components/input/categorized-picker/CategorizedPickerOptionItem.d.ts +14 -0
- package/dist/components/input/categorized-picker/CategorizedPickerSubcategoryItem.d.ts +11 -0
- package/dist/components/input/index.d.ts +2 -2
- package/dist/index.js +951 -580
- package/dist/models/CategorizedPicker.d.ts +35 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/components/input/CategorizedPicker.d.ts +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [5.4.0] - 2026-02-20
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Fixed a bug in the `Select` component when options had no label.
|
|
8
|
+
- Added scroll to the selected category in `CategorizedPicker`.
|
|
9
|
+
- Removed the background color in the `CategorizedPicker` component when it was focused.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Extended the `CategorizedPicker` component options to include an optional `onOpen` method that is triggered when the picker opens.
|
|
14
|
+
|
|
15
|
+
## [5.3.0] - 2026-02-18
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- Extended options in `CategorizedPicker` component to allow groups and subcategories.
|
|
20
|
+
|
|
3
21
|
## [5.2.3] - 2026-02-17
|
|
4
22
|
|
|
5
23
|
### Added
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
onOpen?: () => void;
|
|
12
|
+
onChange: (value: T, groupDataId?: string) => void;
|
|
13
|
+
};
|
|
14
|
+
declare const CategorizedPicker: <T extends CategorizedPickerBaseOption>({ value, options, categories, placeholder, disabled, sx, dataTestId, onOpen, onChange }: CategorizedPickerProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
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';
|