@panneau/form-inline 3.0.300 → 3.0.308
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/es/index.js +16 -16
- package/package.json +6 -6
package/es/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import PropTypes
|
|
5
|
-
import { PropTypes } from '@panneau/core';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import { PropTypes as PropTypes$1 } from '@panneau/core';
|
|
6
6
|
import Form from '@panneau/element-form';
|
|
7
7
|
import { useFieldComponent } from '@panneau/core/contexts';
|
|
8
8
|
|
|
9
9
|
var _excluded = ["fields", "status", "value", "onChange", "className", "onSubmit"];
|
|
10
10
|
var propTypes = {
|
|
11
|
-
fields: PropTypes.fields.isRequired,
|
|
12
|
-
value: PropTypes
|
|
11
|
+
fields: PropTypes$1.fields.isRequired,
|
|
12
|
+
value: PropTypes.object,
|
|
13
13
|
// eslint-disable-line react/forbid-prop-types
|
|
14
|
-
onChange: PropTypes
|
|
15
|
-
onSubmit: PropTypes
|
|
16
|
-
status: PropTypes.formStatus,
|
|
17
|
-
generalError: PropTypes
|
|
18
|
-
errors: PropTypes
|
|
19
|
-
buttons: PropTypes
|
|
20
|
-
type: PropTypes
|
|
21
|
-
id: PropTypes
|
|
22
|
-
label: PropTypes
|
|
23
|
-
position: PropTypes
|
|
24
|
-
onClick: PropTypes
|
|
14
|
+
onChange: PropTypes.func.isRequired,
|
|
15
|
+
onSubmit: PropTypes.func,
|
|
16
|
+
status: PropTypes$1.formStatus,
|
|
17
|
+
generalError: PropTypes.string,
|
|
18
|
+
errors: PropTypes.objectOf(PropTypes.arrayOf(PropTypes.string)),
|
|
19
|
+
buttons: PropTypes.arrayOf(PropTypes.shape({
|
|
20
|
+
type: PropTypes.oneOf(['submit', 'button', 'link', 'reset']),
|
|
21
|
+
id: PropTypes.string,
|
|
22
|
+
label: PropTypes.string,
|
|
23
|
+
position: PropTypes.string,
|
|
24
|
+
onClick: PropTypes.func
|
|
25
25
|
})),
|
|
26
|
-
className: PropTypes
|
|
26
|
+
className: PropTypes.string
|
|
27
27
|
};
|
|
28
28
|
var defaultProps = {
|
|
29
29
|
status: null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/form-inline",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.308",
|
|
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": "^3.0.
|
|
61
|
-
"@panneau/element-button": "^3.0.
|
|
62
|
-
"@panneau/element-form": "^3.0.
|
|
63
|
-
"@panneau/field-fields": "^3.0.
|
|
60
|
+
"@panneau/core": "^3.0.307",
|
|
61
|
+
"@panneau/element-button": "^3.0.308",
|
|
62
|
+
"@panneau/element-form": "^3.0.308",
|
|
63
|
+
"@panneau/field-fields": "^3.0.308",
|
|
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": "
|
|
72
|
+
"gitHead": "8711276a09fcda499a4a2f206554f9cd995976f5"
|
|
73
73
|
}
|