@downcity/ui 0.1.27 → 0.1.35
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/README.md +1 -1
- package/dist/index.cjs +9 -9
- package/dist/index.js +9 -9
- package/package.json +16 -16
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2368,7 +2368,7 @@ function deriveFocusedClusterNodes(items, zoneId) {
|
|
|
2368
2368
|
function buildOverviewPatrolRoute(params) {
|
|
2369
2369
|
const anchor = toStagePoint(params.zoneId, params.placement);
|
|
2370
2370
|
const hub = toZoneHubPoint(params.zoneId);
|
|
2371
|
-
const
|
|
2371
|
+
const city = WORKBOARD_ZONE_GATE_POINTS[params.zoneId];
|
|
2372
2372
|
const laneIndex = Math.round((params.placement.left + params.placement.top) / 32) % 3;
|
|
2373
2373
|
const laneOffset = (laneIndex - 1) * 10;
|
|
2374
2374
|
const roadY = params.zoneId === "engaged" || params.zoneId === "steady" ? 460 : 500;
|
|
@@ -2380,17 +2380,17 @@ function buildOverviewPatrolRoute(params) {
|
|
|
2380
2380
|
anchor,
|
|
2381
2381
|
{ x: anchor.x, y: hub.y },
|
|
2382
2382
|
hub,
|
|
2383
|
-
{ x:
|
|
2384
|
-
|
|
2385
|
-
{ x:
|
|
2383
|
+
{ x: city.x, y: hub.y },
|
|
2384
|
+
city,
|
|
2385
|
+
{ x: city.x, y: roadY },
|
|
2386
2386
|
{ x: plazaLane.x, y: roadY },
|
|
2387
2387
|
plazaLane,
|
|
2388
2388
|
WORKBOARD_TOWN_PLAZA_POINT,
|
|
2389
2389
|
plazaLane,
|
|
2390
2390
|
{ x: plazaLane.x, y: roadY },
|
|
2391
|
-
{ x:
|
|
2392
|
-
|
|
2393
|
-
{ x:
|
|
2391
|
+
{ x: city.x, y: roadY },
|
|
2392
|
+
city,
|
|
2393
|
+
{ x: city.x, y: hub.y },
|
|
2394
2394
|
hub,
|
|
2395
2395
|
{ x: anchor.x, y: hub.y },
|
|
2396
2396
|
anchor
|
|
@@ -2540,7 +2540,7 @@ function WorkboardAtlasPortalSign(props) {
|
|
|
2540
2540
|
children: [
|
|
2541
2541
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "absolute left-3 top-full h-5 w-2 bg-[#6e4d2f]" }),
|
|
2542
2542
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "absolute right-3 top-full h-5 w-2 bg-[#6e4d2f]" }),
|
|
2543
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "block text-[9px] uppercase tracking-[0.18em] text-[#6e4d2f]/70", children: "zone
|
|
2543
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "block text-[9px] uppercase tracking-[0.18em] text-[#6e4d2f]/70", children: "zone city" }),
|
|
2544
2544
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "mt-1 block truncate text-sm font-semibold leading-5 tracking-[-0.04em] text-[#352516]", children: zone.title }),
|
|
2545
2545
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { className: "mt-1 grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
2546
2546
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "h-2 border border-[#6e4d2f]/35 bg-[#fff1bd]", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
@@ -2643,7 +2643,7 @@ function WorkboardGameAtlas(props) {
|
|
|
2643
2643
|
strokeDasharray: "3 4"
|
|
2644
2644
|
}
|
|
2645
2645
|
) : null
|
|
2646
|
-
] }, `
|
|
2646
|
+
] }, `city-${actor.id}`);
|
|
2647
2647
|
})
|
|
2648
2648
|
]
|
|
2649
2649
|
}
|
package/dist/index.js
CHANGED
|
@@ -2265,7 +2265,7 @@ function deriveFocusedClusterNodes(items, zoneId) {
|
|
|
2265
2265
|
function buildOverviewPatrolRoute(params) {
|
|
2266
2266
|
const anchor = toStagePoint(params.zoneId, params.placement);
|
|
2267
2267
|
const hub = toZoneHubPoint(params.zoneId);
|
|
2268
|
-
const
|
|
2268
|
+
const city = WORKBOARD_ZONE_GATE_POINTS[params.zoneId];
|
|
2269
2269
|
const laneIndex = Math.round((params.placement.left + params.placement.top) / 32) % 3;
|
|
2270
2270
|
const laneOffset = (laneIndex - 1) * 10;
|
|
2271
2271
|
const roadY = params.zoneId === "engaged" || params.zoneId === "steady" ? 460 : 500;
|
|
@@ -2277,17 +2277,17 @@ function buildOverviewPatrolRoute(params) {
|
|
|
2277
2277
|
anchor,
|
|
2278
2278
|
{ x: anchor.x, y: hub.y },
|
|
2279
2279
|
hub,
|
|
2280
|
-
{ x:
|
|
2281
|
-
|
|
2282
|
-
{ x:
|
|
2280
|
+
{ x: city.x, y: hub.y },
|
|
2281
|
+
city,
|
|
2282
|
+
{ x: city.x, y: roadY },
|
|
2283
2283
|
{ x: plazaLane.x, y: roadY },
|
|
2284
2284
|
plazaLane,
|
|
2285
2285
|
WORKBOARD_TOWN_PLAZA_POINT,
|
|
2286
2286
|
plazaLane,
|
|
2287
2287
|
{ x: plazaLane.x, y: roadY },
|
|
2288
|
-
{ x:
|
|
2289
|
-
|
|
2290
|
-
{ x:
|
|
2288
|
+
{ x: city.x, y: roadY },
|
|
2289
|
+
city,
|
|
2290
|
+
{ x: city.x, y: hub.y },
|
|
2291
2291
|
hub,
|
|
2292
2292
|
{ x: anchor.x, y: hub.y },
|
|
2293
2293
|
anchor
|
|
@@ -2437,7 +2437,7 @@ function WorkboardAtlasPortalSign(props) {
|
|
|
2437
2437
|
children: [
|
|
2438
2438
|
/* @__PURE__ */ jsx21("span", { className: "absolute left-3 top-full h-5 w-2 bg-[#6e4d2f]" }),
|
|
2439
2439
|
/* @__PURE__ */ jsx21("span", { className: "absolute right-3 top-full h-5 w-2 bg-[#6e4d2f]" }),
|
|
2440
|
-
/* @__PURE__ */ jsx21("span", { className: "block text-[9px] uppercase tracking-[0.18em] text-[#6e4d2f]/70", children: "zone
|
|
2440
|
+
/* @__PURE__ */ jsx21("span", { className: "block text-[9px] uppercase tracking-[0.18em] text-[#6e4d2f]/70", children: "zone city" }),
|
|
2441
2441
|
/* @__PURE__ */ jsx21("span", { className: "mt-1 block truncate text-sm font-semibold leading-5 tracking-[-0.04em] text-[#352516]", children: zone.title }),
|
|
2442
2442
|
/* @__PURE__ */ jsxs8("span", { className: "mt-1 grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
2443
2443
|
/* @__PURE__ */ jsx21("span", { className: "h-2 border border-[#6e4d2f]/35 bg-[#fff1bd]", children: /* @__PURE__ */ jsx21(
|
|
@@ -2540,7 +2540,7 @@ function WorkboardGameAtlas(props) {
|
|
|
2540
2540
|
strokeDasharray: "3 4"
|
|
2541
2541
|
}
|
|
2542
2542
|
) : null
|
|
2543
|
-
] }, `
|
|
2543
|
+
] }, `city-${actor.id}`);
|
|
2544
2544
|
})
|
|
2545
2545
|
]
|
|
2546
2546
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@downcity/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
4
4
|
"description": "Downcity UI SDK for React and Tailwind CSS applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,28 +37,28 @@
|
|
|
37
37
|
"src/styles.css"
|
|
38
38
|
],
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"react": "^19.2.
|
|
41
|
-
"react-dom": "^19.2.
|
|
40
|
+
"react": "^19.2.6",
|
|
41
|
+
"react-dom": "^19.2.6"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@base-ui/react": "^1.
|
|
45
|
-
"@pxlkit/core": "^1.
|
|
46
|
-
"@pxlkit/effects": "^1.2.
|
|
47
|
-
"@pxlkit/feedback": "^1.2.
|
|
48
|
-
"@pxlkit/gamification": "^1.2.
|
|
49
|
-
"@pxlkit/parallax": "^1.2.
|
|
50
|
-
"@pxlkit/ui": "^1.2.
|
|
44
|
+
"@base-ui/react": "^1.5.0",
|
|
45
|
+
"@pxlkit/core": "^1.3.3",
|
|
46
|
+
"@pxlkit/effects": "^1.2.3",
|
|
47
|
+
"@pxlkit/feedback": "^1.2.5",
|
|
48
|
+
"@pxlkit/gamification": "^1.2.4",
|
|
49
|
+
"@pxlkit/parallax": "^1.2.3",
|
|
50
|
+
"@pxlkit/ui": "^1.2.5",
|
|
51
51
|
"class-variance-authority": "^0.7.1",
|
|
52
52
|
"clsx": "^2.1.1",
|
|
53
|
-
"lucide-react": "^
|
|
53
|
+
"lucide-react": "^1.17.0",
|
|
54
54
|
"sonner": "^2.0.7",
|
|
55
|
-
"tailwind-merge": "^3.
|
|
55
|
+
"tailwind-merge": "^3.6.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@types/react": "^19.2.
|
|
59
|
-
"@types/react-dom": "^19.2.
|
|
60
|
-
"tsup": "^8.5.
|
|
61
|
-
"typescript": "^
|
|
58
|
+
"@types/react": "^19.2.15",
|
|
59
|
+
"@types/react-dom": "^19.2.3",
|
|
60
|
+
"tsup": "^8.5.1",
|
|
61
|
+
"typescript": "^6.0.3"
|
|
62
62
|
},
|
|
63
63
|
"keywords": [
|
|
64
64
|
"downcity",
|