@harmonics/lattice-ui 0.5.1 → 0.6.0
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/CHANGELOG.md +8 -0
- package/README.md +49 -2
- package/dist/board.js +685 -0
- package/dist/define.js +1 -1
- package/dist/elements-GhyUSrb9.js +1099 -0
- package/dist/{hexes-B4uCADpF.js → hexes-DwdbCYSF.js} +197 -160
- package/dist/hexes.js +1 -1
- package/dist/index.js +3 -1
- package/dist/types/boardTypes.d.ts +2 -0
- package/dist/types/elements/board-entry.d.ts +9 -0
- package/dist/types/elements/board.d.ts +59 -0
- package/dist/types/elements/solid.d.ts +12 -0
- package/dist/woods-FI5aDpfQ.js +756 -0
- package/package.json +6 -2
- package/react.d.ts +14 -0
- package/dist/elements-Ka2LbDpP.js +0 -1832
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harmonics/lattice-ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "The Harmonics tree's look as Custom Elements: a lattice face, the hexagon sky, raised lattice shapes, a shears cut gesture and
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "The Harmonics tree's look as Custom Elements: a lattice face, the hexagon sky, raised lattice shapes, a shears cut gesture, two marks and a board of pieces to build on. Any page, any framework.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"types": "./dist/types/elements/hexes.d.ts",
|
|
24
24
|
"default": "./dist/hexes.js"
|
|
25
25
|
},
|
|
26
|
+
"./board": {
|
|
27
|
+
"types": "./dist/types/elements/board-entry.d.ts",
|
|
28
|
+
"default": "./dist/board.js"
|
|
29
|
+
},
|
|
26
30
|
"./react": {
|
|
27
31
|
"types": "./react.d.ts"
|
|
28
32
|
},
|
package/react.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
// The elements in React 19's JSX: `import type {} from "@harmonics/lattice-ui/react";` once, in
|
|
2
2
|
// any file. React 19 sets these as properties and adds `onstroke` / `onstrokeend` as listeners.
|
|
3
3
|
import type { DetailedHTMLProps, HTMLAttributes } from "react";
|
|
4
|
+
import type {
|
|
5
|
+
BoardChangeDetail,
|
|
6
|
+
BoardPiece,
|
|
7
|
+
LatticeBoard,
|
|
8
|
+
} from "./dist/types/elements/board-entry";
|
|
4
9
|
import type {
|
|
5
10
|
HexSky,
|
|
6
11
|
IconName,
|
|
@@ -49,6 +54,15 @@ declare module "react" {
|
|
|
49
54
|
onstrokeend?: (event: CustomEvent<StrokeEndDetail>) => void;
|
|
50
55
|
};
|
|
51
56
|
"lattice-icon": Base<LatticeIcon> & { name?: IconName; label?: string };
|
|
57
|
+
"lattice-board": Base<LatticeBoard> & {
|
|
58
|
+
pieces?: BoardPiece[] | string;
|
|
59
|
+
fixed?: BoardPiece[];
|
|
60
|
+
tray?: boolean;
|
|
61
|
+
scale?: number;
|
|
62
|
+
label?: string;
|
|
63
|
+
onchange?: (event: CustomEvent<BoardChangeDetail>) => void;
|
|
64
|
+
oncatch?: (event: CustomEvent<{ id: string }>) => void;
|
|
65
|
+
};
|
|
52
66
|
}
|
|
53
67
|
}
|
|
54
68
|
}
|