@almadar/ui 5.69.0 → 5.70.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.
@@ -45790,35 +45790,44 @@ var init_HexStrategyBoard = __esm({
45790
45790
  }
45791
45791
  });
45792
45792
  function HolidayRunnerBoard({
45793
- backgroundImage,
45793
+ tiles,
45794
+ units,
45795
+ features,
45796
+ assetManifest,
45794
45797
  assetBaseUrl,
45795
- width = 800,
45796
- height = 400,
45797
- fps = 60,
45798
+ scale = 0.45,
45799
+ showMinimap = false,
45800
+ enableCamera = true,
45801
+ tileClickEvent,
45802
+ unitClickEvent,
45798
45803
  isLoading,
45799
45804
  error,
45800
45805
  className
45801
45806
  }) {
45802
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("holiday-runner-board relative w-full h-full", className), children: [
45803
- isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/40 z-10", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-white text-sm", children: "Loading\u2026" }) }),
45804
- error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60 z-10", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-red-400 text-sm", children: error.message }) }),
45805
- /* @__PURE__ */ jsxRuntime.jsx(
45806
- GameCanvas2D,
45807
- {
45808
- width,
45809
- height,
45810
- fps,
45811
- backgroundImage: backgroundImage ?? "",
45812
- assetBaseUrl
45813
- }
45814
- )
45815
- ] });
45807
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("holiday-runner-board relative w-full h-full", className), children: /* @__PURE__ */ jsxRuntime.jsx(
45808
+ IsometricCanvas_default,
45809
+ {
45810
+ tileLayout: "flat",
45811
+ tiles,
45812
+ units,
45813
+ features,
45814
+ assetManifest,
45815
+ assetBaseUrl,
45816
+ scale,
45817
+ showMinimap,
45818
+ enableCamera,
45819
+ tileClickEvent,
45820
+ unitClickEvent,
45821
+ isLoading,
45822
+ error
45823
+ }
45824
+ ) });
45816
45825
  }
45817
45826
  var init_HolidayRunnerBoard = __esm({
45818
45827
  "components/game/organisms/HolidayRunnerBoard.tsx"() {
45819
45828
  "use client";
45820
45829
  init_cn();
45821
- init_GameCanvas2D();
45830
+ init_IsometricCanvas();
45822
45831
  HolidayRunnerBoard.displayName = "HolidayRunnerBoard";
45823
45832
  }
45824
45833
  });
@@ -47644,25 +47653,36 @@ var init_PricingPageTemplate = __esm({
47644
47653
  }
47645
47654
  });
47646
47655
  function RacingBoard({
47647
- backgroundImage,
47656
+ tiles,
47657
+ units,
47658
+ features,
47659
+ assetManifest,
47648
47660
  assetBaseUrl,
47649
- width = 800,
47650
- height = 600,
47651
- fps = 60,
47652
- tickEvent,
47653
- drawEvent,
47661
+ scale = 0.45,
47662
+ showMinimap = true,
47663
+ enableCamera = true,
47664
+ tileClickEvent,
47665
+ unitClickEvent,
47666
+ isLoading,
47667
+ error,
47654
47668
  className
47655
47669
  }) {
47656
47670
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("racing-board relative w-full h-full", className), children: /* @__PURE__ */ jsxRuntime.jsx(
47657
- GameCanvas2D,
47671
+ IsometricCanvas_default,
47658
47672
  {
47659
- backgroundImage,
47673
+ tileLayout: "flat",
47674
+ tiles,
47675
+ units,
47676
+ features,
47677
+ assetManifest,
47660
47678
  assetBaseUrl,
47661
- width,
47662
- height,
47663
- fps,
47664
- tickEvent: typeof tickEvent === "string" ? tickEvent : void 0,
47665
- drawEvent: typeof drawEvent === "string" ? drawEvent : void 0
47679
+ scale,
47680
+ showMinimap,
47681
+ enableCamera,
47682
+ tileClickEvent,
47683
+ unitClickEvent,
47684
+ isLoading,
47685
+ error
47666
47686
  }
47667
47687
  ) });
47668
47688
  }
