@vibe/core 4.5.25 → 4.5.26
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/dist/components/avatar-group/dist/AvatarGroup/AvatarGroup.js +2 -0
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroup.js.map +1 -0
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroup.module.scss.js +2 -0
- package/dist/{mocked_classnames/src/components → components/avatar-group/dist}/AvatarGroup/AvatarGroupConstants.js +1 -1
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroupConstants.js.map +1 -0
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroupCounter.js +2 -0
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroupCounter.js.map +1 -0
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroupCounter.module.scss.js +2 -0
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroupCounterTooltipContainer.js +2 -0
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroupCounterTooltipContainer.js.map +1 -0
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroupCounterTooltipContent.js +2 -0
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroupCounterTooltipContent.js.map +1 -0
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroupCounterTooltipContent.module.scss.js +2 -0
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.js +2 -0
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.js.map +1 -0
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.module.scss.js +2 -0
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroupCounterTooltipHelper.js +2 -0
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroupCounterTooltipHelper.js.map +1 -0
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroupHelper.js +2 -0
- package/dist/components/avatar-group/dist/AvatarGroup/AvatarGroupHelper.js.map +1 -0
- package/dist/components/breadcrumbs/dist/BreadcrumbsBar/BreadcrumbItem/BreadcrumbContent/BreadcrumbContent.module.scss.js +1 -1
- package/dist/components/breadcrumbs/dist/BreadcrumbsBar/BreadcrumbItem/BreadcrumbItem.module.scss.js +1 -1
- package/dist/components/breadcrumbs/dist/BreadcrumbsBar/BreadcrumbMenu/BreadcrumbsMenu.module.scss.js +1 -1
- package/dist/components/breadcrumbs/dist/BreadcrumbsBar/BreadcrumbsBar.module.scss.js +1 -1
- package/dist/components/dropdown/dist/Dropdown/components/DropdownBase/DropdownBase.module.scss.js +1 -1
- package/dist/components/dropdown/dist/Dropdown/components/DropdownBaseList/DropdownBaseList.module.scss.js +1 -1
- package/dist/components/dropdown/dist/Dropdown/components/DropdownBoxMode/DropdownBoxMode.module.scss.js +1 -1
- package/dist/components/dropdown/dist/Dropdown/components/Menu/Menu.module.scss.js +1 -1
- package/dist/components/dropdown/dist/Dropdown/components/MultiSelectedValues/MultiSelectedValues.module.scss.js +1 -1
- package/dist/components/dropdown/dist/Dropdown/components/Trigger/Trigger.module.scss.js +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/layout/dist/Box/Box.js +1 -1
- package/dist/components/layout/dist/Box/Box.js.map +1 -1
- package/dist/components/search/dist/Search/Search.js +2 -0
- package/dist/components/search/dist/Search/Search.js.map +1 -0
- package/dist/components/search/dist/Search/Search.module.scss.js +2 -0
- package/dist/metadata/components.json +1 -1
- package/dist/metadata.json +1 -1
- package/dist/mocked_classnames/components/index.d.ts +2 -2
- package/dist/mocked_classnames/src/components/Combobox/Combobox.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/Combobox.js.map +1 -1
- package/dist/mocked_classnames/src/components/Combobox/Combobox.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/ComboboxHelpers/ComboboxHelpers.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/components/ComboboxCategory/ComboboxCategory.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/components/ComboboxItems/ComboboxItems.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/components/ComboboxOption/ComboboxOption.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Combobox/components/StickyCategoryHeader/StickyCategoryHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/DatePicker/DatePicker.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/DatePicker/DatePickerHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/List/List.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/List/VirtualizedListItems/VirtualizedListItems.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ListItem/ListItem.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ListItemAvatar/ListItemAvatar.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ListItemIcon/ListItemIcon.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/ListTitle/ListTitle.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/Modal/Modal.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/ModalHeader/ModalHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/ModalMedia/ModalMedia.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/ModalTopActions/ModalTopActions.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/footers/ModalFooter/ModalFooter.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/footers/ModalFooterBase/ModalFooterBase.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/footers/ModalFooterWizard/ModalFooterWizard.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/layouts/ModalBasicLayout/ModalBasicLayout.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/layouts/ModalFooterShadow.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/layouts/ModalLayoutScrollableContent.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/layouts/ModalMediaLayout/ModalMediaLayout.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Modal/layouts/ModalSideBySideLayout/ModalSideBySideLayout.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/SplitButton/SplitButton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/Table/Table.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableBody/TableBody.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableCell/TableCell.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableCellSkeleton/TableCellSkeleton.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableContainer/TableContainer.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableHeader/TableHeader.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableHeaderCell/TableHeaderCell.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableRow/TableRow.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableRowMenu/TableRowMenu.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/Table/TableVirtualizedBody/TableVirtualizedBody.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/next/List/List.module.scss.js +1 -1
- package/dist/mocked_classnames/src/components/next/List/ListTitle/ListTitle.module.scss.js +1 -1
- package/dist/mocked_classnames/src/index.js +1 -1
- package/dist/src/components/Combobox/Combobox.js +1 -1
- package/dist/src/components/Combobox/Combobox.js.map +1 -1
- package/dist/src/components/Combobox/Combobox.module.scss.js +1 -1
- package/dist/src/components/Combobox/ComboboxHelpers/ComboboxHelpers.module.scss.js +1 -1
- package/dist/src/components/Combobox/components/ComboboxCategory/ComboboxCategory.module.scss.js +1 -1
- package/dist/src/components/Combobox/components/ComboboxItems/ComboboxItems.module.scss.js +1 -1
- package/dist/src/components/Combobox/components/ComboboxOption/ComboboxOption.module.scss.js +1 -1
- package/dist/src/components/Combobox/components/StickyCategoryHeader/StickyCategoryHeader.module.scss.js +1 -1
- package/dist/src/components/DatePicker/DatePicker.module.scss.js +1 -1
- package/dist/src/components/DatePicker/DatePickerHeader.module.scss.js +1 -1
- package/dist/src/components/List/List.module.scss.js +1 -1
- package/dist/src/components/List/VirtualizedListItems/VirtualizedListItems.module.scss.js +1 -1
- package/dist/src/components/ListItem/ListItem.module.scss.js +1 -1
- package/dist/src/components/ListItemAvatar/ListItemAvatar.module.scss.js +1 -1
- package/dist/src/components/ListItemIcon/ListItemIcon.module.scss.js +1 -1
- package/dist/src/components/ListTitle/ListTitle.module.scss.js +1 -1
- package/dist/src/components/Modal/Modal/Modal.module.scss.js +1 -1
- package/dist/src/components/Modal/ModalHeader/ModalHeader.module.scss.js +1 -1
- package/dist/src/components/Modal/ModalMedia/ModalMedia.module.scss.js +1 -1
- package/dist/src/components/Modal/ModalTopActions/ModalTopActions.module.scss.js +1 -1
- package/dist/src/components/Modal/footers/ModalFooter/ModalFooter.module.scss.js +1 -1
- package/dist/src/components/Modal/footers/ModalFooterBase/ModalFooterBase.module.scss.js +1 -1
- package/dist/src/components/Modal/footers/ModalFooterWizard/ModalFooterWizard.module.scss.js +1 -1
- package/dist/src/components/Modal/layouts/ModalBasicLayout/ModalBasicLayout.module.scss.js +1 -1
- package/dist/src/components/Modal/layouts/ModalFooterShadow.module.scss.js +1 -1
- package/dist/src/components/Modal/layouts/ModalLayoutScrollableContent.module.scss.js +1 -1
- package/dist/src/components/Modal/layouts/ModalMediaLayout/ModalMediaLayout.module.scss.js +1 -1
- package/dist/src/components/Modal/layouts/ModalSideBySideLayout/ModalSideBySideLayout.module.scss.js +1 -1
- package/dist/src/components/SplitButton/SplitButton.module.scss.js +1 -1
- package/dist/src/components/Table/Table/Table.module.scss.js +1 -1
- package/dist/src/components/Table/TableBody/TableBody.module.scss.js +1 -1
- package/dist/src/components/Table/TableCell/TableCell.module.scss.js +1 -1
- package/dist/src/components/Table/TableCellSkeleton/TableCellSkeleton.module.scss.js +1 -1
- package/dist/src/components/Table/TableContainer/TableContainer.module.scss.js +1 -1
- package/dist/src/components/Table/TableHeader/TableHeader.module.scss.js +1 -1
- package/dist/src/components/Table/TableHeaderCell/TableHeaderCell.module.scss.js +1 -1
- package/dist/src/components/Table/TableRow/TableRow.module.scss.js +1 -1
- package/dist/src/components/Table/TableRowMenu/TableRowMenu.module.scss.js +1 -1
- package/dist/src/components/Table/TableVirtualizedBody/TableVirtualizedBody.module.scss.js +1 -1
- package/dist/src/components/next/List/List.module.scss.js +1 -1
- package/dist/src/components/next/List/ListTitle/ListTitle.module.scss.js +1 -1
- package/dist/src/index.js +1 -1
- package/dist/style/dist/index.min.css.js +1 -1
- package/package.json +4 -2
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +0 -45
- package/dist/components/AvatarGroup/AvatarGroup.types.d.ts +0 -14
- package/dist/components/AvatarGroup/AvatarGroupConstants.d.ts +0 -2
- package/dist/components/AvatarGroup/AvatarGroupCounter.d.ts +0 -41
- package/dist/components/AvatarGroup/AvatarGroupCounterTooltipContainer.d.ts +0 -40
- package/dist/components/AvatarGroup/AvatarGroupCounterTooltipContent.d.ts +0 -23
- package/dist/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.d.ts +0 -33
- package/dist/components/AvatarGroup/AvatarGroupCounterTooltipHelper.d.ts +0 -16
- package/dist/components/AvatarGroup/AvatarGroupHelper.d.ts +0 -3
- package/dist/components/AvatarGroup/index.d.ts +0 -2
- package/dist/components/Search/Search.d.ts +0 -4
- package/dist/components/Search/Search.types.d.ts +0 -104
- package/dist/components/Search/index.d.ts +0 -2
- package/dist/mocked_classnames/components/AvatarGroup/AvatarGroup.d.ts +0 -45
- package/dist/mocked_classnames/components/AvatarGroup/AvatarGroup.types.d.ts +0 -14
- package/dist/mocked_classnames/components/AvatarGroup/AvatarGroupConstants.d.ts +0 -2
- package/dist/mocked_classnames/components/AvatarGroup/AvatarGroupCounter.d.ts +0 -41
- package/dist/mocked_classnames/components/AvatarGroup/AvatarGroupCounterTooltipContainer.d.ts +0 -40
- package/dist/mocked_classnames/components/AvatarGroup/AvatarGroupCounterTooltipContent.d.ts +0 -23
- package/dist/mocked_classnames/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.d.ts +0 -33
- package/dist/mocked_classnames/components/AvatarGroup/AvatarGroupCounterTooltipHelper.d.ts +0 -16
- package/dist/mocked_classnames/components/AvatarGroup/AvatarGroupHelper.d.ts +0 -3
- package/dist/mocked_classnames/components/AvatarGroup/index.d.ts +0 -2
- package/dist/mocked_classnames/components/Search/Search.d.ts +0 -4
- package/dist/mocked_classnames/components/Search/Search.types.d.ts +0 -104
- package/dist/mocked_classnames/components/Search/index.d.ts +0 -2
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroup.js +0 -2
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroup.js.map +0 -1
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroup.module.scss.js +0 -2
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupConstants.js.map +0 -1
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounter.js +0 -2
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounter.js.map +0 -1
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounter.module.scss.js +0 -2
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContainer.js +0 -2
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContainer.js.map +0 -1
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.js +0 -2
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.js.map +0 -1
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.module.scss.js +0 -2
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.js +0 -2
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.js.map +0 -1
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.module.scss.js +0 -2
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipHelper.js +0 -2
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupCounterTooltipHelper.js.map +0 -1
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupHelper.js +0 -2
- package/dist/mocked_classnames/src/components/AvatarGroup/AvatarGroupHelper.js.map +0 -1
- package/dist/mocked_classnames/src/components/Search/Search.js +0 -2
- package/dist/mocked_classnames/src/components/Search/Search.js.map +0 -1
- package/dist/mocked_classnames/src/components/Search/Search.module.scss.js +0 -2
- package/dist/src/components/AvatarGroup/AvatarGroup.js +0 -2
- package/dist/src/components/AvatarGroup/AvatarGroup.js.map +0 -1
- package/dist/src/components/AvatarGroup/AvatarGroup.module.scss.js +0 -2
- package/dist/src/components/AvatarGroup/AvatarGroup.module.scss.js.map +0 -1
- package/dist/src/components/AvatarGroup/AvatarGroupConstants.js +0 -2
- package/dist/src/components/AvatarGroup/AvatarGroupConstants.js.map +0 -1
- package/dist/src/components/AvatarGroup/AvatarGroupCounter.js +0 -2
- package/dist/src/components/AvatarGroup/AvatarGroupCounter.js.map +0 -1
- package/dist/src/components/AvatarGroup/AvatarGroupCounter.module.scss.js +0 -2
- package/dist/src/components/AvatarGroup/AvatarGroupCounter.module.scss.js.map +0 -1
- package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContainer.js +0 -2
- package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContainer.js.map +0 -1
- package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.js +0 -2
- package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.js.map +0 -1
- package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.module.scss.js +0 -2
- package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContent.module.scss.js.map +0 -1
- package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.js +0 -2
- package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.js.map +0 -1
- package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.module.scss.js +0 -2
- package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.module.scss.js.map +0 -1
- package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipHelper.js +0 -2
- package/dist/src/components/AvatarGroup/AvatarGroupCounterTooltipHelper.js.map +0 -1
- package/dist/src/components/AvatarGroup/AvatarGroupHelper.js +0 -2
- package/dist/src/components/AvatarGroup/AvatarGroupHelper.js.map +0 -1
- package/dist/src/components/Search/Search.js +0 -2
- package/dist/src/components/Search/Search.js.map +0 -1
- package/dist/src/components/Search/Search.module.scss.js +0 -2
- package/dist/src/components/Search/Search.module.scss.js.map +0 -1
- /package/dist/{mocked_classnames/src/components → components/avatar-group/dist}/AvatarGroup/AvatarGroup.module.scss.js.map +0 -0
- /package/dist/{mocked_classnames/src/components → components/avatar-group/dist}/AvatarGroup/AvatarGroupCounter.module.scss.js.map +0 -0
- /package/dist/{mocked_classnames/src/components → components/avatar-group/dist}/AvatarGroup/AvatarGroupCounterTooltipContent.module.scss.js.map +0 -0
- /package/dist/{mocked_classnames/src/components → components/avatar-group/dist}/AvatarGroup/AvatarGroupCounterTooltipContentVirtualizedList.module.scss.js.map +0 -0
- /package/dist/{mocked_classnames/src/components → components/search/dist}/Search/Search.module.scss.js.map +0 -0
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React, { type ReactElement, type RefObject } from "react";
|
|
2
|
-
import { type TooltipProps } from "@vibe/tooltip";
|
|
3
|
-
import { type AvatarProps, type AvatarType } from "@vibe/avatar";
|
|
4
|
-
import type VibeComponentProps from "../../types/VibeComponentProps";
|
|
5
|
-
export interface AvatarGroupCounterTooltipContainerProps extends VibeComponentProps {
|
|
6
|
-
/**
|
|
7
|
-
* The type of avatars displayed in the tooltip.
|
|
8
|
-
*/
|
|
9
|
-
type?: AvatarType;
|
|
10
|
-
/**
|
|
11
|
-
* The counter element and focus placeholders.
|
|
12
|
-
*/
|
|
13
|
-
children?: ReactElement[];
|
|
14
|
-
/**
|
|
15
|
-
* The list of avatars displayed inside the tooltip.
|
|
16
|
-
*/
|
|
17
|
-
avatars?: ReactElement<AvatarProps>[];
|
|
18
|
-
/**
|
|
19
|
-
* Props passed to the Tooltip component. See full options in the [Tooltip documentation](https://vibe.monday.com/?path=/docs/components-tooltip--docs).
|
|
20
|
-
*/
|
|
21
|
-
counterTooltipCustomProps?: Partial<TooltipProps>;
|
|
22
|
-
/**
|
|
23
|
-
* If true, the tooltip uses a virtualized list for performance optimization.
|
|
24
|
-
*/
|
|
25
|
-
counterTooltipIsVirtualizedList?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Ref for the element before the tooltip content, used for keyboard navigation.
|
|
28
|
-
*/
|
|
29
|
-
focusPrevPlaceholderRef?: RefObject<HTMLDivElement>;
|
|
30
|
-
/**
|
|
31
|
-
* Ref for the element after the tooltip content, used for keyboard navigation.
|
|
32
|
-
*/
|
|
33
|
-
focusNextPlaceholderRef?: RefObject<HTMLDivElement>;
|
|
34
|
-
/**
|
|
35
|
-
* Ref for the counter container element.
|
|
36
|
-
*/
|
|
37
|
-
counterContainerRef?: RefObject<HTMLDivElement>;
|
|
38
|
-
}
|
|
39
|
-
declare const AvatarGroupCounterTooltipContainer: React.FC<AvatarGroupCounterTooltipContainerProps>;
|
|
40
|
-
export default AvatarGroupCounterTooltipContainer;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React, { type ReactElement, type Ref } from "react";
|
|
2
|
-
import { type AvatarProps, type AvatarType } from "@vibe/avatar";
|
|
3
|
-
import type VibeComponentProps from "../../types/VibeComponentProps";
|
|
4
|
-
export interface AvatarGroupCounterTooltipContentProps extends VibeComponentProps {
|
|
5
|
-
/**
|
|
6
|
-
* The type of avatars displayed inside the tooltip.
|
|
7
|
-
*/
|
|
8
|
-
type?: AvatarType;
|
|
9
|
-
/**
|
|
10
|
-
* The avatars shown in the tooltip.
|
|
11
|
-
*/
|
|
12
|
-
avatars?: ReactElement<AvatarProps>[];
|
|
13
|
-
/**
|
|
14
|
-
* If true, the tooltip uses a virtualized list for performance optimization.
|
|
15
|
-
*/
|
|
16
|
-
isVirtualizedList?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Ref for the tooltip content container.
|
|
19
|
-
*/
|
|
20
|
-
tooltipContentContainerRef?: Ref<HTMLDivElement>;
|
|
21
|
-
}
|
|
22
|
-
declare const AvatarGroupCounterTooltipContent: React.FC<AvatarGroupCounterTooltipContentProps>;
|
|
23
|
-
export default AvatarGroupCounterTooltipContent;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React, { type CSSProperties, type ReactElement, type Ref } from "react";
|
|
2
|
-
import type VibeComponentProps from "../../types/VibeComponentProps";
|
|
3
|
-
import { type AvatarProps, type AvatarType } from "@vibe/avatar";
|
|
4
|
-
import { type ElementContent } from "../../types";
|
|
5
|
-
export type AvatarItem = {
|
|
6
|
-
value: AvatarProps & {
|
|
7
|
-
tooltipContent: ElementContent;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export interface AvatarGroupCounterTooltipContentVirtualizedListProps extends VibeComponentProps {
|
|
11
|
-
/**
|
|
12
|
-
* The list of avatars displayed in the virtualized tooltip.
|
|
13
|
-
*/
|
|
14
|
-
avatarItems?: AvatarItem[];
|
|
15
|
-
/**
|
|
16
|
-
* Function to render each avatar item.
|
|
17
|
-
*/
|
|
18
|
-
avatarRenderer?: (item: AvatarItem, index: number, style: CSSProperties, type: AvatarType, displayAsGrid: boolean) => ReactElement;
|
|
19
|
-
/**
|
|
20
|
-
* The ARIA label of the tooltip container.
|
|
21
|
-
*/
|
|
22
|
-
tooltipContainerAriaLabel?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Ref for the tooltip content container.
|
|
25
|
-
*/
|
|
26
|
-
tooltipContentContainerRef?: Ref<HTMLDivElement>;
|
|
27
|
-
/**
|
|
28
|
-
* The type of avatars in the tooltip.
|
|
29
|
-
*/
|
|
30
|
-
type?: AvatarType;
|
|
31
|
-
}
|
|
32
|
-
declare const AvatarGroupCounterTooltipContentVirtualizedList: React.FC<AvatarGroupCounterTooltipContentVirtualizedListProps>;
|
|
33
|
-
export default AvatarGroupCounterTooltipContentVirtualizedList;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { type CSSProperties, type RefObject } from "react";
|
|
2
|
-
import { type AvatarProps, type AvatarType } from "@vibe/avatar";
|
|
3
|
-
import { type ElementContent } from "../../types";
|
|
4
|
-
export declare function useTooltipContentTabNavigation({ counterContainerRef, tooltipContentContainerRef, focusPrevPlaceholderRef, focusNextPlaceholderRef, isKeyboardTooltipVisible, setIsKeyboardTooltipVisible }: {
|
|
5
|
-
counterContainerRef: RefObject<HTMLDivElement>;
|
|
6
|
-
tooltipContentContainerRef: RefObject<HTMLElement>;
|
|
7
|
-
focusPrevPlaceholderRef: RefObject<HTMLDivElement>;
|
|
8
|
-
focusNextPlaceholderRef: RefObject<HTMLDivElement>;
|
|
9
|
-
isKeyboardTooltipVisible: boolean;
|
|
10
|
-
setIsKeyboardTooltipVisible: (value: boolean) => void;
|
|
11
|
-
}): void;
|
|
12
|
-
export declare const avatarRenderer: (item: {
|
|
13
|
-
value: AvatarProps & {
|
|
14
|
-
tooltipContent: ElementContent;
|
|
15
|
-
};
|
|
16
|
-
}, index: number, style: CSSProperties, type: AvatarType, displayAsGrid: boolean) => React.JSX.Element;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
|
-
import { type VibeComponentProps } from "../../types";
|
|
3
|
-
import { type SubIcon } from "@vibe/icon";
|
|
4
|
-
import { type InputSize } from "@vibe/base";
|
|
5
|
-
import type { IconButton } from "@vibe/icon-button";
|
|
6
|
-
import { type MenuButton } from "@vibe/menu-button";
|
|
7
|
-
export interface SearchProps extends VibeComponentProps {
|
|
8
|
-
/**
|
|
9
|
-
* The icon used for the search button.
|
|
10
|
-
*/
|
|
11
|
-
searchIconName?: SubIcon;
|
|
12
|
-
/**
|
|
13
|
-
* The icon used for the clear button.
|
|
14
|
-
*/
|
|
15
|
-
clearIconName?: SubIcon;
|
|
16
|
-
/**
|
|
17
|
-
* The label for the clear button, for accessibility purposes.
|
|
18
|
-
*/
|
|
19
|
-
clearIconLabel?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Renders an additional action button in the search input.
|
|
22
|
-
*/
|
|
23
|
-
renderAction?: React.ReactElement<typeof IconButton | typeof MenuButton>;
|
|
24
|
-
/**
|
|
25
|
-
* If true, hides the additional action button when input has text.
|
|
26
|
-
*/
|
|
27
|
-
hideRenderActionOnInput?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* The current value of the search input.
|
|
30
|
-
*/
|
|
31
|
-
value?: HTMLInputElement["value"];
|
|
32
|
-
/**
|
|
33
|
-
* The placeholder text displayed when the input is empty.
|
|
34
|
-
*/
|
|
35
|
-
placeholder?: HTMLInputElement["placeholder"];
|
|
36
|
-
/**
|
|
37
|
-
* The size of the search input, affecting padding and font size.
|
|
38
|
-
*/
|
|
39
|
-
size?: InputSize;
|
|
40
|
-
/**
|
|
41
|
-
* If true, disables the search input.
|
|
42
|
-
*/
|
|
43
|
-
disabled?: HTMLInputElement["disabled"];
|
|
44
|
-
/**
|
|
45
|
-
* If true, displays a loading indicator inside the input.
|
|
46
|
-
*/
|
|
47
|
-
loading?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* If true, automatically focuses the search input on mount.
|
|
50
|
-
*/
|
|
51
|
-
autoFocus?: HTMLInputElement["autofocus"];
|
|
52
|
-
/**
|
|
53
|
-
* Configures the browser's autocomplete behavior.
|
|
54
|
-
*/
|
|
55
|
-
autoComplete?: HTMLInputElement["autocomplete"];
|
|
56
|
-
/**
|
|
57
|
-
* The ARIA label for the search input.
|
|
58
|
-
*/
|
|
59
|
-
inputAriaLabel?: React.AriaAttributes["aria-label"];
|
|
60
|
-
/**
|
|
61
|
-
* If true, indicates that a popup is open.
|
|
62
|
-
*/
|
|
63
|
-
"aria-expanded"?: React.AriaAttributes["aria-expanded"];
|
|
64
|
-
/**
|
|
65
|
-
* Specifies the type of popup associated with the search input.
|
|
66
|
-
*/
|
|
67
|
-
"aria-haspopup"?: React.AriaAttributes["aria-haspopup"];
|
|
68
|
-
/**
|
|
69
|
-
* The debounce rate for input value changes.
|
|
70
|
-
*/
|
|
71
|
-
debounceRate?: number;
|
|
72
|
-
/**
|
|
73
|
-
* The ID of the container where search results are displayed.
|
|
74
|
-
*/
|
|
75
|
-
searchResultsContainerId?: string;
|
|
76
|
-
/**
|
|
77
|
-
* ARIA property indicating the currently active search result.
|
|
78
|
-
*/
|
|
79
|
-
currentAriaResultId?: React.AriaAttributes["aria-activedescendant"];
|
|
80
|
-
/**
|
|
81
|
-
* Callback fired when the search input value changes.
|
|
82
|
-
*/
|
|
83
|
-
onChange?: (value: string) => void;
|
|
84
|
-
/**
|
|
85
|
-
* Callback fired when the search input loses focus.
|
|
86
|
-
*/
|
|
87
|
-
onBlur?: (event: React.FocusEvent) => void;
|
|
88
|
-
/**
|
|
89
|
-
* Callback fired when the search input gains focus.
|
|
90
|
-
*/
|
|
91
|
-
onFocus?: (event: React.FocusEvent) => void;
|
|
92
|
-
/**
|
|
93
|
-
* Callback fired when the clear button is clicked.
|
|
94
|
-
*/
|
|
95
|
-
onClear?: () => void;
|
|
96
|
-
/**
|
|
97
|
-
* Callback fired when a key is pressed inside the input.
|
|
98
|
-
*/
|
|
99
|
-
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
100
|
-
/**
|
|
101
|
-
* If true, displays a clear button inside the search input.
|
|
102
|
-
*/
|
|
103
|
-
showClearIcon?: boolean;
|
|
104
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React, { type ReactElement } from "react";
|
|
2
|
-
import { type AvatarProps, type AvatarSize, type AvatarType } from "@vibe/avatar";
|
|
3
|
-
import type VibeComponentProps from "../../types/VibeComponentProps";
|
|
4
|
-
import { type TooltipProps } from "@vibe/tooltip";
|
|
5
|
-
import { type AvatarGroupCounterVisualProps } from "./AvatarGroup.types";
|
|
6
|
-
export interface AvatarGroupProps extends VibeComponentProps {
|
|
7
|
-
/**
|
|
8
|
-
* Class name applied to each avatar.
|
|
9
|
-
*/
|
|
10
|
-
avatarClassName?: string;
|
|
11
|
-
/**
|
|
12
|
-
* The avatars displayed in the group.
|
|
13
|
-
*/
|
|
14
|
-
children?: ReactElement<AvatarProps> | ReactElement<AvatarProps>[];
|
|
15
|
-
/**
|
|
16
|
-
* The size of the avatars in the group.
|
|
17
|
-
*/
|
|
18
|
-
size?: AvatarSize;
|
|
19
|
-
/**
|
|
20
|
-
* The type of the avatars in the group.
|
|
21
|
-
*/
|
|
22
|
-
type?: AvatarType;
|
|
23
|
-
/**
|
|
24
|
-
* The maximum number of avatars displayed before showing a counter.
|
|
25
|
-
*/
|
|
26
|
-
max?: number;
|
|
27
|
-
/**
|
|
28
|
-
* Props for customizing the counter display.
|
|
29
|
-
*/
|
|
30
|
-
counterProps?: AvatarGroupCounterVisualProps;
|
|
31
|
-
/**
|
|
32
|
-
* Props passed to the Tooltip component. See full options in the [Tooltip documentation](https://vibe.monday.com/?path=/docs/components-tooltip--docs).
|
|
33
|
-
*/
|
|
34
|
-
counterTooltipCustomProps?: Partial<TooltipProps>;
|
|
35
|
-
/**
|
|
36
|
-
* If true, the counter tooltip uses a virtualized list for performance optimization.
|
|
37
|
-
*/
|
|
38
|
-
counterTooltipIsVirtualizedList?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* If true, the component is disabled and non-interactive.
|
|
41
|
-
*/
|
|
42
|
-
disabled?: boolean;
|
|
43
|
-
}
|
|
44
|
-
declare const AvatarGroup: React.FC<AvatarGroupProps>;
|
|
45
|
-
export default AvatarGroup;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type CounterColor } from "@vibe/counter";
|
|
2
|
-
export type AvatarGroupCounterVisualProps = {
|
|
3
|
-
color?: Extract<CounterColor, "light" | "dark">;
|
|
4
|
-
count?: number;
|
|
5
|
-
prefix?: string;
|
|
6
|
-
maxDigits?: number;
|
|
7
|
-
ariaLabelItemsName?: string;
|
|
8
|
-
noAnimation?: boolean;
|
|
9
|
-
tabIndex?: number;
|
|
10
|
-
/**
|
|
11
|
-
* Relevant only for when AvatarGroup contains a clickable avatar
|
|
12
|
-
*/
|
|
13
|
-
dialogContainerSelector?: string;
|
|
14
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React, { type ReactElement } from "react";
|
|
2
|
-
import { type AvatarProps, type AvatarSize, type AvatarType } from "@vibe/avatar";
|
|
3
|
-
import type VibeComponentProps from "../../types/VibeComponentProps";
|
|
4
|
-
import { type AvatarGroupCounterVisualProps } from "./AvatarGroup.types";
|
|
5
|
-
import { type TooltipProps } from "@vibe/tooltip";
|
|
6
|
-
export interface AvatarGroupCounterProps extends VibeComponentProps {
|
|
7
|
-
/**
|
|
8
|
-
* The list of avatars hidden behind the counter.
|
|
9
|
-
*/
|
|
10
|
-
counterTooltipAvatars?: ReactElement<AvatarProps>[];
|
|
11
|
-
/**
|
|
12
|
-
* Props for customizing the counter appearance.
|
|
13
|
-
*/
|
|
14
|
-
counterProps?: AvatarGroupCounterVisualProps;
|
|
15
|
-
/**
|
|
16
|
-
* Props for customizing the counter tooltip.
|
|
17
|
-
*/
|
|
18
|
-
counterTooltipCustomProps?: Partial<TooltipProps>;
|
|
19
|
-
/**
|
|
20
|
-
* If true, the counter tooltip uses a virtualized list for performance optimization.
|
|
21
|
-
*/
|
|
22
|
-
counterTooltipIsVirtualizedList?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* The size of the counter.
|
|
25
|
-
*/
|
|
26
|
-
size?: AvatarSize;
|
|
27
|
-
/**
|
|
28
|
-
* The type of the avatars in the counter.
|
|
29
|
-
*/
|
|
30
|
-
type?: AvatarType;
|
|
31
|
-
/**
|
|
32
|
-
* The label of the counter for accessibility.
|
|
33
|
-
*/
|
|
34
|
-
counterAriaLabel?: string;
|
|
35
|
-
/**
|
|
36
|
-
* If true, the counter is disabled and non-interactive.
|
|
37
|
-
*/
|
|
38
|
-
disabled?: boolean;
|
|
39
|
-
}
|
|
40
|
-
declare const AvatarGroupCounter: React.FC<AvatarGroupCounterProps>;
|
|
41
|
-
export default AvatarGroupCounter;
|
package/dist/mocked_classnames/components/AvatarGroup/AvatarGroupCounterTooltipContainer.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React, { type ReactElement, type RefObject } from "react";
|
|
2
|
-
import { type TooltipProps } from "@vibe/tooltip";
|
|
3
|
-
import { type AvatarProps, type AvatarType } from "@vibe/avatar";
|
|
4
|
-
import type VibeComponentProps from "../../types/VibeComponentProps";
|
|
5
|
-
export interface AvatarGroupCounterTooltipContainerProps extends VibeComponentProps {
|
|
6
|
-
/**
|
|
7
|
-
* The type of avatars displayed in the tooltip.
|
|
8
|
-
*/
|
|
9
|
-
type?: AvatarType;
|
|
10
|
-
/**
|
|
11
|
-
* The counter element and focus placeholders.
|
|
12
|
-
*/
|
|
13
|
-
children?: ReactElement[];
|
|
14
|
-
/**
|
|
15
|
-
* The list of avatars displayed inside the tooltip.
|
|
16
|
-
*/
|
|
17
|
-
avatars?: ReactElement<AvatarProps>[];
|
|
18
|
-
/**
|
|
19
|
-
* Props passed to the Tooltip component. See full options in the [Tooltip documentation](https://vibe.monday.com/?path=/docs/components-tooltip--docs).
|
|
20
|
-
*/
|
|
21
|
-
counterTooltipCustomProps?: Partial<TooltipProps>;
|
|
22
|
-
/**
|
|
23
|
-
* If true, the tooltip uses a virtualized list for performance optimization.
|
|
24
|
-
*/
|
|
25
|
-
counterTooltipIsVirtualizedList?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Ref for the element before the tooltip content, used for keyboard navigation.
|
|
28
|
-
*/
|
|
29
|
-
focusPrevPlaceholderRef?: RefObject<HTMLDivElement>;
|
|
30
|
-
/**
|
|
31
|
-
* Ref for the element after the tooltip content, used for keyboard navigation.
|
|
32
|
-
*/
|
|
33
|
-
focusNextPlaceholderRef?: RefObject<HTMLDivElement>;
|
|
34
|
-
/**
|
|
35
|
-
* Ref for the counter container element.
|
|
36
|
-
*/
|
|
37
|
-
counterContainerRef?: RefObject<HTMLDivElement>;
|
|
38
|
-
}
|
|
39
|
-
declare const AvatarGroupCounterTooltipContainer: React.FC<AvatarGroupCounterTooltipContainerProps>;
|
|
40
|
-
export default AvatarGroupCounterTooltipContainer;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React, { type ReactElement, type Ref } from "react";
|
|
2
|
-
import { type AvatarProps, type AvatarType } from "@vibe/avatar";
|
|
3
|
-
import type VibeComponentProps from "../../types/VibeComponentProps";
|
|
4
|
-
export interface AvatarGroupCounterTooltipContentProps extends VibeComponentProps {
|
|
5
|
-
/**
|
|
6
|
-
* The type of avatars displayed inside the tooltip.
|
|
7
|
-
*/
|
|
8
|
-
type?: AvatarType;
|
|
9
|
-
/**
|
|
10
|
-
* The avatars shown in the tooltip.
|
|
11
|
-
*/
|
|
12
|
-
avatars?: ReactElement<AvatarProps>[];
|
|
13
|
-
/**
|
|
14
|
-
* If true, the tooltip uses a virtualized list for performance optimization.
|
|
15
|
-
*/
|
|
16
|
-
isVirtualizedList?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Ref for the tooltip content container.
|
|
19
|
-
*/
|
|
20
|
-
tooltipContentContainerRef?: Ref<HTMLDivElement>;
|
|
21
|
-
}
|
|
22
|
-
declare const AvatarGroupCounterTooltipContent: React.FC<AvatarGroupCounterTooltipContentProps>;
|
|
23
|
-
export default AvatarGroupCounterTooltipContent;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React, { type CSSProperties, type ReactElement, type Ref } from "react";
|
|
2
|
-
import type VibeComponentProps from "../../types/VibeComponentProps";
|
|
3
|
-
import { type AvatarProps, type AvatarType } from "@vibe/avatar";
|
|
4
|
-
import { type ElementContent } from "../../types";
|
|
5
|
-
export type AvatarItem = {
|
|
6
|
-
value: AvatarProps & {
|
|
7
|
-
tooltipContent: ElementContent;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export interface AvatarGroupCounterTooltipContentVirtualizedListProps extends VibeComponentProps {
|
|
11
|
-
/**
|
|
12
|
-
* The list of avatars displayed in the virtualized tooltip.
|
|
13
|
-
*/
|
|
14
|
-
avatarItems?: AvatarItem[];
|
|
15
|
-
/**
|
|
16
|
-
* Function to render each avatar item.
|
|
17
|
-
*/
|
|
18
|
-
avatarRenderer?: (item: AvatarItem, index: number, style: CSSProperties, type: AvatarType, displayAsGrid: boolean) => ReactElement;
|
|
19
|
-
/**
|
|
20
|
-
* The ARIA label of the tooltip container.
|
|
21
|
-
*/
|
|
22
|
-
tooltipContainerAriaLabel?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Ref for the tooltip content container.
|
|
25
|
-
*/
|
|
26
|
-
tooltipContentContainerRef?: Ref<HTMLDivElement>;
|
|
27
|
-
/**
|
|
28
|
-
* The type of avatars in the tooltip.
|
|
29
|
-
*/
|
|
30
|
-
type?: AvatarType;
|
|
31
|
-
}
|
|
32
|
-
declare const AvatarGroupCounterTooltipContentVirtualizedList: React.FC<AvatarGroupCounterTooltipContentVirtualizedListProps>;
|
|
33
|
-
export default AvatarGroupCounterTooltipContentVirtualizedList;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { type CSSProperties, type RefObject } from "react";
|
|
2
|
-
import { type AvatarProps, type AvatarType } from "@vibe/avatar";
|
|
3
|
-
import { type ElementContent } from "../../types";
|
|
4
|
-
export declare function useTooltipContentTabNavigation({ counterContainerRef, tooltipContentContainerRef, focusPrevPlaceholderRef, focusNextPlaceholderRef, isKeyboardTooltipVisible, setIsKeyboardTooltipVisible }: {
|
|
5
|
-
counterContainerRef: RefObject<HTMLDivElement>;
|
|
6
|
-
tooltipContentContainerRef: RefObject<HTMLElement>;
|
|
7
|
-
focusPrevPlaceholderRef: RefObject<HTMLDivElement>;
|
|
8
|
-
focusNextPlaceholderRef: RefObject<HTMLDivElement>;
|
|
9
|
-
isKeyboardTooltipVisible: boolean;
|
|
10
|
-
setIsKeyboardTooltipVisible: (value: boolean) => void;
|
|
11
|
-
}): void;
|
|
12
|
-
export declare const avatarRenderer: (item: {
|
|
13
|
-
value: AvatarProps & {
|
|
14
|
-
tooltipContent: ElementContent;
|
|
15
|
-
};
|
|
16
|
-
}, index: number, style: CSSProperties, type: AvatarType, displayAsGrid: boolean) => React.JSX.Element;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
|
-
import { type VibeComponentProps } from "../../types";
|
|
3
|
-
import { type SubIcon } from "@vibe/icon";
|
|
4
|
-
import { type InputSize } from "@vibe/base";
|
|
5
|
-
import type { IconButton } from "@vibe/icon-button";
|
|
6
|
-
import { type MenuButton } from "@vibe/menu-button";
|
|
7
|
-
export interface SearchProps extends VibeComponentProps {
|
|
8
|
-
/**
|
|
9
|
-
* The icon used for the search button.
|
|
10
|
-
*/
|
|
11
|
-
searchIconName?: SubIcon;
|
|
12
|
-
/**
|
|
13
|
-
* The icon used for the clear button.
|
|
14
|
-
*/
|
|
15
|
-
clearIconName?: SubIcon;
|
|
16
|
-
/**
|
|
17
|
-
* The label for the clear button, for accessibility purposes.
|
|
18
|
-
*/
|
|
19
|
-
clearIconLabel?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Renders an additional action button in the search input.
|
|
22
|
-
*/
|
|
23
|
-
renderAction?: React.ReactElement<typeof IconButton | typeof MenuButton>;
|
|
24
|
-
/**
|
|
25
|
-
* If true, hides the additional action button when input has text.
|
|
26
|
-
*/
|
|
27
|
-
hideRenderActionOnInput?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* The current value of the search input.
|
|
30
|
-
*/
|
|
31
|
-
value?: HTMLInputElement["value"];
|
|
32
|
-
/**
|
|
33
|
-
* The placeholder text displayed when the input is empty.
|
|
34
|
-
*/
|
|
35
|
-
placeholder?: HTMLInputElement["placeholder"];
|
|
36
|
-
/**
|
|
37
|
-
* The size of the search input, affecting padding and font size.
|
|
38
|
-
*/
|
|
39
|
-
size?: InputSize;
|
|
40
|
-
/**
|
|
41
|
-
* If true, disables the search input.
|
|
42
|
-
*/
|
|
43
|
-
disabled?: HTMLInputElement["disabled"];
|
|
44
|
-
/**
|
|
45
|
-
* If true, displays a loading indicator inside the input.
|
|
46
|
-
*/
|
|
47
|
-
loading?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* If true, automatically focuses the search input on mount.
|
|
50
|
-
*/
|
|
51
|
-
autoFocus?: HTMLInputElement["autofocus"];
|
|
52
|
-
/**
|
|
53
|
-
* Configures the browser's autocomplete behavior.
|
|
54
|
-
*/
|
|
55
|
-
autoComplete?: HTMLInputElement["autocomplete"];
|
|
56
|
-
/**
|
|
57
|
-
* The ARIA label for the search input.
|
|
58
|
-
*/
|
|
59
|
-
inputAriaLabel?: React.AriaAttributes["aria-label"];
|
|
60
|
-
/**
|
|
61
|
-
* If true, indicates that a popup is open.
|
|
62
|
-
*/
|
|
63
|
-
"aria-expanded"?: React.AriaAttributes["aria-expanded"];
|
|
64
|
-
/**
|
|
65
|
-
* Specifies the type of popup associated with the search input.
|
|
66
|
-
*/
|
|
67
|
-
"aria-haspopup"?: React.AriaAttributes["aria-haspopup"];
|
|
68
|
-
/**
|
|
69
|
-
* The debounce rate for input value changes.
|
|
70
|
-
*/
|
|
71
|
-
debounceRate?: number;
|
|
72
|
-
/**
|
|
73
|
-
* The ID of the container where search results are displayed.
|
|
74
|
-
*/
|
|
75
|
-
searchResultsContainerId?: string;
|
|
76
|
-
/**
|
|
77
|
-
* ARIA property indicating the currently active search result.
|
|
78
|
-
*/
|
|
79
|
-
currentAriaResultId?: React.AriaAttributes["aria-activedescendant"];
|
|
80
|
-
/**
|
|
81
|
-
* Callback fired when the search input value changes.
|
|
82
|
-
*/
|
|
83
|
-
onChange?: (value: string) => void;
|
|
84
|
-
/**
|
|
85
|
-
* Callback fired when the search input loses focus.
|
|
86
|
-
*/
|
|
87
|
-
onBlur?: (event: React.FocusEvent) => void;
|
|
88
|
-
/**
|
|
89
|
-
* Callback fired when the search input gains focus.
|
|
90
|
-
*/
|
|
91
|
-
onFocus?: (event: React.FocusEvent) => void;
|
|
92
|
-
/**
|
|
93
|
-
* Callback fired when the clear button is clicked.
|
|
94
|
-
*/
|
|
95
|
-
onClear?: () => void;
|
|
96
|
-
/**
|
|
97
|
-
* Callback fired when a key is pressed inside the input.
|
|
98
|
-
*/
|
|
99
|
-
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
100
|
-
/**
|
|
101
|
-
* If true, displays a clear button inside the search input.
|
|
102
|
-
*/
|
|
103
|
-
showClearIcon?: boolean;
|
|
104
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import r,{useMemo as o}from"react";import t from"classnames";import a from"./AvatarGroupCounter.js";import{avatarOnClick as e}from"./AvatarGroupHelper.js";import s from"./AvatarGroup.module.scss.js";import{ComponentVibeId as i}from"../../tests/constants.js";var n=function(n){var l=n.className,p=n.avatarClassName,u=n.id,c=n.children,d=n.size,v=n.type,m=n.max,A=void 0===m?5:m,f=n.counterProps,y=n.counterTooltipCustomProps,T=n.counterTooltipIsVirtualizedList,C=void 0!==T&&T,b=n.disabled,j=o((function(){if(!c)return{};var o=Array.isArray(c)?c:[c];return{displayAvatars:o.slice(0,A).map((function(o,a){var i,n;return r.cloneElement(o,Object.assign(Object.assign({key:a},null==o?void 0:o.props),{size:d||(null===(i=null==o?void 0:o.props)||void 0===i?void 0:i.size),type:v||(null===(n=null==o?void 0:o.props)||void 0===n?void 0:n.type),className:t(s.avatarContainer,p),onClick:function(r){return e(r,o.props)},disabled:b}))})),counterTooltipAvatars:o.slice(A)}}),[p,c,b,A,d,v]),z=j.displayAvatars,G=j.counterTooltipAvatars;return c?r.createElement("div",{className:t(s.avatarGroupContainer,l),id:u,"data-vibe":i.AVATAR_GROUP},z,r.createElement(a,{counterTooltipAvatars:G,counterProps:f,counterTooltipCustomProps:y,counterTooltipIsVirtualizedList:C,size:d,type:v,disabled:b})):null};export{n as default};
|
|
2
|
-
//# sourceMappingURL=AvatarGroup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarGroup.js","sources":["../../../../../src/components/AvatarGroup/AvatarGroup.tsx"],"sourcesContent":["import React, { type ReactElement, useMemo } from \"react\";\nimport cx from \"classnames\";\nimport { type AvatarProps, type AvatarSize, type AvatarType } from \"@vibe/avatar\";\nimport AvatarGroupCounter from \"./AvatarGroupCounter\";\nimport type VibeComponentProps from \"../../types/VibeComponentProps\";\nimport { avatarOnClick } from \"./AvatarGroupHelper\";\nimport { type TooltipProps } from \"@vibe/tooltip\";\nimport styles from \"./AvatarGroup.module.scss\";\nimport { type AvatarGroupCounterVisualProps } from \"./AvatarGroup.types\";\nimport { ComponentVibeId } from \"../../tests/constants\";\n\nexport interface AvatarGroupProps extends VibeComponentProps {\n /**\n * Class name applied to each avatar.\n */\n avatarClassName?: string;\n /**\n * The avatars displayed in the group.\n */\n children?: ReactElement<AvatarProps> | ReactElement<AvatarProps>[];\n /**\n * The size of the avatars in the group.\n */\n size?: AvatarSize;\n /**\n * The type of the avatars in the group.\n */\n type?: AvatarType;\n /**\n * The maximum number of avatars displayed before showing a counter.\n */\n max?: number;\n /**\n * Props for customizing the counter display.\n */\n counterProps?: AvatarGroupCounterVisualProps;\n /**\n * Props passed to the Tooltip component. See full options in the [Tooltip documentation](https://vibe.monday.com/?path=/docs/components-tooltip--docs).\n */\n counterTooltipCustomProps?: Partial<TooltipProps>;\n /**\n * If true, the counter tooltip uses a virtualized list for performance optimization.\n */\n counterTooltipIsVirtualizedList?: boolean;\n /**\n * If true, the component is disabled and non-interactive.\n */\n disabled?: boolean;\n}\n\nconst AvatarGroup: React.FC<AvatarGroupProps> = ({\n className,\n avatarClassName,\n id,\n children,\n size,\n type,\n max = 5,\n counterProps,\n counterTooltipCustomProps,\n counterTooltipIsVirtualizedList = false,\n disabled\n}) => {\n const { displayAvatars, counterTooltipAvatars } = useMemo(() => {\n if (!children) {\n return {};\n }\n const childrenArray = Array.isArray(children) ? children : [children];\n return {\n displayAvatars: childrenArray.slice(0, max).map((avatar, index) => {\n return React.cloneElement(avatar, {\n key: index,\n ...avatar?.props,\n size: size || avatar?.props?.size,\n type: type || avatar?.props?.type,\n className: cx(styles.avatarContainer, avatarClassName),\n onClick: (event: React.MouseEvent | React.KeyboardEvent) => avatarOnClick(event, avatar.props),\n disabled\n });\n }),\n counterTooltipAvatars: childrenArray.slice(max)\n };\n }, [avatarClassName, children, disabled, max, size, type]);\n\n if (!children) {\n return null;\n }\n\n return (\n <div className={cx(styles.avatarGroupContainer, className)} id={id} data-vibe={ComponentVibeId.AVATAR_GROUP}>\n {displayAvatars}\n <AvatarGroupCounter\n counterTooltipAvatars={counterTooltipAvatars}\n counterProps={counterProps}\n counterTooltipCustomProps={counterTooltipCustomProps}\n counterTooltipIsVirtualizedList={counterTooltipIsVirtualizedList}\n size={size}\n type={type}\n disabled={disabled}\n />\n </div>\n );\n};\n\nexport default AvatarGroup;\n"],"names":["AvatarGroup","_ref","className","avatarClassName","id","children","size","type","_ref$max","max","counterProps","counterTooltipCustomProps","_ref$counterTooltipIs","counterTooltipIsVirtualizedList","disabled","_useMemo","useMemo","childrenArray","Array","isArray","displayAvatars","slice","map","avatar","index","React","cloneElement","key","props","_a","_b","cx","styles","avatarContainer","onClick","event","avatarOnClick","counterTooltipAvatars","createElement","avatarGroupContainer","ComponentVibeId","AVATAR_GROUP","AvatarGroupCounter"],"mappings":"kQAkDA,IAAMA,EAA0C,SAA/BC,GAYZ,IAXHC,EAASD,EAATC,UACAC,EAAeF,EAAfE,gBACAC,EAAEH,EAAFG,GACAC,EAAQJ,EAARI,SACAC,EAAIL,EAAJK,KACAC,EAAIN,EAAJM,KAAIC,EAAAP,EACJQ,IAAAA,OAAM,IAAHD,EAAG,EAACA,EACPE,EAAYT,EAAZS,aACAC,EAAyBV,EAAzBU,0BAAyBC,EAAAX,EACzBY,gCAAAA,OAAkC,IAAHD,GAAQA,EACvCE,EAAQb,EAARa,SAEAC,EAAkDC,GAAQ,WACxD,IAAKX,EACH,MAAO,GAET,IAAMY,EAAgBC,MAAMC,QAAQd,GAAYA,EAAW,CAACA,GAC5D,MAAO,CACLe,eAAgBH,EAAcI,MAAM,EAAGZ,GAAKa,KAAI,SAACC,EAAQC,WACvD,OAAOC,EAAMC,aAAaH,+BACxBI,IAAKH,GACFD,aAAA,EAAAA,EAAQK,OAAK,CAChBtB,KAAMA,YAAQuB,EAAAN,aAAA,EAAAA,EAAQK,4BAAOtB,MAC7BC,KAAMA,YAAQuB,EAAAP,aAAA,EAAAA,EAAQK,4BAAOrB,MAC7BL,UAAW6B,EAAGC,EAAOC,gBAAiB9B,GACtC+B,QAAS,SAACC,GAA6C,OAAKC,EAAcD,EAAOZ,EAAOK,MAAM,EAC9Fd,SAAAA,IAEJ,IACAuB,sBAAuBpB,EAAcI,MAAMZ,GAE/C,GAAG,CAACN,EAAiBE,EAAUS,EAAUL,EAAKH,EAAMC,IAnB5Ca,EAAcL,EAAdK,eAAgBiB,EAAqBtB,EAArBsB,sBAqBxB,OAAKhC,EAKHoB,EAAKa,cAAA,MAAA,CAAApC,UAAW6B,EAAGC,EAAOO,qBAAsBrC,GAAYE,GAAIA,EAAe,YAAAoC,EAAgBC,cAC5FrB,EACDK,EAAAa,cAACI,EAAkB,CACjBL,sBAAuBA,EACvB3B,aAAcA,EACdC,0BAA2BA,EAC3BE,gCAAiCA,EACjCP,KAAMA,EACNC,KAAMA,EACNO,SAAUA,KAbP,IAiBX"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e={avatarGroupContainer:"avatarGroupContainer",avatarContainer:"avatarContainer"};!function(e){const n="s_id-34c07868a875_4_5_24";if("undefined"!=typeof document){const a=document.head||document.getElementsByTagName("head")[0];if(a.querySelector("#"+n))return;const t=document.createElement("style");t.id=n,a.firstChild?a.insertBefore(t,a.firstChild):a.appendChild(t),t.appendChild(document.createTextNode(e))}else globalThis.injectedStyles&&(globalThis.injectedStyles[n]=e)}(".avatarGroupContainer {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n position: relative;\n padding: 0;\n margin: 0;\n}\n\n.avatarContainer {\n margin-inline-start: calc(-1 * var(--space-8));\n}");export{e as default};
|
|
2
|
-
//# sourceMappingURL=AvatarGroup.module.scss.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarGroupConstants.js","sources":["../../../../../src/components/AvatarGroup/AvatarGroupConstants.ts"],"sourcesContent":["export const AVATAR_GROUP_COUNTER_TOOLTIP_SHOW_DELAY = 200;\nexport const AVATAR_GROUP_COUNTER_AVATAR_SIZE = 22;\n"],"names":["AVATAR_GROUP_COUNTER_TOOLTIP_SHOW_DELAY","AVATAR_GROUP_COUNTER_AVATAR_SIZE"],"mappings":"AAAO,IAAMA,EAA0C,IAC1CC,EAAmC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{defineProperty as e}from"../../../_virtual/_rollupPluginBabelHelpers.js";import o,{useRef as t,useCallback as r}from"react";import a from"classnames";import{Counter as i}from"@vibe/counter/mockedClassNames";import{MenuButton as n}from"@vibe/menu-button/mockedClassNames";import{Menu as l,AvatarMenuItem as s}from"@vibe/menu/mockedClassNames";import m from"./AvatarGroupCounterTooltipContainer.js";import{getStyle as u}from"@vibe/shared";import{avatarOnClick as c}from"./AvatarGroupHelper.js";import d from"./AvatarGroupCounter.module.scss.js";import{AVATAR_GROUP_COUNTER_AVATAR_SIZE as p}from"./AvatarGroupConstants.js";var v=function(v){var f=v.counterTooltipAvatars,b=void 0===f?[]:f,C=v.counterTooltipCustomProps,x=v.counterTooltipIsVirtualizedList,I=void 0!==x&&x,P=v.size,g=void 0===P?"medium":P,N=v.type,E=v.counterAriaLabel,A=v.disabled,j=v.counterProps||{},z=j.color,T=void 0===z?"light":z,h=j.count,k=void 0===h?b.length:h,y=j.prefix,G=void 0===y?"+":y,L=j.maxDigits,O=void 0===L?3:L,R=j.ariaLabelItemsName,S=void 0===R?"items":R,D=j.noAnimation,H=j.dialogContainerSelector,V=j.tabIndex,_=void 0===V?0:V,B=u(d,null==g?void 0:""+g),M=d[T],q=t(null),w=t(null),F=t(null),J=r((function(){return o.createElement(i,{color:T,count:k,prefix:G,maxDigits:O,"aria-label":E||"Tab for more ".concat(S),noAnimation:D,counterClassName:a(e({},d.disabled,A)),size:"xs"===g?"xs":void 0})}),[E,S,T,O,G,k,A,D]);return b.length||k?A?o.createElement("div",{ref:F,className:a(d.counterContainer,d.disabled,B,M)},J()):b.some((function(e){var o;return null===(o=e.props)||void 0===o?void 0:o.onClick}))?o.createElement(n,{component:J,zIndex:1,className:a(d.counterContainer,B,M),"aria-label":E||"".concat(k," additional ").concat(S),dialogContainerSelector:H},o.createElement(l,{id:"menu",size:"medium",className:d.menu,focusItemIndexOnMount:0},b.map((function(e,t){var r,a,i,n;return o.createElement(s,{menuItemProps:{key:(null===(r=e.props)||void 0===r?void 0:r.id)||t+"",title:(null===(i=null===(a=e.props)||void 0===a?void 0:a.tooltipProps)||void 0===i?void 0:i.content)||(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n["aria-label"]),onClick:function(o){return c(o,e.props)}},avatarProps:Object.assign(Object.assign({},e.props),{customSize:p,"aria-label":"",tabIndex:-1})})})))):o.createElement(m,{focusPrevPlaceholderRef:q,focusNextPlaceholderRef:w,counterContainerRef:F,avatars:b,counterTooltipCustomProps:C,counterTooltipIsVirtualizedList:I,type:N},o.createElement("div",{tabIndex:-1,ref:q}),o.createElement("div",{tabIndex:_,className:a(d.counterContainer,B,M),ref:F},J(),o.createElement("div",{tabIndex:-1,ref:w}))):null};export{v as default};
|
|
2
|
-
//# sourceMappingURL=AvatarGroupCounter.js.map
|