@instructure/ui-number-input 8.10.1-snapshot.8 → 8.10.2

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,6 +3,14 @@
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
+ ## [8.10.2](https://github.com/instructure/instructure-ui/compare/v8.10.1...v8.10.2) (2021-10-01)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-number-input
9
+
10
+ ## [8.10.1](https://github.com/instructure/instructure-ui/compare/v8.10.0...v8.10.1) (2021-10-01)
11
+
12
+ **Note:** Version bump only for package @instructure/ui-number-input
13
+
6
14
  # [8.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28)
7
15
 
8
16
  **Note:** Version bump only for package @instructure/ui-number-input
@@ -50,6 +50,7 @@ let NumberInput = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
50
50
  hasFocus: false
51
51
  };
52
52
  this._input = null;
53
+ this.ref = null;
53
54
 
54
55
  this.handleRef = element => {
55
56
  this._input = element;
@@ -183,7 +184,10 @@ let NumberInput = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
183
184
  return jsx(FormField, Object.assign({}, pickProps(this.props, FormField.allowedProps), {
184
185
  label: callRenderProp(renderLabel),
185
186
  inline: display === 'inline-block',
186
- id: this.id
187
+ id: this.id,
188
+ elementRef: element => {
189
+ this.ref = element;
190
+ }
187
191
  }), jsx("span", {
188
192
  css: (_this$props$styles4 = this.props.styles) === null || _this$props$styles4 === void 0 ? void 0 : _this$props$styles4.inputWidth,
189
193
  style: width ? {
@@ -52,6 +52,7 @@ let NumberInput = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.defaul
52
52
  hasFocus: false
53
53
  };
54
54
  this._input = null;
55
+ this.ref = null;
55
56
 
56
57
  this.handleRef = element => {
57
58
  this._input = element;
@@ -185,7 +186,10 @@ let NumberInput = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.defaul
185
186
  return (0, _emotion.jsx)(_FormField.FormField, Object.assign({}, (0, _pickProps.pickProps)(this.props, _FormField.FormField.allowedProps), {
186
187
  label: (0, _callRenderProp.callRenderProp)(renderLabel),
187
188
  inline: display === 'inline-block',
188
- id: this.id
189
+ id: this.id,
190
+ elementRef: element => {
191
+ this.ref = element;
192
+ }
189
193
  }), (0, _emotion.jsx)("span", {
190
194
  css: (_this$props$styles4 = this.props.styles) === null || _this$props$styles4 === void 0 ? void 0 : _this$props$styles4.inputWidth,
191
195
  style: width ? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-number-input",
3
- "version": "8.10.1-snapshot.8+21f46f4e3",
3
+ "version": "8.10.2",
4
4
  "description": "A UI component library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "homepage": "https://instructure.github.io/instructure-ui/",
@@ -24,21 +24,21 @@
24
24
  "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
25
25
  },
26
26
  "devDependencies": {
27
- "@instructure/ui-babel-preset": "8.10.1-snapshot.8+21f46f4e3",
28
- "@instructure/ui-test-locator": "8.10.1-snapshot.8+21f46f4e3",
29
- "@instructure/ui-test-utils": "8.10.1-snapshot.8+21f46f4e3",
30
- "@instructure/ui-themes": "8.10.1-snapshot.8+21f46f4e3"
27
+ "@instructure/ui-babel-preset": "8.10.2",
28
+ "@instructure/ui-test-locator": "8.10.2",
29
+ "@instructure/ui-test-utils": "8.10.2",
30
+ "@instructure/ui-themes": "8.10.2"
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.13.10",
34
- "@instructure/emotion": "8.10.1-snapshot.8+21f46f4e3",
35
- "@instructure/shared-types": "8.10.1-snapshot.8+21f46f4e3",
36
- "@instructure/ui-form-field": "8.10.1-snapshot.8+21f46f4e3",
37
- "@instructure/ui-icons": "8.10.1-snapshot.8+21f46f4e3",
38
- "@instructure/ui-react-utils": "8.10.1-snapshot.8+21f46f4e3",
39
- "@instructure/ui-testable": "8.10.1-snapshot.8+21f46f4e3",
40
- "@instructure/ui-utils": "8.10.1-snapshot.8+21f46f4e3",
41
- "@instructure/uid": "8.10.1-snapshot.8+21f46f4e3",
34
+ "@instructure/emotion": "8.10.2",
35
+ "@instructure/shared-types": "8.10.2",
36
+ "@instructure/ui-form-field": "8.10.2",
37
+ "@instructure/ui-icons": "8.10.2",
38
+ "@instructure/ui-react-utils": "8.10.2",
39
+ "@instructure/ui-testable": "8.10.2",
40
+ "@instructure/ui-utils": "8.10.2",
41
+ "@instructure/uid": "8.10.2",
42
42
  "keycode": "^2",
43
43
  "prop-types": "^15"
44
44
  },
@@ -48,6 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "sideEffects": false,
52
- "gitHead": "21f46f4e342898b019ab943a7e69a455621d9576"
51
+ "sideEffects": false
53
52
  }
@@ -91,6 +91,7 @@ class NumberInput extends Component<NumberInputProps, NumberInputState> {
91
91
 
92
92
  state: NumberInputState = { hasFocus: false }
93
93
  _input = null
94
+ ref: Element | null = null
94
95
 
95
96
  get id() {
96
97
  if (this.props.id) {
@@ -243,6 +244,9 @@ class NumberInput extends Component<NumberInputProps, NumberInputState> {
243
244
  label={callRenderProp(renderLabel)}
244
245
  inline={display === 'inline-block'}
245
246
  id={this.id}
247
+ elementRef={(element) => {
248
+ this.ref = element
249
+ }}
246
250
  >
247
251
  <span
248
252
  css={this.props.styles?.inputWidth}
@@ -72,6 +72,7 @@ declare class NumberInput extends Component<NumberInputProps, NumberInputState>
72
72
  };
73
73
  state: NumberInputState;
74
74
  _input: null;
75
+ ref: Element | null;
75
76
  get id(): any;
76
77
  get invalid(): boolean;
77
78
  get interaction(): import("@instructure/ui-react-utils").InteractionType;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/NumberInput/index.tsx"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qB,EACtB,MAAM,SAAS,CAAA;AAGhB;;;;;GAKG;AACH,cAEM,WAAY,SAAQ,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACrE,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAgB;IAC3C,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;MAyBlB;IAED,KAAK,EAAE,gBAAgB,CAAsB;IAC7C,MAAM,OAAO;IACb,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,IAAI,EAAE,QAWL;IAED,IAAI,OAAO,YAKV;IAED,IAAI,WAAW,0DAEd;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,IAAI,kBAAkB,IAAI,qBAAqB,CAM9C;IAGD,SAAS,yBAIR;IAGD,WAAW,uBAIV;IAGD,UAAU,uBAIT;IAGD,YAAY,uBAGX;IAGD,aAAa,uBAaZ;IAGD,kBAAkB,uBAEjB;IAGD,oBAAoB,uBAEnB;IAGD,YAAY,CAAC,KAAK,KAAA,EAAE,QAAQ,KAAA;IAW5B,YAAY;IA2BZ,MAAM;CAuDP;AAED,eAAe,WAAW,CAAA;AAC1B,OAAO,EAAE,WAAW,EAAE,CAAA"}
package/LICENSE.md DELETED
@@ -1,27 +0,0 @@
1
- ---
2
- title: The MIT License (MIT)
3
- category: Getting Started
4
- order: 9
5
- ---
6
-
7
- # The MIT License (MIT)
8
-
9
- Copyright (c) 2015 Instructure, Inc.
10
-
11
- **Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions.**
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.