@instructure/ui-form-field 8.25.1-snapshot-10 → 8.25.1-snapshot-13

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,7 +3,7 @@
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.25.1-snapshot-10](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.25.1-snapshot-10) (2022-06-20)
6
+ ## [8.25.1-snapshot-13](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.25.1-snapshot-13) (2022-06-22)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-form-field
9
9
 
@@ -33,25 +33,19 @@ category: components
33
33
  @tsProps
34
34
  **/
35
35
  class FormField extends Component {
36
- static displayName = "FormField";
37
- static componentId = 'FormField';
38
- static propTypes = propTypes;
39
- static allowedProps = allowedProps;
40
- static defaultProps = {
41
- inline: false,
42
- layout: 'stacked',
43
- labelAlign: 'end',
44
- vAlign: 'middle'
45
- };
46
- ref = null;
47
- handleRef = el => {
48
- const elementRef = this.props.elementRef;
49
- this.ref = el;
36
+ constructor() {
37
+ super(...arguments);
38
+ this.ref = null;
50
39
 
51
- if (typeof elementRef === 'function') {
52
- elementRef(el);
53
- }
54
- };
40
+ this.handleRef = el => {
41
+ const elementRef = this.props.elementRef;
42
+ this.ref = el;
43
+
44
+ if (typeof elementRef === 'function') {
45
+ elementRef(el);
46
+ }
47
+ };
48
+ }
55
49
 
56
50
  render() {
57
51
  return /*#__PURE__*/React.createElement(FormFieldLayout, Object.assign({}, omitProps(this.props, FormField.allowedProps), pickProps(this.props, FormFieldLayout.allowedProps), {
@@ -65,5 +59,15 @@ class FormField extends Component {
65
59
 
66
60
  }
67
61
 
62
+ FormField.displayName = "FormField";
63
+ FormField.componentId = 'FormField';
64
+ FormField.propTypes = propTypes;
65
+ FormField.allowedProps = allowedProps;
66
+ FormField.defaultProps = {
67
+ inline: false,
68
+ layout: 'stacked',
69
+ labelAlign: 'end',
70
+ vAlign: 'middle'
71
+ };
68
72
  export default FormField;
69
73
  export { FormField };
@@ -1,7 +1,7 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  const _excluded = ["styles", "makeStyles"];
3
3
 
4
- var _dec, _class;
4
+ var _dec, _class, _class2;
5
5
 
6
6
  /*
7
7
  * The MIT License (MIT)
@@ -43,27 +43,20 @@ category: components
43
43
  ---
44
44
  @tsProps
45
45
  **/
46
- let FormFieldGroup = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class FormFieldGroup extends Component {
47
- static displayName = "FormFieldGroup";
48
- static componentId = 'FormFieldGroup';
49
- static propTypes = propTypes;
50
- static allowedProps = allowedProps;
51
- static defaultProps = {
52
- as: 'fieldset',
53
- disabled: false,
54
- rowSpacing: 'medium',
55
- colSpacing: 'small',
56
- vAlign: 'middle'
57
- };
58
- ref = null;
59
- handleRef = el => {
60
- const elementRef = this.props.elementRef;
61
- this.ref = el;
62
-
63
- if (typeof elementRef === 'function') {
64
- elementRef(el);
65
- }
66
- };
46
+ let FormFieldGroup = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class FormFieldGroup extends Component {
47
+ constructor() {
48
+ super(...arguments);
49
+ this.ref = null;
50
+
51
+ this.handleRef = el => {
52
+ const elementRef = this.props.elementRef;
53
+ this.ref = el;
54
+
55
+ if (typeof elementRef === 'function') {
56
+ elementRef(el);
57
+ }
58
+ };
59
+ }
67
60
 
68
61
  componentDidMount() {
69
62
  var _this$props$makeStyle, _this$props;
@@ -131,6 +124,12 @@ let FormFieldGroup = (_dec = withStyle(generateStyle, generateComponentTheme), _
131
124
  }), this.renderFields());
132
125
  }
133
126
 
134
- }) || _class);
127
+ }, _class2.displayName = "FormFieldGroup", _class2.componentId = 'FormFieldGroup', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
128
+ as: 'fieldset',
129
+ disabled: false,
130
+ rowSpacing: 'medium',
131
+ colSpacing: 'small',
132
+ vAlign: 'middle'
133
+ }, _class2)) || _class);
135
134
  export default FormFieldGroup;
