@clayui/badge 3.141.2-alpha.0 → 3.143.1
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 +28 -0
- package/package.json +9 -6
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com>
|
|
3
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
declare type DisplayType = 'primary' | 'secondary' | 'info' | 'danger' | 'success' | 'warning' | 'beta' | 'beta-dark';
|
|
7
|
+
interface IProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
8
|
+
/**
|
|
9
|
+
* Flag to indicate if the badge should use the clay-dark variant.
|
|
10
|
+
*/
|
|
11
|
+
dark?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Determines the color of the badge.
|
|
14
|
+
* The values `beta` and `beta-dark` are deprecated since v3.100.0 - use
|
|
15
|
+
* `translucent` and `dark` instead.
|
|
16
|
+
*/
|
|
17
|
+
displayType?: DisplayType;
|
|
18
|
+
/**
|
|
19
|
+
* Info that is shown inside of the badge itself.
|
|
20
|
+
*/
|
|
21
|
+
label?: string | number;
|
|
22
|
+
/**
|
|
23
|
+
* Flag to indicate if the badge should use the translucent variant.
|
|
24
|
+
*/
|
|
25
|
+
translucent?: boolean;
|
|
26
|
+
}
|
|
27
|
+
declare const Badge: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLSpanElement>>;
|
|
28
|
+
export default Badge;
|
package/package.json
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clayui/badge",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.143.1",
|
|
4
4
|
"description": "ClayBadge component",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"repository": "https://github.com/liferay/clay",
|
|
7
7
|
"main": "lib/cjs/index.js",
|
|
8
8
|
"module": "lib/esm/index.js",
|
|
9
9
|
"exports": {
|
|
10
|
-
"
|
|
11
|
-
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./lib/esm/index.js",
|
|
12
|
+
"require": "./lib/cjs/index.js",
|
|
13
|
+
"types": "./lib/index.d.ts"
|
|
14
|
+
}
|
|
12
15
|
},
|
|
13
16
|
"types": "lib/index.d.ts",
|
|
14
17
|
"ts:main": "src/index.tsx",
|
|
@@ -31,11 +34,11 @@
|
|
|
31
34
|
},
|
|
32
35
|
"peerDependencies": {
|
|
33
36
|
"@clayui/css": "3.x",
|
|
34
|
-
"react": "^
|
|
35
|
-
"react-dom": "^
|
|
37
|
+
"react": "^18.2.0",
|
|
38
|
+
"react-dom": "^18.2.0"
|
|
36
39
|
},
|
|
37
40
|
"browserslist": [
|
|
38
41
|
"extends browserslist-config-clay"
|
|
39
42
|
],
|
|
40
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "33ff92129a27cdd394f1920330f70622203a1a52"
|
|
41
44
|
}
|