@clayui/label 3.143.2 → 3.156.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/cjs/index.js +7 -8
- package/lib/esm/index.js +7 -8
- package/lib/index.d.ts +5 -6
- package/package.json +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -71,10 +71,7 @@ const OldLabel = /*#__PURE__*/_react.default.forwardRef((_ref4, ref) => {
|
|
|
71
71
|
}), children);
|
|
72
72
|
});
|
|
73
73
|
OldLabel.displayName = 'ClayLabel';
|
|
74
|
-
|
|
75
|
-
return /*#__PURE__*/_react.default.forwardRef(component);
|
|
76
|
-
}
|
|
77
|
-
const Label = forwardRef((_ref5, ref) => {
|
|
74
|
+
const LabelComponent = /*#__PURE__*/_react.default.forwardRef((_ref5, ref) => {
|
|
78
75
|
let {
|
|
79
76
|
children,
|
|
80
77
|
closeButtonProps,
|
|
@@ -98,8 +95,10 @@ const Label = forwardRef((_ref5, ref) => {
|
|
|
98
95
|
symbol: "times-small"
|
|
99
96
|
})))));
|
|
100
97
|
});
|
|
101
|
-
|
|
102
|
-
Label
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
LabelComponent.displayName = 'ClayLabel';
|
|
99
|
+
const Label = Object.assign(LabelComponent, {
|
|
100
|
+
ItemAfter,
|
|
101
|
+
ItemBefore,
|
|
102
|
+
ItemExpand
|
|
103
|
+
});
|
|
105
104
|
var _default = exports.default = Label;
|
package/lib/esm/index.js
CHANGED
|
@@ -66,10 +66,7 @@ const OldLabel = /*#__PURE__*/React.forwardRef((_ref4, ref) => {
|
|
|
66
66
|
}), children);
|
|
67
67
|
});
|
|
68
68
|
OldLabel.displayName = 'ClayLabel';
|
|
69
|
-
|
|
70
|
-
return /*#__PURE__*/React.forwardRef(component);
|
|
71
|
-
}
|
|
72
|
-
const Label = forwardRef((_ref5, ref) => {
|
|
69
|
+
const LabelComponent = /*#__PURE__*/React.forwardRef((_ref5, ref) => {
|
|
73
70
|
let {
|
|
74
71
|
children,
|
|
75
72
|
closeButtonProps,
|
|
@@ -93,8 +90,10 @@ const Label = forwardRef((_ref5, ref) => {
|
|
|
93
90
|
symbol: "times-small"
|
|
94
91
|
})))));
|
|
95
92
|
});
|
|
96
|
-
|
|
97
|
-
Label
|
|
98
|
-
|
|
99
|
-
|
|
93
|
+
LabelComponent.displayName = 'ClayLabel';
|
|
94
|
+
const Label = Object.assign(LabelComponent, {
|
|
95
|
+
ItemAfter,
|
|
96
|
+
ItemBefore,
|
|
97
|
+
ItemExpand
|
|
98
|
+
});
|
|
100
99
|
export default Label;
|
package/lib/index.d.ts
CHANGED
|
@@ -40,10 +40,9 @@ interface IProps extends IBaseProps {
|
|
|
40
40
|
*/
|
|
41
41
|
withClose?: boolean;
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
ItemAfter:
|
|
45
|
-
ItemBefore:
|
|
46
|
-
ItemExpand:
|
|
47
|
-
}
|
|
48
|
-
declare const Label: IForwardRef<HTMLSpanElement | HTMLAnchorElement, IProps>;
|
|
43
|
+
declare const Label: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLSpanElement | HTMLAnchorElement>> & {
|
|
44
|
+
ItemAfter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
45
|
+
ItemBefore: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
46
|
+
ItemExpand: React.ForwardRefExoticComponent<React.BaseHTMLAttributes<HTMLSpanElement | HTMLAnchorElement> & React.RefAttributes<HTMLSpanElement | HTMLAnchorElement>>;
|
|
47
|
+
};
|
|
49
48
|
export default Label;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clayui/label",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.156.0",
|
|
4
4
|
"description": "ClayLabel component",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"repository": "https://github.com/liferay/clay",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"react"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@clayui/icon": "^3.
|
|
34
|
-
"@clayui/link": "^3.
|
|
33
|
+
"@clayui/icon": "^3.144.1",
|
|
34
|
+
"@clayui/link": "^3.144.1",
|
|
35
35
|
"classnames": "^2.2.6"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@clayui/css": "3.x",
|
|
39
|
-
"react": "^18.
|
|
40
|
-
"react-dom": "^18.
|
|
39
|
+
"react": "^16.0.0 || ^17.0.0 || ^18.0.0",
|
|
40
|
+
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0"
|
|
41
41
|
},
|
|
42
42
|
"browserslist": [
|
|
43
43
|
"extends browserslist-config-clay"
|
|
44
44
|
],
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "55d9470c2c3c9253c7ba7f8dd8bd36fdef0ffe49"
|
|
46
46
|
}
|