pge-front-common 14.0.35 → 14.0.36
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 +6 -6
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +6 -6
- 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
|
@@ -118,13 +118,13 @@ var InputBase = function (_a) {
|
|
|
118
118
|
};
|
|
119
119
|
|
|
120
120
|
var IconDownload = function (props) { return (React__default.createElement("svg", __assign({ width: "17", height: "17", viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
121
|
-
React__default.createElement("path", { d: "M8.6665 12.5L3.6665 7.5L5.0665 6.05L7.6665 8.65V0.5H9.6665V8.65L12.2665 6.05L13.6665 7.5L8.6665 12.5ZM2.6665 16.5C2.1165 16.5 1.64567 16.3042 1.254 15.9125C0.862337 15.5208 0.666504 15.05 0.666504 14.5V11.5H2.6665V14.5H14.6665V11.5H16.6665V14.5C16.6665 15.05 16.4707 15.5208 16.079 15.9125C15.6873 16.3042 15.2165 16.5 14.6665 16.5H2.6665Z", fill: "
|
|
121
|
+
React__default.createElement("path", { d: "M8.6665 12.5L3.6665 7.5L5.0665 6.05L7.6665 8.65V0.5H9.6665V8.65L12.2665 6.05L13.6665 7.5L8.6665 12.5ZM2.6665 16.5C2.1165 16.5 1.64567 16.3042 1.254 15.9125C0.862337 15.5208 0.666504 15.05 0.666504 14.5V11.5H2.6665V14.5H14.6665V11.5H16.6665V14.5C16.6665 15.05 16.4707 15.5208 16.079 15.9125C15.6873 16.3042 15.2165 16.5 14.6665 16.5H2.6665Z", fill: "currentColor" }))); };
|
|
122
122
|
|
|
123
123
|
var IconVisibility = function (props) { return (React__default.createElement("svg", __assign({ width: "23", height: "15", viewBox: "0 0 23 15", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
124
124
|
React__default.createElement("path", { d: "M11.6665 12C12.9165 12 13.979 11.5625 14.854 10.6875C15.729 9.8125 16.1665 8.75 16.1665 7.5C16.1665 6.25 15.729 5.1875 14.854 4.3125C13.979 3.4375 12.9165 3 11.6665 3C10.4165 3 9.354 3.4375 8.479 4.3125C7.604 5.1875 7.1665 6.25 7.1665 7.5C7.1665 8.75 7.604 9.8125 8.479 10.6875C9.354 11.5625 10.4165 12 11.6665 12ZM11.6665 10.2C10.9165 10.2 10.279 9.9375 9.754 9.4125C9.229 8.8875 8.9665 8.25 8.9665 7.5C8.9665 6.75 9.229 6.1125 9.754 5.5875C10.279 5.0625 10.9165 4.8 11.6665 4.8C12.4165 4.8 13.054 5.0625 13.579 5.5875C14.104 6.1125 14.3665 6.75 14.3665 7.5C14.3665 8.25 14.104 8.8875 13.579 9.4125C13.054 9.9375 12.4165 10.2 11.6665 10.2ZM11.6665 15C9.23317 15 7.0165 14.3208 5.0165 12.9625C3.0165 11.6042 1.5665 9.78333 0.666504 7.5C1.5665 5.21667 3.0165 3.39583 5.0165 2.0375C7.0165 0.679167 9.23317 0 11.6665 0C14.0998 0 16.3165 0.679167 18.3165 2.0375C20.3165 3.39583 21.7665 5.21667 22.6665 7.5C21.7665 9.78333 20.3165 11.6042 18.3165 12.9625C16.3165 14.3208 14.0998 15 11.6665 15ZM11.6665 13C13.5498 13 15.279 12.5042 16.854 11.5125C18.429 10.5208 19.6332 9.18333 20.4665 7.5C19.6332 5.81667 18.429 4.47917 16.854 3.4875C15.279 2.49583 13.5498 2 11.6665 2C9.78317 2 8.054 2.49583 6.479 3.4875C4.904 4.47917 3.69984 5.81667 2.8665 7.5C3.69984 9.18333 4.904 10.5208 6.479 11.5125C8.054 12.5042 9.78317 13 11.6665 13Z", fill: "#4A4A4B" }))); };
|
|
125
125
|
|
|
126
126
|
var IconEdit = function (props) { return (React__default.createElement("svg", __assign({ width: "19", height: "19", viewBox: "0 0 19 19", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
127
|
-
React__default.createElement("path", { d: "M2.6665 16.5H4.0915L13.8665 6.725L12.4415 5.3L2.6665 15.075V16.5ZM0.666504 18.5V14.25L13.8665 1.075C14.0665 0.891667 14.2873 0.75 14.529 0.65C14.7707 0.55 15.0248 0.5 15.2915 0.5C15.5582 0.5 15.8165 0.55 16.0665 0.65C16.3165 0.75 16.5332 0.9 16.7165 1.1L18.0915 2.5C18.2915 2.68333 18.4373 2.9 18.529 3.15C18.6207 3.4 18.6665 3.65 18.6665 3.9C18.6665 4.16667 18.6207 4.42083 18.529 4.6625C18.4373 4.90417 18.2915 5.125 18.0915 5.325L4.9165 18.5H0.666504ZM13.1415 6.025L12.4415 5.3L13.8665 6.725L13.1415 6.025Z", fill: "
|
|
127
|
+
React__default.createElement("path", { d: "M2.6665 16.5H4.0915L13.8665 6.725L12.4415 5.3L2.6665 15.075V16.5ZM0.666504 18.5V14.25L13.8665 1.075C14.0665 0.891667 14.2873 0.75 14.529 0.65C14.7707 0.55 15.0248 0.5 15.2915 0.5C15.5582 0.5 15.8165 0.55 16.0665 0.65C16.3165 0.75 16.5332 0.9 16.7165 1.1L18.0915 2.5C18.2915 2.68333 18.4373 2.9 18.529 3.15C18.6207 3.4 18.6665 3.65 18.6665 3.9C18.6665 4.16667 18.6207 4.42083 18.529 4.6625C18.4373 4.90417 18.2915 5.125 18.0915 5.325L4.9165 18.5H0.666504ZM13.1415 6.025L12.4415 5.3L13.8665 6.725L13.1415 6.025Z", fill: "currentColor" }))); };
|
|
128
128
|
|
|
129
129
|
var IconDelete$1 = function (props) { return (React__default.createElement("svg", __assign({ width: "17", height: "19", viewBox: "0 0 17 19", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
130
130
|
React__default.createElement("path", { d: "M3.6665 18.5C3.1165 18.5 2.64567 18.3042 2.254 17.9125C1.86234 17.5208 1.6665 17.05 1.6665 16.5V3.5H0.666504V1.5H5.6665V0.5H11.6665V1.5H16.6665V3.5H15.6665V16.5C15.6665 17.05 15.4707 17.5208 15.079 17.9125C14.6873 18.3042 14.2165 18.5 13.6665 18.5H3.6665ZM13.6665 3.5H3.6665V16.5H13.6665V3.5ZM5.6665 14.5H7.6665V5.5H5.6665V14.5ZM9.6665 14.5H11.6665V5.5H9.6665V14.5Z", fill: "currentColor" }))); };
|
|
@@ -601,9 +601,9 @@ var styles$s = {"container":"styles-module__container___9pLua","label":"styles-m
|
|
|
601
601
|
styleInject(css_248z$v);
|
|
602
602
|
|
|
603
603
|
var FileUpload = forwardRef(function (_a, ref) {
|
|
604
|
-
var fileTypes = _a.fileTypes, onFileSelect = _a.onFileSelect, _b = _a.title, title = _b === void 0 ? "Upload de Arquivos:" : _b;
|
|
605
|
-
var
|
|
606
|
-
var
|
|
604
|
+
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;
|
|
605
|
+
var _d = useState(null), file = _d[0], setFile = _d[1];
|
|
606
|
+
var _e = useState(""), error = _e[0], setError = _e[1];
|
|
607
607
|
var fileInputRef = useRef(null);
|
|
608
608
|
var handleFileChange = function (event) {
|
|
609
609
|
var _a, _b;
|
|
@@ -641,7 +641,7 @@ var FileUpload = forwardRef(function (_a, ref) {
|
|
|
641
641
|
React__default.createElement("div", { className: styles$s.inputContainer },
|
|
642
642
|
React__default.createElement("label", { className: styles$s.button },
|
|
643
643
|
React__default.createElement(IconUploadFile, null),
|
|
644
|
-
|
|
644
|
+
descricaoLabel,
|
|
645
645
|
React__default.createElement("input", { type: "file", ref: fileInputRef, className: styles$s.hiddenInput, onChange: handleFileChange, accept: fileTypes.join(",") })),
|
|
646
646
|
React__default.createElement("span", { className: styles$s.description }, file ? file.name : "Nenhum arquivo selecionado"))),
|
|
647
647
|
React__default.createElement("p", { className: error
|