@hackersheet/next-document-content-kifu 0.1.0-alpha.3 → 0.1.0-alpha.5

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.
@@ -49,25 +49,24 @@ function MovesArea(props) {
49
49
  });
50
50
  }
51
51
  }, [props.tesuu]);
52
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "absolute overflow-y-auto h-full w-full border-2 border-black text-black", ref: containerRef }, /* @__PURE__ */ import_react.default.createElement("table", { className: "w-full text-xs", style: { margin: 0 } }, /* @__PURE__ */ import_react.default.createElement("tbody", null, 0 === props.tesuu && /* @__PURE__ */ import_react.default.createElement("tr", { ref: scrollRef }), /* @__PURE__ */ import_react.default.createElement(
53
- "tr",
52
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "absolute overflow-y-auto h-full w-full border-2 border-black text-black", ref: containerRef }, /* @__PURE__ */ import_react.default.createElement("div", { className: "w-full text-xs" }, 0 === props.tesuu && /* @__PURE__ */ import_react.default.createElement("div", { ref: scrollRef }), /* @__PURE__ */ import_react.default.createElement(
53
+ "div",
54
54
  {
55
55
  onClick: () => props.onTesuuChange && props.onTesuuChange(0),
56
- className: 0 === props.tesuu ? "bg-yellow-100 cursor-pointer" : "cursor-pointer hover:bg-amber-300"
56
+ className: 0 === props.tesuu ? "bg-yellow-100 cursor-pointer flex p-2" : "cursor-pointer hover:bg-amber-300 flex p-2"
57
57
  },
58
- /* @__PURE__ */ import_react.default.createElement("th", { className: "text-right p-1 pl-0" }),
59
- /* @__PURE__ */ import_react.default.createElement("td", { className: "p-1 pr-0" }, "\u958B\u59CB\u5C40\u9762")
58
+ /* @__PURE__ */ import_react.default.createElement("div", null, "\u958B\u59CB\u5C40\u9762")
60
59
  ), moves.map(
61
- (move, index) => index > 0 && /* @__PURE__ */ import_react.default.createElement(import_react.Fragment, { key: index }, index === props.tesuu && /* @__PURE__ */ import_react.default.createElement("tr", { ref: scrollRef }), /* @__PURE__ */ import_react.default.createElement(
62
- "tr",
60
+ (move, index) => index > 0 && /* @__PURE__ */ import_react.default.createElement(import_react.Fragment, { key: index }, index === props.tesuu && /* @__PURE__ */ import_react.default.createElement("div", { ref: scrollRef }), /* @__PURE__ */ import_react.default.createElement(
61
+ "div",
63
62
  {
64
- className: index === props.tesuu ? "bg-yellow-100 border-t border-black/60 cursor-pointer" : "border-t border-black/60 cursor-pointer hover:bg-amber-300",
63
+ className: index === props.tesuu ? "bg-yellow-100 border-t border-black/60 cursor-pointer flex gap-2 p-2" : "border-t border-black/60 cursor-pointer hover:bg-amber-300 flex gap-2 p-2",
65
64
  onClick: () => props.onTesuuChange && props.onTesuuChange(index)
66
65
  },
67
- /* @__PURE__ */ import_react.default.createElement("th", { className: "text-right p-1 pl-2 w-0", style: { width: 0 } }, /* @__PURE__ */ import_react.default.createElement("div", null, index)),
68
- /* @__PURE__ */ import_react.default.createElement("td", { className: "p-1 pr-0" }, import_json_kifu_format.JKFPlayer.moveToReadableKifu(move))
66
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "w-4 text-right" }, /* @__PURE__ */ import_react.default.createElement("div", null, index)),
67
+ /* @__PURE__ */ import_react.default.createElement("div", null, import_json_kifu_format.JKFPlayer.moveToReadableKifu(move))
69
68
  ))
70
- ))));
69
+ )));
71
70
  }
72
71
  // Annotate the CommonJS export names for ESM import in node:
73
72
  0 && (module.exports = {
@@ -16,25 +16,24 @@ function MovesArea(props) {
16
16
  });
17
17
  }
18
18
  }, [props.tesuu]);
