@carbon-labs/react-ui-shell 0.86.0 → 0.88.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.
Files changed (107) hide show
  1. package/es/components/HeaderContainer.js +2 -2
  2. package/es/components/HeaderDivider.js +2 -2
  3. package/es/components/HeaderOverflowPanel.js +5 -5
  4. package/es/components/HeaderPopover.js +6 -6
  5. package/es/components/Link.js +2 -2
  6. package/es/components/Profile.js +17 -17
  7. package/es/components/SharkFinIcon.js +6 -6
  8. package/es/components/SideNav.js +10 -10
  9. package/es/components/SideNavFlyoutMenu.js +9 -9
  10. package/es/components/SideNavItems.js +5 -5
  11. package/es/components/SideNavLink.js +7 -7
  12. package/es/components/SideNavLinkPopover.js +2 -2
  13. package/es/components/SideNavMenu.js +24 -24
  14. package/es/components/SideNavMenuItem.js +7 -7
  15. package/es/components/SideNavSlot.js +4 -4
  16. package/es/components/SideNavTitle.js +3 -3
  17. package/es/components/SideNavToggle.js +7 -7
  18. package/es/components/TrialCountdown.js +3 -3
  19. package/es/internal/useId.js +2 -2
  20. package/es/internal/useIdPrefix.js +3 -3
  21. package/es/internal/usePrefix.js +3 -3
  22. package/lib/components/HeaderContainer.js +10 -10
  23. package/lib/components/HeaderDivider.js +2 -2
  24. package/lib/components/HeaderOverflowPanel.js +5 -5
  25. package/lib/components/HeaderPopover.js +9 -9
  26. package/lib/components/Link.js +3 -3
  27. package/lib/components/Profile.js +17 -17
  28. package/lib/components/SharkFinIcon.js +6 -6
  29. package/lib/components/SideNav.js +23 -23
  30. package/lib/components/SideNavFlyoutMenu.js +22 -22
  31. package/lib/components/SideNavItems.js +8 -8
  32. package/lib/components/SideNavLink.js +9 -9
  33. package/lib/components/SideNavLinkPopover.js +2 -2
  34. package/lib/components/SideNavMenu.js +42 -42
  35. package/lib/components/SideNavMenuItem.js +8 -8
  36. package/lib/components/SideNavSlot.js +4 -4
  37. package/lib/components/SideNavTitle.js +3 -3
  38. package/lib/components/SideNavToggle.js +9 -9
  39. package/lib/components/TrialCountdown.js +3 -3
  40. package/lib/es/components/HeaderContainer.d.ts +2 -2
  41. package/lib/es/components/HeaderDivider.d.ts +2 -2
  42. package/lib/es/components/HeaderOverflowPanel.d.ts +2 -2
  43. package/lib/es/components/HeaderPopover.d.ts +4 -4
  44. package/lib/es/components/Link.d.ts +3 -3
  45. package/lib/es/components/Profile.d.ts +7 -7
  46. package/lib/es/components/SharkFinIcon.d.ts +2 -2
  47. package/lib/es/components/SideNav.d.ts +4 -4
  48. package/lib/es/components/SideNavFlyoutMenu.d.ts +2 -2
  49. package/lib/es/components/SideNavItems.d.ts +2 -2
  50. package/lib/es/components/SideNavLink.d.ts +2 -2
  51. package/lib/es/components/SideNavLinkPopover.d.ts +2 -2
  52. package/lib/es/components/SideNavMenu.d.ts +2 -2
  53. package/lib/es/components/SideNavMenuItem.d.ts +2 -2
  54. package/lib/es/components/SideNavSlot.d.ts +2 -2
  55. package/lib/es/components/SideNavTitle.d.ts +3 -3
  56. package/lib/es/components/SideNavToggle.d.ts +2 -2
  57. package/lib/es/components/TrialCountdown.d.ts +2 -2
  58. package/lib/es/internal/useIdPrefix.d.ts +2 -2
  59. package/lib/es/internal/usePrefix.d.ts +2 -2
  60. package/lib/internal/useDelayedState.js +5 -5
  61. package/lib/internal/useEvent.js +4 -4
  62. package/lib/internal/useId.js +5 -5
  63. package/lib/internal/useIdPrefix.js +3 -3
  64. package/lib/internal/useMatchMedia.js +3 -3
  65. package/lib/internal/useMergedRefs.js +2 -2
  66. package/lib/internal/usePrefix.js +3 -3
  67. package/package.json +4 -6
  68. package/scss/styles/_header-divider.scss +1 -0
  69. package/scss/styles/_header.scss +13 -1
  70. package/scss/styles/_profile.scss +4 -1
  71. package/LICENSE +0 -201
  72. package/es/node_modules/@carbon/ibm-products/es/_virtual/_commonjsHelpers.js +0 -12
  73. package/es/node_modules/@carbon/ibm-products/es/_virtual/_rollupPluginBabelHelpers.js +0 -18
  74. package/es/node_modules/@carbon/ibm-products/es/_virtual/index.js +0 -14
  75. package/es/node_modules/@carbon/ibm-products/es/_virtual/index2.js +0 -12
  76. package/es/node_modules/@carbon/ibm-products/es/components/TooltipTrigger/TooltipTrigger.js +0 -62
  77. package/es/node_modules/@carbon/ibm-products/es/components/UserAvatar/UserAvatar.js +0 -161
  78. package/es/node_modules/@carbon/ibm-products/es/components/_Canary/Canary.js +0 -49
  79. package/es/node_modules/@carbon/ibm-products/es/global/js/package-settings.js +0 -246
  80. package/es/node_modules/@carbon/ibm-products/es/global/js/utils/devtools.js +0 -16
  81. package/es/node_modules/@carbon/ibm-products/es/global/js/utils/pconsole.js +0 -35
  82. package/es/node_modules/@carbon/ibm-products/es/node_modules/object-assign/index.js +0 -89
  83. package/es/node_modules/@carbon/ibm-products/es/node_modules/prop-types/checkPropTypes.js +0 -95
  84. package/es/node_modules/@carbon/ibm-products/es/node_modules/prop-types/factoryWithThrowingShims.js +0 -64
  85. package/es/node_modules/@carbon/ibm-products/es/node_modules/prop-types/factoryWithTypeCheckers.js +0 -561
  86. package/es/node_modules/@carbon/ibm-products/es/node_modules/prop-types/index.js +0 -32
  87. package/es/node_modules/@carbon/ibm-products/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -18
  88. package/es/node_modules/@carbon/ibm-products/es/node_modules/prop-types/lib/has.js +0 -17
  89. package/es/node_modules/@carbon/ibm-products/es/settings.js +0 -84
  90. package/lib/node_modules/@carbon/ibm-products/es/_virtual/_commonjsHelpers.js +0 -14
  91. package/lib/node_modules/@carbon/ibm-products/es/_virtual/_rollupPluginBabelHelpers.js +0 -20
  92. package/lib/node_modules/@carbon/ibm-products/es/_virtual/index.js +0 -19
  93. package/lib/node_modules/@carbon/ibm-products/es/_virtual/index2.js +0 -14
  94. package/lib/node_modules/@carbon/ibm-products/es/components/TooltipTrigger/TooltipTrigger.js +0 -64
  95. package/lib/node_modules/@carbon/ibm-products/es/components/UserAvatar/UserAvatar.js +0 -163
  96. package/lib/node_modules/@carbon/ibm-products/es/components/_Canary/Canary.js +0 -51
  97. package/lib/node_modules/@carbon/ibm-products/es/global/js/package-settings.js +0 -252
  98. package/lib/node_modules/@carbon/ibm-products/es/global/js/utils/devtools.js +0 -20
  99. package/lib/node_modules/@carbon/ibm-products/es/global/js/utils/pconsole.js +0 -45
  100. package/lib/node_modules/@carbon/ibm-products/es/node_modules/object-assign/index.js +0 -91
  101. package/lib/node_modules/@carbon/ibm-products/es/node_modules/prop-types/checkPropTypes.js +0 -97
  102. package/lib/node_modules/@carbon/ibm-products/es/node_modules/prop-types/factoryWithThrowingShims.js +0 -66
  103. package/lib/node_modules/@carbon/ibm-products/es/node_modules/prop-types/factoryWithTypeCheckers.js +0 -563
  104. package/lib/node_modules/@carbon/ibm-products/es/node_modules/prop-types/index.js +0 -34
  105. package/lib/node_modules/@carbon/ibm-products/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -20
  106. package/lib/node_modules/@carbon/ibm-products/es/node_modules/prop-types/lib/has.js +0 -19
  107. package/lib/node_modules/@carbon/ibm-products/es/settings.js +0 -86
