@cdx-ui/primitives 0.0.1-beta.52 → 0.0.1-beta.54

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 +2 -2
package/README.md CHANGED
@@ -45,6 +45,7 @@ Each `create*` factory accepts a map of base React Native components and returns
45
45
  | Export | Description |
46
46
  | ----------------------- | ------------------------------------------------------------------------------------------------- |
47
47
  | `dataAttributes` | Builds `data-hover`, `data-active`, `data-focus-visible`, etc. from an `InteractionState` object. |
48
+ | `domDataAttributes` | Web-specific variant that converts data attributes to DOM-compatible format. |
48
49
  | `OverlayInsetsProvider` | Context provider for safe-area insets used by overlay/dialog positioning. |
49
50
  | `InteractionState` | Type: `{ hover, focus, active, disabled, focusVisible }`. |
50
51
  | `EdgeInsets` | Type: `{ top, right, bottom, left }`. |
@@ -64,14 +65,14 @@ Standalone helper functions re-exported from the `createOtpInput` module for cus
64
65
 
65
66
  Several modules export context providers and hooks for reading component state from descendant sub-components or for integrating with external systems (e.g., routing).
66
67
 
67
- | Module | Provider(s) | Hook(s) | Context value type(s) |
68
- | --------- | ------------------ | -------------------- | --------------------------------------------- |
69
- | dialog | `DialogProvider` | `useDialog` | `IDialogContextType` |
70
- | link | `LinkProvider` | `useLink` | `LinkConfig` |
71
- | tile | `TileProvider` | `useTileContext` | `ITileContextValue`, `ITileGroupContextValue` |
72
- | list-item | `ListItemProvider` | `useListItemContext` | `IListItemContextValue` |
73
- | button | — | `useButtonContext` | — |
74
- | progress | — | `useProgressContext` | `ProgressContextValue` |
68
+ | Module | Provider(s) | Hook(s) | Context value type(s) |
69
+ | --------- | ----------------------------------------- | -------------------------------------- | --------------------------------------------- |
70
+ | dialog | `DialogProvider` | `useDialog` | `IDialogContextType` |
71
+ | link | `LinkProvider`, `LinkInteractionProvider` | `useLink`, `useLinkInteractionContext` | `LinkConfig`, `LinkInteractionState` |
72
+ | tile | `TileProvider` | `useTileContext` | `ITileContextValue`, `ITileGroupContextValue` |
73
+ | list-item | `ListItemProvider` | `useListItemContext` | `IListItemContextValue` |
74
+ | button | — | `useButtonContext` | — |
75
+ | progress | — | `useProgressContext` | `ProgressContextValue` |
75
76
 
76
77
  ## Further reading
77
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdx-ui/primitives",
3
- "version": "0.0.1-beta.52",
3
+ "version": "0.0.1-beta.54",
4
4
  "main": "lib/commonjs/index.js",
5
5
  "module": "lib/module/index.js",
6
6
  "react-native": "src/index.ts",
@@ -60,7 +60,7 @@
60
60
  "@react-stately/checkbox": "3.7.4",
61
61
  "@react-stately/radio": "3.12.0",
62
62
  "@react-stately/toggle": "3.9.4",
63
- "@cdx-ui/utils": "0.0.1-beta.52"
63
+ "@cdx-ui/utils": "0.0.1-beta.54"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/react": "*",