upconta.frontend-utils 1.0.3 → 1.0.6

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.
@@ -0,0 +1,7 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+ .ant-table {
6
+ overflow-x: auto;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "upconta.frontend-utils",
3
- "version": "1.0.3",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": ".dist/cjs/index.js",
6
6
  "module": ".dist/esm/index.js",
@@ -25,6 +25,7 @@
25
25
  "rc-field-form": "^2.3.0",
26
26
  "react": "^18.3.1",
27
27
  "rollup": "^4.20.0",
28
+ "rollup-plugin-copy": "^3.5.0",
28
29
  "rollup-plugin-peer-deps-external": "^2.2.4",
29
30
  "rollup-plugin-postcss": "^4.0.2",
30
31
  "tailwindcss": "^3.4.9",
@@ -1,39 +0,0 @@
1
- import { Menu } from 'antd'
2
- import Link from 'next/link'
3
- import { ReactNode, FC } from 'react'
4
- import { LayoutBase, ContextoEmpresa, useContextoEmpresa } from '../'
5
-
6
- const Layout: FC<{ children: ReactNode }> = ({ children }) => {
7
- const { nombreEmpresa, nombreUsuario } = useContextoEmpresa()
8
-
9
- return (
10
- <LayoutBase
11
- sidebar={{
12
- title: { label: 'Upconta Frontend', href: '/' },
13
- menu: (
14
- <Menu
15
- theme="dark"
16
- mode="inline"
17
- items={[
18
- {
19
- label: <Link href="/sellers">Vendedores</Link>,
20
- key: 'vendedores',
21
- },
22
- ]}
23
- />
24
- ),
25
- }}
26
- navbar={{ title: nombreEmpresa, options: <>{nombreUsuario}</> }}
27
- >
28
- {children}
29
- </LayoutBase>
30
- )
31
- }
32
-
33
- const LayoutPrincipal: FC<{ children: ReactNode }> = ({ children }) => (
34
- <ContextoEmpresa>
35
- <Layout>{children}</Layout>
36
- </ContextoEmpresa>
37
- )
38
-
39
- export default LayoutPrincipal