@@ -1,20 +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 packageSettings = require('../package-settings.js');
11
-
12
- function getDevtoolsProps(componentName) {
13
- return {
14
- [packageSettings.devtoolsAttribute]: packageSettings.getDevtoolsId(componentName)
15
- };
16
- }
17
-
18
- exports.devtoolsAttribute = packageSettings.devtoolsAttribute;
19
- exports.getDevtoolsId = packageSettings.getDevtoolsId;
20
- exports.getDevtoolsProps = getDevtoolsProps;
@@ -1,45 +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
- Object.defineProperty(exports, '__esModule', { value: true });
11
-
12
- // Copyright IBM Corp. 2020, 2021
13
- //
14
- // This source code is licensed under the Apache-2.0 license found in the
15
- // LICENSE file in the root directory of this source tree.
16
- //
17
-
18
- const isProduction = process.env.NODE_ENV === 'production';
19
- const noop = () => undefined;
20
- const shimIfProduction = fn => isProduction ? noop : fn;
21
- const log = shimIfProduction(function () {
22
- return console.log(...arguments);
23
- });
24
- const warn = shimIfProduction(function () {
25
- return console.warn(...arguments);
26
- });
27
- const error = shimIfProduction(function () {
28
- return console.error(...arguments);
29
- });
30
- var pconsole = {
31
- isProduction,
32
- noop,
33
- shimIfProduction,
34
- log,
35
- warn,
36
- error
37
- };
38
-
39
- exports.default = pconsole;
40
- exports.error = error;
41
- exports.isProduction = isProduction;
42
- exports.log = log;
43
- exports.noop = noop;
44
- exports.shimIfProduction = shimIfProduction;
45
- exports.warn = warn;
@@ -1,91 +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 objectAssign;
11
- var hasRequiredObjectAssign;
12
- function requireObjectAssign() {
13
- if (hasRequiredObjectAssign) return objectAssign;
14
- hasRequiredObjectAssign = 1;
15
- /* eslint-disable no-unused-vars */
16
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
17
- var hasOwnProperty = Object.prototype.hasOwnProperty;
18
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
19
- function toObject(val) {
20
- if (val === null || val === undefined) {
21
- throw new TypeError('Object.assign cannot be called with null or undefined');
22
- }
23
- return Object(val);
24
- }
25
- function shouldUseNative() {
26
- try {
27
- if (!Object.assign) {
28
- return false;
29
- }
30
-
31
- // Detect buggy property enumeration order in older V8 versions.
32
-
33
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
34
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
35
- test1[5] = 'de';
36
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
37
- return false;
38
- }
39
-
40
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
41
- var test2 = {};
42
- for (var i = 0; i < 10; i++) {
43
- test2['_' + String.fromCharCode(i)] = i;
44
- }
45
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
46
- return test2[n];
47
- });
48
- if (order2.join('') !== '0123456789') {
49
- return false;
50
- }
51
-
52
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
53
- var test3 = {};
54
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
55
- test3[letter] = letter;
56
- });
57
- if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
58
- return false;
59
- }
60
- return true;
61
- } catch (err) {
62
- // We don't expect any of the above to throw, but better to be safe.
63
- return false;
64
- }
65
- }
66
- objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
67
- var from;
68
- var to = toObject(target);
69
- var symbols;
70
- for (var s = 1; s < arguments.length; s++) {
71
- from = Object(arguments[s]);
72
- for (var key in from) {
73
- if (hasOwnProperty.call(from, key)) {
74
- to[key] = from[key];
75
- }
76
- }
77
- if (getOwnPropertySymbols) {
78
- symbols = getOwnPropertySymbols(from);
79
- for (var i = 0; i < symbols.length; i++) {
80
- if (propIsEnumerable.call(from, symbols[i])) {
81
- to[symbols[i]] = from[symbols[i]];
82
- }
83
- }
84
- }
85
- }
86
- return to;
87
- };
88
- return objectAssign;
89
- }
90
-
91
- exports.__require = requireObjectAssign;
@@ -1,97 +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 ReactPropTypesSecret = require('./lib/ReactPropTypesSecret.js');
11
- var has = require('./lib/has.js');
12
-
13
- var checkPropTypes_1;
14
- var hasRequiredCheckPropTypes;
15
- function requireCheckPropTypes() {
16
- if (hasRequiredCheckPropTypes) return checkPropTypes_1;
17
- hasRequiredCheckPropTypes = 1;
18
- var printWarning = function () {};
19
- if (process.env.NODE_ENV !== 'production') {
20
- var ReactPropTypesSecret$1 = /*@__PURE__*/ReactPropTypesSecret.__require();
21
- var loggedTypeFailures = {};
22
- var has$1 = /*@__PURE__*/has.__require();
23
- printWarning = function (text) {
24
- var message = 'Warning: ' + text;
25
- if (typeof console !== 'undefined') {
26
- console.error(message);
27
- }
28
- try {
29
- // --- Welcome to debugging React ---
30
- // This error was thrown as a convenience so that you can use this stack
31
- // to find the callsite that caused this warning to fire.
32
- throw new Error(message);
33
- } catch (x) {/**/}
34
- };
35
- }
36
-
37
- /**
38
- * Assert that the values match with the type specs.
39
- * Error messages are memorized and will only be shown once.
40
- *
41
- * @param {object} typeSpecs Map of name to a ReactPropType
42
- * @param {object} values Runtime values that need to be type-checked
43
- * @param {string} location e.g. "prop", "context", "child context"
44
- * @param {string} componentName Name of the component for error messages.
45
- * @param {?Function} getStack Returns the component stack.
46
- * @private
47
- */
48
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
49
- if (process.env.NODE_ENV !== 'production') {
50
- for (var typeSpecName in typeSpecs) {
51
- if (has$1(typeSpecs, typeSpecName)) {
52
- var error;
53
- // Prop type validation may throw. In case they do, we don't want to
54
- // fail the render phase where it didn't fail before. So we log it.
55
- // After these have been cleaned up, we'll let them throw.
56
- try {
57
- // This is intentionally an invariant that gets caught. It's the same
58
- // behavior as without this statement except with a better message.
59
- if (typeof typeSpecs[typeSpecName] !== 'function') {
60
- var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
61
- err.name = 'Invariant Violation';
62
- throw err;
63
- }
64
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);
65
- } catch (ex) {
66
- error = ex;
67
- }
68
- if (error && !(error instanceof Error)) {
69
- printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
70
- }
71
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
72
- // Only monitor this failure once because there tends to be a lot of the
73
- // same error.
74
- loggedTypeFailures[error.message] = true;
75
- var stack = getStack ? getStack() : '';
76
- printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
77
- }
78
- }
79
- }
80
- }
81
- }
82
-
83
- /**
84
- * Resets warning cache when testing.
85
- *
86
- * @private
87
- */
88
- checkPropTypes.resetWarningCache = function () {
89
- if (process.env.NODE_ENV !== 'production') {
90
- loggedTypeFailures = {};
91
- }
92
- };
93
- checkPropTypes_1 = checkPropTypes;
94
- return checkPropTypes_1;
95
- }
96
-
97
- exports.__require = requireCheckPropTypes;
@@ -1,66 +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 ReactPropTypesSecret = require('./lib/ReactPropTypesSecret.js');
11
-
12
- var factoryWithThrowingShims;
13
- var hasRequiredFactoryWithThrowingShims;
14
- function requireFactoryWithThrowingShims() {
15
- if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
16
- hasRequiredFactoryWithThrowingShims = 1;
17
- var ReactPropTypesSecret$1 = /*@__PURE__*/ReactPropTypesSecret.__require();
18
- function emptyFunction() {}
19
- function emptyFunctionWithReset() {}
20
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
21
- factoryWithThrowingShims = function () {
22
- function shim(props, propName, componentName, location, propFullName, secret) {
23
- if (secret === ReactPropTypesSecret$1) {
24
- // It is still safe when called from React.
25
- return;
26
- }
27
- var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
28
- err.name = 'Invariant Violation';
29
- throw err;
30
- }
31
- shim.isRequired = shim;
32
- function getShim() {
33
- return shim;
34
- }
35
- // Important!
36
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
37
- var ReactPropTypes = {
38
- array: shim,
39
- bigint: shim,
40
- bool: shim,
41
- func: shim,
42
- number: shim,
43
- object: shim,
44
- string: shim,
45
- symbol: shim,
46
- any: shim,
47
- arrayOf: getShim,
48
- element: shim,
49
- elementType: shim,
50
- instanceOf: getShim,
51
- node: shim,
52
- objectOf: getShim,
53
- oneOf: getShim,
54
- oneOfType: getShim,
55
- shape: getShim,
56
- exact: getShim,
57
- checkPropTypes: emptyFunctionWithReset,
58
- resetWarningCache: emptyFunction
59
- };
60
- ReactPropTypes.PropTypes = ReactPropTypes;
61
- return ReactPropTypes;
62
- };
63
- return factoryWithThrowingShims;
64
- }
65
-
66
- exports.__require = requireFactoryWithThrowingShims;