upconta.frontend-utils 1.0.22 → 1.0.24

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.
@@ -1,4 +1,8 @@
1
- @tailwind base;
1
+ @layer tailwind-base, antd;
2
+
3
+ @layer tailwind-base {
4
+ @tailwind base;
5
+ }
2
6
  @tailwind components;
3
7
  @tailwind utilities;
4
8
 
package/Readme.md CHANGED
@@ -17,3 +17,53 @@ pnpm run build -w
17
17
  ```
18
18
 
19
19
  La aplicación en next debe utilizar los **archivos compilados**.
20
+
21
+ ## Dependencias
22
+
23
+ Las siguientes dependencias deben ser instaladas en los proyectos que utilicen esta librería
24
+
25
+ ```zsh
26
+ pnpm add antd -P
27
+ ```
28
+
29
+ # Características
30
+
31
+ ## Estilos de UpConta
32
+
33
+ Las siguientes son un conjunto de configuraciones para que los proyectos que utilicen esta librería puedan tener el estilo de UpConta.
34
+
35
+ Se debe agregar el `margin: 0` al body del proyecto:
36
+
37
+ ```tsx
38
+ import { Html, Head, Main, NextScript } from "next/document";
39
+
40
+ export default function Document() {
41
+ return (
42
+ <Html lang="en">
43
+ <Head />
44
+ <body style={{ margin: 0 }}>
45
+ <Main />
46
+ <NextScript />
47
+ </body>
48
+ </Html>
49
+ );
50
+ }
51
+
52
+ ```
53
+
54
+ El estilo principal de UpConta y las configuraciones para Ant Design se encuentran dentro del componente `TemaPrincipal` y debe utilizarse de la siguiente manera
55
+
56
+
57
+ ```tsx
58
+ // _app.tsx
59
+ import { TemaPrincipal } from "upconta.frontend-utils"
60
+
61
+ export default function App({ Component, pageProps }: AppProps) {
62
+ return (
63
+ <TemaPrincipal>
64
+ <Component {...pageProps} />;
65
+ <Button>Primary Button</Button>
66
+ </TemaPrincipal>
67
+ );
68
+ }
69
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "upconta.frontend-utils",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "",
5
5
  "main": ".dist/cjs/index.js",
6
6
  "module": ".dist/esm/index.js",
@@ -17,26 +17,26 @@
17
17
  "@rollup/plugin-terser": "^0.4.4",
18
18
  "@rollup/plugin-typescript": "^11.1.6",
19
19
  "@types/node": "22.10.2",
20
- "@types/react": "^18.3.17",
21
- "antd": "^5.22.5",
20
+ "@types/react": "^18.3.18",
21
+ "antd": "^5.22.6",
22
22
  "autoprefixer": "^10.4.20",
23
23
  "dayjs": "^1.11.13",
24
24
  "eslint": "^9.17.0",
25
- "eslint-plugin-react": "^7.37.2",
26
- "globals": "^15.13.0",
27
- "next": "^14.2.20",
25
+ "eslint-plugin-react": "^7.37.3",
26
+ "globals": "^15.14.0",
27
+ "next": "^14.2.22",
28
28
  "postcss": "^8.4.49",
29
29
  "rc-field-form": "^2.7.0",
30
30
  "react": "^18.3.1",
31
- "rollup": "^4.28.1",
31
+ "rollup": "^4.29.1",
32
32
  "rollup-plugin-copy": "^3.5.0",
33
33
  "rollup-plugin-peer-deps-external": "^2.2.4",
34
34
  "rollup-plugin-postcss": "^4.0.2",
35
- "swr": "^2.2.5",
36
- "tailwindcss": "^3.4.16",
35
+ "swr": "^2.3.0",
36
+ "tailwindcss": "^3.4.17",
37
37
  "tslib": "^2.8.1",
38
38
  "typescript": "^5.7.2",
39
- "typescript-eslint": "^8.18.1"
39
+ "typescript-eslint": "^8.18.2"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@ant-design/cssinjs": "^1.21.0",