@cdx-ui/primitives 0.0.1-beta.181 → 0.0.1-beta.183
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 +8 -8
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -68,12 +68,12 @@ Concrete behavioral components with built-in interaction state tracking, accessi
|
|
|
68
68
|
|
|
69
69
|
Standalone helper functions re-exported from the otp-input module for custom OTP input implementations:
|
|
70
70
|
|
|
71
|
-
| Export
|
|
72
|
-
|
|
|
73
|
-
| `applyOtpInputChange(value,
|
|
74
|
-
| `filterDigits(text)`
|
|
75
|
-
| `filterAllowedCharacters(
|
|
76
|
-
| `filterByRegExp(
|
|
71
|
+
| Export | Description |
|
|
72
|
+
| --------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
|
73
|
+
| `applyOtpInputChange(value, index, rawText, cellCount, filter)` | Applies a filtered edit at `index` and returns `{ nextValue, focusIndex }`. |
|
|
74
|
+
| `filterDigits(text)` | Filters a string to digits only (0–9). |
|
|
75
|
+
| `filterAllowedCharacters(allowed)` | Returns a `(text) => string` filter that keeps characters present in `allowed`. |
|
|
76
|
+
| `filterByRegExp(pattern)` | Returns a `(text) => string` filter that keeps characters matching `pattern` (per code unit). |
|
|
77
77
|
|
|
78
78
|
### Context hooks and providers
|
|
79
79
|
|
|
@@ -87,12 +87,12 @@ Several modules export context providers and hooks for reading component state f
|
|
|
87
87
|
| checkbox | — | `useCheckboxContext` | `ICheckboxContextValue` |
|
|
88
88
|
| chip | — | `useChipContext` | `InteractionState` |
|
|
89
89
|
| dialog | `DialogProvider` | `useDialog` | `IDialogContextType` |
|
|
90
|
-
| input | — | `useInputContext` |
|
|
90
|
+
| input | — | `useInputContext` | — |
|
|
91
91
|
| link | `LinkProvider`, `LinkInteractionProvider` | `useLink`, `useLinkInteractionContext` | `LinkConfig`, `LinkInteractionState` |
|
|
92
92
|
| list-item | `ListItemProvider` | `useListItemContext` | `InteractionState` |
|
|
93
93
|
| otp-input | `OtpInputProvider`, `OtpCellIndexProvider` | `useOtpInputContext`, `useOtpCellIndexContext` | `OtpInputContextValue`, `OtpInputCellIndexContextValue` |
|
|
94
94
|
| progress | — | `useProgressContext` | `ProgressContextValue` |
|
|
95
|
-
| radio |
|
|
95
|
+
| radio | — | `useRadioContext` | `IRadioContextValue` |
|
|
96
96
|
| select | — | `useSelectContext`, `useSelectItemContext` | `SelectContextValue`, `SelectItemInteractionState` |
|
|
97
97
|
| slider | — | `useSliderContext` | `SliderContextValue` |
|
|
98
98
|
| tile | `TileProvider` | `useTileContext` | `ITileContextValue`, `ITileGroupContextValue` |
|
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.183",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"@react-stately/disclosure": "3.1.1",
|
|
69
69
|
"@react-stately/radio": "3.12.0",
|
|
70
70
|
"@react-stately/toggle": "3.9.4",
|
|
71
|
-
"@cdx-ui/formatters": "0.0.1-beta.
|
|
72
|
-
"@cdx-ui/utils": "0.0.1-beta.
|
|
71
|
+
"@cdx-ui/formatters": "0.0.1-beta.183",
|
|
72
|
+
"@cdx-ui/utils": "0.0.1-beta.183"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@types/react": "19.1.17",
|