@carbon/utilities-react 0.4.0-rc.0 → 0.5.0-rc.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/utilities-react",
3
3
  "description": "Utilities and helpers to drive consistency across software products using the Carbon Design System with React",
4
- "version": "0.4.0-rc.0",
4
+ "version": "0.5.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -15,6 +15,7 @@
15
15
  "files": [
16
16
  "es",
17
17
  "lib",
18
+ "types",
18
19
  "telemetry.yml"
19
20
  ],
20
21
  "keywords": [
@@ -41,14 +42,14 @@
41
42
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0"
42
43
  },
43
44
  "devDependencies": {
44
- "esbuild": "^0.24.0",
45
+ "esbuild": "^0.25.0",
45
46
  "rimraf": "^6.0.0",
46
- "typescript": "^4.8.4",
47
- "typescript-config-carbon": "^0.3.0"
47
+ "typescript": "^5.7.3",
48
+ "typescript-config-carbon": "^0.5.0-rc.0"
48
49
  },
49
50
  "dependencies": {
50
- "@carbon/utilities": "^0.4.0-rc.0",
51
+ "@carbon/utilities": "^0.5.0-rc.0",
51
52
  "@ibm/telemetry-js": "^1.6.1"
52
53
  },
53
- "gitHead": "9cf96c5f68ef9216d1c73a5dfb7bdb3bd007b0c1"
54
+ "gitHead": "faf649817d3be3e8e258aba866e14e9378b5c68e"
54
55
  }
@@ -0,0 +1,8 @@
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
+ export * from '@carbon/utilities';
8
+ export * from './useNoInteractiveChildren';
@@ -0,0 +1,18 @@
1
+ export function useNoInteractiveChildren(ref: any, message?: string): void;
2
+ export function useInteractiveChildrenNeedDescription(ref: any, message?: string): void;
3
+ /**
4
+ * Determines if a given DOM node has interactive content, or is itself
5
+ * interactive. It returns the interactive node if one is found
6
+ *
7
+ * @param {HTMLElement} node
8
+ * @returns {HTMLElement}
9
+ */
10
+ export function getInteractiveContent(node: HTMLElement): HTMLElement;
11
+ /**
12
+ * Determines if a given DOM node has a role, or has itself a role.
13
+ * It returns the node with a role if one is found
14
+ *
15
+ * @param {HTMLElement} node
16
+ * @returns {HTMLElement}
17
+ */
18
+ export function getRoleContent(node: HTMLElement): HTMLElement;