@instructure/ui-checkbox 8.12.1-snapshot.7 → 8.13.0
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/Checkbox/CheckboxFacade/index.js +2 -2
- package/es/Checkbox/ToggleFacade/index.js +2 -2
- package/es/Checkbox/props.js +1 -1
- package/es/CheckboxGroup/props.js +1 -1
- package/lib/Checkbox/CheckboxFacade/index.js +3 -3
- package/lib/Checkbox/CheckboxFacade/props.js +1 -1
- package/lib/Checkbox/ToggleFacade/index.js +3 -3
- package/lib/Checkbox/ToggleFacade/props.js +1 -1
- package/lib/Checkbox/index.js +2 -1
- package/lib/Checkbox/props.js +2 -2
- package/lib/CheckboxGroup/index.js +1 -1
- package/lib/CheckboxGroup/props.js +2 -2
- package/lib/index.js +4 -4
- package/package.json +20 -21
- package/src/Checkbox/props.ts +1 -1
- package/src/CheckboxGroup/props.ts +1 -1
- package/types/Checkbox/index.d.ts +2 -2
- package/types/CheckboxGroup/index.d.ts +2 -2
- package/LICENSE.md +0 -27
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
|
### Features
|
|
@@ -39,8 +39,8 @@ parent: Checkbox
|
|
|
39
39
|
---
|
|
40
40
|
**/
|
|
41
41
|
let CheckboxFacade = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = class CheckboxFacade extends Component {
|
|
42
|
-
constructor(
|
|
43
|
-
super(...
|
|
42
|
+
constructor() {
|
|
43
|
+
super(...arguments);
|
|
44
44
|
this.ref = null;
|
|
45
45
|
|
|
46
46
|
this.handleRef = el => {
|
|
@@ -38,8 +38,8 @@ parent: Checkbox
|
|
|
38
38
|
---
|
|
39
39
|
**/
|
|
40
40
|
let ToggleFacade = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = class ToggleFacade extends Component {
|
|
41
|
-
constructor(
|
|
42
|
-
super(...
|
|
41
|
+
constructor() {
|
|
42
|
+
super(...arguments);
|
|
43
43
|
this.ref = null;
|
|
44
44
|
|
|
45
45
|
this.handleRef = el => {
|
package/es/Checkbox/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.default = exports.CheckboxFacade = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
|
|
@@ -29,8 +29,8 @@ parent: Checkbox
|
|
|
29
29
|
---
|
|
30
30
|
**/
|
|
31
31
|
let CheckboxFacade = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = class CheckboxFacade extends _react.Component {
|
|
32
|
-
constructor(
|
|
33
|
-
super(...
|
|
32
|
+
constructor() {
|
|
33
|
+
super(...arguments);
|
|
34
34
|
this.ref = null;
|
|
35
35
|
|
|
36
36
|
this.handleRef = el => {
|
|
@@ -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
|
|
|
@@ -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.ToggleFacade = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
|
|
@@ -29,8 +29,8 @@ parent: Checkbox
|
|
|
29
29
|
---
|
|
30
30
|
**/
|
|
31
31
|
let ToggleFacade = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = class ToggleFacade extends _react.Component {
|
|
32
|
-
constructor(
|
|
33
|
-
super(...
|
|
32
|
+
constructor() {
|
|
33
|
+
super(...arguments);
|
|
34
34
|
this.ref = null;
|
|
35
35
|
|
|
36
36
|
this.handleRef = el => {
|
|
@@ -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
|
|
package/lib/Checkbox/index.js
CHANGED
|
@@ -5,6 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
+
exports.Checkbox = void 0;
|
|
8
9
|
Object.defineProperty(exports, "CheckboxFacade", {
|
|
9
10
|
enumerable: true,
|
|
10
11
|
get: function () {
|
|
@@ -17,7 +18,7 @@ Object.defineProperty(exports, "ToggleFacade", {
|
|
|
17
18
|
return _ToggleFacade.ToggleFacade;
|
|
18
19
|
}
|
|
19
20
|
});
|
|
20
|
-
exports.
|
|
21
|
+
exports.default = void 0;
|
|
21
22
|
|
|
22
23
|
var _react = require("react");
|
|
23
24
|
|
package/lib/Checkbox/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
|
|
|
@@ -43,7 +43,7 @@ const propTypes = {
|
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* object with shape: `{
|
|
46
|
-
* text: PropTypes.
|
|
46
|
+
* text: PropTypes.node,
|
|
47
47
|
* type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
|
|
48
48
|
* }`
|
|
49
49
|
*/
|
|
@@ -5,7 +5,7 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.default = exports.CheckboxGroup = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -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
|
|
|
@@ -63,7 +63,7 @@ const propTypes = {
|
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
65
|
* object with shape: `{
|
|
66
|
-
text: PropTypes.
|
|
66
|
+
text: PropTypes.node,
|
|
67
67
|
type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
|
|
68
68
|
}`
|
|
69
69
|
*/
|
package/lib/index.js
CHANGED
|
@@ -15,16 +15,16 @@ Object.defineProperty(exports, "CheckboxFacade", {
|
|
|
15
15
|
return _Checkbox.CheckboxFacade;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "CheckboxGroup", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function () {
|
|
21
|
-
return
|
|
21
|
+
return _CheckboxGroup.CheckboxGroup;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "ToggleFacade", {
|
|
25
25
|
enumerable: true,
|
|
26
26
|
get: function () {
|
|
27
|
-
return
|
|
27
|
+
return _Checkbox.ToggleFacade;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-checkbox",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.13.0",
|
|
4
4
|
"description": " styled HTML input type='checkbox' component.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -25,28 +25,28 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10",
|
|
28
|
-
"@instructure/console": "8.
|
|
29
|
-
"@instructure/emotion": "8.
|
|
30
|
-
"@instructure/shared-types": "8.
|
|
31
|
-
"@instructure/ui-dom-utils": "8.
|
|
32
|
-
"@instructure/ui-form-field": "8.
|
|
33
|
-
"@instructure/ui-icons": "8.
|
|
34
|
-
"@instructure/ui-prop-types": "8.
|
|
35
|
-
"@instructure/ui-react-utils": "8.
|
|
36
|
-
"@instructure/ui-svg-images": "8.
|
|
37
|
-
"@instructure/ui-testable": "8.
|
|
38
|
-
"@instructure/ui-utils": "8.
|
|
39
|
-
"@instructure/ui-view": "8.
|
|
40
|
-
"@instructure/uid": "8.
|
|
28
|
+
"@instructure/console": "8.13.0",
|
|
29
|
+
"@instructure/emotion": "8.13.0",
|
|
30
|
+
"@instructure/shared-types": "8.13.0",
|
|
31
|
+
"@instructure/ui-dom-utils": "8.13.0",
|
|
32
|
+
"@instructure/ui-form-field": "8.13.0",
|
|
33
|
+
"@instructure/ui-icons": "8.13.0",
|
|
34
|
+
"@instructure/ui-prop-types": "8.13.0",
|
|
35
|
+
"@instructure/ui-react-utils": "8.13.0",
|
|
36
|
+
"@instructure/ui-svg-images": "8.13.0",
|
|
37
|
+
"@instructure/ui-testable": "8.13.0",
|
|
38
|
+
"@instructure/ui-utils": "8.13.0",
|
|
39
|
+
"@instructure/ui-view": "8.13.0",
|
|
40
|
+
"@instructure/uid": "8.13.0",
|
|
41
41
|
"keycode": "^2",
|
|
42
42
|
"prop-types": "^15"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@instructure/ui-babel-preset": "8.
|
|
46
|
-
"@instructure/ui-color-utils": "8.
|
|
47
|
-
"@instructure/ui-test-locator": "8.
|
|
48
|
-
"@instructure/ui-test-utils": "8.
|
|
49
|
-
"@instructure/ui-themes": "8.
|
|
45
|
+
"@instructure/ui-babel-preset": "8.13.0",
|
|
46
|
+
"@instructure/ui-color-utils": "8.13.0",
|
|
47
|
+
"@instructure/ui-test-locator": "8.13.0",
|
|
48
|
+
"@instructure/ui-test-utils": "8.13.0",
|
|
49
|
+
"@instructure/ui-themes": "8.13.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": ">=16.8 <=17"
|
|
@@ -54,6 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"sideEffects": false
|
|
58
|
-
"gitHead": "1e7ac821932a91fe9ef761c96f747c7ea1f3925a"
|
|
57
|
+
"sideEffects": false
|
|
59
58
|
}
|
package/src/Checkbox/props.ts
CHANGED
|
@@ -74,7 +74,7 @@ const propTypes: PropValidators<PropKeys> = {
|
|
|
74
74
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
75
75
|
/**
|
|
76
76
|
* object with shape: `{
|
|
77
|
-
* text: PropTypes.
|
|
77
|
+
* text: PropTypes.node,
|
|
78
78
|
* type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
|
|
79
79
|
* }`
|
|
80
80
|
*/
|
|
@@ -16,7 +16,7 @@ declare class Checkbox extends Component<CheckboxProps> {
|
|
|
16
16
|
label: import("react").ReactNode;
|
|
17
17
|
id?: string | undefined;
|
|
18
18
|
value?: string | number | undefined;
|
|
19
|
-
messages?: import("@instructure/ui-form-field").FormMessage[] | undefined;
|
|
19
|
+
messages?: import("@instructure/ui-form-field/types/FormPropTypes").FormMessage[] | undefined;
|
|
20
20
|
defaultChecked?: boolean | undefined;
|
|
21
21
|
checked?: any;
|
|
22
22
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -37,7 +37,7 @@ declare class Checkbox extends Component<CheckboxProps> {
|
|
|
37
37
|
label: import("react").ReactNode;
|
|
38
38
|
id?: string | undefined;
|
|
39
39
|
value?: string | number | undefined;
|
|
40
|
-
messages?: import("@instructure/ui-form-field").FormMessage[] | undefined;
|
|
40
|
+
messages?: import("@instructure/ui-form-field/types/FormPropTypes").FormMessage[] | undefined;
|
|
41
41
|
defaultChecked?: boolean | undefined;
|
|
42
42
|
checked?: any;
|
|
43
43
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -16,7 +16,7 @@ declare class CheckboxGroup extends Component<CheckboxGroupProps> {
|
|
|
16
16
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
17
17
|
disabled?: boolean | undefined;
|
|
18
18
|
readOnly?: boolean | undefined;
|
|
19
|
-
messages?: import("@instructure/ui-form-field").FormMessage[] | undefined;
|
|
19
|
+
messages?: import("@instructure/ui-form-field/types/FormPropTypes").FormMessage[] | undefined;
|
|
20
20
|
size?: "small" | "medium" | "large" | undefined;
|
|
21
21
|
layout?: "columns" | "inline" | "stacked" | undefined;
|
|
22
22
|
}>;
|
|
@@ -29,7 +29,7 @@ declare class CheckboxGroup extends Component<CheckboxGroupProps> {
|
|
|
29
29
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
30
30
|
disabled?: boolean | undefined;
|
|
31
31
|
readOnly?: boolean | undefined;
|
|
32
|
-
messages?: import("@instructure/ui-form-field").FormMessage[] | undefined;
|
|
32
|
+
messages?: import("@instructure/ui-form-field/types/FormPropTypes").FormMessage[] | undefined;
|
|
33
33
|
size?: "small" | "medium" | "large" | undefined;
|
|
34
34
|
layout?: "columns" | "inline" | "stacked" | undefined;
|
|
35
35
|
})[];
|
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.
|