@almadar/mobile 1.2.6 → 1.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.
Files changed (154) hide show
  1. package/dist/chunk-4GLV4XIP.js +140 -0
  2. package/dist/chunk-4GLV4XIP.js.map +1 -0
  3. package/dist/{chunk-QUFLYKWA.js → chunk-A6AK75GP.js} +43 -554
  4. package/dist/chunk-A6AK75GP.js.map +1 -0
  5. package/dist/chunk-BUN5QD6C.js +525 -0
  6. package/dist/chunk-BUN5QD6C.js.map +1 -0
  7. package/dist/{chunk-PBO6ZN2M.js → chunk-C3USTXJ7.js} +1372 -2255
  8. package/dist/chunk-C3USTXJ7.js.map +1 -0
  9. package/dist/{chunk-5U5Z65ZO.js → chunk-DNC6CO6E.js} +58 -187
  10. package/dist/chunk-DNC6CO6E.js.map +1 -0
  11. package/dist/chunk-I6UYSB5R.js +935 -0
  12. package/dist/chunk-I6UYSB5R.js.map +1 -0
  13. package/dist/{chunk-ETD72PHO.js → chunk-SLYJ52HW.js} +30 -21
  14. package/dist/chunk-SLYJ52HW.js.map +1 -0
  15. package/dist/chunk-UIU7NWN2.js +924 -0
  16. package/dist/chunk-UIU7NWN2.js.map +1 -0
  17. package/dist/{chunk-BFRVXKSP.js → chunk-VNRKHWR7.js} +87 -4
  18. package/dist/chunk-VNRKHWR7.js.map +1 -0
  19. package/dist/{chunk-CA6Z3OTE.js → chunk-WHAG42QJ.js} +1 -1
  20. package/dist/chunk-WHAG42QJ.js.map +1 -0
  21. package/dist/{chunk-GMR5FKKB.js → chunk-XWPR5FXS.js} +2 -2
  22. package/dist/chunk-XWPR5FXS.js.map +1 -0
  23. package/dist/{chunk-MLTSQPVN.js → chunk-YWQRLHTP.js} +2 -2
  24. package/dist/chunk-YWQRLHTP.js.map +1 -0
  25. package/dist/components/atoms/Button.d.ts +3 -2
  26. package/dist/components/atoms/Button.d.ts.map +1 -1
  27. package/dist/components/atoms/Card.d.ts +3 -2
  28. package/dist/components/atoms/Card.d.ts.map +1 -1
  29. package/dist/components/atoms/Checkbox.d.ts +3 -2
  30. package/dist/components/atoms/Checkbox.d.ts.map +1 -1
  31. package/dist/components/atoms/DayCell.d.ts +3 -2
  32. package/dist/components/atoms/DayCell.d.ts.map +1 -1
  33. package/dist/components/atoms/InfiniteScrollSentinel.d.ts +3 -2
  34. package/dist/components/atoms/InfiniteScrollSentinel.d.ts.map +1 -1
  35. package/dist/components/atoms/Radio.d.ts +3 -2
  36. package/dist/components/atoms/Radio.d.ts.map +1 -1
  37. package/dist/components/atoms/RangeSlider.d.ts +3 -2
  38. package/dist/components/atoms/RangeSlider.d.ts.map +1 -1
  39. package/dist/components/atoms/Select.d.ts +3 -2
  40. package/dist/components/atoms/Select.d.ts.map +1 -1
  41. package/dist/components/atoms/Switch.d.ts +3 -2
  42. package/dist/components/atoms/Switch.d.ts.map +1 -1
  43. package/dist/components/atoms/TextHighlight.d.ts +3 -2
  44. package/dist/components/atoms/TextHighlight.d.ts.map +1 -1
  45. package/dist/components/atoms/game/OrbitalGameCanvas.d.ts +25 -0
  46. package/dist/components/atoms/game/OrbitalGameCanvas.d.ts.map +1 -0
  47. package/dist/components/atoms/game/index.d.ts +2 -0
  48. package/dist/components/atoms/game/index.d.ts.map +1 -1
  49. package/dist/components/atoms/index.d.ts +4 -4
  50. package/dist/components/atoms/index.d.ts.map +1 -1
  51. package/dist/components/atoms/index.js +14 -9
  52. package/dist/components/index.d.ts +1 -0
  53. package/dist/components/index.d.ts.map +1 -1
  54. package/dist/components/index.js +47 -20
  55. package/dist/components/molecules/Alert.d.ts +3 -2
  56. package/dist/components/molecules/Alert.d.ts.map +1 -1
  57. package/dist/components/molecules/DataGrid.d.ts +6 -5
  58. package/dist/components/molecules/DataGrid.d.ts.map +1 -1
  59. package/dist/components/molecules/DataList.d.ts +5 -4
  60. package/dist/components/molecules/DataList.d.ts.map +1 -1
  61. package/dist/components/molecules/NumberStepper.d.ts +3 -2
  62. package/dist/components/molecules/NumberStepper.d.ts.map +1 -1
  63. package/dist/components/molecules/PullToRefresh.d.ts +3 -2
  64. package/dist/components/molecules/PullToRefresh.d.ts.map +1 -1
  65. package/dist/components/molecules/RelationSelect.d.ts +3 -2
  66. package/dist/components/molecules/RelationSelect.d.ts.map +1 -1
  67. package/dist/components/molecules/RepeatableFormSection.d.ts +6 -5
  68. package/dist/components/molecules/RepeatableFormSection.d.ts.map +1 -1
  69. package/dist/components/molecules/SortableList.d.ts +2 -1
  70. package/dist/components/molecules/SortableList.d.ts.map +1 -1
  71. package/dist/components/molecules/StarRating.d.ts +3 -2
  72. package/dist/components/molecules/StarRating.d.ts.map +1 -1
  73. package/dist/components/molecules/SwipeableRow.d.ts +3 -2
  74. package/dist/components/molecules/SwipeableRow.d.ts.map +1 -1
  75. package/dist/components/molecules/Toast.d.ts +3 -2
  76. package/dist/components/molecules/Toast.d.ts.map +1 -1
  77. package/dist/components/molecules/index.js +9 -6
  78. package/dist/components/organisms/CardGrid.d.ts +6 -5
  79. package/dist/components/organisms/CardGrid.d.ts.map +1 -1
  80. package/dist/components/organisms/ComponentPatterns.d.ts.map +1 -1
  81. package/dist/components/organisms/ContentRenderer.d.ts.map +1 -1
  82. package/dist/components/organisms/DataTable.d.ts +2 -4
  83. package/dist/components/organisms/DataTable.d.ts.map +1 -1
  84. package/dist/components/organisms/DocumentViewer.d.ts.map +1 -1
  85. package/dist/components/organisms/DrawerSlot.d.ts +5 -4
  86. package/dist/components/organisms/DrawerSlot.d.ts.map +1 -1
  87. package/dist/components/organisms/FormSection.d.ts +8 -1
  88. package/dist/components/organisms/FormSection.d.ts.map +1 -1
  89. package/dist/components/organisms/Header.d.ts +3 -2
  90. package/dist/components/organisms/Header.d.ts.map +1 -1
  91. package/dist/components/organisms/LayoutPatterns.d.ts.map +1 -1
  92. package/dist/components/organisms/MasterDetail.d.ts.map +1 -1
  93. package/dist/components/organisms/MediaGallery.d.ts +2 -1
  94. package/dist/components/organisms/MediaGallery.d.ts.map +1 -1
  95. package/dist/components/organisms/ModalSlot.d.ts +5 -4
  96. package/dist/components/organisms/ModalSlot.d.ts.map +1 -1
  97. package/dist/components/organisms/PageHeader.d.ts +7 -0
  98. package/dist/components/organisms/PageHeader.d.ts.map +1 -1
  99. package/dist/components/organisms/SignaturePad.d.ts.map +1 -1
  100. package/dist/components/organisms/StatCard.d.ts +3 -2
  101. package/dist/components/organisms/StatCard.d.ts.map +1 -1
  102. package/dist/components/organisms/StateMachineView.d.ts.map +1 -1
  103. package/dist/components/organisms/Table.d.ts.map +1 -1
  104. package/dist/components/organisms/ToastSlot.d.ts +6 -5
  105. package/dist/components/organisms/ToastSlot.d.ts.map +1 -1
  106. package/dist/components/organisms/UISlotRenderer.d.ts +2 -1
  107. package/dist/components/organisms/UISlotRenderer.d.ts.map +1 -1
  108. package/dist/components/organisms/book/BookChapterView.d.ts +2 -1
  109. package/dist/components/organisms/book/BookChapterView.d.ts.map +1 -1
  110. package/dist/components/organisms/book/BookCoverPage.d.ts +2 -1
  111. package/dist/components/organisms/book/BookCoverPage.d.ts.map +1 -1
  112. package/dist/components/organisms/book/BookNavBar.d.ts +2 -1
  113. package/dist/components/organisms/book/BookNavBar.d.ts.map +1 -1
  114. package/dist/components/organisms/book/BookTableOfContents.d.ts +2 -1
  115. package/dist/components/organisms/book/BookTableOfContents.d.ts.map +1 -1
  116. package/dist/components/organisms/book/BookViewer.d.ts +2 -1
  117. package/dist/components/organisms/book/BookViewer.d.ts.map +1 -1
  118. package/dist/components/organisms/game/DialogueBox.d.ts.map +1 -1
  119. package/dist/components/organisms/game/InventoryPanel.d.ts.map +1 -1
  120. package/dist/components/organisms/game/physics-sim/SimulationCanvas.d.ts.map +1 -1
  121. package/dist/components/organisms/game/puzzles/sequencer/ActionPalette.d.ts.map +1 -1
  122. package/dist/components/organisms/game/puzzles/sequencer/ActionTile.d.ts.map +1 -1
  123. package/dist/components/organisms/game/puzzles/sequencer/SequenceBar.d.ts.map +1 -1
  124. package/dist/components/organisms/game/puzzles/state-architect/CodeView.d.ts.map +1 -1
  125. package/dist/components/organisms/game/puzzles/state-architect/StateArchitectBoard.d.ts.map +1 -1
  126. package/dist/components/organisms/game/puzzles/state-architect/StateNode.d.ts.map +1 -1
  127. package/dist/components/organisms/game/puzzles/state-architect/TransitionArrow.d.ts.map +1 -1
  128. package/dist/components/organisms/game/puzzles/state-architect/VariablePanel.d.ts.map +1 -1
  129. package/dist/components/organisms/index.d.ts +1 -1
  130. package/dist/components/organisms/index.d.ts.map +1 -1
  131. package/dist/components/organisms/index.js +14 -10
  132. package/dist/components/organisms/layout/DashboardGrid.d.ts +3 -2
  133. package/dist/components/organisms/layout/DashboardGrid.d.ts.map +1 -1
  134. package/dist/components/templates/BattleTemplate.d.ts.map +1 -1
  135. package/dist/components/templates/index.js +26 -0
  136. package/dist/components/templates/index.js.map +1 -0
  137. package/dist/hooks/index.js +1 -1
  138. package/dist/hooks/useTraitState.d.ts +3 -3
  139. package/dist/hooks/useTraitState.d.ts.map +1 -1
  140. package/dist/index.d.ts +1 -0
  141. package/dist/index.d.ts.map +1 -1
  142. package/dist/index.js +43 -910
  143. package/dist/index.js.map +1 -1
  144. package/dist/types/index.d.ts +7 -0
  145. package/dist/types/index.d.ts.map +1 -0
  146. package/package.json +14 -16
  147. package/dist/chunk-5U5Z65ZO.js.map +0 -1
  148. package/dist/chunk-BFRVXKSP.js.map +0 -1
  149. package/dist/chunk-CA6Z3OTE.js.map +0 -1
  150. package/dist/chunk-ETD72PHO.js.map +0 -1
  151. package/dist/chunk-GMR5FKKB.js.map +0 -1
  152. package/dist/chunk-MLTSQPVN.js.map +0 -1
  153. package/dist/chunk-PBO6ZN2M.js.map +0 -1
  154. package/dist/chunk-QUFLYKWA.js.map +0 -1
