@cdx-ui/utils 0.0.1-beta.27 → 0.0.1-beta.28

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 (2) hide show
  1. package/README.md +8 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -41,13 +41,14 @@ Used internally by `@cdx-ui/components` to propagate variant props (size, color,
41
41
 
42
42
  ### Form control
43
43
 
44
- Low-level form-field state used by the `Field` and `Input` primitives.
45
-
46
- | Export | Description |
47
- | --------------------------- | ------------------------------------------------------------------------------------------ |
48
- | `useFormControlRoot(props)` | Creates the root state object for a form field (id generation, `aria-describedby` wiring). |
49
- | `useFormControl(props)` | Merges component-level props with inherited form-control context. |
50
- | `useFormControlContext()` | Reads form-control state from the nearest provider. |
44
+ Low-level form-field state used by the `Field`, `Input`, and `Select` primitives.
45
+
46
+ | Export | Description |
47
+ | ----------------------------------------- | ------------------------------------------------------------------------------------------ |
48
+ | `useFormControlRoot(props)` | Creates the root state object for a form field (id generation, `aria-describedby` wiring). |
49
+ | `useFormControl(props)` | Merges component-level props with inherited form-control context. |
50
+ | `useFormControlContext()` | Reads form-control state from the nearest provider. |
51
+ | `useReportFormControlLabelFocus(isActive)` | Reports focus/active state from `Input` / `Select.Trigger` to the parent `Field` for label styling. No-ops outside a `Field`. |
51
52
 
52
53
  ## Further reading
53
54
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdx-ui/utils",
3
- "version": "0.0.1-beta.27",
3
+ "version": "0.0.1-beta.28",
4
4
  "main": "lib/commonjs/index.js",
5
5
  "module": "lib/module/index.js",
6
6
  "react-native": "src/index.ts",