react-ecosistema-unp 0.1.1 → 0.1.2

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 +1 @@
1
- export { MenuLateral } from './shared/components/MenuLateral';
1
+ export { VentanaLienzo } from './shared/components/VentanaLienzo';
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface VentanaLienzoProps {
3
+ children?: React.ReactElement | React.ReactElement[];
4
+ }
5
+ declare const VentanaLienzo: React.FC<VentanaLienzoProps>;
6
+ export { VentanaLienzo };
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MenuLateral as a } from "./shared/components/MenuLateral.js";
1
+ import { VentanaLienzo as o } from "./shared/components/VentanaLienzo.js";
2
2
  export {
3
- a as MenuLateral
3
+ o as VentanaLienzo
4
4
  };
@@ -0,0 +1,15 @@
1
+ import { jsxs as r, jsx as n } from "react/jsx-runtime";
2
+ import t from "react";
3
+ import { MenuLateral as m } from "./MenuLateral.js";
4
+ const p = ({ children: o }) => {
5
+ const [e, a] = t.useState(!1), s = () => {
6
+ a(!e);
7
+ };
8
+ return /* @__PURE__ */ r(t.Fragment, { children: [
9
+ /* @__PURE__ */ n(m, { onToggle: s, isOpen: e }),
10
+ /* @__PURE__ */ n("div", { className: `${e ? "menu-open" : ""}`, children: /* @__PURE__ */ n("div", { className: "main-section", children: o }) })
11
+ ] });
12
+ };
13
+ export {
14
+ p as VentanaLienzo
15
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "react-ecosistema-unp",
3
3
  "author": "Ecosistema de Información - Unidad Nacional de Protección",
4
4
  "private": false,
5
- "version": "0.1.1",
5
+ "version": "0.1.2",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {