@almadar/ui 5.154.0 → 5.156.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/dist/{NavStackContext-BoVV9nWb.d.cts → NavStackContext-bw2nlBgT.d.cts} +4 -0
- package/dist/{NavStackContext-BoVV9nWb.d.ts → NavStackContext-bw2nlBgT.d.ts} +4 -0
- package/dist/avl/index.cjs +215 -114
- package/dist/avl/index.js +217 -116
- package/dist/components/index.cjs +215 -114
- package/dist/components/index.d.cts +38 -17
- package/dist/components/index.d.ts +38 -17
- package/dist/components/index.js +217 -116
- package/dist/hooks/index.d.cts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/marketing/index.d.cts +2 -1
- package/dist/marketing/index.d.ts +2 -1
- package/dist/{offline-executor-Qz4b6GpF.d.cts → offline-executor-QUdKOj7f.d.cts} +1 -1
- package/dist/{offline-executor-Qz4b6GpF.d.ts → offline-executor-QUdKOj7f.d.ts} +1 -1
- package/dist/providers/index.cjs +252 -119
- package/dist/providers/index.d.cts +26 -4
- package/dist/providers/index.d.ts +26 -4
- package/dist/providers/index.js +252 -121
- package/dist/renderer/index.d.cts +2 -2
- package/dist/renderer/index.d.ts +2 -2
- package/dist/runtime/index.cjs +215 -114
- package/dist/runtime/index.js +217 -116
- package/package.json +4 -4
- package/themes/_fonts-kenney.css +11 -0
- package/themes/index.css +3 -0
|
@@ -18,7 +18,7 @@ export { D as DEFAULT_SLOTS, S as SlotAnimation, a as SlotChangeCallback, c as S
|
|
|
18
18
|
export { ALMADAR_DND_MIME, AuthContextValue, AuthUser, CanvasGestureCallbacks, CanvasGestureHandlers, CompileResult, CompileStage, DragReorderResult, DraggablePayload, Extension, ExtensionManifest, FileSystemFile, FileSystemStatus, GitHubRepo, GitHubStatus, HistoryChangeSummary, HistoryTimelineItem, I18nContextValue, I18nProvider, InfiniteScrollOptions, InfiniteScrollResult, LongPressHandlers, LongPressOptions, OpenFile, Positioned, PullToRefreshOptions, PullToRefreshResult, QuerySingletonEntity, QuerySingletonResult, QuerySingletonState, QueryState, RenderInterpolationHandle, RenderInterpolationOptions, RevertResult, SelectedFile, SharedEntityStore, SharedEntityStoreContext, SharedEntitySubscriber, SharedEntityWriter, SwipeGestureOptions, SwipeGestureResult, SwipeHandlers, TapRevealOptions, TapRevealResult, TraitListenSpec, TranslateFunction, UseCanvasGesturesOptions, UseCompileResult, UseDraggableOptions, UseDraggableResult, UseDropZoneOptions, UseDropZoneResult, UseExtensionsOptions, UseExtensionsResult, UseFileEditorOptions, UseFileEditorResult, UseFileSystemResult, UseOrbitalHistoryOptions, UseOrbitalHistoryResult, createSharedEntityStore, createTranslate, parseQueryBinding, runTickFrame, useAgentChat, useAuthContext, useCanvasGestures, useCompile, useConnectGitHub, useDeepAgentGeneration, useDisconnectGitHub, useDragReorder, useDraggable, useDropZone, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useInfiniteScroll, useLongPress, useMediaQuery, useOrbitalHistory, usePreview, usePullToRefresh, useQuerySingleton, useRenderInterpolation, useSharedEntitySnapshot, useSharedEntityStore, useSharedEntityStoreContext, useSwipeGesture, useTapReveal, useTraitListens, useTranslate, useUIEvents, useValidation } from '../hooks/index.cjs';
|
|
19
19
|
export { u as useEmitEvent, a as useEventBus, b as useEventListener } from '../useEventBus-Ckr4wqW3.cjs';
|
|
20
20
|
export { E as EventBusContextType } from '../event-bus-types-Bl78kokd.cjs';
|
|
21
|
-
export { a as NavStackApi, u as useNavStack } from '../NavStackContext-
|
|
21
|
+
export { a as NavStackApi, u as useNavStack } from '../NavStackContext-bw2nlBgT.cjs';
|
|
22
22
|
import 'three';
|
|
23
23
|
import 'clsx';
|
|
24
24
|
import '@tanstack/react-query';
|
|
@@ -483,7 +483,8 @@ interface BadgeProps extends React__default.HTMLAttributes<HTMLSpanElement> {
|
|
|
483
483
|
/** When set, renders a small X button on the right of the badge that
|
|
484
484
|
* invokes this handler — turns the badge into a removable chip.
|
|
485
485
|
* Used by the TagInput molecule and other "list of removable values"
|
|
486
|
-
* surfaces.
|
|
486
|
+
* surfaces.
|
|
487
|
+
* @offByDefault */
|
|
487
488
|
onRemove?: () => void;
|
|
488
489
|
/** Accessible label for the remove button. Defaults to "Remove". */
|
|
489
490
|
removeLabel?: string;
|
|
@@ -597,7 +598,8 @@ interface FilterPillProps extends Omit<React__default.HTMLAttributes<HTMLSpanEle
|
|
|
597
598
|
label?: string | number;
|
|
598
599
|
/** Lucide icon component or canonical kebab-case icon name string */
|
|
599
600
|
icon?: IconInput;
|
|
600
|
-
/** Called when the user clicks the remove (×) button
|
|
601
|
+
/** Called when the user clicks the remove (×) button
|
|
602
|
+
* @offByDefault */
|
|
601
603
|
onRemove?: () => void;
|
|
602
604
|
/** Disable the remove button (renders without × control) */
|
|
603
605
|
removable?: boolean;
|
|
@@ -607,7 +609,8 @@ interface FilterPillProps extends Omit<React__default.HTMLAttributes<HTMLSpanEle
|
|
|
607
609
|
clickEvent?: EventEmit<{
|
|
608
610
|
label: string | number | undefined;
|
|
609
611
|
}>;
|
|
610
|
-
/** Event name dispatched via event bus when the remove (×) button is clicked. Payload: { label }
|
|
612
|
+
/** Event name dispatched via event bus when the remove (×) button is clicked. Payload: { label }
|
|
613
|
+
* @offByDefault */
|
|
611
614
|
removeEvent?: EventEmit<{
|
|
612
615
|
label: string | number | undefined;
|
|
613
616
|
}>;
|
|
@@ -2268,9 +2271,11 @@ interface ControlGridProps {
|
|
|
2268
2271
|
directionAssets?: Partial<Record<DPadDirection, Asset>>;
|
|
2269
2272
|
size?: 'sm' | 'md' | 'lg';
|
|
2270
2273
|
disabled?: boolean;
|
|
2274
|
+
/** "auto" (default) renders only on coarse-pointer (touch) devices; "always" renders everywhere. */
|
|
2275
|
+
visibility?: 'auto' | 'always';
|
|
2271
2276
|
className?: string;
|
|
2272
2277
|
}
|
|
2273
|
-
declare function ControlGrid({ kind, buttons, layout, includeDiagonals, onAction, actionEvent, onDirection, directionEvent, directionEvents, directionReleaseEvents, directionAssets, size, disabled, className, }: ControlGridProps): React$1.JSX.Element;
|
|
2278
|
+
declare function ControlGrid({ kind, buttons, layout, includeDiagonals, onAction, actionEvent, onDirection, directionEvent, directionEvents, directionReleaseEvents, directionAssets, size, disabled, visibility, className, }: ControlGridProps): React$1.JSX.Element | null;
|
|
2274
2279
|
declare namespace ControlGrid {
|
|
2275
2280
|
var displayName: string;
|
|
2276
2281
|
}
|
|
@@ -2351,12 +2356,17 @@ interface GameHudProps {
|
|
|
2351
2356
|
elements?: readonly GameHudElement[];
|
|
2352
2357
|
/** Size variant */
|
|
2353
2358
|
size?: "sm" | "md" | "lg";
|
|
2359
|
+
/**
|
|
2360
|
+
* Layout variant: "floating" (default) renders a compact pill cluster that hugs
|
|
2361
|
+
* its content width; "bar" preserves the legacy full-width split bar.
|
|
2362
|
+
*/
|
|
2363
|
+
variant?: "floating" | "bar";
|
|
2354
2364
|
/** Additional CSS classes */
|
|
2355
2365
|
className?: string;
|
|
2356
2366
|
/** Whether to use a semi-transparent background */
|
|
2357
2367
|
transparent?: boolean;
|
|
2358
2368
|
}
|
|
2359
|
-
declare function GameHud({ position: propPosition, stats: propStats, items, elements, size, className, transparent, }: GameHudProps): React$1.JSX.Element;
|
|
2369
|
+
declare function GameHud({ position: propPosition, stats: propStats, items, elements, size, variant, className, transparent, }: GameHudProps): React$1.JSX.Element;
|
|
2360
2370
|
declare namespace GameHud {
|
|
2361
2371
|
var displayName: string;
|
|
2362
2372
|
}
|
|
@@ -2924,13 +2934,15 @@ interface TraitSlotProps {
|
|
|
2924
2934
|
feedback?: 'correct' | 'wrong' | null;
|
|
2925
2935
|
/** Click handler */
|
|
2926
2936
|
onClick?: () => void;
|
|
2927
|
-
/** Remove handler
|
|
2937
|
+
/** Remove handler
|
|
2938
|
+
* @offByDefault */
|
|
2928
2939
|
onRemove?: () => void;
|
|
2929
2940
|
/** Emits UI:{clickEvent} with { slotNumber } */
|
|
2930
2941
|
clickEvent?: EventEmit<{
|
|
2931
2942
|
slotNumber: number;
|
|
2932
2943
|
}>;
|
|
2933
|
-
/** Emits UI:{removeEvent} with { slotNumber }
|
|
2944
|
+
/** Emits UI:{removeEvent} with { slotNumber }
|
|
2945
|
+
* @offByDefault */
|
|
2934
2946
|
removeEvent?: EventEmit<{
|
|
2935
2947
|
slotNumber: number;
|
|
2936
2948
|
}>;
|
|
@@ -3450,13 +3462,13 @@ declare const ALL_PRESETS: PhysicsPreset[];
|
|
|
3450
3462
|
interface GameShellProps {
|
|
3451
3463
|
/** Application / game title shown as a floating chip */
|
|
3452
3464
|
appName?: string;
|
|
3453
|
-
/** Stat chips row — floats along the top edge */
|
|
3465
|
+
/** Stat chips row — floats along the top edge. Legacy chrome surface: new behaviors emit HUD chrome via `render-ui "hud-top"` instead. */
|
|
3454
3466
|
hud?: React__default.ReactNode;
|
|
3455
|
-
/** Action cluster — floats bottom-right (End Turn, Fire, Reset, …) */
|
|
3467
|
+
/** Action cluster — floats bottom-right (End Turn, Fire, Reset, …). Legacy chrome surface: new behaviors emit action chrome via `render-ui "hud-bottom"` or `"floating"` instead. */
|
|
3456
3468
|
addons?: React__default.ReactNode;
|
|
3457
|
-
/** Movement controls — floats bottom-left (d-pad / control-grid). */
|
|
3469
|
+
/** Movement controls — floats bottom-left (d-pad / control-grid). Legacy chrome surface: new behaviors emit movement controls via `render-ui "hud-bottom"` instead. */
|
|
3458
3470
|
controls?: React__default.ReactNode;
|
|
3459
|
-
/** Centered overlay layer (victory/defeat banners, dialogs). */
|
|
3471
|
+
/** Centered overlay layer (victory/defeat banners, dialogs). Legacy chrome surface: new behaviors emit overlays via `render-ui "overlay"` (clear with `render-ui "overlay" null` on every exit) instead. */
|
|
3460
3472
|
overlay?: React__default.ReactNode;
|
|
3461
3473
|
/** Extra class name on the root container */
|
|
3462
3474
|
className?: string;
|
|
@@ -3468,7 +3480,7 @@ interface GameShellProps {
|
|
|
3468
3480
|
backgroundAsset?: Asset;
|
|
3469
3481
|
/** Per-call-site 9-sliced panel override. Chrome normally comes from the active theme; most callers leave this unset. */
|
|
3470
3482
|
hudBackgroundAsset?: Asset;
|
|
3471
|
-
/** Game font key (future | future-narrow | pixel | blocks | mini) or a CSS font-family. */
|
|
3483
|
+
/** Game display-font key (future | future-narrow | pixel | blocks | mini) or a CSS font-family. Scoped override of the theme contract's --font-family-display slot: titles and numerics take this face, body text follows the active theme. */
|
|
3472
3484
|
fontFamily?: string;
|
|
3473
3485
|
/** Scopes an `@almadar/ui` theme (e.g. "game-sci-fi-dark") to this shell's subtree. */
|
|
3474
3486
|
"data-theme"?: string;
|
|
@@ -5487,6 +5499,11 @@ interface CalendarGridProps {
|
|
|
5487
5499
|
titleField?: string;
|
|
5488
5500
|
/** Row field holding the start timestamp (ISO or epoch). Defaults to `startTime`. */
|
|
5489
5501
|
startField?: string;
|
|
5502
|
+
/** Row field holding the end timestamp (ISO or epoch). Defaults to `endTime`.
|
|
5503
|
+
* When a row carries an end, the event's chip renders in its start slot and
|
|
5504
|
+
* every further slot it covers shows a subdued continuation bar — without
|
|
5505
|
+
* this, multi-hour events silently collapsed to their first hour. */
|
|
5506
|
+
endField?: string;
|
|
5490
5507
|
/** Row field holding the chip's Tailwind colour class. Defaults to `color`. */
|
|
5491
5508
|
colorField?: string;
|
|
5492
5509
|
/**
|
|
@@ -5505,7 +5522,7 @@ interface CalendarGridProps {
|
|
|
5505
5522
|
*/
|
|
5506
5523
|
renderItem?: (item: EntityRow, index: number) => React__default.ReactNode;
|
|
5507
5524
|
}
|
|
5508
|
-
declare function CalendarGrid({ weekStart, timeSlots, events, onSlotClick, onDayClick, onEventClick, className, longPressEvent, longPressPayload, swipeLeftEvent, swipeRightEvent, dayWindow, titleField, startField, colorField, children, renderItem, }: CalendarGridProps): React__default.JSX.Element;
|
|
5525
|
+
declare function CalendarGrid({ weekStart, timeSlots, events, onSlotClick, onDayClick, onEventClick, className, longPressEvent, longPressPayload, swipeLeftEvent, swipeRightEvent, dayWindow, titleField, startField, endField, colorField, children, renderItem, }: CalendarGridProps): React__default.JSX.Element;
|
|
5509
5526
|
declare namespace CalendarGrid {
|
|
5510
5527
|
var displayName: string;
|
|
5511
5528
|
}
|
|
@@ -10765,7 +10782,10 @@ interface DetailPanelProps extends DisplayStateProps {
|
|
|
10765
10782
|
sections?: readonly DetailSection[];
|
|
10766
10783
|
/** Unified actions array - first action with variant='primary' is the main action */
|
|
10767
10784
|
actions?: readonly DetailPanelAction[];
|
|
10768
|
-
/** Max inline action buttons before the rest collapse into a "⋯" overflow
|
|
10785
|
+
/** Max inline action buttons before the rest collapse into a "⋯" overflow
|
|
10786
|
+
* menu (mirrors DataGrid's maxInlineActions). Defaults to 2 — primary +
|
|
10787
|
+
* secondary visible, the rest under the menu — so every detail panel
|
|
10788
|
+
* carries the same action pattern. */
|
|
10769
10789
|
maxInlineActions?: number;
|
|
10770
10790
|
/**
|
|
10771
10791
|
* Navigation-back affordance. Renders top-LEFT before the title (OS/back
|
|
@@ -10789,7 +10809,8 @@ interface DetailPanelProps extends DisplayStateProps {
|
|
|
10789
10809
|
width?: string;
|
|
10790
10810
|
/** Display fields (alias for fields) */
|
|
10791
10811
|
displayFields?: readonly string[];
|
|
10792
|
-
/**
|
|
10812
|
+
/** When false, hides the action buttons + overflow menu (and the close ×).
|
|
10813
|
+
* Defaults to true. */
|
|
10793
10814
|
showActions?: boolean;
|
|
10794
10815
|
/** Relation display data: { fieldName: [{value, label}] } — injected
|
|
10795
10816
|
* server-side by the runtime (relation-option injection) or bound by
|
|
@@ -11607,7 +11628,7 @@ interface UISlotComponentProps {
|
|
|
11607
11628
|
*
|
|
11608
11629
|
* Handles different slot types with appropriate wrappers.
|
|
11609
11630
|
*/
|
|
11610
|
-
declare function UISlotComponent(
|
|
11631
|
+
declare function UISlotComponent(props: UISlotComponentProps): React__default.ReactElement | null;
|
|
11611
11632
|
interface SlotContentRendererProps {
|
|
11612
11633
|
content: SlotContent;
|
|
11613
11634
|
onDismiss: () => void;
|
|
@@ -18,7 +18,7 @@ export { D as DEFAULT_SLOTS, S as SlotAnimation, a as SlotChangeCallback, c as S
|
|
|
18
18
|
export { ALMADAR_DND_MIME, AuthContextValue, AuthUser, CanvasGestureCallbacks, CanvasGestureHandlers, CompileResult, CompileStage, DragReorderResult, DraggablePayload, Extension, ExtensionManifest, FileSystemFile, FileSystemStatus, GitHubRepo, GitHubStatus, HistoryChangeSummary, HistoryTimelineItem, I18nContextValue, I18nProvider, InfiniteScrollOptions, InfiniteScrollResult, LongPressHandlers, LongPressOptions, OpenFile, Positioned, PullToRefreshOptions, PullToRefreshResult, QuerySingletonEntity, QuerySingletonResult, QuerySingletonState, QueryState, RenderInterpolationHandle, RenderInterpolationOptions, RevertResult, SelectedFile, SharedEntityStore, SharedEntityStoreContext, SharedEntitySubscriber, SharedEntityWriter, SwipeGestureOptions, SwipeGestureResult, SwipeHandlers, TapRevealOptions, TapRevealResult, TraitListenSpec, TranslateFunction, UseCanvasGesturesOptions, UseCompileResult, UseDraggableOptions, UseDraggableResult, UseDropZoneOptions, UseDropZoneResult, UseExtensionsOptions, UseExtensionsResult, UseFileEditorOptions, UseFileEditorResult, UseFileSystemResult, UseOrbitalHistoryOptions, UseOrbitalHistoryResult, createSharedEntityStore, createTranslate, parseQueryBinding, runTickFrame, useAgentChat, useAuthContext, useCanvasGestures, useCompile, useConnectGitHub, useDeepAgentGeneration, useDisconnectGitHub, useDragReorder, useDraggable, useDropZone, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useInfiniteScroll, useLongPress, useMediaQuery, useOrbitalHistory, usePreview, usePullToRefresh, useQuerySingleton, useRenderInterpolation, useSharedEntitySnapshot, useSharedEntityStore, useSharedEntityStoreContext, useSwipeGesture, useTapReveal, useTraitListens, useTranslate, useUIEvents, useValidation } from '../hooks/index.js';
|
|
19
19
|
export { u as useEmitEvent, a as useEventBus, b as useEventListener } from '../useEventBus-CQWyAWpK.js';
|
|
20
20
|
export { E as EventBusContextType } from '../event-bus-types-Bl78kokd.js';
|
|
21
|
-
export { a as NavStackApi, u as useNavStack } from '../NavStackContext-
|
|
21
|
+
export { a as NavStackApi, u as useNavStack } from '../NavStackContext-bw2nlBgT.js';
|
|
22
22
|
import 'three';
|
|
23
23
|
import 'clsx';
|
|
24
24
|
import '@tanstack/react-query';
|
|
@@ -483,7 +483,8 @@ interface BadgeProps extends React__default.HTMLAttributes<HTMLSpanElement> {
|
|
|
483
483
|
/** When set, renders a small X button on the right of the badge that
|
|
484
484
|
* invokes this handler — turns the badge into a removable chip.
|
|
485
485
|
* Used by the TagInput molecule and other "list of removable values"
|
|
486
|
-
* surfaces.
|
|
486
|
+
* surfaces.
|
|
487
|
+
* @offByDefault */
|
|
487
488
|
onRemove?: () => void;
|
|
488
489
|
/** Accessible label for the remove button. Defaults to "Remove". */
|
|
489
490
|
removeLabel?: string;
|
|
@@ -597,7 +598,8 @@ interface FilterPillProps extends Omit<React__default.HTMLAttributes<HTMLSpanEle
|
|
|
597
598
|
label?: string | number;
|
|
598
599
|
/** Lucide icon component or canonical kebab-case icon name string */
|
|
599
600
|
icon?: IconInput;
|
|
600
|
-
/** Called when the user clicks the remove (×) button
|
|
601
|
+
/** Called when the user clicks the remove (×) button
|
|
602
|
+
* @offByDefault */
|
|
601
603
|
onRemove?: () => void;
|
|
602
604
|
/** Disable the remove button (renders without × control) */
|
|
603
605
|
removable?: boolean;
|
|
@@ -607,7 +609,8 @@ interface FilterPillProps extends Omit<React__default.HTMLAttributes<HTMLSpanEle
|
|
|
607
609
|
clickEvent?: EventEmit<{
|
|
608
610
|
label: string | number | undefined;
|
|
609
611
|
}>;
|
|
610
|
-
/** Event name dispatched via event bus when the remove (×) button is clicked. Payload: { label }
|
|
612
|
+
/** Event name dispatched via event bus when the remove (×) button is clicked. Payload: { label }
|
|
613
|
+
* @offByDefault */
|
|
611
614
|
removeEvent?: EventEmit<{
|
|
612
615
|
label: string | number | undefined;
|
|
613
616
|
}>;
|
|
@@ -2268,9 +2271,11 @@ interface ControlGridProps {
|
|
|
2268
2271
|
directionAssets?: Partial<Record<DPadDirection, Asset>>;
|
|
2269
2272
|
size?: 'sm' | 'md' | 'lg';
|
|
2270
2273
|
disabled?: boolean;
|
|
2274
|
+
/** "auto" (default) renders only on coarse-pointer (touch) devices; "always" renders everywhere. */
|
|
2275
|
+
visibility?: 'auto' | 'always';
|
|
2271
2276
|
className?: string;
|
|
2272
2277
|
}
|
|
2273
|
-
declare function ControlGrid({ kind, buttons, layout, includeDiagonals, onAction, actionEvent, onDirection, directionEvent, directionEvents, directionReleaseEvents, directionAssets, size, disabled, className, }: ControlGridProps): React$1.JSX.Element;
|
|
2278
|
+
declare function ControlGrid({ kind, buttons, layout, includeDiagonals, onAction, actionEvent, onDirection, directionEvent, directionEvents, directionReleaseEvents, directionAssets, size, disabled, visibility, className, }: ControlGridProps): React$1.JSX.Element | null;
|
|
2274
2279
|
declare namespace ControlGrid {
|
|
2275
2280
|
var displayName: string;
|
|
2276
2281
|
}
|
|
@@ -2351,12 +2356,17 @@ interface GameHudProps {
|
|
|
2351
2356
|
elements?: readonly GameHudElement[];
|
|
2352
2357
|
/** Size variant */
|
|
2353
2358
|
size?: "sm" | "md" | "lg";
|
|
2359
|
+
/**
|
|
2360
|
+
* Layout variant: "floating" (default) renders a compact pill cluster that hugs
|
|
2361
|
+
* its content width; "bar" preserves the legacy full-width split bar.
|
|
2362
|
+
*/
|
|
2363
|
+
variant?: "floating" | "bar";
|
|
2354
2364
|
/** Additional CSS classes */
|
|
2355
2365
|
className?: string;
|
|
2356
2366
|
/** Whether to use a semi-transparent background */
|
|
2357
2367
|
transparent?: boolean;
|
|
2358
2368
|
}
|
|
2359
|
-
declare function GameHud({ position: propPosition, stats: propStats, items, elements, size, className, transparent, }: GameHudProps): React$1.JSX.Element;
|
|
2369
|
+
declare function GameHud({ position: propPosition, stats: propStats, items, elements, size, variant, className, transparent, }: GameHudProps): React$1.JSX.Element;
|
|
2360
2370
|
declare namespace GameHud {
|
|
2361
2371
|
var displayName: string;
|
|
2362
2372
|
}
|
|
@@ -2924,13 +2934,15 @@ interface TraitSlotProps {
|
|
|
2924
2934
|
feedback?: 'correct' | 'wrong' | null;
|
|
2925
2935
|
/** Click handler */
|
|
2926
2936
|
onClick?: () => void;
|
|
2927
|
-
/** Remove handler
|
|
2937
|
+
/** Remove handler
|
|
2938
|
+
* @offByDefault */
|
|
2928
2939
|
onRemove?: () => void;
|
|
2929
2940
|
/** Emits UI:{clickEvent} with { slotNumber } */
|
|
2930
2941
|
clickEvent?: EventEmit<{
|
|
2931
2942
|
slotNumber: number;
|
|
2932
2943
|
}>;
|
|
2933
|
-
/** Emits UI:{removeEvent} with { slotNumber }
|
|
2944
|
+
/** Emits UI:{removeEvent} with { slotNumber }
|
|
2945
|
+
* @offByDefault */
|
|
2934
2946
|
removeEvent?: EventEmit<{
|
|
2935
2947
|
slotNumber: number;
|
|
2936
2948
|
}>;
|
|
@@ -3450,13 +3462,13 @@ declare const ALL_PRESETS: PhysicsPreset[];
|
|
|
3450
3462
|
interface GameShellProps {
|
|
3451
3463
|
/** Application / game title shown as a floating chip */
|
|
3452
3464
|
appName?: string;
|
|
3453
|
-
/** Stat chips row — floats along the top edge */
|
|
3465
|
+
/** Stat chips row — floats along the top edge. Legacy chrome surface: new behaviors emit HUD chrome via `render-ui "hud-top"` instead. */
|
|
3454
3466
|
hud?: React__default.ReactNode;
|
|
3455
|
-
/** Action cluster — floats bottom-right (End Turn, Fire, Reset, …) */
|
|
3467
|
+
/** Action cluster — floats bottom-right (End Turn, Fire, Reset, …). Legacy chrome surface: new behaviors emit action chrome via `render-ui "hud-bottom"` or `"floating"` instead. */
|
|
3456
3468
|
addons?: React__default.ReactNode;
|
|
3457
|
-
/** Movement controls — floats bottom-left (d-pad / control-grid). */
|
|
3469
|
+
/** Movement controls — floats bottom-left (d-pad / control-grid). Legacy chrome surface: new behaviors emit movement controls via `render-ui "hud-bottom"` instead. */
|
|
3458
3470
|
controls?: React__default.ReactNode;
|
|
3459
|
-
/** Centered overlay layer (victory/defeat banners, dialogs). */
|
|
3471
|
+
/** Centered overlay layer (victory/defeat banners, dialogs). Legacy chrome surface: new behaviors emit overlays via `render-ui "overlay"` (clear with `render-ui "overlay" null` on every exit) instead. */
|
|
3460
3472
|
overlay?: React__default.ReactNode;
|
|
3461
3473
|
/** Extra class name on the root container */
|
|
3462
3474
|
className?: string;
|
|
@@ -3468,7 +3480,7 @@ interface GameShellProps {
|
|
|
3468
3480
|
backgroundAsset?: Asset;
|
|
3469
3481
|
/** Per-call-site 9-sliced panel override. Chrome normally comes from the active theme; most callers leave this unset. */
|
|
3470
3482
|
hudBackgroundAsset?: Asset;
|
|
3471
|
-
/** Game font key (future | future-narrow | pixel | blocks | mini) or a CSS font-family. */
|
|
3483
|
+
/** Game display-font key (future | future-narrow | pixel | blocks | mini) or a CSS font-family. Scoped override of the theme contract's --font-family-display slot: titles and numerics take this face, body text follows the active theme. */
|
|
3472
3484
|
fontFamily?: string;
|
|
3473
3485
|
/** Scopes an `@almadar/ui` theme (e.g. "game-sci-fi-dark") to this shell's subtree. */
|
|
3474
3486
|
"data-theme"?: string;
|
|
@@ -5487,6 +5499,11 @@ interface CalendarGridProps {
|
|
|
5487
5499
|
titleField?: string;
|
|
5488
5500
|
/** Row field holding the start timestamp (ISO or epoch). Defaults to `startTime`. */
|
|
5489
5501
|
startField?: string;
|
|
5502
|
+
/** Row field holding the end timestamp (ISO or epoch). Defaults to `endTime`.
|
|
5503
|
+
* When a row carries an end, the event's chip renders in its start slot and
|
|
5504
|
+
* every further slot it covers shows a subdued continuation bar — without
|
|
5505
|
+
* this, multi-hour events silently collapsed to their first hour. */
|
|
5506
|
+
endField?: string;
|
|
5490
5507
|
/** Row field holding the chip's Tailwind colour class. Defaults to `color`. */
|
|
5491
5508
|
colorField?: string;
|
|
5492
5509
|
/**
|
|
@@ -5505,7 +5522,7 @@ interface CalendarGridProps {
|
|
|
5505
5522
|
*/
|
|
5506
5523
|
renderItem?: (item: EntityRow, index: number) => React__default.ReactNode;
|
|
5507
5524
|
}
|
|
5508
|
-
declare function CalendarGrid({ weekStart, timeSlots, events, onSlotClick, onDayClick, onEventClick, className, longPressEvent, longPressPayload, swipeLeftEvent, swipeRightEvent, dayWindow, titleField, startField, colorField, children, renderItem, }: CalendarGridProps): React__default.JSX.Element;
|
|
5525
|
+
declare function CalendarGrid({ weekStart, timeSlots, events, onSlotClick, onDayClick, onEventClick, className, longPressEvent, longPressPayload, swipeLeftEvent, swipeRightEvent, dayWindow, titleField, startField, endField, colorField, children, renderItem, }: CalendarGridProps): React__default.JSX.Element;
|
|
5509
5526
|
declare namespace CalendarGrid {
|
|
5510
5527
|
var displayName: string;
|
|
5511
5528
|
}
|
|
@@ -10765,7 +10782,10 @@ interface DetailPanelProps extends DisplayStateProps {
|
|
|
10765
10782
|
sections?: readonly DetailSection[];
|
|
10766
10783
|
/** Unified actions array - first action with variant='primary' is the main action */
|
|
10767
10784
|
actions?: readonly DetailPanelAction[];
|
|
10768
|
-
/** Max inline action buttons before the rest collapse into a "⋯" overflow
|
|
10785
|
+
/** Max inline action buttons before the rest collapse into a "⋯" overflow
|
|
10786
|
+
* menu (mirrors DataGrid's maxInlineActions). Defaults to 2 — primary +
|
|
10787
|
+
* secondary visible, the rest under the menu — so every detail panel
|
|
10788
|
+
* carries the same action pattern. */
|
|
10769
10789
|
maxInlineActions?: number;
|
|
10770
10790
|
/**
|
|
10771
10791
|
* Navigation-back affordance. Renders top-LEFT before the title (OS/back
|
|
@@ -10789,7 +10809,8 @@ interface DetailPanelProps extends DisplayStateProps {
|
|
|
10789
10809
|
width?: string;
|
|
10790
10810
|
/** Display fields (alias for fields) */
|
|
10791
10811
|
displayFields?: readonly string[];
|
|
10792
|
-
/**
|
|
10812
|
+
/** When false, hides the action buttons + overflow menu (and the close ×).
|
|
10813
|
+
* Defaults to true. */
|
|
10793
10814
|
showActions?: boolean;
|
|
10794
10815
|
/** Relation display data: { fieldName: [{value, label}] } — injected
|
|
10795
10816
|
* server-side by the runtime (relation-option injection) or bound by
|
|
@@ -11607,7 +11628,7 @@ interface UISlotComponentProps {
|
|
|
11607
11628
|
*
|
|
11608
11629
|
* Handles different slot types with appropriate wrappers.
|
|
11609
11630
|
*/
|
|
11610
|
-
declare function UISlotComponent(
|
|
11631
|
+
declare function UISlotComponent(props: UISlotComponentProps): React__default.ReactElement | null;
|
|
11611
11632
|
interface SlotContentRendererProps {
|
|
11612
11633
|
content: SlotContent;
|
|
11613
11634
|
onDismiss: () => void;
|