gantri-components 2.1.2 → 2.2.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.
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { PaletteColor } from '../../styles/theme';
|
|
2
2
|
import { IconType } from '../icon/icon.type';
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {'large' | 'small'} BadgeSize
|
|
5
|
+
* @deprecated The `small` size has been deprecated and will be removed in a future release. Please don't use the size prop at all anymore since the default size is `large`.
|
|
6
|
+
*/
|
|
7
|
+
export type BadgeSize = 'large' | 'small';
|
|
3
8
|
export interface BadgeProps {
|
|
4
9
|
borderColor?: PaletteColor;
|
|
5
10
|
color?: PaletteColor;
|
|
6
11
|
icon?: IconType;
|
|
7
12
|
minWidth?: string;
|
|
8
13
|
opacity?: string;
|
|
9
|
-
size?:
|
|
14
|
+
size?: BadgeSize;
|
|
10
15
|
text?: string;
|
|
11
16
|
textColor?: PaletteColor;
|
|
12
17
|
tx?: string;
|