@instructure/ui-number-input 11.7.2-snapshot-45 → 11.7.2-snapshot-47
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/CHANGELOG.md +5 -2
- package/es/NumberInput/v2/index.js +2 -1
- package/lib/NumberInput/v2/index.js +2 -1
- package/package.json +12 -12
- package/src/NumberInput/v2/index.tsx +5 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/NumberInput/v2/index.d.ts +2 -0
- package/types/NumberInput/v2/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [11.7.2-snapshot-
|
|
6
|
+
## [11.7.2-snapshot-47](https://github.com/instructure/instructure-ui/compare/v11.7.1...v11.7.2-snapshot-47) (2026-04-16)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ui-text-area,ui-radio-input,ui-number-input:** fix Tooltip placements ([034c163](https://github.com/instructure/instructure-ui/commit/034c16362ca78db3f5af2f277b2f013851faa46a))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
|
@@ -206,7 +206,8 @@ const NumberInput = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
206
206
|
get value() {
|
|
207
207
|
var _inputRef$current3;
|
|
208
208
|
return (_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.value;
|
|
209
|
-
}
|
|
209
|
+
},
|
|
210
|
+
ref: containerRef
|
|
210
211
|
}), [id, invalid, interaction]);
|
|
211
212
|
|
|
212
213
|
// Render methods
|
|
@@ -216,7 +216,8 @@ const NumberInput = exports.NumberInput = /*#__PURE__*/(0, _react.forwardRef)((p
|
|
|
216
216
|
get value() {
|
|
217
217
|
var _inputRef$current3;
|
|
218
218
|
return (_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.value;
|
|
219
|
-
}
|
|
219
|
+
},
|
|
220
|
+
ref: containerRef
|
|
220
221
|
}), [id, invalid, interaction]);
|
|
221
222
|
|
|
222
223
|
// Render methods
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-number-input",
|
|
3
|
-
"version": "11.7.2-snapshot-
|
|
3
|
+
"version": "11.7.2-snapshot-47",
|
|
4
4
|
"description": "A UI component library made by Instructure Inc.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -16,23 +16,23 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.27.6",
|
|
18
18
|
"keycode": "^2",
|
|
19
|
-
"@instructure/
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/ui-
|
|
23
|
-
"@instructure/ui-
|
|
24
|
-
"@instructure/ui-react-utils": "11.7.2-snapshot-
|
|
25
|
-
"@instructure/
|
|
26
|
-
"@instructure/
|
|
19
|
+
"@instructure/shared-types": "11.7.2-snapshot-47",
|
|
20
|
+
"@instructure/ui-a11y-utils": "11.7.2-snapshot-47",
|
|
21
|
+
"@instructure/emotion": "11.7.2-snapshot-47",
|
|
22
|
+
"@instructure/ui-form-field": "11.7.2-snapshot-47",
|
|
23
|
+
"@instructure/ui-icons": "11.7.2-snapshot-47",
|
|
24
|
+
"@instructure/ui-react-utils": "11.7.2-snapshot-47",
|
|
25
|
+
"@instructure/uid": "11.7.2-snapshot-47",
|
|
26
|
+
"@instructure/ui-utils": "11.7.2-snapshot-47"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@testing-library/jest-dom": "^6.6.3",
|
|
30
30
|
"@testing-library/react": "15.0.7",
|
|
31
31
|
"@testing-library/user-event": "^14.6.1",
|
|
32
32
|
"vitest": "^3.2.2",
|
|
33
|
-
"@instructure/ui-
|
|
34
|
-
"@instructure/ui-
|
|
35
|
-
"@instructure/ui-
|
|
33
|
+
"@instructure/ui-babel-preset": "11.7.2-snapshot-47",
|
|
34
|
+
"@instructure/ui-scripts": "11.7.2-snapshot-47",
|
|
35
|
+
"@instructure/ui-themes": "11.7.2-snapshot-47"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": ">=18 <=19"
|
|
@@ -28,7 +28,8 @@ import {
|
|
|
28
28
|
useCallback,
|
|
29
29
|
useImperativeHandle,
|
|
30
30
|
forwardRef,
|
|
31
|
-
useEffect
|
|
31
|
+
useEffect,
|
|
32
|
+
type RefObject
|
|
32
33
|
} from 'react'
|
|
33
34
|
import keycode from 'keycode'
|
|
34
35
|
|
|
@@ -267,7 +268,8 @@ const NumberInput = forwardRef<NumberInputHandle, NumberInputProps>(
|
|
|
267
268
|
},
|
|
268
269
|
get value() {
|
|
269
270
|
return inputRef.current?.value
|
|
270
|
-
}
|
|
271
|
+
},
|
|
272
|
+
ref: containerRef
|
|
271
273
|
}),
|
|
272
274
|
[id, invalid, interaction]
|
|
273
275
|
)
|
|
@@ -376,6 +378,7 @@ export interface NumberInputHandle {
|
|
|
376
378
|
readonly invalid: boolean
|
|
377
379
|
readonly interaction: ReturnType<typeof getInteraction>
|
|
378
380
|
readonly value: string | undefined
|
|
381
|
+
readonly ref: RefObject<Element | null>
|
|
379
382
|
}
|
|
380
383
|
|
|
381
384
|
export default NumberInput
|