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

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-7](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.25.1-snapshot-7) (2022-06-13)
6
+ ## [8.25.1-snapshot-10](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.25.1-snapshot-10) (2022-06-20)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-form-field
9
9
 
@@ -33,19 +33,25 @@ category: components
33
33
  @tsProps
34
34
  **/
35
35
  class FormField extends Component {
36
- constructor() {
37
- super(...arguments);
38
- this.ref = null;
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;
39
50
 
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
- }
51
+ if (typeof elementRef === 'function') {
52
+ elementRef(el);
53
+ }
54
+ };
49
55
 
50
56
  render() {
51
57
  return /*#__PURE__*/React.createElement(FormFieldLayout, Object.assign({}, omitProps(this.props, FormField.allowedProps), pickProps(this.props, FormFieldLayout.allowedProps), {
@@ -59,15 +65,5 @@ class FormField extends Component {
59
65
 
60
66
  }
61
67
 
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
- };
72
68
  export default FormField;
73
69
  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, _class2;
4
+ var _dec, _class;
5
5
 
6
6
  /*
7
7
  * The MIT License (MIT)
@@ -43,20 +43,27 @@ category: components
43
43
  ---
44
44
  @tsProps
45
45
  **/
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
- }
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
+ };
60
67
 
61
68
  componentDidMount() {
62
69
  var _this$props$makeStyle, _this$props;
@@ -124,12 +131,6 @@ let FormFieldGroup = (_dec = withStyle(generateStyle, generateComponentTheme), _
124
131
  }), this.renderFields());
125
132
  }
126
133
 
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);
134
+ }) || _class);
134
135
  export default FormFieldGroup;
135
136
  export { FormFieldGroup };
@@ -1,4 +1,4 @@
1
- var _dec, _class, _class2;
1
+ var _dec, _class;
2
2
 
3
3
  /*
4
4
  * The MIT License (MIT)
@@ -49,15 +49,18 @@ example: true
49
49
  ```
50
50
 
51
51
  **/
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
- }
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
+ };
61
64
 
62
65
  componentDidMount() {
63
66
  var _this$props$makeStyle, _this$props;
@@ -83,8 +86,6 @@ let FormFieldLabel = (_dec = withStyle(generateStyle, generateComponentTheme), _
83
86
  }), children);
84
87
  }
85
88
 
86
- }, _class2.displayName = "FormFieldLabel", _class2.componentId = 'FormFieldLabel', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
87
- as: 'span'
88
- }, _class2)) || _class);
89
+ }) || _class);
89
90
  export default FormFieldLabel;
90
91
  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, _class2;
4
+ var _dec, _dec2, _class;
5
5
 
6
6
  /*
7
7
  * The MIT License (MIT)
@@ -46,32 +46,36 @@ parent: FormField
46
46
  ---
47
47
  @tsProps
48
48
  **/
49
- let FormFieldLayout = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, null), _dec(_class = _dec2(_class = (_class2 = class FormFieldLayout extends Component {
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
+
50
61
  constructor(props) {
51
62
  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
-
70
63
  this._messagesId = props.messagesId || props.deterministicId();
71
64
  error(typeof props.width !== 'undefined' || !props.inline || props.layout !== 'inline', `[FormFieldLayout] The 'inline' prop is true, and the 'layout' is set to 'inline'.
72
65
  This will cause a layout issue in Internet Explorer 11 unless you also add a value for the 'width' prop.`);
73
66
  }
74
67
 
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
+
75
79
  componentDidMount() {
76
80
  var _this$props$makeStyle, _this$props;
77
81
 
@@ -101,6 +105,12 @@ let FormFieldLayout = (_dec = withDeterministicId(), _dec2 = withStyle(generateS
101
105
  return this.props.inline && this.props.layout === 'inline';
102
106
  }
103
107
 
108
+ handleInputContainerRef = node => {
109
+ if (typeof this.props.inputContainerRef === 'function') {
110
+ this.props.inputContainerRef(node);
111
+ }
112
+ };
113
+
104
114
  renderLabel() {
105
115
  if (this.hasVisibleLabel) {
106
116
  return jsx(Grid.Col, {
@@ -166,11 +176,6 @@ let FormFieldLayout = (_dec = withDeterministicId(), _dec2 = withStyle(generateS
166
176
  }, children)), this.renderVisibleMessages()));
167
177
  }
168
178
 
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);
179
+ }) || _class) || _class);
175
180
  export default FormFieldLayout;
176
181
  export { FormFieldLayout };
@@ -1,4 +1,4 @@
1
- var _dec, _class, _class2;
1
+ var _dec, _class;
2
2
 
3
3
  /*
4
4
  * The MIT License (MIT)
@@ -48,15 +48,18 @@ example: true
48
48
  <FormFieldMessage variant="error">Invalid value</FormFieldMessage>
49
49
  ```
50
50
  **/
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
- }
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
+ };
60
63
 
61
64
  componentDidMount() {
62
65
  var _this$props$makeStyle, _this$props;
@@ -82,8 +85,6 @@ let FormFieldMessage = (_dec = withStyle(generateStyle, generateComponentTheme),
82
85
  }, children);
83
86
  }
84
87
 
85
- }, _class2.displayName = "FormFieldMessage", _class2.componentId = 'FormFieldMessage', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
86
- variant: 'hint'
87
- }, _class2)) || _class);
88
+ }) || _class);
88
89
  export default FormFieldMessage;
89
90
  export { FormFieldMessage };
@@ -1,4 +1,4 @@
1
- var _dec, _class, _class2;
1
+ var _dec, _class;
2
2
 
