@dxos/react-input 0.8.4-main.e098934 → 0.8.4-main.e8ec1fe
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/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs.map +2 -2
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/PinInput.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/PinInput.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-input",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.e8ec1fe",
|
|
4
4
|
"description": "Input primitive components for React.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"@radix-ui/react-use-controllable-state": "1.1.0",
|
|
31
31
|
"lodash.omit": "^4.5.0",
|
|
32
32
|
"rci": "^0.1.0",
|
|
33
|
-
"@dxos/react-hooks": "0.8.4-main.
|
|
33
|
+
"@dxos/react-hooks": "0.8.4-main.e8ec1fe"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@types/react": "~
|
|
37
|
-
"@types/react-dom": "~
|
|
38
|
-
"react": "~
|
|
39
|
-
"react-dom": "~
|
|
36
|
+
"@types/react": "~19.2.2",
|
|
37
|
+
"@types/react-dom": "~19.2.2",
|
|
38
|
+
"react": "~19.2.0",
|
|
39
|
+
"react-dom": "~19.2.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"react": "
|
|
43
|
-
"react-dom": "
|
|
42
|
+
"react": "^19.0.0",
|
|
43
|
+
"react-dom": "^19.0.0"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
package/src/PinInput.tsx
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { CodeInput, getSegmentCssWidth } from 'rci';
|
|
6
|
-
import React, { type ComponentProps, type ComponentPropsWithRef, forwardRef, useCallback } from 'react';
|
|
6
|
+
import React, { type ComponentProps, type ComponentPropsWithRef, type RefObject, forwardRef, useCallback } from 'react';
|
|
7
7
|
|
|
8
8
|
import { useForwardedRef, useIsFocused } from '@dxos/react-hooks';
|
|
9
9
|
|
|
@@ -66,7 +66,7 @@ const PinInput = forwardRef<HTMLInputElement, PinInputProps>(
|
|
|
66
66
|
'aria-invalid': 'true' as const,
|
|
67
67
|
'aria-errormessage': errorMessageId,
|
|
68
68
|
}),
|
|
69
|
-
inputRef
|
|
69
|
+
inputRef: inputRef as RefObject<HTMLInputElement>,
|
|
70
70
|
renderSegment,
|
|
71
71
|
className: inputClassName,
|
|
72
72
|
}}
|