@panneau/form-inline 4.0.2 → 4.0.4

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.
Files changed (2) hide show
  1. package/es/index.js +12 -9
  2. package/package.json +6 -6
package/es/index.js CHANGED
@@ -2,6 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import { useFieldComponent } from '@panneau/core/contexts';
4
4
  import Form from '@panneau/element-form';
5
+ import { jsx } from 'react/jsx-runtime';
5
6
 
6
7
  var _excluded = ["fields", "status", "value", "onChange", "className", "onSubmit"];
7
8
  function InlineForm(_ref) {
@@ -17,18 +18,20 @@ function InlineForm(_ref) {
17
18
  onSubmit = _ref$onSubmit === void 0 ? null : _ref$onSubmit,
18
19
  props = _objectWithoutProperties(_ref, _excluded);
19
20
  var FieldsComponent = useFieldComponent('fields');
20
- return /*#__PURE__*/React.createElement(Form, Object.assign({
21
+ return /*#__PURE__*/jsx(Form, _objectSpread(_objectSpread({
21
22
  onSubmit: onSubmit,
22
23
  className: className,
23
24
  status: status
24
- }, props), /*#__PURE__*/React.createElement(FieldsComponent, {
25
- fields: fields.map(function (f) {
26
- return _objectSpread(_objectSpread({}, f), {}, {
27
- inline: true
28
- });
29
- }),
30
- value: value,
31
- onChange: onChange
25
+ }, props), {}, {
26
+ children: /*#__PURE__*/jsx(FieldsComponent, {
27
+ fields: fields.map(function (f) {
28
+ return _objectSpread(_objectSpread({}, f), {}, {
29
+ inline: true
30
+ });
31
+ }),
32
+ value: value,
33
+ onChange: onChange
34
+ })
32
35
  }));
33
36
  }
34
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/form-inline",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "Inline form",
5
5
  "keywords": [
6
6
  "javascript"
@@ -57,10 +57,10 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@babel/runtime": "^7.12.5",
60
- "@panneau/core": "^4.0.2",
61
- "@panneau/element-button": "^4.0.2",
62
- "@panneau/element-form": "^4.0.2",
63
- "@panneau/field-fields": "^4.0.2",
60
+ "@panneau/core": "^4.0.4",
61
+ "@panneau/element-button": "^4.0.4",
62
+ "@panneau/element-form": "^4.0.4",
63
+ "@panneau/field-fields": "^4.0.4",
64
64
  "classnames": "^2.5.1",
65
65
  "lodash-es": "^4.17.21",
66
66
  "prop-types": "^15.7.2",
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "53ad0f27e467992c23158732e0f7d39d8615780b"
72
+ "gitHead": "e854451a718c6bc7dcde2b804c9913d8ac0297ff"
73
73
  }