19
- return /* @__PURE__ */ React.createElement("div", { className: "absolute overflow-y-auto h-full w-full border-2 border-black text-black", ref: containerRef }, /* @__PURE__ */ React.createElement("table", { className: "w-full text-xs", style: { margin: 0 } }, /* @__PURE__ */ React.createElement("tbody", null, 0 === props.tesuu && /* @__PURE__ */ React.createElement("tr", { ref: scrollRef }), /* @__PURE__ */ React.createElement(
20
- "tr",
19
+ return /* @__PURE__ */ React.createElement("div", { className: "absolute overflow-y-auto h-full w-full border-2 border-black text-black", ref: containerRef }, /* @__PURE__ */ React.createElement("div", { className: "w-full text-xs" }, 0 === props.tesuu && /* @__PURE__ */ React.createElement("div", { ref: scrollRef }), /* @__PURE__ */ React.createElement(
20
+ "div",
21
21
  {
22
22
  onClick: () => props.onTesuuChange && props.onTesuuChange(0),
23
- className: 0 === props.tesuu ? "bg-yellow-100 cursor-pointer" : "cursor-pointer hover:bg-amber-300"
23
+ className: 0 === props.tesuu ? "bg-yellow-100 cursor-pointer flex p-2" : "cursor-pointer hover:bg-amber-300 flex p-2"
24
24
  },
25
- /* @__PURE__ */ React.createElement("th", { className: "text-right p-1 pl-0" }),
26
- /* @__PURE__ */ React.createElement("td", { className: "p-1 pr-0" }, "\u958B\u59CB\u5C40\u9762")
25
+ /* @__PURE__ */ React.createElement("div", null, "\u958B\u59CB\u5C40\u9762")
27
26
  ), moves.map(
28
- (move, index) => index > 0 && /* @__PURE__ */ React.createElement(Fragment, { key: index }, index === props.tesuu && /* @__PURE__ */ React.createElement("tr", { ref: scrollRef }), /* @__PURE__ */ React.createElement(
29
- "tr",
27
+ (move, index) => index > 0 && /* @__PURE__ */ React.createElement(Fragment, { key: index }, index === props.tesuu && /* @__PURE__ */ React.createElement("div", { ref: scrollRef }), /* @__PURE__ */ React.createElement(
28
+ "div",
30
29
  {
31
- className: index === props.tesuu ? "bg-yellow-100 border-t border-black/60 cursor-pointer" : "border-t border-black/60 cursor-pointer hover:bg-amber-300",
30
+ className: index === props.tesuu ? "bg-yellow-100 border-t border-black/60 cursor-pointer flex gap-2 p-2" : "border-t border-black/60 cursor-pointer hover:bg-amber-300 flex gap-2 p-2",
32
31
  onClick: () => props.onTesuuChange && props.onTesuuChange(index)
33
32
  },
34
- /* @__PURE__ */ React.createElement("th", { className: "text-right p-1 pl-2 w-0", style: { width: 0 } }, /* @__PURE__ */ React.createElement("div", null, index)),
35
- /* @__PURE__ */ React.createElement("td", { className: "p-1 pr-0" }, JKFPlayer.moveToReadableKifu(move))
33
+ /* @__PURE__ */ React.createElement("div", { className: "w-4 text-right" }, /* @__PURE__ */ React.createElement("div", null, index)),
34
+ /* @__PURE__ */ React.createElement("div", null, JKFPlayer.moveToReadableKifu(move))
36
35
  ))
37
- ))));
36
+ )));
38
37
  }
39
38
  export {
40
39
  MovesArea
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hackersheet/next-document-content-kifu",
3
- "version": "0.1.0-alpha.3",
3
+ "version": "0.1.0-alpha.5",
4
4
  "description": "Hacker Sheet document content kifu components for Next.js",
5
5
  "keywords": [],
6
6
  "repository": {
@@ -37,7 +37,7 @@
37
37
  "react-dom": "^19.2.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "next": "^14.0.0",
40
+ "next": "^15.0.0",
41
41
  "react": "^19.0.0",
42
42
  "react-dom": "^19.0.0"
43
43
  },