@@ -47670,7 +47690,7 @@ var init_RacingBoard = __esm({
47670
47690
  "components/game/organisms/RacingBoard.tsx"() {
47671
47691
  "use client";
47672
47692
  init_cn();
47673
- init_GameCanvas2D();
47693
+ init_IsometricCanvas();
47674
47694
  RacingBoard.displayName = "RacingBoard";
47675
47695
  }
47676
47696
  });
@@ -50969,35 +50989,44 @@ var init_SokobanBoard = __esm({
50969
50989
  }
50970
50990
  });
50971
50991
  function SpaceShmupBoard({
50972
- backgroundImage,
50992
+ tiles,
50993
+ units,
50994
+ features,
50995
+ assetManifest,
50973
50996
  assetBaseUrl,
50974
- width = 800,
50975
- height = 600,
50976
- fps = 60,
50997
+ scale = 0.45,
50998
+ showMinimap = false,
50999
+ enableCamera = true,
51000
+ tileClickEvent,
51001
+ unitClickEvent,
50977
51002
  isLoading,
50978
51003
  error,
50979
51004
  className
50980
51005
  }) {
50981
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("space-shmup-board relative w-full h-full", className), children: [
50982
- isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60 z-10", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-white text-sm", children: "Loading\u2026" }) }),
50983
- error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-red-900/60 z-10", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-white text-sm", children: error.message }) }),
50984
- /* @__PURE__ */ jsxRuntime.jsx(
50985
- GameCanvas2D,
50986
- {
50987
- backgroundImage,
50988
- assetBaseUrl,
50989
- width,
50990
- height,
50991
- fps
50992
- }
50993
- )
50994
- ] });
51006
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("space-shmup-board relative w-full h-full", className), children: /* @__PURE__ */ jsxRuntime.jsx(
51007
+ IsometricCanvas_default,
51008
+ {
51009
+ tileLayout: "flat",
51010
+ tiles,
51011
+ units,
51012
+ features,
51013
+ assetManifest,
51014
+ assetBaseUrl,
51015
+ scale,
51016
+ showMinimap,
51017
+ enableCamera,
51018
+ tileClickEvent,
51019
+ unitClickEvent,
51020
+ isLoading,
51021
+ error
51022
+ }
51023
+ ) });
50995
51024
  }
50996
51025
  var init_SpaceShmupBoard = __esm({
50997
51026
  "components/game/organisms/SpaceShmupBoard.tsx"() {
50998
51027
  "use client";
50999
51028
  init_cn();
51000
- init_GameCanvas2D();
51029
+ init_IsometricCanvas();
51001
51030
  SpaceShmupBoard.displayName = "SpaceShmupBoard";
51002
51031
  }
51003
51032
  });
@@ -45744,35 +45744,44 @@ var init_HexStrategyBoard = __esm({
45744
45744
  }
45745
45745
  });
45746
45746
  function HolidayRunnerBoard({
45747
- backgroundImage,
45747
+ tiles,
45748
+ units,
45749
+ features,
45750
+ assetManifest,
45748
45751
  assetBaseUrl,
45749
- width = 800,
45750
- height = 400,
45751
- fps = 60,
45752
+ scale = 0.45,
45753
+ showMinimap = false,
45754
+ enableCamera = true,
45755
+ tileClickEvent,
45756
+ unitClickEvent,
45752
45757
  isLoading,
45753
45758
  error,
45754
45759
  className
45755
45760
  }) {
45756
- return /* @__PURE__ */ jsxs("div", { className: cn("holiday-runner-board relative w-full h-full", className), children: [
45757
- isLoading && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/40 z-10", children: /* @__PURE__ */ jsx("span", { className: "text-white text-sm", children: "Loading\u2026" }) }),
45758
- error && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60 z-10", children: /* @__PURE__ */ jsx("span", { className: "text-red-400 text-sm", children: error.message }) }),
45759
- /* @__PURE__ */ jsx(
45760
- GameCanvas2D,
45761
- {
45762
- width,
45763
- height,
45764
- fps,
45765
- backgroundImage: backgroundImage ?? "",
45766
- assetBaseUrl
45767
- }
45768
- )
45769
- ] });
45761
+ return /* @__PURE__ */ jsx("div", { className: cn("holiday-runner-board relative w-full h-full", className), children: /* @__PURE__ */ jsx(
45762
+ IsometricCanvas_default,
45763
+ {
45764
+ tileLayout: "flat",
45765
+ tiles,
45766
+ units,
45767
+ features,
45768
+ assetManifest,
45769
+ assetBaseUrl,
45770
+ scale,
45771
+ showMinimap,
45772
+ enableCamera,
45773
+ tileClickEvent,
45774
+ unitClickEvent,
45775
+ isLoading,
45776
+ error
45777
+ }
45778
+ ) });
45770
45779
  }