136
135
  export { FormFieldGroup };
@@ -1,4 +1,4 @@
1
- var _dec, _class;
1
+ var _dec, _class, _class2;
2
2
 
3
3
  /*
4
4
  * The MIT License (MIT)
@@ -49,18 +49,15 @@ example: true
49
49
  ```
50
50
 
51
51
  **/
52
- let FormFieldLabel = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class FormFieldLabel extends Component {
53
- static displayName = "FormFieldLabel";
54
- static componentId = 'FormFieldLabel';
55
- static propTypes = propTypes;
56
- static allowedProps = allowedProps;
57
- static defaultProps = {
58
- as: 'span'
59
- };
60
- ref = null;
61
- handleRef = el => {
62
- this.ref = el;
63
- };
52
+ let FormFieldLabel = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class FormFieldLabel extends Component {
53
+ constructor() {
54
+ super(...arguments);
55
+ this.ref = null;
56
+
57
+ this.handleRef = el => {
58
+ this.ref = el;
59
+ };
60
+ }
64
61
 
65
62
  componentDidMount() {
66
63
  var _this$props$makeStyle, _this$props;
@@ -86,6 +83,8 @@ let FormFieldLabel = (_dec = withStyle(generateStyle, generateComponentTheme), _
86
83
  }), children);
87
84
  }
88
85
 
89
- }) || _class);
86
+ }, _class2.displayName = "FormFieldLabel", _class2.componentId = 'FormFieldLabel', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
87
+ as: 'span'
88
+ }, _class2)) || _class);
90
89
  export default FormFieldLabel;
91
90
  export { FormFieldLabel };
@@ -1,7 +1,7 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  const _excluded = ["makeStyles", "styles"];
3
3
 
4
- var _dec, _dec2, _class;
4
+ var _dec, _dec2, _class, _class2;
5
5
 
6
6
  /*
7
7
  * The MIT License (MIT)
@@ -46,36 +46,32 @@ parent: FormField
46
46
  ---
47
47
  @tsProps
48
48
  **/
49
- let FormFieldLayout = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, null), _dec(_class = _dec2(_class = class FormFieldLayout extends Component {
50
- static displayName = "FormFieldLayout";
51
- static componentId = 'FormFieldLayout';
52
- static propTypes = propTypes;
53
- static allowedProps = allowedProps;
54
- static defaultProps = {
55
- inline: false,
56
- layout: 'stacked',
57
- as: 'label',
58
- labelAlign: 'end'
59
- };
60
-
49
+ let FormFieldLayout = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, null), _dec(_class = _dec2(_class = (_class2 = class FormFieldLayout extends Component {
61
50
  constructor(props) {
62
51
  super(props);
52
+ this._messagesId = void 0;
53
+ this.ref = null;
54
+
55
+ this.handleRef = el => {
56
+ const elementRef = this.props.elementRef;
57
+ this.ref = el;
58
+
59
+ if (typeof elementRef === 'function') {
60
+ elementRef(el);
61
+ }
62
+ };
63
+
64
+ this.handleInputContainerRef = node => {
65
+ if (typeof this.props.inputContainerRef === 'function') {
66
+ this.props.inputContainerRef(node);
67
+ }
68
+ };
69
+
63
70
  this._messagesId = props.messagesId || props.deterministicId();
64
71
  error(typeof props.width !== 'undefined' || !props.inline || props.layout !== 'inline', `[FormFieldLayout] The 'inline' prop is true, and the 'layout' is set to 'inline'.
65
72
  This will cause a layout issue in Internet Explorer 11 unless you also add a value for the 'width' prop.`);
66
73
  }
67
74
 
68
- _messagesId;
69
- ref = null;
70
- handleRef = el => {
71
- const elementRef = this.props.elementRef;
72
- this.ref = el;
73
-
74
- if (typeof elementRef === 'function') {
75
- elementRef(el);
76
- }
77
- };
78
-
79
75
  componentDidMount() {
80
76
  var _this$props$makeStyle, _this$props;
81
77
 
@@ -105,12 +101,6 @@ let FormFieldLayout = (_dec = withDeterministicId(), _dec2 = withStyle(generateS
105
101
  return this.props.inline && this.props.layout === 'inline';
106
102
  }
107
103
 
108
- handleInputContainerRef = node => {
109
- if (typeof this.props.inputContainerRef === 'function') {
110
- this.props.inputContainerRef(node);
111
- }
112
- };
113
-
114
104
  renderLabel() {
115
105
  if (this.hasVisibleLabel) {
116
106
  return jsx(Grid.Col, {
@@ -176,6 +166,11 @@ let FormFieldLayout = (_dec = withDeterministicId(), _dec2 = withStyle(generateS
176
166
  }, children)), this.renderVisibleMessages()));
177
167
  }
178
168
 
179
- }) || _class) || _class);
169
+ }, _class2.displayName = "FormFieldLayout", _class2.componentId = 'FormFieldLayout', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
170
+ inline: false,
171
+ layout: 'stacked',
172
+ as: 'label',
173
+ labelAlign: 'end'
174
+ }, _class2)) || _class) || _class);
180
175
  export default FormFieldLayout;
