@digigov/form 0.6.1 → 0.6.2
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 +9 -1
- package/Field/index.js +2 -1
- package/es/Field/index.js +2 -1
- package/es/inputs/FileInput/index.js +19 -8
- package/es/inputs/Select/index.js +3 -8
- package/esm/Field/index.js +2 -1
- package/esm/index.js +1 -1
- package/esm/inputs/FileInput/index.js +19 -8
- package/esm/inputs/Select/index.js +3 -8
- package/inputs/FileInput/index.js +21 -8
- package/inputs/Select/index.js +3 -7
- package/libs/ui/src/app/I18nText.d.ts +10 -0
- package/libs/ui/src/app/i18n.d.ts +2 -0
- package/libs/ui/src/app/index.d.ts +1 -0
- package/libs/ui/src/locales/el.d.ts +7 -0
- package/package.json +2 -2
- package/libs-ui/react-core/src/FileUpload/index.d.ts +0 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# Change Log - @digigov/form
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 14 Apr 2022 12:32:51 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.6.2
|
|
6
|
+
Thu, 14 Apr 2022 12:32:51 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- fix FileInput component with input and custom button, fix Field component to add children inside fieldset
|
|
11
|
+
- Remove empty option from Select component
|
|
4
12
|
|
|
5
13
|
## 0.6.1
|
|
6
14
|
Tue, 05 Apr 2022 12:23:28 GMT
|
package/Field/index.js
CHANGED
|
@@ -64,6 +64,7 @@ var FIELD_COMPONENTS = {
|
|
|
64
64
|
component: _Input["default"]
|
|
65
65
|
},
|
|
66
66
|
file: {
|
|
67
|
+
wrapper: 'fieldset',
|
|
67
68
|
component: _FileInput["default"]
|
|
68
69
|
},
|
|
69
70
|
date: {
|
|
@@ -103,7 +104,7 @@ var FieldContainer = function FieldContainer(_ref) {
|
|
|
103
104
|
error: !!error
|
|
104
105
|
}, /*#__PURE__*/_react["default"].createElement(_Fieldset["default"], null, /*#__PURE__*/_react["default"].createElement(_FieldsetLegend["default"], {
|
|
105
106
|
size: "s"
|
|
106
|
-
}, label && label.primary, label && label.secondary && /*#__PURE__*/_react["default"].createElement(_Hint["default"], null, t(label.secondary)), error && /*#__PURE__*/_react["default"].createElement(_ErrorMessage["default"], null, t((error === null || error === void 0 ? void 0 : error.message) || '')))
|
|
107
|
+
}, label && label.primary, label && label.secondary && /*#__PURE__*/_react["default"].createElement(_Hint["default"], null, t(label.secondary)), error && /*#__PURE__*/_react["default"].createElement(_ErrorMessage["default"], null, t((error === null || error === void 0 ? void 0 : error.message) || ''))), children));
|
|
107
108
|
} else {
|
|
108
109
|
return /*#__PURE__*/_react["default"].createElement(_Field["default"], {
|
|
109
110
|
error: !!error
|
package/es/Field/index.js
CHANGED
|
@@ -28,6 +28,7 @@ var FIELD_COMPONENTS = {
|
|
|
28
28
|
component: Input
|
|
29
29
|
},
|
|
30
30
|
file: {
|
|
31
|
+
wrapper: 'fieldset',
|
|
31
32
|
component: FileInput
|
|
32
33
|
},
|
|
33
34
|
date: {
|
|
@@ -67,7 +68,7 @@ var FieldContainer = function FieldContainer(_ref) {
|
|
|
67
68
|
error: !!error
|
|
68
69
|
}, /*#__PURE__*/React.createElement(CoreFieldset, null, /*#__PURE__*/React.createElement(FieldsetLegend, {
|
|
69
70
|
size: "s"
|
|
70
|
-
}, label && label.primary, label && label.secondary && /*#__PURE__*/React.createElement(Hint, null, t(label.secondary)), error && /*#__PURE__*/React.createElement(ErrorMessage, null, t((error === null || error === void 0 ? void 0 : error.message) || '')))
|
|
71
|
+
}, label && label.primary, label && label.secondary && /*#__PURE__*/React.createElement(Hint, null, t(label.secondary)), error && /*#__PURE__*/React.createElement(ErrorMessage, null, t((error === null || error === void 0 ? void 0 : error.message) || ''))), children));
|
|
71
72
|
} else {
|
|
72
73
|
return /*#__PURE__*/React.createElement(CoreField, {
|
|
73
74
|
error: !!error
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { useTranslation } from '@digigov/ui/app/i18n';
|
|
5
|
+
import Paragraph from '@digigov/ui/typography/Paragraph';
|
|
6
|
+
import CoreHint from '@digigov/react-core/Hint';
|
|
5
7
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
8
|
var FileInput = /*#__PURE__*/React.forwardRef(function FileInput(_ref, ref) {
|
|
7
9
|
var name = _ref.name,
|
|
@@ -9,20 +11,29 @@ var FileInput = /*#__PURE__*/React.forwardRef(function FileInput(_ref, ref) {
|
|
|
9
11
|
extra = _ref$extra === void 0 ? {} : _ref$extra,
|
|
10
12
|
disabled = _ref.disabled;
|
|
11
13
|
|
|
14
|
+
var _useTranslation = useTranslation(),
|
|
15
|
+
t = _useTranslation.t;
|
|
16
|
+
|
|
12
17
|
var _useState = useState([]),
|
|
13
18
|
_useState2 = _slicedToArray(_useState, 2),
|
|
14
19
|
files = _useState2[0],
|
|
15
20
|
setFiles = _useState2[1];
|
|
16
21
|
|
|
17
|
-
var filesLabel = extra.multiple ? 'αρχεία' : 'αρχείο';
|
|
18
22
|
return /*#__PURE__*/React.createElement("div", {
|
|
19
|
-
className: extra.className
|
|
20
|
-
}, /*#__PURE__*/React.createElement(
|
|
23
|
+
className: clsx(extra.className, files.length > 0 && 'govgr-uploaded-file', true && 'govgr-field-file')
|
|
24
|
+
}, files.length ? /*#__PURE__*/React.createElement(Paragraph, null, /*#__PURE__*/React.createElement("b", null, t('upload.file'), ":"), " ", "".concat(files.join(', '))) : /*#__PURE__*/React.createElement(CoreHint, null, t('upload.no_file')), /*#__PURE__*/React.createElement("label", {
|
|
25
|
+
tabIndex: 0,
|
|
26
|
+
role: "button",
|
|
27
|
+
className: clsx(extra.className, files.length === 0 && ['govgr-btn', 'govgr-btn-primary'], files.length > 0 && 'govgr-link', true && 'govgr-label-file')
|
|
28
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
21
29
|
ref: ref,
|
|
30
|
+
type: "file",
|
|
22
31
|
name: name,
|
|
23
|
-
id: name,
|
|
24
32
|
disabled: disabled,
|
|
25
|
-
|
|
33
|
+
style: {
|
|
34
|
+
display: 'none'
|
|
35
|
+
},
|
|
36
|
+
className: "govgr-file-upload",
|
|
26
37
|
onChange: function onChange(e) {
|
|
27
38
|
var target = e.target;
|
|
28
39
|
var selectedFiles = Array.from(target.files).map(function (_ref2) {
|
|
@@ -31,6 +42,6 @@ var FileInput = /*#__PURE__*/React.forwardRef(function FileInput(_ref, ref) {
|
|
|
31
42
|
});
|
|
32
43
|
setFiles(selectedFiles);
|
|
33
44
|
}
|
|
34
|
-
}),
|
|
45
|
+
}), files.length ? t('upload.change_file') : t('upload.choose_file')));
|
|
35
46
|
});
|
|
36
47
|
export default FileInput;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import CoreSelect from '@digigov/react-core/Select';
|
|
3
3
|
import SelectOption from '@digigov/react-core/SelectOption';
|
|
4
|
-
|
|
5
|
-
var _ref2 = /*#__PURE__*/React.createElement(SelectOption, {
|
|
6
|
-
value: ""
|
|
7
|
-
});
|
|
8
|
-
|
|
9
4
|
export var Select = /*#__PURE__*/React.forwardRef(function WrappedSelect(_ref, ref) {
|
|
10
5
|
var name = _ref.name,
|
|
11
6
|
_ref$extra = _ref.extra,
|
|
@@ -17,9 +12,9 @@ export var Select = /*#__PURE__*/React.forwardRef(function WrappedSelect(_ref, r
|
|
|
17
12
|
ref: ref,
|
|
18
13
|
name: name,
|
|
19
14
|
disabled: disabled
|
|
20
|
-
},
|
|
21
|
-
var value =
|
|
22
|
-
label =
|
|
15
|
+
}, options.map(function (_ref2) {
|
|
16
|
+
var value = _ref2.value,
|
|
17
|
+
label = _ref2.label;
|
|
23
18
|
return /*#__PURE__*/React.createElement(SelectOption, {
|
|
24
19
|
key: value,
|
|
25
20
|
value: value
|
package/esm/Field/index.js
CHANGED
|
@@ -28,6 +28,7 @@ var FIELD_COMPONENTS = {
|
|
|
28
28
|
component: Input
|
|
29
29
|
},
|
|
30
30
|
file: {
|
|
31
|
+
wrapper: 'fieldset',
|
|
31
32
|
component: FileInput
|
|
32
33
|
},
|
|
33
34
|
date: {
|
|
@@ -67,7 +68,7 @@ var FieldContainer = function FieldContainer(_ref) {
|
|
|
67
68
|
error: !!error
|
|
68
69
|
}, /*#__PURE__*/React.createElement(CoreFieldset, null, /*#__PURE__*/React.createElement(FieldsetLegend, {
|
|
69
70
|
size: "s"
|
|
70
|
-
}, label && label.primary, label && label.secondary && /*#__PURE__*/React.createElement(Hint, null, t(label.secondary)), error && /*#__PURE__*/React.createElement(ErrorMessage, null, t((error === null || error === void 0 ? void 0 : error.message) || '')))
|
|
71
|
+
}, label && label.primary, label && label.secondary && /*#__PURE__*/React.createElement(Hint, null, t(label.secondary)), error && /*#__PURE__*/React.createElement(ErrorMessage, null, t((error === null || error === void 0 ? void 0 : error.message) || ''))), children));
|
|
71
72
|
} else {
|
|
72
73
|
return /*#__PURE__*/React.createElement(CoreField, {
|
|
73
74
|
error: !!error
|
package/esm/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { useTranslation } from '@digigov/ui/app/i18n';
|
|
5
|
+
import Paragraph from '@digigov/ui/typography/Paragraph';
|
|
6
|
+
import CoreHint from '@digigov/react-core/Hint';
|
|
5
7
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
8
|
var FileInput = /*#__PURE__*/React.forwardRef(function FileInput(_ref, ref) {
|
|
7
9
|
var name = _ref.name,
|
|
@@ -9,20 +11,29 @@ var FileInput = /*#__PURE__*/React.forwardRef(function FileInput(_ref, ref) {
|
|
|
9
11
|
extra = _ref$extra === void 0 ? {} : _ref$extra,
|
|
10
12
|
disabled = _ref.disabled;
|
|
11
13
|
|
|
14
|
+
var _useTranslation = useTranslation(),
|
|
15
|
+
t = _useTranslation.t;
|
|
16
|
+
|
|
12
17
|
var _useState = useState([]),
|
|
13
18
|
_useState2 = _slicedToArray(_useState, 2),
|
|
14
19
|
files = _useState2[0],
|
|
15
20
|
setFiles = _useState2[1];
|
|
16
21
|
|
|
17
|
-
var filesLabel = extra.multiple ? 'αρχεία' : 'αρχείο';
|
|
18
22
|
return /*#__PURE__*/React.createElement("div", {
|
|
19
|
-
className: extra.className
|
|
20
|
-
}, /*#__PURE__*/React.createElement(
|
|
23
|
+
className: clsx(extra.className, files.length > 0 && 'govgr-uploaded-file', true && 'govgr-field-file')
|
|
24
|
+
}, files.length ? /*#__PURE__*/React.createElement(Paragraph, null, /*#__PURE__*/React.createElement("b", null, t('upload.file'), ":"), " ", "".concat(files.join(', '))) : /*#__PURE__*/React.createElement(CoreHint, null, t('upload.no_file')), /*#__PURE__*/React.createElement("label", {
|
|
25
|
+
tabIndex: 0,
|
|
26
|
+
role: "button",
|
|
27
|
+
className: clsx(extra.className, files.length === 0 && ['govgr-btn', 'govgr-btn-primary'], files.length > 0 && 'govgr-link', true && 'govgr-label-file')
|
|
28
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
21
29
|
ref: ref,
|
|
30
|
+
type: "file",
|
|
22
31
|
name: name,
|
|
23
|
-
id: name,
|
|
24
32
|
disabled: disabled,
|
|
25
|
-
|
|
33
|
+
style: {
|
|
34
|
+
display: 'none'
|
|
35
|
+
},
|
|
36
|
+
className: "govgr-file-upload",
|
|
26
37
|
onChange: function onChange(e) {
|
|
27
38
|
var target = e.target;
|
|
28
39
|
var selectedFiles = Array.from(target.files).map(function (_ref2) {
|
|
@@ -31,6 +42,6 @@ var FileInput = /*#__PURE__*/React.forwardRef(function FileInput(_ref, ref) {
|
|
|
31
42
|
});
|
|
32
43
|
setFiles(selectedFiles);
|
|
33
44
|
}
|
|
34
|
-
}),
|
|
45
|
+
}), files.length ? t('upload.change_file') : t('upload.choose_file')));
|
|
35
46
|
});
|
|
36
47
|
export default FileInput;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import CoreSelect from '@digigov/react-core/Select';
|
|
3
3
|
import SelectOption from '@digigov/react-core/SelectOption';
|
|
4
|
-
|
|
5
|
-
var _ref2 = /*#__PURE__*/React.createElement(SelectOption, {
|
|
6
|
-
value: ""
|
|
7
|
-
});
|
|
8
|
-
|
|
9
4
|
export var Select = /*#__PURE__*/React.forwardRef(function WrappedSelect(_ref, ref) {
|
|
10
5
|
var name = _ref.name,
|
|
11
6
|
_ref$extra = _ref.extra,
|
|
@@ -17,9 +12,9 @@ export var Select = /*#__PURE__*/React.forwardRef(function WrappedSelect(_ref, r
|
|
|
17
12
|
ref: ref,
|
|
18
13
|
name: name,
|
|
19
14
|
disabled: disabled
|
|
20
|
-
},
|
|
21
|
-
var value =
|
|
22
|
-
label =
|
|
15
|
+
}, options.map(function (_ref2) {
|
|
16
|
+
var value = _ref2.value,
|
|
17
|
+
label = _ref2.label;
|
|
23
18
|
return /*#__PURE__*/React.createElement(SelectOption, {
|
|
24
19
|
key: value,
|
|
25
20
|
value: value
|
|
@@ -13,9 +13,13 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _i18n = require("@digigov/ui/app/i18n");
|
|
19
|
+
|
|
20
|
+
var _Paragraph = _interopRequireDefault(require("@digigov/ui/typography/Paragraph"));
|
|
21
|
+
|
|
22
|
+
var _Hint = _interopRequireDefault(require("@digigov/react-core/Hint"));
|
|
19
23
|
|
|
20
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
25
|
|
|
@@ -28,20 +32,29 @@ var FileInput = /*#__PURE__*/_react["default"].forwardRef(function FileInput(_re
|
|
|
28
32
|
extra = _ref$extra === void 0 ? {} : _ref$extra,
|
|
29
33
|
disabled = _ref.disabled;
|
|
30
34
|
|
|
35
|
+
var _useTranslation = (0, _i18n.useTranslation)(),
|
|
36
|
+
t = _useTranslation.t;
|
|
37
|
+
|
|
31
38
|
var _useState = (0, _react.useState)([]),
|
|
32
39
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
33
40
|
files = _useState2[0],
|
|
34
41
|
setFiles = _useState2[1];
|
|
35
42
|
|
|
36
|
-
var filesLabel = extra.multiple ? 'αρχεία' : 'αρχείο';
|
|
37
43
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
38
|
-
className: extra.className
|
|
39
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
44
|
+
className: (0, _clsx["default"])(extra.className, files.length > 0 && 'govgr-uploaded-file', true && 'govgr-field-file')
|
|
45
|
+
}, files.length ? /*#__PURE__*/_react["default"].createElement(_Paragraph["default"], null, /*#__PURE__*/_react["default"].createElement("b", null, t('upload.file'), ":"), " ", "".concat(files.join(', '))) : /*#__PURE__*/_react["default"].createElement(_Hint["default"], null, t('upload.no_file')), /*#__PURE__*/_react["default"].createElement("label", {
|
|
46
|
+
tabIndex: 0,
|
|
47
|
+
role: "button",
|
|
48
|
+
className: (0, _clsx["default"])(extra.className, files.length === 0 && ['govgr-btn', 'govgr-btn-primary'], files.length > 0 && 'govgr-link', true && 'govgr-label-file')
|
|
49
|
+
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
40
50
|
ref: ref,
|
|
51
|
+
type: "file",
|
|
41
52
|
name: name,
|
|
42
|
-
id: name,
|
|
43
53
|
disabled: disabled,
|
|
44
|
-
|
|
54
|
+
style: {
|
|
55
|
+
display: 'none'
|
|
56
|
+
},
|
|
57
|
+
className: "govgr-file-upload",
|
|
45
58
|
onChange: function onChange(e) {
|
|
46
59
|
var target = e.target;
|
|
47
60
|
var selectedFiles = Array.from(target.files).map(function (_ref2) {
|
|
@@ -50,7 +63,7 @@ var FileInput = /*#__PURE__*/_react["default"].forwardRef(function FileInput(_re
|
|
|
50
63
|
});
|
|
51
64
|
setFiles(selectedFiles);
|
|
52
65
|
}
|
|
53
|
-
}),
|
|
66
|
+
}), files.length ? t('upload.change_file') : t('upload.choose_file')));
|
|
54
67
|
});
|
|
55
68
|
|
|
56
69
|
var _default = FileInput;
|
package/inputs/Select/index.js
CHANGED
|
@@ -13,10 +13,6 @@ var _Select = _interopRequireDefault(require("@digigov/react-core/Select"));
|
|
|
13
13
|
|
|
14
14
|
var _SelectOption = _interopRequireDefault(require("@digigov/react-core/SelectOption"));
|
|
15
15
|
|
|
16
|
-
var _ref2 = /*#__PURE__*/_react["default"].createElement(_SelectOption["default"], {
|
|
17
|
-
value: ""
|
|
18
|
-
});
|
|
19
|
-
|
|
20
16
|
var Select = /*#__PURE__*/_react["default"].forwardRef(function WrappedSelect(_ref, ref) {
|
|
21
17
|
var name = _ref.name,
|
|
22
18
|
_ref$extra = _ref.extra,
|
|
@@ -28,9 +24,9 @@ var Select = /*#__PURE__*/_react["default"].forwardRef(function WrappedSelect(_r
|
|
|
28
24
|
ref: ref,
|
|
29
25
|
name: name,
|
|
30
26
|
disabled: disabled
|
|
31
|
-
},
|
|
32
|
-
var value =
|
|
33
|
-
label =
|
|
27
|
+
}, options.map(function (_ref2) {
|
|
28
|
+
var value = _ref2.value,
|
|
29
|
+
label = _ref2.label;
|
|
34
30
|
return /*#__PURE__*/_react["default"].createElement(_SelectOption["default"], {
|
|
35
31
|
key: value,
|
|
36
32
|
value: value
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface I18NContextProps {
|
|
3
|
+
Trans?: any;
|
|
3
4
|
t: (str: string) => string;
|
|
4
5
|
children?: React.ReactNode;
|
|
5
6
|
i18n?: any;
|
|
6
7
|
}
|
|
8
|
+
export declare const defaultTranslate: (key: any) => any;
|
|
7
9
|
export declare const I18NContext: React.Context<I18NContextProps>;
|
|
8
10
|
export declare const I18NProvider: React.FC<I18NContextProps>;
|
|
9
11
|
export declare const useTranslation: () => I18NContextProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/form",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "@digigov form builder",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dayjs": "1.10.4"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@digigov/ui": "0.
|
|
20
|
+
"@digigov/ui": "0.16.0",
|
|
21
21
|
"@material-ui/core": "4.11.3",
|
|
22
22
|
"@material-ui/icons": "4.11.2",
|
|
23
23
|
"clsx": "1.1.1",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type InputElementAttributes = JSX.IntrinsicElements['input'];
|
|
3
|
-
export interface FileUploadProps extends InputElementAttributes {
|
|
4
|
-
/**
|
|
5
|
-
* name is optional.
|
|
6
|
-
*/
|
|
7
|
-
name?: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Details for the FileUpload.
|
|
11
|
-
* FileUpload component is used for uploading files
|
|
12
|
-
*/
|
|
13
|
-
export declare const FileUpload: React.ForwardRefExoticComponent<Pick<FileUploadProps, "type" | "className" | "style" | "form" | "slot" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "required" | "disabled" | "name" | "list" | "step" | "size" | "min" | "max" | "maxLength" | "minLength" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "multiple" | "readOnly" | "src" | "value" | "width"> & React.RefAttributes<HTMLInputElement>>;
|
|
14
|
-
export default FileUpload;
|