@carbon/ibm-products 2.56.0 → 2.56.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.
@@ -6,10 +6,11 @@
6
6
  */
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
9
- import React__default, { useId } from 'react';
9
+ import React__default from 'react';
10
10
  import PropTypes from '../../../_virtual/index.js';
11
11
  import cx from 'classnames';
12
12
  import { pkg } from '../../../settings.js';
13
+ import { useId } from '../../../global/js/utils/useId.js';
13
14
 
14
15
  var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _stop7, _stop8, _path, _path2, _path3, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _stop15, _stop16, _stop17, _stop18, _stop19, _stop20, _stop21, _stop22, _stop23, _stop24, _stop25, _stop26, _path4;
15
16
  var _excluded = ["theme", "size", "alt"];
@@ -6,10 +6,11 @@
6
6
  */
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
9
- import React__default, { useId } from 'react';
9
+ import React__default from 'react';
10
10
  import PropTypes from '../../../_virtual/index.js';
11
11
  import cx from 'classnames';
12
12
  import { pkg } from '../../../settings.js';
13
+ import { useId } from '../../../global/js/utils/useId.js';
13
14
 
14
15
  var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _path, _path2, _path3, _path4, _path5, _stop7, _stop8, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _path6, _path7, _path8;
15
16
  var _excluded = ["theme", "size", "alt"];
@@ -6,10 +6,11 @@
6
6
  */
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
9
- import React__default, { useId } from 'react';
9
+ import React__default from 'react';
10
10
  import PropTypes from '../../../_virtual/index.js';
11
11
  import cx from 'classnames';
12
12
  import { pkg } from '../../../settings.js';
13
+ import { useId } from '../../../global/js/utils/useId.js';
13
14
 
14
15
  var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _stop7, _stop8, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _stop15, _stop16, _stop17, _stop18, _stop19, _stop20, _stop21, _stop22, _stop23, _stop24, _stop25, _stop26, _stop27, _stop28, _path, _path2, _stop29, _stop30, _stop31, _stop32, _stop33, _stop34, _stop35, _stop36, _stop37, _stop38, _stop39, _stop40, _stop41, _stop42, _stop43, _stop44, _stop45, _stop46, _stop47, _stop48, _stop49, _stop50, _stop51, _stop52, _stop53, _stop54, _stop55, _stop56, _stop57, _stop58, _stop59, _stop60, _stop61, _stop62, _stop63, _stop64, _stop65, _stop66, _path3;
15
16
  var _excluded = ["theme", "size", "alt"];
@@ -6,10 +6,11 @@
6
6
  */
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
9
- import React__default, { useId } from 'react';
9
+ import React__default from 'react';
10
10
  import PropTypes from '../../../_virtual/index.js';
11
11
  import cx from 'classnames';
12
12
  import { pkg } from '../../../settings.js';
13
+ import { useId } from '../../../global/js/utils/useId.js';
13
14
 
14
15
  var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _stop7, _stop8, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _stop15, _stop16, _stop17, _stop18, _stop19, _stop20, _stop21, _stop22, _stop23, _path, _path2, _stop24, _stop25, _stop26, _stop27, _stop28, _stop29, _stop30, _stop31, _stop32, _stop33, _stop34, _stop35, _stop36, _stop37, _stop38, _stop39, _stop40, _stop41, _stop42, _stop43, _stop44, _stop45, _stop46, _stop47, _stop48, _path3;
15
16
  var _excluded = ["theme", "size", "alt"];
@@ -6,10 +6,11 @@
6
6
  */
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
9
- import React__default, { useId } from 'react';
9
+ import React__default from 'react';
10
10
  import PropTypes from '../../../_virtual/index.js';
11
11
  import cx from 'classnames';
12
12
  import { pkg } from '../../../settings.js';
13
+ import { useId } from '../../../global/js/utils/useId.js';
13
14
 
14
15
  var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _stop7, _stop8, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _path, _path2, _path3, _stop15, _stop16, _stop17, _stop18, _stop19, _stop20, _stop21, _stop22, _stop23, _stop24, _stop25, _stop26, _stop27, _stop28, _stop29, _stop30, _stop31, _stop32, _stop33, _stop34, _stop35, _stop36, _stop37, _stop38, _stop39, _stop40, _stop41, _path4;
15
16
  var _excluded = ["theme", "size", "alt"];
@@ -6,10 +6,11 @@
6
6
  */
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
9
- import React__default, { useId } from 'react';
9
+ import React__default from 'react';
10
10
  import PropTypes from '../../../_virtual/index.js';
11
11
  import cx from 'classnames';
12
12
  import { pkg } from '../../../settings.js';
13
+ import { useId } from '../../../global/js/utils/useId.js';
13
14
 
14
15
  var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _stop7, _stop8, _path, _path2, _path3, _linearGradient, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _stop15, _stop16, _stop17, _stop18, _stop19, _stop20, _stop21, _stop22, _stop23, _stop24, _stop25, _stop26, _stop27, _stop28, _stop29, _stop30, _stop31, _stop32, _stop33, _stop34, _stop35, _path4;
