@carbon-labs/utilities 0.21.0 → 0.23.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/index.js CHANGED
@@ -7,6 +7,6 @@
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
9
 
10
- export * from './settings/index.js';
11
10
  // Note: usePrefix is not exported from main index to avoid pulling React into web components
12
- // React components should import directly: import { usePrefix } from '@carbon-labs/utilities/es/usePrefix.js'
11
+ // React components should import directly: import { usePrefix } from '@carbon-labs/utilities/es/usePrefix.js'
12
+ export * from './settings/index.js';
package/es/usePrefix.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import React from 'react';
8
+ import * as React from 'react';
9
9
 
10
10
  export const PrefixContext = React.createContext('clabs');
11
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbon-labs/utilities",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -52,8 +52,8 @@
52
52
  "es/index.d.ts"
53
53
  ],
54
54
  "peerDependencies": {
55
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
56
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
55
+ "react": "^16.8.6 || ^17.0.1 || ^18.2.0 || ^19.0.0",
56
+ "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0 || ^19.0.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@rollup/plugin-babel": "^6.0.4",
@@ -62,5 +62,5 @@
62
62
  "react-dom": "^18.3.1",
63
63
  "rimraf": "^6.0.1"
64
64
  },
65
- "gitHead": "5ea24fc7a8a62a1d2bc90a52cde2ce1478c29eb2"
65
+ "gitHead": "cda9edfcf46a8512705019a6861b255ca77d5e99"
66
66
  }