@panneau/field-upload 4.0.31 → 4.0.33

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.
@@ -1 +1 @@
1
- .panneau-field-upload-container{position:relative;width:100%}.panneau-field-upload-container .panneau-field-upload-dashboard{position:relative}.panneau-field-upload-container .panneau-field-upload-dashboardModal{position:relative;z-index:10001}.panneau-field-upload-container .panneau-field-upload-uppyDashboardContainer{margin-top:0}
1
+ .panneau-field-upload-container{position:relative;width:100%}.panneau-field-upload-container .panneau-field-upload-dashboard{margin-bottom:10px;position:relative}.panneau-field-upload-container .panneau-field-upload-dashboardModal{position:relative;z-index:10001}.panneau-field-upload-container .panneau-field-upload-uppyDashboardContainer{margin-top:0}
package/dist/index.js CHANGED
@@ -356,44 +356,6 @@ function UploadField(_ref) {
356
356
  })
357
357
  })
358
358
  })
359
- }) : null, withoutMedia || (!hasMedia || allowMultipleUploads) && withButton ? /*#__PURE__*/jsxs("div", {
360
- className: "row",
361
- children: [/*#__PURE__*/jsx("div", {
362
- className: "col-auto",
363
- children: /*#__PURE__*/jsx(Button, {
364
- id: "trigger-uppy",
365
- type: "button",
366
- theme: "primary",
367
- icon: finalLoading ? 'loading' : 'upload',
368
- iconPosition: "right",
369
- onClick: onClickAdd || openModal,
370
- disabled: finalLoading || disabled,
371
- outline: outline,
372
- children: /*#__PURE__*/jsx(Label, {
373
- children: finalLoading ? /*#__PURE__*/jsx(FormattedMessage, {
374
- id: "NozDYd",
375
- defaultMessage: [{
376
- "type": 0,
377
- "value": "Uploading"
378
- }]
379
- }) : addButtonLabel
380
- })
381
- })
382
- }), withFind ? /*#__PURE__*/jsx("div", {
383
- className: "col-auto ps-0",
384
- children: /*#__PURE__*/jsx(Button, {
385
- type: "button",
386
- theme: "primary",
387
- icon: "search",
388
- iconPosition: "right",
389
- onClick: finalOnClickFind,
390
- disabled: disabled,
391
- outline: outline,
392
- children: /*#__PURE__*/jsx(Label, {
393
- children: findButtonLabel
394
- })
395
- })
396
- }) : null]
397
359
  }) : null, finalUppy !== null ? /*#__PURE__*/jsxs(UppyContextProvider, {
398
360
  uppy: finalUppy,
399
361
  children: [!uploadDisabled && !hasMedia && !withButton && finalUppy !== null ? /*#__PURE__*/jsx("div", {
@@ -429,6 +391,44 @@ function UploadField(_ref) {
429
391
  doneButtonHandler: closeModal,
430
392
  closeAfterFinish: closeAfterFinish
431
393
  }) : null]
394
+ }) : null, withoutMedia || (!hasMedia || allowMultipleUploads) && (withButton || withFind) ? /*#__PURE__*/jsxs("div", {
395
+ className: "row",
396
+ children: [withButton ? /*#__PURE__*/jsx("div", {
397
+ className: "col-auto mb-2 pe-0",
398
+ children: /*#__PURE__*/jsx(Button, {
399
+ id: "trigger-uppy",
400
+ type: "button",
401
+ theme: "primary",
402
+ icon: finalLoading ? 'loading' : 'upload',
403
+ iconPosition: "right",
404
+ onClick: onClickAdd || openModal,
405
+ disabled: finalLoading || disabled,
406
+ outline: outline,
407
+ children: /*#__PURE__*/jsx(Label, {
408
+ children: finalLoading ? /*#__PURE__*/jsx(FormattedMessage, {
409
+ id: "NozDYd",
410
+ defaultMessage: [{
411
+ "type": 0,
412
+ "value": "Uploading"
413
+ }]
414
+ }) : addButtonLabel
415
+ })
416
+ })
417
+ }) : null, withFind ? /*#__PURE__*/jsx("div", {
418
+ className: "col-auto mb-2",
419
+ children: /*#__PURE__*/jsx(Button, {
420
+ type: "button",
421
+ theme: "primary",
422
+ icon: "search",
423
+ iconPosition: "right",
424
+ onClick: finalOnClickFind,
425
+ disabled: disabled,
426
+ outline: outline,
427
+ children: /*#__PURE__*/jsx(Label, {
428
+ children: findButtonLabel
429
+ })
430
+ })
431
+ }) : null]
432
432
  }) : null, showResourceModal ? /*#__PURE__*/jsx(ModalResourceItems, {
433
433
  id: "upload-".concat(name),
434
434
  resource: resource,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/field-upload",
3
- "version": "4.0.31",
3
+ "version": "4.0.33",
4
4
  "description": "An Upload field",
5
5
  "keywords": [
6
6
  "javascript"
@@ -67,11 +67,11 @@
67
67
  "@fortawesome/free-solid-svg-icons": "^6.5.1",
68
68
  "@fortawesome/react-fontawesome": "^0.2.0",
69
69
  "@panneau/core": "^4.0.27",
70
- "@panneau/element-button": "^4.0.27",
70
+ "@panneau/element-button": "^4.0.33",
71
71
  "@panneau/element-label": "^4.0.27",
72
- "@panneau/element-media-card": "^4.0.27",
73
- "@panneau/modal-resource-items": "^4.0.31",
74
- "@panneau/themes": "^4.0.27",
72
+ "@panneau/element-media-card": "^4.0.33",
73
+ "@panneau/modal-resource-items": "^4.0.33",
74
+ "@panneau/themes": "^4.0.33",
75
75
  "@panneau/uppy": "^4.0.27",
76
76
  "@uppy/core": "^5.1.1",
77
77
  "@uppy/dashboard": "^5.0.4",
@@ -85,5 +85,5 @@
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "gitHead": "64756359d534e2eb7a3516f8ee0691dc7d7587db"
88
+ "gitHead": "c0e63d849207a4f77f9e6d8d2c9f4b51c3d892d5"
89
89
  }