Skip to content

Commit 1ff3486

Browse files
fix: exports the missing types
1 parent 2f384ce commit 1ff3486

File tree

7 files changed

+21
-5
lines changed

7 files changed

+21
-5
lines changed

packages/clay-multi-select/src/MultiSelect.tsx

+11
Original file line numberDiff line numberDiff line change
@@ -538,3 +538,14 @@ export const MultiSelect = React.forwardRef(function MultiSelectInner<
538538
</Container>
539539
);
540540
}) 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;

packages/clay-multi-select/src/index.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
import {Item} from '@clayui/autocomplete';
77

8-
import {MultiSelect} from './MultiSelect';
8+
import {MultiSelect, itemLabelFilter} from './MultiSelect';
9+
import type {IProps} from './MultiSelect';
910

11+
export {itemLabelFilter};
12+
export type {IProps};
1013
export default Object.assign(MultiSelect, {Item});

packages/clay-navigation-bar/src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import warning from 'warning';
1616
import {Item} from './Item';
1717
import {NavigationBarContext} from './context';
1818

19-
interface IProps
19+
export interface IProps
2020
extends Omit<React.HTMLAttributes<HTMLDivElement>, 'aria-current'> {
2121
/**
2222
* Flag to define if the item represents the current page. Disable this

packages/clay-panel/src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {Group} from './Group';
2222
import {Header} from './Header';
2323
import {Title} from './Title';
2424

25-
interface IProps extends React.HTMLAttributes<HTMLDivElement> {
25+
export interface IProps extends React.HTMLAttributes<HTMLDivElement> {
2626
/**
2727
* Flag to indicate that Panel is collapsable.
2828
*/

packages/clay-popover/src/index.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
*/
55

66
import {Popover} from './Popover';
7+
import type {ALIGN_POSITIONS} from './Popover';
78

89
export {Popover};
10+
export type {ALIGN_POSITIONS};
911
export default Popover;

packages/clay-tabs/src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import TabPane from './TabPane';
1313

1414
export type DisplayType = null | 'basic' | 'underline';
1515

16-
interface IProps extends React.HTMLAttributes<HTMLUListElement> {
16+
export interface IProps extends React.HTMLAttributes<HTMLUListElement> {
1717
/**
1818
* Flag to indicate the navigation behavior in the tab.
1919
*

packages/clay-upper-toolbar/src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import ClayLayout from '@clayui/layout';
88
import classNames from 'classnames';
99
import React from 'react';
1010

11-
interface IInputProps extends React.ComponentProps<typeof ClayInput> {}
11+
export interface IInputProps extends React.ComponentProps<typeof ClayInput> {}
1212

1313
export const Input = ({className, ...otherProps}: IInputProps) => (
1414
<Item expand>

0 commit comments

Comments
 (0)