181
176
  export { FormFieldLayout };
@@ -1,4 +1,4 @@
1
- var _dec, _class;
1
+ var _dec, _class, _class2;
2
2
 
3
3
  /*
4
4
  * The MIT License (MIT)
@@ -48,18 +48,15 @@ example: true
48
48
  <FormFieldMessage variant="error">Invalid value</FormFieldMessage>
49
49
  ```
50
50
  **/
51
- let FormFieldMessage = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class FormFieldMessage extends Component {
52
- static displayName = "FormFieldMessage";
53
- static componentId = 'FormFieldMessage';
54
- static propTypes = propTypes;
55
- static allowedProps = allowedProps;
56
- static defaultProps = {
57
- variant: 'hint'
58
- };
59
- ref = null;
60
- handleRef = el => {
61
- this.ref = el;
62
- };
51
+ let FormFieldMessage = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class FormFieldMessage extends Component {
52
+ constructor() {
53
+ super(...arguments);
54
+ this.ref = null;
55
+
56
+ this.handleRef = el => {
57
+ this.ref = el;
58
+ };
59
+ }
63
60
 
64
61
  componentDidMount() {
65
62
  var _this$props$makeStyle, _this$props;
@@ -85,6 +82,8 @@ let FormFieldMessage = (_dec = withStyle(generateStyle, generateComponentTheme),
85
82
  }, children);
86
83
  }
87
84
 
88
- }) || _class);
85
+ }, _class2.displayName = "FormFieldMessage", _class2.componentId = 'FormFieldMessage', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
86
+ variant: 'hint'
87
+ }, _class2)) || _class);
89
88
  export default FormFieldMessage;
90
89
  export { FormFieldMessage };
@@ -1,4 +1,4 @@
1
- var _dec, _class;
1
+ var _dec, _class, _class2;
2
2
 
3
3
  /*
4
4
  * The MIT License (MIT)
@@ -52,16 +52,15 @@ example: true
52
52
  ]} />
53
53
  ```
54
54
  **/
55
- let FormFieldMessages = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class FormFieldMessages extends Component {
56
- static displayName = "FormFieldMessages";
57
- static componentId = 'FormFieldMessages';
58
- static propTypes = propTypes;
59
- static allowedProps = allowedProps;
60
- static defaultProps = {};
61
- ref = null;
62
- handleRef = el => {
63
- this.ref = el;
64
- };
55
+ let FormFieldMessages = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class FormFieldMessages extends Component {
56
+ constructor() {
57
+ super(...arguments);
58
+ this.ref = null;
59
+
60
+ this.handleRef = el => {
61
+ this.ref = el;
62
+ };
63
+ }
65
64
 
66
65
  componentDidMount() {
67
66
  var _this$props$makeStyle, _this$props;
@@ -93,6 +92,6 @@ let FormFieldMessages = (_dec = withStyle(generateStyle, generateComponentTheme)
93
92
  })) : null;
94
93
  }
