next-recomponents 1.7.40 → 1.7.42
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 +7 -5
- package/dist/index.mjs +7 -5
- package/package.json +27 -27
- package/src/calendar/react-datepicker.css +756 -756
- package/src/container/index.tsx +1 -1
- package/src/table/td.tsx +4 -4
package/dist/index.js
CHANGED
|
@@ -10969,7 +10969,7 @@ function Container({
|
|
|
10969
10969
|
href: (itemMenu == null ? void 0 : itemMenu.location) || "#",
|
|
10970
10970
|
onClick: () => setIsSidebarOpen(false),
|
|
10971
10971
|
children: [
|
|
10972
|
-
isSidebarOpen && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex
|
|
10972
|
+
isSidebarOpen && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex p-1 items-center hover:bg-gray-700 rounded", children: [
|
|
10973
10973
|
itemMenu == null ? void 0 : itemMenu.icon,
|
|
10974
10974
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { children: itemMenu == null ? void 0 : itemMenu.name })
|
|
10975
10975
|
] }),
|
|
@@ -11188,7 +11188,7 @@ function TD(_a) {
|
|
|
11188
11188
|
const newAcc = __spreadValues({}, acc);
|
|
11189
11189
|
const hasEvent = `${i}`.startsWith("on");
|
|
11190
11190
|
const name = item.name;
|
|
11191
|
-
newAcc["value"] = item.content;
|
|
11191
|
+
newAcc["value"] = item == null ? void 0 : item.content;
|
|
11192
11192
|
newAcc["onChange"] = (e) => __async(null, null, function* () {
|
|
11193
11193
|
const value = e.target.value;
|
|
11194
11194
|
const newData1 = [...mapedData];
|
|
@@ -11200,7 +11200,8 @@ function TD(_a) {
|
|
|
11200
11200
|
var _a3, _b3;
|
|
11201
11201
|
e.item = item;
|
|
11202
11202
|
e.row = Object.keys(mapedData[index]).reduce((acc2, i2) => {
|
|
11203
|
-
|
|
11203
|
+
var _a4;
|
|
11204
|
+
acc2[i2] = (_a4 = mapedData[index][i2]) == null ? void 0 : _a4.content;
|
|
11204
11205
|
return acc2;
|
|
11205
11206
|
}, {});
|
|
11206
11207
|
e.updateRow = (data) => {
|
|
@@ -11214,7 +11215,8 @@ function TD(_a) {
|
|
|
11214
11215
|
});
|
|
11215
11216
|
} else if (i == "row") {
|
|
11216
11217
|
const row = Object.keys(mapedData[index]).reduce((acc2, i2) => {
|
|
11217
|
-
|
|
11218
|
+
var _a3;
|
|
11219
|
+
acc2[i2] = (_a3 = mapedData[index][i2]) == null ? void 0 : _a3.content;
|
|
11218
11220
|
return acc2;
|
|
11219
11221
|
}, {});
|
|
11220
11222
|
newAcc["row"] = row;
|
|
@@ -11257,7 +11259,7 @@ function TD(_a) {
|
|
|
11257
11259
|
}
|
|
11258
11260
|
return child;
|
|
11259
11261
|
}) }),
|
|
11260
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { children: !(newProps == null ? void 0 : newProps["row"]) && item.content })
|
|
11262
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { children: !(newProps == null ? void 0 : newProps["row"]) && (item == null ? void 0 : item.content) })
|
|
11261
11263
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { children: item == null ? void 0 : item.content })
|
|
11262
11264
|
}
|
|
11263
11265
|
)
|
package/dist/index.mjs
CHANGED
|
@@ -10946,7 +10946,7 @@ function Container({
|
|
|
10946
10946
|
href: (itemMenu == null ? void 0 : itemMenu.location) || "#",
|
|
10947
10947
|
onClick: () => setIsSidebarOpen(false),
|
|
10948
10948
|
children: [
|
|
10949
|
-
isSidebarOpen && /* @__PURE__ */ jsxs3("div", { className: "flex
|
|
10949
|
+
isSidebarOpen && /* @__PURE__ */ jsxs3("div", { className: "flex p-1 items-center hover:bg-gray-700 rounded", children: [
|
|
10950
10950
|
itemMenu == null ? void 0 : itemMenu.icon,
|
|
10951
10951
|
/* @__PURE__ */ jsx5("div", { children: itemMenu == null ? void 0 : itemMenu.name })
|
|
10952
10952
|
] }),
|
|
@@ -11170,7 +11170,7 @@ function TD(_a) {
|
|
|
11170
11170
|
const newAcc = __spreadValues({}, acc);
|
|
11171
11171
|
const hasEvent = `${i}`.startsWith("on");
|
|
11172
11172
|
const name = item.name;
|
|
11173
|
-
newAcc["value"] = item.content;
|
|
11173
|
+
newAcc["value"] = item == null ? void 0 : item.content;
|
|
11174
11174
|
newAcc["onChange"] = (e) => __async(null, null, function* () {
|
|
11175
11175
|
const value = e.target.value;
|
|
11176
11176
|
const newData1 = [...mapedData];
|
|
@@ -11182,7 +11182,8 @@ function TD(_a) {
|
|
|
11182
11182
|
var _a3, _b3;
|
|
11183
11183
|
e.item = item;
|
|
11184
11184
|
e.row = Object.keys(mapedData[index]).reduce((acc2, i2) => {
|
|
11185
|
-
|
|
11185
|
+
var _a4;
|
|
11186
|
+
acc2[i2] = (_a4 = mapedData[index][i2]) == null ? void 0 : _a4.content;
|
|
11186
11187
|
return acc2;
|
|
11187
11188
|
}, {});
|
|
11188
11189
|
e.updateRow = (data) => {
|
|
@@ -11196,7 +11197,8 @@ function TD(_a) {
|
|
|
11196
11197
|
});
|
|
11197
11198
|
} else if (i == "row") {
|
|
11198
11199
|
const row = Object.keys(mapedData[index]).reduce((acc2, i2) => {
|
|
11199
|
-
|
|
11200
|
+
var _a3;
|
|
11201
|
+
acc2[i2] = (_a3 = mapedData[index][i2]) == null ? void 0 : _a3.content;
|
|
11200
11202
|
return acc2;
|
|
11201
11203
|
}, {});
|
|
11202
11204
|
newAcc["row"] = row;
|
|
@@ -11239,7 +11241,7 @@ function TD(_a) {
|
|
|
11239
11241
|
}
|
|
11240
11242
|
return child;
|
|
11241
11243
|
}) }),
|
|
11242
|
-
/* @__PURE__ */ jsx8("div", { children: !(newProps == null ? void 0 : newProps["row"]) && item.content })
|
|
11244
|
+
/* @__PURE__ */ jsx8("div", { children: !(newProps == null ? void 0 : newProps["row"]) && (item == null ? void 0 : item.content) })
|
|
11243
11245
|
] }) : /* @__PURE__ */ jsx8("div", { children: item == null ? void 0 : item.content })
|
|
11244
11246
|
}
|
|
11245
11247
|
)
|
package/package.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "next-recomponents",
|
|
3
|
-
"version": "1.7.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "tsup src/index.tsx --dts --format esm,cjs --out-dir dist",
|
|
9
|
-
"prepublishOnly": "npm run build",
|
|
10
|
-
"publish:public": "npm publish --access public"
|
|
11
|
-
},
|
|
12
|
-
"keywords": [],
|
|
13
|
-
"author": "",
|
|
14
|
-
"license": "ISC",
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"tsup": "^8.5.0",
|
|
17
|
-
"typescript": "^5.8.3"
|
|
18
|
-
},
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"@emotion/is-prop-valid": "^1.3.1",
|
|
21
|
-
"axios": "^1.9.0",
|
|
22
|
-
"moment": "^2.30.1",
|
|
23
|
-
"react": "^19.1.0",
|
|
24
|
-
"react-datepicker": "^8.4.0",
|
|
25
|
-
"react-dom": "^19.1.0"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "next-recomponents",
|
|
3
|
+
"version": "1.7.42",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsup src/index.tsx --dts --format esm,cjs --out-dir dist",
|
|
9
|
+
"prepublishOnly": "npm run build",
|
|
10
|
+
"publish:public": "npm publish --access public"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [],
|
|
13
|
+
"author": "",
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"tsup": "^8.5.0",
|
|
17
|
+
"typescript": "^5.8.3"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@emotion/is-prop-valid": "^1.3.1",
|
|
21
|
+
"axios": "^1.9.0",
|
|
22
|
+
"moment": "^2.30.1",
|
|
23
|
+
"react": "^19.1.0",
|
|
24
|
+
"react-datepicker": "^8.4.0",
|
|
25
|
+
"react-dom": "^19.1.0"
|
|
26
|
+
}
|
|
27
|
+
}
|