next-recomponents 1.7.17 → 1.7.19
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -9
- package/dist/index.mjs +3 -9
- package/package.json +1 -1
- package/src/container/index.tsx +1 -1
- package/src/pre/index.tsx +2 -9
- package/src/table/td.tsx +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -163,7 +163,7 @@ interface Props$1 extends React$1.DetailedHTMLProps<React$1.DialogHTMLAttributes
|
|
|
163
163
|
declare function Modal({ button, children, ref, title }: Props$1): react_jsx_runtime.JSX.Element;
|
|
164
164
|
|
|
165
165
|
type PreProps = {
|
|
166
|
-
data:
|
|
166
|
+
data: any;
|
|
167
167
|
};
|
|
168
168
|
declare const Pre: React$1.FC<PreProps>;
|
|
169
169
|
|
package/dist/index.d.ts
CHANGED
|
@@ -163,7 +163,7 @@ interface Props$1 extends React$1.DetailedHTMLProps<React$1.DialogHTMLAttributes
|
|
|
163
163
|
declare function Modal({ button, children, ref, title }: Props$1): react_jsx_runtime.JSX.Element;
|
|
164
164
|
|
|
165
165
|
type PreProps = {
|
|
166
|
-
data:
|
|
166
|
+
data: any;
|
|
167
167
|
};
|
|
168
168
|
declare const Pre: React$1.FC<PreProps>;
|
|
169
169
|
|
package/dist/index.js
CHANGED
|
@@ -10998,7 +10998,7 @@ function Container({
|
|
|
10998
10998
|
{
|
|
10999
10999
|
className: "bg-blue-100 overflow-hidden",
|
|
11000
11000
|
initial: isFooterOpen,
|
|
11001
|
-
animate: {
|
|
11001
|
+
animate: { maxHeight: isFooterOpen ? 200 : 40 },
|
|
11002
11002
|
transition: { duration: 0.3 },
|
|
11003
11003
|
children: [
|
|
11004
11004
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex justify-center items-center p-2", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
@@ -11214,7 +11214,7 @@ function TD(_a) {
|
|
|
11214
11214
|
className: [
|
|
11215
11215
|
isHidded && color2,
|
|
11216
11216
|
!isHidded && "whitespace-nowrap overflow-hidden text-ellipsis ",
|
|
11217
|
-
"border-b max-w-[200px] p-
|
|
11217
|
+
"border-b max-w-[200px] p-2 "
|
|
11218
11218
|
// ["number", "money"].includes(item?.cellTypeOf) && "text-right",
|
|
11219
11219
|
].join(" "),
|
|
11220
11220
|
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: symbols && symbols[item == null ? void 0 : item.name] && "flex justify-between", children: [
|
|
@@ -44438,13 +44438,7 @@ function Modal({ button, children, ref, title = "" }) {
|
|
|
44438
44438
|
// src/pre/index.tsx
|
|
44439
44439
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
44440
44440
|
var Pre = ({ data }) => {
|
|
44441
|
-
|
|
44442
|
-
try {
|
|
44443
|
-
const parsed = JSON.parse(data);
|
|
44444
|
-
formatted = JSON.stringify(parsed, null, 2);
|
|
44445
|
-
} catch (err) {
|
|
44446
|
-
console.error("Invalid JSON string:", err);
|
|
44447
|
-
}
|
|
44441
|
+
const formatted = JSON.stringify(data, null, 2);
|
|
44448
44442
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
44449
44443
|
"pre",
|
|
44450
44444
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -10975,7 +10975,7 @@ function Container({
|
|
|
10975
10975
|
{
|
|
10976
10976
|
className: "bg-blue-100 overflow-hidden",
|
|
10977
10977
|
initial: isFooterOpen,
|
|
10978
|
-
animate: {
|
|
10978
|
+
animate: { maxHeight: isFooterOpen ? 200 : 40 },
|
|
10979
10979
|
transition: { duration: 0.3 },
|
|
10980
10980
|
children: [
|
|
10981
10981
|
/* @__PURE__ */ jsx5("div", { className: "flex justify-center items-center p-2", children: /* @__PURE__ */ jsx5(
|
|
@@ -11196,7 +11196,7 @@ function TD(_a) {
|
|
|
11196
11196
|
className: [
|
|
11197
11197
|
isHidded && color2,
|
|
11198
11198
|
!isHidded && "whitespace-nowrap overflow-hidden text-ellipsis ",
|
|
11199
|
-
"border-b max-w-[200px] p-
|
|
11199
|
+
"border-b max-w-[200px] p-2 "
|
|
11200
11200
|
// ["number", "money"].includes(item?.cellTypeOf) && "text-right",
|
|
11201
11201
|
].join(" "),
|
|
11202
11202
|
children: /* @__PURE__ */ jsxs6("div", { className: symbols && symbols[item == null ? void 0 : item.name] && "flex justify-between", children: [
|
|
@@ -44426,13 +44426,7 @@ function Modal({ button, children, ref, title = "" }) {
|
|
|
44426
44426
|
// src/pre/index.tsx
|
|
44427
44427
|
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
44428
44428
|
var Pre = ({ data }) => {
|
|
44429
|
-
|
|
44430
|
-
try {
|
|
44431
|
-
const parsed = JSON.parse(data);
|
|
44432
|
-
formatted = JSON.stringify(parsed, null, 2);
|
|
44433
|
-
} catch (err) {
|
|
44434
|
-
console.error("Invalid JSON string:", err);
|
|
44435
|
-
}
|
|
44429
|
+
const formatted = JSON.stringify(data, null, 2);
|
|
44436
44430
|
return /* @__PURE__ */ jsx21(
|
|
44437
44431
|
"pre",
|
|
44438
44432
|
{
|
package/package.json
CHANGED
package/src/container/index.tsx
CHANGED
|
@@ -158,7 +158,7 @@ export default function Container({
|
|
|
158
158
|
<motion.footer
|
|
159
159
|
className="bg-blue-100 overflow-hidden"
|
|
160
160
|
initial={isFooterOpen}
|
|
161
|
-
animate={{
|
|
161
|
+
animate={{ maxHeight: isFooterOpen ? 200 : 40 }}
|
|
162
162
|
transition={{ duration: 0.3 }}
|
|
163
163
|
>
|
|
164
164
|
<div className="flex justify-center items-center p-2">
|
package/src/pre/index.tsx
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
3
|
type PreProps = {
|
|
4
|
-
data:
|
|
4
|
+
data: any;
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
const Pre: React.FC<PreProps> = ({ data }) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
try {
|
|
11
|
-
const parsed = JSON.parse(data);
|
|
12
|
-
formatted = JSON.stringify(parsed, null, 2); // Formatea con indentación
|
|
13
|
-
} catch (err) {
|
|
14
|
-
console.error("Invalid JSON string:", err);
|
|
15
|
-
}
|
|
8
|
+
const formatted = JSON.stringify(data, null, 2);
|
|
16
9
|
|
|
17
10
|
return (
|
|
18
11
|
<pre
|
package/src/table/td.tsx
CHANGED
|
@@ -66,7 +66,7 @@ export default function TD({
|
|
|
66
66
|
className={[
|
|
67
67
|
isHidded && color,
|
|
68
68
|
!isHidded && "whitespace-nowrap overflow-hidden text-ellipsis ",
|
|
69
|
-
"border-b max-w-[200px] p-
|
|
69
|
+
"border-b max-w-[200px] p-2 ",
|
|
70
70
|
// ["number", "money"].includes(item?.cellTypeOf) && "text-right",
|
|
71
71
|
].join(" ")}
|
|
72
72
|
>
|