@sunggang/ui-lib 0.1.78 → 0.1.79

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/index.esm.js +2 -2
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -79769,11 +79769,11 @@ var DropImage = function(param) {
79769
79769
  onDrop: function(dropFiles) {
79770
79770
  var newFiles = [];
79771
79771
  setFiles(dropFiles);
79772
- dropFiles.forEach(function(dropFile) {
79772
+ dropFiles.forEach(function(dropFile, index) {
79773
79773
  Object.assign(dropFile, {
79774
79774
  preview: URL.createObjectURL(dropFile),
79775
79775
  id: v4(),
79776
- index: (previewFiles === null || previewFiles === void 0 ? void 0 : previewFiles.length) + 1
79776
+ index: (previewFiles === null || previewFiles === void 0 ? void 0 : previewFiles.length) + index + 1
79777
79777
  });
79778
79778
  newFiles.push(dropFile);
79779
79779
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.1.78",
3
+ "version": "0.1.79",
4
4
  "dependencies": {
5
5
  "@iconify/react": "^4.1.1",
6
6
  "@mdx-js/react": "^3.0.1",