next-recomponents 2.0.25 → 2.0.26
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/dist/index.js +3 -4
- package/dist/index.mjs +3 -4
- package/package.json +1 -1
- package/src/container/index.tsx +3 -11
package/dist/index.js
CHANGED
|
@@ -3725,10 +3725,9 @@ function Container({
|
|
|
3725
3725
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
3726
3726
|
"div",
|
|
3727
3727
|
{
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
className: "bg-blue-500 text-white overflow-y-auto fixed md:static top-0 left-0 h-full z-50 md:z-auto transition-all duration-300 ease-in-out",
|
|
3728
|
+
className: `bg-blue-500 text-white overflow-y-auto fixed md:static top-0 left-0 h-full z-50 md:z-auto transition-all duration-300 ease-in-out
|
|
3729
|
+
${isSidebarOpen ? "w-full md:w-[250px]" : "w-0 md:w-[60px]"}
|
|
3730
|
+
`,
|
|
3732
3731
|
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "p-4 ", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("ul", { className: "space-y-3", children: [
|
|
3733
3732
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
3734
3733
|
"li",
|
package/dist/index.mjs
CHANGED
|
@@ -3700,10 +3700,9 @@ function Container({
|
|
|
3700
3700
|
/* @__PURE__ */ jsx3(
|
|
3701
3701
|
"div",
|
|
3702
3702
|
{
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
className: "bg-blue-500 text-white overflow-y-auto fixed md:static top-0 left-0 h-full z-50 md:z-auto transition-all duration-300 ease-in-out",
|
|
3703
|
+
className: `bg-blue-500 text-white overflow-y-auto fixed md:static top-0 left-0 h-full z-50 md:z-auto transition-all duration-300 ease-in-out
|
|
3704
|
+
${isSidebarOpen ? "w-full md:w-[250px]" : "w-0 md:w-[60px]"}
|
|
3705
|
+
`,
|
|
3707
3706
|
children: /* @__PURE__ */ jsx3("div", { className: "p-4 ", children: /* @__PURE__ */ jsxs2("ul", { className: "space-y-3", children: [
|
|
3708
3707
|
/* @__PURE__ */ jsxs2(
|
|
3709
3708
|
"li",
|
package/package.json
CHANGED
package/src/container/index.tsx
CHANGED
|
@@ -87,17 +87,9 @@ export default function Container({
|
|
|
87
87
|
<div className="flex flex-1 overflow-hidden relative">
|
|
88
88
|
{/* Sidebar como drawer en mobile */}
|
|
89
89
|
<div
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
? isSidebarOpen
|
|
94
|
-
? "100%"
|
|
95
|
-
: 0
|
|
96
|
-
: isSidebarOpen
|
|
97
|
-
? 250
|
|
98
|
-
: 60,
|
|
99
|
-
}}
|
|
100
|
-
className="bg-blue-500 text-white overflow-y-auto fixed md:static top-0 left-0 h-full z-50 md:z-auto transition-all duration-300 ease-in-out"
|
|
90
|
+
className={`bg-blue-500 text-white overflow-y-auto fixed md:static top-0 left-0 h-full z-50 md:z-auto transition-all duration-300 ease-in-out
|
|
91
|
+
${isSidebarOpen ? "w-full md:w-[250px]" : "w-0 md:w-[60px]"}
|
|
92
|
+
`}
|
|
101
93
|
>
|
|
102
94
|
<div className="p-4 ">
|
|
103
95
|
{
|