ywana-core8 0.2.33 → 0.2.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.2.33",
3
+ "version": "0.2.34",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -1,8 +1,8 @@
1
1
  import React, { useState } from 'react';
2
2
  import {
3
- Upload,
4
- UploadButton,
5
- UploadDialog,
3
+ UploadV2,
4
+ UploadButtonV2,
5
+ UploadDialogV2,
6
6
  UploadDropZone,
7
7
  UploadFileList,
8
8
  UploadFileGrid,
@@ -15,7 +15,7 @@ import {
15
15
 
16
16
  export default {
17
17
  title: 'Widgets/Upload2',
18
- component: Upload,
18
+ component: UploadV2,
19
19
  parameters: {
20
20
  docs: {
21
21
  description: {
@@ -150,7 +150,7 @@ export const UploadComplete_ListView = () => {
150
150
  <h2>Upload Completo - Vista Lista</h2>
151
151
  <p>Componente todo-en-uno con vista de lista</p>
152
152
 
153
- <Upload
153
+ <UploadV2
154
154
  url="/api/upload"
155
155
  uploadService={mockUploadService}
156
156
  accept="image/*,video/*,.pdf"
@@ -183,7 +183,7 @@ export const UploadComplete_GridView = () => {
183
183
  <h2>Upload Completo - Vista Grid (Medium)</h2>
184
184
  <p>Componente todo-en-uno con vista de grid - Tamaño mediano (default)</p>
185
185
 
186
- <Upload
186
+ <UploadV2
187
187
  url="/api/upload"
188
188
  uploadService={mockUploadService}
189
189
  accept="image/*"
@@ -212,7 +212,7 @@ export const UploadGrid_SmallSize = () => {
212
212
  <h2>Upload Grid - Small Size</h2>
213
213
  <p>Vista de grid con previews pequeños (aspect ratio 4:3)</p>
214
214
 
215
- <Upload
215
+ <UploadV2
216
216
  url="/api/upload"
217
217
  uploadService={mockUploadService}
218
218
  accept="image/*"
@@ -238,7 +238,7 @@ export const UploadGrid_LargeSize = () => {
238
238
  <h2>Upload Grid - Large Size</h2>
239
239
  <p>Vista de grid con previews grandes (aspect ratio 3:4)</p>
240
240
 
241
- <Upload
241
+ <UploadV2
242
242
  url="/api/upload"
243
243
  uploadService={mockUploadService}
244
244
  accept="image/*"
@@ -289,7 +289,7 @@ export const UploadManual = () => {
289
289
  </p>
290
290
  </div>
291
291
 
292
- <Upload
292
+ <UploadV2
293
293
  url="/api/upload"
294
294
  uploadService={(uploadFile, options) => mockUploadService.upload(uploadFile, options)}
295
295
  accept="image/*"
@@ -317,7 +317,7 @@ export const ButtonSimple = () => {
317
317
  <h2>UploadButton Simple</h2>
318
318
  <p>Solo un botón de selección, sin UI de upload</p>
319
319
 
320
- <UploadButton
320
+ <UploadButtonV2
321
321
  accept="image/*"
322
322
  multiple={true}
323
323
  label="Seleccionar Imágenes"
@@ -407,7 +407,7 @@ export const DialogModal = () => {
407
407
  </button>
408
408
 
409
409
  {showDialog && (
410
- <UploadDialog
410
+ <UploadDialogV2
411
411
  title={autoUpload ? "Subir Archivos (Auto)" : "Subir Archivos (Manual)"}
412
412
  icon="cloud_upload"
413
413
  url="/api/upload"
@@ -606,7 +606,7 @@ export const UsingAxiosService = () => {
606
606
  <p><strong>Info:</strong> {JSON.stringify(axiosService.getInfo(), null, 2)}</p>
607
607
  </div>
608
608
 
609
- <Upload
609
+ <UploadV2
610
610
  url="/api/upload"
611
611
  uploadService={(uploadFile, options) => axiosService.upload(uploadFile, options)}
612
612
  accept="image/*"
@@ -651,7 +651,7 @@ export const UsingFetchService = () => {
651
651
  <p><strong>⚠️ Nota:</strong> No verás progreso en la barra porque Fetch API no soporta progress tracking nativo.</p>
652
652
  </div>
653
653
 
654
- <Upload
654
+ <UploadV2
655
655
  url="/api/upload"
656
656
  uploadService={(uploadFile, options) => fetchService.upload(uploadFile, options)}
657
657
  accept="image/*"
@@ -757,7 +757,7 @@ export const ServicesComparison = () => {
757
757
  </pre>
758
758
  </div>
759
759
 
760
- <Upload
760
+ <UploadV2
761
761
  key={selectedService}
762
762
  url="/api/upload"
763
763
  uploadService={(uploadFile, options) => currentService.upload(uploadFile, options)}