@cdx-ui/primitives 0.0.1-beta.40 → 0.0.1-beta.42
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 +6 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @cdx-ui/primitives
|
|
2
2
|
|
|
3
|
-
Unstyled, accessible behavioral components (headless) for the
|
|
3
|
+
Unstyled, accessible behavioral components (headless) for the Forge Design System.
|
|
4
4
|
|
|
5
5
|
Primitives provide interaction logic, focus management, and accessibility without imposing any visual styling. They serve as the foundation for [`@cdx-ui/components`](../components/).
|
|
6
6
|
|
|
@@ -53,12 +53,12 @@ Each `create*` factory accepts a map of base React Native components and returns
|
|
|
53
53
|
|
|
54
54
|
Standalone helper functions re-exported from the `createOtpInput` module for custom OTP input implementations:
|
|
55
55
|
|
|
56
|
-
| Export
|
|
57
|
-
|
|
|
56
|
+
| Export | Description |
|
|
57
|
+
| ---------------------------------------------- | ---------------------------------------------------------------------------- |
|
|
58
58
|
| `applyOtpInputChange(value, change, position)` | Applies a character change (insert, delete, replace) to an OTP value string. |
|
|
59
|
-
| `filterDigits(text)`
|
|
60
|
-
| `filterAllowedCharacters(text, allowed)`
|
|
61
|
-
| `filterByRegExp(text, pattern)`
|
|
59
|
+
| `filterDigits(text)` | Filters a string to digits only (0–9). |
|
|
60
|
+
| `filterAllowedCharacters(text, allowed)` | Filters a string to characters matching a provided set. |
|
|
61
|
+
| `filterByRegExp(text, pattern)` | Filters a string to characters matching a regular expression. |
|
|
62
62
|
|
|
63
63
|
### Context hooks and providers
|
|
64
64
|
|
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.42",
|
|
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.42"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@types/react": "*",
|