@instructure/ui-number-input 11.7.3-snapshot-33 → 11.7.3-snapshot-37

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,7 +3,7 @@
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.3-snapshot-33](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3-snapshot-33) (2026-05-07)
6
+ ## [11.7.3-snapshot-37](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3-snapshot-37) (2026-05-07)
7
7
 
8
8
 
9
9
  ### Bug Fixes
@@ -11,6 +11,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
  * **many:** update dependencies, remove lots of Babel plugins, remove Webpack 4 support ([f916fca](https://github.com/instructure/instructure-ui/commit/f916fcafdddcb2d7de401f93e8ff92cfdfa47bba))
12
12
 
13
13
 
14
+ ### Features
15
+
16
+ * **many:** add a way for consumers to pass their own component theme definition so they can build their own components with InstUI ([ce01c3e](https://github.com/instructure/instructure-ui/commit/ce01c3eedc46aa2588f4c8309a6eabf4461aaec7))
17
+
18
+
14
19
 
15
20
 
16
21
 
@@ -29,7 +29,7 @@ import { FormField } from '@instructure/ui-form-field/v11_6';
29
29
  import { IconArrowOpenDownLine, IconArrowOpenUpLine } from '@instructure/ui-icons';
30
30
  import { omitProps, pickProps, callRenderProp, getInteraction, withDeterministicId } from '@instructure/ui-react-utils';
31
31
  import { hasVisibleChildren } from '@instructure/ui-a11y-utils';
32
- import { withStyleLegacy as withStyle } from '@instructure/emotion';
32
+ import { withStyle } from '@instructure/emotion';
33
33
  import generateStyle from "./styles.js";
34
34
  import generateComponentTheme from "./theme.js";
35
35
  import { allowedProps } from "./props.js";
@@ -27,7 +27,7 @@ import keycode from 'keycode';
27
27
  import { FormField } from '@instructure/ui-form-field/latest';
28
28
  import { ChevronUpInstUIIcon, ChevronDownInstUIIcon } from '@instructure/ui-icons';
29
29
  import { pickProps, callRenderProp, getInteraction, useDeterministicId, passthroughProps } from '@instructure/ui-react-utils';
30
- import { useStyle } from '@instructure/emotion';
30
+ import { useStyleNew } from '@instructure/emotion';
31
31
  import generateStyle from "./styles.js";
32
32
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
33
33
  /**
@@ -92,9 +92,9 @@ const NumberInput = /*#__PURE__*/forwardRef((props, ref) => {
92
92
  setUpButtonState('actionSecondaryBaseColor');
93
93
  setDownButtonState('actionSecondaryBaseColor');
94
94
  }
95
- // Styles - useStyle will pass these to generateStyle(componentTheme, params as props, params as state)
95
+ // Styles - useStyleNew will pass these to generateStyle(componentTheme, params as props, params as state)
96
96
  // We need to provide all values that generateStyle needs from both props and state
97
- const styles = useStyle({
97
+ const styles = useStyleNew({
98
98
  generateStyle,
99
99
  themeOverride,
100
100
  params: {
@@ -51,7 +51,7 @@ category: components
51
51
  id: NumberInput
52
52
  ---
53
53
  **/
54
- let NumberInput = exports.NumberInput = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyleLegacy)(_styles.default, _theme.default), _dec(_class = _dec2(_class = class NumberInput extends _react.Component {
54
+ let NumberInput = exports.NumberInput = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = _dec2(_class = class NumberInput extends _react.Component {
55
55
  static displayName = "NumberInput";
56
56
  static componentId = 'NumberInput';
57
57
  static allowedProps = _props.allowedProps;
@@ -103,9 +103,9 @@ const NumberInput = exports.NumberInput = /*#__PURE__*/(0, _react.forwardRef)((p
103
103
  setUpButtonState('actionSecondaryBaseColor');
104
104
  setDownButtonState('actionSecondaryBaseColor');
105
105
  }
106
- // Styles - useStyle will pass these to generateStyle(componentTheme, params as props, params as state)
106
+ // Styles - useStyleNew will pass these to generateStyle(componentTheme, params as props, params as state)
107
107
  // We need to provide all values that generateStyle needs from both props and state
108
- const styles = (0, _emotion.useStyle)({
108
+ const styles = (0, _emotion.useStyleNew)({
109
109
  generateStyle: _styles.default,
110
110
  themeOverride,
111
111
  params: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-number-input",
3
- "version": "11.7.3-snapshot-33",
3
+ "version": "11.7.3-snapshot-37",
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.29.2",
18
18
  "keycode": "^2",
19
- "@instructure/emotion": "11.7.3-snapshot-33",
20
- "@instructure/shared-types": "11.7.3-snapshot-33",
21
- "@instructure/ui-a11y-utils": "11.7.3-snapshot-33",
22
- "@instructure/ui-form-field": "11.7.3-snapshot-33",
23
- "@instructure/ui-icons": "11.7.3-snapshot-33",
24
- "@instructure/ui-react-utils": "11.7.3-snapshot-33",
25
- "@instructure/ui-themes": "11.7.3-snapshot-33",
26
- "@instructure/ui-utils": "11.7.3-snapshot-33",
27
- "@instructure/uid": "11.7.3-snapshot-33"
19
+ "@instructure/emotion": "11.7.3-snapshot-37",
20
+ "@instructure/shared-types": "11.7.3-snapshot-37",
21
+ "@instructure/ui-a11y-utils": "11.7.3-snapshot-37",
22
+ "@instructure/ui-form-field": "11.7.3-snapshot-37",
23
+ "@instructure/ui-icons": "11.7.3-snapshot-37",
24
+ "@instructure/ui-react-utils": "11.7.3-snapshot-37",
25
+ "@instructure/ui-themes": "11.7.3-snapshot-37",
26
+ "@instructure/ui-utils": "11.7.3-snapshot-37",
27
+ "@instructure/uid": "11.7.3-snapshot-37"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@testing-library/jest-dom": "^6.6.3",
31
31
  "@testing-library/react": "15.0.7",
32
32
  "@testing-library/user-event": "^14.6.1",
33
33
  "vitest": "^3.2.2",
34
- "@instructure/ui-babel-preset": "11.7.3-snapshot-33",
35
- "@instructure/ui-scripts": "11.7.3-snapshot-33"
34
+ "@instructure/ui-scripts": "11.7.3-snapshot-37",
35
+ "@instructure/ui-babel-preset": "11.7.3-snapshot-37"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "react": ">=18 <=19"
@@ -39,7 +39,7 @@ import {
39
39
  } from '@instructure/ui-react-utils'
40
40
  import { hasVisibleChildren } from '@instructure/ui-a11y-utils'
41
41
 
42
- import { withStyleLegacy as withStyle } from '@instructure/emotion'
42
+ import { withStyle } from '@instructure/emotion'
43
43
 
44
44
  import generateStyle from './styles'
45
45
  import generateComponentTheme from './theme'
@@ -46,7 +46,7 @@ import {
46
46
  passthroughProps
47
47
  } from '@instructure/ui-react-utils'
48
48
 
49
- import { useStyle } from '@instructure/emotion'
49
+ import { useStyleNew } from '@instructure/emotion'
50
50
 
51
51
  import generateStyle from './styles'
52
52
 
@@ -134,9 +134,9 @@ const NumberInput = forwardRef<NumberInputHandle, NumberInputProps>(
134
134
  setUpButtonState('actionSecondaryBaseColor')
135
135
  setDownButtonState('actionSecondaryBaseColor')
136
136
  }
137
- // Styles - useStyle will pass these to generateStyle(componentTheme, params as props, params as state)
137
+ // Styles - useStyleNew will pass these to generateStyle(componentTheme, params as props, params as state)
138
138
  // We need to provide all values that generateStyle needs from both props and state
139
- const styles = useStyle({
139
+ const styles = useStyleNew({
140
140
  generateStyle,
141
141
  themeOverride,
142
142
  params: {