@carbon-labs/react-ui-shell 0.60.0 → 0.61.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/components/HeaderContainer.js +10 -11
- package/es/components/HeaderDivider.js +6 -7
- package/es/components/HeaderPopover.js +28 -31
- package/es/components/Link.js +10 -11
- package/es/components/Profile.js +31 -34
- package/es/components/SharkFinIcon.js +10 -11
- package/es/components/SideNav.js +38 -40
- package/es/components/SideNavFlyoutMenu.js +29 -31
- package/es/components/SideNavItems.js +12 -13
- package/es/components/SideNavLink.js +18 -19
- package/es/components/SideNavLinkPopover.js +8 -9
- package/es/components/SideNavMenu.js +40 -42
- package/es/components/SideNavMenuItem.js +9 -9
- package/es/components/SideNavSlot.js +10 -11
- package/es/components/SideNavToggle.js +11 -12
- package/es/components/TrialCountdown.js +10 -11
- package/es/internal/keyboard/match.js +6 -7
- package/es/internal/useDelayedState.js +1 -2
- package/es/internal/useId.js +4 -6
- package/es/internal/useIdPrefix.js +3 -3
- package/es/internal/usePrefix.js +3 -3
- package/es/internal/warning.js +1 -4
- package/es/node_modules/@carbon/ibm-products/es/components/TooltipTrigger/TooltipTrigger.js +4 -4
- package/es/node_modules/@carbon/ibm-products/es/components/UserAvatar/UserAvatar.js +10 -10
- package/es/node_modules/@carbon/ibm-products/es/components/_Canary/Canary.js +5 -5
- package/es/node_modules/@carbon/ibm-products/es/settings.js +2 -2
- package/es/prop-types/deprecate.js +1 -4
- package/es/prop-types/isRequiredOneOf.js +1 -4
- package/lib/components/HeaderContainer.js +18 -19
- package/lib/components/HeaderDivider.js +7 -8
- package/lib/components/HeaderPopover.js +34 -37
- package/lib/components/Link.js +11 -12
- package/lib/components/Profile.js +34 -37
- package/lib/components/SharkFinIcon.js +11 -12
- package/lib/components/SideNav.js +54 -56
- package/lib/components/SideNavFlyoutMenu.js +44 -46
- package/lib/components/SideNavItems.js +16 -17
- package/lib/components/SideNavLink.js +20 -21
- package/lib/components/SideNavLinkPopover.js +9 -10
- package/lib/components/SideNavMenu.js +60 -62
- package/lib/components/SideNavMenuItem.js +12 -12
- package/lib/components/SideNavSlot.js +11 -12
- package/lib/components/SideNavToggle.js +12 -13
- package/lib/components/TrialCountdown.js +11 -12
- package/lib/internal/keyboard/match.js +6 -7
- package/lib/internal/useDelayedState.js +5 -6
- package/lib/internal/useEvent.js +4 -4
- package/lib/internal/useId.js +7 -9
- package/lib/internal/useIdPrefix.js +3 -3
- package/lib/internal/useMatchMedia.js +3 -3
- package/lib/internal/useMergedRefs.js +2 -2
- package/lib/internal/usePrefix.js +3 -3
- package/lib/internal/warning.js +1 -4
- package/lib/node_modules/@carbon/ibm-products/es/components/TooltipTrigger/TooltipTrigger.js +8 -8
- package/lib/node_modules/@carbon/ibm-products/es/components/UserAvatar/UserAvatar.js +11 -11
- package/lib/node_modules/@carbon/ibm-products/es/components/_Canary/Canary.js +9 -9
- package/lib/node_modules/@carbon/ibm-products/es/settings.js +2 -2
- package/lib/prop-types/deprecate.js +1 -4
- package/lib/prop-types/isRequiredOneOf.js +1 -4
- package/package.json +3 -3
- package/es/_virtual/_commonjsHelpers.js +0 -12
- package/es/_virtual/index.js +0 -14
- package/es/_virtual/index2.js +0 -10
- package/es/node_modules/@carbon/icons-react/es/Icon.js +0 -71
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-0.js +0 -2956
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-15.js +0 -3043
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +0 -3181
- package/es/node_modules/@carbon/icons-react/es/iconPropTypes-4cbeb95d.js +0 -14
- package/es/node_modules/@carbon/icons-react/node_modules/@carbon/icon-helpers/es/index.js +0 -125
- package/es/node_modules/classnames/index.js +0 -71
- package/lib/_virtual/_commonjsHelpers.js +0 -14
- package/lib/_virtual/index.js +0 -18
- package/lib/_virtual/index2.js +0 -12
- package/lib/node_modules/@carbon/icons-react/es/Icon.js +0 -75
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-0.js +0 -3082
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-15.js +0 -3169
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +0 -3307
- package/lib/node_modules/@carbon/icons-react/es/iconPropTypes-4cbeb95d.js +0 -16
- package/lib/node_modules/@carbon/icons-react/node_modules/@carbon/icon-helpers/es/index.js +0 -128
- package/lib/node_modules/classnames/index.js +0 -73
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright IBM Corp. 2024
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
'use strict';
|
|
9
|
-
|
|
10
|
-
var PropTypes = require('prop-types');
|
|
11
|
-
|
|
12
|
-
const iconPropTypes = {
|
|
13
|
-
size: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
exports.i = iconPropTypes;
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright IBM Corp. 2024
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
'use strict';
|
|
9
|
-
|
|
10
|
-
function _defineProperty(e, r, t) {
|
|
11
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
12
|
-
value: t,
|
|
13
|
-
enumerable: !0,
|
|
14
|
-
configurable: !0,
|
|
15
|
-
writable: !0
|
|
16
|
-
}) : e[r] = t, e;
|
|
17
|
-
}
|
|
18
|
-
function ownKeys(e, r) {
|
|
19
|
-
var t = Object.keys(e);
|
|
20
|
-
if (Object.getOwnPropertySymbols) {
|
|
21
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
22
|
-
r && (o = o.filter(function (r) {
|
|
23
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
24
|
-
})), t.push.apply(t, o);
|
|
25
|
-
}
|
|
26
|
-
return t;
|
|
27
|
-
}
|
|
28
|
-
function _objectSpread2(e) {
|
|
29
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
30
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
31
|
-
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
32
|
-
_defineProperty(e, r, t[r]);
|
|
33
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
34
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
return e;
|
|
38
|
-
}
|
|
39
|
-
function _objectWithoutProperties(e, t) {
|
|
40
|
-
if (null == e) return {};
|
|
41
|
-
var o,
|
|
42
|
-
r,
|
|
43
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
44
|
-
if (Object.getOwnPropertySymbols) {
|
|
45
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
46
|
-
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
47
|
-
}
|
|
48
|
-
return i;
|
|
49
|
-
}
|
|
50
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
51
|
-
if (null == r) return {};
|
|
52
|
-
var t = {};
|
|
53
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
54
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
55
|
-
t[n] = r[n];
|
|
56
|
-
}
|
|
57
|
-
return t;
|
|
58
|
-
}
|
|
59
|
-
function _toPrimitive(t, r) {
|
|
60
|
-
if ("object" != typeof t || !t) return t;
|
|
61
|
-
var e = t[Symbol.toPrimitive];
|
|
62
|
-
if (void 0 !== e) {
|
|
63
|
-
var i = e.call(t, r || "default");
|
|
64
|
-
if ("object" != typeof i) return i;
|
|
65
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
66
|
-
}
|
|
67
|
-
return ("string" === r ? String : Number)(t);
|
|
68
|
-
}
|
|
69
|
-
function _toPropertyKey(t) {
|
|
70
|
-
var i = _toPrimitive(t, "string");
|
|
71
|
-
return "symbol" == typeof i ? i : i + "";
|
|
72
|
-
}
|
|
73
|
-
var _excluded = ["width", "height", "viewBox"],
|
|
74
|
-
_excluded2 = ["tabindex"];
|
|
75
|
-
/**
|
|
76
|
-
* Copyright IBM Corp. 2018, 2024
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
79
|
-
* LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/
|
|
81
|
-
|
|
82
|
-
var defaultAttributes = {
|
|
83
|
-
// Reference:
|
|
84
|
-
// https://github.com/IBM/carbon-components-react/issues/1392
|
|
85
|
-
// https://github.com/PolymerElements/iron-iconset-svg/pull/47
|
|
86
|
-
// `focusable` is a string attribute which is why we do not use a boolean here
|
|
87
|
-
focusable: 'false',
|
|
88
|
-
preserveAspectRatio: 'xMidYMid meet'
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Get supplementary HTML attributes for a given <svg> element based on existing
|
|
93
|
-
* attributes.
|
|
94
|
-
*/
|
|
95
|
-
function getAttributes() {
|
|
96
|
-
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
97
|
-
width = _ref.width,
|
|
98
|
-
height = _ref.height,
|
|
99
|
-
_ref$viewBox = _ref.viewBox,
|
|
100
|
-
viewBox = _ref$viewBox === void 0 ? "0 0 ".concat(width, " ").concat(height) : _ref$viewBox,
|
|
101
|
-
attributes = _objectWithoutProperties(_ref, _excluded);
|
|
102
|
-
var tabindex = attributes.tabindex,
|
|
103
|
-
rest = _objectWithoutProperties(attributes, _excluded2);
|
|
104
|
-
var iconAttributes = _objectSpread2(_objectSpread2(_objectSpread2({}, defaultAttributes), rest), {}, {
|
|
105
|
-
width: width,
|
|
106
|
-
height: height,
|
|
107
|
-
viewBox: viewBox
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
// TODO: attributes.title assumes that the consumer will implement <title> and
|
|
111
|
-
// correctly set `aria-labelledby`.
|
|
112
|
-
if (iconAttributes['aria-label'] || iconAttributes['aria-labelledby'] || iconAttributes.title) {
|
|
113
|
-
iconAttributes.role = 'img';
|
|
114
|
-
|
|
115
|
-
// Reference:
|
|
116
|
-
// https://allyjs.io/tutorials/focusing-in-svg.html
|
|
117
|
-
if (tabindex !== undefined && tabindex !== null) {
|
|
118
|
-
iconAttributes.focusable = 'true';
|
|
119
|
-
iconAttributes.tabindex = tabindex;
|
|
120
|
-
}
|
|
121
|
-
} else {
|
|
122
|
-
iconAttributes['aria-hidden'] = true;
|
|
123
|
-
}
|
|
124
|
-
return iconAttributes;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
exports.defaultAttributes = defaultAttributes;
|
|
128
|
-
exports.getAttributes = getAttributes;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright IBM Corp. 2024
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
'use strict';
|
|
9
|
-
|
|
10
|
-
var index = require('../../_virtual/index2.js');
|
|
11
|
-
|
|
12
|
-
var hasRequiredClassnames;
|
|
13
|
-
function requireClassnames() {
|
|
14
|
-
if (hasRequiredClassnames) return index.__module.exports;
|
|
15
|
-
hasRequiredClassnames = 1;
|
|
16
|
-
(function (module) {
|
|
17
|
-
/* global define */
|
|
18
|
-
|
|
19
|
-
(function () {
|
|
20
|
-
|
|
21
|
-
var hasOwn = {}.hasOwnProperty;
|
|
22
|
-
function classNames() {
|
|
23
|
-
var classes = '';
|
|
24
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
25
|
-
var arg = arguments[i];
|
|
26
|
-
if (arg) {
|
|
27
|
-
classes = appendClass(classes, parseValue(arg));
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return classes;
|
|
31
|
-
}
|
|
32
|
-
function parseValue(arg) {
|
|
33
|
-
if (typeof arg === 'string' || typeof arg === 'number') {
|
|
34
|
-
return arg;
|
|
35
|
-
}
|
|
36
|
-
if (typeof arg !== 'object') {
|
|
37
|
-
return '';
|
|
38
|
-
}
|
|
39
|
-
if (Array.isArray(arg)) {
|
|
40
|
-
return classNames.apply(null, arg);
|
|
41
|
-
}
|
|
42
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
43
|
-
return arg.toString();
|
|
44
|
-
}
|
|
45
|
-
var classes = '';
|
|
46
|
-
for (var key in arg) {
|
|
47
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
48
|
-
classes = appendClass(classes, key);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return classes;
|
|
52
|
-
}
|
|
53
|
-
function appendClass(value, newClass) {
|
|
54
|
-
if (!newClass) {
|
|
55
|
-
return value;
|
|
56
|
-
}
|
|
57
|
-
if (value) {
|
|
58
|
-
return value + ' ' + newClass;
|
|
59
|
-
}
|
|
60
|
-
return value + newClass;
|
|
61
|
-
}
|
|
62
|
-
if (module.exports) {
|
|
63
|
-
classNames.default = classNames;
|
|
64
|
-
module.exports = classNames;
|
|
65
|
-
} else {
|
|
66
|
-
window.classNames = classNames;
|
|
67
|
-
}
|
|
68
|
-
})();
|
|
69
|
-
})(index.__module);
|
|
70
|
-
return index.__module.exports;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
exports.__require = requireClassnames;
|