95
94
 
96
- }) || _class);
95
+ }, _class2.displayName = "FormFieldMessages", _class2.componentId = 'FormFieldMessages', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {}, _class2)) || _class);
97
96
  export default FormFieldMessages;
98
97
  export { FormFieldMessages };
@@ -48,25 +48,19 @@ category: components
48
48
  @tsProps
49
49
  **/
50
50
  class FormField extends _react.Component {
51
- static displayName = "FormField";
52
- static componentId = 'FormField';
53
- static propTypes = _props.propTypes;
54
- static allowedProps = _props.allowedProps;
55
- static defaultProps = {
56
- inline: false,
57
- layout: 'stacked',
58
- labelAlign: 'end',
59
- vAlign: 'middle'
60
- };
61
- ref = null;
62
- handleRef = el => {
63
- const elementRef = this.props.elementRef;
64
- this.ref = el;
51
+ constructor() {
52
+ super(...arguments);
53
+ this.ref = null;
65
54
 
66
- if (typeof elementRef === 'function') {
67
- elementRef(el);
68
- }
69
- };
55
+ this.handleRef = el => {
56
+ const elementRef = this.props.elementRef;
57
+ this.ref = el;
58
+
59
+ if (typeof elementRef === 'function') {
60
+ elementRef(el);
61
+ }
62
+ };
63
+ }
70
64
 
71
65
  render() {
72
66
  return /*#__PURE__*/_react.default.createElement(_FormFieldLayout.FormFieldLayout, Object.assign({}, (0, _omitProps.omitProps)(this.props, FormField.allowedProps), (0, _pickProps.pickProps)(this.props, _FormFieldLayout.FormFieldLayout.allowedProps), {
@@ -81,5 +75,15 @@ class FormField extends _react.Component {
81
75
  }
82
76
 
83
77
  exports.FormField = FormField;
78
+ FormField.displayName = "FormField";
79
+ FormField.componentId = 'FormField';
80
+ FormField.propTypes = _props.propTypes;
81
+ FormField.allowedProps = _props.allowedProps;
82
+ FormField.defaultProps = {
83
+ inline: false,
84
+ layout: 'stacked',
85
+ labelAlign: 'end',
86
+ vAlign: 'middle'
87
+ };
84
88
  var _default = FormField;
85
89
  exports.default = _default;
@@ -29,7 +29,7 @@ var _props = require("./props");
29
29
 
30
30
  const _excluded = ["styles", "makeStyles"];
31
31
 
32
- var _dec, _class;
32
+ var _dec, _class, _class2;
33
33
 
34
34
  /**
35
35
  ---
@@ -37,27 +37,20 @@ category: components
37
37
  ---
38
38
  @tsProps
39
39
  **/
40
- let FormFieldGroup = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class FormFieldGroup extends _react.Component {
41
- static displayName = "FormFieldGroup";
42
- static componentId = 'FormFieldGroup';
43
- static propTypes = _props.propTypes;
44
- static allowedProps = _props.allowedProps;
45
- static defaultProps = {
46
- as: 'fieldset',
47
- disabled: false,
48
- rowSpacing: 'medium',
49
- colSpacing: 'small',
50
- vAlign: 'middle'
51
- };
52
- ref = null;
53
- handleRef = el => {
54
- const elementRef = this.props.elementRef;
55
- this.ref = el;
56
-
57
- if (typeof elementRef === 'function') {
58
- elementRef(el);
59
- }
60
- };
40
+ let FormFieldGroup = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class FormFieldGroup extends _react.Component {
41
+ constructor() {
42
+ super(...arguments);
43
+ this.ref = null;
44
+
45
+ this.handleRef = el => {
46
+ const elementRef = this.props.elementRef;
47
+ this.ref = el;
48
+
49
+ if (typeof elementRef === 'function') {
50
+ elementRef(el);
51
+ }
52
+ };
53
+ }
61
54
 
62
55
  componentDidMount() {
63
56
  var _this$props$makeStyle, _this$props;
@@ -124,7 +117,13 @@ let FormFieldGroup = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.def
124
117
  }), this.renderFields());
125
118
  }
126
119
 
127
- }) || _class);
120
+ }, _class2.displayName = "FormFieldGroup", _class2.componentId = 'FormFieldGroup', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
121
+ as: 'fieldset',
122
+ disabled: false,
123
+ rowSpacing: 'medium',
124
+ colSpacing: 'small',
125
+ vAlign: 'middle'
126
+ }, _class2)) || _class);
128
127
  exports.FormFieldGroup = FormFieldGroup;
