@eveshipfit/ui-ingame 1.7.0 → 1.9.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/index.d.mts +26 -7
- package/dist/index.mjs +3524 -1646
- package/dist/style.css +728 -160
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -14,6 +14,7 @@ interface TreeListProps {
|
|
|
14
14
|
label: string;
|
|
15
15
|
children: ReactNode;
|
|
16
16
|
}
|
|
17
|
+
/** Arrow keys, Home and End walk the open rows. */
|
|
17
18
|
export declare function TreeList({ label, children }: TreeListProps): import("react").JSX.Element;
|
|
18
19
|
interface TreeGroupProps {
|
|
19
20
|
label: ReactNode;
|
|
@@ -37,6 +38,8 @@ interface TreeLeafProps {
|
|
|
37
38
|
/** Shows the type's icon in front of the label. */
|
|
38
39
|
typeId?: number;
|
|
39
40
|
title?: string;
|
|
41
|
+
/** Only called once the tooltip has opened. */
|
|
42
|
+
renderTooltip?: () => ReactNode;
|
|
40
43
|
onActivate?: () => void;
|
|
41
44
|
/** Activates on a single click. */
|
|
42
45
|
activateOnClick?: boolean;
|
|
@@ -47,7 +50,7 @@ interface TreeLeafProps {
|
|
|
47
50
|
after?: ReactNode;
|
|
48
51
|
}
|
|
49
52
|
/** Activates on double click, as EVE's own lists do, unless `activateOnClick` is set. */
|
|
50
|
-
export declare function TreeLeaf({ label, typeId, title, onActivate, activateOnClick, onHover, onDragStart, onDragEnd, after }: TreeLeafProps): import("react").JSX.Element;
|
|
53
|
+
export declare function TreeLeaf({ label, typeId, title, renderTooltip, onActivate, activateOnClick, onHover, onDragStart, onDragEnd, after }: TreeLeafProps): import("react").JSX.Element;
|
|
51
54
|
//#endregion
|
|
52
55
|
//#region src/primitives/Icon/Icon.d.ts
|
|
53
56
|
declare const textures: {
|
|
@@ -71,6 +74,7 @@ declare const textures: {
|
|
|
71
74
|
checkmark: string;
|
|
72
75
|
close: string;
|
|
73
76
|
folder: string;
|
|
77
|
+
number: string;
|
|
74
78
|
export: string;
|
|
75
79
|
"fits-browser": string;
|
|
76
80
|
"fits-personal": string;
|
|
@@ -107,6 +111,7 @@ declare const textures: {
|
|
|
107
111
|
"arrow-right": string;
|
|
108
112
|
"arrow-down": string;
|
|
109
113
|
"arrow-up": string;
|
|
114
|
+
edit: string;
|
|
110
115
|
price: string;
|
|
111
116
|
"stat-turret-dps": string;
|
|
112
117
|
"stat-alpha-strike": string;
|
|
@@ -158,9 +163,17 @@ export declare function TypeIcon({ typeId, size, marker, loading }: TypeIconProp
|
|
|
158
163
|
type FilterToggleProps = ({
|
|
159
164
|
icon: IconName;
|
|
160
165
|
typeId?: undefined;
|
|
166
|
+
src?: undefined;
|
|
161
167
|
} | {
|
|
162
168
|
icon?: undefined;
|
|
163
169
|
typeId: number;
|
|
170
|
+
src?: undefined;
|
|
171
|
+
} |
|
|
172
|
+
/** The URL of an image, like a market group's icon. */
|
|
173
|
+
{
|
|
174
|
+
icon?: undefined;
|
|
175
|
+
typeId?: undefined;
|
|
176
|
+
src: string | undefined;
|
|
164
177
|
}) & {
|
|
165
178
|
label: string;
|
|
166
179
|
pressed?: boolean;
|
|
@@ -168,12 +181,12 @@ type FilterToggleProps = ({
|
|
|
168
181
|
onPressedChange?: (pressed: boolean) => void;
|
|
169
182
|
};
|
|
170
183
|
/** One of the icons above EVE's lists that filter them. */
|
|
171
|
-
export declare function FilterToggle({ icon, typeId, label, pressed, onPressedChange }: FilterToggleProps): import("react").JSX.Element;
|
|
184
|
+
export declare function FilterToggle({ icon, typeId, src, label, pressed, onPressedChange }: FilterToggleProps): import("react").JSX.Element;
|
|
172
185
|
//#endregion
|
|
173
186
|
//#region src/primitives/Tooltip/Tooltip.d.ts
|
|
174
187
|
interface TooltipProps {
|
|
175
|
-
/** Without one, there is no tooltip. */
|
|
176
|
-
label?: ReactNode;
|
|
188
|
+
/** Without one, there is no tooltip; a function is only called once the tooltip has opened. */
|
|
189
|
+
label?: ReactNode | (() => ReactNode);
|
|
177
190
|
/** The tooltip points at the first element. */
|
|
178
191
|
children: ReactNode;
|
|
179
192
|
}
|
|
@@ -254,8 +267,10 @@ interface WheelSlotProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
254
267
|
onUnfit?: () => void;
|
|
255
268
|
onRemoveCharge?: () => void;
|
|
256
269
|
onTogglePower?: () => void;
|
|
270
|
+
onShowInfo?: (anchor: HTMLElement) => void;
|
|
271
|
+
onShowChargeInfo?: (anchor: HTMLElement) => void;
|
|
257
272
|
}
|
|
258
|
-
export declare function WheelSlot({ rack, angle, typeId, typeName, chargeTypeId, chargeable, state, activatable, available, preview, tooltip, onPress, onDragStart, onDragEnd, label, actions: showActions, onUnfit, onRemoveCharge, onTogglePower, className, style, ...props }: WheelSlotProps): import("react").JSX.Element;
|
|
273
|
+
export declare function WheelSlot({ rack, angle, typeId, typeName, chargeTypeId, chargeable, state, activatable, available, preview, tooltip, onPress, onDragStart, onDragEnd, label, actions: showActions, onUnfit, onRemoveCharge, onTogglePower, onShowInfo, onShowChargeInfo, className, style, ...props }: WheelSlotProps): import("react").JSX.Element;
|
|
259
274
|
//#endregion
|
|
260
275
|
//#region src/primitives/Wheel/WheelHardpoints.d.ts
|
|
261
276
|
interface Hardpoints {
|
|
@@ -307,11 +322,13 @@ export declare function Stat({ icon, label, tooltip, children }: StatProps): imp
|
|
|
307
322
|
interface StatsSectionProps {
|
|
308
323
|
title: string;
|
|
309
324
|
summary?: ReactNode;
|
|
325
|
+
/** A control in the header, before `summary`. */
|
|
326
|
+
action?: ReactNode;
|
|
310
327
|
/** How many `Stat`s go next to each other. */
|
|
311
328
|
columns?: 1 | 2;
|
|
312
329
|
children: ReactNode;
|
|
313
330
|
}
|
|
314
|
-
export declare function StatsSection({ title, summary, columns, children }: StatsSectionProps): import("react").JSX.Element;
|
|
331
|
+
export declare function StatsSection({ title, summary, action, columns, children }: StatsSectionProps): import("react").JSX.Element;
|
|
315
332
|
//#endregion
|
|
316
333
|
//#region src/primitives/ResistanceBar/ResistanceBar.d.ts
|
|
317
334
|
type DamageType = "em" | "thermal" | "kinetic" | "explosive";
|
|
@@ -358,9 +375,11 @@ interface FittingWindowProps {
|
|
|
358
375
|
statistics?: ReactNode;
|
|
359
376
|
/** Shows the fit without its name, warnings, history or anything to change it. */
|
|
360
377
|
preview?: boolean;
|
|
378
|
+
/** Shows an empty wheel with this text, and nothing of the fit. */
|
|
379
|
+
placeholder?: string;
|
|
361
380
|
}
|
|
362
381
|
/** EVE's fitting window around the `FittingWheel`. */
|
|
363
|
-
export declare function FittingWindow({ label, browser, statistics, preview }: FittingWindowProps): import("react").JSX.Element;
|
|
382
|
+
export declare function FittingWindow({ label, browser, statistics: givenStatistics, preview, placeholder }: FittingWindowProps): import("react").JSX.Element;
|
|
364
383
|
//#endregion
|
|
365
384
|
//#region src/components/ItemBrowser/ItemBrowser.d.ts
|
|
366
385
|
interface ItemBrowserProps {
|