@carbon-labs/react-ui-shell 0.81.0 → 0.82.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/es/node_modules/@carbon/ibm-products/es/components/TooltipTrigger/TooltipTrigger.js +1 -2
- package/es/node_modules/@carbon/ibm-products/es/components/UserAvatar/UserAvatar.js +1 -2
- package/lib/node_modules/@carbon/ibm-products/es/components/TooltipTrigger/TooltipTrigger.js +5 -4
- package/lib/node_modules/@carbon/ibm-products/es/components/UserAvatar/UserAvatar.js +5 -4
- package/package.json +3 -3
|
@@ -21,7 +21,7 @@ const componentName = 'TooltipTrigger';
|
|
|
21
21
|
* This is an tooltip trigger as Carbon Tooltip requires an active element to work but provides
|
|
22
22
|
* no blanked button.
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
const TooltipTrigger = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
25
25
|
let {
|
|
26
26
|
children,
|
|
27
27
|
className,
|
|
@@ -40,7 +40,6 @@ let TooltipTrigger = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
// Return a placeholder if not released and not enabled by feature flag.
|
|
43
|
-
TooltipTrigger = pkg.checkComponentEnabled(TooltipTrigger, componentName);
|
|
44
43
|
|
|
45
44
|
// The display name of the component, used by React. Note that displayName
|
|
46
45
|
// is used in preference to relying on function.name.
|
|
@@ -28,7 +28,7 @@ const componentName = 'UserAvatar';
|
|
|
28
28
|
* TODO: A description of the component.
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
const UserAvatar = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
32
32
|
const {
|
|
33
33
|
backgroundColor = 'order-1-cyan',
|
|
34
34
|
className,
|
|
@@ -106,7 +106,6 @@ let UserAvatar = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
|
106
106
|
});
|
|
107
107
|
|
|
108
108
|
// Return a placeholder if not released and not enabled by feature flag
|
|
109
|
-
UserAvatar = pkg.checkComponentEnabled(UserAvatar, componentName);
|
|
110
109
|
|
|
111
110
|
// The display name of the component, used by React. Note that displayName
|
|
112
111
|
// is used in preference to relying on function.name.
|
package/lib/node_modules/@carbon/ibm-products/es/components/TooltipTrigger/TooltipTrigger.js
CHANGED
|
@@ -23,7 +23,7 @@ const componentName = 'TooltipTrigger';
|
|
|
23
23
|
* This is an tooltip trigger as Carbon Tooltip requires an active element to work but provides
|
|
24
24
|
* no blanked button.
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
const TooltipTrigger = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
27
27
|
let {
|
|
28
28
|
children,
|
|
29
29
|
className,
|
|
@@ -42,16 +42,15 @@ exports.TooltipTrigger = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
// Return a placeholder if not released and not enabled by feature flag.
|
|
45
|
-
exports.TooltipTrigger = settings.pkg.checkComponentEnabled(exports.TooltipTrigger, componentName);
|
|
46
45
|
|
|
47
46
|
// The display name of the component, used by React. Note that displayName
|
|
48
47
|
// is used in preference to relying on function.name.
|
|
49
|
-
|
|
48
|
+
TooltipTrigger.displayName = componentName;
|
|
50
49
|
|
|
51
50
|
// The types and DocGen commentary for the component props,
|
|
52
51
|
// in alphabetical order (for consistency).
|
|
53
52
|
// See https://www.npmjs.com/package/prop-types#usage.
|
|
54
|
-
|
|
53
|
+
TooltipTrigger.propTypes = {
|
|
55
54
|
/**
|
|
56
55
|
* Child content of tooltip trigger
|
|
57
56
|
*/
|
|
@@ -61,3 +60,5 @@ exports.TooltipTrigger.propTypes = {
|
|
|
61
60
|
*/
|
|
62
61
|
className: index.default.string
|
|
63
62
|
};
|
|
63
|
+
|
|
64
|
+
exports.TooltipTrigger = TooltipTrigger;
|
|
@@ -30,7 +30,7 @@ const componentName = 'UserAvatar';
|
|
|
30
30
|
* TODO: A description of the component.
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
const UserAvatar = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
34
34
|
const {
|
|
35
35
|
backgroundColor = 'order-1-cyan',
|
|
36
36
|
className,
|
|
@@ -108,16 +108,15 @@ exports.UserAvatar = /*#__PURE__*/React__default.forwardRef((props, ref) => {
|
|
|
108
108
|
});
|
|
109
109
|
|
|
110
110
|
// Return a placeholder if not released and not enabled by feature flag
|
|
111
|
-
exports.UserAvatar = settings.pkg.checkComponentEnabled(exports.UserAvatar, componentName);
|
|
112
111
|
|
|
113
112
|
// The display name of the component, used by React. Note that displayName
|
|
114
113
|
// is used in preference to relying on function.name.
|
|
115
|
-
|
|
114
|
+
UserAvatar.displayName = componentName;
|
|
116
115
|
|
|
117
116
|
// The types and DocGen commentary for the component props,
|
|
118
117
|
// in alphabetical order (for consistency).
|
|
119
118
|
// See https://www.npmjs.com/package/prop-types#usage.
|
|
120
|
-
|
|
119
|
+
UserAvatar.propTypes = {
|
|
121
120
|
/**
|
|
122
121
|
* Provide the background color need to be set for UserAvatar. Background color will be set based on lighter or darker theme.
|
|
123
122
|
* For example: if you select order-5-purple, it will take $purple-60 for lighter theme and $purple-50 for darker theme.
|
|
@@ -160,3 +159,5 @@ exports.UserAvatar.propTypes = {
|
|
|
160
159
|
tooltipText: index.default.string
|
|
161
160
|
/* TODO: add types and DocGen for all props. */
|
|
162
161
|
};
|
|
162
|
+
|
|
163
|
+
exports.UserAvatar = UserAvatar;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon-labs/react-ui-shell",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.82.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@carbon-labs/utilities": "canary",
|
|
40
|
-
"@carbon/ibm-products": "^2.
|
|
40
|
+
"@carbon/ibm-products": "^2.76.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@ibm/telemetry-js": "^1.10.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "5520cf06630215524af572ddea13596eaf8a0811"
|
|
46
46
|
}
|