Compare commits

..

No commits in common. "b9411e9d67b1f78634e91f4a13a015e109c4f481" and "f4e8a8d5bfd11ee429e76ea55ff5d87344dde310" have entirely different histories.

8 changed files with 822 additions and 1520 deletions

View file

@ -1,5 +1,5 @@
{ {
"$schema": "node_modules/@biomejs/biome/configuration_schema.json", "$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
"extends": ["node_modules/p-comuns/Documentos/biome.json"], "extends": ["node_modules/p-comuns/Documentos/biome.json"],
"files": { "files": {
"ignore": [] "ignore": []

View file

@ -4,14 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.componentesAlerta = void 0; exports.componentesAlerta = void 0;
const p_estaticos_1 = require("p-estaticos"); const dist_1 = require("p-estaticos/dist");
const p_respostas_1 = require("p-respostas"); const p_respostas_1 = require("p-respostas");
const react_1 = __importDefault(require("react")); const react_1 = __importDefault(require("react"));
const autoClose = 5000; const autoClose = 5000;
const componentesAlerta = ({ mui_material: { Avatar, Typography }, react_toastify: { ToastContainer, Slide, toast }, }) => { const componentesAlerta = ({ mui_material: { Avatar, Typography }, react_toastify: { ToastContainer, Slide, toast }, }) => {
const AlertaContainer = () => (react_1.default.createElement(ToastContainer, { position: "bottom-left", autoClose: autoClose, hideProgressBar: false, newestOnTop: false, closeOnClick: true, rtl: false, pauseOnFocusLoss: true, draggable: true, pauseOnHover: true, theme: "light", transition: Slide })); const AlertaContainer = () => (react_1.default.createElement(ToastContainer, { position: "bottom-left", autoClose: autoClose, hideProgressBar: false, newestOnTop: false, closeOnClick: true, rtl: false, pauseOnFocusLoss: true, draggable: true, pauseOnHover: true, theme: "light", transition: Slide }));
const aguarde = () => toast.loading(() => react_1.default.createElement(Typography, { sx: { marginLeft: 4 } }, "\"Aguarde...\""), { const aguarde = () => toast.loading(() => react_1.default.createElement(Typography, { sx: { marginLeft: 4 } }, "\"Aguarde...\""), {
icon: () => (react_1.default.createElement(Avatar, { src: (0, p_estaticos_1.estaticos)("link-servidor").imagens["quero-quero.gif"], alt: "Carregando..." })), icon: () => (react_1.default.createElement(Avatar, { src: (0, dist_1.estaticos)("link-servidor").imagens["quero-quero.gif"], alt: "Carregando..." })),
}); });
const exibir = (res, id) => { const exibir = (res, id) => {
console.table(res); console.table(res);
@ -41,6 +41,7 @@ const componentesAlerta = ({ mui_material: { Avatar, Typography }, react_toastif
} }
}; };
class ClasseAlerta { class ClasseAlerta {
id;
aguarde() { aguarde() {
this.id = aguarde(); this.id = aguarde();
return this; return this;

View file

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/componentes/AlertasFront/index.tsx"],"names":[],"mappings":";;;;;;AACA,6CAAwC;AACxC,6CAAgE;AAChE,kDAA0B;AAI1B,MAAM,SAAS,GAAG,IAAI,CAAC;AAEhB,MAAM,iBAAiB,GAAG,CAAC,EAChC,YAAY,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EACpC,cAAc,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,EAAE,GAajD,EAAE,EAAE;IACH,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,CAC5B,8BAAC,cAAc,IACb,QAAQ,EAAC,aAAa,EACtB,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,KAAK,EACtB,WAAW,EAAE,KAAK,EAClB,YAAY,QACZ,GAAG,EAAE,KAAK,EACV,gBAAgB,QAChB,SAAS,QACT,YAAY,QACZ,KAAK,EAAC,OAAO,EACb,UAAU,EAAE,KAAK,GACjB,CACH,CAAC;IAEF,MAAM,OAAO,GAAG,GAAG,EAAE,CACnB,KAAK,CAAC,OAAO,CACX,GAAG,EAAE,CAAC,8BAAC,UAAU,IAAC,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,qBAA2B,EAClE;QACE,IAAI,EAAE,GAAG,EAAE,CAAC,CACV,8BAAC,MAAM,IACL,GAAG,EAAE,IAAA,uBAAS,EAAC,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AC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YAC5D,OAAO,GAAG,CAAC;QACb,CAAC;QAED,MAAM;YACJ,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACzB,CAAC;QAED,IAAI,CAAC,QAAgB;YACnB,IAAI,CAAC,MAAM,CAAC,4BAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC3C,OAAO,IAAI,CAAC;QACd,CAAC;QACD,SAAS,CAAC,IAAS;YACjB,MAAM,YAAY,GAAG,4BAAc,CAAC,IAAI,CACtC,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ;gBAC3B,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ;gBAC/B,CAAC,CAAC,IAAI,CAAC,OAAO;oBACZ,CAAC,CAAC,IAAI,CAAC,OAAO;oBACd,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI;wBACnB,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI;wBACrB,CAAC,CAAC,IAAI,CACb,CAAC;YAEF,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;YAE1B,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,CAAC,QAAgB;YACtB,IAAI,CAAC,MAAM,CAAC,4BAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC5C,OAAO,IAAI,CAAC;QACd,CAAC;KACF;IAED,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,IAAI,YAAY,EAAE,CAAC;IAExC,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,CAAC;AACrC,CAAC,CAAC;AAtIW,QAAA,iBAAiB,qBAsI5B"}

View file

@ -1,5 +1,5 @@
<!doctype html> <!doctype html>
<html lang="pt-BR"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> <link rel="icon" type="image/svg+xml" href="/vite.svg" />

View file

@ -1,31 +1,30 @@
{ {
"name": "p-designer-system", "name": "p-designer-system",
"private": true, "private": true,
"version": "0.23.0", "version": "0.6.0",
"type": "commonjs", "type": "commonjs",
"main": "dist/index.js", "main": "dist/index.js",
"module": "dist/index.js", "module": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "npm --no-git-tag-version version minor && rm -rf dist && cd src/componentes && tsc && cd ../..", "build": "npm --no-git-tag-version version minor && rm -R dist && cd src/componentes && tsc && cd ../..",
"biome": "npx @biomejs/biome check --write ./src", "biome": "npx @biomejs/biome check --apply ./src",
"at": "pnpm up -r p-*" "postinstall": "pnpm up p-*"
}, },
"dependencies": { "dependencies": {
"@biomejs/biome": "2.0.6", "@biomejs/biome": "1.7.3",
"@emotion/react": "11.11.4", "@emotion/react": "^11.11.4",
"@emotion/styled": "11.11.5", "@emotion/styled": "^11.11.5",
"@mui/material": "5.15.18", "@mui/material": "5.15.18",
"p-comuns": "git+https://git2.idz.one/publico/_comuns.git", "react-toastify": "^10.0.5",
"p-estaticos": "git+https://git2.idz.one/publico/_estaticos.git", "p-comuns": "git+http://leitura:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one:3000/git/multi-modulos-ambientais/_comuns.git#producao",
"p-respostas": "git+https://git2.idz.one/publico/_respostas.git", "p-respostas": "git+http://leitura:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one:3000/git/multi-modulos-ambientais/_respostas.git#producao",
"react": "18.2.0", "p-estaticos": "git+http://leitura:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one:3000/git/multi-modulos-ambientais/_estaticos.git#producao",
"react-dom": "18.2.0", "react": "^18.2.0",
"react-toastify": "10.0.6" "react-dom": "^18.2.0"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^24.0.14",
"@types/react": "^18.2.78", "@types/react": "^18.2.78",
"@types/react-dom": "^18.2.25", "@types/react-dom": "^18.2.25",
"@typescript-eslint/eslint-plugin": "^7.6.0", "@typescript-eslint/eslint-plugin": "^7.6.0",
@ -34,7 +33,7 @@
"eslint": "^8.57.0", "eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6", "eslint-plugin-react-refresh": "^0.4.6",
"typescript": "5.5.4", "typescript": "^5.4.5",
"vite": "^5.2.8" "vite": "^5.2.8"
} }
} }

2298
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,5 @@
import type * as mui_material from "@mui/material"; import type * as mui_material from "@mui/material";
import { estaticos } from "p-estaticos"; import { estaticos } from "p-estaticos/dist";
import { respostaComuns, type tipoResposta } from "p-respostas"; import { respostaComuns, type tipoResposta } from "p-respostas";
import React from "react"; import React from "react";
import type * as react_toastify from "react-toastify"; import type * as react_toastify from "react-toastify";

View file

@ -3,7 +3,7 @@
"outDir": "../../dist", "outDir": "../../dist",
"esModuleInterop": true, "esModuleInterop": true,
"noImplicitAny": true, "noImplicitAny": true,
"target": "ES2020", "target": "ESNext",
"jsx": "react", "jsx": "react",
"declaration": true, "declaration": true,
"declarationDir": "../../dist", "declarationDir": "../../dist",