15
16
  var _excluded = ["theme", "size", "alt"];
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Uses React 18's built-in `useId()` when available, or falls back to
3
+ * using uuidv4 otherwise
4
+ */
5
+ export const useId: typeof uuidv4;
6
+ import uuidv4 from './uuidv4';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright IBM Corp. 2020, 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
+ import { objectSpread2 as _objectSpread2 } from '../../../_virtual/_rollupPluginBabelHelpers.js';
9
+ import React__default from 'react';
10
+ import uuidv4 from './uuidv4.js';
11
+
12
+ // This tricks bundlers so they can't statically analyze this and produce
13
+ // compilation warnings/errors.
14
+ // https://github.com/webpack/webpack/issues/14814
15
+ // https://github.com/mui/material-ui/issues/41190
16
+ var _React = _objectSpread2({}, React__default);
17
+
18
+ /**
19
+ * Uses React 18's built-in `useId()` when available, or falls back to
20
+ * using uuidv4 otherwise
21
+ */
22
+ var useId = _React.useId ? _React.useId : uuidv4;
23
+
24
+ export { useId };
@@ -14,6 +14,7 @@ var React = require('react');
14
14
  var index = require('../../../_virtual/index.js');
15
15
  var cx = require('classnames');
16
16
  var settings = require('../../../settings.js');
17
+ var useId = require('../../../global/js/utils/useId.js');
17
18
 
18
19
  var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _stop7, _stop8, _path, _path2, _path3, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _stop15, _stop16, _stop17, _stop18, _stop19, _stop20, _stop21, _stop22, _stop23, _stop24, _stop25, _stop26, _path4;
19
20
  var _excluded = ["theme", "size", "alt"];
