@instructure/ui-range-input 8.10.1 → 8.10.3-snapshot.12
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 +4 -0
- package/LICENSE.md +27 -0
- package/es/RangeInput/index.js +5 -1
- package/lib/RangeInput/index.js +5 -1
- package/package.json +20 -19
- package/src/RangeInput/index.tsx +4 -0
- package/types/RangeInput/RangeInputLocator.d.ts +224 -224
- package/types/RangeInput/index.d.ts +1 -0
- package/types/RangeInput/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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-range-input
|
|
9
|
+
|
|
6
10
|
## [8.10.1](https://github.com/instructure/instructure-ui/compare/v8.10.0...v8.10.1) (2021-10-01)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @instructure/ui-range-input
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
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.
|
package/es/RangeInput/index.js
CHANGED
|
@@ -45,6 +45,7 @@ category: components
|
|
|
45
45
|
let RangeInput = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_temp = _class2 = class RangeInput extends Component {
|
|
46
46
|
constructor(props) {
|
|
47
47
|
super();
|
|
48
|
+
this.ref = null;
|
|
48
49
|
this._input = null;
|
|
49
50
|
this._inputListener = null;
|
|
50
51
|
this._changeListener = null;
|
|
@@ -147,7 +148,10 @@ let RangeInput = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2
|
|
|
147
148
|
/* eslint-disable jsx-a11y/no-redundant-roles */
|
|
148
149
|
|
|
149
150
|
return jsx(FormField, Object.assign({}, pickProps(this.props, FormField.allowedProps), {
|
|
150
|
-
id: this.id
|
|
151
|
+
id: this.id,
|
|
152
|
+
elementRef: el => {
|
|
153
|
+
this.ref = el;
|
|
154
|
+
}
|
|
151
155
|
}), jsx("div", {
|
|
152
156
|
css: (_this$props$styles2 = this.props.styles) === null || _this$props$styles2 === void 0 ? void 0 : _this$props$styles2.rangeInput
|
|
153
157
|
}, jsx("input", Object.assign({
|
package/lib/RangeInput/index.js
CHANGED
|
@@ -41,6 +41,7 @@ category: components
|
|
|
41
41
|
let RangeInput = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_temp = _class2 = class RangeInput extends _react.Component {
|
|
42
42
|
constructor(props) {
|
|
43
43
|
super();
|
|
44
|
+
this.ref = null;
|
|
44
45
|
this._input = null;
|
|
45
46
|
this._inputListener = null;
|
|
46
47
|
this._changeListener = null;
|
|
@@ -143,7 +144,10 @@ let RangeInput = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default
|
|
|
143
144
|
/* eslint-disable jsx-a11y/no-redundant-roles */
|
|
144
145
|
|
|
145
146
|
return (0, _emotion.jsx)(_FormField.FormField, Object.assign({}, (0, _pickProps.pickProps)(this.props, _FormField.FormField.allowedProps), {
|
|
146
|
-
id: this.id
|
|
147
|
+
id: this.id,
|
|
148
|
+
elementRef: el => {
|
|
149
|
+
this.ref = el;
|
|
150
|
+
}
|
|
147
151
|
}), (0, _emotion.jsx)("div", {
|
|
148
152
|
css: (_this$props$styles2 = this.props.styles) === null || _this$props$styles2 === void 0 ? void 0 : _this$props$styles2.rangeInput
|
|
149
153
|
}, (0, _emotion.jsx)("input", Object.assign({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-range-input",
|
|
3
|
-
"version": "8.10.
|
|
3
|
+
"version": "8.10.3-snapshot.12+af470a237",
|
|
4
4
|
"description": "A styled HTML range input",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -25,26 +25,26 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10",
|
|
28
|
-
"@instructure/console": "8.10.
|
|
29
|
-
"@instructure/emotion": "8.10.
|
|
30
|
-
"@instructure/shared-types": "8.10.
|
|
31
|
-
"@instructure/ui-color-utils": "8.10.
|
|
32
|
-
"@instructure/ui-dom-utils": "8.10.
|
|
33
|
-
"@instructure/ui-form-field": "8.10.
|
|
34
|
-
"@instructure/ui-i18n": "8.10.
|
|
35
|
-
"@instructure/ui-prop-types": "8.10.
|
|
36
|
-
"@instructure/ui-react-utils": "8.10.
|
|
37
|
-
"@instructure/ui-testable": "8.10.
|
|
38
|
-
"@instructure/ui-utils": "8.10.
|
|
39
|
-
"@instructure/ui-view": "8.10.
|
|
40
|
-
"@instructure/uid": "8.10.
|
|
28
|
+
"@instructure/console": "8.10.3-snapshot.12+af470a237",
|
|
29
|
+
"@instructure/emotion": "8.10.3-snapshot.12+af470a237",
|
|
30
|
+
"@instructure/shared-types": "8.10.3-snapshot.12+af470a237",
|
|
31
|
+
"@instructure/ui-color-utils": "8.10.3-snapshot.12+af470a237",
|
|
32
|
+
"@instructure/ui-dom-utils": "8.10.3-snapshot.12+af470a237",
|
|
33
|
+
"@instructure/ui-form-field": "8.10.3-snapshot.12+af470a237",
|
|
34
|
+
"@instructure/ui-i18n": "8.10.3-snapshot.12+af470a237",
|
|
35
|
+
"@instructure/ui-prop-types": "8.10.3-snapshot.12+af470a237",
|
|
36
|
+
"@instructure/ui-react-utils": "8.10.3-snapshot.12+af470a237",
|
|
37
|
+
"@instructure/ui-testable": "8.10.3-snapshot.12+af470a237",
|
|
38
|
+
"@instructure/ui-utils": "8.10.3-snapshot.12+af470a237",
|
|
39
|
+
"@instructure/ui-view": "8.10.3-snapshot.12+af470a237",
|
|
40
|
+
"@instructure/uid": "8.10.3-snapshot.12+af470a237",
|
|
41
41
|
"prop-types": "^15"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@instructure/ui-babel-preset": "8.10.
|
|
45
|
-
"@instructure/ui-test-locator": "8.10.
|
|
46
|
-
"@instructure/ui-test-utils": "8.10.
|
|
47
|
-
"@instructure/ui-themes": "8.10.
|
|
44
|
+
"@instructure/ui-babel-preset": "8.10.3-snapshot.12+af470a237",
|
|
45
|
+
"@instructure/ui-test-locator": "8.10.3-snapshot.12+af470a237",
|
|
46
|
+
"@instructure/ui-test-utils": "8.10.3-snapshot.12+af470a237",
|
|
47
|
+
"@instructure/ui-themes": "8.10.3-snapshot.12+af470a237"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"react": ">=16.8 <=17"
|
|
@@ -52,5 +52,6 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"sideEffects": false
|
|
55
|
+
"sideEffects": false,
|
|
56
|
+
"gitHead": "af470a2374463c265ed1304870b7890fc8bb09a4"
|
|
56
57
|
}
|
package/src/RangeInput/index.tsx
CHANGED
|
@@ -65,6 +65,7 @@ class RangeInput extends Component<RangeInputProps> {
|
|
|
65
65
|
readOnly: false
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
ref: Element | null = null
|
|
68
69
|
_input: HTMLInputElement | null = null
|
|
69
70
|
_inputListener: { remove(): void } | null = null
|
|
70
71
|
_changeListener: { remove(): void } | null = null
|
|
@@ -183,6 +184,9 @@ class RangeInput extends Component<RangeInputProps> {
|
|
|
183
184
|
<FormField
|
|
184
185
|
{...pickProps(this.props, FormField.allowedProps)}
|
|
185
186
|
id={this.id}
|
|
187
|
+
elementRef={(el) => {
|
|
188
|
+
this.ref = el
|
|
189
|
+
}}
|
|
186
190
|
>
|
|
187
191
|
<div css={this.props.styles?.rangeInput}>
|
|
188
192
|
<input
|