45771
45780
  var init_HolidayRunnerBoard = __esm({
45772
45781
  "components/game/organisms/HolidayRunnerBoard.tsx"() {
45773
45782
  "use client";
45774
45783
  init_cn();
45775
- init_GameCanvas2D();
45784
+ init_IsometricCanvas();
45776
45785
  HolidayRunnerBoard.displayName = "HolidayRunnerBoard";
45777
45786
  }
45778
45787
  });
@@ -47598,25 +47607,36 @@ var init_PricingPageTemplate = __esm({
47598
47607
  }
47599
47608
  });
47600
47609
  function RacingBoard({
47601
- backgroundImage,
47610
+ tiles,
47611
+ units,
47612
+ features,
47613
+ assetManifest,
47602
47614
  assetBaseUrl,
47603
- width = 800,
47604
- height = 600,
47605
- fps = 60,
47606
- tickEvent,
47607
- drawEvent,
47615
+ scale = 0.45,
47616
+ showMinimap = true,
47617
+ enableCamera = true,
47618
+ tileClickEvent,
47619
+ unitClickEvent,
47620
+ isLoading,
47621
+ error,
47608
47622
  className
47609
47623
  }) {
47610
47624
  return /* @__PURE__ */ jsx("div", { className: cn("racing-board relative w-full h-full", className), children: /* @__PURE__ */ jsx(
47611
- GameCanvas2D,
47625
+ IsometricCanvas_default,
47612
47626
  {
47613
- backgroundImage,
47627
+ tileLayout: "flat",
47628
+ tiles,
47629
+ units,
47630
+ features,
47631
+ assetManifest,
47614
47632
  assetBaseUrl,
47615
- width,
47616
- height,
47617
- fps,
47618
- tickEvent: typeof tickEvent === "string" ? tickEvent : void 0,
47619
- drawEvent: typeof drawEvent === "string" ? drawEvent : void 0
47633
+ scale,
47634
+ showMinimap,
47635
+ enableCamera,
47636
+ tileClickEvent,
47637
+ unitClickEvent,
47638
+ isLoading,
47639
+ error
47620
47640
  }
47621
47641
  ) });
47622
47642
  }
@@ -47624,7 +47644,7 @@ var init_RacingBoard = __esm({
47624
47644
  "components/game/organisms/RacingBoard.tsx"() {
47625
47645
  "use client";
47626
47646
  init_cn();
47627
- init_GameCanvas2D();
47647
+ init_IsometricCanvas();
47628
47648
  RacingBoard.displayName = "RacingBoard";
47629
47649
  }
47630
47650
  });
@@ -50923,35 +50943,44 @@ var init_SokobanBoard = __esm({
50923
50943
  }
50924
50944
  });
