pge-front-common 14.0.33 → 14.0.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/lib/components/Upload/index.d.ts +1 -4
- package/lib/components/Upload/index.type.d.ts +4 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.esm.js +4 -4
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +4 -4
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/lib/components/Footer/Footer.d.ts +0 -2
- package/lib/components/TooltipWithPortal/TooltipWithPortal.d.ts +0 -6
- package/lib/images/images/headerDividaAtivaLogoLight.svg +0 -4
- package/lib/images/images/headerPgeLogoDark.svg +0 -13
- package/lib/images/images/headerPgeLogoLight.svg +0 -109
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { UploadFileProps } from "./index.type";
|
|
3
|
-
export type FileUploadHandle = {
|
|
4
|
-
reset: () => void;
|
|
5
|
-
};
|
|
2
|
+
import { FileUploadHandle, UploadFileProps } from "./index.type";
|
|
6
3
|
export declare const FileUpload: React.ForwardRefExoticComponent<UploadFileProps & React.RefAttributes<FileUploadHandle>>;
|
package/lib/index.d.ts
CHANGED
|
@@ -76,11 +76,12 @@ interface UploadFileProps {
|
|
|
76
76
|
fileTypes: string[];
|
|
77
77
|
onFileSelect: (file: File | null) => void;
|
|
78
78
|
title?: string;
|
|
79
|
+
descricaoLabel?: string;
|
|
79
80
|
}
|
|
80
|
-
|
|
81
81
|
type FileUploadHandle = {
|
|
82
82
|
reset: () => void;
|
|
83
83
|
};
|
|
84
|
+
|
|
84
85
|
declare const FileUpload: React__default.ForwardRefExoticComponent<UploadFileProps & React__default.RefAttributes<FileUploadHandle>>;
|
|
85
86
|
|
|
86
87
|
interface TooltipProps$1 {
|
package/lib/index.esm.js
CHANGED
|
@@ -595,9 +595,9 @@ var styles$s = {"container":"styles-module__container___9pLua","label":"styles-m
|
|
|
595
595
|
styleInject(css_248z$v);
|
|
596
596
|
|
|
597
597
|
var FileUpload = forwardRef(function (_a, ref) {
|
|
598
|
-
var fileTypes = _a.fileTypes, onFileSelect = _a.onFileSelect, _b = _a.title, title = _b === void 0 ? "Upload de Arquivos:" : _b;
|
|
599
|
-
var
|
|
600
|
-
var
|
|
598
|
+
var fileTypes = _a.fileTypes, onFileSelect = _a.onFileSelect, _b = _a.title, title = _b === void 0 ? "Upload de Arquivos:" : _b, _c = _a.descricaoLabel, descricaoLabel = _c === void 0 ? "Escolher arquivo" : _c;
|
|
599
|
+
var _d = useState(null), file = _d[0], setFile = _d[1];
|
|
600
|
+
var _e = useState(""), error = _e[0], setError = _e[1];
|
|
601
601
|
var fileInputRef = useRef(null);
|
|
602
602
|
var handleFileChange = function (event) {
|
|
603
603
|
var _a, _b;
|
|
@@ -635,7 +635,7 @@ var FileUpload = forwardRef(function (_a, ref) {
|
|
|
635
635
|
React__default.createElement("div", { className: styles$s.inputContainer },
|
|
636
636
|
React__default.createElement("label", { className: styles$s.button },
|
|
637
637
|
React__default.createElement(IconUploadFile, null),
|
|
638
|
-
|
|
638
|
+
descricaoLabel,
|
|
639
639
|
React__default.createElement("input", { type: "file", ref: fileInputRef, className: styles$s.hiddenInput, onChange: handleFileChange, accept: fileTypes.join(",") })),
|
|
640
640
|
React__default.createElement("span", { className: styles$s.description }, file ? file.name : "Nenhum arquivo selecionado"))),
|
|
641
641
|
React__default.createElement("p", { className: error
|