@panneau/action-upload 3.0.203 → 3.0.208
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 +20 -18
- package/lib/index.js +20 -18
- package/package.json +3 -3
package/es/index.js
CHANGED
@@ -1,12 +1,7 @@
|
|
1
|
-
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
2
1
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
3
|
-
import classNames from 'classnames';
|
4
2
|
import PropTypes from 'prop-types';
|
5
3
|
import React from 'react';
|
6
4
|
import { FormattedMessage } from 'react-intl';
|
7
|
-
import UploadField from '@panneau/field-upload';
|
8
|
-
|
9
|
-
var styles = {};
|
10
5
|
|
11
6
|
var _excluded = ["id", "title", "description", "fields", "endpoint", "label", "icon", "value", "theme", "disabled", "onChange", "onConfirmed", "withConfirmation", "className"];
|
12
7
|
|
@@ -55,25 +50,32 @@ var UploadAction = function UploadAction(_ref) {
|
|
55
50
|
_ref.description;
|
56
51
|
_ref.fields;
|
57
52
|
_ref.endpoint;
|
58
|
-
|
59
|
-
|
53
|
+
_ref.label;
|
54
|
+
_ref.icon;
|
60
55
|
_ref.value;
|
61
|
-
|
62
|
-
|
56
|
+
_ref.theme;
|
57
|
+
_ref.disabled;
|
63
58
|
_ref.onChange;
|
64
59
|
_ref.onConfirmed;
|
65
60
|
_ref.withConfirmation;
|
66
|
-
|
67
|
-
|
61
|
+
_ref.className;
|
62
|
+
_objectWithoutProperties(_ref, _excluded);
|
68
63
|
// const { ids, idLabels, modalKey } = useActionProps(value);
|
69
64
|
console.log('upload action...');
|
70
|
-
return
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
},
|
65
|
+
return 'Upload';
|
66
|
+
// <UploadField
|
67
|
+
// className={classNames([
|
68
|
+
// styles.container,
|
69
|
+
// {
|
70
|
+
// [className]: className !== null,
|
71
|
+
// },
|
72
|
+
// ])}
|
73
|
+
// label={label}
|
74
|
+
// icon={icon}
|
75
|
+
// disabled={disabled}
|
76
|
+
// theme={disabled ? 'secondary' : theme}
|
77
|
+
// {...props}
|
78
|
+
// />
|
77
79
|
};
|
78
80
|
UploadAction.propTypes = propTypes;
|
79
81
|
UploadAction.defaultProps = defaultProps;
|
package/lib/index.js
CHANGED
@@ -2,15 +2,10 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
6
5
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
7
|
-
var classNames = require('classnames');
|
8
6
|
var PropTypes = require('prop-types');
|
9
7
|
var React = require('react');
|
10
8
|
var reactIntl = require('react-intl');
|
11
|
-
var UploadField = require('@panneau/field-upload');
|
12
|
-
|
13
|
-
var styles = {};
|
14
9
|
|
15
10
|
var _excluded = ["id", "title", "description", "fields", "endpoint", "label", "icon", "value", "theme", "disabled", "onChange", "onConfirmed", "withConfirmation", "className"];
|
16
11
|
|
@@ -59,25 +54,32 @@ var UploadAction = function UploadAction(_ref) {
|
|
59
54
|
_ref.description;
|
60
55
|
_ref.fields;
|
61
56
|
_ref.endpoint;
|
62
|
-
|
63
|
-
|
57
|
+
_ref.label;
|
58
|
+
_ref.icon;
|
64
59
|
_ref.value;
|
65
|
-
|
66
|
-
|
60
|
+
_ref.theme;
|
61
|
+
_ref.disabled;
|
67
62
|
_ref.onChange;
|
68
63
|
_ref.onConfirmed;
|
69
64
|
_ref.withConfirmation;
|
70
|
-
|
71
|
-
|
65
|
+
_ref.className;
|
66
|
+
_objectWithoutProperties(_ref, _excluded);
|
72
67
|
// const { ids, idLabels, modalKey } = useActionProps(value);
|
73
68
|
console.log('upload action...');
|
74
|
-
return
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
},
|
69
|
+
return 'Upload';
|
70
|
+
// <UploadField
|
71
|
+
// className={classNames([
|
72
|
+
// styles.container,
|
73
|
+
// {
|
74
|
+
// [className]: className !== null,
|
75
|
+
// },
|
76
|
+
// ])}
|
77
|
+
// label={label}
|
78
|
+
// icon={icon}
|
79
|
+
// disabled={disabled}
|
80
|
+
// theme={disabled ? 'secondary' : theme}
|
81
|
+
// {...props}
|
82
|
+
// />
|
81
83
|
};
|
82
84
|
UploadAction.propTypes = propTypes;
|
83
85
|
UploadAction.defaultProps = defaultProps;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@panneau/action-upload",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.208",
|
4
4
|
"description": "Upload action",
|
5
5
|
"keywords": [
|
6
6
|
"javascript"
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"@babel/runtime": "^7.12.5",
|
49
49
|
"@panneau/core": "^3.0.194",
|
50
50
|
"@panneau/element-button": "^3.0.194",
|
51
|
-
"@panneau/field-upload": "^3.0.
|
51
|
+
"@panneau/field-upload": "^3.0.208",
|
52
52
|
"@panneau/themes": "^3.0.194",
|
53
53
|
"classnames": "^2.5.1",
|
54
54
|
"prop-types": "^15.7.2",
|
@@ -57,5 +57,5 @@
|
|
57
57
|
"publishConfig": {
|
58
58
|
"access": "public"
|
59
59
|
},
|
60
|
-
"gitHead": "
|
60
|
+
"gitHead": "784e87ce65299b81ce5f139a676ded4d70f5cfb1"
|
61
61
|
}
|