50925
50945
  function SpaceShmupBoard({
50926
- backgroundImage,
50946
+ tiles,
50947
+ units,
50948
+ features,
50949
+ assetManifest,
50927
50950
  assetBaseUrl,
50928
- width = 800,
50929
- height = 600,
50930
- fps = 60,
50951
+ scale = 0.45,
50952
+ showMinimap = false,
50953
+ enableCamera = true,
50954
+ tileClickEvent,
50955
+ unitClickEvent,
50931
50956
  isLoading,
50932
50957
  error,
50933
50958
  className
50934
50959
  }) {
50935
- return /* @__PURE__ */ jsxs("div", { className: cn("space-shmup-board relative w-full h-full", className), children: [
50936
- isLoading && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60 z-10", children: /* @__PURE__ */ jsx("span", { className: "text-white text-sm", children: "Loading\u2026" }) }),
50937
- error && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-red-900/60 z-10", children: /* @__PURE__ */ jsx("span", { className: "text-white text-sm", children: error.message }) }),
50938
- /* @__PURE__ */ jsx(
50939
- GameCanvas2D,
50940
- {
50941
- backgroundImage,
50942
- assetBaseUrl,
50943
- width,
50944
- height,
50945
- fps
50946
- }
50947
- )
50948
- ] });
50960
+ return /* @__PURE__ */ jsx("div", { className: cn("space-shmup-board relative w-full h-full", className), children: /* @__PURE__ */ jsx(
50961
+ IsometricCanvas_default,
50962
+ {
50963
+ tileLayout: "flat",
50964
+ tiles,
50965
+ units,
50966
+ features,
50967
+ assetManifest,
50968
+ assetBaseUrl,
50969
+ scale,
50970
+ showMinimap,
50971
+ enableCamera,
50972
+ tileClickEvent,
50973
+ unitClickEvent,
50974
+ isLoading,
50975
+ error
50976
+ }
50977
+ ) });
50949
50978
  }
50950
50979
  var init_SpaceShmupBoard = __esm({
50951
50980
  "components/game/organisms/SpaceShmupBoard.tsx"() {
50952
50981
  "use client";
50953
50982
  init_cn();
50954
- init_GameCanvas2D();
50983
+ init_IsometricCanvas();
50955
50984
  SpaceShmupBoard.displayName = "SpaceShmupBoard";
50956
50985
  }
50957
50986
  });
@@ -45045,35 +45045,44 @@ var init_HexStrategyBoard = __esm({
45045
45045
  }
45046
45046
  });
45047
45047
  function HolidayRunnerBoard({
45048
- backgroundImage,
45048
+ tiles,
45049
+ units,
45050
+ features,
45051
+ assetManifest,
45049
45052
  assetBaseUrl,
45050
- width = 800,
45051
- height = 400,
45052
- fps = 60,
45053
+ scale = 0.45,
45054
+ showMinimap = false,
45055
+ enableCamera = true,
45056
+ tileClickEvent,
45057
+ unitClickEvent,
45053
45058
  isLoading,
45054
45059
  error,
45055
45060
  className
45056
45061
  }) {
45057
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("holiday-runner-board relative w-full h-full", className), children: [
45058
- isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/40 z-10", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-white text-sm", children: "Loading\u2026" }) }),
45059
- error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60 z-10", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-red-400 text-sm", children: error.message }) }),
45060
- /* @__PURE__ */ jsxRuntime.jsx(
45061
- GameCanvas2D,
45062
- {
45063
- width,
45064
- height,
45065
- fps,
45066
- backgroundImage: backgroundImage ?? "",
45067
- assetBaseUrl
45068
- }
45069
- )
45070
- ] });
45062
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("holiday-runner-board relative w-full h-full", className), children: /* @__PURE__ */ jsxRuntime.jsx(
45063
+ IsometricCanvas_default,
45064
+ {
45065
+ tileLayout: "flat",
45066
+ tiles,
45067
+ units,
45068
+ features,
45069
+ assetManifest,
45070
+ assetBaseUrl,
45071
+ scale,
45072
+ showMinimap,
45073
+ enableCamera,
45074
+ tileClickEvent,
45075
+ unitClickEvent,
45076
+ isLoading,
45077
+ error
45078
+ }
45079
+ ) });
45071
45080
  }
45072
45081
  var init_HolidayRunnerBoard = __esm({
45073
45082
  "components/game/organisms/HolidayRunnerBoard.tsx"() {
45074
45083
  "use client";
45075
45084
  init_cn();
45076
- init_GameCanvas2D();
45085
+ init_IsometricCanvas();
45077
45086
  HolidayRunnerBoard.displayName = "HolidayRunnerBoard";
45078
45087
  }
45079
45088
  });
@@ -46791,25 +46800,36 @@ var init_PricingPageTemplate = __esm({
46791
46800
  }
46792
46801
  });
