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

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 +9 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -41,14 +41,15 @@ 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`, `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`. |
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. |
51
+ | `useReportFormControlLabelFocus(ref)` | Reports label focus/blur events to the parent `FormControlContext` used by `Field.Label` to trigger `isFocused` styling on the associated input. |
52
+ | `FormControlContext` | The React context object for form-control state propagation. |
52
53
 
53
54
  ## Further reading
54
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdx-ui/utils",
3
- "version": "0.0.1-beta.28",
3
+ "version": "0.0.1-beta.29",
4
4
  "main": "lib/commonjs/index.js",
5
5
  "module": "lib/module/index.js",
6
6
  "react-native": "src/index.ts",