@@ -25,7 +26,7 @@ var ErrorIllustration = function ErrorIllustration(_ref) {
25
26
  size = _ref.size,
26
27
  alt = _ref.alt,
27
28
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
28
- var svgId = React.useId();
29
+ var svgId = useId.useId();
29
30
  return /*#__PURE__*/React.createElement("svg", _rollupPluginBabelHelpers.extends({}, rest, {
30
31
  xmlns: "http://www.w3.org/2000/svg",
31
32
  width: 80,
@@ -14,6 +14,7 @@ var React = require('react');
14
14
  var index = require('../../../_virtual/index.js');
15
15
  var cx = require('classnames');
16
16
  var settings = require('../../../settings.js');
17
+ var useId = require('../../../global/js/utils/useId.js');
17
18
 
18
19
  var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _path, _path2, _path3, _path4, _path5, _stop7, _stop8, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _path6, _path7, _path8;
19
20
  var _excluded = ["theme", "size", "alt"];
@@ -25,7 +26,7 @@ var NoDataIllustration = function NoDataIllustration(_ref) {
25
26
  size = _ref.size,
26
27
  alt = _ref.alt,
27
28
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
28
- var svgId = React.useId();
29
+ var svgId = useId.useId();
29
30
  return /*#__PURE__*/React.createElement("svg", _rollupPluginBabelHelpers.extends({}, rest, {
30
31
  xmlns: "http://www.w3.org/2000/svg",
31
32
  width: 80,
@@ -14,6 +14,7 @@ var React = require('react');
14
14
  var index = require('../../../_virtual/index.js');
15
15
  var cx = require('classnames');
16
16
  var settings = require('../../../settings.js');
17
+ var useId = require('../../../global/js/utils/useId.js');
17
18
 
18
19
  var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _stop7, _stop8, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _stop15, _stop16, _stop17, _stop18, _stop19, _stop20, _stop21, _stop22, _stop23, _stop24, _stop25, _stop26, _stop27, _stop28, _path, _path2, _stop29, _stop30, _stop31, _stop32, _stop33, _stop34, _stop35, _stop36, _stop37, _stop38, _stop39, _stop40, _stop41, _stop42, _stop43, _stop44, _stop45, _stop46, _stop47, _stop48, _stop49, _stop50, _stop51, _stop52, _stop53, _stop54, _stop55, _stop56, _stop57, _stop58, _stop59, _stop60, _stop61, _stop62, _stop63, _stop64, _stop65, _stop66, _path3;
19
20
  var _excluded = ["theme", "size", "alt"];
@@ -25,7 +26,7 @@ var NoTagsIllustration = function NoTagsIllustration(_ref) {
25
26
  size = _ref.size,
26
27
  alt = _ref.alt,
27
28
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
28
- var svgId = React.useId();
29
+ var svgId = useId.useId();
29
30
  return /*#__PURE__*/React.createElement("svg", _rollupPluginBabelHelpers.extends({}, rest, {
30
31
  xmlns: "http://www.w3.org/2000/svg",
31
32
  xmlnsXlink: "http://www.w3.org/1999/xlink",
@@ -14,6 +14,7 @@ var React = require('react');
14
14
  var index = require('../../../_virtual/index.js');
15
15
  var cx = require('classnames');
16
16
  var settings = require('../../../settings.js');
17
+ var useId = require('../../../global/js/utils/useId.js');
17
18
 
18
19
  var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _stop7, _stop8, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _stop15, _stop16, _stop17, _stop18, _stop19, _stop20, _stop21, _stop22, _stop23, _path, _path2, _stop24, _stop25, _stop26, _stop27, _stop28, _stop29, _stop30, _stop31, _stop32, _stop33, _stop34, _stop35, _stop36, _stop37, _stop38, _stop39, _stop40, _stop41, _stop42, _stop43, _stop44, _stop45, _stop46, _stop47, _stop48, _path3;
19
20
  var _excluded = ["theme", "size", "alt"];
@@ -25,7 +26,7 @@ var NotFoundIllustration = function NotFoundIllustration(_ref) {
25
26
  size = _ref.size,
26
27
  alt = _ref.alt,
27
28
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
28
- var svgId = React.useId();
29
+ var svgId = useId.useId();
29
30
  return /*#__PURE__*/React.createElement("svg", _rollupPluginBabelHelpers.extends({}, rest, {
30
31
  xmlns: "http://www.w3.org/2000/svg",
31
32
  width: 80,
@@ -14,6 +14,7 @@ var React = require('react');
14
14
  var index = require('../../../_virtual/index.js');
15
15
  var cx = require('classnames');
16
16
  var settings = require('../../../settings.js');
17
+ var useId = require('../../../global/js/utils/useId.js');
17
18
 
18
19
  var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _stop7, _stop8, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _path, _path2, _path3, _stop15, _stop16, _stop17, _stop18, _stop19, _stop20, _stop21, _stop22, _stop23, _stop24, _stop25, _stop26, _stop27, _stop28, _stop29, _stop30, _stop31, _stop32, _stop33, _stop34, _stop35, _stop36, _stop37, _stop38, _stop39, _stop40, _stop41, _path4;
19
20
  var _excluded = ["theme", "size", "alt"];
@@ -25,7 +26,7 @@ var NotificationsIllustration = function NotificationsIllustration(_ref) {
25
26
  size = _ref.size,
26
27
  alt = _ref.alt,
27
28
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
28
- var svgId = React.useId();
29
+ var svgId = useId.useId();
29
30
  return /*#__PURE__*/React.createElement("svg", _rollupPluginBabelHelpers.extends({}, rest, {
30
31
  xmlns: "http://www.w3.org/2000/svg",
31
32
  width: 80,
@@ -14,6 +14,7 @@ var React = require('react');
14
14
  var index = require('../../../_virtual/index.js');
15
15
  var cx = require('classnames');
16
16
  var settings = require('../../../settings.js');
17
+ var useId = require('../../../global/js/utils/useId.js');
17
18
 
18
19
  var _stop, _stop2, _stop3, _stop4, _stop5, _stop6, _stop7, _stop8, _path, _path2, _path3, _linearGradient, _stop9, _stop10, _stop11, _stop12, _stop13, _stop14, _stop15, _stop16, _stop17, _stop18, _stop19, _stop20, _stop21, _stop22, _stop23, _stop24, _stop25, _stop26, _stop27, _stop28, _stop29, _stop30, _stop31, _stop32, _stop33, _stop34, _stop35, _path4;
19
20
  var _excluded = ["theme", "size", "alt"];
@@ -25,7 +26,7 @@ var UnauthorizedIllustration = function UnauthorizedIllustration(_ref) {
25
26
  size = _ref.size,
26
27
  alt = _ref.alt,
27
28
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
28
- var svgId = React.useId();
29
+ var svgId = useId.useId();
29
30
  return /*#__PURE__*/React.createElement("svg", _rollupPluginBabelHelpers.extends({}, rest, {
30
31
  xmlns: "http://www.w3.org/2000/svg",
31
32
  xmlnsXlink: "http://www.w3.org/1999/xlink",
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Uses React 18's built-in `useId()` when available, or falls back to
3
+ * using uuidv4 otherwise
4
+ */
5
+ export const useId: typeof uuidv4;
6
+ import uuidv4 from './uuidv4';
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright IBM Corp. 2020, 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 _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
11
+ var React = require('react');
12
+ var uuidv4 = require('./uuidv4.js');
13
+
14
+ // This tricks bundlers so they can't statically analyze this and produce
15
+ // compilation warnings/errors.
16
+ // https://github.com/webpack/webpack/issues/14814
17
+ // https://github.com/mui/material-ui/issues/41190
18
+ var _React = _rollupPluginBabelHelpers.objectSpread2({}, React);
19
+
20
+ /**
21
+ * Uses React 18's built-in `useId()` when available, or falls back to
22
+ * using uuidv4 otherwise
23
+ */
24
+ var useId = _React.useId ? _React.useId : uuidv4.default;
25
+
26
+ exports.useId = useId;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products",
3
3
  "description": "Carbon for IBM Products",
4
- "version": "2.56.0",
4
+ "version": "2.56.1",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -120,5 +120,5 @@
120
120
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0",
121
121
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
122
122
  },
123
- "gitHead": "a8985c2671543ecba2fa2e1fc3e8e47dae17cef7"
123
+ "gitHead": "c3d9280f5cd9debb7e3f6e611db79a1e01668cf5"
124
124
  }