@cdx-ui/primitives 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.
- package/README.md +11 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -48,6 +48,17 @@ 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
|
+
### OTP input utilities
|
|
52
|
+
|
|
53
|
+
Standalone helper functions re-exported from the `createOtpInput` module for custom OTP input implementations:
|
|
54
|
+
|
|
55
|
+
| Export | Description |
|
|
56
|
+
| --------------------------------------------- | --------------------------------------------------------------------------- |
|
|
57
|
+
| `applyOtpInputChange(value, change, position)` | Applies a character change (insert, delete, replace) to an OTP value string. |
|
|
58
|
+
| `filterDigits(text)` | Filters a string to digits only (0–9). |
|
|
59
|
+
| `filterAllowedCharacters(text, allowed)` | Filters a string to characters matching a provided set. |
|
|
60
|
+
| `filterByRegExp(text, pattern)` | Filters a string to characters matching a regular expression. |
|
|
61
|
+
|
|
51
62
|
### Context hooks and providers
|
|
52
63
|
|
|
53
64
|
Several modules export context providers and hooks for reading component state from descendant sub-components or for integrating with external systems (e.g., routing).
|
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.29",
|
|
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.29"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@types/react": "*",
|