@philipe1993/list-color 1.0.7 → 1.0.71
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/ListColor.d.ts +3 -0
- package/dist/ListColor.d.ts.map +1 -0
- package/dist/ListColor.js +18 -0
- package/dist/ListColor.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/package.json +1 -1
- package/services/ColorService.ts +2 -3
- package/src/index.js +4 -0
- package/src/index.ts +1 -0
- package/tsconfig.json +15 -11
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ListColor.d.ts","sourceRoot":"","sources":["../src/ListColor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AA4B1B,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAM5B,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ListColor = void 0;
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
5
|
+
var mobx_react_lite_1 = require("mobx-react-lite");
|
6
|
+
// BreadCrumb
|
7
|
+
var breadCrumb = [
|
8
|
+
{
|
9
|
+
title: (0, jsx_runtime_1.jsx)("a", { href: "/dashboard", children: "Dashboard" }),
|
10
|
+
},
|
11
|
+
{
|
12
|
+
title: (0, jsx_runtime_1.jsx)("p", { children: "Listagem de Cores" }),
|
13
|
+
},
|
14
|
+
];
|
15
|
+
exports.ListColor = (0, mobx_react_lite_1.observer)(function () {
|
16
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("p", { children: "TESTE" }) }));
|
17
|
+
});
|
18
|
+
//# sourceMappingURL=ListColor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ListColor.js","sourceRoot":"","sources":["../src/ListColor.tsx"],"names":[],"mappings":";;;;AAAA,mDAA2C;AAmB3C,aAAa;AACb,IAAM,UAAU,GAAG;IACf;QACI,KAAK,EAAE,8BAAG,IAAI,EAAC,YAAY,0BAAc;KAC5C;IACD;QACI,KAAK,EAAE,8DAAwB;KAClC;CACJ,CAAA;AAEY,QAAA,SAAS,GAAa,IAAA,0BAAQ,EAAC;IACxC,OAAO,CACH,2DACI,kDAAY,GACb,CACN,CAAC;AACN,CAAC,CAAC,CAAC"}
|
package/dist/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ListColor = void 0;
|
4
|
+
var ListColor_1 = require("./ListColor");
|
5
|
+
Object.defineProperty(exports, "ListColor", { enumerable: true, get: function () { return ListColor_1.ListColor; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yCAAwC;AAA/B,sGAAA,SAAS,OAAA"}
|
package/package.json
CHANGED
package/services/ColorService.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
|
2
2
|
import URLS from '../../shared/src/config/urls';
|
3
|
-
import { Color } from '../types/Color';
|
4
3
|
import { getAPIInstance } from "@philipe1993/shared";
|
5
4
|
|
6
5
|
|
@@ -16,7 +15,7 @@ class ColorService {
|
|
16
15
|
}
|
17
16
|
}
|
18
17
|
|
19
|
-
async createColor(color:
|
18
|
+
async createColor(color: any): Promise<any> {
|
20
19
|
try {
|
21
20
|
const response = await api.post(`${URLS.COLORS}`, color);
|
22
21
|
return response; // Retorna a resposta da API
|
@@ -25,7 +24,7 @@ class ColorService {
|
|
25
24
|
}
|
26
25
|
}
|
27
26
|
|
28
|
-
async editColor(color:
|
27
|
+
async editColor(color: any, uuid: string | undefined): Promise<any> {
|
29
28
|
try {
|
30
29
|
const response = await api.put(`${URLS.COLORS}/${uuid}`, color);
|
31
30
|
return response; // Retorna a resposta da API
|
package/src/index.js
CHANGED
package/src/index.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export { ListColor } from "./ListColor";
|
package/tsconfig.json
CHANGED
@@ -1,17 +1,21 @@
|
|
1
1
|
{
|
2
2
|
"compilerOptions": {
|
3
|
-
"target": "
|
4
|
-
"module": "
|
5
|
-
"jsx": "react",
|
6
|
-
"
|
7
|
-
"
|
8
|
-
"
|
9
|
-
"
|
3
|
+
"target": "ES5", // Compatibilidade ampla
|
4
|
+
"module": "CommonJS", // Módulos compatíveis com Node.js/NPM
|
5
|
+
"jsx": "react-jsx", // Processa arquivos JSX no formato moderno
|
6
|
+
"outDir": "./dist", // Diretório de saída
|
7
|
+
"rootDir": "./src", // Diretório de entrada
|
8
|
+
"declaration": true, // Gera arquivos .d.ts para os tipos
|
9
|
+
"declarationMap": true, // Gera mapas para os arquivos de tipos
|
10
|
+
"sourceMap": true, // Gera mapas para depuração
|
11
|
+
"esModuleInterop": true, // Compatibilidade com módulos ES
|
12
|
+
"skipLibCheck": true // Ignora verificações em dependências externas
|
10
13
|
},
|
11
14
|
"include": [
|
12
|
-
"src"
|
13
|
-
],
|
15
|
+
"src/**/*"
|
16
|
+
], // Inclui arquivos na pasta src
|
14
17
|
"exclude": [
|
15
|
-
"node_modules"
|
16
|
-
|
18
|
+
"node_modules",
|
19
|
+
"dist"
|
20
|
+
] // Exclui pastas desnecessárias
|
17
21
|
}
|