@panneau/modal-resource-form 4.0.1 → 4.0.3

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 +13 -12
  2. package/package.json +7 -7
package/es/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
1
  import { FormattedMessage } from 'react-intl';
3
2
  import ResourceForm from '@panneau/form-resource';
4
3
  import { useResourceValues } from '@panneau/intl';
5
4
  import Dialog from '@panneau/modal-dialog';
5
+ import { jsx } from 'react/jsx-runtime';
6
6
 
7
7
  function ModalResourceForm(_ref) {
8
8
  var id = _ref.id,
@@ -21,9 +21,9 @@ function ModalResourceForm(_ref) {
21
21
  _ref$className = _ref.className,
22
22
  className = _ref$className === void 0 ? null : _ref$className;
23
23
  var resourceValues = useResourceValues(resource);
24
- return /*#__PURE__*/React.createElement(Dialog, {
24
+ return /*#__PURE__*/jsx(Dialog, {
25
25
  id: id,
26
- title: !isCreate !== null ? /*#__PURE__*/React.createElement(FormattedMessage, {
26
+ title: !isCreate !== null ? /*#__PURE__*/jsx(FormattedMessage, {
27
27
  values: resourceValues,
28
28
  id: "mCfzkJ",
29
29
  defaultMessage: [{
@@ -33,7 +33,7 @@ function ModalResourceForm(_ref) {
33
33
  "type": 1,
34
34
  "value": "a_singular"
35
35
  }]
36
- }) : /*#__PURE__*/React.createElement(FormattedMessage, {
36
+ }) : /*#__PURE__*/jsx(FormattedMessage, {
37
37
  values: resourceValues,
38
38
  id: "6viUpq",
39
39
  defaultMessage: [{
@@ -46,14 +46,15 @@ function ModalResourceForm(_ref) {
46
46
  }),
47
47
  size: "lg",
48
48
  onClose: onClose,
49
- className: className
50
- }, /*#__PURE__*/React.createElement(ResourceForm, {
51
- resource: resource,
52
- type: type,
53
- item: item,
54
- onSuccess: onSuccess,
55
- isModal: true
56
- }));
49
+ className: className,
50
+ children: /*#__PURE__*/jsx(ResourceForm, {
51
+ resource: resource,
52
+ type: type,
53
+ item: item,
54
+ onSuccess: onSuccess,
55
+ isModal: true
56
+ })
57
+ });
57
58
  }
58
59
 
59
60
  export { ModalResourceForm as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/modal-resource-form",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "description": "Resource form modal",
5
5
  "keywords": [
6
6
  "javascript"
@@ -49,11 +49,11 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.12.5",
52
- "@panneau/core": "^4.0.1",
53
- "@panneau/form-resource": "^4.0.1",
54
- "@panneau/intl": "^4.0.1",
55
- "@panneau/modal-dialog": "^4.0.1",
56
- "@panneau/themes": "^4.0.1",
52
+ "@panneau/core": "^4.0.2",
53
+ "@panneau/form-resource": "^4.0.3",
54
+ "@panneau/intl": "^4.0.3",
55
+ "@panneau/modal-dialog": "^4.0.2",
56
+ "@panneau/themes": "^4.0.2",
57
57
  "classnames": "^2.5.1",
58
58
  "lodash-es": "^4.17.21",
59
59
  "prop-types": "^15.7.2",
@@ -62,5 +62,5 @@
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
- "gitHead": "dbdf65640625c027ecd56cf2b816b80a5c38cb8d"
65
+ "gitHead": "26b5ab7536b0e8c3197d40d302fc2681e7c7122e"
66
66
  }