@cnc-ti/layout-basic 8.1.2 → 8.1.4

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@cnc-ti/layout-basic",
3
- "version": "8.1.2",
3
+ "version": "8.1.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
9
- "build": "tsup src/index.ts --format esm,cjs --dts --external react react-dom --minify",
10
- "dev": "tsup src/index.ts --format esm,cjs --dts --external reacreact-dom --watch"
9
+ "build": "tsup src/index.ts --config tsup.config.ts",
10
+ "dev": "tsup src/index.ts --config tsup.config.ts --watch"
11
11
  },
12
12
  "keywords": [],
13
13
  "author": "",
package/postcss.config.js CHANGED
@@ -1,6 +1,6 @@
1
- module.exports = {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- }
1
+ module.exports = {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ }
@@ -1,65 +1,65 @@
1
- /** @type {import('tailwindcss').Config} */
2
- module.exports = {
3
- content: ["./src/**/*.{jsx,js,ts,tsx}"],
4
- theme: {
5
- extend: {
6
- colors: {
7
- primary: "#0130A4",
8
- "primary-100": "#004C99",
9
- "primary-500": "#032884",
10
- brand: {
11
- "gray-10": "#F5F5F5",
12
- "gray-20": "#E3E3E3",
13
- "gray-50": "#E2E8F0",
14
- "gray-100": "#D2D2D2",
15
- "gray-200": "#64748B",
16
- "gray-400": "#0130A4",
17
- "gray-500": "#032884",
18
- "gray-600": "#666666",
19
- "gray-700": "#8391B3",
20
- "blue-50": "#F7FAFF",
21
- "blue-60": "#e5edff",
22
- "blue-100": "#004C99",
23
- "blue-400": "#0130A4",
24
- "blue-500": "#032884",
25
- "blue-600": "#1f2c4d",
26
- "blue-900": "#191C49",
27
- "green-100": "#25CF60",
28
- "green-200": "#1BB952",
29
- "green-300": "#0F9E41",
30
- "gold-100": "#AD841F",
31
- "gold-400": "#977115",
32
- "gold-500": "#79590D",
33
- "gold-600": "#4E3906",
34
- "red-500": "#EF4444",
35
- "red-600": "#CF4242",
36
- },
37
- },
38
- boxShadow: {
39
- custom: "0px 2px 8px 0px rgba(99, 99, 99, 0.2)",
40
- },
41
- height: {
42
- "screen-minus-70": "calc(100vh - 70px)",
43
- },
44
- display: ["group-data-is-open"],
45
- },
46
- fontFamily: {
47
- sans: ["Montserrat", "sans-serif"],
48
- },
49
- keyframes: {
50
- slideDown: {
51
- from: { height: "0px" },
52
- to: { height: "var(--radix-accordion-content-height)" },
53
- },
54
- slideUp: {
55
- from: { height: "var(--radix-accordion-content-height)" },
56
- to: { height: "0px" },
57
- },
58
- },
59
- animation: {
60
- slideDown: "slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1)",
61
- slideUp: "slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1)",
62
- },
63
- },
64
- plugins: [],
65
- };
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ content: ["./src/**/*.{jsx,js,ts,tsx}"],
4
+ theme: {
5
+ extend: {
6
+ colors: {
7
+ primary: "#0130A4",
8
+ "primary-100": "#004C99",
9
+ "primary-500": "#032884",
10
+ brand: {
11
+ "gray-10": "#F5F5F5",
12
+ "gray-20": "#E3E3E3",
13
+ "gray-50": "#E2E8F0",
14
+ "gray-100": "#D2D2D2",
15
+ "gray-200": "#64748B",
16
+ "gray-400": "#0130A4",
17
+ "gray-500": "#032884",
18
+ "gray-600": "#666666",
19
+ "gray-700": "#8391B3",
20
+ "blue-50": "#F7FAFF",
21
+ "blue-60": "#e5edff",
22
+ "blue-100": "#004C99",
23
+ "blue-400": "#0130A4",
24
+ "blue-500": "#032884",
25
+ "blue-600": "#1f2c4d",
26
+ "blue-900": "#191C49",
27
+ "green-100": "#25CF60",
28
+ "green-200": "#1BB952",
29
+ "green-300": "#0F9E41",
30
+ "gold-100": "#AD841F",
31
+ "gold-400": "#977115",
32
+ "gold-500": "#79590D",
33
+ "gold-600": "#4E3906",
34
+ "red-500": "#EF4444",
35
+ "red-600": "#CF4242",
36
+ },
37
+ },
38
+ boxShadow: {
39
+ custom: "0px 2px 8px 0px rgba(99, 99, 99, 0.2)",
40
+ },
41
+ height: {
42
+ "screen-minus-70": "calc(100vh - 70px)",
43
+ },
44
+ display: ["group-data-is-open"],
45
+ },
46
+ fontFamily: {
47
+ sans: ["Montserrat", "sans-serif"],
48
+ },
49
+ keyframes: {
50
+ slideDown: {
51
+ from: { height: "0px" },
52
+ to: { height: "var(--radix-accordion-content-height)" },
53
+ },
54
+ slideUp: {
55
+ from: { height: "var(--radix-accordion-content-height)" },
56
+ to: { height: "0px" },
57
+ },
58
+ },
59
+ animation: {
60
+ slideDown: "slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1)",
61
+ slideUp: "slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1)",
62
+ },
63
+ },
64
+ plugins: [],
65
+ };
package/tsconfig.json CHANGED
@@ -1,22 +1,22 @@
1
- {
2
- "compilerOptions": {
3
- "composite": false,
4
- "declaration": true,
5
- "declarationMap": true,
6
- "esModuleInterop": true,
7
- "forceConsistentCasingInFileNames": true,
8
- "inlineSources": false,
9
- "isolatedModules": true,
10
- "moduleResolution": "node",
11
- "noUnusedLocals": false,
12
- "noUnusedParameters": false,
13
- "preserveWatchOutput": true,
14
- "skipLibCheck": true,
15
- "strict": true,
16
- "jsx": "react-jsx",
17
- "jsxImportSource": "react",
18
- "lib": ["dom", "ES2015"],
19
- "module": "ESNext",
20
- "target": "es6"
21
- },
22
- }
1
+ {
2
+ "compilerOptions": {
3
+ "composite": false,
4
+ "declaration": true,
5
+ "declarationMap": true,
6
+ "esModuleInterop": true,
7
+ "forceConsistentCasingInFileNames": true,
8
+ "inlineSources": false,
9
+ "isolatedModules": true,
10
+ "moduleResolution": "node",
11
+ "noUnusedLocals": false,
12
+ "noUnusedParameters": false,
13
+ "preserveWatchOutput": true,
14
+ "skipLibCheck": true,
15
+ "strict": true,
16
+ "jsx": "react-jsx",
17
+ "jsxImportSource": "react",
18
+ "lib": ["dom", "ES2015"],
19
+ "module": "ESNext",
20
+ "target": "ESNext"
21
+ }
22
+ }
package/tsup.config.ts CHANGED
@@ -1,11 +1,22 @@
1
- import { defineConfig } from 'tsup';
2
-
3
- export default defineConfig({
4
- entry: ['src/index.ts'], // Caminho para o seu arquivo de entrada
5
- external: ['react', 'react-dom'], // Marcar React como externo
6
- format: ['esm', 'cjs'], // Formatos de output (ESM e CommonJS)
7
- dts: true, // Gerar arquivos de tipagem .d.ts
8
- splitting: false, // Desativar divisão de código
9
- sourcemap: true, // Gerar sourcemap
10
- clean: true, // Limpar o diretório de build antes de reconstruir
11
- });
1
+ import { defineConfig } from "tsup";
2
+
3
+ export default defineConfig({
4
+ entry: ["src/index.ts"], // Caminho para o seu arquivo de entrada
5
+ external: ["react", "react-dom"], // Marcar React como externo
6
+ format: ["esm", "cjs"], // Formatos de output (ESM e CommonJS)
7
+ dts: true, // Gerar arquivos de tipagem .d.ts
8
+ splitting: false, // Desativar divisão de código
9
+ sourcemap: true, // Gerar sourcemap
10
+ clean: true, // Limpar o diretório de build antes de reconstruir
11
+ minify: true,
12
+ banner: {
13
+ js: `import * as React from 'react';
14
+ import * as ReactDOM from 'react-dom';
15
+
16
+ const require = (moduleName) => {
17
+ if (moduleName === 'react') return React;
18
+ if (moduleName === 'react-dom') return ReactDOM;
19
+ throw new Error(\`Módulo desconhecido: \${moduleName}\`);
20
+ };`,
21
+ },
22
+ });