File tree 7 files changed +21
-5
lines changed
7 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -538,3 +538,14 @@ export const MultiSelect = React.forwardRef(function MultiSelectInner<
538
538
</ Container >
539
539
) ;
540
540
} ) as Component ;
541
+
542
+ /**
543
+ * Utility used for filtering an array of items based off the locator which
544
+ * is set to `label` by default.
545
+ * @deprecated since v3.95.2 - it is no longer necessary...
546
+ */
547
+ export const itemLabelFilter = (
548
+ items : Array < Item > ,
549
+ _value : string ,
550
+ _locator = 'label'
551
+ ) => items ;
Original file line number Diff line number Diff line change 5
5
6
6
import { Item } from '@clayui/autocomplete' ;
7
7
8
- import { MultiSelect } from './MultiSelect' ;
8
+ import { MultiSelect , itemLabelFilter } from './MultiSelect' ;
9
+ import type { IProps } from './MultiSelect' ;
9
10
11
+ export { itemLabelFilter } ;
12
+ export type { IProps } ;
10
13
export default Object . assign ( MultiSelect , { Item} ) ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import warning from 'warning';
16
16
import { Item } from './Item' ;
17
17
import { NavigationBarContext } from './context' ;
18
18
19
- interface IProps
19
+ export interface IProps
20
20
extends Omit < React . HTMLAttributes < HTMLDivElement > , 'aria-current' > {
21
21
/**
22
22
* Flag to define if the item represents the current page. Disable this
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import {Group} from './Group';
22
22
import { Header } from './Header' ;
23
23
import { Title } from './Title' ;
24
24
25
- interface IProps extends React . HTMLAttributes < HTMLDivElement > {
25
+ export interface IProps extends React . HTMLAttributes < HTMLDivElement > {
26
26
/**
27
27
* Flag to indicate that Panel is collapsable.
28
28
*/
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
import { Popover } from './Popover' ;
7
+ import type { ALIGN_POSITIONS } from './Popover' ;
7
8
8
9
export { Popover } ;
10
+ export type { ALIGN_POSITIONS } ;
9
11
export default Popover ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import TabPane from './TabPane';
13
13
14
14
export type DisplayType = null | 'basic' | 'underline' ;
15
15
16
- interface IProps extends React . HTMLAttributes < HTMLUListElement > {
16
+ export interface IProps extends React . HTMLAttributes < HTMLUListElement > {
17
17
/**
18
18
* Flag to indicate the navigation behavior in the tab.
19
19
*
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import ClayLayout from '@clayui/layout';
8
8
import classNames from 'classnames' ;
9
9
import React from 'react' ;
10
10
11
- interface IInputProps extends React . ComponentProps < typeof ClayInput > { }
11
+ export interface IInputProps extends React . ComponentProps < typeof ClayInput > { }
12
12
13
13
export const Input = ( { className, ...otherProps } : IInputProps ) => (
14
14
< Item expand >
You can’t perform that action at this time.
0 commit comments