bmi-next-brokers 2.9.7 → 2.9.8
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
|
-
._inputContainer_ibkco_1{display:flex;flex-direction:column;gap:4px;width:fit-content;min-width:0}._inputContainer_ibkco_1._fullWidth_ibkco_9{width:100%}._label_ibkco_13{font-family:var(--font-regular);font-size:13px;color:var(--Content-Neutral-Default-Active, #000);font-weight:500;padding-left:4px}._label_large_ibkco_21{font-size:15px;margin-bottom:6px}._label_disabled_ibkco_26{color:var(--content-disabled-default, #cbd5e1)}._label_inverted_ibkco_30{color:#fff!important}._label_inverted_disabled_ibkco_34{color:var(--Content-Neutral-Default-Active, #fff)}._fileUploadContainer_ibkco_38{background:var(--Fill-Brand-Default-Hover, #eef3fc);border-radius:12px;transition:background-color .3s ease,border-color .3s ease;position:relative;cursor:pointer;display:flex;flex-direction:column;justify-content:center;overflow:hidden}._iconContainerLeft_ibkco_52{position:absolute;top:-60px;left:-12px;transform:rotate(15deg);transition:opacity .3s ease}._iconContainerRight_ibkco_60{position:absolute;top:20px;left:300px;transform:rotate(-25deg);transition:opacity .3s ease}._fileUploadContainer_ibkco_38:hover{background:var(--Fill-Info-Inverted-Hover, #e0e9f8)}._fileUploadContainer_ibkco_38._dragOver_ibkco_72{border-color:var(--Fill-Brand-Default-Active, #2054a5);background:var(--Fill-Brand-Default-Hover, #eef3fc)}._fileUploadContainer_ibkco_38{width:415px;height:120px}._fileUploadContainer_ibkco_38._fullWidth_ibkco_9{width:100%}._variant_document_ibkco_88 ._icon_ibkco_52{color:var(--Content-Neutral-Primary, #475569)}._variant_add_ibkco_92 ._icon_ibkco_52{color:var(--Fill-Brand-Default-Active, #2054a5)}._fileUploadContainer_ibkco_38._disabled_ibkco_97{border-color:var(--Stroke-Disabled-Default, #cbd5e1);background:var(--Fill-Disabled-Default, #f8fafc);cursor:not-allowed}._fileUploadContainer_ibkco_38._disabled_ibkco_97:hover{border-color:var(--Stroke-Disabled-Default, #cbd5e1);background:var(--Fill-Disabled-Default, #f8fafc)}._fileUploadContainer_ibkco_38._error_ibkco_108{border-color:var(--Stroke-Negative-Active, #dc2626);background:var(--Fill-Negative-Default-Active, #fee2e2)}._fileUploadContainer_ibkco_38._error_ibkco_108:hover{border-color:var(--Stroke-Negative-Active, #dc2626)}._fileUploadContainer_ibkco_38._success_ibkco_117{background:var(--Fill-Brand-Default-Hover, #eef3fc)}._fileUploadContainer_ibkco_38._success_ibkco_117:hover{background:var(--Fill-Info-Inverted-Hover, #e0e9f8)}._fileUploadContainer_ibkco_38._loading_ibkco_125{background:var(--Fill-Brand-Default-Hover, #eef3fc)}._fileUploadContainer_ibkco_38._loading_ibkco_125:hover{background:var(--Fill-Info-Inverted-Hover, #e0e9f8)}._fileUploadContainer_ibkco_38._inverted_ibkco_134{border-color:var(--Stroke-Neutral-Secondary, #c9e1f6);background:transparent}._fileUploadContainer_ibkco_38._inverted_ibkco_134:hover{border-color:var(--Stroke-Neutral-Primary, #e0e9f8);background:#ffffff1a}._fileUploadContainer_ibkco_38._inverted_ibkco_134._dragOver_ibkco_72{border-color:var(--Fill-Brand-Inverted-Active, #fff);background:#fff3}._fileUploadContainer_ibkco_38._inverted_ibkco_134._disabled_ibkco_97{border-color:var(--Stroke-Disabled-Default, #1b468a);background:transparent}._fileUploadContainer_ibkco_38._inverted_ibkco_134._error_ibkco_108{border-color:var(--Stroke-Negative-Active, #ef4444);background:#ef44441a}._uploadContent_ibkco_160{display:flex;flex-direction:column;align-items:center;gap:12px;z-index:100;height:100%;position:relative;transition:all .3s ease}._selectedFileContent_ibkco_172{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;height:100%;justify-content:flex-start}._selectedFileContent_ibkco_172._withoutError_ibkco_182{justify-content:center}._selectedFileName_ibkco_186{color:#2054a5;font-size:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._selectedFileSize_ibkco_194{font-family:var(--font-regular);font-size:12px;color:var(--Content-Neutral-Secondary, #64748b);margin-top:2px}._removeButton_ibkco_201{font-family:var(--font-medium);font-size:20px;color:var(--Content-Neutral-Secondary, #64748b);background:transparent;border:none;cursor:pointer;padding:4px;line-height:1;border-radius:4px;transition:all .2s ease;flex-shrink:0}._removeButton_ibkco_201:hover{color:var(--Content-Negative-Default-Active, #dc2626);background:var(--Fill-Negative-Default-Hover, #fee2e2)}._removeButton_ibkco_201:disabled{color:var(--content-disabled-default, #cbd5e1);cursor:not-allowed;background:transparent}._inverted_ibkco_134 ._selectedFileName_ibkco_186{color:#fff}._inverted_ibkco_134 ._selectedFileSize_ibkco_194,._inverted_ibkco_134 ._removeButton_ibkco_201{color:#ffffffb3}._inverted_ibkco_134 ._removeButton_ibkco_201:hover{color:var(--Content-Negative-Default-Active, #f87171);background:#ef44441a}._inverted_ibkco_134._disabled_ibkco_97 ._selectedFileName_ibkco_186,._inverted_ibkco_134._disabled_ibkco_97 ._selectedFileSize_ibkco_194,._inverted_ibkco_134._disabled_ibkco_97 ._removeButton_ibkco_201{color:var(--content-disabled-default, #4f88d9)}._icon_ibkco_52{display:flex;align-items:center;justify-content:center}._icon_ibkco_52 svg{width:32px;height:32px}._textContent_ibkco_261{text-align:center;display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:center;height:100%}._dragText_ibkco_271{color:var(--Content-Brand-Default-Active, #2054a5)}._browseText_ibkco_275{font-family:var(--font-medium);font-size:14px;color:var(--Fill-Brand-Default-Active, #2054a5);text-decoration:underline}._disabled_ibkco_97 ._dragText_ibkco_271,._disabled_ibkco_97 ._browseText_ibkco_275{color:var(--content-disabled-default, #cbd5e1)}._inverted_ibkco_134 ._dragText_ibkco_271{color:#fffc}._inverted_ibkco_134 ._browseText_ibkco_275{color:#fff}._inverted_ibkco_134._disabled_ibkco_97 ._dragText_ibkco_271,._inverted_ibkco_134._disabled_ibkco_97 ._browseText_ibkco_275{color:var(--content-disabled-default, #4f88d9)}._inverted_ibkco_134 ._variant_document_ibkco_88 ._icon_ibkco_52,._inverted_ibkco_134 ._variant_add_ibkco_92 ._icon_ibkco_52{color:#fff}._inverted_ibkco_134._disabled_ibkco_97 ._icon_ibkco_52{color:var(--content-disabled-default, #4f88d9)}._hiddenInput_ibkco_312{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}._selectedFilesContainer_ibkco_325{margin-top:12px;padding:12px;border-radius:8px;background:var(--Fill-Neutral-Default-Default, #f8fafc);border:1px solid var(--Stroke-Neutral-Primary, #e2e8f0)}._selectedFilesHeader_ibkco_333{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}._selectedFilesText_ibkco_340{font-family:var(--font-medium);font-size:13px;color:var(--Content-Neutral-Default-Active, #475569)}._clearButton_ibkco_346{font-family:var(--font-medium);font-size:12px;color:var(--Fill-Brand-Default-Active, #2054a5);background:transparent;border:none;cursor:pointer;text-decoration:underline;padding:0}._clearButton_ibkco_346:hover{color:var(--Fill-Brand-Default-Hover, #1e40af)}._clearButton_ibkco_346:disabled{color:var(--content-disabled-default, #cbd5e1);cursor:not-allowed;text-decoration:none}._filesList_ibkco_367{display:flex;flex-direction:column;gap:4px}._fileItem_ibkco_373{display:flex;justify-content:space-between;align-items:center;padding:4px 0;border-bottom:1px solid var(--Stroke-Neutral-Secondary, #e2e8f0)}._fileItem_ibkco_373:last-child{border-bottom:none}._fileName_ibkco_385{font-family:var(--font-regular);font-size:12px;color:var(--Content-Neutral-Default-Active, #475569);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:8px}._fileSize_ibkco_396{font-family:var(--font-regular);font-size:11px;color:var(--Content-Neutral-Secondary, #64748b);flex-shrink:0}._inverted_ibkco_134 ._selectedFilesContainer_ibkco_325{background:#ffffff1a;border-color:var(--Stroke-Neutral-Secondary, #c9e1f6)}._inverted_ibkco_134 ._selectedFilesText_ibkco_340,._inverted_ibkco_134 ._clearButton_ibkco_346{color:#fff}._inverted_ibkco_134 ._clearButton_ibkco_346:hover{color:#fffc}._inverted_ibkco_134 ._clearButton_ibkco_346:disabled{color:var(--content-disabled-default, #4f88d9)}._inverted_ibkco_134 ._fileItem_ibkco_373{border-color:#fff3}._inverted_ibkco_134 ._fileName_ibkco_385{color:#ffffffe6}._inverted_ibkco_134 ._fileSize_ibkco_396{color:#ffffffb3}._bigZIndex_ibkco_437{z-index:1000}._cancelIconWrapper_ibkco_441{background:var(--Content-Negative-Default-Active, #dc2626);height:35px;width:35px;border-radius:1000px;position:absolute;top:18px;left:50%;transform:translate(-50%);z-index:200;display:flex;align-items:center;justify-content:center;animation:_fadeInSlideDown_ibkco_1 .4s ease}._selectedFileInfo_ibkco_457{display:flex;flex-direction:column;text-align:center;position:absolute;top:65px;left:50%;transform:translate(-50%);z-index:200;width:90%;opacity:0;animation:_fadeInSlideUp_ibkco_1 .3s ease forwards}._successIconWrapper_ibkco_471{background:var(--Content-Positive-Active, #65a30d);height:35px;width:35px;border-radius:1000px;position:absolute;top:18px;left:50%;transform:translate(-50%);z-index:200;display:flex;align-items:center;justify-content:center;animation:_fadeInSlideDown_ibkco_1 .4s ease}._loadingIconWrapper_ibkco_487{background:var(--Content-Brand-Default-Active, #2054a5);height:35px;width:35px;border-radius:1000px;position:absolute;top:18px;left:50%;transform:translate(-50%);z-index:200;display:flex;align-items:center;justify-content:center;animation:_fadeInSlideDown_ibkco_1 .4s ease}._withoutError_ibkco_182 ._selectedFileInfo_ibkco_457{position:static;transform:none;opacity:0;animation:_fadeIn_ibkco_1 .3s ease forwards}._withSuccess_ibkco_511 ._selectedFileInfo_ibkco_457,._withLoading_ibkco_525 ._selectedFileInfo_ibkco_457{display:flex;flex-direction:column;text-align:center;position:absolute;top:65px;left:50%;transform:translate(-50%);z-index:200;width:90%;opacity:0;animation:_fadeInSlideUp_ibkco_1 .3s ease forwards}._errorText_ibkco_539{position:absolute;top:89px;left:50%;transform:translate(-50%);z-index:200;width:90%;text-align:center;font-family:var(--font-medium);font-size:12px;color:var(--Content-Negative-Default-Active, #dc2626);margin:0;padding:0;animation:_fadeInSlideUp_ibkco_1 .4s ease}._successText_ibkco_555{position:absolute;top:89px;left:50%;transform:translate(-50%);z-index:200;width:90%;text-align:center;font-family:var(--font-medium);font-size:12px;color:var(--Content-Positive-Default-Active, #16a34a);margin:0;padding:0;animation:_fadeInSlideUp_ibkco_1 .4s ease}@keyframes _fadeInSlideDown_ibkco_1{0%{opacity:0;transform:translate(-50%) translateY(-10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}@keyframes _fadeInSlideUp_ibkco_1{0%{opacity:0;transform:translate(-50%) translateY(10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}@keyframes _fadeInSlideUpCentered_ibkco_1{0%{opacity:0;transform:translate(-50%) translateY(10px);left:50%}to{opacity:1;transform:translate(-50%) translateY(0);left:50%}}@keyframes _fadeIn_ibkco_1{0%{opacity:0}to{opacity:1}}._inlineFileContainer_ibkco_617{display:flex;align-items:center;gap:12px;width:100%;padding:0;animation:_fadeIn_ibkco_1 .3s ease forwards}._inlineFileIcon_ibkco_626{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--Fill-Brand-Default-Active, #2054a5)}._inlineFileIcon_ibkco_626._error_ibkco_108{background:var(--Content-Negative-Default-Active, #dc2626)}._inlineFileIcon_ibkco_626._success_ibkco_117{background:var(--Content-Positive-Active, #65a30d)}._inlineFileIcon_ibkco_626._loading_ibkco_125{background:var(--Content-Brand-Default-Active, #2054a5)}._inlineFileIcon_ibkco_626._default_ibkco_649{background:var(--Fill-Brand-Default-Active, #2054a5)}._inlineFileInfo_ibkco_653{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}._inlineFileName_ibkco_661{font-family:var(--font-medium);font-size:14px;color:var(--Content-Neutral-Default-Active, #475569);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._inlineErrorText_ibkco_670{font-family:var(--font-regular);font-size:12px;color:var(--Content-Negative-Default-Active, #dc2626)}._inlineSuccessText_ibkco_676{font-family:var(--font-regular);font-size:12px;color:var(--Content-Positive-Default-Active, #16a34a)}._inlineFileActions_ibkco_682{display:flex;align-items:center;gap:8px;flex-shrink:0}._inlineActionIcon_ibkco_689{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;cursor:pointer;transition:background-color .2s ease}._inlineActionIcon_ibkco_689:hover{background:var(--Fill-Neutral-Secondary, #f1f5f9)}
|
|
1
|
+
._inputContainer_1ed77_1{display:flex;flex-direction:column;gap:4px;width:fit-content;min-width:0}._inputContainer_1ed77_1._fullWidth_1ed77_9{width:100%}._label_1ed77_13{font-family:var(--font-regular);font-size:13px;color:var(--Content-Neutral-Default-Active, #000);font-weight:500;padding-left:4px}._label_large_1ed77_21{font-size:15px;margin-bottom:6px}._label_disabled_1ed77_26{color:var(--content-disabled-default, #cbd5e1)}._label_inverted_1ed77_30{color:#fff!important}._label_inverted_disabled_1ed77_34{color:var(--Content-Neutral-Default-Active, #fff)}._fileUploadContainer_1ed77_38{background:var(--Fill-Brand-Default-Hover, #eef3fc);border-radius:12px;transition:background-color .3s ease,border-color .3s ease;position:relative;cursor:pointer;display:flex;flex-direction:column;justify-content:center;overflow:hidden}._iconContainerLeft_1ed77_52{position:absolute;top:-60px;left:-12px;transform:rotate(15deg);transition:opacity .3s ease}._iconContainerRight_1ed77_60{position:absolute;top:20px;left:300px;transform:rotate(-25deg);transition:opacity .3s ease}._fileUploadContainer_1ed77_38:hover{background:var(--Fill-Info-Inverted-Hover, #e0e9f8)}._fileUploadContainer_1ed77_38._dragOver_1ed77_72{border-color:var(--Fill-Brand-Default-Active, #2054a5);background:var(--Fill-Brand-Default-Hover, #eef3fc)}._fileUploadContainer_1ed77_38{width:415px;height:120px}._fileUploadContainer_1ed77_38._fullWidth_1ed77_9{width:100%}._variant_document_1ed77_88 ._icon_1ed77_52{color:var(--Content-Neutral-Primary, #475569)}._variant_add_1ed77_92 ._icon_1ed77_52{color:var(--Fill-Brand-Default-Active, #2054a5)}._fileUploadContainer_1ed77_38._disabled_1ed77_97{border-color:var(--Stroke-Disabled-Default, #cbd5e1);background:var(--Fill-Disabled-Default, #f8fafc);cursor:not-allowed}._fileUploadContainer_1ed77_38._disabled_1ed77_97:hover{border-color:var(--Stroke-Disabled-Default, #cbd5e1);background:var(--Fill-Disabled-Default, #f8fafc)}._fileUploadContainer_1ed77_38._error_1ed77_108{border-color:var(--Stroke-Negative-Active, #dc2626);background:var(--Fill-Negative-Default-Active, #fee2e2)}._fileUploadContainer_1ed77_38._error_1ed77_108:hover{border-color:var(--Stroke-Negative-Active, #dc2626)}._fileUploadContainer_1ed77_38._success_1ed77_117{background:var(--Fill-Brand-Default-Hover, #eef3fc)}._fileUploadContainer_1ed77_38._success_1ed77_117:hover{background:var(--Fill-Info-Inverted-Hover, #e0e9f8)}._fileUploadContainer_1ed77_38._loading_1ed77_125{background:var(--Fill-Brand-Default-Hover, #eef3fc)}._fileUploadContainer_1ed77_38._loading_1ed77_125:hover{background:var(--Fill-Info-Inverted-Hover, #e0e9f8)}._fileUploadContainer_1ed77_38._inverted_1ed77_134{border-color:var(--Stroke-Neutral-Secondary, #c9e1f6);background:transparent}._fileUploadContainer_1ed77_38._inverted_1ed77_134:hover{border-color:var(--Stroke-Neutral-Primary, #e0e9f8);background:#ffffff1a}._fileUploadContainer_1ed77_38._inverted_1ed77_134._dragOver_1ed77_72{border-color:var(--Fill-Brand-Inverted-Active, #fff);background:#fff3}._fileUploadContainer_1ed77_38._inverted_1ed77_134._disabled_1ed77_97{border-color:var(--Stroke-Disabled-Default, #1b468a);background:transparent}._fileUploadContainer_1ed77_38._inverted_1ed77_134._error_1ed77_108{border-color:var(--Stroke-Negative-Active, #ef4444);background:#ef44441a}._uploadContent_1ed77_160{display:flex;flex-direction:column;align-items:center;gap:12px;z-index:100;height:100%;position:relative;transition:all .3s ease}._selectedFileContent_1ed77_172{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;height:100%;justify-content:flex-start}._selectedFileContent_1ed77_172._withoutError_1ed77_182{justify-content:center}._selectedFileName_1ed77_186{color:#2054a5;font-size:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._selectedFileSize_1ed77_194{font-family:var(--font-regular);font-size:12px;color:var(--Content-Neutral-Secondary, #64748b);margin-top:2px}._removeButton_1ed77_201{font-family:var(--font-medium);font-size:20px;color:var(--Content-Neutral-Secondary, #64748b);background:transparent;border:none;cursor:pointer;padding:4px;line-height:1;border-radius:4px;transition:all .2s ease;flex-shrink:0}._removeButton_1ed77_201:hover{color:var(--Content-Negative-Default-Active, #dc2626);background:var(--Fill-Negative-Default-Hover, #fee2e2)}._removeButton_1ed77_201:disabled{color:var(--content-disabled-default, #cbd5e1);cursor:not-allowed;background:transparent}._inverted_1ed77_134 ._selectedFileName_1ed77_186{color:#fff}._inverted_1ed77_134 ._selectedFileSize_1ed77_194,._inverted_1ed77_134 ._removeButton_1ed77_201{color:#ffffffb3}._inverted_1ed77_134 ._removeButton_1ed77_201:hover{color:var(--Content-Negative-Default-Active, #f87171);background:#ef44441a}._inverted_1ed77_134._disabled_1ed77_97 ._selectedFileName_1ed77_186,._inverted_1ed77_134._disabled_1ed77_97 ._selectedFileSize_1ed77_194,._inverted_1ed77_134._disabled_1ed77_97 ._removeButton_1ed77_201{color:var(--content-disabled-default, #4f88d9)}._icon_1ed77_52{display:flex;align-items:center;justify-content:center}._icon_1ed77_52 svg{width:32px;height:32px}._textContent_1ed77_261{text-align:center;display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:center;height:100%}._dragText_1ed77_271{color:var(--Content-Brand-Default-Active, #2054a5)}._browseText_1ed77_275{font-family:var(--font-medium);font-size:14px;color:var(--Fill-Brand-Default-Active, #2054a5);text-decoration:underline}._disabled_1ed77_97 ._dragText_1ed77_271,._disabled_1ed77_97 ._browseText_1ed77_275{color:var(--content-disabled-default, #cbd5e1)}._inverted_1ed77_134 ._dragText_1ed77_271{color:#fffc}._inverted_1ed77_134 ._browseText_1ed77_275{color:#fff}._inverted_1ed77_134._disabled_1ed77_97 ._dragText_1ed77_271,._inverted_1ed77_134._disabled_1ed77_97 ._browseText_1ed77_275{color:var(--content-disabled-default, #4f88d9)}._inverted_1ed77_134 ._variant_document_1ed77_88 ._icon_1ed77_52,._inverted_1ed77_134 ._variant_add_1ed77_92 ._icon_1ed77_52{color:#fff}._inverted_1ed77_134._disabled_1ed77_97 ._icon_1ed77_52{color:var(--content-disabled-default, #4f88d9)}._hiddenInput_1ed77_312{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}._selectedFilesContainer_1ed77_325{margin-top:12px;padding:12px;border-radius:8px;background:var(--Fill-Neutral-Default-Default, #f8fafc);border:1px solid var(--Stroke-Neutral-Primary, #e2e8f0)}._selectedFilesHeader_1ed77_333{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}._selectedFilesText_1ed77_340{font-family:var(--font-medium);font-size:13px;color:var(--Content-Neutral-Default-Active, #475569)}._clearButton_1ed77_346{font-family:var(--font-medium);font-size:12px;color:var(--Fill-Brand-Default-Active, #2054a5);background:transparent;border:none;cursor:pointer;text-decoration:underline;padding:0}._clearButton_1ed77_346:hover{color:var(--Fill-Brand-Default-Hover, #1e40af)}._clearButton_1ed77_346:disabled{color:var(--content-disabled-default, #cbd5e1);cursor:not-allowed;text-decoration:none}._filesList_1ed77_367{display:flex;flex-direction:column;gap:4px}._fileItem_1ed77_373{display:flex;justify-content:space-between;align-items:center;padding:4px 0;border-bottom:1px solid var(--Stroke-Neutral-Secondary, #e2e8f0)}._fileItem_1ed77_373:last-child{border-bottom:none}._fileName_1ed77_385{font-family:var(--font-regular);font-size:12px;color:var(--Content-Neutral-Default-Active, #475569);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:8px}._fileSize_1ed77_396{font-family:var(--font-regular);font-size:11px;color:var(--Content-Neutral-Secondary, #64748b);flex-shrink:0}._inverted_1ed77_134 ._selectedFilesContainer_1ed77_325{background:#ffffff1a;border-color:var(--Stroke-Neutral-Secondary, #c9e1f6)}._inverted_1ed77_134 ._selectedFilesText_1ed77_340,._inverted_1ed77_134 ._clearButton_1ed77_346{color:#fff}._inverted_1ed77_134 ._clearButton_1ed77_346:hover{color:#fffc}._inverted_1ed77_134 ._clearButton_1ed77_346:disabled{color:var(--content-disabled-default, #4f88d9)}._inverted_1ed77_134 ._fileItem_1ed77_373{border-color:#fff3}._inverted_1ed77_134 ._fileName_1ed77_385{color:#ffffffe6}._inverted_1ed77_134 ._fileSize_1ed77_396{color:#ffffffb3}._actions_1ed77_437{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:12px}._bigZIndex_1ed77_445{z-index:1000}._cancelIconWrapper_1ed77_449{background:var(--Content-Negative-Default-Active, #dc2626);height:35px;width:35px;border-radius:1000px;position:absolute;top:18px;left:50%;transform:translate(-50%);z-index:200;display:flex;align-items:center;justify-content:center;animation:_fadeInSlideDown_1ed77_1 .4s ease}._selectedFileInfo_1ed77_465{display:flex;flex-direction:column;text-align:center;position:absolute;top:65px;left:50%;transform:translate(-50%);z-index:200;width:90%;opacity:0;animation:_fadeInSlideUp_1ed77_1 .3s ease forwards}._successIconWrapper_1ed77_479{background:var(--Content-Positive-Active, #65a30d);height:35px;width:35px;border-radius:1000px;position:absolute;top:18px;left:50%;transform:translate(-50%);z-index:200;display:flex;align-items:center;justify-content:center;animation:_fadeInSlideDown_1ed77_1 .4s ease}._loadingIconWrapper_1ed77_495{background:var(--Content-Brand-Default-Active, #2054a5);height:35px;width:35px;border-radius:1000px;position:absolute;top:18px;left:50%;transform:translate(-50%);z-index:200;display:flex;align-items:center;justify-content:center;animation:_fadeInSlideDown_1ed77_1 .4s ease}._withoutError_1ed77_182 ._selectedFileInfo_1ed77_465{position:static;transform:none;opacity:0;animation:_fadeIn_1ed77_1 .3s ease forwards}._withSuccess_1ed77_519 ._selectedFileInfo_1ed77_465,._withLoading_1ed77_533 ._selectedFileInfo_1ed77_465{display:flex;flex-direction:column;text-align:center;position:absolute;top:65px;left:50%;transform:translate(-50%);z-index:200;width:90%;opacity:0;animation:_fadeInSlideUp_1ed77_1 .3s ease forwards}._errorText_1ed77_547{position:absolute;top:89px;left:50%;transform:translate(-50%);z-index:200;width:90%;text-align:center;font-family:var(--font-medium);font-size:12px;color:var(--Content-Negative-Default-Active, #dc2626);margin:0;padding:0;animation:_fadeInSlideUp_1ed77_1 .4s ease}._successText_1ed77_563{position:absolute;top:89px;left:50%;transform:translate(-50%);z-index:200;width:90%;text-align:center;font-family:var(--font-medium);font-size:12px;color:var(--Content-Positive-Default-Active, #16a34a);margin:0;padding:0;animation:_fadeInSlideUp_1ed77_1 .4s ease}@keyframes _fadeInSlideDown_1ed77_1{0%{opacity:0;transform:translate(-50%) translateY(-10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}@keyframes _fadeInSlideUp_1ed77_1{0%{opacity:0;transform:translate(-50%) translateY(10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}@keyframes _fadeInSlideUpCentered_1ed77_1{0%{opacity:0;transform:translate(-50%) translateY(10px);left:50%}to{opacity:1;transform:translate(-50%) translateY(0);left:50%}}@keyframes _fadeIn_1ed77_1{0%{opacity:0}to{opacity:1}}._inlineFileContainer_1ed77_625{display:flex;align-items:center;gap:12px;width:100%;padding:0;animation:_fadeIn_1ed77_1 .3s ease forwards}._inlineFileIcon_1ed77_634{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--Fill-Brand-Default-Active, #2054a5)}._inlineFileIcon_1ed77_634._error_1ed77_108{background:var(--Content-Negative-Default-Active, #dc2626)}._inlineFileIcon_1ed77_634._success_1ed77_117{background:var(--Content-Positive-Active, #65a30d)}._inlineFileIcon_1ed77_634._loading_1ed77_125{background:var(--Content-Brand-Default-Active, #2054a5)}._inlineFileIcon_1ed77_634._default_1ed77_657{background:var(--Fill-Brand-Default-Active, #2054a5)}._inlineFileInfo_1ed77_661{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}._inlineFileName_1ed77_669{font-family:var(--font-medium);font-size:14px;color:var(--Content-Neutral-Default-Active, #475569);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._inlineErrorText_1ed77_678{font-family:var(--font-regular);font-size:12px;color:var(--Content-Negative-Default-Active, #dc2626)}._inlineSuccessText_1ed77_684{font-family:var(--font-regular);font-size:12px;color:var(--Content-Positive-Default-Active, #16a34a)}._inlineFileActions_1ed77_690{display:flex;align-items:center;gap:8px;flex-shrink:0}._inlineActionIcon_1ed77_697{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;cursor:pointer;transition:background-color .2s ease}._inlineActionIcon_1ed77_697:hover{background:var(--Fill-Neutral-Secondary, #f1f5f9)}@media (max-width: 439px){._actions_1ed77_437{flex-direction:column}}
|
|
@@ -1,191 +1,193 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Button as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { Spinner as
|
|
6
|
-
import '../../assets/FileUpload.css';const
|
|
7
|
-
inputContainer:
|
|
8
|
-
fullWidth:
|
|
9
|
-
label:
|
|
10
|
-
label_large:
|
|
11
|
-
label_disabled:
|
|
12
|
-
label_inverted:
|
|
13
|
-
label_inverted_disabled:
|
|
1
|
+
import { jsx as t, jsxs as r, Fragment as W } from "react/jsx-runtime";
|
|
2
|
+
import { useState as I, useRef as G, useEffect as L } from "react";
|
|
3
|
+
import { Button as x } from "../Button/Button.js";
|
|
4
|
+
import { Icon as p } from "../../icons/Icon.js";
|
|
5
|
+
import { Spinner as J } from "../Spinner/Spinner.js";
|
|
6
|
+
import '../../assets/FileUpload.css';const K = "_inputContainer_1ed77_1", Q = "_fullWidth_1ed77_9", X = "_label_1ed77_13", Y = "_label_large_1ed77_21", ee = "_label_disabled_1ed77_26", ne = "_label_inverted_1ed77_30", te = "_label_inverted_disabled_1ed77_34", ie = "_fileUploadContainer_1ed77_38", le = "_iconContainerLeft_1ed77_52", oe = "_iconContainerRight_1ed77_60", se = "_dragOver_1ed77_72", ae = "_variant_document_1ed77_88", ce = "_icon_1ed77_52", de = "_variant_add_1ed77_92", re = "_disabled_1ed77_97", _e = "_error_1ed77_108", fe = "_success_1ed77_117", ue = "_loading_1ed77_125", he = "_inverted_1ed77_134", pe = "_uploadContent_1ed77_160", me = "_selectedFileContent_1ed77_172", ge = "_withoutError_1ed77_182", Ce = "_selectedFileName_1ed77_186", Fe = "_selectedFileSize_1ed77_194", ve = "_removeButton_1ed77_201", Ie = "_textContent_1ed77_261", xe = "_dragText_1ed77_271", be = "_browseText_1ed77_275", Ne = "_hiddenInput_1ed77_312", we = "_selectedFilesContainer_1ed77_325", De = "_selectedFilesHeader_1ed77_333", Ee = "_selectedFilesText_1ed77_340", Te = "_clearButton_1ed77_346", We = "_filesList_1ed77_367", Le = "_fileItem_1ed77_373", Se = "_fileName_1ed77_385", Ue = "_fileSize_1ed77_396", Be = "_actions_1ed77_437", $e = "_bigZIndex_1ed77_445", ke = "_cancelIconWrapper_1ed77_449", ze = "_fadeInSlideDown_1ed77_1", Oe = "_selectedFileInfo_1ed77_465", Re = "_fadeInSlideUp_1ed77_1", He = "_successIconWrapper_1ed77_479", je = "_loadingIconWrapper_1ed77_495", Ze = "_fadeIn_1ed77_1", Me = "_withSuccess_1ed77_519", Ve = "_withLoading_1ed77_533", Pe = "_errorText_1ed77_547", qe = "_successText_1ed77_563", ye = "_inlineFileContainer_1ed77_625", Ae = "_inlineFileIcon_1ed77_634", Ge = "_inlineFileInfo_1ed77_661", Je = "_inlineFileName_1ed77_669", Ke = "_inlineErrorText_1ed77_678", Qe = "_inlineSuccessText_1ed77_684", Xe = "_inlineFileActions_1ed77_690", Ye = "_inlineActionIcon_1ed77_697", en = "_fadeInSlideUpCentered_1ed77_1", e = {
|
|
7
|
+
inputContainer: K,
|
|
8
|
+
fullWidth: Q,
|
|
9
|
+
label: X,
|
|
10
|
+
label_large: Y,
|
|
11
|
+
label_disabled: ee,
|
|
12
|
+
label_inverted: ne,
|
|
13
|
+
label_inverted_disabled: te,
|
|
14
14
|
fileUploadContainer: ie,
|
|
15
|
-
iconContainerLeft:
|
|
15
|
+
iconContainerLeft: le,
|
|
16
16
|
iconContainerRight: oe,
|
|
17
|
-
dragOver:
|
|
18
|
-
variant_document:
|
|
19
|
-
icon:
|
|
20
|
-
variant_add:
|
|
17
|
+
dragOver: se,
|
|
18
|
+
variant_document: ae,
|
|
19
|
+
icon: ce,
|
|
20
|
+
variant_add: de,
|
|
21
21
|
disabled: re,
|
|
22
22
|
error: _e,
|
|
23
|
-
success:
|
|
24
|
-
loading:
|
|
25
|
-
inverted:
|
|
26
|
-
uploadContent:
|
|
27
|
-
selectedFileContent:
|
|
28
|
-
withoutError:
|
|
29
|
-
selectedFileName:
|
|
30
|
-
selectedFileSize:
|
|
31
|
-
removeButton:
|
|
32
|
-
textContent:
|
|
33
|
-
dragText:
|
|
34
|
-
browseText:
|
|
35
|
-
hiddenInput:
|
|
36
|
-
selectedFilesContainer:
|
|
37
|
-
selectedFilesHeader:
|
|
38
|
-
selectedFilesText:
|
|
39
|
-
clearButton:
|
|
40
|
-
filesList:
|
|
41
|
-
fileItem:
|
|
42
|
-
fileName:
|
|
43
|
-
fileSize:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
23
|
+
success: fe,
|
|
24
|
+
loading: ue,
|
|
25
|
+
inverted: he,
|
|
26
|
+
uploadContent: pe,
|
|
27
|
+
selectedFileContent: me,
|
|
28
|
+
withoutError: ge,
|
|
29
|
+
selectedFileName: Ce,
|
|
30
|
+
selectedFileSize: Fe,
|
|
31
|
+
removeButton: ve,
|
|
32
|
+
textContent: Ie,
|
|
33
|
+
dragText: xe,
|
|
34
|
+
browseText: be,
|
|
35
|
+
hiddenInput: Ne,
|
|
36
|
+
selectedFilesContainer: we,
|
|
37
|
+
selectedFilesHeader: De,
|
|
38
|
+
selectedFilesText: Ee,
|
|
39
|
+
clearButton: Te,
|
|
40
|
+
filesList: We,
|
|
41
|
+
fileItem: Le,
|
|
42
|
+
fileName: Se,
|
|
43
|
+
fileSize: Ue,
|
|
44
|
+
actions: Be,
|
|
45
|
+
bigZIndex: $e,
|
|
46
|
+
cancelIconWrapper: ke,
|
|
47
|
+
fadeInSlideDown: ze,
|
|
48
|
+
selectedFileInfo: Oe,
|
|
49
|
+
fadeInSlideUp: Re,
|
|
50
|
+
successIconWrapper: He,
|
|
51
|
+
loadingIconWrapper: je,
|
|
52
|
+
fadeIn: Ze,
|
|
53
|
+
withSuccess: Me,
|
|
54
|
+
withLoading: Ve,
|
|
55
|
+
errorText: Pe,
|
|
56
|
+
successText: qe,
|
|
57
|
+
inlineFileContainer: ye,
|
|
58
|
+
inlineFileIcon: Ae,
|
|
59
|
+
default: "_default_1ed77_657",
|
|
60
|
+
inlineFileInfo: Ge,
|
|
61
|
+
inlineFileName: Je,
|
|
62
|
+
inlineErrorText: Ke,
|
|
63
|
+
inlineSuccessText: Qe,
|
|
64
|
+
inlineFileActions: Xe,
|
|
65
|
+
inlineActionIcon: Ye,
|
|
66
|
+
fadeInSlideUpCentered: en
|
|
67
|
+
}, cn = ({
|
|
68
|
+
variant: S = "document",
|
|
69
|
+
helperText: U,
|
|
70
|
+
error: l,
|
|
71
|
+
success: a,
|
|
72
|
+
loading: o = !1,
|
|
73
|
+
disabled: c = !1,
|
|
74
|
+
defaultFile: b = null,
|
|
75
|
+
inverted: B = !1,
|
|
76
|
+
dragText: $,
|
|
77
|
+
browseText: k = "Seleccionar archivo",
|
|
77
78
|
allowedTypes: _,
|
|
78
|
-
inspectFileFunction:
|
|
79
|
+
inspectFileFunction: z = () => {
|
|
79
80
|
console.warn(
|
|
80
81
|
"No hay función asignada para ver el archivo. Hay que pasarla al componente como prop inspectFileFunction."
|
|
81
82
|
);
|
|
82
83
|
},
|
|
83
|
-
onInvalidTypeAction:
|
|
84
|
-
maxFileSize:
|
|
85
|
-
onInvalidSizeAction:
|
|
86
|
-
onFileSelect:
|
|
87
|
-
fullWidth:
|
|
88
|
-
style:
|
|
84
|
+
onInvalidTypeAction: m,
|
|
85
|
+
maxFileSize: N,
|
|
86
|
+
onInvalidSizeAction: g,
|
|
87
|
+
onFileSelect: f,
|
|
88
|
+
fullWidth: w = !1,
|
|
89
|
+
style: O
|
|
89
90
|
}) => {
|
|
90
|
-
const [R,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}, [
|
|
94
|
-
if (!
|
|
91
|
+
const [R, C] = I(!1), [i, F] = I(null), [D, E] = I(!1), h = G(null);
|
|
92
|
+
L(() => {
|
|
93
|
+
F(b ?? null);
|
|
94
|
+
}, [b]), L(() => {
|
|
95
|
+
if (!i) return;
|
|
95
96
|
const n = [];
|
|
96
|
-
|
|
97
|
+
l && n.push("error"), a && n.push("success"), o && n.push("loading"), n.length > 1 && console.warn(
|
|
97
98
|
`⚠️ FileUpload: Múltiples estados detectados (${n.join(", ")}). Solo un estado debe estar activo a la vez.`
|
|
98
99
|
);
|
|
99
|
-
}, [
|
|
100
|
-
const H =
|
|
101
|
-
n.preventDefault(),
|
|
100
|
+
}, [l, a, o, i]);
|
|
101
|
+
const H = U, j = (n) => {
|
|
102
|
+
n.preventDefault(), c || C(!0);
|
|
103
|
+
}, Z = (n) => {
|
|
104
|
+
n.preventDefault(), C(!1);
|
|
102
105
|
}, M = (n) => {
|
|
103
|
-
n.preventDefault(), m(!1);
|
|
104
|
-
}, V = (n) => {
|
|
105
106
|
n.preventDefault();
|
|
106
|
-
},
|
|
107
|
-
if (n.preventDefault(),
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
},
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
},
|
|
107
|
+
}, V = (n) => {
|
|
108
|
+
if (n.preventDefault(), C(!1), c) return;
|
|
109
|
+
const d = n.dataTransfer.files;
|
|
110
|
+
T(d);
|
|
111
|
+
}, P = (n) => {
|
|
112
|
+
const d = n.target.files;
|
|
113
|
+
T(d);
|
|
114
|
+
}, q = () => {
|
|
115
|
+
F(null), h.current && (h.current.value = ""), f == null || f(null);
|
|
116
|
+
}, T = (n) => {
|
|
114
117
|
if (!n) return;
|
|
115
118
|
if (_ && _.length > 0)
|
|
116
|
-
for (let
|
|
117
|
-
const
|
|
119
|
+
for (let s = 0; s < n.length; s++) {
|
|
120
|
+
const u = n[s];
|
|
118
121
|
if (!_.some(
|
|
119
|
-
(
|
|
122
|
+
(v) => v.startsWith(".") ? u.name.toLowerCase().endsWith(v.toLowerCase()) : u.type === v
|
|
120
123
|
)) {
|
|
121
|
-
|
|
124
|
+
m == null || m(), console.warn(`File ${u.name} is not an allowed type`);
|
|
122
125
|
return;
|
|
123
126
|
}
|
|
124
127
|
}
|
|
125
|
-
if (
|
|
126
|
-
for (let
|
|
127
|
-
const
|
|
128
|
-
if (
|
|
129
|
-
|
|
128
|
+
if (N)
|
|
129
|
+
for (let s = 0; s < n.length; s++) {
|
|
130
|
+
const u = n[s];
|
|
131
|
+
if (u.size > N) {
|
|
132
|
+
g == null || g(), console.warn(`File ${u.name} exceeds maximum size`);
|
|
130
133
|
return;
|
|
131
134
|
}
|
|
132
135
|
}
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
const
|
|
137
|
-
return
|
|
136
|
+
const d = n ? n[0] : null;
|
|
137
|
+
F(d), f == null || f(
|
|
138
|
+
d ? (() => {
|
|
139
|
+
const s = new DataTransfer();
|
|
140
|
+
return s.items.add(d), s.files;
|
|
138
141
|
})() : null
|
|
139
142
|
);
|
|
140
|
-
},
|
|
141
|
-
!
|
|
142
|
-
},
|
|
143
|
+
}, y = () => {
|
|
144
|
+
!c && h.current && h.current.click();
|
|
145
|
+
}, A = [
|
|
143
146
|
e.fileUploadContainer,
|
|
144
|
-
|
|
145
|
-
e[`variant_${
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
w && e.fullWidth,
|
|
148
|
+
e[`variant_${S}`],
|
|
149
|
+
i && l ? e.error : "",
|
|
150
|
+
i && !l && o ? e.loading : "",
|
|
151
|
+
i && !l && !o && a ? e.success : "",
|
|
152
|
+
c ? e.disabled : "",
|
|
153
|
+
B ? e.inverted : "",
|
|
151
154
|
R ? e.dragOver : ""
|
|
152
155
|
].filter(Boolean).join(" ");
|
|
153
|
-
return /* @__PURE__ */
|
|
156
|
+
return /* @__PURE__ */ t(
|
|
154
157
|
"div",
|
|
155
158
|
{
|
|
156
|
-
className: `${e.inputContainer} ${
|
|
157
|
-
children: /* @__PURE__ */
|
|
159
|
+
className: `${e.inputContainer} ${w ? e.fullWidth : ""}`,
|
|
160
|
+
children: /* @__PURE__ */ r(
|
|
158
161
|
"div",
|
|
159
162
|
{
|
|
160
|
-
className:
|
|
163
|
+
className: A,
|
|
161
164
|
onDragEnter: j,
|
|
162
|
-
onDragLeave:
|
|
163
|
-
onDragOver:
|
|
164
|
-
onDrop:
|
|
165
|
-
|
|
166
|
-
style: { cursor: a ? "not-allowed" : "pointer", ...z },
|
|
165
|
+
onDragLeave: Z,
|
|
166
|
+
onDragOver: M,
|
|
167
|
+
onDrop: V,
|
|
168
|
+
style: { cursor: c ? "not-allowed" : "pointer", ...O },
|
|
167
169
|
onMouseEnter: () => {
|
|
168
|
-
|
|
170
|
+
E(!0);
|
|
169
171
|
},
|
|
170
172
|
onMouseLeave: () => {
|
|
171
|
-
|
|
173
|
+
E(!1);
|
|
172
174
|
},
|
|
173
175
|
children: [
|
|
174
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ t(
|
|
175
177
|
"input",
|
|
176
178
|
{
|
|
177
|
-
ref:
|
|
179
|
+
ref: h,
|
|
178
180
|
type: "file",
|
|
179
181
|
className: e.hiddenInput,
|
|
180
|
-
onChange:
|
|
181
|
-
disabled:
|
|
182
|
+
onChange: P,
|
|
183
|
+
disabled: c,
|
|
182
184
|
accept: _ == null ? void 0 : _.join(",")
|
|
183
185
|
}
|
|
184
186
|
),
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
/* @__PURE__ */ r("div", { className: e.uploadContent, children: [
|
|
188
|
+
i && l && /* @__PURE__ */ t("div", { className: e.cancelIconWrapper, children: /* @__PURE__ */ t(p, { name: "CancelIcon", fill: "white", height: 30, width: 30 }) }),
|
|
189
|
+
i && !l && o && /* @__PURE__ */ t("div", { className: e.loadingIconWrapper, children: /* @__PURE__ */ t(
|
|
190
|
+
J,
|
|
189
191
|
{
|
|
190
192
|
size: 10,
|
|
191
193
|
color: "primary",
|
|
@@ -194,70 +196,89 @@ import '../../assets/FileUpload.css';const J = "_inputContainer_ibkco_1", K = "_
|
|
|
194
196
|
thickness: 3
|
|
195
197
|
}
|
|
196
198
|
) }),
|
|
197
|
-
|
|
198
|
-
|
|
199
|
+
i && !l && !o && a && /* @__PURE__ */ t("div", { className: e.successIconWrapper, children: /* @__PURE__ */ t(p, { name: "CheckIcon", fill: "white", height: 30, width: 30 }) }),
|
|
200
|
+
i ? (
|
|
199
201
|
// Default layout - full vertical layout
|
|
200
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ r(
|
|
201
203
|
"div",
|
|
202
204
|
{
|
|
203
|
-
className: `${e.selectedFileContent} ${
|
|
205
|
+
className: `${e.selectedFileContent} ${i && l ? e.withError : i && o ? e.withLoading : i && a ? e.withSuccess : e.withoutError}`,
|
|
204
206
|
children: [
|
|
205
|
-
/* @__PURE__ */
|
|
206
|
-
|
|
207
|
-
|
|
207
|
+
/* @__PURE__ */ t("div", { className: e.selectedFileInfo, children: /* @__PURE__ */ r("span", { className: `bodyMedium ${e.selectedFileName}`, children: [
|
|
208
|
+
o && "Subiendo ",
|
|
209
|
+
i.name
|
|
208
210
|
] }) }),
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
n
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
211
|
+
i && l ? /* @__PURE__ */ t("p", { className: e.errorText, children: l }) : i && !o && a ? /* @__PURE__ */ t("p", { className: e.successText, children: a }) : null,
|
|
212
|
+
i && !l && !o && !a && /* @__PURE__ */ r("div", { className: e.actions, children: [
|
|
213
|
+
/* @__PURE__ */ t(
|
|
214
|
+
x,
|
|
215
|
+
{
|
|
216
|
+
className: e.bigZIndex,
|
|
217
|
+
icon: {
|
|
218
|
+
name: "Visibility",
|
|
219
|
+
position: "before"
|
|
220
|
+
},
|
|
221
|
+
onClick: (n) => {
|
|
222
|
+
n.stopPropagation(), z();
|
|
223
|
+
},
|
|
224
|
+
size: "small",
|
|
225
|
+
children: "Ver archivo"
|
|
226
|
+
}
|
|
227
|
+
),
|
|
228
|
+
/* @__PURE__ */ t(
|
|
229
|
+
x,
|
|
230
|
+
{
|
|
231
|
+
className: e.bigZIndex,
|
|
232
|
+
icon: {
|
|
233
|
+
name: "Delete",
|
|
234
|
+
position: "before"
|
|
235
|
+
},
|
|
236
|
+
onClick: (n) => {
|
|
237
|
+
n.stopPropagation(), q();
|
|
238
|
+
},
|
|
239
|
+
size: "small",
|
|
240
|
+
variant: "outline",
|
|
241
|
+
children: "Eliminar"
|
|
242
|
+
}
|
|
243
|
+
)
|
|
244
|
+
] })
|
|
225
245
|
]
|
|
226
246
|
}
|
|
227
247
|
)
|
|
228
|
-
) : /* @__PURE__ */
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
-
|
|
248
|
+
) : /* @__PURE__ */ t(W, { children: /* @__PURE__ */ r("div", { className: e.textContent, children: [
|
|
249
|
+
/* @__PURE__ */ t("span", { className: `bodyRegular ${e.dragText}`, children: $ || H }),
|
|
250
|
+
/* @__PURE__ */ t(
|
|
251
|
+
x,
|
|
232
252
|
{
|
|
233
253
|
size: "small",
|
|
234
254
|
icon: {
|
|
235
255
|
name: "DownloadIcon",
|
|
236
256
|
position: "before"
|
|
237
257
|
},
|
|
238
|
-
disabled:
|
|
239
|
-
|
|
258
|
+
disabled: c,
|
|
259
|
+
onClick: y,
|
|
260
|
+
children: k
|
|
240
261
|
}
|
|
241
262
|
)
|
|
242
263
|
] }) })
|
|
243
264
|
] }),
|
|
244
|
-
/* @__PURE__ */
|
|
245
|
-
/* @__PURE__ */
|
|
246
|
-
|
|
265
|
+
/* @__PURE__ */ r(W, { children: [
|
|
266
|
+
/* @__PURE__ */ t("div", { className: e.iconContainerLeft, children: /* @__PURE__ */ t(
|
|
267
|
+
p,
|
|
247
268
|
{
|
|
248
269
|
name: "Documentos",
|
|
249
270
|
height: 140,
|
|
250
271
|
width: 140,
|
|
251
|
-
fill:
|
|
272
|
+
fill: i && l ? "#FEF2F2" : D ? "#C4D5F1" : "#E0E9F8"
|
|
252
273
|
}
|
|
253
274
|
) }),
|
|
254
|
-
/* @__PURE__ */
|
|
255
|
-
|
|
275
|
+
/* @__PURE__ */ t("div", { className: e.iconContainerRight, children: /* @__PURE__ */ t(
|
|
276
|
+
p,
|
|
256
277
|
{
|
|
257
278
|
name: "Documentos",
|
|
258
279
|
height: 140,
|
|
259
280
|
width: 140,
|
|
260
|
-
fill:
|
|
281
|
+
fill: i && l ? "#FEF2F2" : D ? "#C4D5F1" : "#E0E9F8"
|
|
261
282
|
}
|
|
262
283
|
) })
|
|
263
284
|
] })
|
|
@@ -268,5 +289,5 @@ import '../../assets/FileUpload.css';const J = "_inputContainer_ibkco_1", K = "_
|
|
|
268
289
|
);
|
|
269
290
|
};
|
|
270
291
|
export {
|
|
271
|
-
|
|
292
|
+
cn as FileUpload
|
|
272
293
|
};
|
package/package.json
CHANGED