Skip to content

Commit c507341

Browse files
fix: exports displayType types
1 parent 1ff3486 commit c507341

File tree

5 files changed

+33
-1
lines changed

5 files changed

+33
-1
lines changed

packages/clay-alert/src/index.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ const useAutoClose = (autoClose?: boolean | number, onClose = () => {}) => {
5555
};
5656
};
5757

58+
export type DisplayType =
59+
| 'danger'
60+
| 'info'
61+
| 'secondary'
62+
| 'success'
63+
| 'warning';
64+
5865
interface IClayAlertProps
5966
extends Omit<React.HTMLAttributes<HTMLDivElement>, 'role'> {
6067
/**

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

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import {Item} from '@clayui/autocomplete';
77

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

1112
export {itemLabelFilter};

packages/clay-popover/src/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55

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

910
export {Popover};

packages/clay-sticker/src/Sticker.tsx

+21
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,27 @@
66
import classNames from 'classnames';
77
import React from 'react';
88

9+
export type DisplayType =
10+
| 'danger'
11+
| 'dark'
12+
| 'info'
13+
| 'light'
14+
| 'primary'
15+
| 'secondary'
16+
| 'success'
17+
| 'unstyled'
18+
| 'warning'
19+
| 'outline-0'
20+
| 'outline-1'
21+
| 'outline-2'
22+
| 'outline-3'
23+
| 'outline-4'
24+
| 'outline-5'
25+
| 'outline-6'
26+
| 'outline-7'
27+
| 'outline-8'
28+
| 'outline-9';
29+
930
interface IClayStickerProps extends React.HTMLAttributes<HTMLSpanElement> {
1031
/**
1132
* Determines the color of the sticker.

packages/clay-sticker/src/index.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
import Sticker from './Sticker';
77

8+
import type {DisplayType} from './Sticker';
9+
810
type IClayStickerProps = React.ComponentProps<typeof Sticker>;
911

10-
export type {IClayStickerProps};
12+
export type {DisplayType, IClayStickerProps};
1113
export default Sticker;

0 commit comments

Comments
 (0)