46793
46802
  function RacingBoard({
46794
- backgroundImage,
46803
+ tiles,
46804
+ units,
46805
+ features,
46806
+ assetManifest,
46795
46807
  assetBaseUrl,
46796
- width = 800,
46797
- height = 600,
46798
- fps = 60,
46799
- tickEvent,
46800
- drawEvent,
46808
+ scale = 0.45,
46809
+ showMinimap = true,
46810
+ enableCamera = true,
46811
+ tileClickEvent,
46812
+ unitClickEvent,
46813
+ isLoading,
46814
+ error,
46801
46815
  className
46802
46816
  }) {
46803
46817
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("racing-board relative w-full h-full", className), children: /* @__PURE__ */ jsxRuntime.jsx(
46804
- GameCanvas2D,
46818
+ IsometricCanvas_default,
46805
46819
  {
46806
- backgroundImage,
46820
+ tileLayout: "flat",
46821
+ tiles,
46822
+ units,
46823
+ features,
46824
+ assetManifest,
46807
46825
  assetBaseUrl,
46808
- width,
46809
- height,
46810
- fps,
46811
- tickEvent: typeof tickEvent === "string" ? tickEvent : void 0,
46812
- drawEvent: typeof drawEvent === "string" ? drawEvent : void 0
46826
+ scale,
46827
+ showMinimap,
46828
+ enableCamera,
46829
+ tileClickEvent,
46830
+ unitClickEvent,
46831
+ isLoading,
46832
+ error
46813
46833
  }
46814
46834
  ) });
46815
46835
  }
@@ -46817,7 +46837,7 @@ var init_RacingBoard = __esm({
46817
46837
  "components/game/organisms/RacingBoard.tsx"() {
46818
46838
  "use client";
46819
46839
  init_cn();
46820
- init_GameCanvas2D();
46840
+ init_IsometricCanvas();
46821
46841
  RacingBoard.displayName = "RacingBoard";
46822
46842
  }
46823
46843
  });
@@ -50050,35 +50070,44 @@ var init_SokobanBoard = __esm({
50050
50070
  }
50051
50071
  });
50052
50072
  function SpaceShmupBoard({
50053
- backgroundImage,
50073
+ tiles,
50074
+ units,
50075
+ features,
50076
+ assetManifest,
50054
50077
  assetBaseUrl,
50055
- width = 800,
50056
- height = 600,
50057
- fps = 60,
50078
+ scale = 0.45,
50079
+ showMinimap = false,
50080
+ enableCamera = true,
50081
+ tileClickEvent,
50082
+ unitClickEvent,
50058
50083
  isLoading,
50059
50084
  error,
50060
50085
  className
50061
50086
  }) {
50062
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("space-shmup-board relative w-full h-full", className), children: [
50063
- isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/60 z-10", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-white text-sm", children: "Loading\u2026" }) }),
50064
- error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-red-900/60 z-10", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-white text-sm", children: error.message }) }),
50065
- /* @__PURE__ */ jsxRuntime.jsx(
50066
- GameCanvas2D,
50067
- {
50068
- backgroundImage,
50069
- assetBaseUrl,
50070
- width,
50071
- height,
50072
- fps
50073
- }
50074
- )
50075
- ] });
50087
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("space-shmup-board relative w-full h-full", className), children: /* @__PURE__ */ jsxRuntime.jsx(
50088
+ IsometricCanvas_default,
50089
+ {
50090
+ tileLayout: "flat",
50091
+ tiles,
50092
+ units,
50093
+ features,
50094
+ assetManifest,
50095
+ assetBaseUrl,
50096
+ scale,
50097
+ showMinimap,
50098
+ enableCamera,
50099
+ tileClickEvent,
50100
+ unitClickEvent,
50101
+ isLoading,
50102
+ error
50103
+ }
50104
+ ) });
50076
50105
  }
50077
50106
  var init_SpaceShmupBoard = __esm({
50078
50107
  "components/game/organisms/SpaceShmupBoard.tsx"() {
50079
50108
  "use client";
50080
50109
  init_cn();
50081
- init_GameCanvas2D();
50110
+ init_IsometricCanvas();
50082
50111
  SpaceShmupBoard.displayName = "SpaceShmupBoard";
50083
50112
  }
50084
50113
  });