129
128
  var _default = FormFieldGroup;
130
129
  exports.default = _default;
@@ -21,7 +21,7 @@ var _theme = _interopRequireDefault(require("./theme"));
21
21
 
22
22
  var _props = require("./props");
23
23
 
24
- var _dec, _class;
24
+ var _dec, _class, _class2;
25
25
 
26
26
  /**
27
27
  ---
@@ -40,18 +40,15 @@ example: true
40
40
  ```
41
41
 
42
42
  **/
43
- let FormFieldLabel = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class FormFieldLabel extends _react.Component {
44
- static displayName = "FormFieldLabel";
45
- static componentId = 'FormFieldLabel';
46
- static propTypes = _props.propTypes;
47
- static allowedProps = _props.allowedProps;
48
- static defaultProps = {
49
- as: 'span'
50
- };
51
- ref = null;
52
- handleRef = el => {
53
- this.ref = el;
54
- };
43
+ let FormFieldLabel = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class FormFieldLabel extends _react.Component {
44
+ constructor() {
45
+ super(...arguments);
46
+ this.ref = null;
47
+
48
+ this.handleRef = el => {
49
+ this.ref = el;
50
+ };
51
+ }
55
52
 
56
53
  componentDidMount() {
57
54
  var _this$props$makeStyle, _this$props;
@@ -77,7 +74,9 @@ let FormFieldLabel = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.def
77
74
  }), children);
78
75
  }
79
76
 
80
- }) || _class);
77
+ }, _class2.displayName = "FormFieldLabel", _class2.componentId = 'FormFieldLabel', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
78
+ as: 'span'
79
+ }, _class2)) || _class);
81
80
  exports.FormFieldLabel = FormFieldLabel;
82
81
  var _default = FormFieldLabel;
83
82
  exports.default = _default;
@@ -39,7 +39,7 @@ var _props = require("./props");
39
39
 
40
40
  const _excluded = ["makeStyles", "styles"];
41
41
 
42
- var _dec, _dec2, _class;
42
+ var _dec, _dec2, _class, _class2;
43
43
 
44
44
  /**
45
45
  ---
@@ -47,36 +47,32 @@ parent: FormField
47
47
  ---
48
48
  @tsProps
49
49
  **/
