@instructure/ui-number-input 11.7.2-snapshot-46 → 11.7.2-snapshot-48

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 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-46](https://github.com/instructure/instructure-ui/compare/v11.7.1...v11.7.2-snapshot-46) (2026-04-10)
6
+ ## [11.7.2-snapshot-48](https://github.com/instructure/instructure-ui/compare/v11.7.1...v11.7.2-snapshot-48) (2026-04-16)
7
7
 
8
- **Note:** Version bump only for package @instructure/ui-number-input
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-46",
3
+ "version": "11.7.2-snapshot-48",
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/shared-types": "11.7.2-snapshot-46",
20
- "@instructure/ui-a11y-utils": "11.7.2-snapshot-46",
21
- "@instructure/emotion": "11.7.2-snapshot-46",
22
- "@instructure/ui-form-field": "11.7.2-snapshot-46",
23
- "@instructure/ui-icons": "11.7.2-snapshot-46",
24
- "@instructure/ui-react-utils": "11.7.2-snapshot-46",
25
- "@instructure/ui-utils": "11.7.2-snapshot-46",
26
- "@instructure/uid": "11.7.2-snapshot-46"
19
+ "@instructure/shared-types": "11.7.2-snapshot-48",
20
+ "@instructure/emotion": "11.7.2-snapshot-48",
21
+ "@instructure/ui-a11y-utils": "11.7.2-snapshot-48",
22
+ "@instructure/ui-icons": "11.7.2-snapshot-48",
23
+ "@instructure/ui-form-field": "11.7.2-snapshot-48",
24
+ "@instructure/ui-react-utils": "11.7.2-snapshot-48",
25
+ "@instructure/uid": "11.7.2-snapshot-48",
26
+ "@instructure/ui-utils": "11.7.2-snapshot-48"
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-babel-preset": "11.7.2-snapshot-46",
34
- "@instructure/ui-scripts": "11.7.2-snapshot-46",
35
- "@instructure/ui-themes": "11.7.2-snapshot-46"
33
+ "@instructure/ui-scripts": "11.7.2-snapshot-48",
34
+ "@instructure/ui-themes": "11.7.2-snapshot-48",
35
+ "@instructure/ui-babel-preset": "11.7.2-snapshot-48"
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