@cdx-ui/primitives 0.0.1-beta.17 → 0.0.1-beta.19
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/README.md +12 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -48,7 +48,18 @@ Each `create*` factory accepts a map of base React Native components and returns
|
|
|
48
48
|
| `InteractionState` | Type: `{ hover, focus, active, disabled, focusVisible }`. |
|
|
49
49
|
| `EdgeInsets` | Type: `{ top, right, bottom, left }`. |
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
### Context hooks and providers
|
|
52
|
+
|
|
53
|
+
Several modules export context providers and hooks for reading component state from descendant sub-components or for integrating with external systems (e.g., routing).
|
|
54
|
+
|
|
55
|
+
| Module | Provider(s) | Hook(s) | Context value type(s) |
|
|
56
|
+
| --------- | ------------------ | -------------------- | --------------------------------------------- |
|
|
57
|
+
| dialog | `DialogProvider` | `useDialog` | `IDialogContextType` |
|
|
58
|
+
| link | `LinkProvider` | `useLink` | `LinkConfig` |
|
|
59
|
+
| tile | `TileProvider` | `useTileContext` | `ITileContextValue`, `ITileGroupContextValue` |
|
|
60
|
+
| list-item | `ListItemProvider` | `useListItemContext` | `IListItemContextValue` |
|
|
61
|
+
| button | — | `useButtonContext` | — |
|
|
62
|
+
| progress | — | `useProgressContext` | `ProgressContextValue` |
|
|
52
63
|
|
|
53
64
|
## Further reading
|
|
54
65
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdx-ui/primitives",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.19",
|
|
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.
|
|
63
|
+
"@cdx-ui/utils": "0.0.1-beta.19"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@types/react": "*",
|