@instructure/ui-checkbox 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 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(...args) {
43
- super(...args);
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(...args) {
42
- super(...args);
41
+ constructor() {
42
+ super(...arguments);
43
43
  this.ref = null;
44
44
 
45
45
  this.handleRef = el => {
@@ -31,7 +31,7 @@ const propTypes = {
31
31
 
32
32
  /**
33
33
  * object with shape: `{
34
- * text: PropTypes.string,
34
+ * text: PropTypes.node,
35
35
  * type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
36
36
  * }`
37
37
  */
@@ -48,7 +48,7 @@ const propTypes = {
48
48
 
49
49
  /**
50
50
  * object with shape: `{
51
- text: PropTypes.string,
51
+ text: PropTypes.node,
52
52
  type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
53
53
  }`
54
54
  */
@@ -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.CheckboxFacade = exports.default = void 0;
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(...args) {
33
- super(...args);
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.allowedProps = exports.propTypes = void 0;
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.ToggleFacade = exports.default = void 0;
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(...args) {
33
- super(...args);
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.allowedProps = exports.propTypes = void 0;
8
+ exports.propTypes = exports.allowedProps = void 0;
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
@@ -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.Checkbox = exports.default = void 0;
21
+ exports.default = void 0;
21
22
 
22
23
  var _react = require("react");
23
24
 
@@ -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.allowedProps = exports.propTypes = void 0;
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.string,
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.CheckboxGroup = exports.default = void 0;
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.allowedProps = exports.propTypes = void 0;
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.string,
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, "ToggleFacade", {
18
+ Object.defineProperty(exports, "CheckboxGroup", {
19
19
  enumerable: true,
20
20
  get: function () {
21
- return _Checkbox.ToggleFacade;
21
+ return _CheckboxGroup.CheckboxGroup;
22
22
  }
23
23
  });
24
- Object.defineProperty(exports, "CheckboxGroup", {
24
+ Object.defineProperty(exports, "ToggleFacade", {
25
25
  enumerable: true,
26
26
  get: function () {
27
- return _CheckboxGroup.CheckboxGroup;
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.12.1-snapshot.7+1e7ac8219",
3
+ "version": "8.13.1-snapshot.9+f32ba918e",
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.12.1-snapshot.7+1e7ac8219",
29
- "@instructure/emotion": "8.12.1-snapshot.7+1e7ac8219",
30
- "@instructure/shared-types": "8.12.1-snapshot.7+1e7ac8219",
31
- "@instructure/ui-dom-utils": "8.12.1-snapshot.7+1e7ac8219",
32
- "@instructure/ui-form-field": "8.12.1-snapshot.7+1e7ac8219",
33
- "@instructure/ui-icons": "8.12.1-snapshot.7+1e7ac8219",
34
- "@instructure/ui-prop-types": "8.12.1-snapshot.7+1e7ac8219",
35
- "@instructure/ui-react-utils": "8.12.1-snapshot.7+1e7ac8219",
36
- "@instructure/ui-svg-images": "8.12.1-snapshot.7+1e7ac8219",
37
- "@instructure/ui-testable": "8.12.1-snapshot.7+1e7ac8219",
38
- "@instructure/ui-utils": "8.12.1-snapshot.7+1e7ac8219",
39
- "@instructure/ui-view": "8.12.1-snapshot.7+1e7ac8219",
40
- "@instructure/uid": "8.12.1-snapshot.7+1e7ac8219",
28
+ "@instructure/console": "8.13.1-snapshot.9+f32ba918e",
29
+ "@instructure/emotion": "8.13.1-snapshot.9+f32ba918e",
30
+ "@instructure/shared-types": "8.13.1-snapshot.9+f32ba918e",
31
+ "@instructure/ui-dom-utils": "8.13.1-snapshot.9+f32ba918e",
32
+ "@instructure/ui-form-field": "8.13.1-snapshot.9+f32ba918e",
33
+ "@instructure/ui-icons": "8.13.1-snapshot.9+f32ba918e",
34
+ "@instructure/ui-prop-types": "8.13.1-snapshot.9+f32ba918e",
35
+ "@instructure/ui-react-utils": "8.13.1-snapshot.9+f32ba918e",
36
+ "@instructure/ui-svg-images": "8.13.1-snapshot.9+f32ba918e",
37
+ "@instructure/ui-testable": "8.13.1-snapshot.9+f32ba918e",
38
+ "@instructure/ui-utils": "8.13.1-snapshot.9+f32ba918e",
39
+ "@instructure/ui-view": "8.13.1-snapshot.9+f32ba918e",
40
+ "@instructure/uid": "8.13.1-snapshot.9+f32ba918e",
41
41
  "keycode": "^2",
42
42
  "prop-types": "^15"
43
43
  },
44
44
  "devDependencies": {
45
- "@instructure/ui-babel-preset": "8.12.1-snapshot.7+1e7ac8219",
46
- "@instructure/ui-color-utils": "8.12.1-snapshot.7+1e7ac8219",
47
- "@instructure/ui-test-locator": "8.12.1-snapshot.7+1e7ac8219",
48
- "@instructure/ui-test-utils": "8.12.1-snapshot.7+1e7ac8219",
49
- "@instructure/ui-themes": "8.12.1-snapshot.7+1e7ac8219"
45
+ "@instructure/ui-babel-preset": "8.13.1-snapshot.9+f32ba918e",
46
+ "@instructure/ui-color-utils": "8.13.1-snapshot.9+f32ba918e",
47
+ "@instructure/ui-test-locator": "8.13.1-snapshot.9+f32ba918e",
48
+ "@instructure/ui-test-utils": "8.13.1-snapshot.9+f32ba918e",
49
+ "@instructure/ui-themes": "8.13.1-snapshot.9+f32ba918e"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": ">=16.8 <=17"
@@ -55,5 +55,5 @@
55
55
  "access": "public"
56
56
  },
57
57
  "sideEffects": false,
58
- "gitHead": "1e7ac821932a91fe9ef761c96f747c7ea1f3925a"
58
+ "gitHead": "f32ba918e4d3ce76c6ee95c856584d00a9d80958"
59
59
  }
@@ -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.string,
77
+ * text: PropTypes.node,
78
78
  * type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
79
79
  * }`
80
80
  */
@@ -75,7 +75,7 @@ const propTypes: PropValidators<PropKeys> = {
75
75
  readOnly: PropTypes.bool,
76
76
  /**
77
77
  * object with shape: `{
78
- text: PropTypes.string,
78
+ text: PropTypes.node,
79
79
  type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
80
80
  }`
81
81
  */
@@ -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
  })[];