@idds/react 1.4.4 → 1.4.5
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/README.md +467 -329
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +8 -4
- package/dist/index.umd.js +1 -1
- package/dist/types/components/FileUpload.d.ts +4 -3
- package/dist/types/components/FileUpload.d.ts.map +1 -1
- package/dist/types/components/SingleFileUpload.d.ts +2 -2
- package/dist/types/components/SingleFileUpload.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -2600,7 +2600,8 @@ function FileUpload({
|
|
|
2600
2600
|
disabled = false,
|
|
2601
2601
|
className = "",
|
|
2602
2602
|
onChange,
|
|
2603
|
-
onRemove
|
|
2603
|
+
onRemove,
|
|
2604
|
+
...rest
|
|
2604
2605
|
}) {
|
|
2605
2606
|
const fileInputRef = useRef(null);
|
|
2606
2607
|
const [files, setFiles] = useState([]);
|
|
@@ -2808,12 +2809,13 @@ function FileUpload({
|
|
|
2808
2809
|
/* @__PURE__ */ jsx(
|
|
2809
2810
|
"input",
|
|
2810
2811
|
{
|
|
2812
|
+
...rest,
|
|
2811
2813
|
ref: fileInputRef,
|
|
2812
2814
|
type: "file",
|
|
2813
2815
|
accept: type,
|
|
2814
2816
|
multiple,
|
|
2815
2817
|
disabled,
|
|
2816
|
-
className: "ina-file-upload__input",
|
|
2818
|
+
className: clsx("ina-file-upload__input", className),
|
|
2817
2819
|
onChange: handleFileChange
|
|
2818
2820
|
}
|
|
2819
2821
|
),
|
|
@@ -2986,7 +2988,8 @@ function SingleFileUpload({
|
|
|
2986
2988
|
progress: externalProgress,
|
|
2987
2989
|
status: externalStatus,
|
|
2988
2990
|
onChange,
|
|
2989
|
-
onRemove
|
|
2991
|
+
onRemove,
|
|
2992
|
+
...rest
|
|
2990
2993
|
}) {
|
|
2991
2994
|
const fileInputRef = useRef(null);
|
|
2992
2995
|
const [file, setFile] = useState(null);
|
|
@@ -3218,11 +3221,12 @@ function SingleFileUpload({
|
|
|
3218
3221
|
/* @__PURE__ */ jsx(
|
|
3219
3222
|
"input",
|
|
3220
3223
|
{
|
|
3224
|
+
...rest,
|
|
3221
3225
|
ref: fileInputRef,
|
|
3222
3226
|
type: "file",
|
|
3223
3227
|
accept,
|
|
3224
3228
|
disabled,
|
|
3225
|
-
className: "ina-single-file-upload__input",
|
|
3229
|
+
className: clsx("ina-single-file-upload__input", className),
|
|
3226
3230
|
onChange: handleFileChange
|
|
3227
3231
|
}
|
|
3228
3232
|
),
|