@instructure/ui-number-input 8.12.1-snapshot.7 → 8.13.1-snapshot.9
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 +6 -0
- package/es/NumberInput/NumberInputLocator.js +6 -2
- package/es/NumberInput/index.js +2 -2
- package/es/NumberInput/props.js +1 -1
- package/lib/NumberInput/NumberInputLocator.js +6 -2
- package/lib/NumberInput/index.js +3 -3
- package/lib/NumberInput/props.js +2 -2
- package/package.json +14 -14
- package/src/NumberInput/props.ts +1 -1
- package/types/NumberInput/index.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +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
|
+
# [8.13.0](https://github.com/instructure/instructure-ui/compare/v8.12.0...v8.13.0) (2021-12-01)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **ui-form-field:** make FormField messages accept `ReactNode` text, not just `string` ([4d36973](https://github.com/instructure/instructure-ui/commit/4d369733414715a70bae0628378e8d82214eab3e))
|
|
11
|
+
|
|
6
12
|
# [8.12.0](https://github.com/instructure/instructure-ui/compare/v8.11.1...v8.12.0) (2021-11-17)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @instructure/ui-number-input
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
import { locator } from '@instructure/ui-test-locator';
|
|
25
25
|
import { NumberInput } from './index';
|
|
26
26
|
export const NumberInputLocator = locator(NumberInput.selector, {
|
|
27
|
-
findInput: (
|
|
28
|
-
|
|
27
|
+
findInput: function () {
|
|
28
|
+
return locator('input').find(...arguments);
|
|
29
|
+
},
|
|
30
|
+
findArrowButtons: function () {
|
|
31
|
+
return locator('button').findAll(...arguments);
|
|
32
|
+
}
|
|
29
33
|
});
|
package/es/NumberInput/index.js
CHANGED
|
@@ -44,8 +44,8 @@ id: NumberInput
|
|
|
44
44
|
**/
|
|
45
45
|
|
|
46
46
|
let NumberInput = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_temp = _class2 = class NumberInput extends Component {
|
|
47
|
-
constructor(
|
|
48
|
-
super(...
|
|
47
|
+
constructor() {
|
|
48
|
+
super(...arguments);
|
|
49
49
|
this.state = {
|
|
50
50
|
hasFocus: false
|
|
51
51
|
};
|
package/es/NumberInput/props.js
CHANGED
|
@@ -33,7 +33,11 @@ var _index = require("./index");
|
|
|
33
33
|
* SOFTWARE.
|
|
34
34
|
*/
|
|
35
35
|
const NumberInputLocator = (0, _locator.locator)(_index.NumberInput.selector, {
|
|
36
|
-
findInput: (
|
|
37
|
-
|
|
36
|
+
findInput: function () {
|
|
37
|
+
return (0, _locator.locator)('input').find(...arguments);
|
|
38
|
+
},
|
|
39
|
+
findArrowButtons: function () {
|
|
40
|
+
return (0, _locator.locator)('button').findAll(...arguments);
|
|
41
|
+
}
|
|
38
42
|
});
|
|
39
43
|
exports.NumberInputLocator = NumberInputLocator;
|
package/lib/NumberInput/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.default = exports.NumberInput = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
|
|
@@ -46,8 +46,8 @@ id: NumberInput
|
|
|
46
46
|
---
|
|
47
47
|
**/
|
|
48
48
|
let NumberInput = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_temp = _class2 = class NumberInput extends _react.Component {
|
|
49
|
-
constructor(
|
|
50
|
-
super(...
|
|
49
|
+
constructor() {
|
|
50
|
+
super(...arguments);
|
|
51
51
|
this.state = {
|
|
52
52
|
hasFocus: false
|
|
53
53
|
};
|
package/lib/NumberInput/props.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
@@ -55,7 +55,7 @@ const propTypes = {
|
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* Object with shape: `{
|
|
58
|
-
* text: PropTypes.
|
|
58
|
+
* text: PropTypes.node,
|
|
59
59
|
* type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
|
|
60
60
|
* }`
|
|
61
61
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-number-input",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.13.1-snapshot.9+f32ba918e",
|
|
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.
|
|
28
|
-
"@instructure/ui-test-locator": "8.
|
|
29
|
-
"@instructure/ui-test-utils": "8.
|
|
30
|
-
"@instructure/ui-themes": "8.
|
|
27
|
+
"@instructure/ui-babel-preset": "8.13.1-snapshot.9+f32ba918e",
|
|
28
|
+
"@instructure/ui-test-locator": "8.13.1-snapshot.9+f32ba918e",
|
|
29
|
+
"@instructure/ui-test-utils": "8.13.1-snapshot.9+f32ba918e",
|
|
30
|
+
"@instructure/ui-themes": "8.13.1-snapshot.9+f32ba918e"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.13.10",
|
|
34
|
-
"@instructure/emotion": "8.
|
|
35
|
-
"@instructure/shared-types": "8.
|
|
36
|
-
"@instructure/ui-form-field": "8.
|
|
37
|
-
"@instructure/ui-icons": "8.
|
|
38
|
-
"@instructure/ui-react-utils": "8.
|
|
39
|
-
"@instructure/ui-testable": "8.
|
|
40
|
-
"@instructure/ui-utils": "8.
|
|
41
|
-
"@instructure/uid": "8.
|
|
34
|
+
"@instructure/emotion": "8.13.1-snapshot.9+f32ba918e",
|
|
35
|
+
"@instructure/shared-types": "8.13.1-snapshot.9+f32ba918e",
|
|
36
|
+
"@instructure/ui-form-field": "8.13.1-snapshot.9+f32ba918e",
|
|
37
|
+
"@instructure/ui-icons": "8.13.1-snapshot.9+f32ba918e",
|
|
38
|
+
"@instructure/ui-react-utils": "8.13.1-snapshot.9+f32ba918e",
|
|
39
|
+
"@instructure/ui-testable": "8.13.1-snapshot.9+f32ba918e",
|
|
40
|
+
"@instructure/ui-utils": "8.13.1-snapshot.9+f32ba918e",
|
|
41
|
+
"@instructure/uid": "8.13.1-snapshot.9+f32ba918e",
|
|
42
42
|
"keycode": "^2",
|
|
43
43
|
"prop-types": "^15"
|
|
44
44
|
},
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"sideEffects": false,
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "f32ba918e4d3ce76c6ee95c856584d00a9d80958"
|
|
53
53
|
}
|
package/src/NumberInput/props.ts
CHANGED
|
@@ -104,7 +104,7 @@ const propTypes: PropValidators<PropKeys> = {
|
|
|
104
104
|
interaction: PropTypes.oneOf(['enabled', 'disabled', 'readonly']),
|
|
105
105
|
/**
|
|
106
106
|
* Object with shape: `{
|
|
107
|
-
* text: PropTypes.
|
|
107
|
+
* text: PropTypes.node,
|
|
108
108
|
* type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
|
|
109
109
|
* }`
|
|
110
110
|
*/
|
|
@@ -14,7 +14,7 @@ declare class NumberInput extends Component<NumberInputProps, NumberInputState>
|
|
|
14
14
|
renderLabel: import("react").ReactNode | ((...args: any[]) => any);
|
|
15
15
|
id?: string | undefined;
|
|
16
16
|
interaction?: import("@instructure/ui-react-utils").InteractionType | undefined;
|
|
17
|
-
messages?: import("@instructure/ui-form-field").FormMessage[] | undefined;
|
|
17
|
+
messages?: import("@instructure/ui-form-field/types/FormPropTypes").FormMessage[] | undefined;
|
|
18
18
|
placeholder?: string | undefined;
|
|
19
19
|
isRequired?: boolean | undefined;
|
|
20
20
|
showArrows?: boolean | undefined;
|
|
@@ -35,7 +35,7 @@ declare class NumberInput extends Component<NumberInputProps, NumberInputState>
|
|
|
35
35
|
renderLabel: import("react").ReactNode | ((...args: any[]) => any);
|
|
36
36
|
id?: string | undefined;
|
|
37
37
|
interaction?: import("@instructure/ui-react-utils").InteractionType | undefined;
|
|
38
|
-
messages?: import("@instructure/ui-form-field").FormMessage[] | undefined;
|
|
38
|
+
messages?: import("@instructure/ui-form-field/types/FormPropTypes").FormMessage[] | undefined;
|
|
39
39
|
placeholder?: string | undefined;
|
|
40
40
|
isRequired?: boolean | undefined;
|
|
41
41
|
showArrows?: boolean | undefined;
|