3
3
  /*
4
4
  * The MIT License (MIT)
@@ -52,15 +52,16 @@ example: true
52
52
  ]} />
53
53
  ```
54
54
  **/
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
- }
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
+ };
64
65
 
65
66
  componentDidMount() {
66
67
  var _this$props$makeStyle, _this$props;
@@ -92,6 +93,6 @@ let FormFieldMessages = (_dec = withStyle(generateStyle, generateComponentTheme)
92
93
  })) : null;
93
94
  }
94
95
 
95
- }, _class2.displayName = "FormFieldMessages", _class2.componentId = 'FormFieldMessages', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {}, _class2)) || _class);
96
+ }) || _class);
96
97
  export default FormFieldMessages;
97
98
  export { FormFieldMessages };
@@ -48,19 +48,25 @@ category: components
48
48
  @tsProps
49
49
  **/
50
50
  class FormField extends _react.Component {
51
- constructor() {
52
- super(...arguments);
53
- this.ref = null;
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;
54
65
 
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
- }
66
+ if (typeof elementRef === 'function') {
67
+ elementRef(el);
68
+ }
69
+ };
64
70
 
65
71
  render() {
66
72
  return /*#__PURE__*/_react.default.createElement(_FormFieldLayout.FormFieldLayout, Object.assign({}, (0, _omitProps.omitProps)(this.props, FormField.allowedProps), (0, _pickProps.pickProps)(this.props, _FormFieldLayout.FormFieldLayout.allowedProps), {
@@ -75,15 +81,5 @@ class FormField extends _react.Component {
75
81
  }
76
82
 
77
83
  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
- };
88
84
  var _default = FormField;
89
85
  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, _class2;
32
+ var _dec, _class;
33
33
 
34
34
  /**
35
35
  ---
@@ -37,20 +37,27 @@ category: components
37
37
  ---
38
38
  @tsProps
39
39
  **/
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
- }
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
+ };
54
61
 
55
62
  componentDidMount() {
56
63
  var _this$props$makeStyle, _this$props;
@@ -117,13 +124,7 @@ let FormFieldGroup = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.def
117
124
  }), this.renderFields());
118
125
  }
119
126
 
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);
127
+ }) || _class);
127
128
  exports.FormFieldGroup = FormFieldGroup;
128
129
  var _default = FormFieldGroup;
129
130
  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, _class2;
24
+ var _dec, _class;
25
25
 
26
26
  /**
27
27
  ---
@@ -40,15 +40,18 @@ example: true
40
40
  ```
41
41
 
42
42
  **/
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
- }
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
+ };
52
55
 
53
56
  componentDidMount() {
54
57
  var _this$props$makeStyle, _this$props;
@@ -74,9 +77,7 @@ let FormFieldLabel = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.def
74
77
  }), children);
75
78
  }
76
79
 
77
- }, _class2.displayName = "FormFieldLabel", _class2.componentId = 'FormFieldLabel', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
78
- as: 'span'
79
- }, _class2)) || _class);
80
+ }) || _class);
80
81
  exports.FormFieldLabel = FormFieldLabel;
81
82
  var _default = FormFieldLabel;
82
83
  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, _class2;
42
+ var _dec, _dec2, _class;
43
43
 
44
44
  /**
45
45
  ---
@@ -47,32 +47,36 @@ 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 = (_class2 = class FormFieldLayout extends _react.Component {
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
+
51
62
  constructor(props) {
52
63
  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
-
71
64
  this._messagesId = props.messagesId || props.deterministicId();
72
65
  (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'.
73
66
  This will cause a layout issue in Internet Explorer 11 unless you also add a value for the 'width' prop.`);
74
67
  }
75
68
 
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
+
76
80
  componentDidMount() {
77
81
  var _this$props$makeStyle, _this$props;
78
82
 
@@ -102,6 +106,12 @@ let FormFieldLayout = (_dec = (0, _withDeterministicId.withDeterministicId)(), _
102
106
  return this.props.inline && this.props.layout === 'inline';
103
107
  }
104
108
 
109
+ handleInputContainerRef = node => {
110
+ if (typeof this.props.inputContainerRef === 'function') {
111
+ this.props.inputContainerRef(node);
112
+ }
113
+ };
114
+
105
115
  renderLabel() {
106
116
  if (this.hasVisibleLabel) {
107
117
  return (0, _emotion.jsx)(_Grid.Grid.Col, {
@@ -165,12 +175,7 @@ let FormFieldLayout = (_dec = (0, _withDeterministicId.withDeterministicId)(), _
165
175
  }, children)), this.renderVisibleMessages()));
166
176
  }
167
177
 
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);
178
+ }) || _class) || _class);
174
179
  exports.FormFieldLayout = FormFieldLayout;
175
180
  var _default = FormFieldLayout;
176
181
  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, _class2;
22
+ var _dec, _class;
23
23
 
24
24
  /**
25
25
  ---
@@ -37,15 +37,18 @@ 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 = (_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
- }
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
+ };
49
52
 
50
53
  componentDidMount() {
51
54
  var _this$props$makeStyle, _this$props;
@@ -71,9 +74,7 @@ let FormFieldMessage = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.d
71
74
  }, children);
72
75
  }
73
76
 
74
- }, _class2.displayName = "FormFieldMessage", _class2.componentId = 'FormFieldMessage', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
75
- variant: 'hint'
76
- }, _class2)) || _class);
77
+ }) || _class);
77
78
  exports.FormFieldMessage = FormFieldMessage;
78
79
  var _default = FormFieldMessage;
79
80
  exports.default = _default;