@clayui/label 3.141.2-alpha.0 → 3.143.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.
- package/lib/index.d.ts +49 -0
- package/package.json +6 -6
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com>
|
|
3
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
export declare const ItemAfter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
export declare const ItemBefore: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
export declare const ItemExpand: React.ForwardRefExoticComponent<React.BaseHTMLAttributes<HTMLSpanElement | HTMLAnchorElement> & React.RefAttributes<HTMLSpanElement | HTMLAnchorElement>>;
|
|
9
|
+
interface IBaseProps extends React.BaseHTMLAttributes<HTMLSpanElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Flag to indicate if `label-dismissible` class should be applied.
|
|
12
|
+
*/
|
|
13
|
+
dismissible?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Determines the style of the label.
|
|
16
|
+
*/
|
|
17
|
+
displayType?: 'secondary' | 'info' | 'warning' | 'danger' | 'success' | 'unstyled';
|
|
18
|
+
/**
|
|
19
|
+
* Flag to indicate if the label should be of the `large` variant.
|
|
20
|
+
*/
|
|
21
|
+
large?: boolean;
|
|
22
|
+
}
|
|
23
|
+
interface IProps extends IBaseProps {
|
|
24
|
+
/**
|
|
25
|
+
* HTML properties that are applied to the 'x' button.
|
|
26
|
+
*/
|
|
27
|
+
closeButtonProps?: React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
28
|
+
ref?: (instance: HTMLButtonElement | null) => void;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Pros to add to the inner label item
|
|
32
|
+
*/
|
|
33
|
+
innerElementProps?: React.ComponentProps<typeof ItemExpand>;
|
|
34
|
+
/**
|
|
35
|
+
* Path to the location of the spritemap resource used for Icon.
|
|
36
|
+
*/
|
|
37
|
+
spritemap?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Flag to indicate if component should include the close button
|
|
40
|
+
*/
|
|
41
|
+
withClose?: boolean;
|
|
42
|
+
}
|
|
43
|
+
interface IForwardRef<T, P = {}> extends React.ForwardRefExoticComponent<P & React.RefAttributes<T>> {
|
|
44
|
+
ItemAfter: typeof ItemAfter;
|
|
45
|
+
ItemBefore: typeof ItemBefore;
|
|
46
|
+
ItemExpand: typeof ItemExpand;
|
|
47
|
+
}
|
|
48
|
+
declare const Label: IForwardRef<HTMLSpanElement | HTMLAnchorElement, IProps>;
|
|
49
|
+
export default Label;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clayui/label",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.143.0",
|
|
4
4
|
"description": "ClayLabel component",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"repository": "https://github.com/liferay/clay",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"react"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@clayui/icon": "^3.
|
|
31
|
-
"@clayui/link": "^3.
|
|
30
|
+
"@clayui/icon": "^3.143.0",
|
|
31
|
+
"@clayui/link": "^3.143.0",
|
|
32
32
|
"classnames": "^2.2.6"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@clayui/css": "3.x",
|
|
36
|
-
"react": "^
|
|
37
|
-
"react-dom": "^
|
|
36
|
+
"react": "^18.2.0",
|
|
37
|
+
"react-dom": "^18.2.0"
|
|
38
38
|
},
|
|
39
39
|
"browserslist": [
|
|
40
40
|
"extends browserslist-config-clay"
|
|
41
41
|
],
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "aacf20646cc7fb25c4d60e865ec77d2d503d23e9"
|
|
43
43
|
}
|