50
- let FormFieldLayout = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, null), _dec(_class = _dec2(_class = class FormFieldLayout extends _react.Component {
51
- static displayName = "FormFieldLayout";
52
- static componentId = 'FormFieldLayout';
53
- static propTypes = _props.propTypes;
54
- static allowedProps = _props.allowedProps;
55
- static defaultProps = {
56
- inline: false,
57
- layout: 'stacked',
58
- as: 'label',
59
- labelAlign: 'end'
60
- };
61
-
50
+ let FormFieldLayout = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, null), _dec(_class = _dec2(_class = (_class2 = class FormFieldLayout extends _react.Component {
62
51
  constructor(props) {
63
52
  super(props);
53
+ this._messagesId = void 0;
54
+ this.ref = null;
55
+
56
+ this.handleRef = el => {
57
+ const elementRef = this.props.elementRef;
58
+ this.ref = el;
59
+
60
+ if (typeof elementRef === 'function') {
61
+ elementRef(el);
62
+ }
63
+ };
64
+
65
+ this.handleInputContainerRef = node => {
66
+ if (typeof this.props.inputContainerRef === 'function') {
67
+ this.props.inputContainerRef(node);
68
+ }
69
+ };
70
+
64
71
  this._messagesId = props.messagesId || props.deterministicId();
65
72
  (0, _console.logError)(typeof props.width !== 'undefined' || !props.inline || props.layout !== 'inline', `[FormFieldLayout] The 'inline' prop is true, and the 'layout' is set to 'inline'.
66
73
  This will cause a layout issue in Internet Explorer 11 unless you also add a value for the 'width' prop.`);
67
74
  }
68
75
 
69
- _messagesId;
70
- ref = null;
71
- handleRef = el => {
72
- const elementRef = this.props.elementRef;
73
- this.ref = el;
74
-
75
- if (typeof elementRef === 'function') {
76
- elementRef(el);
77
- }
78
- };
79
-
80
76
  componentDidMount() {
81
77
  var _this$props$makeStyle, _this$props;
82
78
 
@@ -106,12 +102,6 @@ let FormFieldLayout = (_dec = (0, _withDeterministicId.withDeterministicId)(), _
106
102
  return this.props.inline && this.props.layout === 'inline';
107
103
  }
108
104
 
109
- handleInputContainerRef = node => {
110
- if (typeof this.props.inputContainerRef === 'function') {
111
- this.props.inputContainerRef(node);
112
- }
113
- };
114
-
115
105
  renderLabel() {
116
106
  if (this.hasVisibleLabel) {
117
107
  return (0, _emotion.jsx)(_Grid.Grid.Col, {
@@ -175,7 +165,12 @@ let FormFieldLayout = (_dec = (0, _withDeterministicId.withDeterministicId)(), _
175
165
  }, children)), this.renderVisibleMessages()));
176
166
  }
177
167
 
178
- }) || _class) || _class);
168
+ }, _class2.displayName = "FormFieldLayout", _class2.componentId = 'FormFieldLayout', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
169
+ inline: false,
170
+ layout: 'stacked',
171
+ as: 'label',
172
+ labelAlign: 'end'
173
+ }, _class2)) || _class) || _class);
179
174
  exports.FormFieldLayout = FormFieldLayout;
180
175
  var _default = FormFieldLayout;
181
176
  exports.default = _default;
@@ -19,7 +19,7 @@ var _theme = _interopRequireDefault(require("./theme"));
19
19
 
20
20
  var _props = require("./props");
21
21
 
22
- var _dec, _class;
22
+ var _dec, _class, _class2;
23
23
 
24
24
  /**
25
25
  ---
@@ -37,18 +37,15 @@ example: true
37
37
  <FormFieldMessage variant="error">Invalid value</FormFieldMessage>
38
38
  ```
39
39
  **/
40
- let FormFieldMessage = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class FormFieldMessage extends _react.Component {
41
- static displayName = "FormFieldMessage";
42
- static componentId = 'FormFieldMessage';
43
- static propTypes = _props.propTypes;
44
- static allowedProps = _props.allowedProps;
45
- static defaultProps = {
46
- variant: 'hint'
47
- };
48
- ref = null;
49
- handleRef = el => {
50
- this.ref = el;
51
- };
40
+ let FormFieldMessage = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class FormFieldMessage extends _react.Component {
41
+ constructor() {
42
+ super(...arguments);
43
+ this.ref = null;
44
+
45
+ this.handleRef = el => {
46
+ this.ref = el;
47
+ };
48
+ }
52
49
 
53
50
  componentDidMount() {
54
51
  var _this$props$makeStyle, _this$props;
@@ -74,7 +71,9 @@ let FormFieldMessage = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.d
74
71
  }, children);
75
72
  }
76
73
 
77
- }) || _class);
74
+ }, _class2.displayName = "FormFieldMessage", _class2.componentId = 'FormFieldMessage', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
75
+ variant: 'hint'
76
+ }, _class2)) || _class);
78
77
  exports.FormFieldMessage = FormFieldMessage;