@@ -0,0 +1,935 @@
1
+ import {
2
+ StatBadge
3
+ } from "./chunk-4GLV4XIP.js";
4
+ import {
5
+ Card,
6
+ ErrorState,
7
+ HStack,
8
+ LoadingState,
9
+ Typography,
10
+ VStack
11
+ } from "./chunk-A6AK75GP.js";
12
+ import {
13
+ useEventBus
14
+ } from "./chunk-YTVYMEKU.js";
15
+ import {
16
+ useTheme
17
+ } from "./chunk-CUAWHLEK.js";
18
+
19
+ // src/components/organisms/Header.tsx
20
+ import React from "react";
21
+ import {
22
+ TouchableOpacity,
23
+ StyleSheet,
24
+ StatusBar,
25
+ SafeAreaView
26
+ } from "react-native";
27
+ var Header = ({
28
+ title,
29
+ showBackButton = false,
30
+ onBack,
31
+ backAction,
32
+ rightActions = [],
33
+ leftElement,
34
+ style,
35
+ isLoading,
36
+ error
37
+ }) => {
38
+ const theme = useTheme();
39
+ const eventBus = useEventBus();
40
+ const handleBack = () => {
41
+ if (backAction) {
42
+ eventBus.emit(`UI:${backAction}`);
43
+ }
44
+ onBack?.();
45
+ };
46
+ const handleAction = (action) => {
47
+ if (action.action) {
48
+ eventBus.emit(`UI:${action.action}`, action.actionPayload);
49
+ }
50
+ action.onPress?.();
51
+ };
52
+ if (isLoading) {
53
+ return /* @__PURE__ */ React.createElement(SafeAreaView, { style: [styles.container, { backgroundColor: theme.colors.card }, style] }, /* @__PURE__ */ React.createElement(StatusBar, { barStyle: "dark-content", backgroundColor: theme.colors.card }), /* @__PURE__ */ React.createElement(LoadingState, { message: "Loading..." }));
54
+ }
55
+ if (error) {
56
+ return /* @__PURE__ */ React.createElement(SafeAreaView, { style: [styles.container, { backgroundColor: theme.colors.card }, style] }, /* @__PURE__ */ React.createElement(StatusBar, { barStyle: "dark-content", backgroundColor: theme.colors.card }), /* @__PURE__ */ React.createElement(ErrorState, { message: error.message }));
57
+ }
58
+ return /* @__PURE__ */ React.createElement(SafeAreaView, { style: [styles.container, { backgroundColor: theme.colors.card }, style] }, /* @__PURE__ */ React.createElement(StatusBar, { barStyle: "dark-content", backgroundColor: theme.colors.card }), /* @__PURE__ */ React.createElement(HStack, { align: "center", justify: "space-between", style: styles.content }, /* @__PURE__ */ React.createElement(HStack, { align: "center", spacing: 8, style: styles.left }, showBackButton && /* @__PURE__ */ React.createElement(
59
+ TouchableOpacity,
60
+ {
61
+ onPress: handleBack,
62
+ style: styles.backButton
63
+ },
64
+ /* @__PURE__ */ React.createElement(Typography, { variant: "h4", style: { color: theme.colors.primary } }, "\u2190")
65
+ ), leftElement, title && /* @__PURE__ */ React.createElement(Typography, { variant: "h4", style: { color: theme.colors.foreground } }, title)), rightActions.length > 0 && /* @__PURE__ */ React.createElement(HStack, { align: "center", spacing: 12 }, rightActions.map((action, index) => /* @__PURE__ */ React.createElement(
66
+ TouchableOpacity,
67
+ {
68
+ key: index,
69
+ onPress: () => handleAction(action),
70
+ style: styles.actionButton
71
+ },
72
+ action.icon || action.label && /* @__PURE__ */ React.createElement(Typography, { variant: "body", style: { color: theme.colors.primary } }, action.label)
73
+ )))));
74
+ };
75
+ var styles = StyleSheet.create({
76
+ container: {
77
+ width: "100%",
78
+ shadowColor: "#000",
79
+ shadowOffset: { width: 0, height: 2 },
80
+ shadowOpacity: 0.1,
81
+ shadowRadius: 2,
82
+ elevation: 3,
83
+ zIndex: 100
84
+ },
85
+ content: {
86
+ height: 56,
87
+ paddingHorizontal: 16
88
+ },
89
+ left: {
90
+ flex: 1
91
+ },
92
+ backButton: {
93
+ padding: 8,
94
+ marginLeft: -8
95
+ },
96
+ actionButton: {
97
+ padding: 8
98
+ }
99
+ });
100
+ Header.displayName = "Header";
101
+
102
+ // src/components/organisms/game/BattleBoard.tsx
103
+ import React2 from "react";
104
+ import {
105
+ View,
106
+ Text,
107
+ TouchableOpacity as TouchableOpacity2,
108
+ StyleSheet as StyleSheet2
109
+ } from "react-native";
110
+ var BattleBoard = ({
111
+ units,
112
+ activeUnitId,
113
+ selectedUnitId,
114
+ turn = 1,
115
+ actions = [],
116
+ onSelectUnit,
117
+ onAction,
118
+ selectUnitEvent,
119
+ actionEvent,
120
+ style
121
+ }) => {
122
+ useTheme();
123
+ const eventBus = useEventBus();
124
+ const handleSelectUnit = (unitId) => {
125
+ if (selectUnitEvent) eventBus.emit(`UI:${selectUnitEvent}`, { unitId });
126
+ onSelectUnit?.(unitId);
127
+ };
128
+ const handleAction = (action) => {
129
+ if (actionEvent) eventBus.emit(`UI:${actionEvent}`, { action });
130
+ onAction?.(action);
131
+ };
132
+ const playerUnits = units.filter((u) => u.isPlayer);
133
+ const enemyUnits = units.filter((u) => !u.isPlayer);
134
+ const renderUnit = (unit) => {
135
+ const isActive = unit.id === activeUnitId;
136
+ const isSelected = unit.id === selectedUnitId;
137
+ const hpPercent = unit.hp / unit.maxHp * 100;
138
+ return /* @__PURE__ */ React2.createElement(
139
+ TouchableOpacity2,
140
+ {
141
+ key: unit.id,
142
+ onPress: () => handleSelectUnit(unit.id),
143
+ style: [
144
+ styles2.unitCard,
145
+ {
146
+ backgroundColor: unit.isDead ? "#374151" : "#1f2937",
147
+ borderColor: isActive ? "#fbbf24" : isSelected ? "#3b82f6" : "#4b5563",
148
+ borderWidth: isActive ? 2 : isSelected ? 2 : 1,
149
+ opacity: unit.isDead ? 0.6 : 1
150
+ }
151
+ ]
152
+ },
153
+ /* @__PURE__ */ React2.createElement(View, { style: styles2.avatar }, /* @__PURE__ */ React2.createElement(Text, { style: styles2.avatarText }, unit.avatar || (unit.isPlayer ? "\u{1F9D9}" : "\u{1F479}"))),
154
+ /* @__PURE__ */ React2.createElement(VStack, { spacing: 4, style: styles2.unitInfo }, /* @__PURE__ */ React2.createElement(Text, { style: styles2.unitName, numberOfLines: 1 }, unit.name), /* @__PURE__ */ React2.createElement(View, { style: styles2.barContainer }, /* @__PURE__ */ React2.createElement(View, { style: [styles2.hpBar, { width: `${hpPercent}%` }] })), /* @__PURE__ */ React2.createElement(Text, { style: styles2.hpText }, unit.hp, "/", unit.maxHp, " HP"), unit.mp !== void 0 && unit.maxMp !== void 0 && /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(View, { style: styles2.barContainer }, /* @__PURE__ */ React2.createElement(
155
+ View,
156
+ {
157
+ style: [
158
+ styles2.mpBar,
159
+ { width: `${unit.mp / unit.maxMp * 100}%` }
160
+ ]
161
+ }
162
+ )), /* @__PURE__ */ React2.createElement(Text, { style: styles2.mpText }, unit.mp, "/", unit.maxMp, " MP")), unit.status && unit.status.length > 0 && /* @__PURE__ */ React2.createElement(HStack, { spacing: 4, style: styles2.statusContainer }, unit.status.map((s, i) => /* @__PURE__ */ React2.createElement(Text, { key: i, style: styles2.statusBadge }, s))))
163
+ );
164
+ };
165
+ return /* @__PURE__ */ React2.createElement(Card, { style: [styles2.container, ...style ? [style] : []] }, /* @__PURE__ */ React2.createElement(VStack, { spacing: 16 }, /* @__PURE__ */ React2.createElement(View, { style: styles2.turnBar }, /* @__PURE__ */ React2.createElement(Typography, { variant: "h4", style: { color: "#fbbf24" } }, "TURN ", turn), activeUnitId && /* @__PURE__ */ React2.createElement(Text, { style: styles2.activeText }, "Active: ", units.find((u) => u.id === activeUnitId)?.name)), /* @__PURE__ */ React2.createElement(View, { style: styles2.battlefield }, /* @__PURE__ */ React2.createElement(VStack, { spacing: 8, style: styles2.side }, /* @__PURE__ */ React2.createElement(Text, { style: styles2.sideLabel }, "ALLIES"), playerUnits.map(renderUnit)), /* @__PURE__ */ React2.createElement(View, { style: styles2.vsDivider }, /* @__PURE__ */ React2.createElement(Text, { style: styles2.vsText }, "VS")), /* @__PURE__ */ React2.createElement(VStack, { spacing: 8, style: styles2.side }, /* @__PURE__ */ React2.createElement(Text, { style: styles2.sideLabel }, "ENEMIES"), enemyUnits.map(renderUnit))), actions.length > 0 && /* @__PURE__ */ React2.createElement(View, { style: styles2.actionBar }, /* @__PURE__ */ React2.createElement(HStack, { spacing: 8, style: styles2.actionContainer }, actions.map((action) => /* @__PURE__ */ React2.createElement(
166
+ TouchableOpacity2,
167
+ {
168
+ key: action,
169
+ onPress: () => handleAction(action),
170
+ style: styles2.actionButton
171
+ },
172
+ /* @__PURE__ */ React2.createElement(Text, { style: styles2.actionText }, action.toUpperCase())
173
+ ))))));
174
+ };
175
+ var styles2 = StyleSheet2.create({
176
+ container: {
177
+ padding: 16
178
+ },
179
+ turnBar: {
180
+ flexDirection: "row",
181
+ justifyContent: "space-between",
182
+ alignItems: "center",
183
+ paddingHorizontal: 16,
184
+ paddingVertical: 12,
185
+ backgroundColor: "#111827",
186
+ borderRadius: 8
187
+ },
188
+ activeText: {
189
+ color: "#9ca3af",
190
+ fontSize: 14
191
+ },
192
+ battlefield: {
193
+ flexDirection: "row",
194
+ justifyContent: "space-between",
195
+ gap: 16
196
+ },
197
+ side: {
198
+ flex: 1
199
+ },
200
+ sideLabel: {
201
+ color: "#6b7280",
202
+ fontSize: 12,
203
+ fontWeight: "700",
204
+ textAlign: "center",
205
+ marginBottom: 8
206
+ },
207
+ vsDivider: {
208
+ justifyContent: "center",
209
+ alignItems: "center"
210
+ },
211
+ vsText: {
212
+ color: "#ef4444",
213
+ fontSize: 20,
214
+ fontWeight: "800"
215
+ },
216
+ unitCard: {
217
+ flexDirection: "row",
218
+ padding: 12,
219
+ borderRadius: 8,
220
+ borderWidth: 1,
221
+ gap: 12
222
+ },
223
+ avatar: {
224
+ width: 48,
225
+ height: 48,
226
+ borderRadius: 24,
227
+ backgroundColor: "#374151",
228
+ justifyContent: "center",
229
+ alignItems: "center"
230
+ },
231
+ avatarText: {
232
+ fontSize: 24
233
+ },
234
+ unitInfo: {
235
+ flex: 1
236
+ },
237
+ unitName: {
238
+ color: "#fff",
239
+ fontSize: 14,
240
+ fontWeight: "600"
241
+ },
242
+ barContainer: {
243
+ height: 6,
244
+ backgroundColor: "#374151",
245
+ borderRadius: 3,
246
+ overflow: "hidden"
247
+ },
248
+ hpBar: {
249
+ height: "100%",
250
+ backgroundColor: "#22c55e"
251
+ },
252
+ mpBar: {
253
+ height: "100%",
254
+ backgroundColor: "#3b82f6"
255
+ },
256
+ hpText: {
257
+ color: "#9ca3af",
258
+ fontSize: 10
259
+ },
260
+ mpText: {
261
+ color: "#6b7280",
262
+ fontSize: 10
263
+ },
264
+ statusContainer: {
265
+ flexWrap: "wrap"
266
+ },
267
+ statusBadge: {
268
+ backgroundColor: "#6b7280",
269
+ color: "#fff",
270
+ fontSize: 10,
271
+ paddingHorizontal: 4,
272
+ paddingVertical: 2,
273
+ borderRadius: 4
274
+ },
275
+ actionBar: {
276
+ padding: 12,
277
+ backgroundColor: "#111827",
278
+ borderRadius: 8
279
+ },
280
+ actionContainer: {
281
+ justifyContent: "center",
282
+ flexWrap: "wrap"
283
+ },
284
+ actionButton: {
285
+ backgroundColor: "#374151",
286
+ paddingHorizontal: 16,
287
+ paddingVertical: 10,
288
+ borderRadius: 6
289
+ },
290
+ actionText: {
291
+ color: "#fff",
292
+ fontWeight: "600",
293
+ fontSize: 14
294
+ }
295
+ });
296
+ BattleBoard.displayName = "BattleBoard";
297
+
298
+ // src/components/organisms/game/CastleBoard.tsx
299
+ import React3 from "react";
300
+ import {
301
+ View as View2,
302
+ Text as Text2,
303
+ TouchableOpacity as TouchableOpacity3,
304
+ StyleSheet as StyleSheet3,
305
+ ScrollView
306
+ } from "react-native";
307
+ var CastleBoard = ({
308
+ rooms,
309
+ currentRoomId,
310
+ onSelectRoom,
311
+ selectRoomEvent,
312
+ title,
313
+ style
314
+ }) => {
315
+ useTheme();
316
+ const eventBus = useEventBus();
317
+ const handleSelectRoom = (roomId) => {
318
+ if (selectRoomEvent) eventBus.emit(`UI:${selectRoomEvent}`, { roomId });
319
+ onSelectRoom?.(roomId);
320
+ };
321
+ const roomsByLevel = rooms.reduce((acc, room) => {
322
+ const level = room.level || 1;
323
+ if (!acc[level]) acc[level] = [];
324
+ acc[level].push(room);
325
+ return acc;
326
+ }, {});
327
+ const sortedLevels = Object.keys(roomsByLevel).map(Number).sort((a, b) => b - a);
328
+ const renderRoom = (room) => {
329
+ const isCurrent = room.id === currentRoomId;
330
+ const isUnlocked = room.unlocked !== false;
331
+ const isVisited = room.visited;
332
+ return /* @__PURE__ */ React3.createElement(
333
+ TouchableOpacity3,
334
+ {
335
+ key: room.id,
336
+ onPress: () => isUnlocked && handleSelectRoom(room.id),
337
+ disabled: !isUnlocked,
338
+ style: [
339
+ styles3.room,
340
+ {
341
+ backgroundColor: isCurrent ? "#fbbf24" : isVisited ? "#374151" : "#1f2937",
342
+ borderColor: isCurrent ? "#f59e0b" : isUnlocked ? "#4b5563" : "#1f2937",
343
+ borderWidth: 2,
344
+ opacity: isUnlocked ? 1 : 0.4
345
+ }
346
+ ]
347
+ },
348
+ /* @__PURE__ */ React3.createElement(Text2, { style: { fontSize: 24 } }, isUnlocked ? room.icon || "\u{1F6AA}" : "\u{1F512}"),
349
+ /* @__PURE__ */ React3.createElement(
350
+ Text2,
351
+ {
352
+ style: [
353
+ styles3.roomName,
354
+ { color: isCurrent ? "#000" : "#fff" }
355
+ ],
356
+ numberOfLines: 1
357
+ },
358
+ isUnlocked ? room.name : "???"
359
+ )
360
+ );
361
+ };
362
+ const currentRoom = rooms.find((r) => r.id === currentRoomId);
363
+ return /* @__PURE__ */ React3.createElement(Card, { style: [styles3.container, ...style ? [style] : []] }, /* @__PURE__ */ React3.createElement(VStack, { spacing: 16 }, /* @__PURE__ */ React3.createElement(View2, { style: styles3.header }, /* @__PURE__ */ React3.createElement(Typography, { variant: "h3", style: { color: "#fff" } }, title || "\u{1F3F0} Castle"), currentRoom && /* @__PURE__ */ React3.createElement(Text2, { style: styles3.currentRoom }, "Location: ", currentRoom.name)), /* @__PURE__ */ React3.createElement(
364
+ ScrollView,
365
+ {
366
+ style: styles3.mapContainer,
367
+ contentContainerStyle: styles3.mapContent,
368
+ showsVerticalScrollIndicator: false
369
+ },
370
+ sortedLevels.map((level) => /* @__PURE__ */ React3.createElement(View2, { key: level, style: styles3.floor }, /* @__PURE__ */ React3.createElement(Text2, { style: styles3.floorLabel }, "F", level), /* @__PURE__ */ React3.createElement(HStack, { spacing: 12, style: styles3.floorRooms }, roomsByLevel[level].map(renderRoom))))
371
+ ), currentRoom && /* @__PURE__ */ React3.createElement(View2, { style: styles3.roomInfo }, /* @__PURE__ */ React3.createElement(Typography, { variant: "h4", style: { color: "#fbbf24" } }, currentRoom.icon, " ", currentRoom.name), currentRoom.description && /* @__PURE__ */ React3.createElement(Text2, { style: styles3.description }, currentRoom.description), /* @__PURE__ */ React3.createElement(Text2, { style: styles3.connections }, "Connections: ", currentRoom.connections?.length || 0))));
372
+ };
373
+ var styles3 = StyleSheet3.create({
374
+ container: {
375
+ padding: 16
376
+ },
377
+ header: {
378
+ flexDirection: "row",
379
+ justifyContent: "space-between",
380
+ alignItems: "center",
381
+ paddingBottom: 12,
382
+ borderBottomWidth: 1,
383
+ borderBottomColor: "#374151"
384
+ },
385
+ currentRoom: {
386
+ color: "#9ca3af",
387
+ fontSize: 12
388
+ },
389
+ mapContainer: {
390
+ maxHeight: 300
391
+ },
392
+ mapContent: {
393
+ paddingVertical: 8
394
+ },
395
+ floor: {
396
+ flexDirection: "row",
397
+ alignItems: "center",
398
+ gap: 12,
399
+ marginBottom: 16
400
+ },
401
+ floorLabel: {
402
+ color: "#6b7280",
403
+ fontSize: 12,
404
+ fontWeight: "700",
405
+ width: 24
406
+ },
407
+ floorRooms: {
408
+ flexWrap: "wrap"
409
+ },
410
+ room: {
411
+ width: 80,
412
+ height: 80,
413
+ borderRadius: 8,
414
+ justifyContent: "center",
415
+ alignItems: "center",
416
+ gap: 4
417
+ },
418
+ roomName: {
419
+ fontSize: 10,
420
+ fontWeight: "600",
421
+ textAlign: "center",
422
+ maxWidth: 70
423
+ },
424
+ roomInfo: {
425
+ padding: 12,
426
+ backgroundColor: "#111827",
427
+ borderRadius: 8,
428
+ gap: 8
429
+ },
430
+ description: {
431
+ color: "#9ca3af",
432
+ fontSize: 14,
433
+ lineHeight: 20
434
+ },
435
+ connections: {
436
+ color: "#6b7280",
437
+ fontSize: 12
438
+ }
439
+ });
440
+ CastleBoard.displayName = "CastleBoard";
441
+
442
+ // src/components/organisms/game/GameHud.tsx
443
+ import React4 from "react";
444
+ import { View as View3, StyleSheet as StyleSheet4 } from "react-native";
445
+ function convertElementsToStats(elements) {
446
+ return elements.map((el) => {
447
+ const [source, field] = el.bind?.split(".") ?? [];
448
+ const labelMap = {
449
+ "health-bar": "Health",
450
+ "score-display": "Score",
451
+ lives: "Lives",
452
+ timer: "Time"
453
+ };
454
+ return {
455
+ label: el.label || labelMap[el.type] || el.type,
456
+ source,
457
+ field
458
+ };
459
+ });
460
+ }
461
+ var GameHud = ({
462
+ position: propPosition,
463
+ stats: propStats,
464
+ items,
465
+ elements,
466
+ size = "md",
467
+ style,
468
+ transparent = true
469
+ }) => {
470
+ const stats = propStats ?? items ?? (elements ? convertElementsToStats(elements) : []);
471
+ const position = propPosition ?? "corners";
472
+ if (position === "corners") {
473
+ const leftStats = stats.slice(0, Math.ceil(stats.length / 2));
474
+ const rightStats = stats.slice(Math.ceil(stats.length / 2));
475
+ return /* @__PURE__ */ React4.createElement(View3, { style: [styles4.cornersContainer, ...style ? [style] : []] }, /* @__PURE__ */ React4.createElement(View3, { style: styles4.topLeft }, leftStats.map((stat, i) => /* @__PURE__ */ React4.createElement(StatBadge, { key: i, ...stat, size }))), /* @__PURE__ */ React4.createElement(View3, { style: styles4.topRight }, rightStats.map((stat, i) => /* @__PURE__ */ React4.createElement(StatBadge, { key: i, ...stat, size }))));
476
+ }
477
+ const positionStyle = position === "bottom" ? styles4.bottomPosition : styles4.topPosition;
478
+ return /* @__PURE__ */ React4.createElement(
479
+ View3,
480
+ {
481
+ style: [
482
+ styles4.container,
483
+ positionStyle,
484
+ transparent && styles4.transparent,
485
+ ...style ? [style] : []
486
+ ]
487
+ },
488
+ /* @__PURE__ */ React4.createElement(View3, { style: styles4.statsRow }, stats.map((stat, i) => /* @__PURE__ */ React4.createElement(StatBadge, { key: i, ...stat, size })))
489
+ );
490
+ };
491
+ var styles4 = StyleSheet4.create({
492
+ container: {
493
+ position: "absolute",
494
+ left: 0,
495
+ right: 0,
496
+ zIndex: 10,
497
+ padding: 16
498
+ },
499
+ topPosition: {
500
+ top: 0
501
+ },
502
+ bottomPosition: {
503
+ bottom: 0
504
+ },
505
+ transparent: {
506
+ backgroundColor: "rgba(0,0,0,0.5)"
507
+ },
508
+ cornersContainer: {
509
+ position: "absolute",
510
+ top: 0,
511
+ left: 0,
512
+ right: 0,
513
+ bottom: 0,
514
+ pointerEvents: "none"
515
+ },
516
+ topLeft: {
517
+ position: "absolute",
518
+ top: 16,
519
+ left: 16,
520
+ gap: 8,
521
+ pointerEvents: "auto"
522
+ },
523
+ topRight: {
524
+ position: "absolute",
525
+ top: 16,
526
+ right: 16,
527
+ gap: 8,
528
+ alignItems: "flex-end",
529
+ pointerEvents: "auto"
530
+ },
531
+ statsRow: {
532
+ flexDirection: "row",
533
+ gap: 16
534
+ }
535
+ });
536
+ GameHud.displayName = "GameHud";
537
+
538
+ // src/components/organisms/game/GameMenu.tsx
539
+ import React5 from "react";
540
+ import {
541
+ View as View4,
542
+ Text as Text3,
543
+ TouchableOpacity as TouchableOpacity4,
544
+ StyleSheet as StyleSheet5,
545
+ Image,
546
+ ImageBackground,
547
+ Dimensions
548
+ } from "react-native";
549
+ var { width, height } = Dimensions.get("window");
550
+ var GameMenu = ({
551
+ title,
552
+ subtitle,
553
+ options = [],
554
+ menuItems,
555
+ onSelect,
556
+ eventBus,
557
+ background,
558
+ logo,
559
+ style
560
+ }) => {
561
+ const theme = useTheme();
562
+ const defaultEventBus = useEventBus();
563
+ const bus = eventBus || defaultEventBus;
564
+ const items = menuItems || options;
565
+ const handleOptionPress = React5.useCallback((option) => {
566
+ if (option.disabled) return;
567
+ if (option.event) {
568
+ bus.emit(`UI:${option.event}`, option);
569
+ }
570
+ if (option.navigatesTo) {
571
+ bus.emit("UI:navigate", { to: option.navigatesTo });
572
+ }
573
+ onSelect?.(option);
574
+ }, [onSelect, bus]);
575
+ const getVariantStyle = (variant) => {
576
+ switch (variant) {
577
+ case "primary":
578
+ return {
579
+ backgroundColor: theme.colors.primary,
580
+ borderColor: theme.colors.primary
581
+ };
582
+ case "secondary":
583
+ return {
584
+ backgroundColor: "transparent",
585
+ borderColor: theme.colors.primary
586
+ };
587
+ case "ghost":
588
+ return {
589
+ backgroundColor: "transparent",
590
+ borderColor: "transparent"
591
+ };
592
+ default:
593
+ return {
594
+ backgroundColor: "#374151",
595
+ borderColor: "#4b5563"
596
+ };
597
+ }
598
+ };
599
+ const content = /* @__PURE__ */ React5.createElement(
600
+ VStack,
601
+ {
602
+ spacing: 24,
603
+ align: "center",
604
+ justify: "center",
605
+ style: [styles5.container, ...style ? [style] : []]
606
+ },
607
+ logo && /* @__PURE__ */ React5.createElement(
608
+ Image,
609
+ {
610
+ source: { uri: logo },
611
+ style: styles5.logo,
612
+ resizeMode: "contain"
613
+ }
614
+ ),
615
+ /* @__PURE__ */ React5.createElement(VStack, { spacing: 8, align: "center" }, /* @__PURE__ */ React5.createElement(
616
+ Typography,
617
+ {
618
+ variant: "h1",
619
+ style: {
620
+ fontSize: 36,
621
+ color: "#fff",
622
+ textShadowColor: "rgba(0,0,0,0.5)",
623
+ textShadowOffset: { width: 0, height: 2 },
624
+ textShadowRadius: 4
625
+ }
626
+ },
627
+ title
628
+ ), subtitle && /* @__PURE__ */ React5.createElement(
629
+ Typography,
630
+ {
631
+ variant: "h4",
632
+ style: { color: "#9ca3af" }
633
+ },
634
+ subtitle
635
+ )),
636
+ /* @__PURE__ */ React5.createElement(VStack, { spacing: 12, style: styles5.optionsContainer }, items.map((option, index) => /* @__PURE__ */ React5.createElement(
637
+ TouchableOpacity4,
638
+ {
639
+ key: option.id || index,
640
+ onPress: () => handleOptionPress(option),
641
+ disabled: option.disabled,
642
+ style: [
643
+ styles5.optionButton,
644
+ getVariantStyle(option.variant),
645
+ option.disabled && styles5.optionDisabled
646
+ ]
647
+ },
648
+ /* @__PURE__ */ React5.createElement(VStack, { spacing: 2, align: "center" }, /* @__PURE__ */ React5.createElement(Text3, { style: [
649
+ styles5.optionLabel,
650
+ option.variant === "primary" && styles5.optionLabelPrimary
651
+ ] }, option.label), option.subLabel && /* @__PURE__ */ React5.createElement(Text3, { style: styles5.optionSubLabel }, option.subLabel))
652
+ )))
653
+ );
654
+ if (background) {
655
+ return /* @__PURE__ */ React5.createElement(
656
+ ImageBackground,
657
+ {
658
+ source: { uri: background },
659
+ style: styles5.background,
660
+ resizeMode: "cover"
661
+ },
662
+ /* @__PURE__ */ React5.createElement(View4, { style: styles5.overlay }, content)
663
+ );
664
+ }
665
+ return /* @__PURE__ */ React5.createElement(View4, { style: [styles5.background, { backgroundColor: "#0f172a" }] }, content);
666
+ };
667
+ var styles5 = StyleSheet5.create({
668
+ background: {
669
+ flex: 1,
670
+ width,
671
+ height
672
+ },
673
+ overlay: {
674
+ flex: 1,
675
+ backgroundColor: "rgba(0,0,0,0.4)",
676
+ justifyContent: "center",
677
+ alignItems: "center"
678
+ },
679
+ container: {
680
+ padding: 24
681
+ },
682
+ logo: {
683
+ width: 120,
684
+ height: 120
685
+ },
686
+ optionsContainer: {
687
+ width: "100%",
688
+ maxWidth: 320
689
+ },
690
+ optionButton: {
691
+ paddingVertical: 16,
692
+ paddingHorizontal: 32,
693
+ borderRadius: 8,
694
+ borderWidth: 2,
695
+ alignItems: "center"
696
+ },
697
+ optionDisabled: {
698
+ opacity: 0.5
699
+ },
700
+ optionLabel: {
701
+ color: "#fff",
702
+ fontSize: 18,
703
+ fontWeight: "600"
704
+ },
705
+ optionLabelPrimary: {
706
+ fontWeight: "700"
707
+ },
708
+ optionSubLabel: {
709
+ color: "#9ca3af",
710
+ fontSize: 12
711
+ }
712
+ });
713
+ GameMenu.displayName = "GameMenu";
714
+
715
+ // src/components/organisms/game/WorldMapBoard.tsx
716
+ import React6 from "react";
717
+ import {
718
+ View as View5,
719
+ Text as Text4,
720
+ TouchableOpacity as TouchableOpacity5,
721
+ StyleSheet as StyleSheet6,
722
+ ScrollView as ScrollView2
723
+ } from "react-native";
724
+ var WorldMapBoard = ({
725
+ nodes,
726
+ connections = [],
727
+ currentNodeId,
728
+ playerNodeId,
729
+ title,
730
+ act,
731
+ onSelectNode,
732
+ selectNodeEvent,
733
+ style
734
+ }) => {
735
+ useTheme();
736
+ const eventBus = useEventBus();
737
+ const handleSelectNode = (nodeId) => {
738
+ if (selectNodeEvent) eventBus.emit(`UI:${selectNodeEvent}`, { nodeId });
739
+ onSelectNode?.(nodeId);
740
+ };
741
+ const getNodeIcon = (type) => {
742
+ switch (type) {
743
+ case "start":
744
+ return "\u{1F3C1}";
745
+ case "boss":
746
+ return "\u{1F479}";
747
+ case "shop":
748
+ return "\u{1F3EA}";
749
+ case "event":
750
+ return "\u2753";
751
+ case "rest":
752
+ return "\u{1F525}";
753
+ case "combat":
754
+ default:
755
+ return "\u2694\uFE0F";
756
+ }
757
+ };
758
+ const getNodeColor = (node) => {
759
+ if (node.id === playerNodeId) return "#22c55e";
760
+ if (node.locked) return "#374151";
761
+ if (node.visited) return "#6b7280";
762
+ if (node.available) return "#fbbf24";
763
+ return "#4b5563";
764
+ };
765
+ const currentNode = nodes.find((n) => n.id === currentNodeId);
766
+ const playerNode = nodes.find((n) => n.id === playerNodeId);
767
+ return /* @__PURE__ */ React6.createElement(Card, { style: [styles6.container, ...style ? [style] : []] }, /* @__PURE__ */ React6.createElement(VStack, { spacing: 12 }, /* @__PURE__ */ React6.createElement(View5, { style: styles6.header }, /* @__PURE__ */ React6.createElement(View5, null, /* @__PURE__ */ React6.createElement(Typography, { variant: "h3", style: { color: "#fff" } }, title || "\u{1F5FA}\uFE0F World Map"), act && /* @__PURE__ */ React6.createElement(Text4, { style: styles6.actLabel }, act)), playerNode && /* @__PURE__ */ React6.createElement(View5, { style: styles6.playerBadge }, /* @__PURE__ */ React6.createElement(Text4, { style: styles6.playerText }, "You are here"))), /* @__PURE__ */ React6.createElement(
768
+ ScrollView2,
769
+ {
770
+ horizontal: true,
771
+ showsHorizontalScrollIndicator: false,
772
+ contentContainerStyle: styles6.mapScrollContent
773
+ },
774
+ /* @__PURE__ */ React6.createElement(View5, { style: styles6.mapArea }, connections.map((conn, idx) => {
775
+ const fromNode = nodes.find((n) => n.id === conn.from);
776
+ const toNode = nodes.find((n) => n.id === conn.to);
777
+ if (!fromNode || !toNode) return null;
778
+ return /* @__PURE__ */ React6.createElement(
779
+ View5,
780
+ {
781
+ key: idx,
782
+ style: [
783
+ styles6.connection,
784
+ {
785
+ left: `${Math.min(fromNode.x, toNode.x)}%`,
786
+ top: `${Math.min(fromNode.y, toNode.y)}%`,
787
+ width: `${Math.abs(toNode.x - fromNode.x)}%`,
788
+ height: `${Math.abs(toNode.y - fromNode.y)}%`
789
+ }
790
+ ]
791
+ }
792
+ );
793
+ }), nodes.map((node) => /* @__PURE__ */ React6.createElement(
794
+ TouchableOpacity5,
795
+ {
796
+ key: node.id,
797
+ onPress: () => !node.locked && handleSelectNode(node.id),
798
+ disabled: node.locked,
799
+ style: [
800
+ styles6.node,
801
+ {
802
+ left: `${node.x}%`,
803
+ top: `${node.y}%`,
804
+ backgroundColor: getNodeColor(node),
805
+ opacity: node.locked ? 0.3 : 1,
806
+ borderWidth: node.id === currentNodeId ? 3 : 0,
807
+ borderColor: "#fff"
808
+ }
809
+ ]
810
+ },
811
+ /* @__PURE__ */ React6.createElement(Text4, { style: styles6.nodeIcon }, node.icon || getNodeIcon(node.type)),
812
+ node.id === playerNodeId && /* @__PURE__ */ React6.createElement(View5, { style: styles6.playerIndicator }, /* @__PURE__ */ React6.createElement(Text4, null, "\u{1F9D9}"))
813
+ )))
814
+ ), /* @__PURE__ */ React6.createElement(View5, { style: styles6.legend }, /* @__PURE__ */ React6.createElement(Text4, { style: styles6.legendTitle }, "Legend"), /* @__PURE__ */ React6.createElement(View5, { style: styles6.legendItems }, [
815
+ { type: "combat", label: "Combat", icon: "\u2694\uFE0F" },
816
+ { type: "shop", label: "Shop", icon: "\u{1F3EA}" },
817
+ { type: "event", label: "Event", icon: "\u2753" },
818
+ { type: "rest", label: "Rest", icon: "\u{1F525}" },
819
+ { type: "boss", label: "Boss", icon: "\u{1F479}" }
820
+ ].map((item) => /* @__PURE__ */ React6.createElement(View5, { key: item.type, style: styles6.legendItem }, /* @__PURE__ */ React6.createElement(Text4, null, item.icon), /* @__PURE__ */ React6.createElement(Text4, { style: styles6.legendText }, item.label))))), currentNode && /* @__PURE__ */ React6.createElement(View5, { style: styles6.nodeInfo }, /* @__PURE__ */ React6.createElement(Typography, { variant: "h4" }, currentNode.icon || getNodeIcon(currentNode.type), " ", currentNode.name), currentNode.tooltip && /* @__PURE__ */ React6.createElement(Text4, { style: styles6.tooltip }, currentNode.tooltip), !currentNode.available && !currentNode.visited && /* @__PURE__ */ React6.createElement(Text4, { style: styles6.lockedText }, "\u{1F512} Locked"))));
821
+ };
822
+ var styles6 = StyleSheet6.create({
823
+ container: {
824
+ padding: 16
825
+ },
826
+ header: {
827
+ flexDirection: "row",
828
+ justifyContent: "space-between",
829
+ alignItems: "center"
830
+ },
831
+ actLabel: {
832
+ color: "#6b7280",
833
+ fontSize: 12,
834
+ marginTop: 4
835
+ },
836
+ playerBadge: {
837
+ backgroundColor: "#22c55e",
838
+ paddingHorizontal: 12,
839
+ paddingVertical: 6,
840
+ borderRadius: 12
841
+ },
842
+ playerText: {
843
+ color: "#fff",
844
+ fontSize: 12,
845
+ fontWeight: "600"
846
+ },
847
+ mapScrollContent: {
848
+ paddingHorizontal: 8
849
+ },
850
+ mapArea: {
851
+ width: 600,
852
+ height: 400,
853
+ backgroundColor: "#111827",
854
+ borderRadius: 12,
855
+ position: "relative"
856
+ },
857
+ connection: {
858
+ position: "absolute",
859
+ borderWidth: 1,
860
+ borderColor: "#4b5563",
861
+ borderStyle: "dashed"
862
+ },
863
+ node: {
864
+ position: "absolute",
865
+ width: 48,
866
+ height: 48,
867
+ borderRadius: 24,
868
+ justifyContent: "center",
869
+ alignItems: "center",
870
+ transform: [{ translateX: -24 }, { translateY: -24 }],
871
+ marginLeft: 24,
872
+ marginTop: 24
873
+ },
874
+ nodeIcon: {
875
+ fontSize: 20
876
+ },
877
+ playerIndicator: {
878
+ position: "absolute",
879
+ top: -12,
880
+ backgroundColor: "#22c55e",
881
+ padding: 4,
882
+ borderRadius: 12
883
+ },
884
+ legend: {
885
+ padding: 12,
886
+ backgroundColor: "#1f2937",
887
+ borderRadius: 8
888
+ },
889
+ legendTitle: {
890
+ color: "#9ca3af",
891
+ fontSize: 12,
892
+ fontWeight: "700",
893
+ marginBottom: 8
894
+ },
895
+ legendItems: {
896
+ flexDirection: "row",
897
+ flexWrap: "wrap",
898
+ gap: 16
899
+ },
900
+ legendItem: {
901
+ flexDirection: "row",
902
+ alignItems: "center",
903
+ gap: 4
904
+ },
905
+ legendText: {
906
+ color: "#fff",
907
+ fontSize: 12
908
+ },
909
+ nodeInfo: {
910
+ padding: 12,
911
+ backgroundColor: "#1f2937",
912
+ borderRadius: 8
913
+ },
914
+ tooltip: {
915
+ color: "#9ca3af",
916
+ fontSize: 14,
917
+ marginTop: 4
918
+ },
919
+ lockedText: {
920
+ color: "#ef4444",
921
+ fontSize: 12,
922
+ marginTop: 4
923
+ }
924
+ });
925
+ WorldMapBoard.displayName = "WorldMapBoard";
926
+
927
+ export {
928
+ Header,
929
+ BattleBoard,
930
+ CastleBoard,
931
+ GameHud,
932
+ GameMenu,
933
+ WorldMapBoard
934
+ };
935
+ //# sourceMappingURL=chunk-I6UYSB5R.js.map