79
78
  var _default = FormFieldMessage;
80
79
  exports.default = _default;
@@ -21,7 +21,7 @@ var _theme = _interopRequireDefault(require("./theme"));
21
21
 
22
22
  var _props = require("./props");
23
23
 
24
- var _dec, _class;
24
+ var _dec, _class, _class2;
25
25
 
26
26
  /**
27
27
  ---
@@ -42,16 +42,15 @@ example: true
42
42
  ]} />
43
43
  ```
44
44
  **/
45
- let FormFieldMessages = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class FormFieldMessages extends _react.Component {
46
- static displayName = "FormFieldMessages";
47
- static componentId = 'FormFieldMessages';
48
- static propTypes = _props.propTypes;
49
- static allowedProps = _props.allowedProps;
50
- static defaultProps = {};
51
- ref = null;
52
- handleRef = el => {
53
- this.ref = el;
54
- };
45
+ let FormFieldMessages = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class FormFieldMessages extends _react.Component {
46
+ constructor() {
47
+ super(...arguments);
48
+ this.ref = null;
49
+
50
+ this.handleRef = el => {
51
+ this.ref = el;
52
+ };
53
+ }
55
54
 
56
55
  componentDidMount() {
57
56
  var _this$props$makeStyle, _this$props;
@@ -83,7 +82,7 @@ let FormFieldMessages = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.
83
82
  })) : null;
84
83
  }
85
84
 
86
- }) || _class);
85
+ }, _class2.displayName = "FormFieldMessages", _class2.componentId = 'FormFieldMessages', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {}, _class2)) || _class);
87
86
  exports.FormFieldMessages = FormFieldMessages;
88
87
  var _default = FormFieldMessages;
89
88
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-form-field",
3
- "version": "8.25.1-snapshot-10",
3
+ "version": "8.25.1-snapshot-13",
4
4
  "description": "Form layout components.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,22 +23,22 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.25.1-snapshot-10",
27
- "@instructure/ui-test-utils": "8.25.1-snapshot-10",
28
- "@instructure/ui-themes": "8.25.1-snapshot-10"
26
+ "@instructure/ui-babel-preset": "8.25.1-snapshot-13",
27
+ "@instructure/ui-test-utils": "8.25.1-snapshot-13",
28
+ "@instructure/ui-themes": "8.25.1-snapshot-13"
29
29
  },
30
30
  "dependencies": {
31
31
  "@babel/runtime": "^7.13.10",
32
- "@instructure/console": "8.25.1-snapshot-10",
33
- "@instructure/emotion": "8.25.1-snapshot-10",
34
- "@instructure/shared-types": "8.25.1-snapshot-10",
35
- "@instructure/ui-a11y-content": "8.25.1-snapshot-10",
36
- "@instructure/ui-a11y-utils": "8.25.1-snapshot-10",
37
- "@instructure/ui-grid": "8.25.1-snapshot-10",
38
- "@instructure/ui-icons": "8.25.1-snapshot-10",
39
- "@instructure/ui-react-utils": "8.25.1-snapshot-10",
40
- "@instructure/ui-utils": "8.25.1-snapshot-10",
41
- "@instructure/uid": "8.25.1-snapshot-10",
32
+ "@instructure/console": "8.25.1-snapshot-13",
33
+ "@instructure/emotion": "8.25.1-snapshot-13",
34
+ "@instructure/shared-types": "8.25.1-snapshot-13",
35
+ "@instructure/ui-a11y-content": "8.25.1-snapshot-13",
36
+ "@instructure/ui-a11y-utils": "8.25.1-snapshot-13",
37
+ "@instructure/ui-grid": "8.25.1-snapshot-13",
38
+ "@instructure/ui-icons": "8.25.1-snapshot-13",
39
+ "@instructure/ui-react-utils": "8.25.1-snapshot-13",
40
+ "@instructure/ui-utils": "8.25.1-snapshot-13",
41
+ "@instructure/uid": "8.25.1-snapshot-13",
42
42
  "prop-types": "^15"
43
43
  },
44
44
  "peerDependencies": {